query-3513aa7a7c24f566e8e241bbc5078261

rq turtle/ttl

a. # instances SELECT (COUNT(DISTINCT ?item) as ?nb_instance) WHERE { ?item wdt:P279* wd:Q181388 . # ?item wdt:P641 wd:Q847 . }

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
#  a. # instances
SELECT (COUNT(DISTINCT ?item) as ?nb_instance)
WHERE
{
     ?item wdt:P279* wd:Q181388 .
     # ?item wdt:P641 wd:Q847 .
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?nb_instance") c2(["wd:Q181388"]):::iri v1 --"wdt:P279"--> c2 bind1[/"count(?item)"/] v1 --o bind1 bind1 --as--o v2