query-e4cb77e2a73b44ac882d4cc6e15fe796

rq turtle/ttl

title:Count of fictional characters SELECT (COUNT(DISTINCT ?article) AS ?count) WHERE {?article wdt:P31/wdt:P279* wd:Q95074}

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
#title:Count of fictional characters
SELECT (COUNT(DISTINCT ?article) AS ?count)
WHERE {?article wdt:P31/wdt:P279* wd:Q95074}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?article"):::projected v2("?count") a1((" ")) c3(["wd:Q95074"]):::iri v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 bind1[/"count(?article)"/] v1 --o bind1 bind1 --as--o v2