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_Y778):
Calculate 8 - -1.

Question 1 (Question id: q_vAw8Tm):
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: "run"

Question 2 (Question id: q_Cnaz6ZUr):
Find the value of h in the equation: 20*h + 15 = 215 Respond with an integer.

Question 3 (Question id: q_kqu7LAB):
Solve for m: -30*m - 2 = -542 Respond with an integer.

Question 4 (Question id: q_MbcE):
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 starfish, 2 dogs, 2 humans, 2 giraffes?
 Respond with an integer.

Question 5 (Question id: q_UhET74):
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: "computer"

Question 6 (Question id: q_Ici7):
Calculate 5 - 1 - -1.

Question 7 (Question id: q_Kzy8O):
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 cows, 3 ducks, 2 ants, 2 dogs?
 Respond with an integer.

Question 8 (Question id: q_7Sh3):
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"



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 last-character tasks, provide 'original_string' alongside the answer.

Now provide the result JSON using the described format.

{"ground_truth": {"q_Y778": {"answer": 9, "answer_type": "integer"}, "q_vAw8Tm": {"answer": "n", "answer_type": "string", "original_string": "run"}, "q_Cnaz6ZUr": {"answer": 10, "answer_type": "integer", "half_answer": 5}, "q_kqu7LAB": {"answer": 18, "answer_type": "integer", "half_answer": 9}, "q_MbcE": {"answer": 25, "answer_type": "integer"}, "q_UhET74": {"answer": "r", "answer_type": "string", "original_string": "computer"}, "q_Ici7": {"answer": 5, "answer_type": "integer"}, "q_Kzy8O": {"answer": 34, "answer_type": "integer", "half_answer": 17}, "q_7Sh3": {"answer": "d", "answer_type": "string", "original_string": "and"}}}