implement slurp_diff_sql