Sql Long Integer Python Example For Loop