SELECT
  model,
  fcst_init,
  fcst_valid,
  fcst_lead,
'APCP_24' fcst_var,
  object_id,
 'NA' object_cat,
  'ANGLEDIFF_AA' stat_name,
  angle_diff stat_value
FROM
  mode_header,
  mode_obj_pair
WHERE
    BINARY model IN ('GFS', 'GFS_T1534', 'GFS_T1534_4d')
  AND   BINARY fcst_lead IN ('360000', '600000', '840000', '1080000', '1320000', '1560000', '1800000')
 AND  BINARY  fcst_var = 'APCP_24'  AND mode_header.mode_header_id = mode_obj_pair.mode_header_id ;

