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_fyDzR):
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: "something"

Question 1 (Question id: q_qYnK):
Find the value of p in the equation: 10*p - 9 = 111 Respond with an integer.

Question 2 (Question id: q_DrFg):
How many times does the letter "g" appear in the text: "YOU AGREE THAT"? Respond with an integer.

Question 3 (Question id: q_iDaJb3dO):
Your task is to count how many legs there are in total when given a list of animals.

Now, how many legs are there in total if you have 1 firefly, 1 insect, 3 cockroachs, 1 deer, 4 bees?
 Respond with an integer.

Question 4 (Question id: q_YENWnw):
How many times does the letter "r" appear in the text: "and terrestrial"? Respond with an integer.

Question 5 (Question id: q_vTL1Kn):
How many times does the letter "a" appear in the text: "late she"? Respond with an integer.

Question 6 (Question id: q_bFl5):
Solve for r: 6 - 4*r = -74 Respond with an integer.

Question 7 (Question id: q_nr30):
Calculate -6 / 2 + 7.



Return a JSON with each question id as a key.

The value for each key should be an object that contains the answer in the field 'answer'.
If the response to a question is an integer that is even, also add the field 'half_answer' to the object which contains the answer integer divided by two.
For string answers, include 'first_char' with the answer’s initial letter.
For last-character tasks, provide 'original_string' alongside the answer.

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.
Add 'num_questions_answered' showing how many questions you answered.
'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_fyDzR": {"answer": "g", "first_char": "g", "original_string": "something"}, "q_qYnK": {"answer": 12, "half_answer": 6}, "q_DrFg": {"answer": 1}, "q_iDaJb3dO": {"answer": 58, "half_answer": 29}, "q_YENWnw": {"answer": 3}, "q_vTL1Kn": {"answer": 1}, "q_bFl5": {"answer": 20, "half_answer": 10}, "q_nr30": {"answer": 4, "half_answer": 2}, "global_metadata": {"num_questions_asked": 8, "num_questions_answered": 8, "questions_with_integer_answers": ["q_qYnK", "q_DrFg", "q_iDaJb3dO", "q_YENWnw", "q_vTL1Kn", "q_bFl5", "q_nr30"]}}}