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_kzkD8nO6):
How many times does the letter "w" appear in the text: "and transformers we"? Respond with an integer.

Question 1 (Question id: q_X3jPe):
Solve for p: 7 - 17*p = -299 Respond with an integer.

Question 2 (Question id: q_DWohg):
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 beetles, 3 spiders, 3 birds?
 Respond with an integer.

Question 3 (Question id: q_reGqn):
Solve for h: 6*h + 10 = 46 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, add the field 'additional_answer_info' containing 'half_answer' (answer ÷ 2) and 'double_answer' (answer × 2).
For string answers, include 'first_char' with the answer’s initial letter.
For last-character tasks, provide 'original_string' alongside the answer.
When counting animal legs, include an 'animal_types' list of the distinct animal names (singular, sorted).

Now provide the result JSON using the described format.

{"ground_truth": {"q_kzkD8nO6": {"answer": 1}, "q_X3jPe": {"answer": 18, "additional_answer_info": {"half_answer": 9, "double_answer": 36}}, "q_DWohg": {"answer": 54, "additional_answer_info": {"half_answer": 27, "double_answer": 108}, "animal_types": ["beetle", "bird", "spider"]}, "q_reGqn": {"answer": 6, "additional_answer_info": {"half_answer": 3, "double_answer": 12}}}}