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_CZHmdZ):
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 chicken, 3 giraffes, 2 crabs, 2 scorpions?
 Respond with an integer.

Question 1 (Question id: q_YreWYY):
How many times does the letter "i" appear in the text: "the falling"? Respond with an integer.

Question 2 (Question id: q_X5zqgZS):
Solve for i: 22 - 14*i = -258 Respond with an integer.



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

The value for each key should be an object that contains the answer in the field 'answer'.
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, add the field 'additional_answer_info' containing 'half_answer' (answer ÷ 2) and 'double_answer' (answer × 2).
For string answers, include 'first_char' with the answer’s initial letter.
For last-character tasks, provide 'original_string' alongside the answer.

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.

Now provide the result JSON using the described format.

{"ground_truth": {"q_CZHmdZ": {"answer": 50, "answer_type": "integer", "additional_answer_info": {"half_answer": 25, "double_answer": 100}}, "q_YreWYY": {"answer": 1, "answer_type": "integer"}, "q_X5zqgZS": {"answer": 20, "answer_type": "integer", "additional_answer_info": {"half_answer": 10, "double_answer": 40}}, "global_metadata": {"num_questions_asked": 3}}}