add function for supporting subQuery and fullQuery.