driver structure for bayes-query