Added result training fragment
Added result training fragment
fixed training sql query