Add or-based test for queries