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_IZywrQT):
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 ducks, 2 cows, 1 grasshopper, 1 elephant?
 Respond with an integer.

Question 1 (Question id: q_L6hv):
How many times does the letter "d" appear in the text: "charitable donations"? Respond with an integer.

Question 2 (Question id: q_88vWc2):
Find the value of g in the equation: 90*g = 720 Respond with an integer.

Question 3 (Question id: q_lZKlrz):
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: "ourselves"

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



Return a JSON with each question id as a key.

For every question id, supply an object whose 'answer' field stores the solution.
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).
For string answers, include 'first_char' with the answer’s initial letter.

Now provide the result JSON using the described format.

{"ground_truth": {"q_IZywrQT": {"answer": 26, "additional_answer_info": {"half_answer": 13, "double_answer": 52}}, "q_L6hv": {"answer": 1}, "q_88vWc2": {"answer": 8, "additional_answer_info": {"half_answer": 4, "double_answer": 16}}, "q_lZKlrz": {"answer": "s", "first_char": "s"}, "q_FBuGFDX": {"answer": "d", "first_char": "d"}}}