text query implementation using container