db_id
stringlengths
4
31
SQL
stringlengths
18
1.45k
input_sequence
stringlengths
148
11k
question
stringlengths
16
325
donor
select t1.school_longitude, t1.school_latitude from projects as t1 inner join essays as t2 on t1.projectid = t2.projectid where t2.title like 'wiping away bad grades'
Question: what are the coordinates of the school with the project 'wiping away bad grades'? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school...
what are the coordinates of the school with the project 'wiping away bad grades'?
donor
select distinct t2.primary_focus_subject from donations as t1 inner join projects as t2 on t1.projectid = t2.projectid where t1.payment_included_campaign_gift_card = 't'
Question: list the primary subject of all the donations with a corporate sponsored giftcard. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, schoo...
list the primary subject of all the donations with a corporate sponsored giftcard.
donor
select t1.item_name, t2.short_description from resources as t1 inner join essays as t2 on t1.projectid = t2.projectid where t1.project_resource_type = 'books' order by t1.item_unit_price desc limit 1
Question: what is the most expensive book item? please provide a short description of projects related to those. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city,...
what is the most expensive book item? please provide a short description of projects related to those.
donor
select t1.grade_level from projects as t1 inner join essays as t2 on t1.projectid = t2.projectid where t2.title like 'too close for comfort'
Question: for what grade was the project 'too close for comfort' for? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, school_metro, sc...
for what grade was the project 'too close for comfort' for?
donor
select sum(t2.students_reached) from donations as t1 inner join projects as t2 on t1.projectid = t2.projectid where t1.donor_zip = 22205
Question: what is the total number of students impacted by the projects with a donation from a donor with zip code '22205'? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, s...
what is the total number of students impacted by the projects with a donation from a donor with zip code '22205'?
donor
select cast(sum(case when t1.via_giving_page = 't' then 1 else 0 end) as real) * 100 / count(donation_total), ( select t2.primary_focus_area from donations as t1 inner join projects as t2 on t1.projectid = t2.projectid where t1.via_giving_page = 't' group by t2.primary_focus_area order by sum(t1.donation_total) desc li...
Question: what percentage of donations are given via a giving or campaign page? list the primary area of those donations. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, sch...
what percentage of donations are given via a giving or campaign page? list the primary area of those donations.
donor
select cast(sum(case when t1.vendor_name = 'best buy for business' then 1 else 0 end) as real) * 100 / count(t1.projectid) from resources as t1 inner join projects as t2 on t1.projectid = t2.projectid where t1.project_resource_type = 'technology' union all select distinct t1.date_posted from projects as t1 inner join r...
Question: among the technology items, what percentage of them are from best buy for business? provide the date of the project related to those items. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_lat...
among the technology items, what percentage of them are from best buy for business? provide the date of the project related to those items.
video_games
select (sum(case when t.game_platform_id = 50 then t.num_sales else 0 end) - sum(case when t.game_platform_id = 51 then t.num_sales else 0 end)) * 100000 as nums from region_sales as t where t.region_id = 1
Question: how many more games were sold on game platform id 50 than on game platform id 51 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_...
how many more games were sold on game platform id 50 than on game platform id 51 in region id 1?
video_games
select t1.game_name from game as t1 where t1.genre_id = ( select t.genre_id from game as t where t.game_name = '3d lemmings' )
Question: please list all the games that have the same game genre as 3d lemmings. | 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_...
please list all the games that have the same game genre as 3d lemmings.
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 = 'action'
Question: how many action games are there in total? | 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...
how many action games are there in total?
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 = '3d lemmings'
Question: what is the genre of 3d lemmings? | 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...
what is the genre of 3d lemmings?
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 = '3d lemmings'
Question: who is the publisher of 3d lemmings? | 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...
who is the publisher of 3d lemmings?
video_games
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 = '10tacle studios'
Question: please list the names of all the games published by 10tacle studios. | 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...
please list the names of all the games published by 10tacle studios.
video_games
select count(t1.id) 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 inner join genre as t4 on t1.genre_id = t4.id where t4.genre_name = 'puzzle' and t3.publisher_name = '10tacle studios'
Question: among the games published by 10tacle studios, how many of them are puzzles? | 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...
among the games published by 10tacle studios, how many of them are puzzles?
video_games
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 inner join genre as t4 on t1.genre_id = t4.id where t3.publisher_name = '10tacle studios' and t4.genre_name = 'puzzle'
Question: please list the names of all the games published by 10tacle studios and are puzzles. | 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...
please list the names of all the games published by 10tacle studios and are puzzles.
video_games
select t.publisher_name from ( select t2.publisher_name, count(distinct t2.id) from game_publisher as t1 inner join publisher as t2 on t1.publisher_id = t2.id group by t1.publisher_id order by count(t2.id) desc limit 1 ) t
Question: which publisher has 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...
which publisher has published the most games?
video_games
select t5.platform_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 inner join game_platform as t4 on t1.id = t4.game_publisher_id inner join platform as t5 on t4.platform_id = t5.id where t3.game_name = 'panzer tactics' and t4.release_year...
Question: on which platform was panzer tactics 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 -> i...
on which platform was panzer tactics released in 2007?
video_games
select t4.release_year 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 inner join game_platform as t4 on t1.id = t4.game_publisher_id inner join platform as t5 on t4.platform_id = t5.id where t3.game_name = 'panzer tactics' and t5.platform_name...
Question: in which year was panzer tactics released on ds? | 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 year was panzer tactics released on ds?
video_games
select distinct 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 inner join genre as t4 on t1.genre_id = t4.id where t4.genre_name = 'puzzle'
Question: please list the names of the publishers of all the puzzle 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. r...
please list the names of the publishers of all the puzzle games.
video_games
select t.publisher_name from ( select t3.publisher_name, count(distinct t1.id) 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 inner join genre as t4 on t1.genre_id = t4.id where t4.genre_name = 'puzzle' group by t3.publisher_name order by coun...
Question: what is the name of the publisher that has published the most puzzle 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, rele...
what is the name of the publisher that has published the most puzzle games?
video_games
select count(t.publisher_name) from ( select t3.publisher_name, count(distinct t1.id) 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 inner join genre as t4 on t1.genre_id = t4.id where t4.genre_name = 'puzzle' group by t3.publisher_name having...
Question: how many publishers have published more than 3 puzzle 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...
how many publishers have published more than 3 puzzle games?
video_games
select cast(count(case when t4.genre_name = 'sports' then t1.id else null end) as real) * 100/ count(t1.id) 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 inner join genre as t4 on t1.genre_id = t4.id where t3.publisher_name = 'nintendo'
Question: among the games published by nintendo, what is the percentage of those in the genre of 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...
among the games published by nintendo, what is the percentage of those in the genre of sports?
video_games
select sum(t1.num_sales) * 100000 / 4 from region_sales as t1 inner join game_platform as t2 on t1.game_platform_id = t2.id inner join platform as t3 on t2.platform_id = t3.id where t3.platform_name = 'ds'
Question: how many games were sold on the ds platform on average in the 4 different regions? | 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_i...
how many games were sold on the ds platform on average in the 4 different regions?
video_games
select distinct t.game_id from game_publisher as t where t.publisher_id = 352
Question: tell the number of games whose publisher id is 352. | 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, ...
tell the number of games whose publisher id is 352.
video_games
select t.genre_id from game as t where t.game_name = 'pro evolution soccer 2012'
Question: list the genre id of the game pro evolution soccer 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. region ->...
list the genre id of the game pro evolution soccer 2012.
video_games
select t.id from region as t where t.region_name = 'japan'
Question: state the region id of 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. region_sa...
state the region id of japan.
video_games
select t1.game_platform_id from ( select t.game_platform_id, sum(t.num_sales) from region_sales as t where t.region_id = 2 group by t.game_platform_id order by sum(t.num_sales) desc limit 1 ) t1
Question: show the id of the game platform with the most sales in region 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. ...
show the id of the game platform with the most sales in region 2.
video_games
select genre_id from ( select t.genre_id, count(t.id) from game as t group by t.genre_id order by count(t.id) desc limit 1 )
Question: which genre has the most games? show its id. | 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 genre has the most games? show its id.
video_games
select t.genre_id from game as t where t.game_name = 'resident evil archives: resident evil'
Question: what is the id of the game 'resident evil archives: resident evil'? | 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 id of the game 'resident evil archives: resident evil'?
video_games
select 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 = 'x360' and t2.release_year = 2010
Question: show the number of games which were released on x360 in 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. regi...
show the number of games which were released on x360 in 2010.
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 = 'modnation racers'
Question: state the publisher name of the game 'modnation racers'. | 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 publisher name of the game 'modnation racers'.
video_games
select t.game_platform_id from ( select t2.game_platform_id, max(t2.num_sales) from region as t1 inner join region_sales as t2 on t1.id = t2.region_id where t1.region_name = 'japan' ) t
Question: show the id of game platform which makes 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. ...
show the id of game platform which makes the most sales in japan.
video_games
select count(t2.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 inner join game as t4 on t3.game_id = t4.id where t4.game_name = 'pro evolution soccer 2016'
Question: how many platforms are available for the game pro evolution soccer 2016? | 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...
how many platforms are available for the game pro evolution soccer 2016?
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 = 'sports'
Question: how many games in the database belong to the genre of 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. regi...
how many games in the database belong to the genre of sports?
video_games
select t2.publisher_name from game_publisher as t1 inner join publisher as t2 on t1.publisher_id = t2.id where t1.game_id = 10031
Question: name of the publisher of the game id 10031. | 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...
name of the publisher of the game id 10031.
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: state the name of the publisher with 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,...
state the name of the publisher with the most games.
video_games
select count(case when t1.genre_name = 'sports' then t2.id else null end) - count(case when t1.genre_name = 'simulation' then t2.id else null end) from genre as t1 inner join game as t2 on t1.id = t2.genre_id
Question: how many more sports games than simulation 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, re...
how many more sports games than simulation games?
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 = 'resident evil: revelations'
Question: tell the genre of the game 'resident evil: revelations'. | 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 ->...
tell the genre of the game 'resident evil: revelations'.
video_games
select t2.num_sales * 100000 from region as t1 inner join region_sales as t2 on t1.id = t2.region_id where t1.region_name = 'europe' and t2.game_platform_id = 3871
Question: how many sales does game platform id 3871 make 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 -...
how many sales does game platform id 3871 make in europe?
video_games
select count(t2.game_id) from publisher as t1 inner join game_publisher as t2 on t1.id = t2.publisher_id where t1.publisher_name = 'ascaron entertainment gmbh'
Question: give the number of games which were published by ascaron entertainment gmbh. | 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, rel...
give the number of games which were published by ascaron entertainment gmbh.
video_games
select t2.platform_name from game_platform as t1 inner join platform as t2 on t1.platform_id = t2.id order by t1.release_year asc limit 1
Question: show the name of the earliest platform in the database. | 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 -> ...
show the name of the earliest platform in the database.
video_games
select cast(count(case when t4.genre_name = 'adventure' then t1.id else null end) as real) * 100 / count(t1.id) 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 inner join genre as t4 on t1.genre_id = t4.id where t3.publisher_name = 'namco banda...
Question: for all the games which were published by namco bandai games, what percentage of them were 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...
for all the games which were published by namco bandai games, what percentage of them were adventure games?
video_games
select cast(count(case when t1.publisher_name = 'atari' then t2.game_id else null end) as real) / count(case when t1.publisher_name = 'athena' then t2.game_id else null end) from publisher as t1 inner join game_publisher as t2 on t1.id = t2.publisher_id
Question: how many times more is the number of games which were published by atari than athena? | 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, platfor...
how many times more is the number of games which were published by atari than athena?
video_games
select count(distinct t2.game_id) from publisher as t1 inner join game_publisher as t2 on t1.id = t2.publisher_id where t1.publisher_name = 'electronic arts'
Question: how many games did electronic arts 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 games did electronic arts 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 = 'advent rising'
Question: what is the genre of the advent rising 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, region_...
what is the genre of the advent rising game?
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 = 'role-playing' and t1.publisher_name = 'microsoft game studios'
Question: how many role-playing games did microsoft game studios 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. re...
how many role-playing games did microsoft game studios publish?
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: 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 t4.platform_name 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 inner join platform as t4 on t3.platform_id = t4.id where t3.release_year = 2004 and t1.publisher_name = 'codemasters'
Question: in 2004, what are the names of the platforms where codemasters publish its 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...
in 2004, what are the names of the platforms where codemasters publish its games?
video_games
select 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 = 'ps4' and t2.release_year = 2014
Question: how many games were released on ps4 in 2014? | 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 released on ps4 in 2014?
video_games
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
Question: what are the names of the publishers who published the oldest 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_yea...
what are the names of the publishers who published the oldest games?
video_games
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'
Question: how many publishers in japan released a game on x360 in 2011? | 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...
how many publishers in japan released a game on x360 in 2011?
video_games
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 li...
Question: which game 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, r...
which game platform is the most popular in europe?
video_games
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 lim...
Question: which year has the most number of pc games 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 -> id,...
which year has the most number of pc games releases?
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 having count(distinct t1.game_id) = 1 ) t
Question: list the names of all the publishers who published one game only. | 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. ...
list the names of all the publishers who published one game only.
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 = '505 games'
Question: what are the names of the games that were published by 505 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 are the names of the games that were published by 505 games?
video_games
select t.genre_id from game as t where t.game_name = '25 to life'
Question: what is the genre id of the game named 25 to life? | 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...
what is the genre id of the game named 25 to life?
video_games
select t.id from game as t where t.genre_id = 2
Question: list down the game id of games with genre id 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 -> id, regi...
list down the game id of games with genre id 2.
video_games
select t.release_year from game_platform as t where t.id between 1 and 10
Question: provide the release year of record id 1 to 10. | 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...
provide the release year of record id 1 to 10.
video_games
select t.game_publisher_id from game_platform as t where t.platform_id = 15
Question: give the game publisher id of records with platform id 15. | 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 ...
give the game publisher id of records with platform id 15.
video_games
select t.id from game_platform as t where t.release_year between 2000 and 2003
Question: list down the record id of records released between 2000 to 2003. | 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. ...
list down the record id of records released between 2000 to 2003.
video_games
select t.num_sales * 100000 from region_sales as t where t.region_id = 2 and t.game_platform_id = 9615
Question: what is the number of sales in region id 2 with game platform id 9615? | 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...
what is the number of sales in region id 2 with game platform id 9615?
video_games
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
Question: list down the names of platform where the games released in 2016 can be played 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_i...
list down the names of platform where the games released in 2016 can be played on.
video_games
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'
Question: when was the game titled 3ds classic collection 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 -...
when was the game titled 3ds classic collection released?
video_games
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'
Question: what is the average number of 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...
what is the average number of sales in japan?
video_games
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
Question: give the genre of the games released from 2000 to 2002. | 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 -> ...
give the genre of the games released from 2000 to 2002.
video_games
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'
Question: list down the name of games published by 3do. | 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...
list down the name of games published by 3do.
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 = 'role-playing'
Question: how many role-playing 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. ...
how many role-playing games are there?
video_games
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
Question: list the region name where games reached 300000 sales and above. | 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...
list the region name where games reached 300000 sales and above.
video_games
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.publi...
Question: which company published the game 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_y...
which company published the game with the most sales in north america?
video_games
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'
Question: what is the release year of the game that gained 350000 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, ...
what is the release year of the game that gained 350000 sales in north america?
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 inner join game as t4 on t3.game_id = t4.id where t4.game_name = 'counter force'
Question: in which platform does the game titled 15 days 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 -...
in which platform does the game titled 15 days available?
video_games
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
Question: give the name of the publisher of the game id 75. | 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...
give the name of the publisher of the game id 75.
video_games
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' o...
Question: what is the title of the game that gained 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....
what is the title of the game that gained the most sales in japan?
video_games
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 > ( ...
Question: provide the game publisher's name of the game with sales greater than 90% of the average 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_pu...
provide the game publisher's name of the game with sales greater than 90% of the average sales in japan.
video_games
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
Question: among the games released in 2004, what is the percentage of games on psp? | 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, releas...
among the games released in 2004, what is the percentage of games on psp?
video_games
select count(t.id) from game_platform as t where t.release_year = 1981
Question: how many games were released in 1981? | 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...
how many games were released in 1981?
video_games
select t.genre_id from game as t where t.game_name = '2xtreme'
Question: what is the genre id of the '2xtreme' 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, region_n...
what is the genre id of the '2xtreme' game?
video_games
select sum(t.num_sales) * 100000 from region_sales as t where t.game_platform_id = 9658
Question: sum the total game sales in every region for platform id 9658. | 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...
sum the total game sales in every region for platform id 9658.
video_games
select t.id from publisher as t where t.publisher_name = '1c company'
Question: provide the id of 1c company. | 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_sa...
provide the id of 1c company.
video_games
select t.genre_name from genre as t where t.id = 3
Question: provide the genre name of the genre 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, region_nam...
provide the genre name of the genre id 3.
video_games
select t.id from game_platform as t where t.release_year = 2017
Question: list the game ids that were released in 2017. | 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...
list the game ids that were released in 2017.
video_games
select t3.release_year 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 t1.game_name = 'adventure island'
Question: when was the 'adventure island' 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, regio...
when was the 'adventure island' game released?
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 = 'puzzle'
Question: how many games are 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. region -> id, region_name. region...
how many games are puzzle genre?
video_games
select t4.game_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 t2.platform_name = 'scd'
Question: provide the games that can be played on 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_year. region -...
provide the games that can be played on the scd platform.
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 = 'acclaim entertainment'
Question: how many games were published by acclaim 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. region -> ...
how many games were published by acclaim entertainment?
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 = 'chronicles of the sword'
Question: name the publisher of the chronicles of the sword 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 -> ...
name the publisher of the chronicles of the sword game.
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 = 'north america' and t4.platform_name = 'ps4'
Question: provide the number of games sold in north america on the ps4 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...
provide the number of games sold in north america on the ps4 platform.
video_games
select t.game_platform_id from ( select t1.game_platform_id, sum(t1.num_sales) from region_sales as t1 inner join region as t2 on t1.region_id = t2.id where t2.region_name = 'europe' group by t1.game_platform_id order by sum(t1.num_sales) desc limit 1 ) t
Question: provide the id of the most popular platform 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 -> i...
provide the id of the most popular platform 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 = 2011
Question: name the game released in 2011. | 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_...
name the game released in 2011.
video_games
select count(t1.id) from game_platform as t1 inner join platform as t2 on t1.platform_id = t2.id where t2.platform_name = 'wii'
Question: how many games can be played on the wii 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 -> id, re...
how many games can be played on the wii platform?
video_games
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
Question: provide any five games and release year under the sports 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. re...
provide any five games and release year under the sports genre.
video_games
select t2.id from game as t1 inner join genre as t2 on t1.genre_id = t2.id where t1.game_name = '2xtreme'
Question: mention the genre of the 2xtreme. | 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...
mention the genre of the 2xtreme.
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 = 'panzer tactics'
Question: provide the platform where the panzer tactics can be played. | 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...
provide the platform where the panzer tactics can be played.
video_games
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
Question: calculate how many percent of sales in north america is higher than the average sale per region for platform id 9577. | 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 -...
calculate how many percent of sales in north america is higher than the average sale per region for platform id 9577.
video_games
select t.game_name from game as t order by length(t.game_name) desc limit 1
Question: which game has the longest 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, region_name. region...
which game has the longest name?
video_games
select count(t.id) from game_platform as t where t.release_year = 2001
Question: how many games were released in 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, region_name. r...
how many games were released in 2001?
video_games
select sum(t.num_sales) * 100000 from region_sales t
Question: what is the total number of sales across all regions? | 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 total number of sales across all regions?
video_games
select cast(count(t.game_id) as real) / count(distinct t.publisher_id) from game_publisher as t
Question: what is the average number of games published by a publisher? | 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 average number of games published by a publisher?
video_games
select min(t.release_year) from game_platform t
Question: what is the first year a game is 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...
what is the first year a game is released?
video_games
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
Question: what is the least common game 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, region_name. re...
what is the least common game genre?