add a query of total score of each student