add nested sql select support

nested sql select support