What is {basin countries} of {on the shore of} of {Lefkada} ?
Which country in in the border with Lefkanda?
What country is near Lefkada?
SELECT ?x WHERE { resource:Lefkada property:located_in_or_next_to_body_of_water ?f . ?f property:basin_country ?x }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q190138> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P206>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P205> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q190138 wdt:P206 ?X . ?X wdt:P205 ?answer}
Italy Greece Albania