[Query Processing] add two types of complex query