Support for basic query command