Create SQL Query with Reg Exp.sql