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_cbQKiki):
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: "survive"

Question 1 (Question id: q_vucVHx):
How many times does the letter "o" appear in the text: "to scientific"? Respond with an integer.

Question 2 (Question id: q_ShPCfFka):
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 dogs, 4 shrimps, 3 cows?
 Respond with an integer.

Question 3 (Question id: q_grtENF):
Calculate 7 + -7.

Question 4 (Question id: q_DosJo):
Calculate ( ( ( -7 * -1 ) ) * 3 ).



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'.
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.
For last-character tasks, provide 'original_string' alongside the answer.

Now provide the result JSON using the described format.

{"ground_truth": {"q_cbQKiki": {"answer": "e", "first_char": "e", "original_string": "survive"}, "q_vucVHx": {"answer": 1}, "q_ShPCfFka": {"answer": 64, "half_answer": 32}, "q_grtENF": {"answer": 0, "half_answer": 0}, "q_DosJo": {"answer": 21}}}