context
stringlengths
27
489
question
stringlengths
12
244
answer
stringlengths
18
557
CREATE TABLE table_name_75 (coach VARCHAR, most_improved VARCHAR)
Which Coach has a Most Improved of rory thompson?
SELECT coach FROM table_name_75 WHERE most_improved = "rory thompson"
CREATE TABLE table_name_85 (year INTEGER, community_award VARCHAR)
Which Year has a Community Award of jarrod harbrow?
SELECT SUM(year) FROM table_name_85 WHERE community_award = "jarrod harbrow"
CREATE TABLE table_name_35 (capacity INTEGER, team VARCHAR)
what is the capacity for the team šibenik?
SELECT MIN(capacity) FROM table_name_35 WHERE team = "šibenik"
CREATE TABLE table_name_81 (stadium VARCHAR, team VARCHAR)
what is the stadium for čakovec?
SELECT stadium FROM table_name_81 WHERE team = "čakovec"
CREATE TABLE table_name_88 (capacity INTEGER, home_city VARCHAR, manager VARCHAR)
what is the capacity when the home city is zagreb and the manager is zlatko kranjčar?
SELECT AVG(capacity) FROM table_name_88 WHERE home_city = "zagreb" AND manager = "zlatko kranjčar"
CREATE TABLE table_name_29 (home_city VARCHAR, stadium VARCHAR)
what is the home city for the stadion src mladost?
SELECT home_city FROM table_name_29 WHERE stadium = "stadion src mladost"
CREATE TABLE table_name_43 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)
What is the grid for the driver with an electrical time/retired and 51 laps?
SELECT grid FROM table_name_43 WHERE time_retired = "electrical" AND laps = 51
CREATE TABLE table_name_30 (driver VARCHAR, grid VARCHAR)
Who is the driver with 1 grid?
SELECT driver FROM table_name_30 WHERE grid = 1
CREATE TABLE table_name_32 (place VARCHAR, player VARCHAR)
What place was Mark Carnevale in?
SELECT place FROM table_name_32 WHERE player = "mark carnevale"
CREATE TABLE table_name_14 (attendance INTEGER, away VARCHAR)
What was the highest attendance against Real Juventud?
SELECT MAX(attendance) FROM table_name_14 WHERE away = "real juventud"
CREATE TABLE table_name_47 (away_captain VARCHAR, date VARCHAR)
Who is the away captain for the matches dated 7,8,10,11 feb 1908?
SELECT away_captain FROM table_name_47 WHERE date = "7,8,10,11 feb 1908"
CREATE TABLE table_name_14 (home_captain VARCHAR, venue VARCHAR)
Who is the home captain at the Adelaide Oval?
SELECT home_captain FROM table_name_14 WHERE venue = "adelaide oval"
CREATE TABLE table_name_93 (home_captain VARCHAR, result VARCHAR)
Who is the home captain that won AUS by 245 runs?
SELECT home_captain FROM table_name_93 WHERE result = "aus by 245 runs"
CREATE TABLE table_name_64 (venue VARCHAR, date VARCHAR)
What was the venue for the dates 1,2,3,4,6,7 jan 1908?
SELECT venue FROM table_name_64 WHERE date = "1,2,3,4,6,7 jan 1908"
CREATE TABLE table_name_67 (venue VARCHAR, date VARCHAR)
What was the venue for the dates 7,8,10,11 Feb 1908?
SELECT venue FROM table_name_67 WHERE date = "7,8,10,11 feb 1908"
CREATE TABLE table_name_39 (in_production VARCHAR, toxic_materials VARCHAR, technology VARCHAR)
What's the production if the technology is sodium-sulfur batteries and yes to toxic materials?
SELECT in_production FROM table_name_39 WHERE toxic_materials = "yes" AND technology = "sodium-sulfur batteries"
CREATE TABLE table_name_74 (moving_parts VARCHAR, technology VARCHAR)
What are the moving parts of lead-acid?
SELECT moving_parts FROM table_name_74 WHERE technology = "lead-acid"
CREATE TABLE table_name_67 (room_temperature VARCHAR, in_production VARCHAR, toxic_materials VARCHAR)
What's the room temperature with no toxic materials and no ln production?
SELECT room_temperature FROM table_name_67 WHERE in_production = "no" AND toxic_materials = "no"
CREATE TABLE table_name_20 (technology VARCHAR, toxic_materials VARCHAR, moving_parts VARCHAR)
What's the technology when there are no moving parts but yes to toxic materials?
SELECT technology FROM table_name_20 WHERE toxic_materials = "yes" AND moving_parts = "no"
CREATE TABLE table_name_14 (score VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR)
What was the Score for T9 United States Player Kirk Triplett?
SELECT score FROM table_name_14 WHERE place = "t9" AND country = "united states" AND player = "kirk triplett"
CREATE TABLE table_name_22 (country VARCHAR, player VARCHAR)
What country is Tiger Woods from?
SELECT country FROM table_name_22 WHERE player = "tiger woods"
CREATE TABLE table_name_82 (assists INTEGER, club VARCHAR, goals VARCHAR)
what is the assists when the club is chicago fire and goals is more than 2?
SELECT SUM(assists) FROM table_name_82 WHERE club = "chicago fire" AND goals > 2
CREATE TABLE table_name_48 (assists INTEGER, goals INTEGER)
what is the most assists when the goals is less than 0?
SELECT MAX(assists) FROM table_name_48 WHERE goals < 0
CREATE TABLE table_name_41 (score_in_the_final VARCHAR, date VARCHAR)
What is Score in The Final, when Date is "1981"?
SELECT score_in_the_final FROM table_name_41 WHERE date = 1981
CREATE TABLE table_name_40 (opponent_in_the_final VARCHAR, date VARCHAR)
What is Opponent in The Final, when Date is "1976"?
SELECT opponent_in_the_final FROM table_name_40 WHERE date = 1976
CREATE TABLE table_name_63 (location_attendance VARCHAR, date VARCHAR)
What is Location Attendance, when Date is "December 30"?
SELECT location_attendance FROM table_name_63 WHERE date = "december 30"
CREATE TABLE table_name_28 (date VARCHAR, high_rebounds VARCHAR)
What is Date, when High Rebounds is "Amar'e Stoudemire (13)"?
SELECT date FROM table_name_28 WHERE high_rebounds = "amar'e stoudemire (13)"
CREATE TABLE table_name_27 (score VARCHAR, location_attendance VARCHAR, game VARCHAR)
What is Score, when Location Attendance is "US Airways Center 18,422", and when Game is less than 22?
SELECT score FROM table_name_27 WHERE location_attendance = "us airways center 18,422" AND game < 22
CREATE TABLE table_name_11 (score VARCHAR, game VARCHAR)
What is Score, when Game is "19"?
SELECT score FROM table_name_11 WHERE game = 19
CREATE TABLE table_name_16 (location_attendance VARCHAR, team VARCHAR)
What is Location Attendance, when Team is "Orlando"?
SELECT location_attendance FROM table_name_16 WHERE team = "orlando"
CREATE TABLE table_name_22 (record VARCHAR, date VARCHAR)
What is Record, when Date is "December 30"?
SELECT record FROM table_name_22 WHERE date = "december 30"
CREATE TABLE table_name_83 (theaters INTEGER, rank INTEGER)
Name the Theaters that has a Rank larger than 7?
SELECT MAX(theaters) FROM table_name_83 WHERE rank > 7
CREATE TABLE table_name_53 (gross_to_date VARCHAR, date VARCHAR)
Name the Gross-to-date which has a Date of august 23–25?
SELECT gross_to_date FROM table_name_53 WHERE date = "august 23–25"
CREATE TABLE table_name_84 (round INTEGER, position VARCHAR, pick VARCHAR)
Name the Round which has a Position of defensive back and a Pick of 226?
SELECT MIN(round) FROM table_name_84 WHERE position = "defensive back" AND pick = 226
CREATE TABLE table_name_68 (round VARCHAR, player VARCHAR)
Name the Round which has a Player of zack walz?
SELECT round FROM table_name_68 WHERE player = "zack walz"
CREATE TABLE table_name_57 (round INTEGER, position VARCHAR, player VARCHAR)
Name the Round which has a Position of defensive back and corey chavous?
SELECT MIN(round) FROM table_name_57 WHERE position = "defensive back" AND player = "corey chavous"
CREATE TABLE table_name_46 (pick VARCHAR, round VARCHAR, school_club_team VARCHAR)
Name all Pick that has a Round of 7, and a School/Club Team of arizona st.?
SELECT COUNT(pick) FROM table_name_46 WHERE round = 7 AND school_club_team = "arizona st."
CREATE TABLE table_name_18 (the_year INTEGER, regular_season VARCHAR)
Which Year has a Regular Season of 7th?
SELECT MAX(the_year) FROM table_name_18 WHERE regular_season = "7th"
CREATE TABLE table_name_97 (the_year INTEGER, division INTEGER)
Which Year has a Division larger than 3?
SELECT MAX(the_year) FROM table_name_97 WHERE division > 3
CREATE TABLE table_name_97 (the_year INTEGER, playoffs VARCHAR, division VARCHAR)
Which Year did not qualify for Playoffs, and had a Division smaller than 3?
SELECT SUM(the_year) FROM table_name_97 WHERE playoffs = "did not qualify" AND division < 3
CREATE TABLE table_name_59 (league VARCHAR, playoffs VARCHAR, the_year VARCHAR)
Which league did not qualify for the Playoffs, and had a Year larger than 2008?
SELECT league FROM table_name_59 WHERE playoffs = "did not qualify" AND the_year > 2008
CREATE TABLE table_name_5 (crowd INTEGER, home_team VARCHAR)
What is Lowest Crowd, when Home Team is Brisbane Lions?
SELECT MIN(crowd) FROM table_name_5 WHERE home_team = "brisbane lions"
CREATE TABLE table_name_38 (date VARCHAR, away_team VARCHAR)
What is Date, when Away Team is Kangaroos?
SELECT date FROM table_name_38 WHERE away_team = "kangaroos"
CREATE TABLE table_name_96 (round INTEGER, time VARCHAR)
What is the smallest round with a time of 1:12?
SELECT MIN(round) FROM table_name_96 WHERE time = "1:12"
CREATE TABLE table_name_68 (time VARCHAR, event VARCHAR)
How long was the time for the Legacy Fighting Championship 12?
SELECT time FROM table_name_68 WHERE event = "legacy fighting championship 12"
CREATE TABLE table_name_68 (country VARCHAR, to_par VARCHAR, player VARCHAR)
WHAT COUNTRY HAS A TO PAR OF +1, WITH WOODY AUSTIN?
SELECT country FROM table_name_68 WHERE to_par = "+1" AND player = "woody austin"
CREATE TABLE table_name_44 (to_par VARCHAR, player VARCHAR)
WHAT IS THE TO PAR FOR ERNIE ELS?
SELECT to_par FROM table_name_44 WHERE player = "ernie els"
CREATE TABLE table_name_65 (place VARCHAR, player VARCHAR)
WHAT PLACE DOES TOM LEHMAN HAVE?
SELECT place FROM table_name_65 WHERE player = "tom lehman"
CREATE TABLE table_name_18 (to_par VARCHAR, place VARCHAR)
WHAT IS THE TO PAR FOR NUMBER 1?
SELECT to_par FROM table_name_18 WHERE place = "1"
CREATE TABLE table_name_29 (player VARCHAR, to_par VARCHAR, country VARCHAR)
WHAT IS TEH PLAYER WITH A TO PAR OF +1 FOR SCOTLAND?
SELECT player FROM table_name_29 WHERE to_par = "+1" AND country = "scotland"
CREATE TABLE table_name_33 (paris_roubaix___fra__ VARCHAR, year VARCHAR)
Who won the Paris-Roubaix in 2006?
SELECT paris_roubaix___fra__ FROM table_name_33 WHERE year = 2006
CREATE TABLE table_name_71 (built VARCHAR, name VARCHAR)
Who built the conant creek pegram truss railroad bridge?
SELECT built FROM table_name_71 WHERE name = "conant creek pegram truss railroad bridge"
CREATE TABLE table_name_11 (location VARCHAR, built VARCHAR)
Where is the historic place that was built in 1910?
SELECT location FROM table_name_11 WHERE built = "1910"
CREATE TABLE table_name_88 (listed VARCHAR, built VARCHAR)
What is the list date of the historic place that was built 1896, 1914?
SELECT listed FROM table_name_88 WHERE built = "1896, 1914"
CREATE TABLE table_name_79 (listed VARCHAR, county VARCHAR)
When was the historic place listed that's in canyon county?
SELECT listed FROM table_name_79 WHERE county = "canyon"
CREATE TABLE table_name_53 (averaging_time VARCHAR, regulatory_citation VARCHAR)
what is the averaging time when the regulatory citation is 40 cfr 50.4(b)?
SELECT averaging_time FROM table_name_53 WHERE regulatory_citation = "40 cfr 50.4(b)"
CREATE TABLE table_name_11 (regulatory_citation VARCHAR, standard VARCHAR)
what is the regulatory citation when the standard is 15 μg/m³?
SELECT regulatory_citation FROM table_name_11 WHERE standard = "15 μg/m³"
CREATE TABLE table_name_79 (standard VARCHAR, pollutant VARCHAR, averaging_time VARCHAR)
what is the standard when the pollutant is o 3 and averaging time is 8-hour?
SELECT standard FROM table_name_79 WHERE pollutant = "o 3" AND averaging_time = "8-hour"
CREATE TABLE table_name_27 (pollutant VARCHAR, regulatory_citation VARCHAR, type VARCHAR)
what is the polluntant when the regulatory citation is 40 cfr 50.7(a) and the type is primary?
SELECT pollutant FROM table_name_27 WHERE regulatory_citation = "40 cfr 50.7(a)" AND type = "primary"
CREATE TABLE table_name_62 (type VARCHAR, averaging_time VARCHAR, standard VARCHAR)
what is the type when the averaging time is 1-hour and the standard is 0.12 ppm (235 μg/m³)?
SELECT type FROM table_name_62 WHERE averaging_time = "1-hour" AND standard = "0.12 ppm (235 μg/m³)"
CREATE TABLE table_name_63 (type VARCHAR, regulatory_citation VARCHAR)
what is the type when the regulatory citation is 40 cfr 50.9(a)?
SELECT type FROM table_name_63 WHERE regulatory_citation = "40 cfr 50.9(a)"
CREATE TABLE table_name_7 (league INTEGER, title_playoff INTEGER)
What is the highest League, when Title Playoff is greater than 0?
SELECT MAX(league) FROM table_name_7 WHERE title_playoff > 0
CREATE TABLE table_name_93 (title_playoff INTEGER, total VARCHAR, league VARCHAR)
What is the lowest Title Playoff, when Total is less than 3, and when League is greater than "2"?
SELECT MIN(title_playoff) FROM table_name_93 WHERE total < 3 AND league > 2
CREATE TABLE table_name_42 (title_playoff INTEGER, league VARCHAR, super_cup VARCHAR)
What is the lowest Title Playoff, when League is greater than 3, and when Super Cup is less than 0?
SELECT MIN(title_playoff) FROM table_name_42 WHERE league > 3 AND super_cup < 0
CREATE TABLE table_name_97 (super_cup VARCHAR, league VARCHAR, title_playoff VARCHAR, total VARCHAR)
What is the total number of Super Cup, when Title Playoff is "0", when Total is greater than 9, and when League is less than 11?
SELECT COUNT(super_cup) FROM table_name_97 WHERE title_playoff = 0 AND total > 9 AND league < 11
CREATE TABLE table_name_34 (score VARCHAR, team VARCHAR)
What was the score when the jazz played against toronto?
SELECT score FROM table_name_34 WHERE team = "toronto"
CREATE TABLE table_name_41 (date VARCHAR, team VARCHAR)
What is the date of the game against miami?
SELECT date FROM table_name_41 WHERE team = "miami"
CREATE TABLE table_name_37 (opponent VARCHAR, week VARCHAR)
Who was the Opponent in Week 7?
SELECT opponent FROM table_name_37 WHERE week = 7
CREATE TABLE table_name_86 (attendance VARCHAR, date VARCHAR)
What was the Attendance on November 7, 1999?
SELECT attendance FROM table_name_86 WHERE date = "november 7, 1999"
CREATE TABLE table_name_91 (opponent VARCHAR, result VARCHAR)
Who was the Opponent of the Game with a Result of l 23-41?
SELECT opponent FROM table_name_91 WHERE result = "l 23-41"
CREATE TABLE table_name_7 (attendance VARCHAR, week VARCHAR)
What was the Attendance in Week 1?
SELECT attendance FROM table_name_7 WHERE week = 1
CREATE TABLE table_name_78 (avg_finish INTEGER, starts VARCHAR, top_10 VARCHAR)
How much average Finish has Starts of 9, and a Top 10 smaller than 0?
SELECT SUM(avg_finish) FROM table_name_78 WHERE starts = 9 AND top_10 < 0
CREATE TABLE table_name_93 (winnings VARCHAR, top_10 VARCHAR, starts VARCHAR, poles VARCHAR)
Which Winnings have Starts larger than 34, and Poles smaller than 1, and a Top 10 of 5?
SELECT winnings FROM table_name_93 WHERE starts > 34 AND poles < 1 AND top_10 = 5
CREATE TABLE table_name_4 (diameter__km_ INTEGER, name VARCHAR, year_named VARCHAR)
Which Diameter (km) has a Name of alma-merghen planitia, and a Year named smaller than 1997?
SELECT MAX(diameter__km_) FROM table_name_4 WHERE name = "alma-merghen planitia" AND year_named < 1997
CREATE TABLE table_name_87 (longitude VARCHAR, latitude VARCHAR, name VARCHAR)
Which Longitude has a Latitude of 73.0s, and a Name of aibarchin planitia?
SELECT longitude FROM table_name_87 WHERE latitude = "73.0s" AND name = "aibarchin planitia"
CREATE TABLE table_name_84 (year_named INTEGER, name VARCHAR, diameter__km_ VARCHAR)
Which Year named has a Name of nuptadi planitia, and a Diameter (km) larger than 1,200.0?
SELECT MIN(year_named) FROM table_name_84 WHERE name = "nuptadi planitia" AND diameter__km_ > 1 OFFSET 200.0
CREATE TABLE table_name_79 (latitude VARCHAR, year_named VARCHAR, name VARCHAR)
Which Latitude has a Year named smaller than 1997, and a Name of aino planitia?
SELECT latitude FROM table_name_79 WHERE year_named < 1997 AND name = "aino planitia"
CREATE TABLE table_name_5 (tournament VARCHAR, opponent VARCHAR)
In what tournament did Cipolla face Sergio Roitman?
SELECT tournament FROM table_name_5 WHERE opponent = "sergio roitman"
CREATE TABLE table_name_69 (rating VARCHAR, share VARCHAR, viewers__millions_ VARCHAR)
What is the Rating/Share (18-49) that also has a Share greater than 10 and 12.42 million Viewers?
SELECT rating / SHARE(18 - 49) FROM table_name_69 WHERE share > 10 AND viewers__millions_ = 12.42
CREATE TABLE table_name_6 (week INTEGER, record VARCHAR)
Which Week has a Record of 2-9?
SELECT MIN(week) FROM table_name_6 WHERE record = "2-9"
CREATE TABLE table_name_44 (Id VARCHAR)
What is the 1993 finish for the event that had a 1990 of QF and 1995 of 2R?
SELECT 1993 FROM table_name_44 WHERE 1990 = "qf" AND 1995 = "2r"
CREATE TABLE table_name_14 (tournament VARCHAR)
What is the 1994 finish for the Miami tournament?
SELECT 1994 FROM table_name_14 WHERE tournament = "miami"
CREATE TABLE table_name_88 (to_par VARCHAR, player VARCHAR, country VARCHAR, score VARCHAR)
What is the to par score from Brad Faxon of the United States with a score of 73-68=141?
SELECT to_par FROM table_name_88 WHERE country = "united states" AND score = 73 - 68 = 141 AND player = "brad faxon"
CREATE TABLE table_name_1 (to_par VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)
What's the to par score in T8 place from Zimbabwe and has a score of 73-68=141?
SELECT to_par FROM table_name_1 WHERE place = "t8" AND score = 73 - 68 = 141 AND country = "zimbabwe"
CREATE TABLE table_name_94 (score VARCHAR, place VARCHAR, player VARCHAR)
What's the score of Lee Janzen in T4 place?
SELECT score FROM table_name_94 WHERE place = "t4" AND player = "lee janzen"
CREATE TABLE table_name_36 (score VARCHAR, place VARCHAR, player VARCHAR)
What's the score of Jeff Maggert in T2 place?
SELECT score FROM table_name_36 WHERE place = "t2" AND player = "jeff maggert"
CREATE TABLE table_name_46 (to_par VARCHAR, score VARCHAR)
What's the to par when the score was 68-73=141?
SELECT to_par FROM table_name_46 WHERE score = 68 - 73 = 141
CREATE TABLE table_name_75 (games INTEGER, points VARCHAR)
What's the total number of game that has 377 points?
SELECT SUM(games) FROM table_name_75 WHERE points = 377
CREATE TABLE table_name_11 (points VARCHAR, name VARCHAR, rank VARCHAR)
What's the total number of points that the rank is less than 5 and has Tiago Splitter?
SELECT COUNT(points) FROM table_name_11 WHERE name = "tiago splitter" AND rank < 5
CREATE TABLE table_name_77 (games INTEGER, points VARCHAR, name VARCHAR)
What is the total number of games that has Juan Carlos Navarro and more than 266 points?
SELECT SUM(games) FROM table_name_77 WHERE points > 266 AND name = "juan carlos navarro"
CREATE TABLE table_name_87 (rank INTEGER, points VARCHAR, team VARCHAR, name VARCHAR)
What's the rank of Igor Rakočević of Tau Cerámica with more than 377 points?
SELECT SUM(rank) FROM table_name_87 WHERE team = "tau cerámica" AND name = "igor rakočević" AND points > 377
CREATE TABLE table_name_62 (rank VARCHAR, games VARCHAR, team VARCHAR, points VARCHAR)
What's the rank of the Tau Cerámica that has 377 points and more than 21 games?
SELECT COUNT(rank) FROM table_name_62 WHERE team = "tau cerámica" AND points = 377 AND games > 21
CREATE TABLE table_name_6 (dates VARCHAR, squadron VARCHAR)
What are the dates of squadron 33?
SELECT dates FROM table_name_6 WHERE squadron = "squadron 33"
CREATE TABLE table_name_67 (institution VARCHAR, chief_judge VARCHAR, year VARCHAR, award VARCHAR)
What institution won 2nd more recently than 2007 with Peter Agre as Chief Judge?
SELECT institution FROM table_name_67 WHERE year > 2007 AND award = "2nd" AND chief_judge = "peter agre"
CREATE TABLE table_name_78 (name VARCHAR, chief_judge VARCHAR, award VARCHAR)
What student won 3rd with Peter Agre as Chief Judge?
SELECT name FROM table_name_78 WHERE chief_judge = "peter agre" AND award = "3rd"
CREATE TABLE table_name_82 (institution VARCHAR, year VARCHAR, name VARCHAR)
What institution won in 2010 with student Cheng Herng Yi?
SELECT institution FROM table_name_82 WHERE year > 2010 AND name = "cheng herng yi"
CREATE TABLE table_name_70 (position INTEGER, name VARCHAR, played VARCHAR)
What was the lowest postion of ehc straubing ii when they played less than 10 games?
SELECT MIN(position) FROM table_name_70 WHERE name = "ehc straubing ii" AND played < 10
CREATE TABLE table_name_13 (drawn INTEGER, points VARCHAR, played VARCHAR)
What was the drawn amount for teams with points of 12 and played smaller than 10?
SELECT AVG(drawn) FROM table_name_13 WHERE points = 12 AND played < 10
CREATE TABLE table_name_74 (played VARCHAR, position VARCHAR, drawn VARCHAR, points VARCHAR)
How many games were played by the team with 2 draws, less than 16 points and a position higher than 5?
SELECT COUNT(played) FROM table_name_74 WHERE drawn = 2 AND points < 16 AND position > 5
CREATE TABLE table_name_91 (grid VARCHAR, driver VARCHAR)
What was the grid of Buddy Rice?
SELECT grid FROM table_name_91 WHERE driver = "buddy rice"