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_ttMUjk):
Solve for r: 20*r - 20 = 240 Respond with an integer.

Question 1 (Question id: q_53TpQ):
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: "species"

Question 2 (Question id: q_Yl2aCde):
How many times does the letter "d" appear in the text: "building a vast"? Respond with an integer.

Question 3 (Question id: q_oIVm):
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 wasp, 4 lobsters, 4 giraffes, 3 cats?
 Respond with an integer.

Question 4 (Question id: q_edRjw):
How many times does the letter "n" appear in the text: "meantime men"? Respond with an integer.

Question 5 (Question id: q_lXiBfB53):
Calculate 8 + 4.

Question 6 (Question id: q_5kIs):
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 bird, 1 scorpion, 4 humans, 3 wasps?
 Respond with an integer.



Output JSON where all question ids are keys, omitting q_lXiBfB53.

Each key’s value must be an object holding an 'answer' field.
For even integer answers, include 'half_answer' equal to answer ÷ 2.
For string answers, include 'first_char' with the answer’s initial letter.

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_53TpQ": {"answer": "s", "first_char": "s"}, "q_Yl2aCde": {"answer": 1}, "q_edRjw": {"answer": 2, "half_answer": 1}, "q_5kIs": {"answer": 36, "half_answer": 18}, "q_oIVm": {"answer": 98, "half_answer": 49}, "q_ttMUjk": {"answer": 13}, "global_metadata": {"num_questions_asked": 7}}}