Here is a set of basic questions producing integer or string outputs. Answer them and format the result precisely with the JSON instructions provided:

Question 0 (Question id: q_Qe7O):
Your job is to return the last character of a string as a string. For example, the last char of "hello" is "o". Return the last character of the following string: "people"

Question 1 (Question id: q_U2ovkKMl):
How many times does the letter "h" appear in the text: "scheme Leave your"? Respond with an integer.

Question 2 (Question id: q_v41o):
Calculate -1 * 0.

Question 3 (Question id: q_arygb5z):
How many times does the letter "n" appear in the text: "Project Gutenberg s"? Respond with an integer.



Create a JSON object keyed by every question id except q_v41o.

For every question id, supply an object whose 'answer' field stores the solution.
If the response to a question is an integer that is even, also add the field 'half_answer' to the object which contains the answer integer divided by two.
If the response to a question is a string, add a 'first_char' field containing its first character.
For last-character tasks, provide 'original_string' alongside the answer.

Add a top-level 'global_metadata' field that records overall stats:
Include 'num_questions_asked' to record the total number of questions presented.
Record the answered-question count in the field 'num_questions_answered'.

Now provide the result JSON using the described format.

{"ground_truth": {"q_arygb5z": {"answer": 1}, "q_U2ovkKMl": {"answer": 1}, "q_Qe7O": {"answer": "e", "first_char": "e", "original_string": "people"}, "global_metadata": {"num_questions_asked": 4, "num_questions_answered": 3}}}