What is {middle name} of {Harold Wilson}, that has {same as} is {Andrin} ?
What is Harold Wilson's middle name? Is it the equal as Andrin's?
What is Harold Wilson's middle name?  Is it the same as Andrin's?
SELECT ?x WHERE { ?x property:said_to_be_the_same_as resource:Andrin . resource:Harold_Wilson property:given_name ?x }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q128956> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P735>. ?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/P460> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q511611> . }
SELECT ?answer WHERE { wd:Q128956 wdt:P735 ?answer . ?answer wdt:P460 wd:Q511611}
Harold