support sql direct query