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_kxk3a):
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: "biology"

Question 1 (Question id: q_dx6Yi):
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: "or"

Question 2 (Question id: q_irU2UTB):
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 scorpions, 2 spiders, 2 insects, 3 lobsters, 1 shrimp?
 Respond with an integer.

Question 3 (Question id: q_hZa5):
Calculate 9 + 4 - 4.



Return a JSON with each question id as a key.

Each key’s value must be an object holding an 'answer' field. If a question involves animal-leg or letter counting, include 'task_type' set to 'leg_counting' or 'letter_counting'.
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, add the field 'additional_answer_info' containing 'half_answer' (answer ÷ 2) and 'double_answer' (answer × 2).
If the question asks for the last character of a string, add an 'original_string' field containing the source string.

Now provide the result JSON using the described format.

{"ground_truth": {"q_kxk3a": {"answer": "y", "answer_type": "string", "original_string": "biology"}, "q_dx6Yi": {"answer": "r", "answer_type": "string", "original_string": "or"}, "q_irU2UTB": {"answer": 100, "task_type": "leg_counting", "answer_type": "integer", "additional_answer_info": {"half_answer": 50, "double_answer": 200}}, "q_hZa5": {"answer": 9, "answer_type": "integer"}}}