query-557a0dc42ac265a2f867e8506f266741
Affluent du Saint-Laurent sans longueur
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 ?item ?itemLabel ?bassinLabel ?estuaireLabel
WHERE
{
?item wdt:P4614/wdt:P361* wd:Q48983740 . # Bassin du fleuve Saint-Laurent
?item wdt:P31/wdt:P279* wd:Q355304 .
?item wdt:P4614 ?bassin .
OPTIONAL { ?item p:P4614 [ pq:P518 ?estuaire ] }
FILTER NOT EXISTS { ?item wdt:P2043 ?long }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "fr,en"
}
}
ORDER BY (?itemLabel)
LIMIT 700
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?bassin")
v5("?estuaire")
v2("?item"):::projected
v1("?itemLabel"):::projected
v3("?long")
a1((" "))
a2((" "))
a3((" "))
c4(["wd:Q48983740"]):::iri
c7(["wd:Q355304"]):::iri
c11(["bd:serviceParam"]):::iri
c13(["fr,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:direct/P2043"--> e0v2
e0v1("?item"):::projected
e0v2("?long"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
v2 --"p:direct/P2043"--> v3
v2 --"p:direct/P4614"--> a1
a1 --"p:direct/P361"--> c4
v2 --"p:direct/P31"--> a2
a2 --"p:direct/P279"--> c7
v2 --"p:direct/P4614"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
a3 -."p:qualifier/P518".-> v5
v2 --"p:P4614"--> a3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end