context
stringlengths
27
484
question
stringlengths
12
244
answer
stringlengths
32
484
CREATE TABLE table_name_25 (sets_won INTEGER, legs_won INTEGER)
What is the most sets won with less than 1 legs won?
SELECT MAX(sets_won) FROM table_name_25 WHERE legs_won < 1
CREATE TABLE table_name_4 (rank INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR)
What is the total of rank when silver is more than 1, gold is 2, and total is more than 4?
SELECT SUM(rank) FROM table_name_4 WHERE silver > 1 AND gold = 2 AND total > 4
CREATE TABLE table_name_29 (location VARCHAR, bronze VARCHAR)
Where did Michael Eric Bibat win bronze?
SELECT location FROM table_name_29 WHERE bronze = "michael eric bibat"
CREATE TABLE table_name_18 (fastest_lap VARCHAR, winning_driver VARCHAR)
When Michael Schumacher won the race, who had the fastest lap?
SELECT fastest_lap FROM table_name_18 WHERE winning_driver = "michael schumacher"
CREATE TABLE table_name_81 (Id VARCHAR)
What is 1995 Grand Slam Tournament if 1997 is LQ and 1989 is 1R?
SELECT 1995 FROM table_name_81 WHERE 1997 = "lq" AND 1989 = "1r"
CREATE TABLE table_name_31 (status VARCHAR, name VARCHAR)
What is the status of Norris?
SELECT status FROM table_name_31 WHERE name = "norris"
CREATE TABLE table_name_84 (long INTEGER, yards VARCHAR, car VARCHAR)
Who has a highest Long with 26 Yards and less than 9 Car?
SELECT MAX(long) FROM table_name_84 WHERE yards = "26" AND car < 9
CREATE TABLE table_name_37 (opposing_pitcher VARCHAR, inning VARCHAR, team VARCHAR, location VARCHAR)
Who is the Opposing Pitcher when Team is phillies, Location is pittsburgh, and Inning is 8th?
SELECT opposing_pitcher FROM table_name_37 WHERE team = "phillies" AND location = "pittsburgh" AND inning = "8th"
CREATE TABLE table_30134667_2 (circuit VARCHAR, location VARCHAR)
What is the circuit located in baltimore , maryland?
SELECT circuit FROM table_30134667_2 WHERE location = "Baltimore , Maryland"
CREATE TABLE table_name_17 (record VARCHAR, location_attendance VARCHAR)
What is Record, when Location Attendance is "TD Banknorth Garden 18,624"?
SELECT record FROM table_name_17 WHERE location_attendance = "td banknorth garden 18,624"
CREATE TABLE table_name_15 (year VARCHAR, qual VARCHAR)
The 147.481 Qual, happened in what year?
SELECT year FROM table_name_15 WHERE qual = "147.481"
CREATE TABLE table_name_86 (city VARCHAR, stadium VARCHAR)
What city houses the Ciro Vigorito stadium?
SELECT city FROM table_name_86 WHERE stadium = "ciro vigorito"
CREATE TABLE table_20090682_4 (driver VARCHAR, best_time_of_day VARCHAR)
which driver got best time of day 1:16.93
SELECT driver FROM table_20090682_4 WHERE best_time_of_day = "1:16.93"
CREATE TABLE table_name_44 (species_authority VARCHAR, name VARCHAR)
Which Species/Authority has a Name of true's beaked whale?
SELECT species_authority FROM table_name_44 WHERE name = "true's beaked whale"
CREATE TABLE table_24732149_2 (date VARCHAR, fastest_lap VARCHAR)
What date did Mike Rockenfeller have the fastest lap?
SELECT date FROM table_24732149_2 WHERE fastest_lap = "Mike Rockenfeller"
CREATE TABLE table_name_27 (home_team VARCHAR, venue VARCHAR)
What was the home team's score at Victoria Park?
SELECT home_team AS score FROM table_name_27 WHERE venue = "victoria park"
CREATE TABLE table_name_99 (wins VARCHAR, year VARCHAR, matches VARCHAR)
What is the total number of wins in 2010, when there were more than 14 matches?
SELECT COUNT(wins) FROM table_name_99 WHERE year = "2010" AND matches > 14
CREATE TABLE table_name_41 (year INTEGER, venue VARCHAR, driver VARCHAR)
What was the most recent race at Kyalami with Keke Rosberg competing?
SELECT MAX(year) FROM table_name_41 WHERE venue = "kyalami" AND driver = "keke rosberg"
CREATE TABLE table_name_34 (constructor VARCHAR, grid VARCHAR)
Who constructed grid 14?
SELECT constructor FROM table_name_34 WHERE grid = 14
CREATE TABLE table_name_96 (laps VARCHAR, driver VARCHAR)
How many laps does olivier panis have?
SELECT laps FROM table_name_96 WHERE driver = "olivier panis"
CREATE TABLE table_name_68 (ap_increase__mv_ VARCHAR, ap_duration__ms_ VARCHAR)
What AP increase has an AP duration of 0.75?
SELECT ap_increase__mv_ FROM table_name_68 WHERE ap_duration__ms_ = "0.75"
CREATE TABLE table_2679061_4 (nationality VARCHAR, player VARCHAR)
What is the nationality of Bob Essensa?
SELECT nationality FROM table_2679061_4 WHERE player = "Bob Essensa"
CREATE TABLE table_name_77 (throughput__including_analysis_ VARCHAR, analysis_time VARCHAR)
what is the throughput (including analysis) when the analysis time is 4 hours?
SELECT throughput__including_analysis_ FROM table_name_77 WHERE analysis_time = "4 hours"
CREATE TABLE table_name_1 (game_site VARCHAR, date VARCHAR)
Which Game Site has a Date of october 17, 1999?
SELECT game_site FROM table_name_1 WHERE date = "october 17, 1999"
CREATE TABLE table_name_45 (rank INTEGER, name VARCHAR, games VARCHAR)
What is the sum of Rank, when Name is Will Solomon, and when Games is greater than 21?
SELECT SUM(rank) FROM table_name_45 WHERE name = "will solomon" AND games > 21
CREATE TABLE table_229059_2 (dates VARCHAR, tournament_location VARCHAR)
When was the tournament in Forest Lake Country Club held?
SELECT dates FROM table_229059_2 WHERE tournament_location = "Forest Lake country Club"
CREATE TABLE table_name_9 (record VARCHAR, date VARCHAR)
What was the record for the game on April 9, 2008?
SELECT record FROM table_name_9 WHERE date = "april 9, 2008"
CREATE TABLE table_name_85 (date VARCHAR, loss VARCHAR)
What was the date of the game that had a loss of Burns (0-1)?
SELECT date FROM table_name_85 WHERE loss = "burns (0-1)"
CREATE TABLE table_name_95 (avg_g INTEGER, gain VARCHAR, loss VARCHAR, name VARCHAR)
What is the sum of Avg/G for Dan Dierking when the Loss is 0 and the Gain is more than 34?
SELECT SUM(avg_g) FROM table_name_95 WHERE loss = 0 AND name = "dan dierking" AND gain > 34
CREATE TABLE table_name_38 (heat INTEGER, name VARCHAR)
What is the average Heat for anjelika solovieva?
SELECT AVG(heat) FROM table_name_38 WHERE name = "anjelika solovieva"
CREATE TABLE table_17480471_3 (battle_of_the_planets VARCHAR, ova__harmony_gold_dub_ VARCHAR)
Which battle of the planets where ova (harmony gold dub) is solaris?
SELECT battle_of_the_planets FROM table_17480471_3 WHERE ova__harmony_gold_dub_ = "Solaris"
CREATE TABLE table_name_70 (date VARCHAR, sport VARCHAR)
Which date had a sport of Academics?
SELECT date FROM table_name_70 WHERE sport = "academics"
CREATE TABLE table_name_84 (points INTEGER, place VARCHAR, draw VARCHAR)
What is the highest point total that placed 3rd and has a draw larger than 5?
SELECT MAX(points) FROM table_name_84 WHERE place = "3rd" AND draw > 5
CREATE TABLE table_name_92 (date VARCHAR, assist_pass VARCHAR)
On what date is there an assist/pass by Shannon Boxx?
SELECT date FROM table_name_92 WHERE assist_pass = "shannon boxx"
CREATE TABLE table_name_33 (date VARCHAR, tie_no VARCHAR)
What is Date, when Tie no is "3"?
SELECT date FROM table_name_33 WHERE tie_no = "3"
CREATE TABLE table_2509350_3 (language VARCHAR, villa_alcalá_municipality VARCHAR)
Name the language for villa 1167
SELECT language FROM table_2509350_3 WHERE villa_alcalá_municipality = 1167
CREATE TABLE table_2588674_1 (population__2000_census__ INTEGER, area_km² VARCHAR)
What is the population for the place with an area of 2.33 km2?
SELECT MAX(population__2000_census__) FROM table_2588674_1 WHERE area_km² = "2.33"
CREATE TABLE table_name_22 (skip VARCHAR, lead VARCHAR)
Which Skip did marju velga lead?
SELECT skip FROM table_name_22 WHERE lead = "marju velga"
CREATE TABLE table_name_76 (laps VARCHAR, time_retired VARCHAR)
What is the number of laps for the Time/Retired of +16.445?
SELECT laps FROM table_name_76 WHERE time_retired = "+16.445"
CREATE TABLE table_name_38 (pos INTEGER, car__number VARCHAR, team VARCHAR)
Which Pos has a Car # larger than 2, and a Team of billy ballew motorsports?
SELECT AVG(pos) FROM table_name_38 WHERE car__number > 2 AND team = "billy ballew motorsports"
CREATE TABLE table_name_77 (time VARCHAR, geust VARCHAR)
What is Time, when Geust is AC Bellinzona (CHL)?
SELECT time FROM table_name_77 WHERE geust = "ac bellinzona (chl)"
CREATE TABLE table_name_5 (circuit VARCHAR, winning_constructor VARCHAR, name VARCHAR)
Tell me the circuit for alfa romeo swedish ice race
SELECT circuit FROM table_name_5 WHERE winning_constructor = "alfa romeo" AND name = "swedish ice race"
CREATE TABLE table_15463188_1 (school_club_team VARCHAR, position VARCHAR)
Name the school/club for guard
SELECT school_club_team FROM table_15463188_1 WHERE position = "Guard"
CREATE TABLE table_name_24 (record VARCHAR, visitor VARCHAR)
What was the Record of the game in which the Trail Blazers was the visiting team?
SELECT record FROM table_name_24 WHERE visitor = "trail blazers"
CREATE TABLE table_name_62 (smith VARCHAR, ashmolean VARCHAR)
What is the smith with a 16 ashmolean?
SELECT smith FROM table_name_62 WHERE ashmolean = 16
CREATE TABLE table_22597626_6 (championship VARCHAR, opponent_in_the_final VARCHAR)
Name the championship for peter mcnamara
SELECT championship FROM table_22597626_6 WHERE opponent_in_the_final = "Peter McNamara"
CREATE TABLE table_name_35 (episode INTEGER, performer_4 VARCHAR)
What is the average episode number where jimmy mulville was the 4th performer?
SELECT AVG(episode) FROM table_name_35 WHERE performer_4 = "jimmy mulville"
CREATE TABLE table_name_67 (pick INTEGER, position VARCHAR, player VARCHAR)
What was the lowest pick for the RHP position and player Mike Biko?
SELECT MIN(pick) FROM table_name_67 WHERE position = "rhp" AND player = "mike biko"
CREATE TABLE table_name_68 (third_place VARCHAR, winner VARCHAR)
Who earned third place when the winner was Paul Haarhuis?
SELECT third_place FROM table_name_68 WHERE winner = "paul haarhuis"
CREATE TABLE table_name_27 (longitude VARCHAR, latitude VARCHAR)
What is the Longitude of the 61.0s Latitude?
SELECT longitude FROM table_name_27 WHERE latitude = "61.0s"
CREATE TABLE table_name_45 (result VARCHAR, game_site VARCHAR)
Name the result for arrowhead stadium
SELECT result FROM table_name_45 WHERE game_site = "arrowhead stadium"
CREATE TABLE table_name_33 (champion VARCHAR, israel_bowl VARCHAR)
Name the champion for israel bowl of iv
SELECT champion FROM table_name_33 WHERE israel_bowl = "iv"
CREATE TABLE table_2248991_2 (world_rank VARCHAR, nation VARCHAR)
How many items were listed under world rank under the nation of Nigeria?
SELECT COUNT(world_rank) FROM table_2248991_2 WHERE nation = "Nigeria"
CREATE TABLE table_22514845_4 (year INTEGER, reporters VARCHAR, s_analyst VARCHAR)
In which year were howard cosell and jack whitaker reporters and s analyst is bill hartack?
SELECT MIN(year) FROM table_22514845_4 WHERE reporters = "Howard Cosell and Jack Whitaker" AND s_analyst = "Bill Hartack"
CREATE TABLE table_name_53 (venue VARCHAR, away_team VARCHAR)
Where was the game when Melbourne was the away team?
SELECT venue FROM table_name_53 WHERE away_team = "melbourne"
CREATE TABLE table_name_25 (area__km²_ INTEGER, capital VARCHAR, population___percentage_ VARCHAR)
What is the average area that has a Capital of camagüey, with a Population (%) larger than 7.02?
SELECT AVG(area__km²_) FROM table_name_25 WHERE capital = "camagüey" AND population___percentage_ > 7.02
CREATE TABLE table_name_36 (position INTEGER, played VARCHAR, goal_difference VARCHAR, drawn VARCHAR, lost VARCHAR)
What is the sum of the positions for the player who had less than 25 losses, a goal difference of +20, 10 draws, and played less than 42?
SELECT SUM(position) FROM table_name_36 WHERE drawn = 10 AND lost < 25 AND goal_difference = "+20" AND played < 42
CREATE TABLE table_name_61 (time VARCHAR, event VARCHAR)
When has an Event of ufc 123?
SELECT time FROM table_name_61 WHERE event = "ufc 123"
CREATE TABLE table_name_44 (country VARCHAR, place VARCHAR, player VARCHAR)
What is Country, when Place is "T3", and when Player is "Jim Thorpe"?
SELECT country FROM table_name_44 WHERE place = "t3" AND player = "jim thorpe"
CREATE TABLE table_name_90 (rank INTEGER, floors VARCHAR, name VARCHAR)
What is the rank of Etihad Tower 5, with less than 62 floors?
SELECT MIN(rank) FROM table_name_90 WHERE floors < 62 AND name = "etihad tower 5"
CREATE TABLE table_name_65 (team VARCHAR, qual_1 VARCHAR)
What is Team, when Qual 1 is 1:16.417?
SELECT team FROM table_name_65 WHERE qual_1 = "1:16.417"
CREATE TABLE table_name_3 (overall INTEGER, pick__number VARCHAR, name VARCHAR)
Which Overall is the highest one that has a Pick # smaller than 9, and a Name of mike pearson?
SELECT MAX(overall) FROM table_name_3 WHERE pick__number < 9 AND name = "mike pearson"
CREATE TABLE table_13619135_5 (record VARCHAR, score VARCHAR)
What was the record when the score was w 108–93 (ot)?
SELECT record FROM table_13619135_5 WHERE score = "W 108–93 (OT)"
CREATE TABLE table_name_32 (away_team VARCHAR)
What was the away team score, when the away team was Fitzroy?
SELECT away_team AS score FROM table_name_32 WHERE away_team = "fitzroy"
CREATE TABLE table_name_16 (points INTEGER, year VARCHAR, entrant VARCHAR, chassis VARCHAR)
What are the average points of Scuderia Scribante with a Brabham bt11 chassis before 1968?
SELECT AVG(points) FROM table_name_16 WHERE entrant = "scuderia scribante" AND chassis = "brabham bt11" AND year < 1968
CREATE TABLE table_29997127_4 (team VARCHAR, date VARCHAR)
What team did the suns play on April 21?
SELECT team FROM table_29997127_4 WHERE date = "April 21"
CREATE TABLE table_name_12 (_percentage_2006 VARCHAR, _percentage_2001 VARCHAR, seats_2001 VARCHAR, seats_2006 VARCHAR)
What is the %2006 that has fewer seats than 23 in Seats 2001, more seats than 4 in 2006 Seats, and a % in 2001 of 25.4?
SELECT _percentage_2006 FROM table_name_12 WHERE seats_2001 < 23 AND seats_2006 > 4 AND _percentage_2001 = 25.4
CREATE TABLE table_23718905_6 (matchup_results VARCHAR, city VARCHAR)
How many different matchup/results appear in San Diego, California?
SELECT COUNT(matchup_results) FROM table_23718905_6 WHERE city = "San Diego, California"
CREATE TABLE table_name_56 (years VARCHAR, points VARCHAR, goals VARCHAR)
What years did the player play when he scored 78 points and 22 goals?
SELECT years FROM table_name_56 WHERE points = "78" AND goals = "22"
CREATE TABLE table_name_76 (median_family_income VARCHAR, median_household_income VARCHAR)
What is Median Family Income, when Median Household Income is "$50,717"?
SELECT median_family_income FROM table_name_76 WHERE median_household_income = "$50,717"
CREATE TABLE table_name_44 (venue VARCHAR, competition VARCHAR, result VARCHAR)
What venue were the 1986 Asian games resulting in 2-0 played at?
SELECT venue FROM table_name_44 WHERE competition = "1986 asian games" AND result = "2-0"
CREATE TABLE table_name_99 (title VARCHAR, pages VARCHAR)
Tell me the title for pages of 96
SELECT title FROM table_name_99 WHERE pages = 96
CREATE TABLE table_13857700_1 (mens_singles VARCHAR, mens_doubles VARCHAR)
who is the the mens singles with mens doubles being kaj lindfors kaj osterberg
SELECT mens_singles FROM table_13857700_1 WHERE mens_doubles = "Kaj Lindfors Kaj Osterberg"
CREATE TABLE table_25997153_1 (us_viewers__million_ VARCHAR, directed_by VARCHAR)
how many million u.s. viewers watched the episode directed by dan lerner?
SELECT us_viewers__million_ FROM table_25997153_1 WHERE directed_by = "Dan Lerner"
CREATE TABLE table_24231638_3 (replaced_by VARCHAR, date_of_appointment VARCHAR)
Who replaced on the date of appointment 2 november 2010?
SELECT replaced_by FROM table_24231638_3 WHERE date_of_appointment = "2 November 2010"
CREATE TABLE table_19897294_11 (no_in_season VARCHAR, no_in_series VARCHAR)
What episode in the season was episode us18 in the series?
SELECT COUNT(no_in_season) FROM table_19897294_11 WHERE no_in_series = "US18"
CREATE TABLE table_name_23 (division VARCHAR, team_season VARCHAR)
Which division were the Brewers a part of in the 1987 season?
SELECT division FROM table_name_23 WHERE team_season = "1987"
CREATE TABLE table_name_26 (date VARCHAR, loss VARCHAR)
What was the date of the game with a loss of Wakefield (5-2)?
SELECT date FROM table_name_26 WHERE loss = "wakefield (5-2)"
CREATE TABLE table_19487922_1 (seasons VARCHAR, country VARCHAR)
How many seasons for Monaco?
SELECT seasons FROM table_19487922_1 WHERE country = "Monaco"
CREATE TABLE table_name_25 (points INTEGER, games INTEGER)
Name the sum of points with games less than 5
SELECT SUM(points) FROM table_name_25 WHERE games < 5
CREATE TABLE table_27700530_9 (record VARCHAR, date VARCHAR)
What was the team's record on november 10?
SELECT record FROM table_27700530_9 WHERE date = "November 10"
CREATE TABLE table_name_95 (final_position___tour VARCHAR, year VARCHAR, final_position___giro VARCHAR, rider VARCHAR)
What is the number of final position-tours Mariano Piccoli, who has more than 20 final position-giros, before 1999 has?
SELECT COUNT(final_position___tour) FROM table_name_95 WHERE final_position___giro > 20 AND rider = "mariano piccoli" AND year < 1999
CREATE TABLE table_name_65 (ends INTEGER, goals INTEGER)
Add up all the Ends columns that have goals smaller than 0.
SELECT SUM(ends) FROM table_name_65 WHERE goals < 0
CREATE TABLE table_name_62 (model VARCHAR, seats VARCHAR)
Which Model had 37-78 seats?
SELECT model FROM table_name_62 WHERE seats = "37-78"
CREATE TABLE table_25840200_1 (titles VARCHAR, date VARCHAR, division VARCHAR)
What are the titles for the November 9 Super Bantamweight division?
SELECT titles FROM table_25840200_1 WHERE date = "November 9" AND division = "Super Bantamweight"
CREATE TABLE table_name_21 (density__hab__km²__ VARCHAR, population_under_1_year_old_censo_2007_hab_ VARCHAR)
What is the density (hab/km²) with a population under 1 year-old censo 2007(hab) of * data from the census taken by the Inei?
SELECT density__hab__km²__ FROM table_name_21 WHERE population_under_1_year_old_censo_2007_hab_ = "* data from the census taken by the inei"
CREATE TABLE table_22883210_7 (date VARCHAR, record VARCHAR)
What was the date for the record 23-13?
SELECT date FROM table_22883210_7 WHERE record = "23-13"
CREATE TABLE table_name_24 (react VARCHAR, athlete VARCHAR, lane VARCHAR)
How many reactions have an Athlete of alleyne francique, and a Lane larger than 9?
SELECT COUNT(react) FROM table_name_24 WHERE athlete = "alleyne francique" AND lane > 9
CREATE TABLE table_name_33 (status VARCHAR, date VARCHAR)
What status has 15/04/1967 as the date?
SELECT status FROM table_name_33 WHERE date = "15/04/1967"
CREATE TABLE table_name_29 (partnering VARCHAR, tournament VARCHAR)
Who was the partner for the tournament in Lyon, France?
SELECT partnering FROM table_name_29 WHERE tournament = "lyon, france"
CREATE TABLE table_2342078_2 (directed_by VARCHAR, written_by VARCHAR)
Who are all directors when Sherwood Schwartz is the writer?
SELECT directed_by FROM table_2342078_2 WHERE written_by = "Sherwood Schwartz"
CREATE TABLE table_name_96 (roll INTEGER, name VARCHAR, gender VARCHAR, authority VARCHAR)
Name the highest roll for coed and authority of state integrated with sacred heart school
SELECT MAX(roll) FROM table_name_96 WHERE gender = "coed" AND authority = "state integrated" AND name = "sacred heart school"
CREATE TABLE table_name_27 (record VARCHAR, date VARCHAR)
What was the record for the game on March 25?
SELECT record FROM table_name_27 WHERE date = "march 25"
CREATE TABLE table_name_45 (class VARCHAR, machine VARCHAR, points VARCHAR)
What class has nsr250 as the machine, with points greater than 97?
SELECT class FROM table_name_45 WHERE machine = "nsr250" AND points > 97
CREATE TABLE table_name_4 (season VARCHAR, division VARCHAR)
In which Season was the Division Washington Bullets?
SELECT season FROM table_name_4 WHERE division = "washington bullets"
CREATE TABLE table_name_95 (loss INTEGER, name VARCHAR, long VARCHAR)
What is the lowest Loss for the player named total that has a long greater than 55?
SELECT MIN(loss) FROM table_name_95 WHERE name = "total" AND long > 55
CREATE TABLE table_name_99 (match INTEGER, lost VARCHAR, team VARCHAR)
What is the lowest match that has a lost greater than 3, and kolejarz rawicz as the team?
SELECT MIN(match) FROM table_name_99 WHERE lost > 3 AND team = "kolejarz rawicz"
CREATE TABLE table_20466963_13 (guest_4 VARCHAR, date VARCHAR)
Name the guest 4 for 8 december
SELECT guest_4 FROM table_20466963_13 WHERE date = "8 December"
CREATE TABLE table_name_77 (surface VARCHAR, date VARCHAR)
What is the Surface of the match played on October 5, 1987?
SELECT surface FROM table_name_77 WHERE date = "october 5, 1987"
CREATE TABLE table_name_81 (season VARCHAR, number VARCHAR, name VARCHAR)
In what season did Omar Thomas play, with a jersey number larger than 15?
SELECT season FROM table_name_81 WHERE number > 15 AND name = "omar thomas"