answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT d_42 FROM table_name_41 WHERE r_51 = "r 11" | CREATE TABLE table_name_41 (d_42 VARCHAR, r_51 VARCHAR) | I want the D 42 with R 51 of r 11 |
SELECT r_53 FROM table_name_95 WHERE d_41 = "r 21" | CREATE TABLE table_name_95 (r_53 VARCHAR, d_41 VARCHAR) | I want the R 53 of D 41 of r 21 |
SELECT MIN(silver) FROM table_name_30 WHERE gold > 0 AND nation = "switzerland" | CREATE TABLE table_name_30 (silver INTEGER, gold VARCHAR, nation VARCHAR) | What is the low silver total for switzerland with over 0 golds? |
SELECT SUM(silver) FROM table_name_93 WHERE bronze = 10 | CREATE TABLE table_name_93 (silver INTEGER, bronze VARCHAR) | What is the silver total for nations with 10 bronze medals? |
SELECT SUM(gold) FROM table_name_5 WHERE nation = "lithuania" AND silver < 2 | CREATE TABLE table_name_5 (gold INTEGER, nation VARCHAR, silver VARCHAR) | What is the gold total for lithuania with under 2 silvers? |
SELECT home_team AS score FROM table_name_68 WHERE venue = "moorabbin oval" | CREATE TABLE table_name_68 (home_team VARCHAR, venue VARCHAR) | What was the score for the home team that played at Moorabbin Oval? |
SELECT screen_size__inch_ FROM table_name_73 WHERE intro_year = "2006" AND model = "iliad" | CREATE TABLE table_name_73 (screen_size__inch_ VARCHAR, intro_year VARCHAR, model VARCHAR) | Name the size of the screen that came out in 2006 and is iliad |
SELECT report FROM table_name_25 WHERE race = "belgian grand prix" | CREATE TABLE table_name_25 (report VARCHAR, race VARCHAR) | Which Report includes the Belgian Grand Prix Race? |
SELECT report FROM table_name_95 WHERE location = "monaco" | CREATE TABLE table_name_95 (report VARCHAR, location VARCHAR) | Which Report includes Monaco? |
SELECT date FROM table_name_38 WHERE fastest_lap = "gunnar nilsson" | CREATE TABLE table_name_38 (date VARCHAR, fastest_lap VARCHAR) | On what date did Gunnar Nilsson make the fastest lap? |
SELECT fastest_lap FROM table_name_71 WHERE race = "german grand prix" | CREATE TABLE table_name_71 (fastest_lap VARCHAR, race VARCHAR) | Who had the fastest lap for the German Grand Prix? |
SELECT format FROM table_name_15 WHERE catalog = "3645" AND date > 1981 AND label = "luaka bop" | CREATE TABLE table_name_15 (format VARCHAR, label VARCHAR, catalog VARCHAR, date VARCHAR) | What is the format for the album under the label, luaka bop, that had a catalog number of 3645 and dated after 1981? |
SELECT MIN(date) FROM table_name_2 WHERE catalog = "3645" AND format = "cd" AND label = "luaka bop" | CREATE TABLE table_name_2 (date INTEGER, label VARCHAR, catalog VARCHAR, format VARCHAR) | what is the earliest date for the album that had a catalog number of 3645, was formatted as a cd and was under the luaka bop label? |
SELECT label FROM table_name_42 WHERE catalog = "3645" AND date > 1987 | CREATE TABLE table_name_42 (label VARCHAR, catalog VARCHAR, date VARCHAR) | Under what label was the album with the catalog of 3645 and came out later than 1987? |
SELECT MAX(points) FROM table_name_59 WHERE home = "toronto" AND game__number > 63 | CREATE TABLE table_name_59 (points INTEGER, home VARCHAR, game__number VARCHAR) | What is the points where Toronto was the home team and the game number was larger than 63? |
SELECT COUNT(laps) FROM table_name_85 WHERE driver = "mike spence" AND grid > 12 | CREATE TABLE table_name_85 (laps VARCHAR, driver VARCHAR, grid VARCHAR) | How many laps did mike spence complete grids above 12? |
SELECT AVG(laps) FROM table_name_70 WHERE constructor = "brm" AND grid = 12 | CREATE TABLE table_name_70 (laps INTEGER, constructor VARCHAR, grid VARCHAR) | How many average laps did brm complete in grids larger than 12? |
SELECT driver FROM table_name_17 WHERE grid > 3 AND time_retired = "accident" | CREATE TABLE table_name_17 (driver VARCHAR, grid VARCHAR, time_retired VARCHAR) | Who drove in grids more than 3 and exited in an accident? |
SELECT grid FROM table_name_21 WHERE driver = "jim clark" | CREATE TABLE table_name_21 (grid VARCHAR, driver VARCHAR) | In what grid did jim clark drive in? |
SELECT opponent FROM table_name_3 WHERE date = "21 jul 2007" | CREATE TABLE table_name_3 (opponent VARCHAR, date VARCHAR) | Which opponent has a date 21 jul 2007? |
SELECT venue FROM table_name_91 WHERE home_team = "melbourne" | CREATE TABLE table_name_91 (venue VARCHAR, home_team VARCHAR) | What was the venue of the Melbourne team? |
SELECT race_name FROM table_name_45 WHERE constructor = "maserati" AND circuit = "aintree" AND winning_driver = "stirling moss" | CREATE TABLE table_name_45 (race_name VARCHAR, winning_driver VARCHAR, constructor VARCHAR, circuit VARCHAR) | What was the race that featured stirling moss winning with a maserati at aintree? |
SELECT report FROM table_name_98 WHERE circuit = "caen" | CREATE TABLE table_name_98 (report VARCHAR, circuit VARCHAR) | What does the Circuit of caen report? |
SELECT winning_driver FROM table_name_51 WHERE race_name = "iv grand prix de caen" | CREATE TABLE table_name_51 (winning_driver VARCHAR, race_name VARCHAR) | Who is the winning drive of iv grand prix de caen? |
SELECT ship_types_delivered FROM table_name_32 WHERE yard_name = "froemming brothers" | CREATE TABLE table_name_32 (ship_types_delivered VARCHAR, yard_name VARCHAR) | What types of ships were made at the Froemming Brothers ship yard? |
SELECT appearances FROM table_name_5 WHERE goals = 36 | CREATE TABLE table_name_5 (appearances VARCHAR, goals VARCHAR) | What is the amount of apperances of the person who had 36 goals? |
SELECT name FROM table_name_7 WHERE points = 151.66 | CREATE TABLE table_name_7 (name VARCHAR, points VARCHAR) | Tell me the name with points of 151.66 |
SELECT COUNT(rank) FROM table_name_98 WHERE places < 94 AND points < 169.8 AND nation = "japan" | CREATE TABLE table_name_98 (rank VARCHAR, nation VARCHAR, places VARCHAR, points VARCHAR) | Tell me the total number of rank for places less than 94 and points less than 169.8 for japan |
SELECT COUNT(sp) + fs FROM table_name_75 WHERE rank > 8 AND nation = "netherlands" AND points > 127.26 | CREATE TABLE table_name_75 (fs VARCHAR, sp VARCHAR, points VARCHAR, rank VARCHAR, nation VARCHAR) | Tell me the total number of SP+FS with rank more than 8 for the netherlands and points more than 127.26 |
SELECT COUNT(sp) + fs FROM table_name_28 WHERE places = 60 AND points > 151.66 | CREATE TABLE table_name_28 (fs VARCHAR, sp VARCHAR, places VARCHAR, points VARCHAR) | Name the total number of SP+FS for places of 60 and points more than 151.66 |
SELECT AVG(sp) + fs FROM table_name_2 WHERE places < 94 AND name = "renata baierova" | CREATE TABLE table_name_2 (fs VARCHAR, sp INTEGER, places VARCHAR, name VARCHAR) | Name the average SP+FS with places less tha 94 for renata baierova |
SELECT color FROM table_name_14 WHERE model__number = "pd-kb400w" | CREATE TABLE table_name_14 (color VARCHAR, model__number VARCHAR) | What color is model # pd-kb400w? |
SELECT MIN(average) FROM table_name_29 WHERE swimsuit > 6.89 AND evening_gown > 7.76 AND state = "illinois" AND interview > 8.57 | CREATE TABLE table_name_29 (average INTEGER, interview VARCHAR, state VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR) | What's the lowest average for a swimsuit over 6.89, evening gown over 7.76, and an interview over 8.57 in illinois? |
SELECT MAX(swimsuit) FROM table_name_13 WHERE average < 8.073 AND evening_gown < 8.31 AND interview > 8.23 AND state = "georgia" | CREATE TABLE table_name_13 (swimsuit INTEGER, state VARCHAR, interview VARCHAR, average VARCHAR, evening_gown VARCHAR) | What's the highest swimsuit for an average less than 8.073, evening gown less than 8.31, and an interview over 8.23 in georgia? |
SELECT MIN(swimsuit) FROM table_name_43 WHERE state = "utah" AND interview > 8.53 | CREATE TABLE table_name_43 (swimsuit INTEGER, state VARCHAR, interview VARCHAR) | What's utah's lowest swimsuit with an interview over 8.53? |
SELECT COUNT(week) FROM table_name_66 WHERE date = "october 9, 1938" | CREATE TABLE table_name_66 (week VARCHAR, date VARCHAR) | What week was October 9, 1938? |
SELECT home_team FROM table_name_42 WHERE away_team = "collingwood" | CREATE TABLE table_name_42 (home_team VARCHAR, away_team VARCHAR) | What home team played Collingwood as the away team? |
SELECT away_team AS score FROM table_name_77 WHERE venue = "junction oval" | CREATE TABLE table_name_77 (away_team VARCHAR, venue VARCHAR) | What was the score of the away team at Junction Oval? |
SELECT constructor FROM table_name_96 WHERE driver = "giancarlo fisichella" | CREATE TABLE table_name_96 (constructor VARCHAR, driver VARCHAR) | Who built giancarlo fisichella's car? |
SELECT MAX(laps) FROM table_name_66 WHERE driver = "mika salo" AND grid > 17 | CREATE TABLE table_name_66 (laps INTEGER, driver VARCHAR, grid VARCHAR) | What is the high lap total for mika salo with a grid greater than 17? |
SELECT location FROM table_name_4 WHERE country = "scotland" AND name = "muirfield" | CREATE TABLE table_name_4 (location VARCHAR, country VARCHAR, name VARCHAR) | Where was the location with Muirfield in Scotland? |
SELECT country FROM table_name_46 WHERE name = "pieroni" | CREATE TABLE table_name_46 (country VARCHAR, name VARCHAR) | Name the country for pieroni |
SELECT country FROM table_name_90 WHERE type = "6-month loan" AND moving_from = "lens" | CREATE TABLE table_name_90 (country VARCHAR, type VARCHAR, moving_from VARCHAR) | Name the country for 6-month loan and moving from of lens |
SELECT transfer_fee FROM table_name_88 WHERE transfer_window = "summer" AND name = "schollen" | CREATE TABLE table_name_88 (transfer_fee VARCHAR, transfer_window VARCHAR, name VARCHAR) | Name the transfer fee with a transfer window of summer for schollen |
SELECT name FROM table_name_9 WHERE moving_from = "1. fc nürnberg" | CREATE TABLE table_name_9 (name VARCHAR, moving_from VARCHAR) | Name the name that has moving of 1. fc nürnberg. |
SELECT country FROM table_name_4 WHERE name = "polák" | CREATE TABLE table_name_4 (country VARCHAR, name VARCHAR) | Name the country with polák |
SELECT home_team AS score FROM table_name_11 WHERE away_team = "north melbourne" | CREATE TABLE table_name_11 (home_team VARCHAR, away_team VARCHAR) | What was the home team score at North Melbourne's away game? |
SELECT home_team AS score FROM table_name_47 WHERE away_team = "richmond" | CREATE TABLE table_name_47 (home_team VARCHAR, away_team VARCHAR) | What was Collingwood's score at the home match against Richmond? |
SELECT MIN(laps) FROM table_name_14 WHERE grid > 24 | CREATE TABLE table_name_14 (laps INTEGER, grid INTEGER) | What is the lowest number of laps with a grid larger than 24? |
SELECT MAX(grid) FROM table_name_5 WHERE driver = "jo siffert" AND laps > 12 | CREATE TABLE table_name_5 (grid INTEGER, driver VARCHAR, laps VARCHAR) | For Jo Siffert, what was the highest grid with the number of laps above 12? |
SELECT AVG(laps) FROM table_name_23 WHERE driver = "gerhard berger" | CREATE TABLE table_name_23 (laps INTEGER, driver VARCHAR) | What is the average number of laps when Gerhard Berger is the driver? |
SELECT constructor FROM table_name_9 WHERE laps > 50 AND grid = 7 | CREATE TABLE table_name_9 (constructor VARCHAR, laps VARCHAR, grid VARCHAR) | What is the name of the constructor who has more than 50 laps and a grid of 7? |
SELECT title FROM table_name_50 WHERE production_code = "ad1b04" | CREATE TABLE table_name_50 (title VARCHAR, production_code VARCHAR) | What is the title of the episode with a production code of ad1b04? |
SELECT time FROM table_name_22 WHERE event = "tfc 21" | CREATE TABLE table_name_22 (time VARCHAR, event VARCHAR) | Name the time for event of tfc 21 |
SELECT sport FROM table_name_7 WHERE gold > 0 AND silver = 2 | CREATE TABLE table_name_7 (sport VARCHAR, gold VARCHAR, silver VARCHAR) | What sport has a Gold larger than 0, and a Silver of 2? |
SELECT MIN(bronze) FROM table_name_29 WHERE "total" > 18 AND sport = "total" AND silver < 143 | CREATE TABLE table_name_29 (bronze INTEGER, silver VARCHAR, sport VARCHAR) | What is the lowest Bronze that has a Total larger than 18 and a Silver smaller than 143? |
SELECT SUM(silver) FROM table_name_13 WHERE bronze > 19 AND total < 125 | CREATE TABLE table_name_13 (silver INTEGER, bronze VARCHAR, total VARCHAR) | How many total Silver has a Bronze larger than 19 and a Total smaller than 125? |
SELECT MAX(total) FROM table_name_7 WHERE bronze > 10 AND silver > 28 AND gold = 58 | CREATE TABLE table_name_7 (total INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR) | What is the highest total Bronze larger than 10, Silver larger than 28, and a Gold of 58? |
SELECT MIN(total) FROM table_name_97 WHERE gold > 0 AND silver < 4 AND sport = "football" AND bronze > 1 | CREATE TABLE table_name_97 (total INTEGER, bronze VARCHAR, sport VARCHAR, gold VARCHAR, silver VARCHAR) | What is the lowest Total that has a Gold larger than 0, Silver smaller than 4, Sport of football, and a Bronze larger than 1? |
SELECT time_retired FROM table_name_77 WHERE grid = 9 | CREATE TABLE table_name_77 (time_retired VARCHAR, grid VARCHAR) | what is the time/retired when the grid is 9? |
SELECT COUNT(laps) FROM table_name_5 WHERE driver = "ron flockhart" | CREATE TABLE table_name_5 (laps VARCHAR, driver VARCHAR) | what is the number of laps when the driver is ron flockhart? |
SELECT engine FROM table_name_72 WHERE power = "114hp (85kw)" | CREATE TABLE table_name_72 (engine VARCHAR, power VARCHAR) | What Engine has a Power of 114hp (85kw)? |
SELECT torque FROM table_name_68 WHERE engine = "amc power tech i6" | CREATE TABLE table_name_68 (torque VARCHAR, engine VARCHAR) | What Torque has an AMC Power Tech I6 Engine? |
SELECT displacement FROM table_name_57 WHERE power = "185hp (138kw)" | CREATE TABLE table_name_57 (displacement VARCHAR, power VARCHAR) | What Displacement has 185hp (138kw) Power o |
SELECT venue FROM table_name_47 WHERE home_team = "collingwood" | CREATE TABLE table_name_47 (venue VARCHAR, home_team VARCHAR) | What venue features collingwood as the home side? |
SELECT attendance FROM table_name_17 WHERE game_site = "veterans stadium" | CREATE TABLE table_name_17 (attendance VARCHAR, game_site VARCHAR) | What's the attendance numbers for veterans stadium? |
SELECT school FROM table_name_79 WHERE player = "michael dunigan" | CREATE TABLE table_name_79 (school VARCHAR, player VARCHAR) | What is the name of the school that has a player named Michael Dunigan? |
SELECT religion FROM table_name_73 WHERE assumed_office < 2005 AND former_experience = "commissioner of health" | CREATE TABLE table_name_73 (religion VARCHAR, assumed_office VARCHAR, former_experience VARCHAR) | Name the religion for Former Experience of commissioner of health and assumed office before 2005 |
SELECT MIN(assumed_office) FROM table_name_60 WHERE name = "madeleine bordallo" | CREATE TABLE table_name_60 (assumed_office INTEGER, name VARCHAR) | Tell me the loewst assume office for madeleine bordallo |
SELECT team FROM table_name_60 WHERE game = 82 | CREATE TABLE table_name_60 (team VARCHAR, game VARCHAR) | Which team had a game of 82? |
SELECT crowd FROM table_name_77 WHERE venue = "junction oval" | CREATE TABLE table_name_77 (crowd VARCHAR, venue VARCHAR) | How many people attended the game at Junction Oval? |
SELECT score FROM table_name_34 WHERE decision = "gerber" AND home = "boston" | CREATE TABLE table_name_34 (score VARCHAR, decision VARCHAR, home VARCHAR) | What was the score for Boston's Home game that had Gerber as the decision? |
SELECT record FROM table_name_27 WHERE date = "march 25" | CREATE TABLE table_name_27 (record VARCHAR, date VARCHAR) | What was the record for the game on March 25? |
SELECT decision FROM table_name_51 WHERE home = "anaheim" | CREATE TABLE table_name_51 (decision VARCHAR, home VARCHAR) | Who was the Decision at Anaheim's home game? |
SELECT driver FROM table_name_79 WHERE chassis = "tg183b tg184" | CREATE TABLE table_name_79 (driver VARCHAR, chassis VARCHAR) | Who is the driver of the chassis that is tg183b tg184? |
SELECT engine FROM table_name_20 WHERE tyres = "p" AND driver = "pierluigi martini" | CREATE TABLE table_name_20 (engine VARCHAR, tyres VARCHAR, driver VARCHAR) | What was the engine belonging to Pierluigi Martini with a Tyre of P? |
SELECT engine FROM table_name_85 WHERE rounds = "10-13" | CREATE TABLE table_name_85 (engine VARCHAR, rounds VARCHAR) | What was the featured in Engine through rounds 10-13? |
SELECT entrant FROM table_name_22 WHERE driver = "nigel mansell" | CREATE TABLE table_name_22 (entrant VARCHAR, driver VARCHAR) | Nigel Mansell was the driver in what Entrant? |
SELECT date FROM table_name_28 WHERE name__location_ = "belyanitsky, ivanovo, and balino" | CREATE TABLE table_name_28 (date VARCHAR, name__location_ VARCHAR) | What Date does the Name (location) Belyanitsky, Ivanovo, and Balino have? |
SELECT date FROM table_name_52 WHERE home_team = "north melbourne" | CREATE TABLE table_name_52 (date VARCHAR, home_team VARCHAR) | What day did North Melbourne play as the home team? |
SELECT away_team FROM table_name_20 WHERE venue = "arden street oval" | CREATE TABLE table_name_20 (away_team VARCHAR, venue VARCHAR) | Who was the away team at Arden Street Oval? |
SELECT ordinary_income_rate FROM table_name_42 WHERE short_term_capital_gain_rate = "28%" | CREATE TABLE table_name_42 (ordinary_income_rate VARCHAR, short_term_capital_gain_rate VARCHAR) | What is the ordinary income rate when short-term capital gain rate is 28%? |
SELECT short_term_capital_gain_rate FROM table_name_29 WHERE long_term_gain_on_collectibles = "15%" | CREATE TABLE table_name_29 (short_term_capital_gain_rate VARCHAR, long_term_gain_on_collectibles VARCHAR) | What is short-term capital gain rate with long-term gain on collectibles at 15%? |
SELECT long_term_gain_on_collectibles FROM table_name_48 WHERE ordinary_income_rate = "15%" | CREATE TABLE table_name_48 (long_term_gain_on_collectibles VARCHAR, ordinary_income_rate VARCHAR) | What long-term gain for collectibles coincides with ordinary income rate 15%? |
SELECT SUM(decile) FROM table_name_99 WHERE authority = "state" AND roll = 120 | CREATE TABLE table_name_99 (decile INTEGER, authority VARCHAR, roll VARCHAR) | What is the Decile with a State Authority and a roll of 120? |
SELECT MAX(roll) FROM table_name_98 WHERE decile < 8 AND authority = "state" AND name = "orere school" | CREATE TABLE table_name_98 (roll INTEGER, name VARCHAR, decile VARCHAR, authority VARCHAR) | What is the highest Roll of Orere School with a Decile less than 8 with a State Authority? |
SELECT home_team AS score FROM table_name_63 WHERE away_team = "melbourne" | CREATE TABLE table_name_63 (home_team VARCHAR, away_team VARCHAR) | What home team score has a Away team of melbourne? |
SELECT away_team FROM table_name_16 WHERE home_team = "richmond" | CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR) | What away team is the home team richmond? |
SELECT MAX(grid) FROM table_name_4 WHERE driver = "giancarlo fisichella" AND laps < 52 | CREATE TABLE table_name_4 (grid INTEGER, driver VARCHAR, laps VARCHAR) | When Giancarlo Fisichella was the Driver and there were less than 52 Laps, what was the highest Grid? |
SELECT constructor FROM table_name_11 WHERE grid < 17 AND laps < 52 AND driver = "olivier panis" | CREATE TABLE table_name_11 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR) | Which Constructor has a Grid less than 17, Laps under 52, and Olivier Panis as the Driver? |
SELECT pick__number FROM table_name_91 WHERE college = "idaho state" | CREATE TABLE table_name_91 (pick__number VARCHAR, college VARCHAR) | Which 2006 cfl draft pick played college ball at Idaho state? |
SELECT position FROM table_name_22 WHERE college = "toronto" | CREATE TABLE table_name_22 (position VARCHAR, college VARCHAR) | What position did the CFL player drafted out of college of toronto in 2007 play? |
SELECT date_of_death FROM table_name_97 WHERE date_of_birth = "28 may 1371" | CREATE TABLE table_name_97 (date_of_death VARCHAR, date_of_birth VARCHAR) | What was the Date of Death of the person whose Date of Birth was 28 May 1371? |
SELECT reign FROM table_name_25 WHERE date_of_birth = "22 march 1459" | CREATE TABLE table_name_25 (reign VARCHAR, date_of_birth VARCHAR) | What was the Reign of the person whose Date of Birth was 22 March 1459? |
SELECT AVG(year) FROM table_name_23 WHERE record = "33-33" | CREATE TABLE table_name_23 (year INTEGER, record VARCHAR) | Tell me the average year with a record of 33-33 |
SELECT COUNT(year) FROM table_name_18 WHERE record = "39-31" | CREATE TABLE table_name_18 (year VARCHAR, record VARCHAR) | Name the total number of years for a 39-31 record |
SELECT MIN(year) FROM table_name_98 WHERE manager = "gene hassell" AND finish = "6th" | CREATE TABLE table_name_98 (year INTEGER, manager VARCHAR, finish VARCHAR) | Name the least year for gene hassell manager and 6th finish |
SELECT finish FROM table_name_64 WHERE record = "39-31" | CREATE TABLE table_name_64 (finish VARCHAR, record VARCHAR) | Name the finish for a 39-31 record |
SELECT MIN(goal_difference) FROM table_name_59 WHERE club = "ud alzira" AND played > 38 | CREATE TABLE table_name_59 (goal_difference INTEGER, club VARCHAR, played VARCHAR) | What is the lowest goal difference for the club ud alzira, with a played larger than 38? |
SELECT SUM(goal_difference) FROM table_name_27 WHERE goals_against < 33 AND draws > 13 | CREATE TABLE table_name_27 (goal_difference INTEGER, goals_against VARCHAR, draws VARCHAR) | What is the goal difference sum that has goals against smaller than 33, draws larger than 13? |
Subsets and Splits