query-50e2af789b76f8046c551f0c003373a8

rq turtle/ttl

Count clinical trials SELECT (count(distinct ?item) as ?count) WHERE {?item p:P31/ps:P31/wdt:P279* wd:Q30612}

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
# Count clinical trials
SELECT (count(distinct ?item) as ?count)
WHERE {?item p:P31/ps:P31/wdt:P279* wd:Q30612}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?count") v1("?item"):::projected a1((" ")) a2((" ")) c4(["wd:Q30612"]):::iri v1 --"p:P31"--> a1 a1 --"p:statement/P31"--> a2 a2 --"p:direct/P279"--> c4 bind1[/"count(?item)"/] v1 --o bind1 bind1 --as--o v2