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_zWI4E):
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 lobsters, 2 cows, 4 chickens, 2 scorpions?
 Respond with an integer.

Question 1 (Question id: q_vg1NYbUW):
How many times does the letter "r" appear in the text: "charge a"? Respond with an integer.

Question 2 (Question id: q_GGCFfoz):
Calculate -7 + 6 - -6.

Question 3 (Question id: q_ETy4):
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: "because"

Question 4 (Question id: q_LZbmKw):
How many times does the letter "w" appear in the text: "went on September"? Respond with an integer.



Your output must be a JSON mapping every question id to its answer info.

The value for each key should be an object that contains the answer in the field 'answer'. 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, also add the field 'half_answer' to the object which contains the answer integer divided by two.
For last-character tasks, provide 'original_string' alongside the answer.

Now provide the result JSON using the described format.

{"ground_truth": {"q_zWI4E": {"answer": 62, "task_type": "leg_counting", "answer_type": "integer", "half_answer": 31}, "q_vg1NYbUW": {"answer": 1, "task_type": "letter_counting", "answer_type": "integer"}, "q_GGCFfoz": {"answer": 5, "answer_type": "integer"}, "q_ETy4": {"answer": "e", "answer_type": "string", "original_string": "because"}, "q_LZbmKw": {"answer": 1, "task_type": "letter_counting", "answer_type": "integer"}}}