Task: Question Answering
Input (English): Context: The 2001 shoe bomb attempt was a failed bombing attempt that occurred on December 22, 2001, on American Airlines Flight 63. The aircraft, a Boeing 767-300 with 197 passengers and crew aboard, was flying from Charles de Gaulle Airport in Paris, France, to Miami International Airport in Miami, Florida, United States. The perpetrator, Richard Reid, was subdued by passengers after unsuccessfully attempting to detonate plastic explosives concealed within his shoes. The flight was diverted to Logan International Airport in Boston, under escort by American jet fighters, and safely landed without further incident. Reid was arrested and eventually sentenced to 3 life terms plus 110 years without parole. 
 Question: What happened first, the failed bombing attempt, or the flight being diverted to Logan international airport?
Output (English): failed bombing attempt