Create sql_reduction