question
stringlengths 12
244
| context
stringlengths 27
489
| answer
stringlengths 18
557
|
---|---|---|
On what date was the record 21-25? | CREATE TABLE table_name_79 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_79 WHERE record = "21-25" |
I want the total number of Laps for time/retired for + 4 Laps and grid more than 20 | CREATE TABLE table_name_32 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR) | SELECT COUNT(laps) FROM table_name_32 WHERE time_retired = "+ 4 laps" AND grid > 20 |
I want the average Laps for grid of 9 | CREATE TABLE table_name_74 (laps INTEGER, grid VARCHAR) | SELECT AVG(laps) FROM table_name_74 WHERE grid = 9 |
What is the total works number of the locomotive with 0-6-4t type after 1875? | CREATE TABLE table_name_78 (works_number INTEGER, type VARCHAR, date VARCHAR) | SELECT SUM(works_number) FROM table_name_78 WHERE type = "0-6-4t" AND date > 1875 |
What is the total work number of Gowrie after 1875? | CREATE TABLE table_name_45 (works_number INTEGER, date VARCHAR, name VARCHAR) | SELECT SUM(works_number) FROM table_name_45 WHERE date > 1875 AND name = "gowrie" |
What is the average work number of Snowdon Ranger with the builder Vulcan Foundry? | CREATE TABLE table_name_57 (works_number INTEGER, builder VARCHAR, name VARCHAR) | SELECT AVG(works_number) FROM table_name_57 WHERE builder = "vulcan foundry" AND name = "snowdon ranger" |
What is the total work number of Gowrie with a 0-6-4t type after 1908? | CREATE TABLE table_name_51 (works_number VARCHAR, date VARCHAR, type VARCHAR, name VARCHAR) | SELECT COUNT(works_number) FROM table_name_51 WHERE type = "0-6-4t" AND name = "gowrie" AND date > 1908 |
What day was the bell atlantic classic? | CREATE TABLE table_name_53 (date VARCHAR, tournament VARCHAR) | SELECT date FROM table_name_53 WHERE tournament = "bell atlantic classic" |
What was the Set 1 game score when Set 3 game score was 15–4, and a Set 2 game score was 15–7? | CREATE TABLE table_name_75 (set_1 VARCHAR, set_3 VARCHAR, set_2 VARCHAR) | SELECT set_1 FROM table_name_75 WHERE set_3 = "15–4" AND set_2 = "15–7" |
What lowest Bodyweight has a Snatch smaller than 55? | CREATE TABLE table_name_84 (bodyweight INTEGER, snatch INTEGER) | SELECT MIN(bodyweight) FROM table_name_84 WHERE snatch < 55 |
Which bodyweight has a Total (kg) of 145.0? | CREATE TABLE table_name_18 (bodyweight VARCHAR, total__kg_ VARCHAR) | SELECT bodyweight FROM table_name_18 WHERE total__kg_ = "145.0" |
What's the Current Status of Livery of the Network South-East? | CREATE TABLE table_name_66 (current_status VARCHAR, livery VARCHAR) | SELECT current_status FROM table_name_66 WHERE livery = "network south-east" |
What's Number & Name listed for the Date 1967? | CREATE TABLE table_name_61 (number_ VARCHAR, _name VARCHAR, date VARCHAR) | SELECT number_ & _name FROM table_name_61 WHERE date = 1967 |
When was the game at Collingwood? | CREATE TABLE table_name_59 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_59 WHERE away_team = "collingwood" |
Where does Geelong play their home game? | CREATE TABLE table_name_7 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_7 WHERE home_team = "geelong" |
In which venue was North Melbourne the Away team? | CREATE TABLE table_name_14 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_14 WHERE away_team = "north melbourne" |
What was the home team's score at Corio Oval? | CREATE TABLE table_name_20 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_20 WHERE venue = "corio oval" |
What were the casualties of the ship sunk by u-125? | CREATE TABLE table_name_33 (casualties VARCHAR, sunk_by… VARCHAR) | SELECT casualties FROM table_name_33 WHERE sunk_by… = "u-125" |
What is the name of the ship sunk on 5 May 1943 from the United Kingdom sunk by an u-266 with 0 casualties? | CREATE TABLE table_name_23 (name VARCHAR, casualties VARCHAR, sunk_by… VARCHAR, date VARCHAR, nationality VARCHAR) | SELECT name FROM table_name_23 WHERE date = "5 may 1943" AND nationality = "united kingdom" AND sunk_by… = "u-266" AND casualties = "0" |
Who loss the game when the record was 3-10? | CREATE TABLE table_name_59 (loss VARCHAR, record VARCHAR) | SELECT loss FROM table_name_59 WHERE record = "3-10" |
What was the record on April 7? | CREATE TABLE table_name_63 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_63 WHERE date = "april 7" |
What Object Type has a °03′32″ Declination (J2000)? | CREATE TABLE table_name_58 (object_type VARCHAR, declination___j2000__ VARCHAR) | SELECT object_type FROM table_name_58 WHERE declination___j2000__ = "°03′32″" |
What Constellation has a 20h56m40s Right Ascension (J2000)? | CREATE TABLE table_name_27 (constellation VARCHAR, right_ascension___j2000__ VARCHAR) | SELECT constellation FROM table_name_27 WHERE right_ascension___j2000__ = "20h56m40s" |
What is the Right Ascension with a Diffuse Nebula Object Type has a °42′30″ Declination and a NGC less than 6995? | CREATE TABLE table_name_14 (right_ascension___j2000__ VARCHAR, declination___j2000__ VARCHAR, ngc_number VARCHAR, object_type VARCHAR) | SELECT right_ascension___j2000__ FROM table_name_14 WHERE ngc_number < 6995 AND object_type = "diffuse nebula" AND declination___j2000__ = "°42′30″" |
What Object Type has a 21h01m37.7s Right Ascension (J2000) and 6995 or greater NGC? | CREATE TABLE table_name_81 (object_type VARCHAR, ngc_number VARCHAR, right_ascension___j2000__ VARCHAR) | SELECT object_type FROM table_name_81 WHERE ngc_number > 6995 AND right_ascension___j2000__ = "21h01m37.7s" |
Tell me the average size for minor third | CREATE TABLE table_name_62 (size__steps_ INTEGER, interval_name VARCHAR) | SELECT AVG(size__steps_) FROM table_name_62 WHERE interval_name = "minor third" |
Who was the losing team on June 16? | CREATE TABLE table_name_25 (losing_team VARCHAR, date VARCHAR) | SELECT losing_team FROM table_name_25 WHERE date = "june 16" |
What was the score of the game on June 28? | CREATE TABLE table_name_81 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_81 WHERE date = "june 28" |
Who beat the Marlins with a score of 4-0? | CREATE TABLE table_name_68 (winning_team VARCHAR, losing_team VARCHAR, score VARCHAR) | SELECT winning_team FROM table_name_68 WHERE losing_team = "marlins" AND score = "4-0" |
What is the date of the game at the Pro Player Stadium that had a score of 4-1? | CREATE TABLE table_name_43 (date VARCHAR, venue VARCHAR, score VARCHAR) | SELECT date FROM table_name_43 WHERE venue = "pro player stadium" AND score = "4-1" |
With 1.97 million HK viewers and a finale more than 33, what was the total number of peaks? | CREATE TABLE table_name_16 (peak VARCHAR, hk_viewers VARCHAR, finale VARCHAR) | SELECT COUNT(peak) FROM table_name_16 WHERE hk_viewers = "1.97 million" AND finale > 33 |
When were scottish football league xi the opponents with a score of 1-5? | CREATE TABLE table_name_11 (date VARCHAR, opponents VARCHAR, score VARCHAR) | SELECT date FROM table_name_11 WHERE opponents = "scottish football league xi" AND score = "1-5" |
What's the score on 17/03/1956? | CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_59 WHERE date = "17/03/1956" |
When the result is d, who are the opponents? | CREATE TABLE table_name_19 (opponents VARCHAR, result VARCHAR) | SELECT opponents FROM table_name_19 WHERE result = "d" |
What's the result when the score is 2-2? | CREATE TABLE table_name_10 (result VARCHAR, score VARCHAR) | SELECT result FROM table_name_10 WHERE score = "2-2" |
What's in third place that's going 1-0? | CREATE TABLE table_name_39 (score VARCHAR) | SELECT 3 AS rd_place FROM table_name_39 WHERE score = "1-0" |
Who is in third place when the kaizer chiefs won 1-0? | CREATE TABLE table_name_9 (winners VARCHAR, score VARCHAR) | SELECT 3 AS rd_place FROM table_name_9 WHERE winners = "kaizer chiefs" AND score = "1-0" |
Which is the earliest year that had mixed doubles for wang wei lu ying? | CREATE TABLE table_name_40 (year INTEGER, mixed_doubles VARCHAR) | SELECT MIN(year) FROM table_name_40 WHERE mixed_doubles = "wang wei lu ying" |
What is the 2011 value that has ATP Masters Series in 2007? | CREATE TABLE table_name_34 (Id VARCHAR) | SELECT 2011 FROM table_name_34 WHERE 2007 = "atp masters series" |
What is the 2011 value that has a 2r in 2008 and a 4r in 2012? | CREATE TABLE table_name_62 (Id VARCHAR) | SELECT 2011 FROM table_name_62 WHERE 2008 = "2r" AND 2012 = "4r" |
What is the 2012 value with an A value in 2007 and A value in 2010 in the Canada Masters? | CREATE TABLE table_name_60 (tournament VARCHAR) | SELECT 2012 FROM table_name_60 WHERE 2007 = "a" AND 2010 = "a" AND tournament = "canada masters" |
What is the 2012 value with 1r in 2011, 2007 of A, 2010 of 1r, and 2009 of A? | CREATE TABLE table_name_16 (Id VARCHAR) | SELECT 2012 FROM table_name_16 WHERE 2011 = "1r" AND 2007 = "a" AND 2010 = "1r" AND 2009 = "a" |
What is the 2007 value with NMS in 2011? | CREATE TABLE table_name_87 (Id VARCHAR) | SELECT 2007 FROM table_name_87 WHERE 2011 = "nms" |
Christian Fittipaldi drove in what team? | CREATE TABLE table_name_74 (team VARCHAR, drivers VARCHAR) | SELECT team FROM table_name_74 WHERE drivers = "christian fittipaldi" |
What driver had a 15-20 record? | CREATE TABLE table_name_34 (drivers VARCHAR, races VARCHAR) | SELECT drivers FROM table_name_34 WHERE races = "15-20" |
Who drove a race car with a Mercedes IC 108e engine and has an 8-10 record? | CREATE TABLE table_name_28 (drivers VARCHAR, engine VARCHAR, races VARCHAR) | SELECT drivers FROM table_name_28 WHERE engine = "mercedes ic 108e" AND races = "8-10" |
Which person drove a Reynard 2ki with a Honda Hrk engine? | CREATE TABLE table_name_95 (races VARCHAR, chassis VARCHAR, engine VARCHAR) | SELECT races FROM table_name_95 WHERE chassis = "reynard 2ki" AND engine = "honda hrk" |
What artist had a single called Alien Rock b/w Combat, The Remix on 12 inch Vinyl format? | CREATE TABLE table_name_82 (artist VARCHAR, format VARCHAR, single VARCHAR) | SELECT artist FROM table_name_82 WHERE format = "12 inch vinyl" AND single = "alien rock b/w combat, the remix" |
What single was written by the artist cap D? | CREATE TABLE table_name_17 (single VARCHAR, artist VARCHAR) | SELECT single FROM table_name_17 WHERE artist = "cap d" |
What date was the opponent in the final Virginie Pichet? | CREATE TABLE table_name_46 (date VARCHAR, opponent_in_final VARCHAR) | SELECT date FROM table_name_46 WHERE opponent_in_final = "virginie pichet" |
What time was game 7? | CREATE TABLE table_name_25 (time VARCHAR, game VARCHAR) | SELECT time FROM table_name_25 WHERE game = 7 |
When the game was played at the Venue of Lake Oval, what was the home team score? | CREATE TABLE table_name_58 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_58 WHERE venue = "lake oval" |
When the Venue was Glenferrie Oval, who is the Away team? | CREATE TABLE table_name_3 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_3 WHERE venue = "glenferrie oval" |
When North Melbourne is the Away team, what is the total number of the Crowd? | CREATE TABLE table_name_46 (crowd VARCHAR, away_team VARCHAR) | SELECT COUNT(crowd) FROM table_name_46 WHERE away_team = "north melbourne" |
When Richmond is the Away team, what did they score? | CREATE TABLE table_name_2 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_2 WHERE away_team = "richmond" |
When Geelong is the Away team, what did the Home team score? | CREATE TABLE table_name_2 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_2 WHERE away_team = "geelong" |
Which race has a pole of test driver and a team name of Lucky Strike Honda Racing f1 team? | CREATE TABLE table_name_36 (races VARCHAR, poles VARCHAR, team_name VARCHAR) | SELECT races FROM table_name_36 WHERE poles = "test driver" AND team_name = "lucky strike honda racing f1 team" |
Which pole has a Season of 2009 and points of test driver? | CREATE TABLE table_name_90 (poles VARCHAR, season VARCHAR, points VARCHAR) | SELECT poles FROM table_name_90 WHERE season = 2009 AND points = "test driver" |
What is the date of the tournament with 5 strokes as the margin of victory? | CREATE TABLE table_name_62 (date VARCHAR, margin_of_victory VARCHAR) | SELECT date FROM table_name_62 WHERE margin_of_victory = "5 strokes" |
What is the margin of victory of the tournament on 15 Jul 2007? | CREATE TABLE table_name_34 (margin_of_victory VARCHAR, date VARCHAR) | SELECT margin_of_victory FROM table_name_34 WHERE date = "15 jul 2007" |
What is the margin of victory of the tournament with a winning score of 70-67-64-71=272? | CREATE TABLE table_name_82 (margin_of_victory VARCHAR, winning_score VARCHAR) | SELECT margin_of_victory FROM table_name_82 WHERE winning_score = 70 - 67 - 64 - 71 = 272 |
Tell me the average points with tyres of b and chassis of tf109 | CREATE TABLE table_name_23 (points INTEGER, tyres VARCHAR, chassis VARCHAR) | SELECT AVG(points) FROM table_name_23 WHERE tyres = "b" AND chassis = "tf109" |
Tell me the total number of points with chassis of tf103 | CREATE TABLE table_name_2 (points VARCHAR, chassis VARCHAR) | SELECT COUNT(points) FROM table_name_2 WHERE chassis = "tf103" |
Which partners were runner-up in the tournament in Mons, Belgium? | CREATE TABLE table_name_61 (partner VARCHAR, outcome VARCHAR, tournament VARCHAR) | SELECT partner FROM table_name_61 WHERE outcome = "runner-up" AND tournament = "mons, belgium" |
What is the total track that is translated in brussels? | CREATE TABLE table_name_25 (track VARCHAR, translation VARCHAR) | SELECT COUNT(track) FROM table_name_25 WHERE translation = "brussels" |
Which title has tracks smaller than 7 with translation of an island? | CREATE TABLE table_name_67 (title VARCHAR, track VARCHAR, translation VARCHAR) | SELECT title FROM table_name_67 WHERE track < 7 AND translation = "an island" |
What is the record for Brussels translations? | CREATE TABLE table_name_84 (recorded VARCHAR, translation VARCHAR) | SELECT recorded FROM table_name_84 WHERE translation = "brussels" |
What's the largest crowd that attended a game at junction oval? | CREATE TABLE table_name_36 (crowd INTEGER, venue VARCHAR) | SELECT MAX(crowd) FROM table_name_36 WHERE venue = "junction oval" |
Who did mark eaton play for? | CREATE TABLE table_name_3 (school_club_team VARCHAR, player VARCHAR) | SELECT school_club_team FROM table_name_3 WHERE player = "mark eaton" |
What position did someone play from 1982-84? | CREATE TABLE table_name_78 (position VARCHAR, years_for_jazz VARCHAR) | SELECT position FROM table_name_78 WHERE years_for_jazz = "1982-84" |
Who does jeremy evans play for? | CREATE TABLE table_name_15 (school_club_team VARCHAR, player VARCHAR) | SELECT school_club_team FROM table_name_15 WHERE player = "jeremy evans" |
What nationality is mark eaton, center position? | CREATE TABLE table_name_51 (nationality VARCHAR, position VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_51 WHERE position = "center" AND player = "mark eaton" |
What's the position listed for the east carolina team? | CREATE TABLE table_name_81 (position VARCHAR, school_club_team VARCHAR) | SELECT position FROM table_name_81 WHERE school_club_team = "east carolina" |
What is the home/away of the game at Nickerson Field at July 10? | CREATE TABLE table_name_68 (home_away VARCHAR, field VARCHAR, date VARCHAR) | SELECT home_away FROM table_name_68 WHERE field = "nickerson field" AND date = "july 10" |
What is the date of the game away against Pride? | CREATE TABLE table_name_35 (date VARCHAR, opponent VARCHAR, home_away VARCHAR) | SELECT date FROM table_name_35 WHERE opponent = "pride" AND home_away = "away" |
What is the result of the home game on August 14? | CREATE TABLE table_name_25 (result VARCHAR, home_away VARCHAR, date VARCHAR) | SELECT result FROM table_name_25 WHERE home_away = "home" AND date = "august 14" |
What is the date of the game against the Lizards with a result of w 18-17? | CREATE TABLE table_name_18 (date VARCHAR, opponent VARCHAR, result VARCHAR) | SELECT date FROM table_name_18 WHERE opponent = "lizards" AND result = "w 18-17" |
What is the field of the game on July 22? | CREATE TABLE table_name_7 (field VARCHAR, date VARCHAR) | SELECT field FROM table_name_7 WHERE date = "july 22" |
Who had a disputed marriage? | CREATE TABLE table_name_57 (name VARCHAR, marriage VARCHAR) | SELECT name FROM table_name_57 WHERE marriage = "disputed" |
On October 25, when the visitor was Colorado, what is the score? | CREATE TABLE table_name_64 (score VARCHAR, visitor VARCHAR, date VARCHAR) | SELECT score FROM table_name_64 WHERE visitor = "colorado" AND date = "october 25" |
How many voters were in Manhattan when 181,639 people voted in the Bronx? | CREATE TABLE table_name_90 (richmond_ VARCHAR, staten_is VARCHAR, the_bronx VARCHAR) | SELECT richmond_[staten_is] FROM table_name_90 WHERE the_bronx = "181,639" |
When Richmond had a total count of 2,293, what was the total count of Brooklyn? | CREATE TABLE table_name_53 (brooklyn VARCHAR, richmond_ VARCHAR, staten_is VARCHAR) | SELECT brooklyn FROM table_name_53 WHERE richmond_[staten_is] = "2,293" |
What is the average earnings of the player from the United States with a win smaller than 2 and a rank larger than 3? | CREATE TABLE table_name_96 (earnings___ INTEGER, rank VARCHAR, country VARCHAR, wins VARCHAR) | SELECT AVG(earnings___) AS $__ FROM table_name_96 WHERE country = "united states" AND wins < 2 AND rank > 3 |
What is the average events that Al Geiberger played with wins smaller than 1? | CREATE TABLE table_name_55 (events INTEGER, player VARCHAR, wins VARCHAR) | SELECT AVG(events) FROM table_name_55 WHERE player = "al geiberger" AND wins < 1 |
What is the rank where the events is 31? | CREATE TABLE table_name_65 (rank VARCHAR, events VARCHAR) | SELECT rank FROM table_name_65 WHERE events = 31 |
What is the total number of events that Al Geiberger has played with earnings larger than 527,033? | CREATE TABLE table_name_42 (events VARCHAR, player VARCHAR, earnings___$__ VARCHAR) | SELECT COUNT(events) FROM table_name_42 WHERE player = "al geiberger" AND earnings___$__ > 527 OFFSET 033 |
What is the average events where the rank is smaller than 2 and wins are smaller than 5? | CREATE TABLE table_name_11 (events INTEGER, rank VARCHAR, wins VARCHAR) | SELECT AVG(events) FROM table_name_11 WHERE rank < 2 AND wins < 5 |
Who did team phoenix visit in their home? | CREATE TABLE table_name_32 (home VARCHAR, visitor VARCHAR) | SELECT home FROM table_name_32 WHERE visitor = "phoenix" |
What is the highest round in the Wec 25 match in Las Vegas, Nevada, United States? | CREATE TABLE table_name_80 (round INTEGER, location VARCHAR, event VARCHAR) | SELECT MAX(round) FROM table_name_80 WHERE location = "las vegas, nevada, united states" AND event = "wec 25" |
What event had 1 round and a record of 6-2? | CREATE TABLE table_name_9 (event VARCHAR, round VARCHAR, record VARCHAR) | SELECT event FROM table_name_9 WHERE round = 1 AND record = "6-2" |
Which school has more than 3 rounds with jason odom? | CREATE TABLE table_name_71 (school VARCHAR, round VARCHAR, player VARCHAR) | SELECT school FROM table_name_71 WHERE round > 3 AND player = "jason odom" |
Name the least evening gown for interview more than 7.97 and swimsui of 7.24 | CREATE TABLE table_name_25 (evening_gown INTEGER, swimsuit VARCHAR, interview VARCHAR) | SELECT MIN(evening_gown) FROM table_name_25 WHERE swimsuit = 7.24 AND interview > 7.97 |
What is the nationality of Mattias Modig? | CREATE TABLE table_name_86 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_86 WHERE player = "mattias modig" |
In the game where the home team was St Kilda, what was the attendance? | CREATE TABLE table_name_52 (crowd VARCHAR, home_team VARCHAR) | SELECT crowd FROM table_name_52 WHERE home_team = "st kilda" |
In the game with the venue of mcg, what was the attendance? | CREATE TABLE table_name_22 (crowd VARCHAR, venue VARCHAR) | SELECT crowd FROM table_name_22 WHERE venue = "mcg" |
In the game that took place at junction oval, how much did the home team score? | CREATE TABLE table_name_24 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_24 WHERE venue = "junction oval" |
Who was the visiting team when the home team was Seattle? | CREATE TABLE table_name_22 (visitor VARCHAR, home VARCHAR) | SELECT visitor FROM table_name_22 WHERE home = "seattle" |
What was the record on 12 march 2008? | CREATE TABLE table_name_63 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_63 WHERE date = "12 march 2008" |
Who was the home team on 27 march 2008? | CREATE TABLE table_name_83 (home VARCHAR, date VARCHAR) | SELECT home FROM table_name_83 WHERE date = "27 march 2008" |
What was the score when the mavericks were visitors? | CREATE TABLE table_name_23 (score VARCHAR, visitor VARCHAR) | SELECT score FROM table_name_23 WHERE visitor = "mavericks" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.