sharkiefff/RBAC-Text2SQL-Benchmark huggingface dataset:
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: Find the names of states that have some college students playing in goalie and mid positions.
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid'
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: What are the names of the states that have some college students playing in the positions of goalie and mid-field?
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid'
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: How many schools have some students playing in goalie and mid positions.
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT COUNT(*) FROM (SELECT cName FROM  tryout WHERE pPos  =  'goalie' INTERSECT SELECT cName FROM  tryout WHERE pPos  =  'mid')
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: How many schools have students playing in goalie and mid-field positions?
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT COUNT(*) FROM (SELECT cName FROM  tryout WHERE pPos  =  'goalie' INTERSECT SELECT cName FROM  tryout WHERE pPos  =  'mid')
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: Find the names of schools that have some players in the mid position but not in the goalie position.
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT cName FROM  tryout WHERE pPos  =  'mid' EXCEPT SELECT cName FROM  tryout WHERE pPos  =  'goalie'
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: What are the names of the schools with some players in the mid position but no goalies?
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT cName FROM  tryout WHERE pPos  =  'mid' EXCEPT SELECT cName FROM  tryout WHERE pPos  =  'goalie'
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: Find the names of states that have some college students playing in the mid position but not in the goalie position.
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie'
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: What are the names of all the states with college students playing in the mid position but no goalies?
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie'
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: How many states that have some college students playing in the mid position but not in the goalie position.
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie')
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: What is the count of states with college students playing in the mid position but not as goalies?
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie')
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: Find the states where have the colleges whose enrollments are less than the largest size.
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT DISTINCT state FROM college WHERE enr  <  (SELECT max(enr) FROM college)
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: What are the states with colleges that have enrollments less than the some other college?
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT DISTINCT state FROM college WHERE enr  <  (SELECT max(enr) FROM college)
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: Find names of colleges with enrollment greater than that of some (at least one) college in the FL state.
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT DISTINCT cName FROM college WHERE enr  >  (SELECT min(enr) FROM college WHERE state  =  'FL')
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: What are the names of the colleges that are larger than at least one college in Florida?
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT DISTINCT cName FROM college WHERE enr  >  (SELECT min(enr) FROM college WHERE state  =  'FL')
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: Find names of all colleges whose enrollment is greater than that of all colleges in the FL state.
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT cName FROM college WHERE enr  >  (SELECT max(enr) FROM college WHERE state  =  'FL')
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: What are the names of all colleges with a larger enrollment than the largest college in Florida?
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT cName FROM college WHERE enr  >  (SELECT max(enr) FROM college WHERE state  =  'FL')
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: What is the total number of enrollment of schools that do not have any goalie player?
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT sum(enr) FROM college WHERE cName NOT IN (SELECT cName FROM tryout WHERE pPos  =  "goalie")
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: What is the total number of students enrolled in schools without any goalies?
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT sum(enr) FROM college WHERE cName NOT IN (SELECT cName FROM tryout WHERE pPos  =  "goalie")
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: What is the number of states that has some college whose enrollment is larger than the average enrollment?
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT count(DISTINCT state) FROM college WHERE enr  >  (SELECT avg(enr) FROM college)
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: How many states have a college with more students than average?
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT count(DISTINCT state) FROM college WHERE enr  >  (SELECT avg(enr) FROM college)
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: What is the number of states that has some colleges whose enrollment is smaller than the average enrollment?
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT count(DISTINCT state) FROM college WHERE enr  <  (SELECT avg(enr) FROM college)
##Instruction:
Database: soccer_2
Total Tables: 3
Total Columns: 11

Table Schemas:

soccer_2 contains tables such as College, Player, Tryout.
Table College has columns such as cName, state, enr.
cName is the primary key.
Table Player has columns such as pID, pName, yCard, HS.
pID is the primary key.
Table Tryout has columns such as pID, cName, pPos, decision.
pID is the primary key.
The cName of Tryout is the foreign key of cName of College.
The pID of Tryout is the foreign key of pID of Player.

##Role Access Policy (Column-Level):
Role: DataOperator_3
Accessible Columns:
  - College: enr, state
  - Player: * (all columns)
  - Tryout: decision, pID

Question: How many states have smaller colleges than average?
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: SELECT count(DISTINCT state) FROM college WHERE enr  <  (SELECT avg(enr) FROM college)
##Instruction:
Database: protein_institute
Total Tables: 3
Total Columns: 22

Table Schemas:

protein_institute contains tables such as building, Institution, protein.
Table building has columns such as building_id, Name, Street_address, Years_as_tallest, Height_feet, Floors.
building_id is the primary key.
Table Institution has columns such as Institution_id, Institution, Location, Founded, Type, Enrollment, Team, Primary_Conference, building_id.
Institution_id is the primary key.
Table protein has columns such as common_name, protein_name, divergence_from_human_lineage, accession_number, sequence_length, sequence_identity_to_human_protein, Institution_id.
common_name is the primary key.
The building_id of Institution is the foreign key of building_id of building.
The Institution_id of protein is the foreign key of Institution_id of Institution.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - Institution: * (all columns)
  - building: Floors, Height_feet, Name, Street_address
  - protein: * (all columns)

Question: How many buildings are there?
Answer: SELECT count(*) FROM building
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT count(*) FROM building
##Instruction:
Database: protein_institute
Total Tables: 3
Total Columns: 22

Table Schemas:

protein_institute contains tables such as building, Institution, protein.
Table building has columns such as building_id, Name, Street_address, Years_as_tallest, Height_feet, Floors.
building_id is the primary key.
Table Institution has columns such as Institution_id, Institution, Location, Founded, Type, Enrollment, Team, Primary_Conference, building_id.
Institution_id is the primary key.
Table protein has columns such as common_name, protein_name, divergence_from_human_lineage, accession_number, sequence_length, sequence_identity_to_human_protein, Institution_id.
common_name is the primary key.
The building_id of Institution is the foreign key of building_id of building.
The Institution_id of protein is the foreign key of Institution_id of Institution.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - Institution: * (all columns)
  - building: Floors, Height_feet, Name, Street_address
  - protein: * (all columns)

Question: Show the name, street address, and number of floors for all buildings ordered by the number of floors.
Answer: SELECT name ,  street_address ,  floors FROM building ORDER BY floors
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT name ,  street_address ,  floors FROM building ORDER BY floors