query-dc96e0f49953d51aa5628d9fafe3d399
More than one IMDb id
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?imdb1 ?imdb2 WHERE {
?item wdt:P345 ?imdb1 .
?item wdt:P345 ?imdb2 .
FILTER (?imdb1 < ?imdb2)
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
} ORDER BY ?imdb1
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?imdb1"):::projected
v2("?imdb2"):::projected
v3("?item"):::projected
c3(["bd:serviceParam"]):::iri
c5(["en"]):::literal
f0[["?imdb1 < ?imdb2"]]
f0 --> v1
f0 --> v2
v3 --"wdt:P345"--> v1
v3 --"wdt:P345"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end