query-6e2d1905faf6375049c96e919f2aafac
10:56, 30 December 2018 (UTC)) talk (Strainu--
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 psn: <http://www.wikidata.org/prop/statement/value-normalized/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
select DISTINCT ?country ?countryLabel ?area ?area2 ?unit2
{
?country p:P31/ps:P31 wd:Q6256 .
?country wdt:P30 wd:Q46 .
# ?country wdt:P2046 ?area .
?country p:P2046 / psn:P2046 [ wikibase:quantityAmount ?area2 ; wikibase:quantityUnit ?unit2 ] .
service wikibase:label { bd:serviceParam wikibase:language "ro,en" }
}
order by desc(?area2)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?area2"):::projected
v2("?country"):::projected
v3("?unit2"):::projected
a1((" "))
a3((" "))
a2((" "))
c13(["ro,en"]):::literal
c5(["wd:Q46"]):::iri
c11(["bd:serviceParam"]):::iri
c3(["wd:Q6256"]):::iri
v2 --"p:P31"--> a1
a1 --"p:statement/P31"--> c3
v2 --"p:direct/P30"--> c5
a2 --"wikibase:quantityAmount"--> v1
a2 --"wikibase:quantityUnit"--> v3
v2 --"p:P2046"--> a3
a3 --"p:statement/value-normalized/P2046"--> a2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end