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_wnAAP6nG):
Determine the value of y that satisfies: 90*y - 270 = 1530 Respond with an integer.

Question 1 (Question id: q_JIN5CAZ):
Find the value of g in the equation: 114*g + 57 = 2109 Respond with an integer.

Question 2 (Question id: q_GKuv):
Calculate 5 + 8 * 4.

Question 3 (Question id: q_ihNd):
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: "or"

Question 4 (Question id: q_hHx3):
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 dogs, 2 giraffes, 3 snakes?
 Respond with an integer.

Question 5 (Question id: q_ct1Sqf):
Solve for p: 12*p + 15 = 51 Respond with an integer.

Question 6 (Question id: q_hEyO6):
Calculate 7 * 7.



Your output must be a JSON mapping every question id to its answer info.

For every question id, supply an object whose 'answer' field stores the solution.
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 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.
Add 'num_questions_answered' showing how many questions you answered.
• questions_with_integer_answers – list of question ids whose answers are integers (empty list if none).

Now provide the result JSON using the described format.

{"ground_truth": {"q_wnAAP6nG": {"answer": 20, "half_answer": 10}, "q_JIN5CAZ": {"answer": 18, "half_answer": 9}, "q_GKuv": {"answer": 37}, "q_ihNd": {"answer": "r", "first_char": "r"}, "q_hHx3": {"answer": 24, "half_answer": 12}, "q_ct1Sqf": {"answer": 3}, "q_hEyO6": {"answer": 49}, "global_metadata": {"num_questions_asked": 7, "num_questions_answered": 7, "questions_with_integer_answers": ["q_wnAAP6nG", "q_JIN5CAZ", "q_GKuv", "q_hHx3", "q_ct1Sqf", "q_hEyO6"]}}}