Erzhuo Wang's SQL code

should not be in the review