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_BXNMvR1):
Solve for r: 30 - 4*r = -10 Respond with an integer.

Question 1 (Question id: q_5YkryI4w):
Calculate ( ( 5 + 1 ) ).

Question 2 (Question id: q_eS7ZD):
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 lion, 3 cats, 3 crickets?
 Respond with an integer.

Question 3 (Question id: q_yEU8Ok):
How many times does the letter "o" appear in the text: "fee for"? Respond with an integer.

Question 4 (Question id: q_GlPDjFw8):
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"

Question 5 (Question id: q_bLbIWXT):
Determine the value of q that satisfies: 2*q + 8 = 22 Respond with an integer.

Question 6 (Question id: q_PSXyB):
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: "strength"

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

Question 8 (Question id: q_DeQNgl):
Calculate -2 / 2 + 5.

Question 9 (Question id: q_ykw6nep):
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 shrimps, 3 lions, 4 cats, 4 scorpions, 3 flatworms?
 Respond with an integer.

Question 10 (Question id: q_qsy8uX):
Find the value of v in the equation: 17*v + 4 = 55 Respond with an integer.

Question 11 (Question id: q_HoIGD):
Calculate 1 * 3 + 6.



Create a JSON object keyed by every question id except q_GlPDjFw8, q_5YkryI4w, q_yEU8Ok.

The value for each key should be an object that contains the answer in the field 'answer'.
For even integer answers, include 'half_answer' equal to answer ÷ 2.

Now provide the result JSON using the described format.

{"ground_truth": {"q_xFgef9K": {"answer": "d"}, "q_PSXyB": {"answer": "h"}, "q_BXNMvR1": {"answer": 10, "half_answer": 5}, "q_bLbIWXT": {"answer": 7}, "q_qsy8uX": {"answer": 3}, "q_eS7ZD": {"answer": 34, "half_answer": 17}, "q_HoIGD": {"answer": 9}, "q_ykw6nep": {"answer": 100, "half_answer": 50}, "q_DeQNgl": {"answer": 4, "half_answer": 2}}}