parser up to sql query