Use QUERY when WHERE clause has HASH KEY.
Use a range query when only a hash key or range key is specified in query. Includes tests.
Fix conflics