combined define and handler select query definition in parser