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_7GiaTW):
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 3 tigers, 1 duck, 4 crickets, 3 chickens, 2 woodlouses?
 Respond with an integer.

Question 1 (Question id: q_6PCcvW):
How many times does the letter "r" appear in the text: "pleased at her"? Respond with an integer.

Question 2 (Question id: q_1RyT):
Determine the value of n that satisfies: 8 - 18*n = -172 Respond with an integer.

Question 3 (Question id: q_uatiUv5):
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 flatworms, 2 crickets, 4 leechs?
 Respond with an integer.

Question 4 (Question id: q_7jBfq):
How many times does the letter "o" appear in the text: "EBOOK IN"? Respond with an integer.

Question 5 (Question id: q_twp9rWl):
How many times does the letter "i" appear in the text: "him for"? Respond with an integer.

Question 6 (Question id: q_VK45):
Calculate 5 + -1 * 3.

Question 7 (Question id: q_0RmDyC):
Solve for a: 12*a + 17 = 89 Respond with an integer.

Question 8 (Question id: q_rXVk0ACh):
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: "connects"

Question 9 (Question id: q_ymln4):
How many times does the letter "o" appear in the text: "EBOOK IN"? Respond with an integer.



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

For every question id, supply an object whose 'answer' field stores the solution.
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).
If the question asks for the last character of a string, add an 'original_string' field containing the source string.
For animal-leg questions, add 'animal_types': an alphabetically-sorted list of unique animal names in singular form.

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_7GiaTW": {"answer": 72, "additional_answer_info": {"half_answer": 36, "double_answer": 144}, "animal_types": ["chicken", "cricket", "duck", "tiger", "woodlouse"]}, "q_6PCcvW": {"answer": 1}, "q_1RyT": {"answer": 10, "additional_answer_info": {"half_answer": 5, "double_answer": 20}}, "q_uatiUv5": {"answer": 12, "additional_answer_info": {"half_answer": 6, "double_answer": 24}, "animal_types": ["cricket", "flatworm", "leech"]}, "q_7jBfq": {"answer": 2, "additional_answer_info": {"half_answer": 1, "double_answer": 4}}, "q_twp9rWl": {"answer": 1}, "q_VK45": {"answer": 2, "additional_answer_info": {"half_answer": 1, "double_answer": 4}}, "q_0RmDyC": {"answer": 6, "additional_answer_info": {"half_answer": 3, "double_answer": 12}}, "q_rXVk0ACh": {"answer": "s", "original_string": "connects"}, "q_ymln4": {"answer": 2, "additional_answer_info": {"half_answer": 1, "double_answer": 4}}, "global_metadata": {"num_questions_asked": 10}}}