Most countries do it off of World Cup results. If they dont have enough racers/results with WC events it usually goes to time trials or European Cup results. There also usually are point qualifications (US does top 500 in the world which is not as easy as it sounds) on top of these timed results. Each country I believe gets 4(?) skiers per race, and a max of 14 per gender.