query-e04a46a734f51091c4bdb782196e2b68

rq turtle/ttl

TODO

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#>
#defaultView:BarChart
SELECT ?terrLabel ( round(avg(?p)) as ?pop ) WHERE {
  ?q wdt:P1082 ?p ; wdt:P31/wdt:P279* wd:Q3788231 ; wdt:P131 ?terr .
  ?terr wdt:P31/wdt:P279* wd:Q2879 .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
}
GROUP BY ?terrLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?_anon_42b5416610844a34809f33a099ae9de186372"):::projected v2("?p") v5("?pop") v1("?q") v3("?terr") a1((" ")) a2((" ")) c6(["wd:Q2879"]):::iri c8(["bd:serviceParam"]):::iri c4(["wd:Q3788231"]):::iri c10(["fr"]):::literal v1 --"wdt:P1082"--> v2 v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c4 v1 --"wdt:P131"--> v3 v3 --"wdt:P31"--> a2 a2 --"wdt:P279"--> c6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end bind1[/"average(?p)"/] v2 --o bind1 bind1 --as--o v4 bind2[/"numeric-round()"/] null --o bind2 bind2 --as--o v5