What is {borders} of {Northamptonshire}, that has {namesake} is {Leicester} ?
What are the borders of Northamptonshire, whose namesake is Leicester
What are the borders of Northamptonshire, whose namesake is Leicester?
SELECT ?z WHERE { resource:Northamptonshire property:shares_border_with ?z . ?z property:named_after resource:Leicester }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q23115> . ?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/P138> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q83065> . }
SELECT ?answer WHERE { wd:Q23115 wdt:P47 ?answer . ?answer wdt:P138 wd:Q83065}
Leicestershire