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_gdHxvEK):
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 lions, 3 praying mantiss, 3 ants, 4 horses?
 Respond with an integer.

Question 1 (Question id: q_NUjG4j):
Determine the value of x that satisfies: 6*x + 23 = 107 Respond with an integer.

Question 2 (Question id: q_YJ4yN8w):
Determine the value of g that satisfies: 6*g + 32 = 74 Respond with an integer.

Question 3 (Question id: q_JrMm3S):
How many times does the letter "l" appear in the text: "S copyright law"? Respond with an integer.

Question 4 (Question id: q_4JKXOllz):
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: "functioning"

Question 5 (Question id: q_hyg7wF):
Determine the value of e that satisfies: 32 - 16*e = -80 Respond with an integer.

Question 6 (Question id: q_4wirZG):
Find the value of k in the equation: 19*k - 11 = 312 Respond with an integer.



Return a JSON with each question id as a key.

For every question id, supply an object whose 'answer' field stores the solution.
Include an 'answer_type' field (value 'string' or 'integer') for every answer object.
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:
• num_questions_asked – total number of questions originally shown.
Record the answered-question count in the field 'num_questions_answered'.

Now provide the result JSON using the described format.

{"ground_truth": {"q_gdHxvEK": {"answer": 60, "answer_type": "integer", "half_answer": 30}, "q_NUjG4j": {"answer": 14, "answer_type": "integer", "half_answer": 7}, "q_YJ4yN8w": {"answer": 7, "answer_type": "integer"}, "q_JrMm3S": {"answer": 1, "answer_type": "integer"}, "q_4JKXOllz": {"answer": "g", "answer_type": "string", "original_string": "functioning"}, "q_hyg7wF": {"answer": 7, "answer_type": "integer"}, "q_4wirZG": {"answer": 17, "answer_type": "integer"}, "global_metadata": {"num_questions_asked": 7, "num_questions_answered": 7}}}