The Office for National Statistics (ONS) linked 2021 census data to death registrations to estimate life expectancy according to sexual orientation.