So theoretically a country that completely ignores its own citizens and decides to open the door for anybody that can physically cross a border to obtain free education, healthcare and food is the greatest country.

Alternatively, the US could just had over another few billion dollars to Egypt and Israel over the next 30 years to bump back to the top 5. What meaning does this ranking entail?