answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT COUNT(points) FROM table_name_67 WHERE team = "discovery channel" | CREATE TABLE table_name_67 (points VARCHAR, team VARCHAR) | Cumulative point total for all teams playing on the Discovery Channel? |
SELECT name FROM table_name_44 WHERE nationality = "belgium" | CREATE TABLE table_name_44 (name VARCHAR, nationality VARCHAR) | Which player is from Belgium? |
SELECT visitor FROM table_name_42 WHERE home = "kings" | CREATE TABLE table_name_42 (visitor VARCHAR, home VARCHAR) | Who was the visiting team that played against the Kings? |
SELECT player FROM table_name_25 WHERE round > 5 AND position = "c" | CREATE TABLE table_name_25 (player VARCHAR, round VARCHAR, position VARCHAR) | Tell me the player for round more than 5 and position of c |
SELECT college_junior_club_team__league_ FROM table_name_70 WHERE player = "carl hagelin" | CREATE TABLE table_name_70 (college_junior_club_team__league_ VARCHAR, player VARCHAR) | Tell me the college for carl hagelin |
SELECT AVG(year) FROM table_name_88 WHERE points = 0 AND chassis = "toleman tg181" | CREATE TABLE table_name_88 (year INTEGER, points VARCHAR, chassis VARCHAR) | Which year has a total of 0 points and a chassis of Toleman tg181? |
SELECT MAX(year) FROM table_name_20 WHERE engine = "renault ef15 1.5 v6 t" AND points > 5 | CREATE TABLE table_name_20 (year INTEGER, engine VARCHAR, points VARCHAR) | What is the latest year that has more than 5 points and a renault ef15 1.5 v6 t engine? |
SELECT COUNT(year) FROM table_name_36 WHERE chassis = "toleman tg183" | CREATE TABLE table_name_36 (year VARCHAR, chassis VARCHAR) | Which year had a toleman tg183 chassis? |
SELECT time FROM table_name_13 WHERE rider = "tony myres" | CREATE TABLE table_name_13 (time VARCHAR, rider VARCHAR) | What is the time for tony myres? |
SELECT speed FROM table_name_41 WHERE rider = "andy reynolds" | CREATE TABLE table_name_41 (speed VARCHAR, rider VARCHAR) | Name the speed for andy reynolds |
SELECT COUNT(rank) FROM table_name_54 WHERE team = "348cc petty manx" | CREATE TABLE table_name_54 (rank VARCHAR, team VARCHAR) | Name the total number of rank for 348cc petty manx |
SELECT speed FROM table_name_13 WHERE time = "1:36.46.93" | CREATE TABLE table_name_13 (speed VARCHAR, time VARCHAR) | Name the speed for 1:36.46.93 |
SELECT away_team AS score FROM table_name_54 WHERE away_team = "melbourne" | CREATE TABLE table_name_54 (away_team VARCHAR) | What is the away team score of Melbourne? |
SELECT away_team AS score FROM table_name_86 WHERE away_team = "south melbourne" | CREATE TABLE table_name_86 (away_team VARCHAR) | What is the away team score for South Melbourne? |
SELECT prime_mover FROM table_name_87 WHERE model = "fm cfa-16-4" | CREATE TABLE table_name_87 (prime_mover VARCHAR, model VARCHAR) | What is Prime Mover of Model FM CFA-16-4? |
SELECT MAX(purse__) AS $__ FROM table_name_80 WHERE location = "illinois" | CREATE TABLE table_name_80 (purse__ INTEGER, location VARCHAR) | what was the purse ($) in illinois? |
SELECT winner FROM table_name_21 WHERE score = "199 (-14)" AND date = "oct 31" | CREATE TABLE table_name_21 (winner VARCHAR, score VARCHAR, date VARCHAR) | who won with a score of 199 (-14) on oct 31? |
SELECT SUM(year) FROM table_name_6 WHERE city = "santiago de compostela" | CREATE TABLE table_name_6 (year INTEGER, city VARCHAR) | How many years did he play in santiago de compostela? |
SELECT SUM(finale) FROM table_name_64 WHERE chinese_title = "女人唔易做" | CREATE TABLE table_name_64 (finale INTEGER, chinese_title VARCHAR) | What is the Total Finale of 女人唔易做? |
SELECT MIN(premiere) FROM table_name_25 WHERE peak > 35 AND rank = 10 AND finale > 33 | CREATE TABLE table_name_25 (premiere INTEGER, finale VARCHAR, peak VARCHAR, rank VARCHAR) | What is the lowest Premiere peaking at more than 35 with a Rank of 10 and Finale greater than 33? |
SELECT chinese_title FROM table_name_60 WHERE hk_viewers = "2.07 million" AND premiere = 32 | CREATE TABLE table_name_60 (chinese_title VARCHAR, hk_viewers VARCHAR, premiere VARCHAR) | What is the Chinese Title Premiering 32 with 2.07 million HK viewers? |
SELECT AVG(average) FROM table_name_70 WHERE english_title = "men in pain" AND finale < 33 | CREATE TABLE table_name_70 (average INTEGER, english_title VARCHAR, finale VARCHAR) | What is the Average of Men in Pain with a Finale of less than 33? |
SELECT chinese_title FROM table_name_3 WHERE average = 32 AND peak < 38 AND rank = 7 | CREATE TABLE table_name_3 (chinese_title VARCHAR, rank VARCHAR, average VARCHAR, peak VARCHAR) | What Chinese Title Ranking #7 has an Average of 32 and Peak less than 38? |
SELECT AVG(crowd) FROM table_name_9 WHERE venue = "corio oval" | CREATE TABLE table_name_9 (crowd INTEGER, venue VARCHAR) | What is the average crowd size for corio oval? |
SELECT AVG(crowd) FROM table_name_32 WHERE venue = "brunswick street oval" | CREATE TABLE table_name_32 (crowd INTEGER, venue VARCHAR) | What is the average crowd size for Brunswick street oval? |
SELECT date FROM table_name_15 WHERE year > 1992 AND location = "murcia" AND score = "0-3" | CREATE TABLE table_name_15 (date VARCHAR, score VARCHAR, year VARCHAR, location VARCHAR) | What day did the team play in murcia with a score of 0-3 after 1992? |
SELECT location FROM table_name_96 WHERE competition = "europe/africa zone, group i, round robin" AND result = "win" AND year < 1998 | CREATE TABLE table_name_96 (location VARCHAR, year VARCHAR, competition VARCHAR, result VARCHAR) | What location did the team win before 1998 in the europe/africa zone, group i, round robin? |
SELECT date FROM table_name_55 WHERE score = "1-2" AND year = 1994 | CREATE TABLE table_name_55 (date VARCHAR, score VARCHAR, year VARCHAR) | What day did they record a score of 1-2 in 1994? |
SELECT AVG(matches) FROM table_name_91 WHERE country = "austria germany" AND rank < 5 | CREATE TABLE table_name_91 (matches INTEGER, country VARCHAR, rank VARCHAR) | When the country is austria germany and the rank is kept under 5, what's the average number of matches played? |
SELECT country FROM table_name_85 WHERE name = "pele" | CREATE TABLE table_name_85 (country VARCHAR, name VARCHAR) | Which country does the player pele belong to? |
SELECT MIN(game) FROM table_name_94 WHERE attendance = 42 OFFSET 707 | CREATE TABLE table_name_94 (game INTEGER, attendance VARCHAR) | What is the earliest game that had 42,707 attending? |
SELECT SUM(figures) FROM table_name_13 WHERE total < 117.78 | CREATE TABLE table_name_13 (figures INTEGER, total INTEGER) | What is the sum of the figure skating scores whose total is less than 117.78? |
SELECT MIN(total) FROM table_name_81 WHERE nation = "west germany" AND rank = 20 AND figures < 74.85 | CREATE TABLE table_name_81 (total INTEGER, figures VARCHAR, nation VARCHAR, rank VARCHAR) | What is the lowest total score among skaters from West Germany with a rank of 20 and a figure skating score less than 74.85? |
SELECT placings FROM table_name_72 WHERE total > 131.26 AND name = "jacqueline du bief" | CREATE TABLE table_name_72 (placings VARCHAR, total VARCHAR, name VARCHAR) | How many placings did Jacqueline du Bief earn where her total score is greater than 131.26? |
SELECT placings FROM table_name_34 WHERE free < 524.3 AND total < 1170.1 AND name = "per cock-clausen" | CREATE TABLE table_name_34 (placings VARCHAR, name VARCHAR, free VARCHAR, total VARCHAR) | Can you tell me the Placings that hasthe Free smaller than 524.3, and the Total smaller than 1170.1, and the Name of per cock-clausen? |
SELECT AVG(figures) FROM table_name_63 WHERE placings = 34 AND total > 1247.51 | CREATE TABLE table_name_63 (figures INTEGER, placings VARCHAR, total VARCHAR) | Can you tell me the average Figures that has the Placings of 34, and the Total larger than 1247.51? |
SELECT result FROM table_name_99 WHERE opponent = "columbus destroyers" | CREATE TABLE table_name_99 (result VARCHAR, opponent VARCHAR) | What is the result where the opponent is Columbus Destroyers? |
SELECT date FROM table_name_2 WHERE home_away_game = "away" AND week = 8 | CREATE TABLE table_name_2 (date VARCHAR, home_away_game VARCHAR, week VARCHAR) | What is the date of the away game in week 8? |
SELECT grand_prix FROM table_name_24 WHERE fastest_lap = "gerhard berger" AND pole_position = "jacques villeneuve" | CREATE TABLE table_name_24 (grand_prix VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR) | Which grand prix had gerhard berger in his fastest lap and a jacques villeneuve pole position? |
SELECT 2003 AS _result FROM table_name_97 WHERE council = "falkirk" | CREATE TABLE table_name_97 (council VARCHAR) | What's the 2003 result for the falkirk council? |
SELECT date_of_vacancy FROM table_name_70 WHERE manner_of_departure = "fired" AND replaced_by = "albert cartier" | CREATE TABLE table_name_70 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, replaced_by VARCHAR) | On which date was the manager fired and replaced by Albert Cartier? |
SELECT manner_of_departure FROM table_name_70 WHERE team = "anderlecht" | CREATE TABLE table_name_70 (manner_of_departure VARCHAR, team VARCHAR) | What was the manner of departure for the team Anderlecht? |
SELECT manner_of_departure FROM table_name_52 WHERE date_of_appointment = "27 december 2007" | CREATE TABLE table_name_52 (manner_of_departure VARCHAR, date_of_appointment VARCHAR) | What was the manner of depature when the date of appointment was 27 December 2007? |
SELECT replaced_by FROM table_name_46 WHERE team = "brussels" AND date_of_vacancy = "22 december 2007" | CREATE TABLE table_name_46 (replaced_by VARCHAR, team VARCHAR, date_of_vacancy VARCHAR) | Who was the replacement for the Brussels team with a date of vacancy of 22 December 2007? |
SELECT date_of_vacancy FROM table_name_9 WHERE manner_of_departure = "fired" AND replaced_by = "albert cartier" | CREATE TABLE table_name_9 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, replaced_by VARCHAR) | What was the date of vacancy where the replacement was Albert Cartier and the manager was fired? |
SELECT tallangatta_dfl FROM table_name_49 WHERE against > 1013 AND losses > 2 | CREATE TABLE table_name_49 (tallangatta_dfl VARCHAR, against VARCHAR, losses VARCHAR) | What is the Tallangatta DFL losses greater than 2 and an against greater than 1013 |
SELECT AVG(byes) FROM table_name_5 WHERE against > 1479 AND wins > 5 AND draws < 0 | CREATE TABLE table_name_5 (byes INTEGER, draws VARCHAR, against VARCHAR, wins VARCHAR) | What are the average byes that are greater than 1479, wins greater than 5 and 0 draws? |
SELECT AVG(year) FROM table_name_84 WHERE rank > 3 AND floors = 28 | CREATE TABLE table_name_84 (year INTEGER, rank VARCHAR, floors VARCHAR) | Tell me the average year for rank more than 3 and 28 floors |
SELECT name FROM table_name_75 WHERE rank < 6 AND year > 1974 | CREATE TABLE table_name_75 (name VARCHAR, rank VARCHAR, year VARCHAR) | I want the name for rank less than 6 and year more than 1974 |
SELECT AVG(rank) FROM table_name_80 WHERE total > 4 AND nation = "great britain" | CREATE TABLE table_name_80 (rank INTEGER, total VARCHAR, nation VARCHAR) | What is the average rank of Great Britain when their total is over 4? |
SELECT COUNT(silver) FROM table_name_63 WHERE nation = "france" AND rank > 14 | CREATE TABLE table_name_63 (silver VARCHAR, nation VARCHAR, rank VARCHAR) | What is the total number of Silvers held by France when their rank was over 14? |
SELECT home_team FROM table_name_76 WHERE venue = "princes park" | CREATE TABLE table_name_76 (home_team VARCHAR, venue VARCHAR) | Who was the home team at the game held at Princes Park? |
SELECT home_team FROM table_name_39 WHERE away_team = "hawthorn" | CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR) | Who was the home team when Hawthorn was the away team? |
SELECT record FROM table_name_21 WHERE loss = "hernandez (3–5)" | CREATE TABLE table_name_21 (record VARCHAR, loss VARCHAR) | What was the Rockies record at their game that had a loss of Hernandez (3–5)? |
SELECT engine FROM table_name_30 WHERE tyres = "g" AND driver = "elio de angelis" | CREATE TABLE table_name_30 (engine VARCHAR, tyres VARCHAR, driver VARCHAR) | What engine has g tyres and is driven by elio de angelis? |
SELECT rounds FROM table_name_8 WHERE driver = "elio de angelis" | CREATE TABLE table_name_8 (rounds VARCHAR, driver VARCHAR) | What rounds does elio de angelis drive? |
SELECT constructor FROM table_name_93 WHERE chassis = "fw06 fw07" AND driver = "alan jones" | CREATE TABLE table_name_93 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR) | Who is the constructor for driver alan jones using a chassis of fw06 fw07? |
SELECT engine FROM table_name_94 WHERE driver = "james hunt" | CREATE TABLE table_name_94 (engine VARCHAR, driver VARCHAR) | What engine does driver james hunt have? |
SELECT engine FROM table_name_1 WHERE rounds = "5-6" | CREATE TABLE table_name_1 (engine VARCHAR, rounds VARCHAR) | What's the engine used for rounds 5-6? |
SELECT home_team AS score FROM table_name_41 WHERE venue = "princes park" | CREATE TABLE table_name_41 (home_team VARCHAR, venue VARCHAR) | Who was the home team at Princes Park? |
SELECT city___state FROM table_name_33 WHERE team = "holden racing team" AND winner = "mark skaife todd kelly" | CREATE TABLE table_name_33 (city___state VARCHAR, team VARCHAR, winner VARCHAR) | Tell me the city/state for the holden racing team with winner of mark skaife todd kelly |
SELECT engine_configuration FROM table_name_80 WHERE engine_name = "1.2 mpi" | CREATE TABLE table_name_80 (engine_configuration VARCHAR, engine_name VARCHAR) | What is the engine configuration of the 1.2 mpi engine? |
SELECT max_torque_at_rpm FROM table_name_11 WHERE engine_name = "1.2 mpi" | CREATE TABLE table_name_11 (max_torque_at_rpm VARCHAR, engine_name VARCHAR) | What is the max torque of the 1.2 mpi engine? |
SELECT long FROM table_name_93 WHERE player = "charles frederick" | CREATE TABLE table_name_93 (long VARCHAR, player VARCHAR) | Tell me the long for charles frederick |
SELECT avg FROM table_name_65 WHERE yards = "1" | CREATE TABLE table_name_65 (avg VARCHAR, yards VARCHAR) | Tell me the average for 1 yards |
SELECT time_retired FROM table_name_86 WHERE laps = 75 AND driver = "pedro de la rosa" | CREATE TABLE table_name_86 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR) | Which time/retired had 75 laps and Pedro de la Rosa as a driver? |
SELECT COUNT(no_in_season) FROM table_name_73 WHERE directed_by = "robert berlinger" AND no_in_series = 30 | CREATE TABLE table_name_73 (no_in_season VARCHAR, directed_by VARCHAR, no_in_series VARCHAR) | What is the total number in the season for the #30 Robert Berlinger series? |
SELECT original_air_date FROM table_name_84 WHERE title = "julie gets validated" | CREATE TABLE table_name_84 (original_air_date VARCHAR, title VARCHAR) | When did Julie gets Validated originally air? |
SELECT written_by FROM table_name_36 WHERE no_in_series = 24 | CREATE TABLE table_name_36 (written_by VARCHAR, no_in_series VARCHAR) | Who was the number 24 series written by? |
SELECT original_air_date FROM table_name_87 WHERE written_by = "boyd hale" AND title = "julie gets validated" | CREATE TABLE table_name_87 (original_air_date VARCHAR, written_by VARCHAR, title VARCHAR) | When did Boyd Hale's Julie gets Validated originally air? |
SELECT queens FROM table_name_57 WHERE brooklyn = "201,866" | CREATE TABLE table_name_57 (queens VARCHAR, brooklyn VARCHAR) | What was the Queens number when Brooklyn was 201,866? |
SELECT manhattan FROM table_name_21 WHERE richmond_[staten_is] = "78%" | CREATE TABLE table_name_21 (manhattan VARCHAR, richmond_ VARCHAR, staten_is VARCHAR) | Which Manhattan number appeared when Richmond (Staten Island) was 78%? |
SELECT home_team AS score FROM table_name_61 WHERE away_team = "fitzroy" | CREATE TABLE table_name_61 (home_team VARCHAR, away_team VARCHAR) | What did the home team score against Fitzroy? |
SELECT opponent FROM table_name_24 WHERE week = 2 | CREATE TABLE table_name_24 (opponent VARCHAR, week VARCHAR) | Who is the listed opponent in Week 2? |
SELECT date FROM table_name_11 WHERE attendance = "45,024" | CREATE TABLE table_name_11 (date VARCHAR, attendance VARCHAR) | What date has attendance listed as 45,024? |
SELECT SUM(pick__number) FROM table_name_82 WHERE rd__number < 11 AND player = "mattias ohlund" AND pl_gp > 52 | CREATE TABLE table_name_82 (pick__number INTEGER, pl_gp VARCHAR, rd__number VARCHAR, player VARCHAR) | What numbered pick was mattias ohlund, with over 52 PL GP, and also a round under 11? |
SELECT COUNT(reg_gp) FROM table_name_35 WHERE player = "mattias ohlund" | CREATE TABLE table_name_35 (reg_gp VARCHAR, player VARCHAR) | How many reg GP for mattias ohlund? |
SELECT AVG(attendance) FROM table_name_57 WHERE opponent = "expos" | CREATE TABLE table_name_57 (attendance INTEGER, opponent VARCHAR) | What is the average attendance against the expos? |
SELECT record FROM table_name_11 WHERE date = "april 12" | CREATE TABLE table_name_11 (record VARCHAR, date VARCHAR) | What is the team's record on april 12? |
SELECT opponent FROM table_name_2 WHERE date = "april 19" | CREATE TABLE table_name_2 (opponent VARCHAR, date VARCHAR) | Who did the team play on april 19? |
SELECT aspect FROM table_name_23 WHERE channel = 26.5 | CREATE TABLE table_name_23 (aspect VARCHAR, channel VARCHAR) | What is the Aspect of Channel 26.5? |
SELECT programming FROM table_name_98 WHERE channel = 26.5 | CREATE TABLE table_name_98 (programming VARCHAR, channel VARCHAR) | Which Programming is on Channel 26.5? |
SELECT programming FROM table_name_89 WHERE channel < 26.5 AND video = "480i" AND psip_short_name = "jtv" | CREATE TABLE table_name_89 (programming VARCHAR, psip_short_name VARCHAR, channel VARCHAR, video VARCHAR) | Which Programming is on a channel less than 26.5, has a Video of 480i and a PSIP Short Name of jtv? |
SELECT laps FROM table_name_56 WHERE driver = "ronnie peterson" | CREATE TABLE table_name_56 (laps VARCHAR, driver VARCHAR) | What number of laps were done by driver Ronnie Peterson? |
SELECT driver FROM table_name_2 WHERE time_retired = "fuel system" | CREATE TABLE table_name_2 (driver VARCHAR, time_retired VARCHAR) | Which driver had a time/retired of fuel system? |
SELECT SUM(grid) FROM table_name_27 WHERE time_retired = "engine" AND laps < 45 AND driver = "giancarlo baghetti" | CREATE TABLE table_name_27 (grid INTEGER, driver VARCHAR, time_retired VARCHAR, laps VARCHAR) | What is the sum of grids with an engine in Time/Retired with less than 45 laps for Giancarlo Baghetti? |
SELECT grid FROM table_name_97 WHERE laps = 35 | CREATE TABLE table_name_97 (grid VARCHAR, laps VARCHAR) | I want the Grid for Laps of 35 |
SELECT batting_style FROM table_name_95 WHERE player = "jonty rhodes" | CREATE TABLE table_name_95 (batting_style VARCHAR, player VARCHAR) | What is Jonty Rhodes's batting style? |
SELECT bowling_style FROM table_name_52 WHERE first_class_team = "griqualand west" | CREATE TABLE table_name_52 (bowling_style VARCHAR, first_class_team VARCHAR) | What bowling style does First Class Team, Griqualand West have? |
SELECT batting_style FROM table_name_85 WHERE player = "makhaya ntini" | CREATE TABLE table_name_85 (batting_style VARCHAR, player VARCHAR) | What is the batting style of Makhaya Ntini? |
SELECT region FROM table_name_1 WHERE host = "university of southern california" | CREATE TABLE table_name_1 (region VARCHAR, host VARCHAR) | What region is the host university of southern california located? |
SELECT state FROM table_name_81 WHERE city = "knoxville" | CREATE TABLE table_name_81 (state VARCHAR, city VARCHAR) | In which state is the city of knoxville? |
SELECT city FROM table_name_58 WHERE state = "texas" AND venue = "frank erwin center" | CREATE TABLE table_name_58 (city VARCHAR, state VARCHAR, venue VARCHAR) | Which city in Texas hosts the Frank Erwin center? |
SELECT region FROM table_name_36 WHERE city = "austin" | CREATE TABLE table_name_36 (region VARCHAR, city VARCHAR) | In what region is the city of Austin? |
SELECT chuck_devore FROM table_name_97 WHERE other = "4%" | CREATE TABLE table_name_97 (chuck_devore VARCHAR, other VARCHAR) | What is the polling result for Chuck DeVore which has a corresponding polling result of 4% for Other? |
SELECT COUNT(total) FROM table_name_82 WHERE silver < 1 AND rank > 3 | CREATE TABLE table_name_82 (total VARCHAR, silver VARCHAR, rank VARCHAR) | What is the total when silver is less than 1 and rank larger than 3? |
SELECT SUM(bronze) FROM table_name_72 WHERE nation = "canada" AND silver < 0 | CREATE TABLE table_name_72 (bronze INTEGER, nation VARCHAR, silver VARCHAR) | What is the number of bronze for Canada and silver is less than 0? |
SELECT MAX(gold) FROM table_name_48 WHERE silver < 1 AND nation = "canada" AND bronze < 0 | CREATE TABLE table_name_48 (gold INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR) | What is the largest gold when silver is less than 1 for Canada and bronze is less than 0? |
SELECT AVG(silver) FROM table_name_64 WHERE nation = "germany" AND rank < 2 | CREATE TABLE table_name_64 (silver INTEGER, nation VARCHAR, rank VARCHAR) | What is the silver for Germany and less than 2? |
SELECT score FROM table_name_4 WHERE date = "december 3" | CREATE TABLE table_name_4 (score VARCHAR, date VARCHAR) | Tell me the score for december 3 |
Subsets and Splits