AdvancedSQL tasks 29 to 32