query-d10aa7ddf73f6881c1f2906f4264538b

rq turtle/ttl

Propertiesinstance of (P31)subclass of (P279)occupation (P106)country of citizenship (P27)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?country (COUNT(?programmer) AS ?count) WHERE {
  ?programmer wdt:P31/wdt:P279* wd:Q5.
  ?programmer wdt:P106 wd:Q5482740.
  ?programmer wdt:P27 ?country.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?country

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?count") v2("?country"):::projected v1("?programmer"):::projected a1((" ")) c8(["bd:serviceParam"]):::iri c5(["wd:Q5482740"]):::iri c3(["wd:Q5"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P106"--> c5 v1 --"wdt:P27"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end bind1[/"count(?programmer)"/] v1 --o bind1 bind1 --as--o v3