query-35b566b51588bb2084e5b7fcfb70376e

rq turtle/ttl

Histogram of number of persons having specific Erdős number SELECT ?value (COUNT(?value) AS ?count) { ?item wdt:P2021 ?value .

BIND(strlen(STR(ROUND(?value))) as ?length)

BIND(IF(?quantityvalue<1,"<1",?length) as ?scale)

} GROUP BY ?value ORDER BY ?value

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
#Histogram of number of persons having specific Erdős number
SELECT ?value (COUNT(?value) AS ?count)
{
  ?item wdt:P2021 ?value .
#    BIND(strlen(STR(ROUND(?value))) as ?length)
#    BIND(IF(?quantityvalue<1,"<1",?length)   as ?scale)
}
GROUP BY ?value
ORDER BY ?value

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?count") v2("?item") v1("?value"):::projected v2 --"wdt:P2021"--> v1 bind1[/"count(?value)"/] v1 --o bind1 bind1 --as--o v3