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_ZJ8D):
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: "a"

Question 1 (Question id: q_aYPEf):
Solve for q: -6*q - 12 = -108 Respond with an integer.

Question 2 (Question id: q_1YIcaJMe):
Find the value of w in the equation: 120*w + 3 = 1203 Respond with an integer.

Question 3 (Question id: q_26JQ):
Calculate -4 * 0.

Question 4 (Question id: q_hlBQKO):
Calculate ( 4 / 1 + -3 ).

Question 5 (Question id: q_20ud):
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: "is"

Question 6 (Question id: q_Rty3fSJv):
Calculate 4 * 9 / 3.



Output JSON where all question ids are keys, omitting q_Rty3fSJv, q_hlBQKO, q_ZJ8D.

Each key’s value must be an object holding an 'answer' field. 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 integers, nest 'half_answer' and 'double_answer' inside an additional 'additional_answer_info' field in the answer object.
For last-character tasks, provide 'original_string' alongside the answer.

Beyond the question-id fields, add a 'global_metadata' object with summary information:
• num_questions_asked – total number of questions originally shown.
• num_questions_answered – number you actually answered.
Provide 'questions_with_integer_answers', listing ids with integer answers (or [] if no integers).

Now provide the result JSON using the described format.

{"ground_truth": {"q_20ud": {"answer": "s", "answer_type": "string", "original_string": "is"}, "q_aYPEf": {"answer": 16, "answer_type": "integer", "additional_answer_info": {"half_answer": 8, "double_answer": 32}}, "q_26JQ": {"answer": 0, "answer_type": "integer", "additional_answer_info": {"half_answer": 0, "double_answer": 0}}, "q_1YIcaJMe": {"answer": 10, "answer_type": "integer", "additional_answer_info": {"half_answer": 5, "double_answer": 20}}, "global_metadata": {"num_questions_asked": 7, "num_questions_answered": 4, "questions_with_integer_answers": ["q_aYPEf", "q_26JQ", "q_1YIcaJMe"]}}}