rewrite query9 api
fix bug in query9 correction unit test