Implement AND query