Implementation of parse of select, from and where clauses