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_sY11e):
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 scorpions, 4 elephants, 1 cricket, 1 chicken, 1 shrimp?
 Respond with an integer.

Question 1 (Question id: q_lEW0zh):
Find the value of x in the equation: 60*x - 220 = 860 Respond with an integer.

Question 2 (Question id: q_BULbZ8F):
Calculate -2 * -9.

Question 3 (Question id: q_D0CP):
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 2 cockroachs, 4 praying mantiss, 4 fireflys, 3 deers, 1 bee?
 Respond with an integer.

Question 4 (Question id: q_HHGkS):
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: "and"



Return a JSON with each question id (except for q_sY11e) as a key.

For every question id, supply an object whose 'answer' field stores the solution.
For even integer answers, include 'half_answer' equal to answer ÷ 2.
For string answers, include 'first_char' with the answer’s initial letter.

Beyond the question-id fields, add a 'global_metadata' object with summary information:
Set 'num_questions_asked' to the count of questions originally displayed.
Fill 'questions_with_integer_answers' with the ids of integer-answer questions (leave empty when none).

Now provide the result JSON using the described format.

{"ground_truth": {"q_HHGkS": {"answer": "d", "first_char": "d"}, "q_BULbZ8F": {"answer": 18, "half_answer": 9}, "q_lEW0zh": {"answer": 18, "half_answer": 9}, "q_D0CP": {"answer": 78, "half_answer": 39}, "global_metadata": {"num_questions_asked": 5, "questions_with_integer_answers": ["q_BULbZ8F", "q_lEW0zh", "q_D0CP"]}}}