query-ffc89326c5283c4e15aeb656a4daf7e7
Hi! This query works fine in 27875 ms and gives 45409 results. But I want to get wikibase:language "he". And this gives a timeout.
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#>
SELECT ?item ?itemLabel WHERE {
VALUES ?item_class { wd:Q34 wd:Q183 }
?item wdt:P27 ?item_class.
?item wdt:P21 wd:Q6581072.
?item wdt:P31 wd:Q5.
SERVICE wikibase:label { bd:serviceParam wikibase:language "he". }
}
ORDER BY ?item
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?item_class")
c7(["bd:serviceParam"]):::iri
c5(["wd:Q5"]):::iri
c3(["wd:Q6581072"]):::iri
c9(["he"]):::literal
bind0[/VALUES ?item_class/]
bind0-->v2
bind00(["wd:Q34"])
bind00 --> bind0
bind01(["wd:Q183"])
bind01 --> bind0
v1 --"wdt:P27"--> v2
v1 --"wdt:P21"--> c3
v1 --"wdt:P31"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end