added     "qry_type" control

Signed-off-by: mienkoja <mienkoja@gmail.com>