The task is to generate text based off of an event. For the given event, there will be a person who does the action in the event (usually PersonX). Your task is to write that persons intent behind doing the event, i.e. why did the person do that action.

[EX Q]: PersonX opens the door for PersonY
[EX A]: to be polite

[EX Q]: PersonX walks to PersonY's car
[EX A]: to reach the mode of transportation

[EX Q]: PersonX asks PersonY what happened
[EX A]:
to know what happened