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_fc0RZqFV):
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: "that"

Question 1 (Question id: q_Vlp3D):
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 human, 1 beetle, 3 fireflys?
 Respond with an integer.

Question 2 (Question id: q_r6jOcJ):
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 crabs, 3 elephants, 2 spiders?
 Respond with an integer.

Question 3 (Question id: q_jdgC0):
Calculate 4 + 2 - -7.

Question 4 (Question id: q_1D74):
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 woodlouses, 4 bees, 1 starfish?
 Respond with an integer.

Question 5 (Question id: q_Uo5Bcycf):
Determine the value of m that satisfies: 130 - 10*m = 90 Respond with an integer.



Output JSON where all question ids are keys, omitting q_Vlp3D.

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.

Now provide the result JSON using the described format.

{"ground_truth": {"q_Uo5Bcycf": {"answer": 4, "half_answer": 2}, "q_r6jOcJ": {"answer": 58, "half_answer": 29}, "q_fc0RZqFV": {"answer": "t", "first_char": "t"}, "q_1D74": {"answer": 57}, "q_jdgC0": {"answer": 13}}}