The candidate for prime minister, Beata Szydlo, waves after her Eurosceptic party defeats the pro-EU Civic Platform.