query-50784c6d91b3b2dc67db40c9c159b32f
Places visited by all expeditions (and subtypes) known to Wikidata
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?layer ?loc ?placename ?coords WHERE {
{ SELECT ?exp (COUNT(?loc) AS ?count) WHERE {
?exp wdt:P31/wdt:P279* wd:Q2401485.
?exp wdt:P276 ?loc.
} GROUP BY ?exp }
FILTER (?count > 1)
?exp wdt:P276 ?loc.
?loc wdt:P625 ?coords.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". ?exp rdfs:label ?layer. ?loc rdfs:label ?placename }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?coords"):::projected
v4("?count")
v2("?exp")
v5("?layer"):::projected
v3("?loc"):::projected
v6("?placename"):::projected
a1((" "))
c8(["bd:serviceParam"]):::iri
c4(["wd:Q2401485"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?count > '1^^xsd:integer'"]]
f0 --> v4
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
v2 --"wdt:P276"--> v3
bind2[/"count(?loc)"/]
v3 --o bind2
bind2 --as--o v4
v2 --"wdt:P276"--> v3
v3 --"wdt:P625"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
v2 --"rdfs:label"--> v5
v3 --"rdfs:label"--> v6
end