query-c9705f6662a7f6e843c8d75386019afc

rq turtle/ttl

Population densities

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?country ?countryLabel ?population ?area ?stmt ?height
WHERE {
  ?country wdt:P31 wd:Q6256.
  ?country wdt:P1082 ?population.
  ?country wdt:P2046 ?area.
  ?country p:P610 ?stmt.
  ?stmt pq:P2044 ?height.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
#GROUP BY ?country
#ORDER BY DESC(?items)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?area"):::projected v1("?country"):::projected v5("?height"):::projected v2("?population"):::projected v4("?stmt"):::projected c8(["bd:serviceParam"]):::iri c10(["en"]):::literal c2(["wd:Q6256"]):::iri v1 --"p:direct/P31"--> c2 v1 --"p:direct/P1082"--> v2 v1 --"p:direct/P2046"--> v3 v1 --"p:P610"--> v4 v4 --"p:qualifier/P2044"--> v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end