query-8b4b0b8057e6ed7ac18e4d80ddae1a4b

rq turtle/ttl

Airports less than 100km from Berlin didn't workI tried the query about the Berlin airports given in the examples and I exceed the time allowed : Hi,

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#>
#Aéroports à moins de 100 km de Berlin
#added before 2016-10

#defaultView:Map
SELECT ?place ?placeLabel ?location
WHERE
{
  # Berlin coordinates
  wd:Q64 wdt:P625 ?berlinLoc .
  SERVICE wikibase:around {
      ?place wdt:P625 ?location .
      bd:serviceParam wikibase:center ?berlinLoc .
      bd:serviceParam wikibase:radius "100" .
  }
  # Is an airport
  ?place wdt:P31/wdt:P279* wd:Q1248784 .
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en" .
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?berlinLoc") v3("?location"):::projected v2("?place"):::projected a1((" ")) c1(["wd:Q64"]):::iri c13(["en"]):::literal c7(["100"]):::literal c4(["bd:serviceParam"]):::iri c10(["wd:Q1248784"]):::iri c1 --"wdt:P625"--> v1 subgraph s1["http://wikiba.se/ontology#around"] style s1 stroke-width:4px; v2 --"wdt:P625"--> v3 c4 --"wikibase:center"--> v1 c4 --"wikibase:radius"--> c7 end v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c10 subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c4 --"wikibase:language"--> c13 end