runCBO check: cbo only for query and explain