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_upwsSr):
How many times does the letter "d" appear in the text: "are indifferent in"? Respond with an integer.

Question 1 (Question id: q_aJGA):
Solve for x: 18*x + 11 = 299 Respond with an integer.

Question 2 (Question id: q_gOWQ6Rn):
Calculate -2 + 7 - 5.

Question 3 (Question id: q_c8UFG7Y):
Find the value of q in the equation: 10*q = 200 Respond with an integer.

Question 4 (Question id: q_frYMz):
Calculate 9 + 2 * 5.

Question 5 (Question id: q_wy0Yapzx):
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 1 flatworm, 1 lion, 4 sea slugs, 2 chickens, 2 sheeps?
 Respond with an integer.

Question 6 (Question id: q_XQEhMu):
How many times does the letter "s" appear in the text: "amounting sometimes to"? Respond with an integer.



Return a JSON with each question id (except for q_upwsSr, q_wy0Yapzx) as a key.

The value for each key should be an object that contains the answer in the field 'answer'.
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).

Beyond the question-id fields, add a 'global_metadata' object with summary information:
• num_questions_asked – total number of questions originally shown.
• questions_with_integer_answers: ids of questions with integer replies.

Now provide the result JSON using the described format.

{"ground_truth": {"q_frYMz": {"answer": 19}, "q_c8UFG7Y": {"answer": 20, "additional_answer_info": {"half_answer": 10, "double_answer": 40}}, "q_XQEhMu": {"answer": 2, "additional_answer_info": {"half_answer": 1, "double_answer": 4}}, "q_aJGA": {"answer": 16, "additional_answer_info": {"half_answer": 8, "double_answer": 32}}, "q_gOWQ6Rn": {"answer": 0, "additional_answer_info": {"half_answer": 0, "double_answer": 0}}, "global_metadata": {"num_questions_asked": 7, "questions_with_integer_answers": ["q_frYMz", "q_c8UFG7Y", "q_XQEhMu", "q_aJGA", "q_gOWQ6Rn"]}}}