query-5e0e724d09e7fca5cb96498066bb060c
Bouzinac
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 bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?operator ?operatorLabel
WHERE
{
?item wdt:P31 / wdt:P279 * wd:Q62447 . # item is aerodrome
MINUS { ?item wdt:P31 / wdt:P279 * wd:Q695850 . } # but not airbase
?item wdt:P137 ?operator .
?operator wdt:P31 / wdt:P279 * wd:Q15627509 . # operator is a military organization
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?operator"):::projected
a1((" "))
a2((" "))
a3((" "))
c6(["wd:Q15627509"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en,fr"]):::literal
c4(["wd:Q695850"]):::iri
c3(["wd:Q62447"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c4
end
v1 --"wdt:P137"--> v2
v2 --"wdt:P31"--> a3
a3 --"wdt:P279"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end