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_6JXU2W):
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 cats, 4 spiders, 1 wasp, 3 cockroachs?
 Respond with an integer.

Question 1 (Question id: q_IWQHHH):
Your job is to return the last character of a string as a string. For example, the last char of "hello" is "o". Return the last character of the following string: "species"

Question 2 (Question id: q_9UW1wFAi):
How many times does the letter "c" appear in the text: "his air coach"? Respond with an integer.

Question 3 (Question id: q_Z2oiWRx3):
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 starfishs, 4 birds, 2 jellyfishs?
 Respond with an integer.

Question 4 (Question id: q_Ygd1):
Calculate ( 3 - -2 / 2 ).



Return a JSON with each question id as a key.

The value for each key should be an object that contains the answer in the field 'answer'. If a question involves animal-leg or letter counting, include 'task_type' set to 'leg_counting' or 'letter_counting'.
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.

Add a top-level 'global_metadata' field that records overall stats:
• num_questions_asked: how many questions were asked in total.
Fill 'questions_with_integer_answers' with the ids of integer-answer questions (leave empty when none).

Now provide the result JSON using the described format.

{"ground_truth": {"q_6JXU2W": {"answer": 68, "task_type": "leg_counting", "answer_type": "integer", "half_answer": 34}, "q_IWQHHH": {"answer": "s", "answer_type": "string"}, "q_9UW1wFAi": {"answer": 2, "task_type": "letter_counting", "answer_type": "integer", "half_answer": 1}, "q_Z2oiWRx3": {"answer": 28, "task_type": "leg_counting", "answer_type": "integer", "half_answer": 14}, "q_Ygd1": {"answer": 4, "answer_type": "integer", "half_answer": 2}, "global_metadata": {"num_questions_asked": 5, "questions_with_integer_answers": ["q_6JXU2W", "q_9UW1wFAi", "q_Z2oiWRx3", "q_Ygd1"]}}}