scripts for find the long time execution sql