query-054286fbbb1a212f60ab9e3587fbd001
Max East/West/North/South for each country
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 bd: <http://www.bigdata.com/rdf#>
SELECT distinct ?pays ?paysLabel ?coord_max_nord ?coord_max_sud ?coord_max_ouest ?coord_max_est WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?pays wdt:P31 wd:Q6256.
OPTIONAL { ?pays wdt:P1332 ?coord_max_nord. }
OPTIONAL { ?pays wdt:P1333 ?coord_max_sud. }
OPTIONAL { ?pays wdt:P1335 ?coord_max_ouest. }
OPTIONAL { ?pays wdt:P1334 ?coord_max_est. }
MINUS { ?pays wdt:P576 _:b2. }
MINUS { ?pays wdt:P582 _:b3. }
}order by ?paysLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?coord_max_est"):::projected
v3("?coord_max_nord"):::projected
v5("?coord_max_ouest"):::projected
v4("?coord_max_sud"):::projected
v2("?pays"):::projected
v1("?paysLabel"):::projected
a1((" "))
a2((" "))
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6(["wd:Q6256"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v2 --"wdt:P31"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P1332".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P1333".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P1335".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P1334".-> v6
end
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P576"--> a1
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P582"--> a2
end