Problem: Alex stayed awake to study for a big test that was scheduled for the next day. Given that the answer to a question is "get a good grade", what is the question?

A: Why did Alex do this?

Problem: Given the question: Remy invited friends over for a dinner party so they could show off their new house. Given that the answer to a question is "purchase enough food to serve everyone", what is the question?
++++++++++++++++++++++++++++++++
The answer is:
What does Remy need to do before this?

input question: Madelyn was applying to nursing school and asked Lee for a recommendation letter. Given that the answer to a question is "do good work for Lee to impress them", what is the question????
output answer: What did Madelyn need to do before this?

The thugs were chasing Kai. Kai ran really fast towards home. Given that the answer to a question is "needed to make certain he knew the way", what is the question?
----
Answer: Before this what does Kai need to do?

Q: At lunchtime, Quinn still had a lot of work to do, so they put money into the vending machine and got a sandwich instead of going out to eat. Given that the answer to a question is "Have something to eat for lunch", what is the question?
A: Why did Quinn do this?

[Q]: Aubrey reached the office in time and had a good time explaining the weird traffic. Given that the answer to a question is "creative", what is the question?
****
[A]:
Why did Aubrey do this?