db_id stringlengths 4 31 | SQL stringlengths 18 1.45k | input_sequence stringlengths 148 11k | question stringlengths 16 325 |
|---|---|---|---|
video_games | 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' | Question: which is the publisher for the game 'prism: light the way'? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region... | which is the publisher for the game 'prism: light the way'? |
video_games | 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 group by t2.release_year, t1.platform_name order by count(distinct t3.game_id) desc | Question: list the platforms that release the most games each year. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -... | list the platforms that release the most games each year. |
video_games | select count(*) from region_sales as t1 inner join region as t2 on t1.region_id = t2.id where t2.region_name = 'europe' and t1.num_sales = 0 | Question: how many games do not have any sales in europe? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, regi... | how many games do not have any sales in europe? |
video_games | select t3.game_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 where t1.release_year = 2006 | Question: what are the games that were released in 2006? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, regio... | what are the games that were released in 2006? |
video_games | select t1.genre_name from genre as t1 inner join game as t2 on t1.id = t2.genre_id where t2.game_name = 'mario vs. donkey kong' | Question: what is the genre of the game 'mario vs. donkey kong'? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> i... | what is the genre of the game 'mario vs. donkey kong'? |
video_games | select t.publisher_name from ( select t1.publisher_name, count(distinct t2.game_id) from publisher as t1 inner join game_publisher as t2 on t1.id = t2.publisher_id group by t1.publisher_name order by count(distinct t2.game_id) desc limit 1 ) t | Question: which publisher published the most games? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, region_nam... | which publisher published the most games? |
video_games | select t2.game_name from genre as t1 inner join game as t2 on t1.id = t2.genre_id where t1.genre_name = 'platform' | Question: list all the platform games. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, region_name. region_sal... | list all the platform games. |
video_games | select t2.release_year from platform as t1 inner join game_platform as t2 on t1.id = t2.platform_id where t1.platform_name = 'wiiu' order by t2.release_year desc limit 1 | Question: what are the years that 'wiiu' got a new game? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, regio... | what are the years that 'wiiu' got a new game? |
video_games | 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 ... | Question: which game has the most sales in japan? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, region_name.... | which game has the most sales in japan? |
video_games | 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 = 'activision' | Question: list the games from the publisher 'activision'. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, regi... | list the games from the publisher 'activision'. |
video_games | select count(distinct t1.publisher_id) from game_publisher as t1 inner join game as t2 on t1.game_id = t2.id where t2.game_name like 'marvel%' | Question: how many different publishers have published a game that starts with 'marvel'? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, r... | how many different publishers have published a game that starts with 'marvel'? |
video_games | select cast(count(case when t1.genre_name = 'sports' then t2.id else null end) as real) * 100 / count(t2.id) from genre as t1 inner join game as t2 on t1.id = t2.genre_id | Question: what percentage of games are sports? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, region_name. re... | what percentage of games are sports? |
video_games | select sum(case when t2.region_name = 'north america' then t1.num_sales else 0 end) / sum(case when t2.region_name = 'japan' then t1.num_sales else 0 end) from region_sales as t1 inner join region as t2 on t1.region_id = t2.id | Question: what is the ratio of game sales between north america and japan? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. r... | what is the ratio of game sales between north america and japan? |
video_games | select t1.release_year from ( select t.release_year, count(id) from game_platform as t group by t.release_year order by count(t.id) desc limit 1 ) t1 | Question: which year has the most number of video game releases? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> i... | which year has the most number of video game releases? |
video_games | select count(t.id) from publisher as t where t.publisher_name like '%interactive%' | Question: how many video game publishers have interactive in their names? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. re... | how many video game publishers have interactive in their names? |
video_games | select t4.platform_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 platform as t4 on t3.platform_id = t4.id where t1.region_name = 'north america' order by t2.num_sales desc limit 2 | Question: what are the top 2 platforms with the most sales in north america? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year.... | what are the top 2 platforms with the most sales in north america? |
video_games | select count(distinct t2.game_id) from publisher as t1 inner join game_publisher as t2 on t1.id = t2.publisher_id inner join game_platform as t3 on t2.id = t3.game_publisher_id where t3.release_year = 2012 | Question: how many games did bmg interactive entertainment release in 2012? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. ... | how many games did bmg interactive entertainment release in 2012? |
video_games | select 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 where t1.release_year = 2007 group by t3.publisher_name order by count(distinct t2.game_id) desc limit 1 | Question: what is the name of the publisher that released the most video games in 2007? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, re... | what is the name of the publisher that released the most video games in 2007? |
video_games | select count(t2.publisher_id) from game as t1 inner join game_publisher as t2 on t1.id = t2.game_id where t1.game_name = 'minecraft' | Question: how many publishers published the minecraft game? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, re... | how many publishers published the minecraft game? |
video_games | select t.publisher_name from ( select t4.publisher_name, count(distinct t2.id) from genre as t1 inner join game as t2 on t1.id = t2.genre_id inner join game_publisher as t3 on t2.id = t3.game_id inner join publisher as t4 on t3.publisher_id = t4.id where t1.genre_name = 'action' group by t4.publisher_name order by coun... | Question: which publisher has published the most number of action games? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. reg... | which publisher has published the most number of action games? |
video_games | select count(t3.id) 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 inner join genre as t4 on t3.genre_id = t4.id where t4.genre_name = 'sports' and t1.publisher_name = 'nintendo' | Question: how many sports games did nintendo publish? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, region_n... | how many sports games did nintendo publish? |
video_games | select t2.genre_name from game as t1 inner join genre as t2 on t1.genre_id = t2.id where t1.game_name = '2 games in 1: sonic advance & chuchu rocket!' | Question: what is the genre of the game '2 games in 1: sonic advance & chuchu rocket!'? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, re... | what is the genre of the game '2 games in 1: sonic advance & chuchu rocket!'? |
video_games | select count(distinct t2.id) from platform as t1 inner join game_platform as t2 on t1.id = t2.platform_id inner join region_sales as t3 on t1.id = t3.game_platform_id inner join region as t4 on t3.region_id = t4.id where t1.platform_name = 'ds' and t4.region_name = 'other' and t3.num_sales > 0 | Question: how many times did other regions make positive sales in ds platform? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_yea... | how many times did other regions make positive sales in ds platform? |
video_games | 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 = 'american softworks' | Question: what are the names of the games published by american softworks? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. r... | what are the names of the games published by american softworks? |
video_games | select count(case when t1.genre_name = 'strategy' then t2.id else null end) from genre as t1 inner join game as t2 on t1.id = t2.genre_id | Question: how many strategy games are there? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, region_name. regi... | how many strategy games are there? |
video_games | select t3.publisher_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 t1.game_name = 'overwatch' | Question: which publisher published overwatch? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, region_name. re... | which publisher published overwatch? |
video_games | select t2.genre_name from game as t1 inner join genre as t2 on t2.id = t1.genre_id group by t2.genre_name order by count(t1.genre_id) desc limit 1 | Question: what is the name of the genre with the most number of video games? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year.... | what is the name of the genre with the most number of video games? |
video_games | select t2.num_sales * 100000 as nums_eur from region as t1 inner join region_sales as t2 on t1.id = t2.region_id where t2.game_platform_id = 26 and t1.region_name = 'europe' | Question: what is the number of games sold in europe for game platform id 26? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year... | what is the number of games sold in europe for game platform id 26? |
video_games | select count(id) from game_platform as t where t.release_year = 2001 | Question: how many games were released in the year 2001? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, regio... | how many games were released in the year 2001? |
video_games | select count(*) from ( select t.game_name from game as t where t.game_name like '%box%' ) | Question: how many games include the word 'box' in their name? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id,... | how many games include the word 'box' in their name? |
video_games | select t.game_platform_id, sum(t.num_sales) * 100000 from region_sales as t group by game_platform_id order by sum(t.num_sales) * 100000 desc limit 3 | Question: what are the three largest numbers of games sold? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, re... | what are the three largest numbers of games sold? |
video_games | select t.release_year from game_platform as t order by t.release_year asc limit 1 | Question: what year were the first game released? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, region_name.... | what year were the first game released? |
video_games | select t.publisher_name from publisher as t where t.publisher_name like '%entertainment%' | Question: what publishers have the word 'entertainment' in their name? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. regio... | what publishers have the word 'entertainment' in their name? |
video_games | select t2.game_name from genre as t1 inner join game as t2 on t1.id = t2.genre_id where t1.genre_name = 'adventure' | Question: indicate the name of all adventure games. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, region_nam... | indicate the name of all adventure games. |
video_games | 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 = 'pioneer ldc' | Question: list the name of all games published by 'pioneer ldc'. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> i... | list the name of all games published by 'pioneer ldc'. |
video_games | select t1.game_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 t4.platform_name = 'scd' | Question: indicate the name of all the games published for the 'scd' platform. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_yea... | indicate the name of all the games published for the 'scd' platform. |
video_games | select t1.game_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 region_sales as t4 on t3.id = t4.game_platform_id inner join region as t5 on t4.region_id = t5.id where t5.region_name = 'japan' | Question: list the name of all games published in japan. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, regio... | list the name of all games published in japan. |
video_games | select t4.genre_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 inner join genre as t4 on t3.genre_id = t4.id where t1.publisher_name = 'agatsuma entertainment' | Question: what genres are the games published by 'agatsuma entertainment'? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. r... | what genres are the games published by 'agatsuma entertainment'? |
video_games | select count(t2.id) from genre as t1 inner join game as t2 on t1.id = t2.genre_id where t1.genre_name not in ('role-playing', 'shooter', 'simulation') | Question: how many games are not of the genres 'role-playing', 'shooter' and 'simulation'? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id,... | how many games are not of the genres 'role-playing', 'shooter' and 'simulation'? |
video_games | select t.region_name from ( select t1.platform_name, t4.region_name, sum(t3.num_sales) from platform as t1 inner join game_platform as t2 on t1.id = t2.platform_id inner join region_sales as t3 on t1.id = t3.game_platform_id inner join region as t4 on t3.region_id = t4.id group by t1.platform_name, t4.region_name order... | Question: indicate, by region, which platform has sold the most games. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. regio... | indicate, by region, which platform has sold the most games. |
video_games | select t.publisher_name from ( select t1.publisher_name, count(t3.id) 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 inner join genre as t4 on t3.genre_id = t4.id where t4.genre_name = 'puzzle' group by t1.publisher_name order by count(t3.id) ... | Question: which publisher has published the most games in the 'puzzle' genre? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year... | which publisher has published the most games in the 'puzzle' genre? |
video_games | select t.game_name from ( select t1.game_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 region_sales as t4 on t3.id = t4.game_platform_id order by t4.num_sales limit 1 ) t | Question: which game has sold the fewest units? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, region_name. r... | which game has sold the fewest units? |
video_games | 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 = 'pachi-slot kanzen kouryaku 3: universal koushiki gaido volume 3' | Question: which publisher has published the game 'pachi-slot kanzen kouryaku 3: universal koushiki gaido volume 3'? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_p... | which publisher has published the game 'pachi-slot kanzen kouryaku 3: universal koushiki gaido volume 3'? |
video_games | select t5.region_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 region_sales as t4 on t3.id = t4.game_platform_id inner join region as t5 on t4.region_id = t5.id where t1.game_name = 'pengo' | Question: in which regions has the game 'pengo' been sold? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, reg... | in which regions has the game 'pengo' been sold? |
video_games | select t1.game_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 where t3.release_year = '2010' | Question: list by name all the games released in the year 2010. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id... | list by name all the games released in the year 2010. |
video_games | select sum(t3.num_sales * 100000) / count(t1.id) from platform as t1 inner join game_platform as t2 on t1.id = t2.platform_id inner join region_sales as t3 on t2.id = t3.game_platform_id where t1.platform_name = 'ps2' | Question: calculate the average game sales for the ps2 platform. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> i... | calculate the average game sales for the ps2 platform. |
video_games | select cast(count(case when t1.publisher_name = 'brash entertainment' then t2.game_id else null end) as real) * 100 / count(t2.game_id) from publisher as t1 inner join game_publisher as t2 on t1.id = t2.publisher_id | Question: calculate the percentage of games published by 'brash entertainment'? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_ye... | calculate the percentage of games published by 'brash entertainment'? |
video_games | select sum(t.num_sales * 100000) from region_sales as t where t.region_id = 1 | Question: what is the total number of games sold in region id 1? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> i... | what is the total number of games sold in region id 1? |
video_games | select count(*) from ( select t.game_name from game as t where t.game_name like '%fifa%' ) | Question: how many fifa games are there across all platforms? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, ... | how many fifa games are there across all platforms? |
video_games | select t.platform_name from ( select t4.platform_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 platform as t4 on t3.platform_id = t4.id where t1.region_name = 'europe' order by t2.num_sales desc limit 1 ) t | Question: which platform is the most popular in europe? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, region... | which platform is the most popular in europe? |
video_games | select t2.publisher_name from game_publisher as t1 inner join publisher as t2 on t1.publisher_id = t2.id inner join game as t3 on t1.game_id = t3.id where t3.game_name = '2002 fifa world cup' | Question: who is the publisher of the game 2002 fifa world cup? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id... | who is the publisher of the game 2002 fifa world cup? |
video_games | select t2.platform_name from game_platform as t1 inner join platform as t2 on t1.platform_id = t2.id inner join game_publisher as t3 on t1.game_publisher_id = t3.id inner join game as t4 on t3.game_id = t4.id where t4.game_name = '3xtreme' | Question: what platform is the game 3xtreme available on? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, regi... | what platform is the game 3xtreme available on? |
video_games | select t2.genre_name from game as t1 inner join genre as t2 on t1.genre_id = t2.id where t1.game_name = '2010 fifa world cup south africa' | Question: what genre is the game 2010 fifa world cup south africa? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region ->... | what genre is the game 2010 fifa world cup south africa? |
video_games | select t.region_name from ( select t2.region_name, sum(t1.num_sales) from region_sales as t1 inner join region as t2 on t1.region_id = t2.id inner join game_platform as t3 on t1.game_platform_id = t3.id inner join platform as t4 on t3.platform_id = t4.id group by t4.platform_name order by sum(t1.num_sales) desc limit 1... | Question: which region has the highest number of games sold on all platforms? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year... | which region has the highest number of games sold on all platforms? |
video_games | select sum(t1.num_sales * 100000) from region_sales as t1 inner join region as t2 on t1.region_id = t2.id inner join game_platform as t3 on t1.game_platform_id = t3.id inner join platform as t4 on t3.platform_id = t4.id where t2.region_name = 'japan' and t4.platform_name = 'ps3' | Question: how many games were sold on ps3 platform in japan? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, r... | how many games were sold on ps3 platform in japan? |
video_games | select t3.game_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 where t1.release_year = 2007 | Question: what are the names of games that were released in 2007? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> ... | what are the names of games that were released in 2007? |
video_games | select count(distinct t3.id) from game_publisher as t1 inner join publisher as t2 on t1.publisher_id = t2.id inner join game as t3 on t1.game_id = t3.id where t2.publisher_name = 'activision' | Question: how many games were published by activision? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, region_... | how many games were published by activision? |
video_games | select distinct 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 > 200000 and t1.region_name = 'japan' | Question: indicate the release year of the game with more than 200000 sales in japan. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, rele... | indicate the release year of the game with more than 200000 sales in japan. |
video_games | select 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 t1.platform_name = 'ps3' and t2.release_year = 2010 | Question: in 2010, how many ps3 games were released? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, region_na... | in 2010, how many ps3 games were released? |
video_games | 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 order by count(distinct t1.game_id) desc limit 1 ) t | Question: indicate the publisher who has published the most games of all time. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_yea... | indicate the publisher who has published the most games of all time. |
video_games | select count(t1.id) from game as t1 inner join genre as t2 on t1.genre_id = t2.id where t2.genre_name = 'shooter' | Question: how many shooter games are there? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, region_name. regio... | how many shooter games are there? |
video_games | select cast(count(case when t2.platform_name = 'ps4' then t3.game_id else null end) as real) * 100 / count(t3.game_id) from game_platform as t1 inner join platform as t2 on t1.platform_id = t2.id inner join game_publisher as t3 on t1.game_publisher_id = t3.id where t1.release_year = 2014 | Question: what is the percentage of games that were released on ps4 in 2014 among all platforms? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platfo... | what is the percentage of games that were released on ps4 in 2014 among all platforms? |
video_games | select sum(t.num_sales) * 100000 from region_sales as t where t.region_id = 4 | Question: how much are the sales of the games in region id 4? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, ... | how much are the sales of the games in region id 4? |
video_games | select t.game_platform_id from region_sales as t where t.region_id = 1 | Question: list down the game platform ids of games with a region id of 1. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. re... | list down the game platform ids of games with a region id of 1. |
video_games | select sum(case when t.region_id = 2 then t.num_sales else 0 end) - sum(case when t.region_id = 3 then t.num_sales else 0 end) from region_sales t | Question: calculate the difference between sales of games from region id 2 and region id 3. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id... | calculate the difference between sales of games from region id 2 and region id 3. |
video_games | select distinct t.platform_id from game_platform as t where t.release_year = 2007 | Question: list down the platform ids of the games released in 2007. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -... | list down the platform ids of the games released in 2007. |
video_games | select t.game_publisher_id from game_platform as t where t.platform_id = 16 | Question: state the game publisher ids of the games with a platform id of 16. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year... | state the game publisher ids of the games with a platform id of 16. |
video_games | select count(t.game_publisher_id) from game_platform as t where t.release_year = 1984 | Question: calculate the number of game publisher ids for games released in 1984. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_y... | calculate the number of game publisher ids for games released in 1984. |
video_games | select t2.id from region_sales as t1 inner join game_platform as t2 on t1.game_platform_id = t2.id where t1.region_id = 3 | Question: list down the platform ids of the games with a region id of 3. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. reg... | list down the platform ids of the games with a region id of 3. |
video_games | select sum(case when t2.region_name = 'japan' then t1.num_sales else 0 end) as nums from region_sales as t1 inner join region as t2 on t1.region_id = t2.id | Question: what are the sales made by the games in japan region? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id... | what are the sales made by the games in japan region? |
video_games | select count(t1.game_publisher_id) from game_platform as t1 inner join platform as t2 on t1.platform_id = t2.id where t2.platform_name = 'x360' | Question: how many game publisher ids have published games on the x360 platform? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_y... | how many game publisher ids have published games on the x360 platform? |
video_games | select distinct t2.platform_name from game_platform as t1 inner join platform as t2 on t1.platform_id = t2.id where t1.release_year = 2000 | Question: state the name of the platforms for games released in 2000. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region... | state the name of the platforms for games released in 2000. |
video_games | select count(case when t2.platform_name = 'ps3' then t1.game_publisher_id else null end) - count(case when t2.platform_name = 'x360' then t1.game_publisher_id else null end) from game_platform as t1 inner join platform as t2 on t1.platform_id = t2.id | Question: find out the difference between the number of publishers who released the games on the ps3 and x360. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publis... | find out the difference between the number of publishers who released the games on the ps3 and x360. |
video_games | select t1.game_id from game_publisher as t1 inner join publisher as t2 on t1.publisher_id = t2.id where t2.publisher_name = 'bethesda softworks' | Question: what are the game ids of the games published by bethesda softworks? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year... | what are the game ids of the games published by bethesda softworks? |
video_games | select count(distinct t1.game_id) from game_publisher as t1 inner join publisher as t2 on t1.publisher_id = t2.id where t2.publisher_name in ('capcom', 'sony computer entertainment') | Question: calculate the total number of ids for the game published by capcom and sony computer entertainment. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publish... | calculate the total number of ids for the game published by capcom and sony computer entertainment. |
video_games | select t2.genre_name from game as t1 inner join genre as t2 on t1.genre_id = t2.id where t1.game_name = 'grand theft auto v' | Question: what is the genre of the game 'grand theft auto v'? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, ... | what is the genre of the game 'grand theft auto v'? |
video_games | select t1.game_name from game as t1 inner join genre as t2 on t1.genre_id = t2.id where t2.genre_name = 'racing' | Question: list down the names of the games in the racing genre. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id... | list down the names of the games in the racing genre. |
video_games | select count(t1.id) from game as t1 inner join genre as t2 on t1.genre_id = t2.id where t2.genre_name = 'fighting' | Question: calculate the number of games in the fighting genre. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id,... | calculate the number of games in the fighting genre. |
video_games | select distinct t2.genre_name from game as t1 inner join genre as t2 on t1.genre_id = t2.id inner join game_publisher as t3 on t1.id = t3.game_id where t3.publisher_id = 464 | Question: what are the genres of games published by the publisher with an id of 464? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, relea... | what are the genres of games published by the publisher with an id of 464? |
video_games | 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 = 'final fantasy xiii-2' | Question: find out the platform of the game 'final fantasy xiii-2'. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -... | find out the platform of the game 'final fantasy xiii-2'. |
video_games | select sum(t1.num_sales) from region_sales as t1 inner join game_platform as t2 on t1.game_platform_id = t2.id where t2.release_year = 2000 | Question: calculate the total sales made by the games released in 2000. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. regi... | calculate the total sales made by the games released in 2000. |
video_games | select sum(case when t2.release_year = 2000 then t1.num_sales else 0 end) - sum(case when t2.release_year = 1990 then t1.num_sales else 0 end) from region_sales as t1 inner join game_platform as t2 on t1.game_platform_id = t2.id | Question: calculate the difference in sales between the games released in 1990 and 2000. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, r... | calculate the difference in sales between the games released in 1990 and 2000. |
video_games | select distinct t.platform_id from game_platform as t where t.release_year = 2006 | Question: what are the platform ids of records released in 2006? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> i... | what are the platform ids of records released in 2006? |
video_games | select avg(t.num_sales * 100000) from region_sales as t where t.region_id = 3 | Question: compute the average number of sales in region id 3. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, ... | compute the average number of sales in region id 3. |
video_games | select t.release_year from game_platform as t where t.game_publisher_id = 6657 and t.id = 19 | Question: in which year did the record id 19 with game publisher id 6657 released? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release... | in which year did the record id 19 with game publisher id 6657 released? |
video_games | select sum(t.num_sales) * 100000 from region_sales as t where t.game_platform_id = 66 | Question: calculate the total sales in all regions with game platform id 66. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year.... | calculate the total sales in all regions with game platform id 66. |
video_games | select t.game_name from game as t where t.id = 44 | Question: give the game name of the game id 44. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, region_name. r... | give the game name of the game id 44. |
video_games | select t4.game_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 t1.platform_name = 'wii' | Question: list the games available on wii. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, region_name. region... | list the games available on wii. |
video_games | select t3.game_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 where t1.release_year = 2015 | Question: provide the name of games released in 2015. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, region_n... | provide the name of games released in 2015. |
video_games | select count(distinct t3.id) 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 = 'adventure' and t1.release_year = 2005 | Question: what is the total number of adventure games released in 2005? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. regi... | what is the total number of adventure games released in 2005? |
video_games | select t3.publisher_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 t1.game_name = 'adventure time: explore the dungeon because i don''t know!' | Question: what is the name of the company that produced the game titled adventure time: explore the dungeon because i don't know!? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platfor... | what is the name of the company that produced the game titled adventure time: explore the dungeon because i don't know!? |
video_games | select t2.game_platform_id, t1.region_name from region as t1 inner join region_sales as t2 on t1.id = t2.region_id where t2.num_sales * 100000 <= 20000 | Question: list down the game platform id and region name where the games achieved 20000 sales and below. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id... | list down the game platform id and region name where the games achieved 20000 sales and below. |
video_games | select t3.game_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 publisher as t4 on t2.publisher_id = t4.id where t4.publisher_name = '505 games' and t1.release_year = 2006 | Question: provide the name of game produced by 505 games in 2006. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> ... | provide the name of game produced by 505 games in 2006. |
video_games | select t2.genre_name from game as t1 inner join genre as t2 on t1.genre_id = t2.id where t1.id = 119 | Question: what is the genre of the game id 119? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, region_name. r... | what is the genre of the game id 119? |
video_games | select t1.game_id from game_publisher as t1 inner join publisher as t2 on t1.publisher_id = t2.id where t2.publisher_name = 'abylight' | Question: list the game ids of the games produced by abylight. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id,... | list the game ids of the games produced by abylight. |
video_games | select distinct t1.region_name from region as t1 inner join region_sales as t2 on t1.id = t2.region_id order by t2.num_sales limit 1 | Question: in which region where a game had the lowest number of sales? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. regio... | in which region where a game had the lowest number of sales? |
video_games | select t1.game_name from game as t1 inner join genre as t2 on t1.genre_id = t2.id where t2.genre_name = 'strategy' | Question: list down the name of strategy games. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, region_name. r... | list down the name of strategy games. |
video_games | select t3.platform_name from game_publisher as t1 inner join game_platform as t2 on t1.id = t2.game_publisher_id inner join platform as t3 on t2.platform_id = t3.id where t1.game_id = 178 | Question: in what platform does the game id 178 available? | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id, reg... | in what platform does the game id 178 available? |
video_games | select t2.genre_name from game as t1 inner join genre as t2 on t1.genre_id = t2.id where t1.game_name in ('airlock', 'airline tycoon', 'airblade') | Question: give the genre of the following game titled 'airlock' , 'airline tycoon' , and 'airblade', respectively. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_pu... | give the genre of the following game titled 'airlock' , 'airline tycoon' , and 'airblade', respectively. |
video_games | select sum(t2.num_sales) * 100000 as nums from region as t1 inner join region_sales as t2 on t1.id = t2.region_id where t1.region_name = 'north america' | Question: calculate the total number of sales in north america. | Tables: genre -> id, genre_name. game -> id, genre_id, game_name. platform -> id, platform_name. publisher -> id, publisher_name. game_publisher -> id, game_id, publisher_id. game_platform -> id, game_publisher_id, platform_id, release_year. region -> id... | calculate the total number of sales in north america. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.