major refactor on parser -- flatten collections translation & abstract collection building -- works for joins