made some progress on debugging the parser still doesn't fully work
now parses the query I have given it