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_sEVtq):
Find the value of p in the equation: 12*p + 2 = 74 Respond with an integer.

Question 1 (Question id: q_3UBu):
Calculate ( 8 * 7 - 2 ).

Question 2 (Question id: q_otb0F9Xu):
Determine the value of u that satisfies: 134 - 20*u = 94 Respond with an integer.

Question 3 (Question id: q_muPg):
Calculate ( 8 * 7 ) / 2.

Question 4 (Question id: q_7dMraQ):
Determine the value of g that satisfies: 22*g + 11 = 429 Respond with an integer.

Question 5 (Question id: q_otb0F9Xu):
Determine the value of u that satisfies: 134 - 20*u = 94 Respond with an integer.

Question 6 (Question id: q_sfIwtc):
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: "connects"

Question 7 (Question id: q_HDhNIGD):
Calculate -8 * -1.

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

Question 9 (Question id: q_wxPF):
Calculate -6 * 0.



Return a JSON with each question id as a key.

Each key’s value must be an object holding an 'answer' field. 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.

Add a top-level 'global_metadata' field that records overall stats:
• num_questions_asked – total number of questions originally shown.
Fill 'questions_with_integer_answers' with the ids of integer-answer questions (leave empty when none).

Now provide the result JSON using the described format.

{"ground_truth": {"q_sEVtq": {"answer": 6, "answer_type": "integer", "half_answer": 3}, "q_3UBu": {"answer": 54, "answer_type": "integer", "half_answer": 27}, "q_otb0F9Xu": {"answer": 2, "answer_type": "integer", "half_answer": 1}, "q_muPg": {"answer": 28, "answer_type": "integer", "half_answer": 14}, "q_7dMraQ": {"answer": 19, "answer_type": "integer"}, "q_sfIwtc": {"answer": "s", "answer_type": "string"}, "q_HDhNIGD": {"answer": 8, "answer_type": "integer", "half_answer": 4}, "q_2Zuype": {"answer": "y", "answer_type": "string"}, "q_wxPF": {"answer": 0, "answer_type": "integer", "half_answer": 0}, "global_metadata": {"num_questions_asked": 10, "questions_with_integer_answers": ["q_sEVtq", "q_3UBu", "q_otb0F9Xu", "q_muPg", "q_7dMraQ", "q_otb0F9Xu", "q_HDhNIGD", "q_wxPF"]}}}