query-ba9886694598682747ab1e08089190ca
title: Longest rivers in the France SELECT DISTINCT ?item ?itemLabel ?length ?unit ?unitLabel WHERE { ?item (wdt:P31/(wdt:P279*)) wd:Q55659167; wdt:P17 wd:Q142; p:P2043 ?stmnode. ?stmnode psv:P2043 ?valuenode. ?valuenode wikibase:quantityAmount ?length; wikibase:quantityUnit ?unit. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE], en". } } ORDER BY DESC (?length) LIMIT 100
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 psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Longest rivers in the France
SELECT DISTINCT ?item ?itemLabel ?length ?unit ?unitLabel WHERE {
?item (wdt:P31/(wdt:P279*)) wd:Q55659167;
wdt:P17 wd:Q142;
p:P2043 ?stmnode.
?stmnode psv:P2043 ?valuenode.
?valuenode wikibase:quantityAmount ?length;
wikibase:quantityUnit ?unit.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE], en". }
}
ORDER BY DESC (?length)
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?length"):::projected
v3("?stmnode")
v5("?unit"):::projected
v4("?valuenode")
a1((" "))
c13(["#91;AUTO_LANGUAGE#93;, en"]):::literal
c3(["wd:Q55659167"]):::iri
c11(["bd:serviceParam"]):::iri
c5(["wd:Q142"]):::iri
v2 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
v2 --"p:direct/P17"--> c5
v2 --"p:P2043"--> v3
v3 --"p:statement/value/P2043"--> v4
v4 --"wikibase:quantityAmount"--> v1
v4 --"wikibase:quantityUnit"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end