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_CWJu):
Calculate -7 + 6 + 9.

Question 1 (Question id: q_w99a):
Calculate 3 - -6 - 4.

Question 2 (Question id: q_zbTF8v):
How many times does the letter "g" appear in the text: "or creating derivative"? Respond with an integer.

Question 3 (Question id: q_Vx1D):
Solve for u: 16*u + 7 = 39 Respond with an integer.



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'.
For even integer answers, include 'half_answer' equal to answer ÷ 2.
For last-character tasks, provide 'original_string' alongside the answer.

Add a top-level 'global_metadata' field that records overall stats:
Set 'num_questions_asked' to the count of questions originally displayed.
• questions_with_integer_answers: ids of questions with integer replies.

Now provide the result JSON using the described format.

{"ground_truth": {"q_CWJu": {"answer": 8, "half_answer": 4}, "q_w99a": {"answer": 5}, "q_zbTF8v": {"answer": 1}, "q_Vx1D": {"answer": 2, "half_answer": 1}, "global_metadata": {"num_questions_asked": 4, "questions_with_integer_answers": ["q_CWJu", "q_w99a", "q_zbTF8v", "q_Vx1D"]}}}