more query case issues