query to support mixed collections