query-8bd0ed61a268e0dd6567ad283fe967ec

rq turtle/ttl

How many collections are represented in the Sum of all Paintings dataset?

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT (COUNT(DISTINCT ?coll) AS ?count) WHERE {
?obj wdt:P31/wdt:P279* wd:Q3305213. ?obj wdt:P195 ?coll FILTER (!CONTAINS(STR(?coll), "well-known"))
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?coll"):::projected v3("?count") v2("?obj") a1((" ")) c4(["wd:Q3305213"]):::iri f0[["not contains(str(?coll),'well-known')"]] f0 --> v1 v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c4 v2 --"wdt:P195"--> v1 bind2[/"count(?coll)"/] v1 --o bind2 bind2 --as--o v3