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_5pgRsl):
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: "economic"

Question 1 (Question id: q_Ty2xKq):
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 birds, 2 starfishs, 4 humans, 3 bees, 1 beetle?
 Respond with an integer.

Question 2 (Question id: q_AO9Rdy):
Find the value of r in the equation: 80*r + 272 = 1552 Respond with an integer.

Question 3 (Question id: q_cKs0AnK):
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: "on"

Question 4 (Question id: q_YzWex3s):
Calculate ( 6 + 6 ).

Question 5 (Question id: q_uY9R9Y):
Calculate 7 + 7 + 6.

Question 6 (Question id: q_5znT):
Calculate 3 + -2 / 2.

Question 7 (Question id: q_zoSs):
Find the value of h in the equation: 72*h + 162 = 450 Respond with an integer.



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

The value for each key should be an object that contains the answer in the field 'answer'.
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.
If the response to a question is a string, add a 'first_char' field containing its first character.
When counting animal legs, include an 'animal_types' list of the distinct animal names (singular, sorted).

Now provide the result JSON using the described format.

{"ground_truth": {"q_zoSs": {"answer": 4, "half_answer": 2}, "q_Ty2xKq": {"answer": 48, "half_answer": 24, "animal_types": ["bee", "beetle", "bird", "human", "starfish"]}, "q_uY9R9Y": {"answer": 20, "half_answer": 10}, "q_5znT": {"answer": 2, "half_answer": 1}, "q_AO9Rdy": {"answer": 16, "half_answer": 8}, "q_cKs0AnK": {"answer": "n", "first_char": "n"}, "q_YzWex3s": {"answer": 12, "half_answer": 6}}}