SELECT
  model,
  ld.fcst_init_beg,
  ld.fcst_valid_beg,
  ld.fcst_lead,
'APCP_03' fcst_var,
  'FBIAS' stat_name,
  'NA' stat_value,
  ld.total,
  ld.fy_oy,
  ld.fy_on,
  ld.fn_oy,
  ld.fn_on,
  ld.ec_value 
FROM
  stat_header h,
  line_data_ctc ld
WHERE
    BINARY h.model IN ('HRRR_sppmp_mem1_ctrlvx_hrconus', 'HRRR_sppmp_mem2_ctrlvx_hrconus', 'HRRR_sppmp_mem3_ctrlvx_hrconus', 'HRRR_sppmp_mem4_ctrlvx_hrconus', 'HRRR_sppmp_mem5_ctrlvx_hrconus', 'HRRR_sppmp_mem6_ctrlvx_hrconus', 'HRRR_sppmp_mem7_ctrlvx_hrconus')
  AND   BINARY ld.fcst_lead IN ('30000', '60000', '90000', '120000', '150000', '180000', '210000', '240000', '270000', '300000', '330000', '360000')
  AND   BINARY h.fcst_var = 'APCP_03'
  AND ld.stat_header_id = h.stat_header_id;

