query-5a4075cfe00f7a0658306bb54c97ab23
Number of persons SELECT (COUNT(DISTINCT ?item) as ?ct) { ?item wdt:P31 wd:Q5 }
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
#Number of persons
SELECT (COUNT(DISTINCT ?item) as ?ct) { ?item wdt:P31 wd:Q5 }
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?ct")
v1("?item"):::projected
c2(["wd:Q5"]):::iri
v1 --"wdt:P31"--> c2
bind1[/"count(?item)"/]
v1 --o bind1
bind1 --as--o v2