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_SBR7U1l0):
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: "made"

Question 1 (Question id: q_FS9t):
How many times does the letter "m" appear in the text: "may at pleasure"? Respond with an integer.

Question 2 (Question id: q_h9Pfc):
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: "body"

Question 3 (Question id: q_0cHbGZ):
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: "rankings"

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

Question 5 (Question id: q_DBXTB7):
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: "basketball"

Question 6 (Question id: q_Pd8ii):
How many times does the letter "k" appear in the text: "work required"? Respond with an integer.

Question 7 (Question id: q_3ZyqspL):
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 1 lion, 3 flatworms, 2 horses?
 Respond with an integer.

Question 8 (Question id: q_9bW8OH):
How many times does the letter "y" appear in the text: "of yesterday A"? Respond with an integer.

Question 9 (Question id: q_3Dvqwu):
Calculate ( -7 + 8 ).

Question 10 (Question id: q_zaFjU):
How many times does the letter "t" appear in the text: "through which to"? Respond with an integer.

Question 11 (Question id: q_uDZGVFPV):
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: "resilience"

Question 12 (Question id: q_OEj2):
Find the value of f in the equation: 19 - 16*f = -301 Respond with an integer.

Question 13 (Question id: q_yNSpQ8F):
How many times does the letter "r" appear in the text: "well know everything"? Respond with an integer.



Create a JSON object keyed by every question id except q_DBXTB7, q_SBR7U1l0.

For every question id, supply an object whose 'answer' field stores the solution.
For even integer answers, include 'half_answer' equal to answer ÷ 2.
If the question asks for the last character of a string, add an 'original_string' field containing the source string.
For animal-leg questions, add 'animal_types': an alphabetically-sorted list of unique animal names in singular form.

Now provide the result JSON using the described format.

{"ground_truth": {"q_zaFjU": {"answer": 2, "half_answer": 1}, "q_h9Pfc": {"answer": "y", "original_string": "body"}, "q_3Dvqwu": {"answer": 1}, "q_FS9t": {"answer": 1}, "q_0cHbGZ": {"answer": "s", "original_string": "rankings"}, "q_uDZGVFPV": {"answer": "e", "original_string": "resilience"}, "q_Pd8ii": {"answer": 1}, "q_9bW8OH": {"answer": 2, "half_answer": 1}, "q_GAl1NETJ": {"answer": "d", "original_string": "and"}, "q_OEj2": {"answer": 20, "half_answer": 10}, "q_yNSpQ8F": {"answer": 1}, "q_3ZyqspL": {"answer": 12, "half_answer": 6, "animal_types": ["flatworm", "horse", "lion"]}}}