"Which is birth location of Anne Perry, which has office of head of government is Mayor of London ?"
SELECT ?answer WHERE { wd:Q288627 wdt:P19 ?answer . ?answer wdt:P1313 wd:Q38931}
anne perry: Q288627 mayor of london: Q38931