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_x5RSXlwf):
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: "is"

Question 1 (Question id: q_inGzz7bu):
Calculate -7 * -4 - -9.

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

Question 3 (Question id: q_KPbLpgtf):
Find the value of a in the equation: 19*a - 20 = 170 Respond with an integer.

Question 4 (Question id: q_j6MpPkx):
Determine the value of n that satisfies: 8 - 18*n = -172 Respond with an integer.

Question 5 (Question id: q_cNTzoV):
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 sea slugs, 2 scorpions, 3 fireflys?
 Respond with an integer.

Question 6 (Question id: q_0O2RmN):
Calculate ( ( -4 * 5 * 0 ) ).

Question 7 (Question id: q_isQFWcqq):
Determine the value of n that satisfies: 30*n + 136 = 226 Respond with an integer.

Question 8 (Question id: q_xFQZlG):
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 jellyfishs, 3 insects, 1 human, 1 lobster?
 Respond with an integer.

Question 9 (Question id: q_tyeaYls):
How many times does the letter "s" appear in the text: "go see"? Respond with an integer.

Question 10 (Question id: q_Ctnmi):
Calculate -2 * -5.



Return a JSON with each question id as a key.

For every question id, supply an object whose 'answer' field stores the solution. Additionally, if the task is about counting legs of animals or counting letters in a string, add the task_type field with value 'leg_counting' or 'letter_counting', respectively.
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.

Now provide the result JSON using the described format.

{"ground_truth": {"q_x5RSXlwf": {"answer": "s", "original_string": "is"}, "q_inGzz7bu": {"answer": 37}, "q_aF1i": {"answer": 3}, "q_KPbLpgtf": {"answer": 10, "half_answer": 5}, "q_j6MpPkx": {"answer": 10, "half_answer": 5}, "q_cNTzoV": {"answer": 34, "task_type": "leg_counting", "half_answer": 17}, "q_0O2RmN": {"answer": 0, "half_answer": 0}, "q_isQFWcqq": {"answer": 3}, "q_xFQZlG": {"answer": 30, "task_type": "leg_counting", "half_answer": 15}, "q_tyeaYls": {"answer": 1, "task_type": "letter_counting"}, "q_Ctnmi": {"answer": 10, "half_answer": 5}}}