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_N9miQ4vh):
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: "pandemic"

Question 1 (Question id: q_kXxVs):
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 4 crabs, 1 bird, 1 lobster, 1 jellyfish, 4 leechs?
 Respond with an integer.

Question 2 (Question id: q_hgvd):
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: "little"

Question 3 (Question id: q_GGQ7A4):
Calculate 2 + -2 + 8.

Question 4 (Question id: q_lFou9):
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 sheep, 2 deers, 1 wasp, 2 flatworms?
 Respond with an integer.

Question 5 (Question id: q_4QIx3):
Solve for i: 18*i + 126 = 432 Respond with an integer.

Question 6 (Question id: q_ex7s8Xab):
Find the value of h in the equation: 20 - 11*h = -90 Respond with an integer.

Question 7 (Question id: q_nYqQGA):
Calculate 2 + -9 + 8.

Question 8 (Question id: q_CrQ9):
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 lobster, 1 grasshopper, 1 leech?
 Respond with an integer.

Question 9 (Question id: q_tOUHM75T):
Calculate 3 + 1 / 1.



Return a JSON with each question id as a key.

For every question id, supply an object whose 'answer' field stores the solution.
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, also add the field 'half_answer' to the object which contains the answer integer divided by two.
For string answers, include 'first_char' with the answer’s initial letter.
For last-character tasks, provide 'original_string' alongside the answer.

Add a top-level 'global_metadata' field that records overall stats:
• num_questions_asked – total number of questions originally shown.
Record the answered-question count in the field 'num_questions_answered'.

Now provide the result JSON using the described format.

{"ground_truth": {"q_N9miQ4vh": {"answer": "c", "answer_type": "string", "first_char": "c", "original_string": "pandemic"}, "q_kXxVs": {"answer": 52, "answer_type": "integer", "half_answer": 26}, "q_hgvd": {"answer": "e", "answer_type": "string", "first_char": "e", "original_string": "little"}, "q_GGQ7A4": {"answer": 8, "answer_type": "integer", "half_answer": 4}, "q_lFou9": {"answer": 18, "answer_type": "integer", "half_answer": 9}, "q_4QIx3": {"answer": 17, "answer_type": "integer"}, "q_ex7s8Xab": {"answer": 10, "answer_type": "integer", "half_answer": 5}, "q_nYqQGA": {"answer": 1, "answer_type": "integer"}, "q_CrQ9": {"answer": 16, "answer_type": "integer", "half_answer": 8}, "q_tOUHM75T": {"answer": 4, "answer_type": "integer", "half_answer": 2}, "global_metadata": {"num_questions_asked": 10, "num_questions_answered": 10}}}