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_ZJh92):
Calculate 9 + ( 7 + 5 ).

Question 1 (Question id: q_6qcCkQ):
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 cockroachs, 1 crab, 1 spider, 4 beetles?
 Respond with an integer.

Question 2 (Question id: q_Rwc6):
Calculate -5 * -9 - 2.

Question 3 (Question id: q_K8UGp53):
Calculate 2 + 5 - 6.



Your output must be a JSON mapping every question id to its answer info.

For every question id, supply an object whose 'answer' field stores the solution.
Include an 'answer_type' field (value 'string' or 'integer') for every answer 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_ZJh92": {"answer": 21, "answer_type": "integer"}, "q_6qcCkQ": {"answer": 66, "answer_type": "integer", "half_answer": 33, "animal_types": ["beetle", "cockroach", "crab", "spider"]}, "q_Rwc6": {"answer": 43, "answer_type": "integer"}, "q_K8UGp53": {"answer": 1, "answer_type": "integer"}}}