Add subselect to query builder
Merge pull request #4201 from alprs/feature/query-subselect

Add subselect to query builder