to qualify for the semifinals