What is {name after} of {hamburger}, that has {twin city} is {León} ?
"Which title after Ground sirloin sandwich, includes a twin city in Leon?"
"Which name after Hamburger, has a twin city in Leon?"
SELECT ?f WHERE { ?f property:twinned_administrative_body resource:León . resource:Hamburger property:named_after ?f }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q6663> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P138>. ?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/Q208151> . }
SELECT ?answer WHERE { wd:Q6663 wdt:P138 ?answer . ?answer wdt:P190 wd:Q208151}
Hamburg