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

Table Schemas:

tvshow contains tables such as TV_Channel, TV_series, Cartoon.
Table TV_Channel has columns such as id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option.
id is the primary key.
Table TV_series has columns such as id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel.
id is the primary key.
Table Cartoon has columns such as id, Title, Directed_by, Written_by, Original_air_date, Production_code, Channel.
id is the primary key.
The Channel of TV_series is the foreign key of id of TV_Channel.
The Channel of Cartoon is the foreign key of id of TV_Channel.

##Role Access Policy (Column-Level):
Role: ContentManager
Accessible Columns: TV_Channel: id, series_name, Country, Language, Content, Package_Option; TV_series: id, Episode, Air_Date, Channel, Weekly_Rank; Cartoon: id, Title, Original_air_date, Channel

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: List the number of different series names and contents in the TV Channel table.
Answer: SELECT count(DISTINCT series_name) ,  count(DISTINCT content) FROM TV_Channel;
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT count(DISTINCT series_name) ,  count(DISTINCT content) FROM TV_Channel;
##Instruction:
Database: tvshow
Total Tables: 3
Total Columns: 25

Table Schemas:

tvshow contains tables such as TV_Channel, TV_series, Cartoon.
Table TV_Channel has columns such as id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option.
id is the primary key.
Table TV_series has columns such as id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel.
id is the primary key.
Table Cartoon has columns such as id, Title, Directed_by, Written_by, Original_air_date, Production_code, Channel.
id is the primary key.
The Channel of TV_series is the foreign key of id of TV_Channel.
The Channel of Cartoon is the foreign key of id of TV_Channel.

##Role Access Policy (Column-Level):
Role: ContentManager
Accessible Columns: TV_Channel: id, series_name, Country, Language, Content, Package_Option; TV_series: id, Episode, Air_Date, Channel, Weekly_Rank; Cartoon: id, Title, Original_air_date, Channel

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 different series and contents are listed in the TV Channel table?
Answer: SELECT count(DISTINCT series_name) ,  count(DISTINCT content) FROM TV_Channel;
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT count(DISTINCT series_name) ,  count(DISTINCT content) FROM TV_Channel;
##Instruction:
Database: tvshow
Total Tables: 3
Total Columns: 25

Table Schemas:

tvshow contains tables such as TV_Channel, TV_series, Cartoon.
Table TV_Channel has columns such as id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option.
id is the primary key.
Table TV_series has columns such as id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel.
id is the primary key.
Table Cartoon has columns such as id, Title, Directed_by, Written_by, Original_air_date, Production_code, Channel.
id is the primary key.
The Channel of TV_series is the foreign key of id of TV_Channel.
The Channel of Cartoon is the foreign key of id of TV_Channel.

##Role Access Policy (Column-Level):
Role: ContentManager
Accessible Columns: TV_Channel: id, series_name, Country, Language, Content, Package_Option; TV_series: id, Episode, Air_Date, Channel, Weekly_Rank; Cartoon: id, Title, Original_air_date, Channel

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 content of TV Channel with serial name "Sky Radio"?
Answer: SELECT Content FROM TV_Channel WHERE series_name = "Sky Radio";
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT Content FROM TV_Channel WHERE series_name = "Sky Radio";
##Instruction:
Database: tvshow
Total Tables: 3
Total Columns: 25

Table Schemas:

tvshow contains tables such as TV_Channel, TV_series, Cartoon.
Table TV_Channel has columns such as id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option.
id is the primary key.
Table TV_series has columns such as id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel.
id is the primary key.
Table Cartoon has columns such as id, Title, Directed_by, Written_by, Original_air_date, Production_code, Channel.
id is the primary key.
The Channel of TV_series is the foreign key of id of TV_Channel.
The Channel of Cartoon is the foreign key of id of TV_Channel.

##Role Access Policy (Column-Level):
Role: ContentManager
Accessible Columns: TV_Channel: id, series_name, Country, Language, Content, Package_Option; TV_series: id, Episode, Air_Date, Channel, Weekly_Rank; Cartoon: id, Title, Original_air_date, Channel

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 content of the series Sky Radio?
Answer: SELECT Content FROM TV_Channel WHERE series_name = "Sky Radio";
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT Content FROM TV_Channel WHERE series_name = "Sky Radio";
##Instruction:
Database: tvshow
Total Tables: 3
Total Columns: 25

Table Schemas:

tvshow contains tables such as TV_Channel, TV_series, Cartoon.
Table TV_Channel has columns such as id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option.
id is the primary key.
Table TV_series has columns such as id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel.
id is the primary key.
Table Cartoon has columns such as id, Title, Directed_by, Written_by, Original_air_date, Production_code, Channel.
id is the primary key.
The Channel of TV_series is the foreign key of id of TV_Channel.
The Channel of Cartoon is the foreign key of id of TV_Channel.

##Role Access Policy (Column-Level):
Role: ContentManager
Accessible Columns: TV_Channel: id, series_name, Country, Language, Content, Package_Option; TV_series: id, Episode, Air_Date, Channel, Weekly_Rank; Cartoon: id, Title, Original_air_date, Channel

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 Package Option of TV Channel with serial name "Sky Radio"?
Answer: SELECT Package_Option FROM TV_Channel WHERE series_name = "Sky Radio";
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT Package_Option FROM TV_Channel WHERE series_name = "Sky Radio";
##Instruction:
Database: tvshow
Total Tables: 3
Total Columns: 25

Table Schemas:

tvshow contains tables such as TV_Channel, TV_series, Cartoon.
Table TV_Channel has columns such as id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option.
id is the primary key.
Table TV_series has columns such as id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel.
id is the primary key.
Table Cartoon has columns such as id, Title, Directed_by, Written_by, Original_air_date, Production_code, Channel.
id is the primary key.
The Channel of TV_series is the foreign key of id of TV_Channel.
The Channel of Cartoon is the foreign key of id of TV_Channel.

##Role Access Policy (Column-Level):
Role: ContentManager
Accessible Columns: TV_Channel: id, series_name, Country, Language, Content, Package_Option; TV_series: id, Episode, Air_Date, Channel, Weekly_Rank; Cartoon: id, Title, Original_air_date, Channel

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 Package Options of the TV Channels whose series names are Sky Radio?
Answer: SELECT Package_Option FROM TV_Channel WHERE series_name = "Sky Radio";
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT Package_Option FROM TV_Channel WHERE series_name = "Sky Radio";
##Instruction:
Database: tvshow
Total Tables: 3
Total Columns: 25

Table Schemas:

tvshow contains tables such as TV_Channel, TV_series, Cartoon.
Table TV_Channel has columns such as id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option.
id is the primary key.
Table TV_series has columns such as id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel.
id is the primary key.
Table Cartoon has columns such as id, Title, Directed_by, Written_by, Original_air_date, Production_code, Channel.
id is the primary key.
The Channel of TV_series is the foreign key of id of TV_Channel.
The Channel of Cartoon is the foreign key of id of TV_Channel.

##Role Access Policy (Column-Level):
Role: ContentManager
Accessible Columns: TV_Channel: id, series_name, Country, Language, Content, Package_Option; TV_series: id, Episode, Air_Date, Channel, Weekly_Rank; Cartoon: id, Title, Original_air_date, Channel

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 TV Channel using language English?
Answer: SELECT count(*) FROM TV_Channel WHERE LANGUAGE = "English";
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT count(*) FROM TV_Channel WHERE LANGUAGE = "English";
##Instruction:
Database: tvshow
Total Tables: 3
Total Columns: 25

Table Schemas:

tvshow contains tables such as TV_Channel, TV_series, Cartoon.
Table TV_Channel has columns such as id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option.
id is the primary key.
Table TV_series has columns such as id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel.
id is the primary key.
Table Cartoon has columns such as id, Title, Directed_by, Written_by, Original_air_date, Production_code, Channel.
id is the primary key.
The Channel of TV_series is the foreign key of id of TV_Channel.
The Channel of Cartoon is the foreign key of id of TV_Channel.

##Role Access Policy (Column-Level):
Role: ContentManager
Accessible Columns: TV_Channel: id, series_name, Country, Language, Content, Package_Option; TV_series: id, Episode, Air_Date, Channel, Weekly_Rank; Cartoon: id, Title, Original_air_date, Channel

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 TV Channels use the English language?
Answer: SELECT count(*) FROM TV_Channel WHERE LANGUAGE = "English";
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT count(*) FROM TV_Channel WHERE LANGUAGE = "English";
##Instruction:
Database: tvshow
Total Tables: 3
Total Columns: 25

Table Schemas:

tvshow contains tables such as TV_Channel, TV_series, Cartoon.
Table TV_Channel has columns such as id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option.
id is the primary key.
Table TV_series has columns such as id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel.
id is the primary key.
Table Cartoon has columns such as id, Title, Directed_by, Written_by, Original_air_date, Production_code, Channel.
id is the primary key.
The Channel of TV_series is the foreign key of id of TV_Channel.
The Channel of Cartoon is the foreign key of id of TV_Channel.

##Role Access Policy (Column-Level):
Role: ContentManager
Accessible Columns: TV_Channel: id, series_name, Country, Language, Content, Package_Option; TV_series: id, Episode, Air_Date, Channel, Weekly_Rank; Cartoon: id, Title, Original_air_date, Channel

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: List the language used least number of TV Channel. List language and number of TV Channel.
Answer: SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;
##Instruction:
Database: tvshow
Total Tables: 3
Total Columns: 25

Table Schemas:

tvshow contains tables such as TV_Channel, TV_series, Cartoon.
Table TV_Channel has columns such as id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option.
id is the primary key.
Table TV_series has columns such as id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel.
id is the primary key.
Table Cartoon has columns such as id, Title, Directed_by, Written_by, Original_air_date, Production_code, Channel.
id is the primary key.
The Channel of TV_series is the foreign key of id of TV_Channel.
The Channel of Cartoon is the foreign key of id of TV_Channel.

##Role Access Policy (Column-Level):
Role: ContentManager
Accessible Columns: TV_Channel: id, series_name, Country, Language, Content, Package_Option; TV_series: id, Episode, Air_Date, Channel, Weekly_Rank; Cartoon: id, Title, Original_air_date, Channel

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 languages used by the least number of TV Channels and how many channels use it?
Answer: SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;
##Instruction:
Database: tvshow
Total Tables: 3
Total Columns: 25

Table Schemas:

tvshow contains tables such as TV_Channel, TV_series, Cartoon.
Table TV_Channel has columns such as id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option.
id is the primary key.
Table TV_series has columns such as id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel.
id is the primary key.
Table Cartoon has columns such as id, Title, Directed_by, Written_by, Original_air_date, Production_code, Channel.
id is the primary key.
The Channel of TV_series is the foreign key of id of TV_Channel.
The Channel of Cartoon is the foreign key of id of TV_Channel.

##Role Access Policy (Column-Level):
Role: ContentManager
Accessible Columns: TV_Channel: id, series_name, Country, Language, Content, Package_Option; TV_series: id, Episode, Air_Date, Channel, Weekly_Rank; Cartoon: id, Title, Original_air_date, Channel

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: List each language and the number of TV Channels using it.
Answer: SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE
##Instruction:
Database: tvshow
Total Tables: 3
Total Columns: 25

Table Schemas:

tvshow contains tables such as TV_Channel, TV_series, Cartoon.
Table TV_Channel has columns such as id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option.
id is the primary key.
Table TV_series has columns such as id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel.
id is the primary key.
Table Cartoon has columns such as id, Title, Directed_by, Written_by, Original_air_date, Production_code, Channel.
id is the primary key.
The Channel of TV_series is the foreign key of id of TV_Channel.
The Channel of Cartoon is the foreign key of id of TV_Channel.

##Role Access Policy (Column-Level):
Role: ContentManager
Accessible Columns: TV_Channel: id, series_name, Country, Language, Content, Package_Option; TV_series: id, Episode, Air_Date, Channel, Weekly_Rank; Cartoon: id, Title, Original_air_date, Channel

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: For each language, list the number of TV Channels that use it.
Answer: SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE
##Instruction:
Database: tvshow
Total Tables: 3
Total Columns: 25

Table Schemas:

tvshow contains tables such as TV_Channel, TV_series, Cartoon.
Table TV_Channel has columns such as id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option.
id is the primary key.
Table TV_series has columns such as id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel.
id is the primary key.
Table Cartoon has columns such as id, Title, Directed_by, Written_by, Original_air_date, Production_code, Channel.
id is the primary key.
The Channel of TV_series is the foreign key of id of TV_Channel.
The Channel of Cartoon is the foreign key of id of TV_Channel.

##Role Access Policy (Column-Level):
Role: ContentManager
Accessible Columns: TV_Channel: id, series_name, Country, Language, Content, Package_Option; TV_series: id, Episode, Air_Date, Channel, Weekly_Rank; Cartoon: id, Title, Original_air_date, Channel

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 TV Channel that shows the cartoon "The Rise of the Blue Beetle!"? List the TV Channel's series name.
Answer: SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = "The Rise of the Blue Beetle!";
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = "The Rise of the Blue Beetle!";
##Instruction:
Database: tvshow
Total Tables: 3
Total Columns: 25

Table Schemas:

tvshow contains tables such as TV_Channel, TV_series, Cartoon.
Table TV_Channel has columns such as id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option.
id is the primary key.
Table TV_series has columns such as id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel.
id is the primary key.
Table Cartoon has columns such as id, Title, Directed_by, Written_by, Original_air_date, Production_code, Channel.
id is the primary key.
The Channel of TV_series is the foreign key of id of TV_Channel.
The Channel of Cartoon is the foreign key of id of TV_Channel.

##Role Access Policy (Column-Level):
Role: ContentManager
Accessible Columns: TV_Channel: id, series_name, Country, Language, Content, Package_Option; TV_series: id, Episode, Air_Date, Channel, Weekly_Rank; Cartoon: id, Title, Original_air_date, Channel

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 series name of the TV Channel that shows the cartoon "The Rise of the Blue Beetle"?
Answer: SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = "The Rise of the Blue Beetle!";
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = "The Rise of the Blue Beetle!";
##Instruction:
Database: tvshow
Total Tables: 3
Total Columns: 25

Table Schemas:

tvshow contains tables such as TV_Channel, TV_series, Cartoon.
Table TV_Channel has columns such as id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option.
id is the primary key.
Table TV_series has columns such as id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel.
id is the primary key.
Table Cartoon has columns such as id, Title, Directed_by, Written_by, Original_air_date, Production_code, Channel.
id is the primary key.
The Channel of TV_series is the foreign key of id of TV_Channel.
The Channel of Cartoon is the foreign key of id of TV_Channel.

##Role Access Policy (Column-Level):
Role: ContentManager
Accessible Columns: TV_Channel: id, series_name, Country, Language, Content, Package_Option; TV_series: id, Episode, Air_Date, Channel, Weekly_Rank; Cartoon: id, Title, Original_air_date, Channel

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: List the title of all  Cartoons showed on TV Channel with series name "Sky Radio".
Answer: SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio";
Permission: allowed (All required columns are permitted)
Gold SQL: SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio";