query-bc53d68443ce8d29b62c35bd75b2c684

rq turtle/ttl

Cours d'eau du bassin de l'estuaire du Saint-Laurent SELECT DISTINCT ?id ?idLabel ?municipLabel ?mrcLabel ?regionLabel
WHERE { ?id wdt:P31/wdt:P279 wd:Q355304 . ?id wdt:P4614 wd:Q51885235 . ?id wdt:P131 ?municip . ?municip wdt:P131 ?mrc . ?mrc wdt:P131 ?region . FILTER NOT EXISTS { ?id wdt:P2100 ?ctq } SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" . } } ORDER BY ?regionLabel ?mrcLabel ?municipLabel LIMIT 500

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Cours d'eau du bassin de l'estuaire du Saint-Laurent
SELECT DISTINCT ?id ?idLabel ?municipLabel ?mrcLabel ?regionLabel  
WHERE 
{
    ?id wdt:P31/wdt:P279* wd:Q355304 .
    ?id wdt:P4614* wd:Q51885235  .
    ?id wdt:P131 ?municip .
    ?municip wdt:P131 ?mrc .
    ?mrc wdt:P131 ?region .
    FILTER NOT EXISTS { ?id wdt:P2100 ?ctq }
    SERVICE wikibase:label {
        bd:serviceParam wikibase:language "fr,en" .
    }
} 
ORDER BY ?regionLabel ?mrcLabel ?municipLabel
LIMIT 500

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?ctq") v4("?id"):::projected v7("?mrc") v2("?mrcLabel"):::projected v6("?municip") v3("?municipLabel"):::projected v8("?region") v1("?regionLabel"):::projected a1((" ")) c4(["wd:Q355304"]):::iri c9(["bd:serviceParam"]):::iri c11(["fr,en"]):::literal c6(["wd:Q51885235"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P2100"--> e0v2 e0v2("?ctq"):::projected e0v1("?id"):::projected end f0--EXISTS--> f0e0 f0 --> v4 f0 --> c1 f0 --> v5 v4 --"wdt:P2100"--> v5 v4 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c4 v4 --"wdt:P4614"--> c6 v4 --"wdt:P131"--> v6 v6 --"wdt:P131"--> v7 v7 --"wdt:P131"--> v8 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end