query-752397c91b7caaf7943f82dedf2a23c8

rq turtle/ttl

أرقام الطوارئ حسب السكان المستخدمين لها Emergency numbers by population using them Emergency numbers by population using them Čísla tísňového volání podle počtu obyvatel, kteří je využívají Emergency numbers by population using them Zahl der Nutzer nach Notrufnummer Emergency numbers by population using them Emergency numbers by population using them Emergency numbers by population using them Emergency numbers by population using them Emergency numbers by population using them Numéros d’urgence en fonction de la population qui les utilise Emergency numbers by population using them Emergency numbers by population using them Emergency numbers by population using them Numeri di emergenza raggruppati per popolazione che li usa 緊急通報用電話番号とそれを使う人口 Emergency numbers by population using them Emergency numbers by population using them Emergency numbers by population using them Emergency numbers by population using them Noodnummers per bevolking die ze gebruiken Emergency numbers by population using them Emergency numbers by population using them Emergency numbers by population using them Emergency numbers by population using them Emergency numbers by population using them Nödnummer efter befolkning som använder dem Emergency numbers by population using them Emergency numbers by population using them Номери екстрених служб за населенням, яке ними користується Emergency numbers by population using them 依使用人口排序的紧急号码

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#>
#Lists emergency numbers and the total amount of people which can use them
#defaultView:BubbleChart
SELECT ?emergencyNumber ?emergencyNumberLabel ?tel ?population ?countries
WHERE
{
 ?emergencyNumber wdt:P31 wd:Q694554 .
  OPTIONAL{SELECT ?emergencyNumber (COUNT(?state) as ?countries) (SUM(?pop) as ?population) WHERE {
    ?state wdt:P2852 ?emergencyNumber .
    OPTIONAL{?state wdt:P1082 ?pop} .
    ?state wdt:P31/wdt:P279* wd:Q6256
  } GROUP BY ?emergencyNumber } .
  OPTIONAL{?emergencyNumber wdt:P1329 ?tel }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" }
}
ORDER BY DESC(?population)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?countries"):::projected v2("?emergencyNumber"):::projected v4("?pop") v6("?population"):::projected v3("?state") v6("?tel"):::projected a1((" ")) c9(["bd:serviceParam"]):::iri c6(["wd:Q6256"]):::iri c2(["wd:Q694554"]):::iri c11(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal v2 --"wdt:P31"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P2852".-> v2 subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P1082".-> v4 end v3 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c6 bind2[/"count(?state)"/] v3 --o bind2 bind2 --as--o v5 bind3[/"sum(?pop)"/] v4 --o bind3 bind3 --as--o v6 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P1329".-> v6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end