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_mz3W):
Find the value of h in the equation: 20*h + 15 = 215 Respond with an integer.

Question 1 (Question id: q_nFCz):
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: "and"

Question 2 (Question id: q_duM1GZRK):
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 horses, 4 crickets, 2 wasps, 4 giraffes?
 Respond with an integer.

Question 3 (Question id: q_Am3SP):
Find the value of b in the equation: 6 - 2*b = -30 Respond with an integer.

Question 4 (Question id: q_YdZgNj):
Find the value of o in the equation: 31 - o = 22 Respond with an integer.

Question 5 (Question id: q_cZ8Z27R):
Calculate -8 * -8 - 2.

Question 6 (Question id: q_1rU5z0):
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, 1 deer, 1 elephant, 4 jellyfishs, 1 firefly?
 Respond with an integer.



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

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 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_YdZgNj": {"answer": 9, "answer_type": "integer"}, "q_mz3W": {"answer": 10, "answer_type": "integer", "half_answer": 5}, "q_Am3SP": {"answer": 18, "answer_type": "integer", "half_answer": 9}, "q_1rU5z0": {"answer": 20, "answer_type": "integer", "half_answer": 10}, "q_cZ8Z27R": {"answer": 62, "answer_type": "integer", "half_answer": 31}, "q_duM1GZRK": {"answer": 60, "answer_type": "integer", "half_answer": 30}, "global_metadata": {"num_questions_asked": 7, "questions_with_integer_answers": ["q_YdZgNj", "q_mz3W", "q_Am3SP", "q_1rU5z0", "q_cZ8Z27R", "q_duM1GZRK"]}}}