Run GenerateSQL