add parse query using PEG and tests