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_IFYS9):
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 cows, 2 grasshoppers, 2 starfishs, 1 lion?
 Respond with an integer.

Question 1 (Question id: q_BPuvF5):
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 cows, 3 cockroachs, 4 ducks?
 Respond with an integer.



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

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 animal-leg questions, add 'animal_types': an alphabetically-sorted list of unique animal names in singular form.

Now provide the result JSON using the described format.

{"ground_truth": {"q_IFYS9": {"answer": 42, "answer_type": "integer", "half_answer": 21, "animal_types": ["cow", "grasshopper", "lion", "starfish"]}, "q_BPuvF5": {"answer": 34, "answer_type": "integer", "half_answer": 17, "animal_types": ["cockroach", "cow", "duck"]}}}