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_RXbS):
Calculate -3 - -6.

Question 1 (Question id: q_ja7g):
Calculate ( ( 3 - -7 + -8 ) ).

Question 2 (Question id: q_xYxxB3p):
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, 1 wasp, 1 lion, 4 insects?
 Respond with an integer.



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

For every question id, supply an object whose 'answer' field stores the solution. Additionally, if the task is about counting legs of animals or counting letters in a string, add the task_type field with value 'leg_counting' or 'letter_counting', respectively.
For even integer answers, include 'half_answer' equal to answer ÷ 2.
If the response to a question is a string, add a 'first_char' field containing its first character.
If the question asks for the last character of a string, add an 'original_string' field containing the source string.

Beyond the question-id fields, add a 'global_metadata' object with summary information:
Set 'num_questions_asked' to the count of questions originally displayed.
• questions_with_integer_answers: ids of questions with integer replies.

Now provide the result JSON using the described format.

{"ground_truth": {"q_RXbS": {"answer": 3}, "q_ja7g": {"answer": 2, "half_answer": 1}, "global_metadata": {"num_questions_asked": 3, "questions_with_integer_answers": ["q_RXbS", "q_ja7g"]}}}