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_ZTeV):
Solve for k: 12*k - 9 = 219 Respond with an integer.

Question 1 (Question id: q_YdIt):
Calculate -1 + 4.

Question 2 (Question id: q_lHly5):
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: "by"

Question 3 (Question id: q_736QhTzb):
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: "with"

Question 4 (Question id: q_4KlwC):
How many times does the letter "h" appear in the text: "of each"? Respond with an integer.

Question 5 (Question id: q_HZkWXq):
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 lobsters, 4 chickens, 1 sheep, 3 lions?
 Respond with an integer.

Question 6 (Question id: q_M8mOX):
Calculate ( 3 * 1 - 1 ).

Question 7 (Question id: q_Q1ljdIg):
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: "have"

Question 8 (Question id: q_R2Tih):
How many times does the letter "o" appear in the text: "do you wish"? Respond with an integer.

Question 9 (Question id: q_MggQn):
Calculate 0 - -2.



Return a JSON with each question id (except for q_R2Tih, q_HZkWXq, q_lHly5) 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.
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.
For last-character tasks, provide 'original_string' alongside the answer.

Now provide the result JSON using the described format.

{"ground_truth": {"q_YdIt": {"answer": 3, "answer_type": "integer"}, "q_ZTeV": {"answer": 19, "answer_type": "integer"}, "q_M8mOX": {"answer": 2, "answer_type": "integer", "half_answer": 1}, "q_736QhTzb": {"answer": "h", "answer_type": "string", "original_string": "with"}, "q_Q1ljdIg": {"answer": "e", "answer_type": "string", "original_string": "have"}, "q_MggQn": {"answer": 2, "answer_type": "integer", "half_answer": 1}, "q_4KlwC": {"answer": 1, "answer_type": "integer"}}}