A cabin attendant asked the passengers.
CA: There are some sick people in the plane. Is there a doctor among the passengers?
There was a doctor and he went to see the patients.
After a few minutes, the cabin attendant came again and asked the passengers.
CA: Excuse me, is there a pilot among the passengers?