add some quick starting points for convert the SQL to squeel