Task: Question Generation
Input (English): Passage: When Halsey turned TF 34 southwards at 11:15, he detached a task group of four of its cruisers and nine of its destroyers under Rear Admiral DuBose, and reassigned this group to TF 38. At 14:15, Mitscher ordered DuBose to pursue the remnants of the Japanese Northern Force. His cruisers finished off the light carrier Chiyoda at around 17:00, and at 20:59 his ships sank the destroyer Hatsuzuki after a very stubborn fight. When Admiral Ozawa learned of the deployment of DuBose's relatively weak task group, he ordered battleships Ise and Hyūga to turn southwards and attack it, but they failed to locate DuBose's group, which they heavily outgunned. Halsey's withdrawal of all six of Lee's battleships in his attempt to assist Seventh Fleet had now rendered TF 38 vulnerable to a surface counterattack by the decoy Northern Force. At about 23:10, the American submarine Jallao torpedoed and sank the light cruiser Tama of Ozawa's force. This was the last act of the Battle of Cape Engaño, and—apart from some final air strikes on the retreating Japanese forces on 26 October—the conclusion of the Battle for Leyte Gulf.
Output (English): What happened first: Halsey detached a task group or conclusion of the Battle for Leyte Gulf?