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_606B):
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 crabs, 2 scorpions, 2 humans, 4 chickens?
 Respond with an integer.

Question 1 (Question id: q_hw37):
Calculate ( ( ( 6 + -7 ) ) - -1 ).

Question 2 (Question id: q_ROD4):
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: "like"



Produce a JSON object whose top-level keys are the question ids.

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.
If the response to a question is an integer that is even, also add the field 'half_answer' to the object which contains the answer integer divided by two.
If the response to a question is a string, add a 'first_char' field containing its first character.

Add a top-level 'global_metadata' field that records overall stats:
Include 'num_questions_asked' to record the total number of questions presented.
• num_questions_answered: count of questions present in your JSON.
• questions_with_integer_answers – list of question ids whose answers are integers (empty list if none).

Now provide the result JSON using the described format.

{"ground_truth": {"q_606B": {"answer": 58, "answer_type": "integer", "half_answer": 29}, "q_hw37": {"answer": 0, "answer_type": "integer", "half_answer": 0}, "q_ROD4": {"answer": "e", "answer_type": "string", "first_char": "e"}, "global_metadata": {"num_questions_asked": 3, "num_questions_answered": 3, "questions_with_integer_answers": ["q_606B", "q_hw37"]}}}