PRD-4249: Allow only single select in datasource query tree