sample query interceptor.