forecast improve sql

copy from report