updated SQL selections in correct format for API - results, and 2 queries for the Math interface