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_3yfWe):
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: "living"

Question 1 (Question id: q_ghf8):
Solve for q: -10*q - 9 = -119 Respond with an integer.

Question 2 (Question id: q_yrJx):
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 starfish, 2 birds, 2 cows, 1 cat, 1 firefly?
 Respond with an integer.

Question 3 (Question id: q_cl6QY):
Determine the value of o that satisfies: 6 - 11*o = -214 Respond with an integer.

Question 4 (Question id: q_RWJay):
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 jellyfishs, 1 horse, 1 wasp, 2 crickets, 4 birds?
 Respond with an integer.

Question 5 (Question id: q_0dyz):
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 ants, 2 praying mantiss, 1 giraffe, 4 dogs?
 Respond with an integer.

Question 6 (Question id: q_ioLIvSi):
Determine the value of h that satisfies: 16*h + 15 = 79 Respond with an integer.

Question 7 (Question id: q_oPDMoN):
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, 3 insects, 1 starfish, 1 shrimp?
 Respond with an integer.

Question 8 (Question id: q_NSNw):
How many times does the letter "w" appear in the text: "electronic works"? Respond with an integer.



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'.
Also add the answer type as 'string' or 'integer' to the field 'answer_type' for each object.
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.

Now provide the result JSON using the described format.

{"ground_truth": {"q_3yfWe": {"answer": "g", "answer_type": "string", "original_string": "living"}, "q_ghf8": {"answer": 11, "answer_type": "integer"}, "q_yrJx": {"answer": 27, "answer_type": "integer"}, "q_cl6QY": {"answer": 20, "answer_type": "integer", "half_answer": 10}, "q_RWJay": {"answer": 30, "answer_type": "integer", "half_answer": 15}, "q_0dyz": {"answer": 50, "answer_type": "integer", "half_answer": 25}, "q_ioLIvSi": {"answer": 4, "answer_type": "integer", "half_answer": 2}, "q_oPDMoN": {"answer": 49, "answer_type": "integer"}, "q_NSNw": {"answer": 1, "answer_type": "integer"}}}