query-5e61c148ef1cdc9748dcbd357c4ac902

rq turtle/ttl

Places within 0.01 degrees latitude and longitude of the Arc de Triomphe (Q64436)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?a ?aLabel ?lat ?long WHERE {
  ?a wdt:P131+ wd:Q90 .  # administrative territorial entity = Paris
  ?a p:P625 ?statement . # coordinate-location statement
  ?statement psv:P625 ?coordinate_node .
  ?coordinate_node wikibase:geoLatitude ?lat .
  ?coordinate_node wikibase:geoLongitude ?long .

  FILTER (ABS(?lat - 48.8738) < 0.01)
  FILTER (ABS(?long - 2.2950) < 0.01)

  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en" .
  }
} ORDER BY DESC(?lat)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?a"):::projected v5("?coordinate_node") v1("?lat"):::projected v2("?long"):::projected v4("?statement") c5(["wd:Q90"]):::iri c13(["en"]):::literal c11(["bd:serviceParam"]):::iri f0[["numeric-abs(?long - '2.2950^^xsd:decimal') < '0.01^^xsd:decimal'"]] f0 --> v2 f1[["numeric-abs(?lat - '48.8738^^xsd:decimal') < '0.01^^xsd:decimal'"]] f1 --> v1 v3 --"p:direct/P131"--> c5 v3 --"p:P625"--> v4 v4 --"p:statement/value/P625"--> v5 v5 --"wikibase:geoLatitude"--> v1 v5 --"wikibase:geoLongitude"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end