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_LIjVm5q8):
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 jellyfishs, 1 starfish, 1 scorpion, 4 sheeps, 1 giraffe?
 Respond with an integer.

Question 1 (Question id: q_6GNe):
Solve for y: 27 - 255*y = -2013 Respond with an integer.

Question 2 (Question id: q_hJO3):
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: "and"

Question 3 (Question id: q_qZ67X):
Solve for b: -19*b - 27 = -274 Respond with an integer.

Question 4 (Question id: q_4coyE):
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: "distant"



Return a JSON with each question id as a key.

The value for each key should be an object that contains the answer in the field 'answer'. Additionally, if the task is about counting legs of animals or counting letters in a string, add the task_type field with value 'leg_counting' or 'letter_counting', respectively.
For even integer answers, include 'half_answer' equal to answer ÷ 2.

Beyond the question-id fields, add a 'global_metadata' object with summary information:
'num_questions_asked' should equal the total questions that appeared.
• 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_LIjVm5q8": {"answer": 33, "task_type": "leg_counting"}, "q_6GNe": {"answer": 8, "half_answer": 4}, "q_hJO3": {"answer": "d"}, "q_qZ67X": {"answer": 13}, "q_4coyE": {"answer": "t"}, "global_metadata": {"num_questions_asked": 5, "questions_with_integer_answers": ["q_LIjVm5q8", "q_6GNe", "q_qZ67X"]}}}