query-9ead3abdd9e044a87b30bc77b95fe387

rq turtle/ttl

BouzinacGROUP BYSAMPLE

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#>
SELECT DISTINCT ?airport ?airportLabel (SAMPLE(?coord) AS ?coord) ?ICAO ?IATA ?FAA ?Code_Transport_Canada WHERE {
?airport (wdt:P31/wdt:P279*) wd:Q62447.
?airport ?range wd:Q986.
MINUS { ?airport wdt:P576 _:b2. }
MINUS { ?airport (wdt:P31/wdt:P279*) wd:Q695850. }
MINUS { ?airport (wdt:P31/wdt:P279*) wd:Q1311670. }
MINUS { ?airport (wdt:P31/wdt:P279*) wd:Q7373622. }
MINUS { ?airport (wdt:P31/wdt:P279*) wd:Q502074. }
MINUS { ?airport (wdt:P31/wdt:P279*) wd:Q44665966. }
MINUS { ?airport wdt:P582 _:b3. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
OPTIONAL { ?airport wdt:P625 ?coord. }
OPTIONAL { ?airport wdt:P239 ?ICAO. }
OPTIONAL { ?airport wdt:P238 ?IATA. }
OPTIONAL { ?airport wdt:P240 ?FAA. }
OPTIONAL { ?airport wdt:P5699 ?Code_Transport_Canada. }
}
GROUP BY ?airport ?airportLabel ?ICAO ?IATA ?FAA ?Code_Transport_Canada
ORDER BY ?coordonn_es_g_ographiques

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v8("?Code_Transport_Canada"):::projected v7("?FAA"):::projected v6("?IATA"):::projected v5("?ICAO"):::projected v2("?airport"):::projected v9("?coord"):::projected v1("?coordonn_es_g_ographiques") v3("?range") a2((" ")) a8((" ")) a1((" ")) a3((" ")) a4((" ")) a5((" ")) a6((" ")) a7((" ")) c8(["wd:Q7373622"]):::iri c3(["wd:Q62447"]):::iri c13(["bd:serviceParam"]):::iri c7(["wd:Q1311670"]):::iri c4(["wd:Q986"]):::iri c6(["wd:Q695850"]):::iri c10(["wd:Q44665966"]):::iri c15(["#91;AUTO_LANGUAGE#93;,en"]):::literal c9(["wd:Q502074"]):::iri v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v2 -->v3--> c4 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P576"--> a2 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P31"--> a3 a3 --"wdt:P279"--> c6 end subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P31"--> a4 a4 --"wdt:P279"--> c7 end subgraph minus3["MINUS"] style minus3 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P31"--> a5 a5 --"wdt:P279"--> c8 end subgraph minus4["MINUS"] style minus4 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P31"--> a6 a6 --"wdt:P279"--> c9 end subgraph minus5["MINUS"] style minus5 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P31"--> a7 a7 --"wdt:P279"--> c10 end subgraph minus6["MINUS"] style minus6 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P582"--> a8 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P625".-> v9 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P239".-> v5 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P238".-> v6 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P240".-> v7 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P5699".-> v8 end bind8[/"sample(?coord)"/] v9 --o bind8 bind8 --as--o v9