Exploring over 700 massive quiescent galaxies at z = 2–7: Demographics and stellar mass functions | Synapse