What is {deathplace} of {Louisa Lawson}, that has {queen} is {Bill Hayden} ?
Where is the deathplace of Louisa Lawson, whose queen is Bill Hayden?
"Where is {deathplace} of {Louisa Lawson}, which has {queen} is {Bill Hayden} ?"
SELECT ?n WHERE { ?n property:head_of_state resource:Bill_Hayden . resource:Louisa_Lawson property:place_of_death ?n }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q541929> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P20>. ?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/P35> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q250087> . }
SELECT ?answer WHERE { wd:Q541929 wdt:P20 ?answer . ?answer wdt:P35 wd:Q250087}