Answered

To whom was the charge of gardens often given?
Leading scientists
Ulama (the religious scholars)
Farmers
The caliph or the sultan