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_f9ttS):
Solve for g: 14*g - 16 = 40 Respond with an integer.

Question 1 (Question id: q_kiY9UwB):
Find the value of u in the equation: 90*u - 6 = 1074 Respond with an integer.

Question 2 (Question id: q_vL6CV4i):
Determine the value of i that satisfies: 16*i + 20 = 84 Respond with an integer.

Question 3 (Question id: q_L6QKW09):
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: "next"



Your output must be a JSON mapping every question id to its answer info.

The value for each key should be an object that contains the answer in the field 'answer'.
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.
If the response to a question is a string, add a 'first_char' field containing its first character.

Beyond the question-id fields, add a 'global_metadata' object with summary information:
• num_questions_asked: how many questions were asked in total.

Now provide the result JSON using the described format.

{"ground_truth": {"q_f9ttS": {"answer": 4, "answer_type": "integer", "half_answer": 2}, "q_kiY9UwB": {"answer": 12, "answer_type": "integer", "half_answer": 6}, "q_vL6CV4i": {"answer": 4, "answer_type": "integer", "half_answer": 2}, "q_L6QKW09": {"answer": "t", "answer_type": "string", "first_char": "t"}, "global_metadata": {"num_questions_asked": 4}}}