query-8ceb69a68704168dac2b308fb492f747
Query with qualifiers
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?countryLabel ?population ?gem_ident_code ?date
{
?country wdt:P31 wd:Q747074 .
?country wdt:P635 ?gem_ident_code .
?country p:P1082 ?populationStatement .
?populationStatement ps:P1082 ?population
; pq:P585 ?date .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
#GROUP BY ?countryLabel ?date
ORDER BY ?countryLabel DESC(?date)
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?country")
v1("?countryLabel"):::projected
v2("?date"):::projected
v4("?gem_ident_code"):::projected
v6("?population"):::projected
v5("?populationStatement")
c8(["bd:serviceParam"]):::iri
c10(["en"]):::literal
c2(["wd:Q747074"]):::iri
v3 --"p:direct/P31"--> c2
v3 --"p:direct/P635"--> v4
v3 --"p:P1082"--> v5
v5 --"p:statement/P1082"--> v6
v5 --"p:qualifier/P585"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end