sharkiefff/RBAC-Text2SQL-Benchmark huggingface dataset:
##Instruction:
Database: farm
Total Tables: 4
Total Columns: 24

Table Schemas:

farm contains tables such as city, farm, farm_competition, competition_record.
Table city has columns such as City_ID, Official_Name, Status, Area_km_2, Population, Census_Ranking.
City_ID is the primary key.
Table farm has columns such as Farm_ID, Year, Total_Horses, Working_Horses, Total_Cattle, Oxen, Bulls, Cows, Pigs, Sheep_and_Goats.
Farm_ID is the primary key.
Table farm_competition has columns such as Competition_ID, Year, Theme, Host_city_ID, Hosts.
Competition_ID is the primary key.
Table competition_record has columns such as Competition_ID, Farm_ID, Rank.
Competition_ID is the primary key.
The Host_city_ID of farm_competition is the foreign key of City_ID of city.
The Farm_ID of competition_record is the foreign key of Farm_ID of farm.
The Competition_ID of competition_record is the foreign key of Competition_ID of farm_competition.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - city: * (all columns)
  - competition_record: Competition_ID, Farm_ID
  - farm: Bulls, Cows, Farm_ID, Oxen, Pigs, Sheep_and_Goats, Total_Cattle, Working_Horses, Year
  - farm_competition: * (all columns)

Question: List the official name and status of the city with the largest population.
Answer: SELECT Official_Name ,  Status FROM city ORDER BY Population DESC LIMIT 1
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT Official_Name ,  Status FROM city ORDER BY Population DESC LIMIT 1
##Instruction:
Database: farm
Total Tables: 4
Total Columns: 24

Table Schemas:

farm contains tables such as city, farm, farm_competition, competition_record.
Table city has columns such as City_ID, Official_Name, Status, Area_km_2, Population, Census_Ranking.
City_ID is the primary key.
Table farm has columns such as Farm_ID, Year, Total_Horses, Working_Horses, Total_Cattle, Oxen, Bulls, Cows, Pigs, Sheep_and_Goats.
Farm_ID is the primary key.
Table farm_competition has columns such as Competition_ID, Year, Theme, Host_city_ID, Hosts.
Competition_ID is the primary key.
Table competition_record has columns such as Competition_ID, Farm_ID, Rank.
Competition_ID is the primary key.
The Host_city_ID of farm_competition is the foreign key of City_ID of city.
The Farm_ID of competition_record is the foreign key of Farm_ID of farm.
The Competition_ID of competition_record is the foreign key of Competition_ID of farm_competition.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - city: * (all columns)
  - competition_record: Competition_ID, Farm_ID
  - farm: Bulls, Cows, Farm_ID, Oxen, Pigs, Sheep_and_Goats, Total_Cattle, Working_Horses, Year
  - farm_competition: * (all columns)

Question: What is the official name and status of the city with the most residents?
Answer: SELECT Official_Name ,  Status FROM city ORDER BY Population DESC LIMIT 1
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT Official_Name ,  Status FROM city ORDER BY Population DESC LIMIT 1
##Instruction:
Database: farm
Total Tables: 4
Total Columns: 24

Table Schemas:

farm contains tables such as city, farm, farm_competition, competition_record.
Table city has columns such as City_ID, Official_Name, Status, Area_km_2, Population, Census_Ranking.
City_ID is the primary key.
Table farm has columns such as Farm_ID, Year, Total_Horses, Working_Horses, Total_Cattle, Oxen, Bulls, Cows, Pigs, Sheep_and_Goats.
Farm_ID is the primary key.
Table farm_competition has columns such as Competition_ID, Year, Theme, Host_city_ID, Hosts.
Competition_ID is the primary key.
Table competition_record has columns such as Competition_ID, Farm_ID, Rank.
Competition_ID is the primary key.
The Host_city_ID of farm_competition is the foreign key of City_ID of city.
The Farm_ID of competition_record is the foreign key of Farm_ID of farm.
The Competition_ID of competition_record is the foreign key of Competition_ID of farm_competition.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - city: * (all columns)
  - competition_record: Competition_ID, Farm_ID
  - farm: Bulls, Cows, Farm_ID, Oxen, Pigs, Sheep_and_Goats, Total_Cattle, Working_Horses, Year
  - farm_competition: * (all columns)

Question: Show the years and the official names of the host cities of competitions.
Answer: SELECT T2.Year ,  T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T2.Year ,  T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID
##Instruction:
Database: farm
Total Tables: 4
Total Columns: 24

Table Schemas:

farm contains tables such as city, farm, farm_competition, competition_record.
Table city has columns such as City_ID, Official_Name, Status, Area_km_2, Population, Census_Ranking.
City_ID is the primary key.
Table farm has columns such as Farm_ID, Year, Total_Horses, Working_Horses, Total_Cattle, Oxen, Bulls, Cows, Pigs, Sheep_and_Goats.
Farm_ID is the primary key.
Table farm_competition has columns such as Competition_ID, Year, Theme, Host_city_ID, Hosts.
Competition_ID is the primary key.
Table competition_record has columns such as Competition_ID, Farm_ID, Rank.
Competition_ID is the primary key.
The Host_city_ID of farm_competition is the foreign key of City_ID of city.
The Farm_ID of competition_record is the foreign key of Farm_ID of farm.
The Competition_ID of competition_record is the foreign key of Competition_ID of farm_competition.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - city: * (all columns)
  - competition_record: Competition_ID, Farm_ID
  - farm: Bulls, Cows, Farm_ID, Oxen, Pigs, Sheep_and_Goats, Total_Cattle, Working_Horses, Year
  - farm_competition: * (all columns)

Question: Give the years and official names of the cities of each competition.
Answer: SELECT T2.Year ,  T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T2.Year ,  T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID
##Instruction:
Database: farm
Total Tables: 4
Total Columns: 24

Table Schemas:

farm contains tables such as city, farm, farm_competition, competition_record.
Table city has columns such as City_ID, Official_Name, Status, Area_km_2, Population, Census_Ranking.
City_ID is the primary key.
Table farm has columns such as Farm_ID, Year, Total_Horses, Working_Horses, Total_Cattle, Oxen, Bulls, Cows, Pigs, Sheep_and_Goats.
Farm_ID is the primary key.
Table farm_competition has columns such as Competition_ID, Year, Theme, Host_city_ID, Hosts.
Competition_ID is the primary key.
Table competition_record has columns such as Competition_ID, Farm_ID, Rank.
Competition_ID is the primary key.
The Host_city_ID of farm_competition is the foreign key of City_ID of city.
The Farm_ID of competition_record is the foreign key of Farm_ID of farm.
The Competition_ID of competition_record is the foreign key of Competition_ID of farm_competition.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - city: * (all columns)
  - competition_record: Competition_ID, Farm_ID
  - farm: Bulls, Cows, Farm_ID, Oxen, Pigs, Sheep_and_Goats, Total_Cattle, Working_Horses, Year
  - farm_competition: * (all columns)

Question: Show the official names of the cities that have hosted more than one competition.
Answer: SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*)  >  1
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*)  >  1
##Instruction:
Database: farm
Total Tables: 4
Total Columns: 24

Table Schemas:

farm contains tables such as city, farm, farm_competition, competition_record.
Table city has columns such as City_ID, Official_Name, Status, Area_km_2, Population, Census_Ranking.
City_ID is the primary key.
Table farm has columns such as Farm_ID, Year, Total_Horses, Working_Horses, Total_Cattle, Oxen, Bulls, Cows, Pigs, Sheep_and_Goats.
Farm_ID is the primary key.
Table farm_competition has columns such as Competition_ID, Year, Theme, Host_city_ID, Hosts.
Competition_ID is the primary key.
Table competition_record has columns such as Competition_ID, Farm_ID, Rank.
Competition_ID is the primary key.
The Host_city_ID of farm_competition is the foreign key of City_ID of city.
The Farm_ID of competition_record is the foreign key of Farm_ID of farm.
The Competition_ID of competition_record is the foreign key of Competition_ID of farm_competition.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - city: * (all columns)
  - competition_record: Competition_ID, Farm_ID
  - farm: Bulls, Cows, Farm_ID, Oxen, Pigs, Sheep_and_Goats, Total_Cattle, Working_Horses, Year
  - farm_competition: * (all columns)

Question: What are the official names of cities that have hosted more than one competition?
Answer: SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*)  >  1
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*)  >  1
##Instruction:
Database: farm
Total Tables: 4
Total Columns: 24

Table Schemas:

farm contains tables such as city, farm, farm_competition, competition_record.
Table city has columns such as City_ID, Official_Name, Status, Area_km_2, Population, Census_Ranking.
City_ID is the primary key.
Table farm has columns such as Farm_ID, Year, Total_Horses, Working_Horses, Total_Cattle, Oxen, Bulls, Cows, Pigs, Sheep_and_Goats.
Farm_ID is the primary key.
Table farm_competition has columns such as Competition_ID, Year, Theme, Host_city_ID, Hosts.
Competition_ID is the primary key.
Table competition_record has columns such as Competition_ID, Farm_ID, Rank.
Competition_ID is the primary key.
The Host_city_ID of farm_competition is the foreign key of City_ID of city.
The Farm_ID of competition_record is the foreign key of Farm_ID of farm.
The Competition_ID of competition_record is the foreign key of Competition_ID of farm_competition.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - city: * (all columns)
  - competition_record: Competition_ID, Farm_ID
  - farm: Bulls, Cows, Farm_ID, Oxen, Pigs, Sheep_and_Goats, Total_Cattle, Working_Horses, Year
  - farm_competition: * (all columns)

Question: Show the status of the city that has hosted the greatest number of competitions.
Answer: SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1
##Instruction:
Database: farm
Total Tables: 4
Total Columns: 24

Table Schemas:

farm contains tables such as city, farm, farm_competition, competition_record.
Table city has columns such as City_ID, Official_Name, Status, Area_km_2, Population, Census_Ranking.
City_ID is the primary key.
Table farm has columns such as Farm_ID, Year, Total_Horses, Working_Horses, Total_Cattle, Oxen, Bulls, Cows, Pigs, Sheep_and_Goats.
Farm_ID is the primary key.
Table farm_competition has columns such as Competition_ID, Year, Theme, Host_city_ID, Hosts.
Competition_ID is the primary key.
Table competition_record has columns such as Competition_ID, Farm_ID, Rank.
Competition_ID is the primary key.
The Host_city_ID of farm_competition is the foreign key of City_ID of city.
The Farm_ID of competition_record is the foreign key of Farm_ID of farm.
The Competition_ID of competition_record is the foreign key of Competition_ID of farm_competition.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - city: * (all columns)
  - competition_record: Competition_ID, Farm_ID
  - farm: Bulls, Cows, Farm_ID, Oxen, Pigs, Sheep_and_Goats, Total_Cattle, Working_Horses, Year
  - farm_competition: * (all columns)

Question: What is the status of the city that has hosted the most competitions?
Answer: SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1
##Instruction:
Database: farm
Total Tables: 4
Total Columns: 24

Table Schemas:

farm contains tables such as city, farm, farm_competition, competition_record.
Table city has columns such as City_ID, Official_Name, Status, Area_km_2, Population, Census_Ranking.
City_ID is the primary key.
Table farm has columns such as Farm_ID, Year, Total_Horses, Working_Horses, Total_Cattle, Oxen, Bulls, Cows, Pigs, Sheep_and_Goats.
Farm_ID is the primary key.
Table farm_competition has columns such as Competition_ID, Year, Theme, Host_city_ID, Hosts.
Competition_ID is the primary key.
Table competition_record has columns such as Competition_ID, Farm_ID, Rank.
Competition_ID is the primary key.
The Host_city_ID of farm_competition is the foreign key of City_ID of city.
The Farm_ID of competition_record is the foreign key of Farm_ID of farm.
The Competition_ID of competition_record is the foreign key of Competition_ID of farm_competition.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - city: * (all columns)
  - competition_record: Competition_ID, Farm_ID
  - farm: Bulls, Cows, Farm_ID, Oxen, Pigs, Sheep_and_Goats, Total_Cattle, Working_Horses, Year
  - farm_competition: * (all columns)

Question: Please show the themes of competitions with host cities having populations larger than 1000.
Answer: SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID WHERE T1.Population  >  1000
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID WHERE T1.Population  >  1000
##Instruction:
Database: farm
Total Tables: 4
Total Columns: 24

Table Schemas:

farm contains tables such as city, farm, farm_competition, competition_record.
Table city has columns such as City_ID, Official_Name, Status, Area_km_2, Population, Census_Ranking.
City_ID is the primary key.
Table farm has columns such as Farm_ID, Year, Total_Horses, Working_Horses, Total_Cattle, Oxen, Bulls, Cows, Pigs, Sheep_and_Goats.
Farm_ID is the primary key.
Table farm_competition has columns such as Competition_ID, Year, Theme, Host_city_ID, Hosts.
Competition_ID is the primary key.
Table competition_record has columns such as Competition_ID, Farm_ID, Rank.
Competition_ID is the primary key.
The Host_city_ID of farm_competition is the foreign key of City_ID of city.
The Farm_ID of competition_record is the foreign key of Farm_ID of farm.
The Competition_ID of competition_record is the foreign key of Competition_ID of farm_competition.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - city: * (all columns)
  - competition_record: Competition_ID, Farm_ID
  - farm: Bulls, Cows, Farm_ID, Oxen, Pigs, Sheep_and_Goats, Total_Cattle, Working_Horses, Year
  - farm_competition: * (all columns)

Question: What are the themes of competitions that have corresponding host cities with more than 1000 residents?
Answer: SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID WHERE T1.Population  >  1000
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID WHERE T1.Population  >  1000
##Instruction:
Database: farm
Total Tables: 4
Total Columns: 24

Table Schemas:

farm contains tables such as city, farm, farm_competition, competition_record.
Table city has columns such as City_ID, Official_Name, Status, Area_km_2, Population, Census_Ranking.
City_ID is the primary key.
Table farm has columns such as Farm_ID, Year, Total_Horses, Working_Horses, Total_Cattle, Oxen, Bulls, Cows, Pigs, Sheep_and_Goats.
Farm_ID is the primary key.
Table farm_competition has columns such as Competition_ID, Year, Theme, Host_city_ID, Hosts.
Competition_ID is the primary key.
Table competition_record has columns such as Competition_ID, Farm_ID, Rank.
Competition_ID is the primary key.
The Host_city_ID of farm_competition is the foreign key of City_ID of city.
The Farm_ID of competition_record is the foreign key of Farm_ID of farm.
The Competition_ID of competition_record is the foreign key of Competition_ID of farm_competition.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - city: * (all columns)
  - competition_record: Competition_ID, Farm_ID
  - farm: Bulls, Cows, Farm_ID, Oxen, Pigs, Sheep_and_Goats, Total_Cattle, Working_Horses, Year
  - farm_competition: * (all columns)

Question: Please show the different statuses of cities and the average population of cities with each status.
Answer: SELECT Status ,  avg(Population) FROM city GROUP BY Status
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT Status ,  avg(Population) FROM city GROUP BY Status
##Instruction:
Database: farm
Total Tables: 4
Total Columns: 24

Table Schemas:

farm contains tables such as city, farm, farm_competition, competition_record.
Table city has columns such as City_ID, Official_Name, Status, Area_km_2, Population, Census_Ranking.
City_ID is the primary key.
Table farm has columns such as Farm_ID, Year, Total_Horses, Working_Horses, Total_Cattle, Oxen, Bulls, Cows, Pigs, Sheep_and_Goats.
Farm_ID is the primary key.
Table farm_competition has columns such as Competition_ID, Year, Theme, Host_city_ID, Hosts.
Competition_ID is the primary key.
Table competition_record has columns such as Competition_ID, Farm_ID, Rank.
Competition_ID is the primary key.
The Host_city_ID of farm_competition is the foreign key of City_ID of city.
The Farm_ID of competition_record is the foreign key of Farm_ID of farm.
The Competition_ID of competition_record is the foreign key of Competition_ID of farm_competition.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - city: * (all columns)
  - competition_record: Competition_ID, Farm_ID
  - farm: Bulls, Cows, Farm_ID, Oxen, Pigs, Sheep_and_Goats, Total_Cattle, Working_Horses, Year
  - farm_competition: * (all columns)

Question: What are the statuses and average populations of each city?
Answer: SELECT Status ,  avg(Population) FROM city GROUP BY Status
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT Status ,  avg(Population) FROM city GROUP BY Status
##Instruction:
Database: farm
Total Tables: 4
Total Columns: 24

Table Schemas:

farm contains tables such as city, farm, farm_competition, competition_record.
Table city has columns such as City_ID, Official_Name, Status, Area_km_2, Population, Census_Ranking.
City_ID is the primary key.
Table farm has columns such as Farm_ID, Year, Total_Horses, Working_Horses, Total_Cattle, Oxen, Bulls, Cows, Pigs, Sheep_and_Goats.
Farm_ID is the primary key.
Table farm_competition has columns such as Competition_ID, Year, Theme, Host_city_ID, Hosts.
Competition_ID is the primary key.
Table competition_record has columns such as Competition_ID, Farm_ID, Rank.
Competition_ID is the primary key.
The Host_city_ID of farm_competition is the foreign key of City_ID of city.
The Farm_ID of competition_record is the foreign key of Farm_ID of farm.
The Competition_ID of competition_record is the foreign key of Competition_ID of farm_competition.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - city: * (all columns)
  - competition_record: Competition_ID, Farm_ID
  - farm: Bulls, Cows, Farm_ID, Oxen, Pigs, Sheep_and_Goats, Total_Cattle, Working_Horses, Year
  - farm_competition: * (all columns)

Question: Please show the different statuses, ordered by the number of cities that have each.
Answer: SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) ASC
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) ASC
##Instruction:
Database: farm
Total Tables: 4
Total Columns: 24

Table Schemas:

farm contains tables such as city, farm, farm_competition, competition_record.
Table city has columns such as City_ID, Official_Name, Status, Area_km_2, Population, Census_Ranking.
City_ID is the primary key.
Table farm has columns such as Farm_ID, Year, Total_Horses, Working_Horses, Total_Cattle, Oxen, Bulls, Cows, Pigs, Sheep_and_Goats.
Farm_ID is the primary key.
Table farm_competition has columns such as Competition_ID, Year, Theme, Host_city_ID, Hosts.
Competition_ID is the primary key.
Table competition_record has columns such as Competition_ID, Farm_ID, Rank.
Competition_ID is the primary key.
The Host_city_ID of farm_competition is the foreign key of City_ID of city.
The Farm_ID of competition_record is the foreign key of Farm_ID of farm.
The Competition_ID of competition_record is the foreign key of Competition_ID of farm_competition.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - city: * (all columns)
  - competition_record: Competition_ID, Farm_ID
  - farm: Bulls, Cows, Farm_ID, Oxen, Pigs, Sheep_and_Goats, Total_Cattle, Working_Horses, Year
  - farm_competition: * (all columns)

Question: Return the different statuses of cities, ascending by frequency.
Answer: SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) ASC
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) ASC
##Instruction:
Database: farm
Total Tables: 4
Total Columns: 24

Table Schemas:

farm contains tables such as city, farm, farm_competition, competition_record.
Table city has columns such as City_ID, Official_Name, Status, Area_km_2, Population, Census_Ranking.
City_ID is the primary key.
Table farm has columns such as Farm_ID, Year, Total_Horses, Working_Horses, Total_Cattle, Oxen, Bulls, Cows, Pigs, Sheep_and_Goats.
Farm_ID is the primary key.
Table farm_competition has columns such as Competition_ID, Year, Theme, Host_city_ID, Hosts.
Competition_ID is the primary key.
Table competition_record has columns such as Competition_ID, Farm_ID, Rank.
Competition_ID is the primary key.
The Host_city_ID of farm_competition is the foreign key of City_ID of city.
The Farm_ID of competition_record is the foreign key of Farm_ID of farm.
The Competition_ID of competition_record is the foreign key of Competition_ID of farm_competition.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - city: * (all columns)
  - competition_record: Competition_ID, Farm_ID
  - farm: Bulls, Cows, Farm_ID, Oxen, Pigs, Sheep_and_Goats, Total_Cattle, Working_Horses, Year
  - farm_competition: * (all columns)

Question: List the most common type of Status across cities.
Answer: SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1