Generator: fix Sequence to String Query