query-6c30664ff8c973f157c6f9ac97a9ee4f

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?class ?propQuant (COUNT(?s2) AS ?fullQuant) WHERE 
{
{ select ?class (COUNT(distinct ?s) AS ?propQuant) where
  {
  ?s wdt:P31 ?class .
  ?s wdt:P610 ?o .
  } GROUP BY ?class
}  ?s2 wdt:P31 ?class .
} GROUP BY ?class ?propQuant

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?class"):::projected v6("?fullQuant") v3("?o") v4("?propQuant"):::projected v1("?s") v5("?s2"):::projected v1 --"wdt:P31"--> v2 v1 --"wdt:P610"--> v3 bind1[/"count(?s)"/] v1 --o bind1 bind1 --as--o v4 v5 --"wdt:P31"--> v2 bind3[/"count(?s2)"/] v5 --o bind3 bind3 --as--o v6