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_GIeomj):
Find the value of a in the equation: 18*a + 3 = 309 Respond with an integer.

Question 1 (Question id: q_QbcmvSGy):
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 butterfly, 3 dogs, 2 horses, 4 cats?
 Respond with an integer.

Question 2 (Question id: q_3oRm4u):
How many times does the letter "o" appear in the text: "comprehend the advance"? Respond with an integer.

Question 3 (Question id: q_xQcgZ):
Determine the value of m that satisfies: 13 - 19*m = -63 Respond with an integer.

Question 4 (Question id: q_ZtmraOx):
Determine the value of j that satisfies: -20*j - 7 = -67 Respond with an integer.

Question 5 (Question id: q_yBDJVn):
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: "makes"

Question 6 (Question id: q_H9D94dhC):
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: "effects"

Question 7 (Question id: q_0pPUlTro):
Calculate ( 1 * 2 * 8 ).

Question 8 (Question id: q_5xVS):
Find the value of m in the equation: 9*m + 11 = 20 Respond with an integer.

Question 9 (Question id: q_aLWH):
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: "always"



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'. If a question involves animal-leg or letter counting, include 'task_type' set to 'leg_counting' or 'letter_counting'.
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 last-character tasks, provide 'original_string' alongside the answer.

Beyond the question-id fields, add a 'global_metadata' object with summary information:
'num_questions_asked' should equal the total questions that appeared.
'num_questions_answered' must hold the number of answered questions.

Now provide the result JSON using the described format.

{"ground_truth": {"q_GIeomj": {"answer": 17, "answer_type": "integer"}, "q_QbcmvSGy": {"answer": 42, "task_type": "leg_counting", "answer_type": "integer", "additional_answer_info": {"half_answer": 21, "double_answer": 84}}, "q_3oRm4u": {"answer": 1, "task_type": "letter_counting", "answer_type": "integer"}, "q_xQcgZ": {"answer": 4, "answer_type": "integer", "additional_answer_info": {"half_answer": 2, "double_answer": 8}}, "q_ZtmraOx": {"answer": 3, "answer_type": "integer"}, "q_yBDJVn": {"answer": "s", "answer_type": "string", "first_char": "s", "original_string": "makes"}, "q_H9D94dhC": {"answer": "s", "answer_type": "string", "first_char": "s", "original_string": "effects"}, "q_0pPUlTro": {"answer": 16, "answer_type": "integer", "additional_answer_info": {"half_answer": 8, "double_answer": 32}}, "q_5xVS": {"answer": 1, "answer_type": "integer"}, "q_aLWH": {"answer": "s", "answer_type": "string", "first_char": "s", "original_string": "always"}, "global_metadata": {"num_questions_asked": 10, "num_questions_answered": 10}}}