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_oTYnhT):
How many times does the letter "i" appear in the text: "in interesting"? Respond with an integer.

Question 1 (Question id: q_t6uUt9):
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: "is"

Question 2 (Question id: q_Uu3jgC):
How many times does the letter "e" appear in the text: "telephote was got"? Respond with an integer.

Question 3 (Question id: q_icjIfRe):
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 horses, 2 starfishs, 3 wasps, 1 bee?
 Respond with an integer.

Question 4 (Question id: q_kfQe):
Calculate -4 * -7 + 1.

Question 5 (Question id: q_dLQO):
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: "is"

Question 6 (Question id: q_wChysJEk):
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 chickens, 3 wasps, 4 elephants?
 Respond with an integer.

Question 7 (Question id: q_9ETxp8U):
How many times does the letter "n" appear in the text: "planet gravitates"? Respond with an integer.

Question 8 (Question id: q_yJXc):
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: "do"

Question 9 (Question id: q_knY6Gh1):
Find the value of b in the equation: 6 - 2*b = -30 Respond with an integer.

Question 10 (Question id: q_EbQcMxTU):
Calculate ( 3 * 3 - -2 ).



Return a JSON with each question id (except for q_wChysJEk, q_icjIfRe, q_knY6Gh1, q_t6uUt9) as a key.

The value for each key should be an object that contains the answer in the field 'answer'.
Include an 'answer_type' field (value 'string' or 'integer') for every answer 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.

Add a top-level 'global_metadata' field that records overall stats:
'num_questions_asked' should equal the total questions that appeared.
Record the answered-question count in the field 'num_questions_answered'.

Now provide the result JSON using the described format.

{"ground_truth": {"q_yJXc": {"answer": "o", "answer_type": "string"}, "q_dLQO": {"answer": "s", "answer_type": "string"}, "q_EbQcMxTU": {"answer": 11, "answer_type": "integer"}, "q_Uu3jgC": {"answer": 3, "answer_type": "integer"}, "q_9ETxp8U": {"answer": 1, "answer_type": "integer"}, "q_oTYnhT": {"answer": 3, "answer_type": "integer"}, "q_kfQe": {"answer": 29, "answer_type": "integer"}, "global_metadata": {"num_questions_asked": 11, "num_questions_answered": 7}}}