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_UfwNH):
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 chickens, 2 spiders, 2 elephants, 4 lobsters?
 Respond with an integer.

Question 1 (Question id: q_aBsGEk):
Calculate ( ( -1 - -7 ) ).

Question 2 (Question id: q_X7uWBu):
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: "about"

Question 3 (Question id: q_4hFqoS1j):
Calculate ( ( ( 7 * 2 ) ) ).



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

For every question id, supply an object whose 'answer' field stores the solution. 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.
If the response to a question is a string, add a 'first_char' field containing its first character.

Now provide the result JSON using the described format.

{"ground_truth": {"q_UfwNH": {"answer": 70, "task_type": "leg_counting", "answer_type": "integer", "half_answer": 35}, "q_X7uWBu": {"answer": "t", "answer_type": "string", "first_char": "t"}, "q_4hFqoS1j": {"answer": 14, "answer_type": "integer", "half_answer": 7}}}