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_9anG):
Find the value of q in the equation: 10*q = 200 Respond with an integer.

Question 1 (Question id: q_Q008ji8):
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 giraffes, 4 ducks, 1 shrimp, 2 crabs, 1 ant?
 Respond with an integer.

Question 2 (Question id: q_rzhSqUy):
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: "the"

Question 3 (Question id: q_2HqPfH):
Calculate 5 + 9.

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

Question 5 (Question id: q_EAmwr0A8):
How many times does the letter "g" appear in the text: "these projects rejecting"? Respond with an integer.



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

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 question asks for the last character of a string, add an 'original_string' field containing the source string.

Now provide the result JSON using the described format.

{"ground_truth": {"q_9anG": {"answer": 20, "half_answer": 10}, "q_Q008ji8": {"answer": 60, "half_answer": 30}, "q_rzhSqUy": {"answer": "e", "original_string": "the"}, "q_2HqPfH": {"answer": 14, "half_answer": 7}, "q_D0Q5Qh": {"answer": "n", "original_string": "selection"}, "q_EAmwr0A8": {"answer": 1}}}