better query type selection (list, pivottable/crosstable)