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_1xrp):
Find the value of p in the equation: 10*p - 9 = 111 Respond with an integer.

Question 1 (Question id: q_ISZO3PK):
Determine the value of b that satisfies: 95*b + 1900 = 2090 Respond with an integer.

Question 2 (Question id: q_TMHBi1V):
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: "economy"

Question 3 (Question id: q_du7Mvizg):
Calculate ( 5 + -2 ) + -2.

Question 4 (Question id: q_0aiht):
Find the value of p in the equation: 8*p - 6 = 2 Respond with an integer.

Question 5 (Question id: q_AY0j):
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 grasshopper, 3 deers, 2 beetles?
 Respond with an integer.

Question 6 (Question id: q_NjZ0UgP):
Find the value of l in the equation: 168*l - 14 = 1498 Respond with an integer.

Question 7 (Question id: q_qqhF):
Calculate 3 - -4.

Question 8 (Question id: q_1fIgmTV):
Solve for y: 27 - 255*y = -2013 Respond with an integer.

Question 9 (Question id: q_uSC7MuH):
How many times does the letter "b" appear in the text: "combustion or"? Respond with an integer.

Question 10 (Question id: q_NVo7TVcJ):
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 scorpion, 1 giraffe, 2 cats?
 Respond with an integer.

Question 11 (Question id: q_ZxXSG):
How many times does the letter "s" appear in the text: "is not"? Respond with an integer.

Question 12 (Question id: q_EKjYLxlL):
Solve for d: 8*d - 12 = 92 Respond with an integer.



Create a JSON object keyed by every question id except q_ZxXSG, q_qqhF.

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.
Include an 'answer_type' field (value 'string' or 'integer') for every answer 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.
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_AY0j": {"answer": 30, "task_type": "leg_counting", "answer_type": "integer", "half_answer": 15}, "q_uSC7MuH": {"answer": 1, "task_type": "letter_counting", "answer_type": "integer"}, "q_EKjYLxlL": {"answer": 13, "answer_type": "integer"}, "q_ISZO3PK": {"answer": 2, "answer_type": "integer", "half_answer": 1}, "q_du7Mvizg": {"answer": 1, "answer_type": "integer"}, "q_0aiht": {"answer": 1, "answer_type": "integer"}, "q_1xrp": {"answer": 12, "answer_type": "integer", "half_answer": 6}, "q_NVo7TVcJ": {"answer": 20, "task_type": "leg_counting", "answer_type": "integer", "half_answer": 10}, "q_TMHBi1V": {"answer": "y", "answer_type": "string", "first_char": "y"}, "q_1fIgmTV": {"answer": 8, "answer_type": "integer", "half_answer": 4}, "q_NjZ0UgP": {"answer": 9, "answer_type": "integer"}}}