TST: test nondate vs. date comparisons in query