39 people found dead after man asked to ‘give them air’, court hears