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_G62wv1HG):
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 4 ants, 3 sheeps, 1 praying mantis, 3 grasshoppers?
 Respond with an integer.

Question 1 (Question id: q_VjnQ):
How many times does the letter "n" appear in the text: "for the annulment"? Respond with an integer.

Question 2 (Question id: q_etZcdIo):
Find the value of g in the equation: 6 - 11*g = -71 Respond with an integer.

Question 3 (Question id: q_zkKVCil):
Determine the value of q that satisfies: 4*q + 24 = 104 Respond with an integer.



Output JSON where all question ids are keys, omitting q_VjnQ.

For every question id, supply an object whose 'answer' field stores the solution.
For even integer answers, include 'half_answer' equal to answer ÷ 2.
If the question asks for the last character of a string, add an 'original_string' field containing the source string.

Add a top-level 'global_metadata' field that records overall stats:
Set 'num_questions_asked' to the count of questions originally displayed.
• 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_etZcdIo": {"answer": 7}, "q_G62wv1HG": {"answer": 60, "half_answer": 30}, "q_zkKVCil": {"answer": 20, "half_answer": 10}, "global_metadata": {"num_questions_asked": 4, "num_questions_answered": 3, "questions_with_integer_answers": ["q_etZcdIo", "q_G62wv1HG", "q_zkKVCil"]}}}