answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT SUM(joined) FROM table_name_61 WHERE nickname = "knights" AND enrollment > 2 OFFSET 960
CREATE TABLE table_name_61 (joined INTEGER, nickname VARCHAR, enrollment VARCHAR)
Which Joined has a Nickname of knights, and an Enrollment larger than 2,960?
SELECT nickname FROM table_name_37 WHERE enrollment < 501 AND location = "clarkesville"
CREATE TABLE table_name_37 (nickname VARCHAR, enrollment VARCHAR, location VARCHAR)
Which Nickname has an Enrollment smaller than 501, and a Location of clarkesville?
SELECT MAX(joined) FROM table_name_96 WHERE institution = "abraham baldwin agricultural college" AND enrollment < 3 OFFSET 284
CREATE TABLE table_name_96 (joined INTEGER, institution VARCHAR, enrollment VARCHAR)
Which Joined has an Institution of abraham baldwin agricultural college, and an Enrollment smaller than 3,284?
SELECT away_team AS score FROM table_name_65 WHERE ground = "optus oval" AND away_team = "fremantle"
CREATE TABLE table_name_65 (away_team VARCHAR, ground VARCHAR)
What is Away Team Score, when Ground is Optus Oval, and when Away Team is Fremantle?
SELECT away_team FROM table_name_19 WHERE ground = "colonial stadium"
CREATE TABLE table_name_19 (away_team VARCHAR, ground VARCHAR)
What is Away Team, when Ground is Colonial Stadium?
SELECT place FROM table_name_11 WHERE score = 71 - 71 = 142
CREATE TABLE table_name_11 (place VARCHAR, score VARCHAR)
A score of 71-71=142 earned what place?
SELECT to_par FROM table_name_68 WHERE player = "josé maría olazábal"
CREATE TABLE table_name_68 (to_par VARCHAR, player VARCHAR)
What was José María Olazábal's score?
SELECT opponent FROM table_name_66 WHERE date = "october 15, 1967"
CREATE TABLE table_name_66 (opponent VARCHAR, date VARCHAR)
What team was the opponent on October 15, 1967?
SELECT MIN(attendance) FROM table_name_31 WHERE opponent = "green bay packers"
CREATE TABLE table_name_31 (attendance INTEGER, opponent VARCHAR)
What was the lowest attendance when the Green Bay Packers played?
SELECT MIN(week) FROM table_name_15 WHERE date = "november 19, 1967"
CREATE TABLE table_name_15 (week INTEGER, date VARCHAR)
What was the week number when a game was played on November 19, 1967?
SELECT team FROM table_name_31 WHERE grid > 8 AND points < 4
CREATE TABLE table_name_31 (team VARCHAR, grid VARCHAR, points VARCHAR)
If a team has a grid of over 8 with less than 4 points, what's the team name?
SELECT team FROM table_name_43 WHERE laps = 90 AND points < 19 AND driver = "patrick carpentier"
CREATE TABLE table_name_43 (team VARCHAR, driver VARCHAR, laps VARCHAR, points VARCHAR)
When Patrick Carpentier is driving and has less than 19 points with 90 laps, what team is racing?
SELECT score FROM table_name_34 WHERE total_points = 50
CREATE TABLE table_name_34 (score VARCHAR, total_points VARCHAR)
What was the score where the total points was 50?
SELECT MIN(total_points) FROM table_name_73 WHERE details = "2001 nrl grand final"
CREATE TABLE table_name_73 (total_points INTEGER, details VARCHAR)
For the match that had detail of 2001 nrl grand final, what was the lowest total points?
SELECT AVG(game) FROM table_name_7 WHERE high_points = "wilson chandler (16)"
CREATE TABLE table_name_7 (game INTEGER, high_points VARCHAR)
Which average Game has a High points of wilson chandler (16)?
SELECT score FROM table_name_71 WHERE game > 76 AND location_attendance = "madison square garden 19,763" AND high_rebounds = "wilson chandler (8)"
CREATE TABLE table_name_71 (score VARCHAR, high_rebounds VARCHAR, game VARCHAR, location_attendance VARCHAR)
Which Score has a Game larger than 76, a Location Attendance of madison square garden 19,763, and a High rebounds of wilson chandler (8)?
SELECT team FROM table_name_24 WHERE record = "32–50"
CREATE TABLE table_name_24 (team VARCHAR, record VARCHAR)
Which Team has a Record of 32–50?
SELECT date FROM table_name_4 WHERE record = "29–47"
CREATE TABLE table_name_4 (date VARCHAR, record VARCHAR)
Which Date has a Record of 29–47?
SELECT date FROM table_name_99 WHERE location_attendance = "madison square garden 19,763" AND high_rebounds = "david lee (12)"
CREATE TABLE table_name_99 (date VARCHAR, location_attendance VARCHAR, high_rebounds VARCHAR)
Which Date has a Location Attendance of madison square garden 19,763, and a High rebounds of david lee (12)?
SELECT record FROM table_name_3 WHERE score = "w 107–102 (ot)"
CREATE TABLE table_name_3 (record VARCHAR, score VARCHAR)
Which Record has a Score of w 107–102 (ot)?
SELECT team FROM table_name_4 WHERE location_attendance = "fedexforum 11,731"
CREATE TABLE table_name_4 (team VARCHAR, location_attendance VARCHAR)
Which Team has a Location Attendance of fedexforum 11,731?
SELECT record FROM table_name_88 WHERE score = "l 97–99 (ot)"
CREATE TABLE table_name_88 (record VARCHAR, score VARCHAR)
Which Record has a Score of l 97–99 (ot)?
SELECT record FROM table_name_11 WHERE game = 34
CREATE TABLE table_name_11 (record VARCHAR, game VARCHAR)
What is game 34's record?
SELECT high_assists FROM table_name_61 WHERE date = "january 2"
CREATE TABLE table_name_61 (high_assists VARCHAR, date VARCHAR)
What were the high assist on january 2?
SELECT director FROM table_name_5 WHERE film_title_used_in_nomination = "floating life"
CREATE TABLE table_name_5 (director VARCHAR, film_title_used_in_nomination VARCHAR)
Who was the director that had a film titled "Floating Life"?
SELECT COUNT(played) FROM table_name_60 WHERE position > 5 AND points = 11 AND drawn < 1
CREATE TABLE table_name_60 (played VARCHAR, drawn VARCHAR, position VARCHAR, points VARCHAR)
Can you tell me the total number of Played that has the Position larger than 5, and the Points of 11, and the Drawn smaller than 1?
SELECT MAX(played) FROM table_name_36 WHERE points > 11 AND lost > 7
CREATE TABLE table_name_36 (played INTEGER, points VARCHAR, lost VARCHAR)
Can you tell me the highest Played that has the Points larger than 11, and the Lost larger than 7?
SELECT score FROM table_name_85 WHERE player = "dave hill"
CREATE TABLE table_name_85 (score VARCHAR, player VARCHAR)
What was Dave Hill's score?
SELECT to_par FROM table_name_73 WHERE country = "united states" AND player = "al mengert"
CREATE TABLE table_name_73 (to_par VARCHAR, country VARCHAR, player VARCHAR)
What is the to par of Al Mengert of the United States?
SELECT score FROM table_name_67 WHERE country = "united states" AND place = "t5"
CREATE TABLE table_name_67 (score VARCHAR, country VARCHAR, place VARCHAR)
What is the score of T5 place in the United States?
SELECT player FROM table_name_1 WHERE country = "united states" AND place = "t10" AND score = 67 - 77 = 144
CREATE TABLE table_name_1 (player VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)
Who was the player from the United States in T10 place with a score of 67-77=144?
SELECT to_par FROM table_name_51 WHERE player = "billy casper"
CREATE TABLE table_name_51 (to_par VARCHAR, player VARCHAR)
What was Billy Casper's to par?
SELECT SUM(wins) FROM table_name_42 WHERE played < 5
CREATE TABLE table_name_42 (wins INTEGER, played INTEGER)
What is the sum of Wins, when Played is less than 5?
SELECT MAX(wins) FROM table_name_75 WHERE rank > 2 AND played < 5
CREATE TABLE table_name_75 (wins INTEGER, rank VARCHAR, played VARCHAR)
What is the highest Wins, when Rank is greater than 2, and when Played is less than 5?
SELECT SUM(wins) FROM table_name_79 WHERE team = "sweden" AND played < 5
CREATE TABLE table_name_79 (wins INTEGER, team VARCHAR, played VARCHAR)
What is the sum of Wins, when Team is Sweden, and when Played is less than 5?
SELECT MAX(points) FROM table_name_30 WHERE played > 5
CREATE TABLE table_name_30 (points INTEGER, played INTEGER)
What is the highest Points, when Played is greater than 5?
SELECT AVG(ties) FROM table_name_68 WHERE played > 5
CREATE TABLE table_name_68 (ties INTEGER, played INTEGER)
What is the average Ties, when Played is greater than 5?
SELECT date FROM table_name_71 WHERE runner_s__up = "oliver wilson"
CREATE TABLE table_name_71 (date VARCHAR, runner_s__up VARCHAR)
What is Date, when Runner(s)-Up is Oliver Wilson?
SELECT date FROM table_name_1 WHERE margin_of_victory = "4 strokes"
CREATE TABLE table_name_1 (date VARCHAR, margin_of_victory VARCHAR)
What is Date, when Margin Of Victory is 4 Strokes?
SELECT runner_s__up FROM table_name_47 WHERE date = "21 jan 2007"
CREATE TABLE table_name_47 (runner_s__up VARCHAR, date VARCHAR)
What is Runner(s)-up, when Date is 21 Jan 2007?
SELECT tournament FROM table_name_5 WHERE margin_of_victory = "1 stroke" AND date = "18 jan 2009"
CREATE TABLE table_name_5 (tournament VARCHAR, margin_of_victory VARCHAR, date VARCHAR)
What is Tournament, when Margin Of Victory is 1 Stroke, and when Date is 18 Jan 2009?
SELECT us_senate FROM table_name_80 WHERE year > 2002 AND party = "working families"
CREATE TABLE table_name_80 (us_senate VARCHAR, year VARCHAR, party VARCHAR)
what is the U.S. senate when the year is after 2002 and the party is working families?
SELECT COUNT(year) FROM table_name_78 WHERE comptroller = "alan hevesi" AND party = "working families"
CREATE TABLE table_name_78 (year VARCHAR, comptroller VARCHAR, party VARCHAR)
How many times what the comptroller alan hevesi and the party working families?
SELECT high_points FROM table_name_79 WHERE location_attendance = "conseco fieldhouse 7,134"
CREATE TABLE table_name_79 (high_points VARCHAR, location_attendance VARCHAR)
What is the highest number of points of the game in Conseco fieldhouse 7,134?
SELECT high_rebounds FROM table_name_53 WHERE record = "6-14"
CREATE TABLE table_name_53 (high_rebounds VARCHAR, record VARCHAR)
What is the highest number of rebounds of the game with a 6-14 record?
SELECT record FROM table_name_21 WHERE visitor = "pittsburgh" AND points < 27 AND home = "boston"
CREATE TABLE table_name_21 (record VARCHAR, home VARCHAR, visitor VARCHAR, points VARCHAR)
Can you tell me the Record that has the Visitor of pittsburgh, and the Points smaller than 27, and the Home of boston?
SELECT AVG(points) FROM table_name_42 WHERE attendance = 3 OFFSET 806
CREATE TABLE table_name_42 (points INTEGER, attendance VARCHAR)
Can you tell me the average Points that has the Attendance of 3,806?
SELECT opponent FROM table_name_69 WHERE attendance = "38,642"
CREATE TABLE table_name_69 (opponent VARCHAR, attendance VARCHAR)
Which opponent had 38,642 attendance?
SELECT date FROM table_name_84 WHERE attendance = "51,265"
CREATE TABLE table_name_84 (date VARCHAR, attendance VARCHAR)
What date had 51,265 attendance?
SELECT date FROM table_name_45 WHERE place = "7th"
CREATE TABLE table_name_45 (date VARCHAR, place VARCHAR)
When 7th place, what is the date?
SELECT score FROM table_name_3 WHERE game = 34
CREATE TABLE table_name_3 (score VARCHAR, game VARCHAR)
What is the score of game 34?
SELECT record FROM table_name_97 WHERE game = 33
CREATE TABLE table_name_97 (record VARCHAR, game VARCHAR)
What is the record of game 33?
SELECT country FROM table_name_64 WHERE place = "t4" AND player = "scott simpson"
CREATE TABLE table_name_64 (country VARCHAR, place VARCHAR, player VARCHAR)
What is the Country, when Place is "T4", and when Player is "Scott Simpson"?
SELECT to_par FROM table_name_98 WHERE score = 70 AND player = "craig stadler"
CREATE TABLE table_name_98 (to_par VARCHAR, score VARCHAR, player VARCHAR)
What is To Par, when Score is 70, and when Player is "Craig Stadler"?
SELECT player FROM table_name_70 WHERE score < 69 AND country = "united states"
CREATE TABLE table_name_70 (player VARCHAR, score VARCHAR, country VARCHAR)
What is Player, when Score is less than 69, and when Country is "United States"?
SELECT writer FROM table_name_89 WHERE producer = "phil collinson" AND director = "alice troughton"
CREATE TABLE table_name_89 (writer VARCHAR, producer VARCHAR, director VARCHAR)
Who was the writer that the director was Alice Troughton and the producer was Phil Collinson?
SELECT location_attendance FROM table_name_99 WHERE game > 2 AND team = "new orleans"
CREATE TABLE table_name_99 (location_attendance VARCHAR, game VARCHAR, team VARCHAR)
What is the location and attendance after game 2, and the team New Orleans?
SELECT teleplay FROM table_name_37 WHERE season > 1.1 AND first_broadcast = "february 20, 1981"
CREATE TABLE table_name_37 (teleplay VARCHAR, season VARCHAR, first_broadcast VARCHAR)
What is Teleplay, when Season is greater than 1.1, and when First Broadcast is "February 20, 1981"?
SELECT title FROM table_name_2 WHERE season < 1.8 AND first_broadcast = "march 6, 1981"
CREATE TABLE table_name_2 (title VARCHAR, season VARCHAR, first_broadcast VARCHAR)
What is Title, when Season is less than 1.8, and when First Broadcast is March 6, 1981?
SELECT director FROM table_name_11 WHERE season = 1.4
CREATE TABLE table_name_11 (director VARCHAR, season VARCHAR)
What is Director, when Season is 1.4?
SELECT teleplay FROM table_name_24 WHERE director = "george mccowan" AND season < 1.1400000000000001 AND first_broadcast = "april 3, 1981"
CREATE TABLE table_name_24 (teleplay VARCHAR, first_broadcast VARCHAR, director VARCHAR, season VARCHAR)
What is Teleplay, when Director is "George McCowan", when Season is less than 1.1400000000000001, and when First Broadcast is April 3, 1981?
SELECT AVG(season) FROM table_name_14 WHERE first_broadcast = "january 23, 1981"
CREATE TABLE table_name_14 (season INTEGER, first_broadcast VARCHAR)
What is the average Season, when First Broadcast is January 23, 1981?
SELECT teleplay FROM table_name_57 WHERE first_broadcast = "april 10, 1981"
CREATE TABLE table_name_57 (teleplay VARCHAR, first_broadcast VARCHAR)
What is Teleplay, when First Broadcast is April 10, 1981?
SELECT h___a FROM table_name_25 WHERE opponents = "bohemians"
CREATE TABLE table_name_25 (h___a VARCHAR, opponents VARCHAR)
What the H/A when the opponent is the Bohemians?
SELECT AVG(attendance) FROM table_name_7 WHERE opponents = "cork city"
CREATE TABLE table_name_7 (attendance INTEGER, opponents VARCHAR)
What is the attendance when Cork City is the opponent?
SELECT h___a FROM table_name_53 WHERE opponents = "cork city"
CREATE TABLE table_name_53 (h___a VARCHAR, opponents VARCHAR)
What is the H/A when Cork City is the opponent?
SELECT h___a FROM table_name_46 WHERE date = "5 august 1990"
CREATE TABLE table_name_46 (h___a VARCHAR, date VARCHAR)
What is the H/A on 5 August 1990?
SELECT result_f___a FROM table_name_70 WHERE date = "5 august 1990"
CREATE TABLE table_name_70 (result_f___a VARCHAR, date VARCHAR)
What is the result F-A on 5 August 1990?
SELECT internal_floppy_disk FROM table_name_19 WHERE s_100_slots > 8 AND year_introduced < 1978
CREATE TABLE table_name_19 (internal_floppy_disk VARCHAR, s_100_slots VARCHAR, year_introduced VARCHAR)
What is the value for internal floppy disk with s-100 slots greater than 8 introduced earlier than 1978?
SELECT system FROM table_name_47 WHERE s_100_slots < 21 AND year_introduced < 1981 AND internal_hard_disk = "11 megabytes"
CREATE TABLE table_name_47 (system VARCHAR, internal_hard_disk VARCHAR, s_100_slots VARCHAR, year_introduced VARCHAR)
Which system introduced earlier than 1981 has an internal hard disk of 11 megabytes and less than 21 s-100 slots?
SELECT college FROM table_name_45 WHERE player = "marcus wilson"
CREATE TABLE table_name_45 (college VARCHAR, player VARCHAR)
What college did Marcus Wilson attend?
SELECT player FROM table_name_76 WHERE pick__number < 304 AND college = "notre dame"
CREATE TABLE table_name_76 (player VARCHAR, pick__number VARCHAR, college VARCHAR)
Who is the player that attended Notre Dame with a pick smaller than 304?
SELECT college FROM table_name_93 WHERE player = "leon perry"
CREATE TABLE table_name_93 (college VARCHAR, player VARCHAR)
What college did Leon Perry attend?
SELECT nfl_team FROM table_name_62 WHERE position = "tight end"
CREATE TABLE table_name_62 (nfl_team VARCHAR, position VARCHAR)
What NFL team did the Tight End position belong to?
SELECT SUM(week) FROM table_name_49 WHERE opponent = "san diego chargers"
CREATE TABLE table_name_49 (week INTEGER, opponent VARCHAR)
What is the total number of weeks that the buffalo bills played against the San Diego Chargers?
SELECT attendance FROM table_name_76 WHERE date = "bye"
CREATE TABLE table_name_76 (attendance VARCHAR, date VARCHAR)
What is the attendance of the game that had a date listed as Bye?
SELECT SUM(week) FROM table_name_48 WHERE attendance = "41,384"
CREATE TABLE table_name_48 (week INTEGER, attendance VARCHAR)
How many weeks were there games with 41,384 fans in attendance?
SELECT MIN(week) FROM table_name_97 WHERE date = "december 3, 1967"
CREATE TABLE table_name_97 (week INTEGER, date VARCHAR)
What is the lowest week number that had a game on December 3, 1967?
SELECT result FROM table_name_79 WHERE attendance = "20,627"
CREATE TABLE table_name_79 (result VARCHAR, attendance VARCHAR)
What was the result of the game that had 20,627 fans in attendance?
SELECT rider FROM table_name_86 WHERE laps = "22" AND time_retired = "+19.435"
CREATE TABLE table_name_86 (rider VARCHAR, laps VARCHAR, time_retired VARCHAR)
Who is the rider with 22 laps and a +19.435 time/retired?
SELECT grid FROM table_name_65 WHERE manufacturer = "yamaha" AND time_retired = "+19.435"
CREATE TABLE table_name_65 (grid VARCHAR, manufacturer VARCHAR, time_retired VARCHAR)
What is the grid with a yamaha manufacturer and a +19.435 time/retired?
SELECT grid FROM table_name_28 WHERE rider = "shinya nakano"
CREATE TABLE table_name_28 (grid VARCHAR, rider VARCHAR)
What is the grid of rider shinya nakano?
SELECT rider FROM table_name_70 WHERE laps = "22" AND time_retired = "+1:44.775"
CREATE TABLE table_name_70 (rider VARCHAR, laps VARCHAR, time_retired VARCHAR)
Who is the rider with 22 laps and a +1:44.775 time/retired?
SELECT manufacturer FROM table_name_13 WHERE grid = "14"
CREATE TABLE table_name_13 (manufacturer VARCHAR, grid VARCHAR)
What is the manufacturer with a 14 grid?
SELECT rider FROM table_name_21 WHERE manufacturer = "yamaha" AND grid = "17"
CREATE TABLE table_name_21 (rider VARCHAR, manufacturer VARCHAR, grid VARCHAR)
Who is the rider with a yamaha manufacturer and a 17 grid?
SELECT SUM(attendance) FROM table_name_14 WHERE venue = "h" AND opponent = "auxerre"
CREATE TABLE table_name_14 (attendance INTEGER, venue VARCHAR, opponent VARCHAR)
What is the total of attendance at Venue h when Auxerre were playing?
SELECT vehicle FROM table_name_34 WHERE ceased_operation = "failed at launch"
CREATE TABLE table_name_34 (vehicle VARCHAR, ceased_operation VARCHAR)
Which vehicle failed at launch?
SELECT notes FROM table_name_82 WHERE vehicle = "scout x-4" AND ceased_operation = "june 1971"
CREATE TABLE table_name_82 (notes VARCHAR, vehicle VARCHAR, ceased_operation VARCHAR)
What are the notes regarding the scout x-4 vehicle which ceased operation in June 1971?
SELECT ceased_operation FROM table_name_86 WHERE launched = "august 8, 1968"
CREATE TABLE table_name_86 (ceased_operation VARCHAR, launched VARCHAR)
What was the ceased operation with a launch date of August 8, 1968?
SELECT ceased_operation FROM table_name_5 WHERE launched = "june 29, 1961"
CREATE TABLE table_name_5 (ceased_operation VARCHAR, launched VARCHAR)
What was the ceased operation that launched June 29, 1961?
SELECT place FROM table_name_10 WHERE country = "united states" AND score = 67 - 75 - 68 = 210
CREATE TABLE table_name_10 (place VARCHAR, country VARCHAR, score VARCHAR)
What place in the United States having a score of 67-75-68=210?
SELECT country FROM table_name_46 WHERE place = "t4" AND score = 66 - 71 - 72 = 209
CREATE TABLE table_name_46 (country VARCHAR, place VARCHAR, score VARCHAR)
What country is in T4 place having a score of 66-71-72=209?
SELECT place FROM table_name_8 WHERE country = "united states" AND score = 68 - 73 - 68 = 209
CREATE TABLE table_name_8 (place VARCHAR, country VARCHAR, score VARCHAR)
What place is the United States in that has a score of 68-73-68=209?
SELECT player FROM table_name_77 WHERE country = "united states" AND place = "t4" AND score = 68 - 73 - 68 = 209
CREATE TABLE table_name_77 (player VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)
Who is the player from the United States in T4 place with a score of 68-73-68=209?
SELECT AVG(played) FROM table_name_85 WHERE lost > 17 AND drawn = 15 AND goals_against < 75
CREATE TABLE table_name_85 (played INTEGER, goals_against VARCHAR, lost VARCHAR, drawn VARCHAR)
How many played when lost is more than 17, drawn is 15 and goals against is less than 75?
SELECT SUM(position) FROM table_name_88 WHERE lost < 14 AND goal_difference = "+1" AND drawn > 15
CREATE TABLE table_name_88 (position INTEGER, drawn VARCHAR, lost VARCHAR, goal_difference VARCHAR)
what is the position when lot is less than 14, goal difference is +1 and drawn is more than 15?
SELECT AVG(lost) FROM table_name_31 WHERE goals_for = 43 AND position > 15
CREATE TABLE table_name_31 (lost INTEGER, goals_for VARCHAR, position VARCHAR)
How many lost when goals for is 43 and the position number is higher than 15?
SELECT score FROM table_name_42 WHERE team = "charlotte"
CREATE TABLE table_name_42 (score VARCHAR, team VARCHAR)
What was the score of the game against Charlotte?
SELECT high_assists FROM table_name_13 WHERE team = "memphis"
CREATE TABLE table_name_13 (high_assists VARCHAR, team VARCHAR)
Who had the high assists in the game against Memphis?
SELECT home_team FROM table_name_89 WHERE road_team = "boston" AND game = "game 4"
CREATE TABLE table_name_89 (home_team VARCHAR, road_team VARCHAR, game VARCHAR)
Who was the home team when Boston is the road team in game 4?