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_2Xe6mg4):
Solve for g: 2*g - 11 = 19 Respond with an integer.

Question 1 (Question id: q_rpKUb):
Determine the value of i that satisfies: 4*i - 1 = 47 Respond with an integer.

Question 2 (Question id: q_zGMuJ):
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 ant, 3 deers, 4 sheeps?
 Respond with an integer.

Question 3 (Question id: q_UtZ14npe):
Your job is to return the last character of a string as a string. For example, the last char of "hello" is "o". Return the last character of the following string: "humans"

Question 4 (Question id: q_YMQMo):
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 dogs, 2 chickens, 3 deers, 2 cows, 2 wasps?
 Respond with an integer.

Question 5 (Question id: q_Qf3jcpd):
Calculate ( 9 * 5 + -5 ).

Question 6 (Question id: q_F7SeMJ):
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 crickets, 2 birds, 4 starfishs, 3 cockroachs, 3 cows?
 Respond with an integer.

Question 7 (Question id: q_fKf9rD5j):
Solve for x: 11*x - 8 = 25 Respond with an integer.

Question 8 (Question id: q_nPK4J):
Your job is to return the last character of a string as a string. For example, the last char of "hello" is "o". Return the last character of the following string: "advancing"



Return a JSON with each question id 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.
If the response to a question is an integer that is even, add the field 'additional_answer_info' containing 'half_answer' (answer ÷ 2) and 'double_answer' (answer × 2).
For string answers, include 'first_char' with the answer’s initial letter.
For animal-leg questions, add 'animal_types': an alphabetically-sorted list of unique animal names in singular form.

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: ids of questions with integer replies.

Now provide the result JSON using the described format.

{"ground_truth": {"q_2Xe6mg4": {"answer": 15, "answer_type": "integer"}, "q_rpKUb": {"answer": 12, "answer_type": "integer", "additional_answer_info": {"half_answer": 6, "double_answer": 24}}, "q_zGMuJ": {"answer": 34, "task_type": "leg_counting", "answer_type": "integer", "additional_answer_info": {"half_answer": 17, "double_answer": 68}, "animal_types": ["ant", "deer", "sheep"]}, "q_UtZ14npe": {"answer": "s", "answer_type": "string", "first_char": "s"}, "q_YMQMo": {"answer": 48, "task_type": "leg_counting", "answer_type": "integer", "additional_answer_info": {"half_answer": 24, "double_answer": 96}, "animal_types": ["chicken", "cow", "deer", "dog", "wasp"]}, "q_Qf3jcpd": {"answer": 40, "answer_type": "integer", "additional_answer_info": {"half_answer": 20, "double_answer": 80}}, "q_F7SeMJ": {"answer": 66, "task_type": "leg_counting", "answer_type": "integer", "additional_answer_info": {"half_answer": 33, "double_answer": 132}, "animal_types": ["bird", "cockroach", "cow", "cricket", "starfish"]}, "q_fKf9rD5j": {"answer": 3, "answer_type": "integer"}, "q_nPK4J": {"answer": "g", "answer_type": "string", "first_char": "g"}, "global_metadata": {"num_questions_asked": 9, "questions_with_integer_answers": ["q_2Xe6mg4", "q_rpKUb", "q_zGMuJ", "q_YMQMo", "q_Qf3jcpd", "q_F7SeMJ", "q_fKf9rD5j"]}}}