test queries for data