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_rGw9):
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"

Question 1 (Question id: q_tRU9mQuu):
Determine the value of y that satisfies: 90*y - 270 = 1530 Respond with an integer.

Question 2 (Question id: q_S947):
How many times does the letter "i" appear in the text: "Project Gutenberg electronic"? Respond with an integer.

Question 3 (Question id: q_a3toin6):
Solve for r: 30 - 4*r = -10 Respond with an integer.



Return a JSON with each question id as a key.

Each key’s value must be an object holding an 'answer' field.
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.

Beyond the question-id fields, add a 'global_metadata' object with summary information:
'num_questions_asked' should equal the total questions that appeared.

Now provide the result JSON using the described format.

{"ground_truth": {"q_rGw9": {"answer": "d", "first_char": "d"}, "q_tRU9mQuu": {"answer": 20, "half_answer": 10}, "q_S947": {"answer": 1}, "q_a3toin6": {"answer": 10, "half_answer": 5}, "global_metadata": {"num_questions_asked": 4}}}