Erzhuo Wang's SQL code

Auto-generated file, should not be in the review.