query-e4e15c5a0520d7c183a55ef7dafb364d

rq turtle/ttl

Propertiesinstance of (P31)subclass of (P279)connects with (P2789)

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 ?a ?b ?aLabel ?bLabel {
  ?a  wdt:P31/wdt:P279  wd:Q1248784. #... something that is Airport
  ?a  wdt:P2789+          ?b.        #^ eventually connected to V
  ?b  wdt:P31/wdt:P279  wd:Q515      #... something is a city
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
LIMIT 1000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?a"):::projected v2("?b"):::projected a1((" ")) a2((" ")) c3(["wd:Q1248784"]):::iri c7(["bd:serviceParam"]):::iri c5(["wd:Q515"]):::iri c9(["en"]):::literal v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P2789"--> v2 v2 --"wdt:P31"--> a2 a2 --"wdt:P279"--> c5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end