Was Babylon the capital of the Achaemenid Empire and  the Neo-Babylonian Empire?
ASK WHERE { wd:Q5684 wdt:P1376 wd:Q389688 . wd:Q5684 wdt:P1376 wd:Q624887 }
babylon: Q5684 achaemenid empire: Q389688 babylon: Q5684 neo-babylonian empire: Q624887