Implement logical AND queries