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_5HoMCs):
Determine the value of v that satisfies: 40 - 360*v = -320 Respond with an integer.

Question 1 (Question id: q_cghbn):
How many times does the letter "a" appear in the text: "advertisement hall he"? Respond with an integer.

Question 2 (Question id: q_OIFVwa):
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 2 butterflys, 3 shrimps, 3 lions, 3 ducks?
 Respond with an integer.

Question 3 (Question id: q_IqiaMi):
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 bees, 1 insect, 3 woodlouses, 4 praying mantiss?
 Respond with an integer.

Question 4 (Question id: q_Tsmssu):
Determine the value of u that satisfies: 44*u + 5 = 841 Respond with an integer.

Question 5 (Question id: q_sVTF2):
Calculate -5 - -7 + 3.

Question 6 (Question id: q_SUYPTDZ9):
How many times does the letter "o" appear in the text: "to help"? Respond with an integer.

Question 7 (Question id: q_aonXchoO):
Calculate -5 * -7 * 4.

Question 8 (Question id: q_Uke5b):
How many times does the letter "t" appear in the text: "Gutenberg is a"? Respond with an integer.

Question 9 (Question id: q_DLWb8KeS):
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: "are"



Return a JSON with each question id as a key.

Each key’s value must be an object holding an 'answer' field.
For even integer answers, include 'half_answer' equal to answer ÷ 2.
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:
• num_questions_asked: how many questions were asked in total.
Fill 'questions_with_integer_answers' with the ids of integer-answer questions (leave empty when none).

Now provide the result JSON using the described format.

{"ground_truth": {"q_5HoMCs": {"answer": 1}, "q_cghbn": {"answer": 2, "half_answer": 1}, "q_OIFVwa": {"answer": 60, "half_answer": 30}, "q_IqiaMi": {"answer": 96, "half_answer": 48}, "q_Tsmssu": {"answer": 19}, "q_sVTF2": {"answer": 5}, "q_SUYPTDZ9": {"answer": 1}, "q_aonXchoO": {"answer": 140, "half_answer": 70}, "q_Uke5b": {"answer": 1}, "q_DLWb8KeS": {"answer": "e", "first_char": "e", "original_string": "are"}, "global_metadata": {"num_questions_asked": 10, "questions_with_integer_answers": ["q_5HoMCs", "q_cghbn", "q_OIFVwa", "q_IqiaMi", "q_Tsmssu", "q_sVTF2", "q_SUYPTDZ9", "q_aonXchoO", "q_Uke5b"]}}}