Query API supports logical OR and AND operators