Support queries with multiple comparisons per key

Used by console to filter by a bounded timestamp range.
Auto-merge remote-tracking branch 'upstream/master'