rewrite sql