There are certain things foreign nationals can't do in this country or many other countries for that matter. Vote, be a policeman, hold public office, for example, there are other situations. Extending this to ensure employment priority for the citizens of a country is not racist. It makes sense...