how can pakistan qualify for semi finals