Added support for basic queries with key conditions