How Education Affects Democracy