Added Generator to generate sql result