Revert "change sql"

This reverts commit fd3223b65c0e547aeb0ce41bf37e449f5a691c71.