What was the average number of people born in other EU states in millions, when the number of people born in a non EU state in millions was 31.368, and when the total population in millions was higher than 501.098?
SELECT AVG Born in other EU state (millions) FROM table WHERE Born in a non EU state (millions) = 31.368 AND Total population (millions) > 501.098