SELECT ww_user_id,
       acct_id,
       wm_poi_id
  FROM origindb.waimaibizadop_wm_bizad_marketing__wm_ad_marketing_wx_user_info base
  LEFT JOIN (
        SELECT wm_poi_id
          FROM mart_waimai.aggr_poi_info_dd
         WHERE dt = 20230424
           AND biz_org_code = 14010
       ) AS a
    ON base.wm_poi_id = a.wm_poi_id
  LEFT JOIN (
        SELECT wm_poi_id
          FROM mart_waimai.aggr_poi_info_dd
         WHERE dt = 20230424
           AND biz_org_code != 14010
       ) AS b
    ON base.wm_poi_id = b.wm_poi_id
 WHERE base.friend_status = 1
   AND base.acct_id > 0
优化这段sql