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_yro75o):
How many times does the letter "a" appear in the text: "shall simply have"? Respond with an integer.

Question 1 (Question id: q_4ZQqMQ):
Calculate 2 - 1 - 0.

Question 2 (Question id: q_YgxEs):
Find the value of a in the equation: 19*a - 20 = 170 Respond with an integer.

Question 3 (Question id: q_ys7XJ1FO):
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 grasshoppers, 2 flatworms, 1 scorpion?
 Respond with an integer.

Question 4 (Question id: q_cFtjds):
Calculate 8 / 4.

Question 5 (Question id: q_PFgOV):
Calculate 6 * 5.

Question 6 (Question id: q_VRYK6):
Calculate 5 + -5.

Question 7 (Question id: q_v9jYnKD):
How many times does the letter "y" appear in the text: "your specialty"? Respond with an integer.

Question 8 (Question id: q_hpnyjqG):
Calculate ( ( 6 * 3 ) ).

Question 9 (Question id: q_FNC1xwM):
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: "understand"

Question 10 (Question id: q_cPgfQ9):
How many times does the letter "l" appear in the text: "FULL PROJECT"? Respond with an integer.



Return a JSON with each question id (except for q_v9jYnKD, q_PFgOV) as a key.

For every question id, supply an object whose 'answer' field stores the solution. If a question involves animal-leg or letter counting, include 'task_type' set to 'leg_counting' or 'letter_counting'.
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 last-character tasks, provide 'original_string' alongside the answer.

Beyond the question-id fields, add a 'global_metadata' object with summary information:
Set 'num_questions_asked' to the count of questions originally displayed.

Now provide the result JSON using the described format.

{"ground_truth": {"q_hpnyjqG": {"answer": 18, "half_answer": 9}, "q_yro75o": {"answer": 2, "task_type": "letter_counting", "half_answer": 1}, "q_ys7XJ1FO": {"answer": 32, "task_type": "leg_counting", "half_answer": 16}, "q_YgxEs": {"answer": 10, "half_answer": 5}, "q_FNC1xwM": {"answer": "d", "first_char": "d", "original_string": "understand"}, "q_4ZQqMQ": {"answer": 1}, "q_VRYK6": {"answer": 0, "half_answer": 0}, "q_cFtjds": {"answer": 2, "half_answer": 1}, "q_cPgfQ9": {"answer": 2, "task_type": "letter_counting", "half_answer": 1}, "global_metadata": {"num_questions_asked": 11}}}