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_4L17FNG):
Calculate ( 8 * 1 ) - 8.

Question 1 (Question id: q_zJoNR4W):
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: "or"

Question 2 (Question id: q_GVoaFrG):
Calculate 2 + 2 * 2.

Question 3 (Question id: q_CX3MH):
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 4 ants, 2 snakes, 1 cow, 4 praying mantiss, 1 firefly?
 Respond with an integer.

Question 4 (Question id: q_VUy3):
Find the value of h in the equation: 20*h + 15 = 215 Respond with an integer.

Question 5 (Question id: q_JFiq):
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: "even"

Question 6 (Question id: q_GERA):
Solve for n: 35 - 18*n = 17 Respond with an integer.

Question 7 (Question id: q_bG1f):
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 4 shrimps, 4 dogs, 1 snake?
 Respond with an integer.



Return a JSON with each question id as a key.

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, add the field 'additional_answer_info' containing 'half_answer' (answer ÷ 2) and 'double_answer' (answer × 2).

Beyond the question-id fields, add a 'global_metadata' object with summary information:
• num_questions_asked – total number of questions originally shown.
• questions_with_integer_answers – list of question ids whose answers are integers (empty list if none).

Now provide the result JSON using the described format.

{"ground_truth": {"q_4L17FNG": {"answer": 0, "answer_type": "integer", "additional_answer_info": {"half_answer": 0, "double_answer": 0}}, "q_zJoNR4W": {"answer": "r", "answer_type": "string"}, "q_GVoaFrG": {"answer": 6, "answer_type": "integer", "additional_answer_info": {"half_answer": 3, "double_answer": 12}}, "q_CX3MH": {"answer": 58, "answer_type": "integer", "additional_answer_info": {"half_answer": 29, "double_answer": 116}}, "q_VUy3": {"answer": 10, "answer_type": "integer", "additional_answer_info": {"half_answer": 5, "double_answer": 20}}, "q_JFiq": {"answer": "n", "answer_type": "string"}, "q_GERA": {"answer": 1, "answer_type": "integer"}, "q_bG1f": {"answer": 56, "answer_type": "integer", "additional_answer_info": {"half_answer": 28, "double_answer": 112}}, "global_metadata": {"num_questions_asked": 8, "questions_with_integer_answers": ["q_4L17FNG", "q_GVoaFrG", "q_CX3MH", "q_VUy3", "q_GERA", "q_bG1f"]}}}