You should articulate what the resulting query string will look like, or, better yet, a pointer to the standard and a non-trivial example to illustrate.

Also what is "cls"? Please define the arguments and responses