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_p7NPfEl):
Calculate 6 / 1.

Question 1 (Question id: q_mwBP3):
How many times does the letter "r" appear in the text: "miles or so"? Respond with an integer.

Question 2 (Question id: q_LHgxj94):
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 jellyfishs, 1 beetle, 2 shrimps, 4 cows, 1 flatworm?
 Respond with an integer.

Question 3 (Question id: q_fCDPd6):
Calculate 0 + 4.

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

Question 5 (Question id: q_UNVvQ7hW):
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 2 crickets, 1 starfish, 2 chickens, 1 sheep, 3 butterflys?
 Respond with an integer.

Question 6 (Question id: q_tjvn):
Determine the value of n that satisfies: 5*n + 21 = 101 Respond with an integer.

Question 7 (Question id: q_hXUUIx1):
Calculate 5 - -6 - -4.

Question 8 (Question id: q_q9UPmItn):
How many times does the letter "g" appear in the text: "of light"? Respond with an integer.



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

Each key’s value must be an object holding an 'answer' field.
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 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_p7NPfEl": {"answer": 6, "half_answer": 3}, "q_mwBP3": {"answer": 1}, "q_LHgxj94": {"answer": 42, "half_answer": 21, "animal_types": ["beetle", "cow", "flatworm", "jellyfish", "shrimp"]}, "q_fCDPd6": {"answer": 4, "half_answer": 2}, "q_8FaXK": {"answer": "g", "first_char": "g"}, "q_UNVvQ7hW": {"answer": 43, "animal_types": ["butterfly", "chicken", "cricket", "sheep", "starfish"]}, "q_tjvn": {"answer": 16, "half_answer": 8}, "q_hXUUIx1": {"answer": 15}, "q_q9UPmItn": {"answer": 1}}}