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_wzD0):
Find the value of o in the equation: 31 - o = 22 Respond with an integer.

Question 1 (Question id: q_GrqMxG):
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 tigers, 1 lobster, 2 elephants, 4 cats?
 Respond with an integer.

Question 2 (Question id: q_33ZuyUmg):
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 chickens, 4 horses, 4 sea slugs, 4 lions?
 Respond with an integer.

Question 3 (Question id: q_KrikhQ8n):
Calculate 3 + 6 * 8.

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

Question 5 (Question id: q_e1LmVWvJ):
Calculate 6 * 5.



Produce a JSON object whose top-level keys are the question ids.

For every question id, supply an object whose 'answer' field stores the solution.
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, also add the field 'half_answer' to the object which contains the answer integer divided by two.
If the response to a question is a string, add a 'first_char' field containing its first character.

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_wzD0": {"answer": 9, "answer_type": "integer"}, "q_GrqMxG": {"answer": 42, "answer_type": "integer", "half_answer": 21}, "q_33ZuyUmg": {"answer": 36, "answer_type": "integer", "half_answer": 18}, "q_KrikhQ8n": {"answer": 51, "answer_type": "integer"}, "q_yWEHqd": {"answer": 96, "answer_type": "integer", "half_answer": 48}, "q_e1LmVWvJ": {"answer": 30, "answer_type": "integer", "half_answer": 15}, "global_metadata": {"num_questions_asked": 6}}}