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

Question 1 (Question id: q_Jrrnr6qi):
How many times does the letter "i" appear in the text: "if a defect"? Respond with an integer.

Question 2 (Question id: q_vLcCu):
Calculate 4 - 6 - -5.

Question 3 (Question id: q_yrgsqGL):
How many times does the letter "y" appear in the text: "Literary Archive Foundation"? Respond with an integer.

Question 4 (Question id: q_keEufEAw):
How many times does the letter "t" appear in the text: "through which to"? Respond with an integer.

Question 5 (Question id: q_YV2M):
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: "the"

Question 6 (Question id: q_fYlBV):
Find the value of k in the equation: 20*k + 5 = 305 Respond with an integer.

Question 7 (Question id: q_TJhZKR):
How many times does the letter "h" appear in the text: "the medium on"? Respond with an integer.



Return a JSON with each question id (except for q_r54EW6H, q_fYlBV, q_vLcCu) as a key.

The value for each key should be an object that contains the answer in the field 'answer'.
For even integers, nest 'half_answer' and 'double_answer' inside an additional 'additional_answer_info' field in the answer object.
If the response to a question is a string, add a 'first_char' field containing its first character.

Add a top-level 'global_metadata' field that records overall stats:
Include 'num_questions_asked' to record the total number of questions presented.
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_Jrrnr6qi": {"answer": 1}, "q_TJhZKR": {"answer": 1}, "q_keEufEAw": {"answer": 2, "additional_answer_info": {"half_answer": 1, "double_answer": 4}}, "q_YV2M": {"answer": "e", "first_char": "e"}, "q_yrgsqGL": {"answer": 1}, "global_metadata": {"num_questions_asked": 8, "questions_with_integer_answers": ["q_Jrrnr6qi", "q_TJhZKR", "q_keEufEAw", "q_yrgsqGL"]}}}