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_Vbvn):
Calculate 3 * 6.

Question 1 (Question id: q_Ousr6o):
How many times does the letter "h" appear in the text: "three remain"? Respond with an integer.

Question 2 (Question id: q_RGJyoYX8):
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 cricket, 2 snakes, 3 elephants, 1 butterfly, 1 lion?
 Respond with an integer.



Return a JSON with each question id (except for q_RGJyoYX8) as a key.

For every question id, supply an object whose 'answer' field stores the solution. Additionally, if the task is about counting legs of animals or counting letters in a string, add the task_type field with value 'leg_counting' or 'letter_counting', respectively.
For even integer answers, include 'half_answer' equal to answer ÷ 2.
For last-character tasks, provide 'original_string' alongside the answer.

Add a top-level 'global_metadata' field that records overall stats:
Include 'num_questions_asked' to record the total number of questions presented.
'questions_with_integer_answers' should enumerate every id whose answer is an integer.

Now provide the result JSON using the described format.

{"ground_truth": {"q_Ousr6o": {"answer": 1, "task_type": "letter_counting"}, "q_Vbvn": {"answer": 18, "half_answer": 9}, "global_metadata": {"num_questions_asked": 3, "questions_with_integer_answers": ["q_Ousr6o", "q_Vbvn"]}}}