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_tTbj):
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 3 wasps, 2 cats, 3 ducks?
 Respond with an integer.

Question 1 (Question id: q_i1qQOu0):
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 shrimps, 2 lions, 1 scorpion, 1 bird, 4 lobsters?
 Respond with an integer.

Question 2 (Question id: q_AQmie):
Determine the value of q that satisfies: 54*q + 20 = 1046 Respond with an integer.

Question 3 (Question id: q_tODej):
Calculate -3 + 0 - -7.



Return a JSON with each question id as a key.

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.
For even integer answers, include 'half_answer' equal to answer ÷ 2.
For string answers, include 'first_char' with the answer’s initial letter.
If the question asks for the last character of a string, add an 'original_string' field containing the source string.

Add a top-level 'global_metadata' field that records overall stats:
Include 'num_questions_asked' to record the total number of questions presented.
• num_questions_answered: count of questions present in your JSON.
• questions_with_integer_answers – list of question ids whose answers are integers (empty list if none).

Now provide the result JSON using the described format.

{"ground_truth": {"q_tTbj": {"answer": 32, "answer_type": "integer", "half_answer": 16}, "q_i1qQOu0": {"answer": 78, "answer_type": "integer", "half_answer": 39}, "q_AQmie": {"answer": 19, "answer_type": "integer"}, "q_tODej": {"answer": 4, "answer_type": "integer", "half_answer": 2}, "global_metadata": {"num_questions_asked": 4, "num_questions_answered": 4, "questions_with_integer_answers": ["q_tTbj", "q_i1qQOu0", "q_AQmie", "q_tODej"]}}}