Original sentence: they fail to beat Bosnia and Herzegvina.they lose to Turkey AND Spain fail to beat Belgium
Edited sentence: Bosnia and Herzegovina lose to Armenia, OR.On 12 August San Marino (Group 3) fail to beat Slovenia AND on 5 September Northern Ireland and Poland draw; OR.On 12 August Scotland (Group 9) fail to beat Norway, OR.On 5 September Scotland fail to beat FYR Macedonia, OR.Spain defeat Belgium, OR.Turkey fail to beat Estonia.and  are able to qualify only via the UEFA play-offs.they defeat Belgium, AND.they defeat Belgium, OR.they draw with Belgium AND on 12 August Scotland (Group 9) fail to beat Norway AND on 5 September Scotland and FYR Macedonia draw, AND.they draw with Belgium, AND.they draw with Estonia AND Spain draw with Belgium.they fail to beat Bosnia and Herzegovina.they fail to beat Spain.they lose to Estonia, OR.they lose to Turkey AND Bosnia and Herzegovina defeat Armenia.will be able to qualify only via the UEFA play-off if:.will ensure at least 2nd place (although that, by itself, does not guarantee a place in the UEFA play-offs) if:.will ensure at least a place in the UEFA play-offs with: