queries inherit method upgrade
queries: most of the methods check the type of the given parameters
complex_queries.js updated