Support for QuerySm