N1QL Union performance with UNNEST

Are you projecting values from rec or amount