query-343479b9d27097f73978494d1d877c75
, but gets timeout even with LIMIT 100. This:
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 {
?item wdt:P31 wd:Q5
OPTIONAL { ?item wdt:P21 ?dummy } FILTER( !bound(?dummy) )
SERVICE wikibase:label { bd:serviceParam wikibase:language "ru" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?dummy")
v2("?item"):::projected
c5(["bd:serviceParam"]):::iri
c7(["ru"]):::literal
c2(["wd:Q5"]):::iri
f0[["not bound(?dummy)"]]
f0 --> v1
v2 --"wdt:P31"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P21".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end