Completed getAllSubjectsStatement.