updated generate operator so an "as" clause is allowed to define schema of generated output