query-cb4071a6e38a9cc1f34c55f5e6a398f1
Cours d'eau du estuary basin of the Saint Lawrence River (Q51885235).
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?id ?idLabel ?confluenceLabel ?localisationLabel ?bassinLabel ?sousbassinLabel
WHERE
{ # affluents de l'estuaire du Saint-Laurent
?id wdt:P4614/wdt:P361* wd:Q51885235. # bassin de l'estuaire du Saint-Laurent
?id wdt:P31/wdt:P279* wd:Q355304 .
?id wdt:P403 ?confluence .
?id wdt:P131 ?localisation .
?id wdt:P4614 ?bassin .
OPTIONAL { ?id p:P4614 [ pq:P518 ?sousbassin ] }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "fr" .
}
}
ORDER BY ?sousbassinLabel ?bassinLabel ?idLabel
LIMIT 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?bassin")
v2("?bassinLabel"):::projected
v5("?confluence")
v4("?id"):::projected
v3("?idLabel"):::projected
v6("?localisation")
v8("?sousbassin")
v1("?sousbassinLabel"):::projected
a1((" "))
a2((" "))
a3((" "))
c3(["wd:Q51885235"]):::iri
c14(["fr"]):::literal
c6(["wd:Q355304"]):::iri
c12(["bd:serviceParam"]):::iri
v4 --"p:direct/P4614"--> a1
a1 --"p:direct/P361"--> c3
v4 --"p:direct/P31"--> a2
a2 --"p:direct/P279"--> c6
v4 --"p:direct/P403"--> v5
v4 --"p:direct/P131"--> v6
v4 --"p:direct/P4614"--> v7
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
a3 -."p:qualifier/P518".-> v8
v4 --"p:P4614"--> a3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end