TASK DEFINITION: In this task, you are given a question, and your task is to predict the context of the question. We assume that someone named X asked the question from Y. The context of the question means the previous situation that led X to ask this question.
PROBLEM: Are you heading home?

SOLUTION: X and Y are colleagues who are leaving work on a Friday at the same time.

PROBLEM: Would you go to Barnes & Nobles with me?

SOLUTION: X wants to know what sorts of books Y likes to read.

PROBLEM: Have you lived in New York before?

SOLUTION:
Y has just told X that he/she is thinking of buying a flat in New York.