query-93f99db98c4a2b66a4e469b7a3c3f581

rq turtle/ttl

navy indirect location

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 ?organisation ?organisationLabel ?location ?locationLabel ?coordinates WHERE {
  ?organisation wdt:P159 ?hq;
    wdt:P31 wd:Q4508.
  ?hq wdt:P131 ?location.
  ?location wdt:P625 ?coordinates.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en-gb,en,mul". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?coordinates"):::projected v2("?hq") v3("?location"):::projected v1("?organisation"):::projected c9(["en-gb,en,mul"]):::literal c7(["bd:serviceParam"]):::iri c3(["wd:Q4508"]):::iri v1 --"wdt:P159"--> v2 v1 --"wdt:P31"--> c3 v2 --"wdt:P131"--> v3 v3 --"wdt:P625"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end