query-4b89c8fe74c3f403a5fd6dc6aaec3c46
TODO
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 ?pays ?paysLabel ?PIB__PPA__par_habitant ?date where
{
{
select ?pays (max(?date) as ?date)
WHERE {
?pays wdt:P31 wd:Q6256.
?pays p:P2299 [pq:P585 ?date].
} group by ?pays } ?pays p:P2299 [ps:P2299 ?PIB__PPA__par_habitant; pq:P585 ?date].
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?PIB__PPA__par_habitant"):::projected
v3("?date"):::projected
v1("?pays"):::projected
a1((" "))
a2((" "))
c7(["bd:serviceParam"]):::iri
c2(["wd:Q6256"]):::iri
c9(["fr"]):::literal
v1 --"p:direct/P31"--> c2
a1 --"p:qualifier/P585"--> v3
v1 --"p:P2299"--> a1
bind1[/"max(?date)"/]
v3 --o bind1
bind1 --as--o v3
a2 --"p:statement/P2299"--> v3
a2 --"p:qualifier/P585"--> v3
v1 --"p:P2299"--> a2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end