query-c06acdce0bfddc72f9bf9ca920ab91db
movies by Steven Spielberg sorted by year SELECT DISTINCT ?movie ?movieLabel (min(?year) as ?myear) WHERE { ?movie wdt:P31/wdt:P279* wd:Q11424. ?movie wdt:P57 wd:Q8877. ?movie wdt:P577 ?date. BIND (year(?date) as ?year) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } group by ?movie ?movieLabel ORDER BY ?year
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#movies by Steven Spielberg sorted by year
SELECT DISTINCT ?movie ?movieLabel (min(?year) as ?myear) WHERE {
?movie wdt:P31/wdt:P279* wd:Q11424.
?movie wdt:P57 wd:Q8877.
?movie wdt:P577 ?date.
BIND (year(?date) as ?year)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} group by ?movie ?movieLabel ORDER BY ?year
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?date")
v2("?movie"):::projected
v4("?myear")
v4("?year"):::projected
a1((" "))
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q11424"]):::iri
c5(["wd:Q8877"]):::iri
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P57"--> c5
v2 --"wdt:P577"--> v3
bind0[/"year-from-dateTime(?date)"/]
v3 --o bind0
bind0 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind2[/"min(?year)"/]
v4 --o bind2
bind2 --as--o v4