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_BsPEbq):
Calculate 7 * 6.

Question 1 (Question id: q_6fkLOw):
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 3 giraffes, 4 cockroachs, 4 deers, 1 ant?
 Respond with an integer.

Question 2 (Question id: q_uHQ0):
Solve for q: 17*q + 10 = 231 Respond with an integer.



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

The value for each key should be an object that contains the answer in the field 'answer'.
Include an 'answer_type' field (value 'string' or 'integer') for every answer object.
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.
If the question asks for the last character of a string, add an 'original_string' field containing the source string.

Beyond the question-id fields, add a 'global_metadata' object with summary information:
'num_questions_asked' should equal the total questions that appeared.
Fill 'questions_with_integer_answers' with the ids of integer-answer questions (leave empty when none).

Now provide the result JSON using the described format.

{"ground_truth": {"q_6fkLOw": {"answer": 58, "answer_type": "integer", "additional_answer_info": {"half_answer": 29, "double_answer": 116}}, "q_uHQ0": {"answer": 13, "answer_type": "integer"}, "global_metadata": {"num_questions_asked": 3, "questions_with_integer_answers": ["q_6fkLOw", "q_uHQ0"]}}}