query-d280abe16924709e9625b043ff4a14eb
Cours d'eau du bassin du lac Saint-Pierre
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 DISTINCT ?item ?itemLabel ?geo1 ?loc1Label ?geo2 ?loc2Label ?long WHERE {
?item (wdt:P4614*) wd:Q50375272.
?item (wdt:P31) wd:Q4022.
optional {?item (wdt:P403) ?conf.}
FILTER (?conf != wd:Q134750 )
optional {?item wdt:P2043 ?long }
optional {?item p:P625 [ ps:P625 ?geo1; pq:P131 ?loc1 ] }
optional {?item p:P625 [ ps:P625 ?geo1; pq:P518 ?appl1 ] }
FILTER (?appl1 != wd:Q7376362 )
optional {?item p:P625 [ ps:P625 ?geo2; pq:P131 ?loc2 ] }
optional {?item p:P625 [ ps:P625 ?geo2; pq:P518 ?appl2 ] }
FILTER (?appl2 = wd:Q7376362 )
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" }
}
LIMIT 150
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?appl1")
v1("?appl2")
v3("?conf")
v6("?geo1"):::projected
v8("?geo2"):::projected
v4("?item"):::projected
v7("?loc1")
v9("?loc2")
v5("?long"):::projected
a1((" "))
a2((" "))
a3((" "))
a4((" "))
c4(["wd:Q50375272"]):::iri
c14(["bd:serviceParam"]):::iri
c6(["wd:Q4022"]):::iri
c16(["fr,en"]):::literal
f0[["?appl2 = 'wd:Q7376362'"]]
f0 --> v1
f1[["?appl1 != 'wd:Q7376362'"]]
f1 --> v2
f2[["?conf != 'wd:Q134750'"]]
f2 --> v3
v4 --"p:direct/P4614"--> c4
v4 --"p:direct/P31"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:direct/P403".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:direct/P2043".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
a1 -."p:statement/P625".-> v6
a1 --"p:qualifier/P131"--> v7
v4 --"p:P625"--> a1
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
a2 -."p:statement/P625".-> v6
a2 --"p:qualifier/P518"--> v2
v4 --"p:P625"--> a2
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
a3 -."p:statement/P625".-> v8
a3 --"p:qualifier/P131"--> v9
v4 --"p:P625"--> a3
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
a4 -."p:statement/P625".-> v8
a4 --"p:qualifier/P518"--> v1
v4 --"p:P625"--> a4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end