query-3678bf9fcd17e0a7a7aae99878da303a
Items in the Ghana with coordinate location (P625) on or near 1 degree 50 west
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 psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
#Items in the Ghana with coordinate location (P625) on or near 1 degree 50 west
SELECT ?p ?pLabel ?loc WHERE {
{
SELECT ?p ?longitude ?test WHERE {
?p wdt:P17 wd:Q145 .
?p p:P625 [
psv:P625 [
wikibase:geoLongitude ?longitude ]
]
FILTER (ABS(?longitude + 1.83333) < 0.01)
} } ?p wdt:P625 ?loc .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?loc"):::projected
v1("?longitude")
v2("?p"):::projected
a2((" "))
a1((" "))
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c4(["wd:Q145"]):::iri
f0[["numeric-abs(?longitude + '1.83333^^xsd:decimal') < '0.01^^xsd:decimal'"]]
f0 --> v1
v2 --"p:direct/P17"--> c4
a1 --"wikibase:geoLongitude"--> v1
a2 --"p:statement/value/P625"--> a1
v2 --"p:P625"--> a2
v2 --"p:direct/P625"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end