What is {forename} of {John of Scotland}, that has {is said to be the same as} is {Hanns} ?
"What is { forename } of { John of Scotland }, which is { the same as } { Hanns }?"
"What is {forename} of {John of Scotland}, whichhas {is said to be the same as} is {Hanns} ?"
SELECT ?d WHERE { ?d property:said_to_be_the_same_as resource:Hanns . resource:John_of_Scotland property:given_name ?d }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q310065> . ?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/Q16276296> . }
SELECT ?answer WHERE { wd:Q310065 wdt:P735 ?answer . ?answer wdt:P460 wd:Q16276296}
John