Input: What is the capital of andhra pradesh and telangana?
Output: 

 What was the capital of Andhra Pradesh prior to 2 June 2014? 
 Hyderabad