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_LmivUanJ):
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 butterfly, 3 grasshoppers, 4 flatworms?
 Respond with an integer.

Question 1 (Question id: q_zfwMqN):
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 crickets, 2 giraffes, 3 lions, 1 spider, 1 scorpion?
 Respond with an integer.

Question 2 (Question id: q_JnhGy):
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 giraffes, 2 praying mantiss, 3 scorpions, 1 bird?
 Respond with an integer.

Question 3 (Question id: q_IuLigp):
How many times does the letter "o" appear in the text: "is unprotected"? Respond with an integer.

Question 4 (Question id: q_XZtUiYQz):
How many times does the letter "e" appear in the text: "weeks I"? Respond with an integer.

Question 5 (Question id: q_n3lS2):
Find the value of h in the equation: 29 - 2*h = -11 Respond with an integer.

Question 6 (Question id: q_lJpRb9U):
How many times does the letter "c" appear in the text: "following which you"? Respond with an integer.



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

The value for each key should be an object that contains the answer in the field 'answer'.
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.
If the response to a question is a string, add a 'first_char' field containing its first character.
For last-character tasks, provide 'original_string' alongside the answer.

Now provide the result JSON using the described format.

{"ground_truth": {"q_n3lS2": {"answer": 20, "answer_type": "integer", "half_answer": 10}, "q_JnhGy": {"answer": 54, "answer_type": "integer", "half_answer": 27}, "q_zfwMqN": {"answer": 54, "answer_type": "integer", "half_answer": 27}, "q_lJpRb9U": {"answer": 1, "answer_type": "integer"}, "q_XZtUiYQz": {"answer": 2, "answer_type": "integer", "half_answer": 1}, "q_IuLigp": {"answer": 1, "answer_type": "integer"}}}