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_DolAL):
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 praying mantiss, 2 butterflys, 1 giraffe?
 Respond with an integer.

Question 1 (Question id: q_4WEDYWmb):
Determine the value of g that satisfies: 11*g + 17 = 39 Respond with an integer.



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

The value for each key should be an object that contains the answer in the field 'answer'. 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.
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 last-character tasks, provide 'original_string' alongside the answer.

Beyond the question-id fields, add a 'global_metadata' object with summary information:
Include 'num_questions_asked' to record the total number of questions presented.
• questions_with_integer_answers – list of question ids whose answers are integers (empty list if none).

Now provide the result JSON using the described format.

{"ground_truth": {"q_4WEDYWmb": {"answer": 2, "answer_type": "integer", "half_answer": 1}, "global_metadata": {"num_questions_asked": 2, "questions_with_integer_answers": ["q_4WEDYWmb"]}}}