The professional name for the task you are looking for is "question answering". These websites provide good question answering for free:
- https://www.google.co.il/search?q=who+is+the+president+of+the+us
- http://www.wolframalpha.com/input/?i=who+is+the+president+of+usa&lk=4&num=1
- http://start.csail.mit.edu/answer.php?query=who+is+the+president+of+the+US%3F
About the problem in general: