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_w4baDQH):
Find the value of m in the equation: 240*m - 333 = 387 Respond with an integer.

Question 1 (Question id: q_QstHhDjc):
How many times does the letter "m" appear in the text: "human life from"? Respond with an integer.

Question 2 (Question id: q_zuMgB):
Calculate 6 + 5.

Question 3 (Question id: q_bQRedX):
Find the value of d in the equation: -2*d - 16 = -34 Respond with an integer.

Question 4 (Question id: q_JZpg8r):
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: "food"

Question 5 (Question id: q_2M10):
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: "to"

Question 6 (Question id: q_pezxauQ):
How many times does the letter "w" appear in the text: "away or"? Respond with an integer.

Question 7 (Question id: q_6JsWX):
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 horses, 3 cats, 1 woodlouse, 4 birds?
 Respond with an integer.



Create a JSON object keyed by every question id except q_2M10, q_w4baDQH.

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.
For string answers, include 'first_char' with the answer’s initial letter.

Add a top-level 'global_metadata' field that records overall stats:
'num_questions_asked' should equal the total questions that appeared.
Record the answered-question count in the field 'num_questions_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_bQRedX": {"answer": 9}, "q_QstHhDjc": {"answer": 2, "additional_answer_info": {"half_answer": 1, "double_answer": 4}}, "q_JZpg8r": {"answer": "d", "first_char": "d"}, "q_zuMgB": {"answer": 11}, "q_6JsWX": {"answer": 42, "additional_answer_info": {"half_answer": 21, "double_answer": 84}}, "q_pezxauQ": {"answer": 1}, "global_metadata": {"num_questions_asked": 8, "num_questions_answered": 6, "questions_with_integer_answers": ["q_bQRedX", "q_QstHhDjc", "q_zuMgB", "q_6JsWX", "q_pezxauQ"]}}}