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_uDFui3V):
Solve for d: 1170*d = 12870 Respond with an integer.

Question 1 (Question id: q_4qI1kka):
Calculate ( 8 - 2 + -2 ).

Question 2 (Question id: q_a8vHbm):
Determine the value of h that satisfies: 16*h + 15 = 79 Respond with an integer.

Question 3 (Question id: q_3RiyYrn):
Calculate -3 - 0 + 8.

Question 4 (Question id: q_wVSdCr):
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 1 crab, 3 horses, 4 cats?
 Respond with an integer.

Question 5 (Question id: q_BI82FsW):
Solve for y: 234*y - 15 = 687 Respond with an integer.



Output JSON where all question ids are keys, omitting q_4qI1kka.

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.

Add a top-level 'global_metadata' field that records overall stats:
• num_questions_asked – total number of questions originally shown.
• questions_with_integer_answers: ids of questions with integer replies.

Now provide the result JSON using the described format.

{"ground_truth": {"q_wVSdCr": {"answer": 38, "half_answer": 19}, "q_3RiyYrn": {"answer": 5}, "q_uDFui3V": {"answer": 11}, "q_a8vHbm": {"answer": 4, "half_answer": 2}, "q_BI82FsW": {"answer": 3}, "global_metadata": {"num_questions_asked": 6, "questions_with_integer_answers": ["q_wVSdCr", "q_3RiyYrn", "q_uDFui3V", "q_a8vHbm", "q_BI82FsW"]}}}