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_MHQucfi):
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 horse, 4 crickets, 1 praying mantis?
 Respond with an integer.

Question 1 (Question id: q_vsP3qj):
Calculate ( 8 - 3 ).



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

Each key’s value must be an object holding an 'answer' field.
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.
For string answers, include 'first_char' with the answer’s initial letter.
For last-character tasks, provide 'original_string' alongside the answer.
For animal-leg questions, add 'animal_types': an alphabetically-sorted list of unique animal names in singular form.

Add a top-level 'global_metadata' field that records overall stats:
'num_questions_asked' should equal the total questions that appeared.
• num_questions_answered: count of questions present in your JSON.

Now provide the result JSON using the described format.

{"ground_truth": {"q_MHQucfi": {"answer": 34, "answer_type": "integer", "half_answer": 17, "animal_types": ["cricket", "horse", "praying mantis"]}, "q_vsP3qj": {"answer": 5, "answer_type": "integer"}, "global_metadata": {"num_questions_asked": 2, "num_questions_answered": 2}}}