Create SQL to REVO