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_FbeoZ8p):
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: "rainforests"

Question 1 (Question id: q_0oozBsFH):
Calculate ( 0 - -2 - -3 ).

Question 2 (Question id: q_sa5x0y6L):
Solve for z: -11*z - 6 = -116 Respond with an integer.

Question 3 (Question id: q_Sm0dVte):
Calculate 1 + 5.

Question 4 (Question id: q_OlAy2):
Calculate 1 + 1.

Question 5 (Question id: q_egzdoIpU):
How many times does the letter "n" appear in the text: "condition of a"? Respond with an integer.

Question 6 (Question id: q_qtiV):
Solve for h: 18 - 5*h = -67 Respond with an integer.



Output JSON where all question ids are keys, omitting q_Sm0dVte, q_0oozBsFH, q_OlAy2.

The value for each key should be an object that contains the answer in the field 'answer'. Additionally, if the task is about counting legs of animals or counting letters in a string, add the task_type field with value 'leg_counting' or 'letter_counting', respectively.
Also add the answer type as 'string' or 'integer' to the field 'answer_type' for each object.
For even integer answers, include 'half_answer' equal to answer ÷ 2.
For last-character tasks, provide 'original_string' alongside the answer.

Add a top-level 'global_metadata' field that records overall stats:
Set 'num_questions_asked' to the count of questions originally displayed.

Now provide the result JSON using the described format.

{"ground_truth": {"q_egzdoIpU": {"answer": 2, "task_type": "letter_counting", "answer_type": "integer", "half_answer": 1}, "q_sa5x0y6L": {"answer": 10, "answer_type": "integer", "half_answer": 5}, "q_qtiV": {"answer": 17, "answer_type": "integer"}, "q_FbeoZ8p": {"answer": "s", "answer_type": "string", "original_string": "rainforests"}, "global_metadata": {"num_questions_asked": 7}}}