Was Babylon the capital of the Achaemenid Empire and  the Neo-Babylonian Empire?
ASK WHERE { wd:/Babylon/ wdt:/capital of/ wd:/Achaemenid Empire/ . wd:/Babylon/ wdt:/capital of/ wd:/Neo-Babylonian Empire/ }