Inquest hears tragic details of final moments leading to boy