use SQL to query student information and class information