unnest mda with ordinality