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_inRmwHo):
Find the value of k in the equation: 20*k + 5 = 305 Respond with an integer.

Question 1 (Question id: q_ZIz4):
Calculate -2 + 3.

Question 2 (Question id: q_qHl2X):
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: "immune"

Question 3 (Question id: q_7ollTB):
Find the value of b in the equation: 4*b + 7 = 27 Respond with an integer.

Question 4 (Question id: q_4Dgk):
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 butterflys, 1 beetle, 2 chickens?
 Respond with an integer.

Question 5 (Question id: q_mbPWWm):
Calculate ( 6 + -4 ).



Return a JSON with each question id as a key.

Each key’s value must be an object holding an 'answer' field.
If the response to a question is an integer that is even, add the field 'additional_answer_info' containing 'half_answer' (answer ÷ 2) and 'double_answer' (answer × 2).

Add a top-level 'global_metadata' field that records overall stats:
'num_questions_asked' should equal the total questions that appeared.
• num_questions_answered: count of questions present in your JSON.
'questions_with_integer_answers' should enumerate every id whose answer is an integer.

In addition, add 'combined_results' with:
  • integer_info: per-id integer answers
  • sum_of_answers: their total

Now provide the result JSON using the described format.

{"ground_truth": {"q_inRmwHo": {"answer": 15}, "q_ZIz4": {"answer": 1}, "q_qHl2X": {"answer": "e"}, "q_7ollTB": {"answer": 5}, "q_4Dgk": {"answer": 34, "additional_answer_info": {"half_answer": 17, "double_answer": 68}}, "q_mbPWWm": {"answer": 2, "additional_answer_info": {"half_answer": 1, "double_answer": 4}}, "global_metadata": {"num_questions_asked": 6, "num_questions_answered": 6, "questions_with_integer_answers": ["q_inRmwHo", "q_ZIz4", "q_7ollTB", "q_4Dgk", "q_mbPWWm"]}, "combined_results": {"integer_info": {"q_inRmwHo": 15, "q_ZIz4": 1, "q_7ollTB": 5, "q_4Dgk": 34, "q_mbPWWm": 2}, "sum_of_answers": 57}}}