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_XrVXKL):
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 1 (Question id: q_TPhOQc):
Calculate 0 * -3 + 6.

Question 2 (Question id: q_G7xs):
Determine the value of g that satisfies: 11*g + 17 = 39 Respond with an integer.



Return a JSON with each question id (except for q_G7xs) as a key.

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.

Now provide the result JSON using the described format.

{"ground_truth": {"q_XrVXKL": {"answer": "d", "answer_type": "string"}, "q_TPhOQc": {"answer": 6, "answer_type": "integer", "half_answer": 3}}}