Complex sentence: The 2017 Kidapawan jail siege occurred when about a hundred unidentified armed men attacked the North Cotabato district jail in Barangay Amas of Kidapawan at around midnight freeing at least 158 inmates out of the 1,511 people detained in the prison.
Split into simpler sentences: The 2017 Kidapawan jail siege occurred when about a hundred unidentified armed men attacked the North Cotabato Provincial Jail in Kidapawan at around midnight freeing at least 158 inmates. This led to the escape of at least 158 inmates out of the 1,511 people detained in the prison.