work with diff query syntax