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_nB7Oe):
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 2 giraffes, 1 grasshopper, 4 butterflys, 2 cows?
 Respond with an integer.

Question 1 (Question id: q_J4g81G):
Calculate 4 - -7 + -9.

Question 2 (Question id: q_OHEsTqV):
How many times does the letter "g" appear in the text: "Project Gutenberg trademark"? Respond with an integer.



Return a JSON with each question id as a key.

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.
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.

Beyond the question-id fields, add a 'global_metadata' object with summary information:
'num_questions_asked' should equal the total questions that appeared.
Record the answered-question count in the field 'num_questions_answered'.

Now provide the result JSON using the described format.

{"ground_truth": {"q_nB7Oe": {"answer": 46, "half_answer": 23, "animal_types": ["butterfly", "cow", "giraffe", "grasshopper"]}, "q_J4g81G": {"answer": 2, "half_answer": 1}, "q_OHEsTqV": {"answer": 2, "half_answer": 1}, "global_metadata": {"num_questions_asked": 3, "num_questions_answered": 3}}}