The effects of social origins and cognitive ability on educational attainment · Study