You will be given a definition of a task first, then some input of the task.
Given scientific fact as input, generate the question from this fact such that it can be answered from the input.

In the freshwater flatworms, protonephridia serve chiefly in osmoregulation.
Output:
In the freshwater flatworms, protonephridia serve chiefly in what?