full sql to run