Greatly simplified query API