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_TzmG5R):
Calculate 2 - 1.

Question 1 (Question id: q_v6Pzi):
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 crickets, 2 cockroachs, 4 lobsters?
 Respond with an integer.

Question 2 (Question id: q_Qx02G):
Calculate 6 - -8 / 1.

Question 3 (Question id: q_teimIdj):
How many times does the letter "i" appear in the text: "and again"? Respond with an integer.



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

Each key’s value must be an object holding an 'answer' field.
Also add the answer type as 'string' or 'integer' to the field 'answer_type' for each object.
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 response to a question is a string, add a 'first_char' field containing its first character.
For animal-leg questions, add 'animal_types': an alphabetically-sorted list of unique animal names in singular form.

Beyond the question-id fields, add a 'global_metadata' object with summary information:
Include 'num_questions_asked' to record the total number of questions presented.
'num_questions_answered' must hold the number of answered questions.
• questions_with_integer_answers – list of question ids whose answers are integers (empty list if none).

Also include 'combined_results' consisting of:
  • integer_info – object mapping ids to their integer answers
  • sum_of_answers – sum of those integers

Now provide the result JSON using the described format.

{"ground_truth": {"q_v6Pzi": {"answer": 76, "answer_type": "integer", "additional_answer_info": {"half_answer": 38, "double_answer": 152}, "animal_types": ["cockroach", "cricket", "lobster"]}, "q_teimIdj": {"answer": 1, "answer_type": "integer"}, "q_TzmG5R": {"answer": 1, "answer_type": "integer"}, "global_metadata": {"num_questions_asked": 4, "num_questions_answered": 3, "questions_with_integer_answers": ["q_v6Pzi", "q_teimIdj", "q_TzmG5R"]}, "combined_results": {"integer_info": {"q_v6Pzi": 76, "q_teimIdj": 1, "q_TzmG5R": 1}, "sum_of_answers": 78}}}