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

Table Schemas:

film_rank contains tables such as film, market, film_market_estimation.
Table film has columns such as Film_ID, Title, Studio, Director, Gross_in_dollar.
Film_ID is the primary key.
Table market has columns such as Market_ID, Country, Number_cities.
Market_ID is the primary key.
Table film_market_estimation has columns such as Estimation_ID, Low_Estimate, High_Estimate, Film_ID, Type, Market_ID, Year.
Estimation_ID is the primary key.
The Market_ID of film_market_estimation is the foreign key of Market_ID of market.
The Film_ID of film_market_estimation is the foreign key of Film_ID of film.

##Role Access Policy (Column-Level):
Role: ContentManager
Accessible Columns: film: Film_ID, Title, Studio, Director; market: Market_ID, Country; film_market_estimation: Film_ID, Type, Market_ID, Year

Based on the above schema and your role's column-level access policy, generate a SQL query to answer the question. If your role does not have access to the required columns, respond with: "Sorry, I cannot answer."


Question: What are the titles and directors of the films were never presented in China?
Answer: SELECT title ,  director FROM film WHERE film_id NOT IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id  =  T2.Market_ID WHERE country  =  'China')
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT title ,  director FROM film WHERE film_id NOT IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id  =  T2.Market_ID WHERE country  =  'China')
##Instruction:
Database: film_rank
Total Tables: 3
Total Columns: 15

Table Schemas:

film_rank contains tables such as film, market, film_market_estimation.
Table film has columns such as Film_ID, Title, Studio, Director, Gross_in_dollar.
Film_ID is the primary key.
Table market has columns such as Market_ID, Country, Number_cities.
Market_ID is the primary key.
Table film_market_estimation has columns such as Estimation_ID, Low_Estimate, High_Estimate, Film_ID, Type, Market_ID, Year.
Estimation_ID is the primary key.
The Market_ID of film_market_estimation is the foreign key of Market_ID of market.
The Film_ID of film_market_estimation is the foreign key of Film_ID of film.

##Role Access Policy (Column-Level):
Role: ContentManager
Accessible Columns: film: Film_ID, Title, Studio, Director; market: Market_ID, Country; film_market_estimation: Film_ID, Type, Market_ID, Year

Based on the above schema and your role's column-level access policy, generate a SQL query to answer the question. If your role does not have access to the required columns, respond with: "Sorry, I cannot answer."


Question: Return the titles and directors of films that were never in the market of China.
Answer: SELECT title ,  director FROM film WHERE film_id NOT IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id  =  T2.Market_ID WHERE country  =  'China')
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT title ,  director FROM film WHERE film_id NOT IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id  =  T2.Market_ID WHERE country  =  'China')
##Instruction:
Database: game_1
Total Tables: 4
Total Columns: 19

Table Schemas:

game_1 contains tables such as Student, Video_Games, Plays_Games, SportsInfo.
Table Student has columns such as StuID, LName, Fname, Age, Sex, Major, Advisor, city_code.
StuID is the primary key.
Table Video_Games has columns such as GameID, GName, GType.
GameID is the primary key.
Table Plays_Games has columns such as StuID, GameID, Hours_Played.
Table SportsInfo has columns such as StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship.
The StuID of Plays_Games is the foreign key of StuID of Student.
The GameID of Plays_Games is the foreign key of GameID of Video_Games.
The StuID of SportsInfo is the foreign key of StuID of Student.

##Role Access Policy (Column-Level):
Role: StudentCounselor
Accessible Columns: Student: StuID, LName, Fname, Age, Sex, Major, Advisor, city_code; SportsInfo: StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship; Plays_Games: StuID, GameID, Hours_Played; Video_Games: GameID, GName, GType

Based on the above schema and your role's column-level access policy, generate a SQL query to answer the question. If your role does not have access to the required columns, respond with: "Sorry, I cannot answer."


Question: How many video games exist?
Answer: SELECT count(*) FROM Video_games
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT count(*) FROM Video_games
##Instruction:
Database: game_1
Total Tables: 4
Total Columns: 19

Table Schemas:

game_1 contains tables such as Student, Video_Games, Plays_Games, SportsInfo.
Table Student has columns such as StuID, LName, Fname, Age, Sex, Major, Advisor, city_code.
StuID is the primary key.
Table Video_Games has columns such as GameID, GName, GType.
GameID is the primary key.
Table Plays_Games has columns such as StuID, GameID, Hours_Played.
Table SportsInfo has columns such as StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship.
The StuID of Plays_Games is the foreign key of StuID of Student.
The GameID of Plays_Games is the foreign key of GameID of Video_Games.
The StuID of SportsInfo is the foreign key of StuID of Student.

##Role Access Policy (Column-Level):
Role: StudentCounselor
Accessible Columns: Student: StuID, LName, Fname, Age, Sex, Major, Advisor, city_code; SportsInfo: StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship; Plays_Games: StuID, GameID, Hours_Played; Video_Games: GameID, GName, GType

Based on the above schema and your role's column-level access policy, generate a SQL query to answer the question. If your role does not have access to the required columns, respond with: "Sorry, I cannot answer."


Question: How many video games do you have?
Answer: SELECT count(*) FROM Video_games
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT count(*) FROM Video_games
##Instruction:
Database: game_1
Total Tables: 4
Total Columns: 19

Table Schemas:

game_1 contains tables such as Student, Video_Games, Plays_Games, SportsInfo.
Table Student has columns such as StuID, LName, Fname, Age, Sex, Major, Advisor, city_code.
StuID is the primary key.
Table Video_Games has columns such as GameID, GName, GType.
GameID is the primary key.
Table Plays_Games has columns such as StuID, GameID, Hours_Played.
Table SportsInfo has columns such as StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship.
The StuID of Plays_Games is the foreign key of StuID of Student.
The GameID of Plays_Games is the foreign key of GameID of Video_Games.
The StuID of SportsInfo is the foreign key of StuID of Student.

##Role Access Policy (Column-Level):
Role: StudentCounselor
Accessible Columns: Student: StuID, LName, Fname, Age, Sex, Major, Advisor, city_code; SportsInfo: StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship; Plays_Games: StuID, GameID, Hours_Played; Video_Games: GameID, GName, GType

Based on the above schema and your role's column-level access policy, generate a SQL query to answer the question. If your role does not have access to the required columns, respond with: "Sorry, I cannot answer."


Question: How many video game types exist?
Answer: SELECT count(DISTINCT gtype) FROM Video_games
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT count(DISTINCT gtype) FROM Video_games
##Instruction:
Database: game_1
Total Tables: 4
Total Columns: 19

Table Schemas:

game_1 contains tables such as Student, Video_Games, Plays_Games, SportsInfo.
Table Student has columns such as StuID, LName, Fname, Age, Sex, Major, Advisor, city_code.
StuID is the primary key.
Table Video_Games has columns such as GameID, GName, GType.
GameID is the primary key.
Table Plays_Games has columns such as StuID, GameID, Hours_Played.
Table SportsInfo has columns such as StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship.
The StuID of Plays_Games is the foreign key of StuID of Student.
The GameID of Plays_Games is the foreign key of GameID of Video_Games.
The StuID of SportsInfo is the foreign key of StuID of Student.

##Role Access Policy (Column-Level):
Role: StudentCounselor
Accessible Columns: Student: StuID, LName, Fname, Age, Sex, Major, Advisor, city_code; SportsInfo: StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship; Plays_Games: StuID, GameID, Hours_Played; Video_Games: GameID, GName, GType

Based on the above schema and your role's column-level access policy, generate a SQL query to answer the question. If your role does not have access to the required columns, respond with: "Sorry, I cannot answer."


Question: What is the count of different game types?
Answer: SELECT count(DISTINCT gtype) FROM Video_games
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT count(DISTINCT gtype) FROM Video_games
##Instruction:
Database: game_1
Total Tables: 4
Total Columns: 19

Table Schemas:

game_1 contains tables such as Student, Video_Games, Plays_Games, SportsInfo.
Table Student has columns such as StuID, LName, Fname, Age, Sex, Major, Advisor, city_code.
StuID is the primary key.
Table Video_Games has columns such as GameID, GName, GType.
GameID is the primary key.
Table Plays_Games has columns such as StuID, GameID, Hours_Played.
Table SportsInfo has columns such as StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship.
The StuID of Plays_Games is the foreign key of StuID of Student.
The GameID of Plays_Games is the foreign key of GameID of Video_Games.
The StuID of SportsInfo is the foreign key of StuID of Student.

##Role Access Policy (Column-Level):
Role: StudentCounselor
Accessible Columns: Student: StuID, LName, Fname, Age, Sex, Major, Advisor, city_code; SportsInfo: StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship; Plays_Games: StuID, GameID, Hours_Played; Video_Games: GameID, GName, GType

Based on the above schema and your role's column-level access policy, generate a SQL query to answer the question. If your role does not have access to the required columns, respond with: "Sorry, I cannot answer."


Question: Show all video game types.
Answer: SELECT DISTINCT gtype FROM Video_games
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT DISTINCT gtype FROM Video_games
##Instruction:
Database: game_1
Total Tables: 4
Total Columns: 19

Table Schemas:

game_1 contains tables such as Student, Video_Games, Plays_Games, SportsInfo.
Table Student has columns such as StuID, LName, Fname, Age, Sex, Major, Advisor, city_code.
StuID is the primary key.
Table Video_Games has columns such as GameID, GName, GType.
GameID is the primary key.
Table Plays_Games has columns such as StuID, GameID, Hours_Played.
Table SportsInfo has columns such as StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship.
The StuID of Plays_Games is the foreign key of StuID of Student.
The GameID of Plays_Games is the foreign key of GameID of Video_Games.
The StuID of SportsInfo is the foreign key of StuID of Student.

##Role Access Policy (Column-Level):
Role: StudentCounselor
Accessible Columns: Student: StuID, LName, Fname, Age, Sex, Major, Advisor, city_code; SportsInfo: StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship; Plays_Games: StuID, GameID, Hours_Played; Video_Games: GameID, GName, GType

Based on the above schema and your role's column-level access policy, generate a SQL query to answer the question. If your role does not have access to the required columns, respond with: "Sorry, I cannot answer."


Question: What are the different types of video games?
Answer: SELECT DISTINCT gtype FROM Video_games
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT DISTINCT gtype FROM Video_games
##Instruction:
Database: game_1
Total Tables: 4
Total Columns: 19

Table Schemas:

game_1 contains tables such as Student, Video_Games, Plays_Games, SportsInfo.
Table Student has columns such as StuID, LName, Fname, Age, Sex, Major, Advisor, city_code.
StuID is the primary key.
Table Video_Games has columns such as GameID, GName, GType.
GameID is the primary key.
Table Plays_Games has columns such as StuID, GameID, Hours_Played.
Table SportsInfo has columns such as StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship.
The StuID of Plays_Games is the foreign key of StuID of Student.
The GameID of Plays_Games is the foreign key of GameID of Video_Games.
The StuID of SportsInfo is the foreign key of StuID of Student.

##Role Access Policy (Column-Level):
Role: StudentCounselor
Accessible Columns: Student: StuID, LName, Fname, Age, Sex, Major, Advisor, city_code; SportsInfo: StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship; Plays_Games: StuID, GameID, Hours_Played; Video_Games: GameID, GName, GType

Based on the above schema and your role's column-level access policy, generate a SQL query to answer the question. If your role does not have access to the required columns, respond with: "Sorry, I cannot answer."


Question: Show all video games and their types in the order of their names.
Answer: SELECT gname ,  gtype FROM Video_games ORDER BY gname
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT gname ,  gtype FROM Video_games ORDER BY gname
##Instruction:
Database: game_1
Total Tables: 4
Total Columns: 19

Table Schemas:

game_1 contains tables such as Student, Video_Games, Plays_Games, SportsInfo.
Table Student has columns such as StuID, LName, Fname, Age, Sex, Major, Advisor, city_code.
StuID is the primary key.
Table Video_Games has columns such as GameID, GName, GType.
GameID is the primary key.
Table Plays_Games has columns such as StuID, GameID, Hours_Played.
Table SportsInfo has columns such as StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship.
The StuID of Plays_Games is the foreign key of StuID of Student.
The GameID of Plays_Games is the foreign key of GameID of Video_Games.
The StuID of SportsInfo is the foreign key of StuID of Student.

##Role Access Policy (Column-Level):
Role: StudentCounselor
Accessible Columns: Student: StuID, LName, Fname, Age, Sex, Major, Advisor, city_code; SportsInfo: StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship; Plays_Games: StuID, GameID, Hours_Played; Video_Games: GameID, GName, GType

Based on the above schema and your role's column-level access policy, generate a SQL query to answer the question. If your role does not have access to the required columns, respond with: "Sorry, I cannot answer."


Question: What are the names of all the video games and their types in alphabetical order?
Answer: SELECT gname ,  gtype FROM Video_games ORDER BY gname
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT gname ,  gtype FROM Video_games ORDER BY gname
##Instruction:
Database: game_1
Total Tables: 4
Total Columns: 19

Table Schemas:

game_1 contains tables such as Student, Video_Games, Plays_Games, SportsInfo.
Table Student has columns such as StuID, LName, Fname, Age, Sex, Major, Advisor, city_code.
StuID is the primary key.
Table Video_Games has columns such as GameID, GName, GType.
GameID is the primary key.
Table Plays_Games has columns such as StuID, GameID, Hours_Played.
Table SportsInfo has columns such as StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship.
The StuID of Plays_Games is the foreign key of StuID of Student.
The GameID of Plays_Games is the foreign key of GameID of Video_Games.
The StuID of SportsInfo is the foreign key of StuID of Student.

##Role Access Policy (Column-Level):
Role: StudentCounselor
Accessible Columns: Student: StuID, LName, Fname, Age, Sex, Major, Advisor, city_code; SportsInfo: StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship; Plays_Games: StuID, GameID, Hours_Played; Video_Games: GameID, GName, GType

Based on the above schema and your role's column-level access policy, generate a SQL query to answer the question. If your role does not have access to the required columns, respond with: "Sorry, I cannot answer."


Question: Show all video games with type Collectible card game.
Answer: SELECT gname FROM Video_games WHERE gtype  =  "Collectible card game"
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT gname FROM Video_games WHERE gtype  =  "Collectible card game"
##Instruction:
Database: game_1
Total Tables: 4
Total Columns: 19

Table Schemas:

game_1 contains tables such as Student, Video_Games, Plays_Games, SportsInfo.
Table Student has columns such as StuID, LName, Fname, Age, Sex, Major, Advisor, city_code.
StuID is the primary key.
Table Video_Games has columns such as GameID, GName, GType.
GameID is the primary key.
Table Plays_Games has columns such as StuID, GameID, Hours_Played.
Table SportsInfo has columns such as StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship.
The StuID of Plays_Games is the foreign key of StuID of Student.
The GameID of Plays_Games is the foreign key of GameID of Video_Games.
The StuID of SportsInfo is the foreign key of StuID of Student.

##Role Access Policy (Column-Level):
Role: StudentCounselor
Accessible Columns: Student: StuID, LName, Fname, Age, Sex, Major, Advisor, city_code; SportsInfo: StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship; Plays_Games: StuID, GameID, Hours_Played; Video_Games: GameID, GName, GType

Based on the above schema and your role's column-level access policy, generate a SQL query to answer the question. If your role does not have access to the required columns, respond with: "Sorry, I cannot answer."


Question: What are the names of all video games that are collectible cards?
Answer: SELECT gname FROM Video_games WHERE gtype  =  "Collectible card game"
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT gname FROM Video_games WHERE gtype  =  "Collectible card game"
##Instruction:
Database: game_1
Total Tables: 4
Total Columns: 19

Table Schemas:

game_1 contains tables such as Student, Video_Games, Plays_Games, SportsInfo.
Table Student has columns such as StuID, LName, Fname, Age, Sex, Major, Advisor, city_code.
StuID is the primary key.
Table Video_Games has columns such as GameID, GName, GType.
GameID is the primary key.
Table Plays_Games has columns such as StuID, GameID, Hours_Played.
Table SportsInfo has columns such as StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship.
The StuID of Plays_Games is the foreign key of StuID of Student.
The GameID of Plays_Games is the foreign key of GameID of Video_Games.
The StuID of SportsInfo is the foreign key of StuID of Student.

##Role Access Policy (Column-Level):
Role: StudentCounselor
Accessible Columns: Student: StuID, LName, Fname, Age, Sex, Major, Advisor, city_code; SportsInfo: StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship; Plays_Games: StuID, GameID, Hours_Played; Video_Games: GameID, GName, GType

Based on the above schema and your role's column-level access policy, generate a SQL query to answer the question. If your role does not have access to the required columns, respond with: "Sorry, I cannot answer."


Question: What is the type of video game Call of Destiny.
Answer: SELECT gtype FROM Video_games WHERE gname  =  "Call of Destiny"
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT gtype FROM Video_games WHERE gname  =  "Call of Destiny"
##Instruction:
Database: game_1
Total Tables: 4
Total Columns: 19

Table Schemas:

game_1 contains tables such as Student, Video_Games, Plays_Games, SportsInfo.
Table Student has columns such as StuID, LName, Fname, Age, Sex, Major, Advisor, city_code.
StuID is the primary key.
Table Video_Games has columns such as GameID, GName, GType.
GameID is the primary key.
Table Plays_Games has columns such as StuID, GameID, Hours_Played.
Table SportsInfo has columns such as StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship.
The StuID of Plays_Games is the foreign key of StuID of Student.
The GameID of Plays_Games is the foreign key of GameID of Video_Games.
The StuID of SportsInfo is the foreign key of StuID of Student.

##Role Access Policy (Column-Level):
Role: StudentCounselor
Accessible Columns: Student: StuID, LName, Fname, Age, Sex, Major, Advisor, city_code; SportsInfo: StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship; Plays_Games: StuID, GameID, Hours_Played; Video_Games: GameID, GName, GType

Based on the above schema and your role's column-level access policy, generate a SQL query to answer the question. If your role does not have access to the required columns, respond with: "Sorry, I cannot answer."


Question: What type of game is Call of Destiny?
Answer: SELECT gtype FROM Video_games WHERE gname  =  "Call of Destiny"
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT gtype FROM Video_games WHERE gname  =  "Call of Destiny"
##Instruction:
Database: game_1
Total Tables: 4
Total Columns: 19

Table Schemas:

game_1 contains tables such as Student, Video_Games, Plays_Games, SportsInfo.
Table Student has columns such as StuID, LName, Fname, Age, Sex, Major, Advisor, city_code.
StuID is the primary key.
Table Video_Games has columns such as GameID, GName, GType.
GameID is the primary key.
Table Plays_Games has columns such as StuID, GameID, Hours_Played.
Table SportsInfo has columns such as StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship.
The StuID of Plays_Games is the foreign key of StuID of Student.
The GameID of Plays_Games is the foreign key of GameID of Video_Games.
The StuID of SportsInfo is the foreign key of StuID of Student.

##Role Access Policy (Column-Level):
Role: StudentCounselor
Accessible Columns: Student: StuID, LName, Fname, Age, Sex, Major, Advisor, city_code; SportsInfo: StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship; Plays_Games: StuID, GameID, Hours_Played; Video_Games: GameID, GName, GType

Based on the above schema and your role's column-level access policy, generate a SQL query to answer the question. If your role does not have access to the required columns, respond with: "Sorry, I cannot answer."


Question: How many video games have type Massively multiplayer online game?
Answer: SELECT count(*) FROM Video_games WHERE gtype  =  "Massively multiplayer online game"
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT count(*) FROM Video_games WHERE gtype  =  "Massively multiplayer online game"
##Instruction:
Database: game_1
Total Tables: 4
Total Columns: 19

Table Schemas:

game_1 contains tables such as Student, Video_Games, Plays_Games, SportsInfo.
Table Student has columns such as StuID, LName, Fname, Age, Sex, Major, Advisor, city_code.
StuID is the primary key.
Table Video_Games has columns such as GameID, GName, GType.
GameID is the primary key.
Table Plays_Games has columns such as StuID, GameID, Hours_Played.
Table SportsInfo has columns such as StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship.
The StuID of Plays_Games is the foreign key of StuID of Student.
The GameID of Plays_Games is the foreign key of GameID of Video_Games.
The StuID of SportsInfo is the foreign key of StuID of Student.

##Role Access Policy (Column-Level):
Role: StudentCounselor
Accessible Columns: Student: StuID, LName, Fname, Age, Sex, Major, Advisor, city_code; SportsInfo: StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship; Plays_Games: StuID, GameID, Hours_Played; Video_Games: GameID, GName, GType

Based on the above schema and your role's column-level access policy, generate a SQL query to answer the question. If your role does not have access to the required columns, respond with: "Sorry, I cannot answer."


Question: Count the number of video games with Massively multiplayer online game type .
Answer: SELECT count(*) FROM Video_games WHERE gtype  =  "Massively multiplayer online game"
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT count(*) FROM Video_games WHERE gtype  =  "Massively multiplayer online game"