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_gVBk5):
Find the value of z in the equation: 20 - 4*z = -36 Respond with an integer.

Question 1 (Question id: q_I5wB):
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 cow, 2 cockroachs, 1 insect, 2 deers?
 Respond with an integer.

Question 2 (Question id: q_E7BpIC):
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: "day"

Question 3 (Question id: q_gBIZ):
How many times does the letter "a" appear in the text: "any work in"? Respond with an integer.

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

Question 5 (Question id: q_O4GYYnpP):
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 woodlouses, 4 leechs, 2 birds, 4 dogs?
 Respond with an integer.

Question 6 (Question id: q_vFpCfnbs):
Solve for p: 20*p - 8 = 152 Respond with an integer.

Question 7 (Question id: q_NdVP):
How many times does the letter "c" appear in the text: "of cloudless"? Respond with an integer.



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.
For even integer answers, include 'half_answer' equal to answer ÷ 2.

Now provide the result JSON using the described format.

{"ground_truth": {"q_gVBk5": {"answer": 14, "answer_type": "integer", "half_answer": 7}, "q_I5wB": {"answer": 30, "answer_type": "integer", "half_answer": 15}, "q_E7BpIC": {"answer": "y", "answer_type": "string"}, "q_gBIZ": {"answer": 1, "answer_type": "integer"}, "q_Tk1t": {"answer": "s", "answer_type": "string"}, "q_O4GYYnpP": {"answer": 62, "answer_type": "integer", "half_answer": 31}, "q_vFpCfnbs": {"answer": 8, "answer_type": "integer", "half_answer": 4}, "q_NdVP": {"answer": 1, "answer_type": "integer"}}}