Fixed type (Tera Data -> Teradata); renamed variable (queries -> numQueries) to make code more readable