parse+generate tuple selections