What is {sequel is} of {Kingdom of Sardinia}, that has {chef-lieu} is {Rome} ?
Which King took over from Sardini of Rome?
Which sequel is Kingdom of Sardinia, whose chef-lieu is in Rome?
SELECT ?y WHERE { ?y property:capital resource:Rome . resource:Kingdom_of_Sardinia property:followed_by ?y }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q165154> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P156>. ?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/P36> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q220> . }
SELECT ?answer WHERE { wd:Q165154 wdt:P156 ?answer . ?answer wdt:P36 wd:Q220}
Kingdom of Italy