What is {next to} of {Almería}, that has {inhabitants} is {4288.0} ?
What's next to Almeria and has a population of 4288.0?
What is next to Almeria and has 4288.0 inhabitants?
SELECT ?c WHERE { FILTER ( ?s = 4288.0 ) . ?c property:population ?s . resource:Almería property:shares_border_with ?c }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q10400> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1082> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <4288.0> . }
SELECT ?answer WHERE { wd:Q10400 wdt:P47 ?answer . ?answer wdt:P1082 ?x FILTER(contains(?x , '4288.0'))}