Select *
From `fao-maps.fao_hih_datalab.vw_country_subnational_adm_level_2` 
where (year=CAST(@year as INT64)) and 
      (@crop='All Crops' or cpc_product_name=@crop) and
      (metric_unit=@metric)
