Unify projecting attributes on tuples in simple cases
Calculate attribute indices with an offset value to rid similar codes