What is {has capital} of {Grand Duchy of Tuscany}, that has {twin city} is {Asmara} ?
What is the capital of Tuscany that has a twin town named Asmara?
What is the capital of Tuscany that has a twin city named Asmara?
SELECT ?g WHERE { resource:Grand_Duchy_of_Tuscany property:capital ?g . ?g property:twinned_administrative_body resource:Asmara }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q154849> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P36>. ?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/P190> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q3642> . }
SELECT ?answer WHERE { wd:Q154849 wdt:P36 ?answer . ?answer wdt:P190 wd:Q3642}
Florence