cube sql generation added