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_aTYD):
Find the value of r in the equation: 640*r = 3200 Respond with an integer.

Question 1 (Question id: q_EDLN):
Calculate 2 * 6 + -1.

Question 2 (Question id: q_7P2Y):
Solve for k: 12*k - 9 = 219 Respond with an integer.

Question 3 (Question id: q_4M0a4Q):
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, 1 shrimp, 1 cat, 4 horses, 3 elephants?
 Respond with an integer.



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

The value for each key should be an object that contains the answer in the field 'answer'.
Also add the answer type as 'string' or 'integer' to the field 'answer_type' for each object.
For even integer answers, include 'half_answer' equal to answer ÷ 2.
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: how many questions were asked in total.
• 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_4M0a4Q": {"answer": 58, "answer_type": "integer", "half_answer": 29}, "q_7P2Y": {"answer": 19, "answer_type": "integer"}, "q_EDLN": {"answer": 11, "answer_type": "integer"}, "global_metadata": {"num_questions_asked": 4, "questions_with_integer_answers": ["q_4M0a4Q", "q_7P2Y", "q_EDLN"]}}}