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_GhIhf):
Determine the value of v that satisfies: 9*v + 9 = 108 Respond with an integer.

Question 1 (Question id: q_x3mc):
Calculate 0 * -2 * -7.

Question 2 (Question id: q_Wukn):
How many times does the letter "i" appear in the text: "great planet gravitates"? Respond with an integer.

Question 3 (Question id: q_GxcZFI):
Calculate ( 3 * 9 ) - -9.

Question 4 (Question id: q_pOQX7z):
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 3 giraffes, 3 snakes, 3 starfishs, 3 birds, 2 bees?
 Respond with an integer.

Question 5 (Question id: q_xZUnG1J):
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: "then"



Produce a JSON object whose top-level keys are the question ids.

For every question id, supply an object whose 'answer' field stores the solution.
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.
For last-character tasks, provide 'original_string' alongside the answer.
For animal-leg questions, add 'animal_types': an alphabetically-sorted list of unique animal names in singular form.

Add a top-level 'global_metadata' field that records overall stats:
'num_questions_asked' should equal the total questions that appeared.
'num_questions_answered' must hold the number of answered questions.
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_GhIhf": {"answer": 11}, "q_x3mc": {"answer": 0, "additional_answer_info": {"half_answer": 0, "double_answer": 0}}, "q_Wukn": {"answer": 1}, "q_GxcZFI": {"answer": 36, "additional_answer_info": {"half_answer": 18, "double_answer": 72}}, "q_pOQX7z": {"answer": 45, "animal_types": ["bee", "bird", "giraffe", "snake", "starfish"]}, "q_xZUnG1J": {"answer": "n", "first_char": "n", "original_string": "then"}, "global_metadata": {"num_questions_asked": 6, "num_questions_answered": 6, "questions_with_integer_answers": ["q_GhIhf", "q_x3mc", "q_Wukn", "q_GxcZFI", "q_pOQX7z"]}}}