refine output result: only provide answers to the questions in the query (free vars)