SELECT * FROM `fao-maps.iati.fct_iati_data_mali` 
where (@sector_group = 'all' or @sector_group = sector_category_code) 
  and (@reporting_org = 'all' or @reporting_org = reporting_org_ref)