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_Ronu2SM4):
Your task is to count how many legs there are in total when given a list of animals.

Now, how many legs are there in total if you have 1 chicken, 2 sheeps, 2 wasps?
 Respond with an integer.

Question 1 (Question id: q_tSFNHw2z):
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 2 (Question id: q_jT4H):
Calculate 4 + 9.

Question 3 (Question id: q_W15RmR):
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 4 (Question id: q_ROmmdsH):
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 5 (Question id: q_CQt0H):
Determine the value of j that satisfies: -20*j - 7 = -67 Respond with an integer.

Question 6 (Question id: q_2dLZo):
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: "and"

Question 7 (Question id: q_oHdCi):
Calculate 8 * 6 - -2.

Question 8 (Question id: q_PgiiRG):
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: "the"

Question 9 (Question id: q_qCle):
Solve for x: 18*x + 11 = 299 Respond with an integer.



Your output must be a JSON mapping every question id to its answer info.

The value for each key should be an object that contains the answer in the field 'answer'.
Include an 'answer_type' field (value 'string' or 'integer') for every answer object.
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.
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'.
'questions_with_integer_answers' should enumerate every id whose answer is an integer.

Now provide the result JSON using the described format.

{"ground_truth": {"q_Ronu2SM4": {"answer": 22, "answer_type": "integer", "half_answer": 11}, "q_tSFNHw2z": {"answer": "s", "answer_type": "string", "original_string": "is"}, "q_jT4H": {"answer": 13, "answer_type": "integer"}, "q_W15RmR": {"answer": "s", "answer_type": "string", "original_string": "is"}, "q_ROmmdsH": {"answer": "s", "answer_type": "string", "original_string": "is"}, "q_CQt0H": {"answer": 3, "answer_type": "integer"}, "q_2dLZo": {"answer": "d", "answer_type": "string", "original_string": "and"}, "q_oHdCi": {"answer": 50, "answer_type": "integer", "half_answer": 25}, "q_PgiiRG": {"answer": "e", "answer_type": "string", "original_string": "the"}, "q_qCle": {"answer": 16, "answer_type": "integer", "half_answer": 8}, "global_metadata": {"num_questions_asked": 10, "num_questions_answered": 10, "questions_with_integer_answers": ["q_Ronu2SM4", "q_jT4H", "q_CQt0H", "q_oHdCi", "q_qCle"]}}}