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_ILg3OR):
Calculate 6 - -4.

Question 1 (Question id: q_KS7rvRp):
How many times does the letter "u" appear in the text: "and up"? Respond with an integer.

Question 2 (Question id: q_qK4R):
Find the value of a in the equation: 18*a + 3 = 309 Respond with an integer.



Create a JSON object keyed by every question id except q_ILg3OR.

Each key’s value must be an object holding an 'answer' field.
For even integer answers, include 'half_answer' equal to answer ÷ 2.
For string answers, include 'first_char' with the answer’s initial letter.
If the question asks for the last character of a string, add an 'original_string' field containing the source string.

Beyond the question-id fields, add a 'global_metadata' object with summary information:
Include 'num_questions_asked' to record the total number of questions presented.
• num_questions_answered: count of questions present in your JSON.
'questions_with_integer_answers' should enumerate every id whose answer is an integer.

Now provide the result JSON using the described format.

{"ground_truth": {"q_KS7rvRp": {"answer": 1}, "q_qK4R": {"answer": 17}, "global_metadata": {"num_questions_asked": 3, "num_questions_answered": 2, "questions_with_integer_answers": ["q_KS7rvRp", "q_qK4R"]}}}