query-dab3c524fa0df0fbf59792e3f5838e00
Query 1: counting only, times-out SELECT (COUNT(*) as ?ct) { ?item wdt:P31 wd:Q5 FILTER NOT EXISTS { ?item wdt:P21 [] } }
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
#Query 1: counting only, times-out
SELECT (COUNT(*) as ?ct)
{
?item wdt:P31 wd:Q5
FILTER NOT EXISTS { ?item wdt:P21 [] }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?ct")
v1("?item")
a1((" "))
c3(["wd:Q5"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P21"--> e0a1
e0v1("?item"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
v1 --"wdt:P21"--> a1
v1 --"wdt:P31"--> c3
bind2[/"count(*)"/]
bind2 --as--o v2