Update to the latest version of Query (should fix Sum queries. The SQL query engine doesn't have good tests, though)