Test output student query.