query-05384127e56d805f9e35818de432e98b
. Can anyone explain this? (Q9240)Indonesian with four results that I can see is that the latter also has a description in Q41427943 with one result and Q41411330 giving four identical result rows whereas the other objects only give one result. In the following query I have removed everything else but the coordinates. The only "structural difference" between the object Q41427943 gives three more results rows. It boils down to the object p above, the version using p and the solution based on wdtI noticed a slight difference between the solutions based on
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?lat ?lon WHERE {
VALUES ?item { wd:Q41427943 wd:Q41411330 }
#why does Q41427943 give FOUR results rows but Q41411330 only gives ONE?
#the only? structural difference between these two objects is that Q41427943 has a desccription in 'id' (indonesian)!
?item p:P625 ?coord .
?coord psv:P625 ?coord_node .
?coord_node wikibase:geoLongitude ?lon .
?coord_node wikibase:geoLatitude ?lat .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?coord")
v3("?coord_node")
v1("?item"):::projected
v5("?lat"):::projected
v4("?lon"):::projected
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q41427943"])
bind00 --> bind0
bind01(["wd:Q41411330"])
bind01 --> bind0
v1 --"p:P625"--> v2
v2 --"p:statement/value/P625"--> v3
v3 --"wikibase:geoLongitude"--> v4
v3 --"wikibase:geoLatitude"--> v5