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_nqlE):
How many times does the letter "r" appear in the text: "of industry"? Respond with an integer.

Question 1 (Question id: q_B1SFJNM):
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 sea slugs, 3 chickens, 1 cow, 3 beetles?
 Respond with an integer.

Question 2 (Question id: q_ollJAoKE):
How many times does the letter "l" appear in the text: "distinctly to"? Respond with an integer.

Question 3 (Question id: q_vYpJ5b):
Determine the value of p that satisfies: 18*p - 16 = 56 Respond with an integer.

Question 4 (Question id: q_zL5e54t):
How many times does the letter "o" appear in the text: "of men of"? Respond with an integer.



Create a JSON object keyed by every question id except q_vYpJ5b.

Each key’s value must be an object holding an 'answer' field.
Include an 'answer_type' field (value 'string' or 'integer') for every answer object.
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.

Now provide the result JSON using the described format.

{"ground_truth": {"q_nqlE": {"answer": 1, "answer_type": "integer"}, "q_zL5e54t": {"answer": 2, "answer_type": "integer", "half_answer": 1}, "q_ollJAoKE": {"answer": 1, "answer_type": "integer"}, "q_B1SFJNM": {"answer": 28, "answer_type": "integer", "half_answer": 14}}}