1sf/bird-sql-train-with-schema huggingface dataset:
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: What are the names of the publishers who published the oldest games?
Evidence: name of publisher refers to publisher_name; the oldest game refers to min(release_year)
SQL: SELECT DISTINCT T3.publisher_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id ORDER BY T1.release_year LIMIT 1
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: How many publishers in Japan released a game on X360 in 2011?
Evidence: in Japan refers to region_name = 'Japan'; on X360 refers to platform_name = 'X360'; in 2011 refers to release_year = 2011
SQL: SELECT COUNT(T3.game_publisher_id) FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T4.platform_name = 'X360' AND T3.release_year = 2011 AND T1.region_name = 'Japan'
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: Which game platform is the most popular in Europe?
Evidence: game platform refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'
SQL: SELECT T.platform_name FROM ( SELECT T4.platform_name, SUM(T2.num_sales) FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T1.region_name = 'Europe' ORDER BY T2.num_sales DESC LIMIT 1 ) t
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: Which year has the most number of PC games releases?
Evidence: year refers to release_year; the most number of releases refers to max(count(game_id))
SQL: SELECT T.release_year FROM ( SELECT T2.release_year, COUNT(DISTINCT T3.game_id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id WHERE T1.platform_name = 'PC' GROUP BY T2.release_year ORDER BY COUNT(DISTINCT T3.game_id) DESC LIMIT 1 ) t
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: List the names of all the publishers who published one game only.
Evidence: name of publisher refers to publisher_name; published one game only refers to count(publisher_id) = 1
SQL: SELECT T.publisher_name FROM ( SELECT T2.publisher_name, COUNT(DISTINCT T1.game_id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id GROUP BY T2.publisher_name HAVING COUNT(DISTINCT T1.game_id) = 1 ) t
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: What are the names of the games that were published by 505 Games?
Evidence: name of game refers to game_name; published by 505 Games refers to publisher_name = '505 Games'
SQL: SELECT T3.game_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 T1.publisher_name = '505 Games'
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: What is the genre ID of the game named 25 to Life?
Evidence: the game named 25 to Life refers to game_name = '25 to Life'
SQL: SELECT T.genre_id FROM game AS T WHERE T.game_name = '25 to Life'
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: List down the game ID of games with genre ID 2.
Evidence: game ID refers to game.id; genre ID 2 refers to genre_id = 2
SQL: SELECT T.id FROM game AS T WHERE T.genre_id = 2
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: Provide the release year of record ID 1 to 10.
Evidence: record ID 1 to 10 refers to game.id BETWEEN 1 AND 10
SQL: SELECT T.release_year FROM game_platform AS T WHERE T.id BETWEEN 1 AND 10
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: Give the game publisher ID of records with platform ID 15.
Evidence: platform ID 15 refers to platform_id = 15
SQL: SELECT T.game_publisher_id FROM game_platform AS T WHERE T.platform_id = 15
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: List down the record ID of records released between 2000 to 2003.
Evidence: record ID refers to game.id; released between 2000 to 2003 refers to release_year BETWEEN 2000 AND 2003
SQL: SELECT T.id FROM game_platform AS T WHERE T.release_year BETWEEN 2000 AND 2003
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: What is the number of sales in region ID 2 with game platform ID 9615?
Evidence: number of sales refers to multiply(num_sales, 100000)
SQL: SELECT T.num_sales * 100000 FROM region_sales AS T WHERE T.region_id = 2 AND T.game_platform_id = 9615
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: List down the names of platform where the games released in 2016 can be played on.
Evidence: name of platform refers to platform_name; released in 2016 refers to release_year = 2016
SQL: SELECT DISTINCT T1.platform_name FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id WHERE T2.release_year = 2016
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: When was the game titled 3DS Classic Collection released?
Evidence: when refers to release_year; the game titled 3DS Classic Collection refers to game_name = '3DS Classic Collection'
SQL: SELECT 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 WHERE T3.game_name = '3DS Classic Collection'
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: What is the average number of sales in Japan?
Evidence: in Japan refers to region_name = 'Japan'; average number of sales = multiply(avg(num_sales), 100000) where region_name = 'Japan'
SQL: SELECT AVG(T2.num_sales) * 100000 AS avg_japan FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'Japan'
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: Give the genre of the games released from 2000 to 2002.
Evidence: genre refers to genre_name; released from 2000 to 2002 refers to release_year BETWEEN 2000 AND 2002
SQL: SELECT DISTINCT T4.genre_name 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 T1.release_year BETWEEN 2000 AND 2002
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: List down the name of games published by 3DO.
Evidence: name of game refers to game_name; published by 3DO refers to publisher_name = '3DO'
SQL: SELECT T1.game_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T3.publisher_name = '3DO'
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: How many role-playing games are there?
Evidence: role-playing game refers to genre_name = 'Role-Playing'
SQL: SELECT COUNT(T1.id) FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Role-Playing'
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: List the region name where games reached 300000 sales and above.
Evidence: reached 300000 sales and above refers to num_sales > 3
SQL: SELECT DISTINCT T1.region_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T2.num_sales * 100000 > 300000
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: Which company published the game with the most sales in North America?
Evidence: company refers to publisher_name; the most sales refers to max(num_sales); in North America refers to region_name = 'North America'
SQL: SELECT T.publisher_name FROM ( SELECT T5.publisher_name, SUM(T2.num_sales) * 100000 FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN game_publisher AS T4 ON T3.game_publisher_id = T4.id INNER JOIN publisher AS T5 ON T4.publisher_id = T5.id WHERE T1.region_name = 'North America' GROUP BY T5.publisher_name ORDER BY SUM(T2.num_sales) * 100000 DESC LIMIT 1 ) t
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: What is the release year of the game that gained 350000 sales in North America?
Evidence: gained 350000 sales refers to num_sales = 3.5; in North America refers to region_name = 'North America'
SQL: SELECT T3.release_year FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id WHERE T2.num_sales * 100000 = 350000 AND T1.region_name = 'North America'
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: In which platform does the game titled 15 Days available?
Evidence: platform refers to platform_name; the game titled 15 Days refers to game_name = '15 Days'
SQL: SELECT T1.platform_name FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id INNER JOIN game AS T4 ON T3.game_id = T4.id WHERE T4.game_name = 'Counter Force'
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: Give the name of the publisher of the game ID 75.
Evidence: name of publisher refers to publisher_name; the game ID 75 refers to game_id = 75
SQL: SELECT T2.publisher_name FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.game_id = 75
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: What is the title of the game that gained the most sales in Japan?
Evidence: title of the game refers to game_name; gained the most sales refers to max(num_sales); in Japan refers to region_name = 'Japan'
SQL: SELECT T.game_name FROM ( SELECT T5.game_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN game_publisher AS T4 ON T3.game_publisher_id = T4.id INNER JOIN game AS T5 ON T4.game_id = T5.id WHERE T1.region_name = 'Japan' ORDER BY T2.num_sales DESC LIMIT 1 ) t
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: Provide the game publisher's name of the game with sales greater than 90% of the average sales in Japan.
Evidence: game publisher's name refers to publisher_name; sales greater than 90% of the average sales refers to num_sales > multiply(0.9, avg(num_sales)); in Japan refers to region_name = 'Japan'
SQL: SELECT DISTINCT T5.publisher_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN game_publisher AS T4 ON T3.game_publisher_id = T4.id INNER JOIN publisher AS T5 ON T4.publisher_id = T5.id WHERE T2.num_sales * 10000000 > ( SELECT AVG(T2.num_sales) * 100000 * 90 FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'Japan' )
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: Among the games released in 2004, what is the percentage of games on PSP?
Evidence: in 2004 refers to release_year = 2004; on PSP refers to platform_name = 'PSP'; percentage = divide(sum(platform_id where platform_name = 'PSP'), count(platform_id)) * 100% where release_year = 2004
SQL: SELECT CAST(COUNT(CASE WHEN T1.platform_name = 'PSP' THEN T3.game_id ELSE NULL END) AS REAL) * 100 / COUNT(T3.game_id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id WHERE T2.release_year = 2004
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: How many games were released in 1981?
Evidence: released in 1981 refers to release_year = 1981
SQL: SELECT COUNT(T.id) FROM game_platform AS T WHERE T.release_year = 1981
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: What is the genre ID of the '2Xtreme' game?
Evidence: the '2Xtreme' game refers to game_name = '2Xtreme'
SQL: SELECT T.genre_id FROM game AS T WHERE T.game_name = '2Xtreme'
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: Sum the total game sales in every region for platform ID 9658.
Evidence: total game sales refers to multiply(sum(num_sales), 100000); platform ID 9658 refers to game_platform_id = 9658
SQL: SELECT SUM(T.num_sales) * 100000 FROM region_sales AS T WHERE T.game_platform_id = 9658
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: Provide the ID of 1C Company.
Evidence: ID refers to publisher.id; 1C Company refers to publisher_name = '1C Company'
SQL: SELECT T.id FROM publisher AS T WHERE T.publisher_name = '1C Company'