Implemented basic parser and logic query plan generator