QIAN-ME/bird_schema_data huggingface dataset:
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 video_games
【Schema】
# Table: region_sales
[
(region_id:INTEGER, Examples: [1, 2, 3]),
(game_platform_id:INTEGER, Examples: [50, 51, 52]),
(num_sales:REAL, Examples: [3.5, 1.43, 0.51])
]
# Table: game
[
(id:INTEGER, Primary Key, Examples: [44, 45, 46]),
(genre_id:INTEGER, Examples: [4, 5, 11]),
(game_name:TEXT, Examples: [2 Games in 1: Sonic Advance & ChuChu Rocket!])
]
# Table: game_platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_publisher_id:INTEGER, Examples: [8564, 9852, 11063]),
(platform_id:INTEGER, Examples: [4, 7, 15]),
(release_year:INTEGER, Examples: [2007, 2006, 2011])
]
# Table: game_publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_id:INTEGER, Examples: [10866, 9244, 5464]),
(publisher_id:INTEGER, Examples: [369, 328, 498])
]
# Table: platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(platform_name:TEXT, Examples: [Wii, NES, GB])
]
# Table: publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(publisher_name:TEXT, Examples: [10TACLE Studios])
]
# Table: genre
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(genre_name:TEXT, Examples: [Action, Adventure, Fighting])
]
# Table: region
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(region_name:TEXT, Examples: [North America, Europe, Japan])
]
【Foreign keys】
region_sales.game_platform_id=game_platform.id
region_sales.region_id=region.id
game.genre_id=genre.id
game_platform.game_publisher_id=game_publisher.id
game_platform.platform_id=platform.id
game_publisher.game_id=game.id
game_publisher.publisher_id=publisher.id

    【Question】
    Provide any five games and release year under the sports genre. game refers to game_name; under the sports genre refers to genre_name = 'Sports'

    【Evidence】
    game refers to game_name; under the sports genre refers to genre_name = 'Sports'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T3.game_name, T1.release_year FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T4.genre_name = 'Sports' LIMIT 5
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 video_games
【Schema】
# Table: region_sales
[
(region_id:INTEGER, Examples: [1, 2, 3]),
(game_platform_id:INTEGER, Examples: [50, 51, 52]),
(num_sales:REAL, Examples: [3.5, 1.43, 0.51])
]
# Table: game
[
(id:INTEGER, Primary Key, Examples: [44, 45, 46]),
(genre_id:INTEGER, Examples: [4, 5, 11]),
(game_name:TEXT, Examples: [2 Games in 1: Sonic Advance & ChuChu Rocket!])
]
# Table: game_platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_publisher_id:INTEGER, Examples: [8564, 9852, 11063]),
(platform_id:INTEGER, Examples: [4, 7, 15]),
(release_year:INTEGER, Examples: [2007, 2006, 2011])
]
# Table: game_publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_id:INTEGER, Examples: [10866, 9244, 5464]),
(publisher_id:INTEGER, Examples: [369, 328, 498])
]
# Table: platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(platform_name:TEXT, Examples: [Wii, NES, GB])
]
# Table: publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(publisher_name:TEXT, Examples: [10TACLE Studios])
]
# Table: genre
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(genre_name:TEXT, Examples: [Action, Adventure, Fighting])
]
# Table: region
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(region_name:TEXT, Examples: [North America, Europe, Japan])
]
【Foreign keys】
region_sales.game_platform_id=game_platform.id
region_sales.region_id=region.id
game.genre_id=genre.id
game_platform.game_publisher_id=game_publisher.id
game_platform.platform_id=platform.id
game_publisher.game_id=game.id
game_publisher.publisher_id=publisher.id

    【Question】
    Mention the genre of the 2Xtreme. genre refers to genre_name; the 2Xtreme game refers to game_name = '2Xtreme'

    【Evidence】
    genre refers to genre_name; the 2Xtreme game refers to game_name = '2Xtreme'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T2.id FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = '2Xtreme'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 video_games
【Schema】
# Table: region_sales
[
(region_id:INTEGER, Examples: [1, 2, 3]),
(game_platform_id:INTEGER, Examples: [50, 51, 52]),
(num_sales:REAL, Examples: [3.5, 1.43, 0.51])
]
# Table: game
[
(id:INTEGER, Primary Key, Examples: [44, 45, 46]),
(genre_id:INTEGER, Examples: [4, 5, 11]),
(game_name:TEXT, Examples: [2 Games in 1: Sonic Advance & ChuChu Rocket!])
]
# Table: game_platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_publisher_id:INTEGER, Examples: [8564, 9852, 11063]),
(platform_id:INTEGER, Examples: [4, 7, 15]),
(release_year:INTEGER, Examples: [2007, 2006, 2011])
]
# Table: game_publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_id:INTEGER, Examples: [10866, 9244, 5464]),
(publisher_id:INTEGER, Examples: [369, 328, 498])
]
# Table: platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(platform_name:TEXT, Examples: [Wii, NES, GB])
]
# Table: publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(publisher_name:TEXT, Examples: [10TACLE Studios])
]
# Table: genre
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(genre_name:TEXT, Examples: [Action, Adventure, Fighting])
]
# Table: region
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(region_name:TEXT, Examples: [North America, Europe, Japan])
]
【Foreign keys】
region_sales.game_platform_id=game_platform.id
region_sales.region_id=region.id
game.genre_id=genre.id
game_platform.game_publisher_id=game_publisher.id
game_platform.platform_id=platform.id
game_publisher.game_id=game.id
game_publisher.publisher_id=publisher.id

    【Question】
    Provide the platform where the Panzer Tactics can be played. platform refers to platform_name; the Panzer Tactics is a game name.

    【Evidence】
    platform refers to platform_name; the Panzer Tactics is a game name.

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T4.platform_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T1.game_name = 'Panzer Tactics'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 video_games
【Schema】
# Table: region_sales
[
(region_id:INTEGER, Examples: [1, 2, 3]),
(game_platform_id:INTEGER, Examples: [50, 51, 52]),
(num_sales:REAL, Examples: [3.5, 1.43, 0.51])
]
# Table: game
[
(id:INTEGER, Primary Key, Examples: [44, 45, 46]),
(genre_id:INTEGER, Examples: [4, 5, 11]),
(game_name:TEXT, Examples: [2 Games in 1: Sonic Advance & ChuChu Rocket!])
]
# Table: game_platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_publisher_id:INTEGER, Examples: [8564, 9852, 11063]),
(platform_id:INTEGER, Examples: [4, 7, 15]),
(release_year:INTEGER, Examples: [2007, 2006, 2011])
]
# Table: game_publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_id:INTEGER, Examples: [10866, 9244, 5464]),
(publisher_id:INTEGER, Examples: [369, 328, 498])
]
# Table: platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(platform_name:TEXT, Examples: [Wii, NES, GB])
]
# Table: publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(publisher_name:TEXT, Examples: [10TACLE Studios])
]
# Table: genre
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(genre_name:TEXT, Examples: [Action, Adventure, Fighting])
]
# Table: region
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(region_name:TEXT, Examples: [North America, Europe, Japan])
]
【Foreign keys】
region_sales.game_platform_id=game_platform.id
region_sales.region_id=region.id
game.genre_id=genre.id
game_platform.game_publisher_id=game_publisher.id
game_platform.platform_id=platform.id
game_publisher.game_id=game.id
game_publisher.publisher_id=publisher.id

    【Question】
    Calculate how many percent of sales in North America is higher than the average sale per region for platform ID 9577. in North America refers to region_name = 'North America'; platform ID 9577 refers to game_platform_id = 9577; percent = divide(subtract(num_sales where region_name = 'North America' and game_platform_id = 9577, avg(num_sales)), avg(num_sales)) * 100%

    【Evidence】
    in North America refers to region_name = 'North America'; platform ID 9577 refers to game_platform_id = 9577; percent = divide(subtract(num_sales where region_name = 'North America' and game_platform_id = 9577, avg(num_sales)), avg(num_sales)) * 100%

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT (SUM(CASE WHEN T2.region_name = 'North America' THEN T1.num_sales ELSE 0 END) - AVG(T1.num_sales)) * 100.0 / AVG(T1.num_sales) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id WHERE T1.game_platform_id = 9577
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 video_games
【Schema】
# Table: region_sales
[
(region_id:INTEGER, Examples: [1, 2, 3]),
(game_platform_id:INTEGER, Examples: [50, 51, 52]),
(num_sales:REAL, Examples: [3.5, 1.43, 0.51])
]
# Table: game
[
(id:INTEGER, Primary Key, Examples: [44, 45, 46]),
(genre_id:INTEGER, Examples: [4, 5, 11]),
(game_name:TEXT, Examples: [2 Games in 1: Sonic Advance & ChuChu Rocket!])
]
# Table: game_platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_publisher_id:INTEGER, Examples: [8564, 9852, 11063]),
(platform_id:INTEGER, Examples: [4, 7, 15]),
(release_year:INTEGER, Examples: [2007, 2006, 2011])
]
# Table: game_publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_id:INTEGER, Examples: [10866, 9244, 5464]),
(publisher_id:INTEGER, Examples: [369, 328, 498])
]
# Table: platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(platform_name:TEXT, Examples: [Wii, NES, GB])
]
# Table: publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(publisher_name:TEXT, Examples: [10TACLE Studios])
]
# Table: genre
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(genre_name:TEXT, Examples: [Action, Adventure, Fighting])
]
# Table: region
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(region_name:TEXT, Examples: [North America, Europe, Japan])
]
【Foreign keys】
region_sales.game_platform_id=game_platform.id
region_sales.region_id=region.id
game.genre_id=genre.id
game_platform.game_publisher_id=game_publisher.id
game_platform.platform_id=platform.id
game_publisher.game_id=game.id
game_publisher.publisher_id=publisher.id

    【Question】
    Which game has the longest name? game refers to game_name; the longest name refers to max(length(game_name))

    【Evidence】
    game refers to game_name; the longest name refers to max(length(game_name))

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T.game_name FROM game AS T ORDER BY LENGTH(T.game_name) DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 video_games
【Schema】
# Table: region_sales
[
(region_id:INTEGER, Examples: [1, 2, 3]),
(game_platform_id:INTEGER, Examples: [50, 51, 52]),
(num_sales:REAL, Examples: [3.5, 1.43, 0.51])
]
# Table: game
[
(id:INTEGER, Primary Key, Examples: [44, 45, 46]),
(genre_id:INTEGER, Examples: [4, 5, 11]),
(game_name:TEXT, Examples: [2 Games in 1: Sonic Advance & ChuChu Rocket!])
]
# Table: game_platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_publisher_id:INTEGER, Examples: [8564, 9852, 11063]),
(platform_id:INTEGER, Examples: [4, 7, 15]),
(release_year:INTEGER, Examples: [2007, 2006, 2011])
]
# Table: game_publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_id:INTEGER, Examples: [10866, 9244, 5464]),
(publisher_id:INTEGER, Examples: [369, 328, 498])
]
# Table: platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(platform_name:TEXT, Examples: [Wii, NES, GB])
]
# Table: publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(publisher_name:TEXT, Examples: [10TACLE Studios])
]
# Table: genre
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(genre_name:TEXT, Examples: [Action, Adventure, Fighting])
]
# Table: region
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(region_name:TEXT, Examples: [North America, Europe, Japan])
]
【Foreign keys】
region_sales.game_platform_id=game_platform.id
region_sales.region_id=region.id
game.genre_id=genre.id
game_platform.game_publisher_id=game_publisher.id
game_platform.platform_id=platform.id
game_publisher.game_id=game.id
game_publisher.publisher_id=publisher.id

    【Question】
    How many games were released in 2001? released in 2001 refers to release_year = 2001

    【Evidence】
    released in 2001 refers to release_year = 2001

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(T.id) FROM game_platform AS T WHERE T.release_year = 2001
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 video_games
【Schema】
# Table: region_sales
[
(region_id:INTEGER, Examples: [1, 2, 3]),
(game_platform_id:INTEGER, Examples: [50, 51, 52]),
(num_sales:REAL, Examples: [3.5, 1.43, 0.51])
]
# Table: game
[
(id:INTEGER, Primary Key, Examples: [44, 45, 46]),
(genre_id:INTEGER, Examples: [4, 5, 11]),
(game_name:TEXT, Examples: [2 Games in 1: Sonic Advance & ChuChu Rocket!])
]
# Table: game_platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_publisher_id:INTEGER, Examples: [8564, 9852, 11063]),
(platform_id:INTEGER, Examples: [4, 7, 15]),
(release_year:INTEGER, Examples: [2007, 2006, 2011])
]
# Table: game_publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_id:INTEGER, Examples: [10866, 9244, 5464]),
(publisher_id:INTEGER, Examples: [369, 328, 498])
]
# Table: platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(platform_name:TEXT, Examples: [Wii, NES, GB])
]
# Table: publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(publisher_name:TEXT, Examples: [10TACLE Studios])
]
# Table: genre
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(genre_name:TEXT, Examples: [Action, Adventure, Fighting])
]
# Table: region
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(region_name:TEXT, Examples: [North America, Europe, Japan])
]
【Foreign keys】
region_sales.game_platform_id=game_platform.id
region_sales.region_id=region.id
game.genre_id=genre.id
game_platform.game_publisher_id=game_publisher.id
game_platform.platform_id=platform.id
game_publisher.game_id=game.id
game_publisher.publisher_id=publisher.id

    【Question】
    What is the total number of sales across all regions? total number of sales = sum(num_sales)

    【Evidence】
    total number of sales = sum(num_sales)

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT SUM(T.num_sales) * 100000 FROM region_sales t
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 video_games
【Schema】
# Table: region_sales
[
(region_id:INTEGER, Examples: [1, 2, 3]),
(game_platform_id:INTEGER, Examples: [50, 51, 52]),
(num_sales:REAL, Examples: [3.5, 1.43, 0.51])
]
# Table: game
[
(id:INTEGER, Primary Key, Examples: [44, 45, 46]),
(genre_id:INTEGER, Examples: [4, 5, 11]),
(game_name:TEXT, Examples: [2 Games in 1: Sonic Advance & ChuChu Rocket!])
]
# Table: game_platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_publisher_id:INTEGER, Examples: [8564, 9852, 11063]),
(platform_id:INTEGER, Examples: [4, 7, 15]),
(release_year:INTEGER, Examples: [2007, 2006, 2011])
]
# Table: game_publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_id:INTEGER, Examples: [10866, 9244, 5464]),
(publisher_id:INTEGER, Examples: [369, 328, 498])
]
# Table: platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(platform_name:TEXT, Examples: [Wii, NES, GB])
]
# Table: publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(publisher_name:TEXT, Examples: [10TACLE Studios])
]
# Table: genre
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(genre_name:TEXT, Examples: [Action, Adventure, Fighting])
]
# Table: region
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(region_name:TEXT, Examples: [North America, Europe, Japan])
]
【Foreign keys】
region_sales.game_platform_id=game_platform.id
region_sales.region_id=region.id
game.genre_id=genre.id
game_platform.game_publisher_id=game_publisher.id
game_platform.platform_id=platform.id
game_publisher.game_id=game.id
game_publisher.publisher_id=publisher.id

    【Question】
    What is the average number of games published by a publisher? average number = divide(count(game_id), count(publisher_id))

    【Evidence】
    average number = divide(count(game_id), count(publisher_id))

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT CAST(COUNT(T.game_id) AS REAL) / COUNT(DISTINCT T.publisher_id) FROM game_publisher AS T
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 video_games
【Schema】
# Table: region_sales
[
(region_id:INTEGER, Examples: [1, 2, 3]),
(game_platform_id:INTEGER, Examples: [50, 51, 52]),
(num_sales:REAL, Examples: [3.5, 1.43, 0.51])
]
# Table: game
[
(id:INTEGER, Primary Key, Examples: [44, 45, 46]),
(genre_id:INTEGER, Examples: [4, 5, 11]),
(game_name:TEXT, Examples: [2 Games in 1: Sonic Advance & ChuChu Rocket!])
]
# Table: game_platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_publisher_id:INTEGER, Examples: [8564, 9852, 11063]),
(platform_id:INTEGER, Examples: [4, 7, 15]),
(release_year:INTEGER, Examples: [2007, 2006, 2011])
]
# Table: game_publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_id:INTEGER, Examples: [10866, 9244, 5464]),
(publisher_id:INTEGER, Examples: [369, 328, 498])
]
# Table: platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(platform_name:TEXT, Examples: [Wii, NES, GB])
]
# Table: publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(publisher_name:TEXT, Examples: [10TACLE Studios])
]
# Table: genre
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(genre_name:TEXT, Examples: [Action, Adventure, Fighting])
]
# Table: region
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(region_name:TEXT, Examples: [North America, Europe, Japan])
]
【Foreign keys】
region_sales.game_platform_id=game_platform.id
region_sales.region_id=region.id
game.genre_id=genre.id
game_platform.game_publisher_id=game_publisher.id
game_platform.platform_id=platform.id
game_publisher.game_id=game.id
game_publisher.publisher_id=publisher.id

    【Question】
    What is the first year a game is released? the first year refers to min(release_year)

    【Evidence】
    the first year refers to min(release_year)

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT MIN(T.release_year) FROM game_platform t
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 video_games
【Schema】
# Table: region_sales
[
(region_id:INTEGER, Examples: [1, 2, 3]),
(game_platform_id:INTEGER, Examples: [50, 51, 52]),
(num_sales:REAL, Examples: [3.5, 1.43, 0.51])
]
# Table: game
[
(id:INTEGER, Primary Key, Examples: [44, 45, 46]),
(genre_id:INTEGER, Examples: [4, 5, 11]),
(game_name:TEXT, Examples: [2 Games in 1: Sonic Advance & ChuChu Rocket!])
]
# Table: game_platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_publisher_id:INTEGER, Examples: [8564, 9852, 11063]),
(platform_id:INTEGER, Examples: [4, 7, 15]),
(release_year:INTEGER, Examples: [2007, 2006, 2011])
]
# Table: game_publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_id:INTEGER, Examples: [10866, 9244, 5464]),
(publisher_id:INTEGER, Examples: [369, 328, 498])
]
# Table: platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(platform_name:TEXT, Examples: [Wii, NES, GB])
]
# Table: publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(publisher_name:TEXT, Examples: [10TACLE Studios])
]
# Table: genre
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(genre_name:TEXT, Examples: [Action, Adventure, Fighting])
]
# Table: region
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(region_name:TEXT, Examples: [North America, Europe, Japan])
]
【Foreign keys】
region_sales.game_platform_id=game_platform.id
region_sales.region_id=region.id
game.genre_id=genre.id
game_platform.game_publisher_id=game_publisher.id
game_platform.platform_id=platform.id
game_publisher.game_id=game.id
game_publisher.publisher_id=publisher.id

    【Question】
    What is the least common game genre? the least common game genre refers to min(count(genre_id)); genre refers to genre_name

    【Evidence】
    the least common game genre refers to min(count(genre_id)); genre refers to genre_name

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T.game_name FROM ( SELECT T2.game_name, COUNT(T2.id) FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id GROUP BY T2.game_name ORDER BY COUNT(T2.id) ASC LIMIT 1 ) t
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 video_games
【Schema】
# Table: region_sales
[
(region_id:INTEGER, Examples: [1, 2, 3]),
(game_platform_id:INTEGER, Examples: [50, 51, 52]),
(num_sales:REAL, Examples: [3.5, 1.43, 0.51])
]
# Table: game
[
(id:INTEGER, Primary Key, Examples: [44, 45, 46]),
(genre_id:INTEGER, Examples: [4, 5, 11]),
(game_name:TEXT, Examples: [2 Games in 1: Sonic Advance & ChuChu Rocket!])
]
# Table: game_platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_publisher_id:INTEGER, Examples: [8564, 9852, 11063]),
(platform_id:INTEGER, Examples: [4, 7, 15]),
(release_year:INTEGER, Examples: [2007, 2006, 2011])
]
# Table: game_publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(game_id:INTEGER, Examples: [10866, 9244, 5464]),
(publisher_id:INTEGER, Examples: [369, 328, 498])
]
# Table: platform
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(platform_name:TEXT, Examples: [Wii, NES, GB])
]
# Table: publisher
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(publisher_name:TEXT, Examples: [10TACLE Studios])
]
# Table: genre
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(genre_name:TEXT, Examples: [Action, Adventure, Fighting])
]
# Table: region
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(region_name:TEXT, Examples: [North America, Europe, Japan])
]
【Foreign keys】
region_sales.game_platform_id=game_platform.id
region_sales.region_id=region.id
game.genre_id=genre.id
game_platform.game_publisher_id=game_publisher.id
game_platform.platform_id=platform.id
game_publisher.game_id=game.id
game_publisher.publisher_id=publisher.id

    【Question】
    Which is the publisher for the game "Prism: Light the Way"? publisher refers to publisher_name; game "Prism: Light the Way" refers to game_name = 'Prism: Light the Way'

    【Evidence】
    publisher refers to publisher_name; game "Prism: Light the Way" refers to game_name = 'Prism: Light the Way'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.publisher_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T3.game_name = 'Prism: Light the Way'