sharkiefff/RBAC-Text2SQL-Benchmark huggingface dataset:
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: Return the average horizontal bar points across all gymnasts.
Answer: SELECT avg(Horizontal_Bar_Points) FROM gymnast
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT avg(Horizontal_Bar_Points) FROM gymnast
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: What are the names of people in ascending alphabetical order?
Answer: SELECT Name FROM People ORDER BY Name ASC
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT Name FROM People ORDER BY Name ASC
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: Return the names of people, ordered alphabetically.
Answer: SELECT Name FROM People ORDER BY Name ASC
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT Name FROM People ORDER BY Name ASC
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: What are the names of gymnasts?
Answer: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: Return the names of the gymnasts.
Answer: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: What are the names of gymnasts whose hometown is not "Santo Domingo"?
Answer: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T2.Hometown != "Santo Domingo"
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T2.Hometown != "Santo Domingo"
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: Return the names of gymnasts who did not grow up in Santo Domingo.
Answer: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T2.Hometown != "Santo Domingo"
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T2.Hometown != "Santo Domingo"
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: What is the age of the tallest person?
Answer: SELECT Age FROM people ORDER BY Height DESC LIMIT 1
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT Age FROM people ORDER BY Height DESC LIMIT 1
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: Return the age of the person with the greatest height.
Answer: SELECT Age FROM people ORDER BY Height DESC LIMIT 1
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT Age FROM people ORDER BY Height DESC LIMIT 1
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: List the names of the top 5 oldest people.
Answer: SELECT Name FROM People ORDER BY Age DESC LIMIT 5
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT Name FROM People ORDER BY Age DESC LIMIT 5
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: What are the names of the five oldest people?
Answer: SELECT Name FROM People ORDER BY Age DESC LIMIT 5
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT Name FROM People ORDER BY Age DESC LIMIT 5
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: What is the total point count of the youngest gymnast?
Answer: SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Age ASC LIMIT 1
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Age ASC LIMIT 1
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: Return the total points of the gymnast with the lowest age.
Answer: SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Age ASC LIMIT 1
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Age ASC LIMIT 1
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: What is the average age of all gymnasts?
Answer: SELECT avg(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT avg(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: Return the average age across all gymnasts.
Answer: SELECT avg(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT avg(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: What are the distinct hometowns of gymnasts with total points more than 57.5?
Answer: SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T1.Total_Points  >  57.5
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T1.Total_Points  >  57.5
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: Give the different hometowns of gymnasts that have a total point score of above 57.5.
Answer: SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T1.Total_Points  >  57.5
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T1.Total_Points  >  57.5
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: What are the hometowns of gymnasts and the corresponding number of gymnasts?
Answer: SELECT T2.Hometown ,  COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T2.Hometown ,  COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: How many gymnasts are from each hometown?
Answer: SELECT T2.Hometown ,  COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T2.Hometown ,  COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: What is the most common hometown of gymnasts?
Answer: SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: Return the hometown that is most common among gymnasts.
Answer: SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: What are the hometowns that are shared by at least two gymnasts?
Answer: SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*)  >=  2
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*)  >=  2
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: Give the hometowns from which two or more gymnasts are from.
Answer: SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*)  >=  2
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*)  >=  2
##Instruction:
Database: gymnast
Total Tables: 2
Total Columns: 13

Table Schemas:

gymnast contains tables such as gymnast, people.
Table gymnast has columns such as Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points.
Gymnast_ID is the primary key.
Table people has columns such as People_ID, Name, Age, Height, Hometown.
People_ID is the primary key.
The Gymnast_ID of gymnast is the foreign key of People_ID of people.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - gymnast: * (all columns)
  - people: * (all columns)

Question: List the names of gymnasts in ascending order by their heights.
Answer: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Height ASC
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Height ASC