A thought about the last human to fly a

Planes already fly themselves for most of the flight. The pilot is there for takeoff, landing, and emergencies. What happens when AI handles those.