reduce query #, also select dataset table