query command and query entity complected