"What is forename of John of Scotland, whichhas is said to be the same as is Hanns ?"
SELECT ?answer WHERE { wd:Q310065 wdt:P735 ?answer . ?answer wdt:P460 wd:Q16276296}
john of scotland: Q310065 hanns: Q16276296