add some reusable queries, functions to pull data and infer types for arff