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_x31x6WYK):
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, 1 bird, 2 ants?
 Respond with an integer.

Question 1 (Question id: q_y90kqq):
Calculate 7 + -8 / 2.

Question 2 (Question id: q_2EQVfwcJ):
Calculate 1 + -2 - -2.

Question 3 (Question id: q_pOpISEi):
Calculate ( 5 - -9 ).

Question 4 (Question id: q_sAIW):
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 birds, 1 ant, 4 butterflys, 1 praying mantis, 1 shrimp?
 Respond with an integer.

Question 5 (Question id: q_PBiJ2q):
Solve for o: 17*o - 2 = 15 Respond with an integer.

Question 6 (Question id: q_iRjTY):
Determine the value of l that satisfies: 37 - 14*l = -75 Respond with an integer.

Question 7 (Question id: q_jC6T):
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 8 (Question id: q_c3SBwsF8):
How many times does the letter "r" appear in the text: "Faithburn was coffined"? Respond with an integer.

Question 9 (Question id: q_rKPMPWtU):
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 cockroachs, 3 sheeps, 2 jellyfishs, 4 starfishs, 4 wasps?
 Respond with an integer.

Question 10 (Question id: q_vO2F3):
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 beetles, 4 cockroachs, 3 giraffes, 3 starfishs, 2 sea slugs?
 Respond with an integer.



Return a JSON with each question id (except for q_vO2F3, q_PBiJ2q) 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.
When counting animal legs, include an 'animal_types' list of the distinct animal names (singular, sorted).

Beyond the question-id fields, add a 'global_metadata' object with summary information:
• num_questions_asked: how many questions were asked in total.
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_c3SBwsF8": {"answer": 1}, "q_iRjTY": {"answer": 8, "half_answer": 4}, "q_jC6T": {"answer": "e"}, "q_rKPMPWtU": {"answer": 68, "half_answer": 34, "animal_types": ["cockroach", "jellyfish", "sheep", "starfish", "wasp"]}, "q_y90kqq": {"answer": 3}, "q_pOpISEi": {"answer": 14, "half_answer": 7}, "q_2EQVfwcJ": {"answer": 1}, "q_sAIW": {"answer": 50, "half_answer": 25, "animal_types": ["ant", "bird", "butterfly", "praying mantis", "shrimp"]}, "q_x31x6WYK": {"answer": 14, "half_answer": 7, "animal_types": ["ant", "bird", "flatworm"]}, "global_metadata": {"num_questions_asked": 11, "questions_with_integer_answers": ["q_c3SBwsF8", "q_iRjTY", "q_rKPMPWtU", "q_y90kqq", "q_pOpISEi", "q_2EQVfwcJ", "q_sAIW", "q_x31x6WYK"]}}}