Update Parse.cpp

Fixed an issue with query type