finish a part of create query tree