query-2b651197919cb0095b2a332e930e739f
different items with same VIAF ID (P214)Does anyone know why this query times out?
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 ?item1 ?item1Label ?viaf1 WHERE {
?item1 wdt:P214 ?viaf1.
?item2 wdt:P214 ?viaf2.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
FILTER(?item1 < ?item2)
FILTER(?viaf1 = ?viaf2)
}
LIMIT 1
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item1"):::projected
v4("?item2")
v1("?viaf1"):::projected
v2("?viaf2")
c3(["bd:serviceParam"]):::iri
c5(["en"]):::literal
f0[["?viaf1 = ?viaf2"]]
f0 --> v1
f0 --> v2
f1[["?item1 < ?item2"]]
f1 --> v3
f1 --> v4
v3 --"wdt:P214"--> v1
v4 --"wdt:P214"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end