answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT team FROM table_name_44 WHERE school = "milford"
CREATE TABLE table_name_44 (team VARCHAR, school VARCHAR)
Name the team for school of milford
SELECT AVG(points) FROM table_name_14 WHERE chassis = "stevens" AND year < 1950
CREATE TABLE table_name_14 (points INTEGER, chassis VARCHAR, year VARCHAR)
Name the average points for chassis of stevens and year less than 1950
SELECT MIN(points) FROM table_name_54 WHERE chassis = "kurtis kraft 500a"
CREATE TABLE table_name_54 (points INTEGER, chassis VARCHAR)
Name the least points for chassis of kurtis kraft 500a
SELECT COUNT(year) FROM table_name_89 WHERE chassis = "kurtis kraft 4000" AND points > 2
CREATE TABLE table_name_89 (year VARCHAR, chassis VARCHAR, points VARCHAR)
Name the total number of year for chassis of kurtis kraft 4000 and points more than 2
SELECT visiting_team FROM table_name_24 WHERE week < 12 AND stadium = "sports authority field at mile high"
CREATE TABLE table_name_24 (visiting_team VARCHAR, week VARCHAR, stadium VARCHAR)
Who was the visiting team on weeks under 12 and at Sports Authority Field at Mile High?
SELECT visiting_team FROM table_name_36 WHERE stadium = "raymond james stadium"
CREATE TABLE table_name_36 (visiting_team VARCHAR, stadium VARCHAR)
Who was the visiting team at Raymond James Stadium?
SELECT date FROM table_name_75 WHERE visiting_team = "houston texans"
CREATE TABLE table_name_75 (date VARCHAR, visiting_team VARCHAR)
What date had the Houston Texans as visitors?
SELECT year FROM table_name_55 WHERE percentage = "9.66%"
CREATE TABLE table_name_55 (year VARCHAR, percentage VARCHAR)
Name the year with percentage of 9.66%
SELECT COUNT(popular_votes) FROM table_name_74 WHERE office = "mn attorney general" AND year = 1994
CREATE TABLE table_name_74 (popular_votes VARCHAR, office VARCHAR, year VARCHAR)
Name the total number of popular votes for mn attorney general in 1994
SELECT AVG(popular_votes) FROM table_name_35 WHERE percentage = "4.94%" AND year > 1990
CREATE TABLE table_name_35 (popular_votes INTEGER, percentage VARCHAR, year VARCHAR)
Name the average popular votes in years after 1990 with percentage of 4.94%
SELECT MIN(popular_votes) FROM table_name_35 WHERE year < 1994 AND percentage = "0.96%"
CREATE TABLE table_name_35 (popular_votes INTEGER, year VARCHAR, percentage VARCHAR)
Name the least popular votes for year less than 1994 and percentage of 0.96%
SELECT player FROM table_name_57 WHERE place = "t8" AND country = "united states"
CREATE TABLE table_name_57 (player VARCHAR, place VARCHAR, country VARCHAR)
What United States player holds the place of t8?`
SELECT to_par FROM table_name_51 WHERE score = 68 AND country = "argentina"
CREATE TABLE table_name_51 (to_par VARCHAR, score VARCHAR, country VARCHAR)
What country of argentina has the To par of 68?
SELECT to_par FROM table_name_62 WHERE country = "united states" AND place = "t8" AND player = "tiger woods"
CREATE TABLE table_name_62 (to_par VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)
What is the To par and holds the t8 place of the United States player Tiger Woods?
SELECT country FROM table_name_50 WHERE score = 69 AND player = "miguel ángel jiménez"
CREATE TABLE table_name_50 (country VARCHAR, score VARCHAR, player VARCHAR)
What country does miguel ángel jiménez player for and has a score of 69?
SELECT date FROM table_name_32 WHERE track = "truro"
CREATE TABLE table_name_32 (date VARCHAR, track VARCHAR)
What is the date of the race at Truro?
SELECT year FROM table_name_88 WHERE result = "nominated" AND category = "outstanding actor in a musical"
CREATE TABLE table_name_88 (year VARCHAR, result VARCHAR, category VARCHAR)
Which Year has a nominated outstanding actor in a musical?
SELECT award FROM table_name_92 WHERE result = "nominated" AND category = "outstanding choreography"
CREATE TABLE table_name_92 (award VARCHAR, result VARCHAR, category VARCHAR)
Which Award has a nominated, and outstanding choreography?
SELECT award FROM table_name_20 WHERE category = "best performance by a leading actor in a musical"
CREATE TABLE table_name_20 (award VARCHAR, category VARCHAR)
Which Award has best performance by a leading actor in a musical
SELECT club_career FROM table_name_65 WHERE position = "df" AND total_goals < 18 AND league_apps < 129 AND league_goals > 7
CREATE TABLE table_name_65 (club_career VARCHAR, league_goals VARCHAR, league_apps VARCHAR, position VARCHAR, total_goals VARCHAR)
What was the club career for players in positions of DF, fewer than 18 total goals, fewer than 129 league appearances, and more than 7 league goals?
SELECT MIN(total_goals) FROM table_name_3 WHERE league_apps < 171 AND total_apps = 151 AND position = "df"
CREATE TABLE table_name_3 (total_goals INTEGER, position VARCHAR, league_apps VARCHAR, total_apps VARCHAR)
What is the fewest total goals scored for players with under 171 league appearances, 151 total appearances, and the DF position?
SELECT COUNT(year) FROM table_name_45 WHERE group = "method fest independent film festival"
CREATE TABLE table_name_45 (year VARCHAR, group VARCHAR)
What is the total number of Years that has the Group, Method Fest Independent Film Festival?
SELECT AVG(year) FROM table_name_79 WHERE group = "logie award" AND award = "most outstanding actor" AND result = "nominated"
CREATE TABLE table_name_79 (year INTEGER, result VARCHAR, group VARCHAR, award VARCHAR)
What is the average Year that has the Group, Logie Award, the Award, Most Outstanding Actor, and the Result, nominated?
SELECT group FROM table_name_31 WHERE result = "nominated" AND year < 2012 AND film_show = "east west 101" AND award = "best lead actor in a television drama"
CREATE TABLE table_name_31 (group VARCHAR, award VARCHAR, film_show VARCHAR, result VARCHAR, year VARCHAR)
Before 2012, which Group has the Result, nominated, the Film/Show, East West 101, and the Award, Best Lead Actor in A Television Drama?
SELECT group FROM table_name_54 WHERE result = "nominated" AND year > 2008 AND award = "best lead actor in a television drama"
CREATE TABLE table_name_54 (group VARCHAR, award VARCHAR, result VARCHAR, year VARCHAR)
After 2008, which Group has the Result, nominated, and the Award, Best Lead Actor in a Television Drama?
SELECT award FROM table_name_96 WHERE film_show = "east west 101" AND year < 2009 AND group = "logie award"
CREATE TABLE table_name_96 (award VARCHAR, group VARCHAR, film_show VARCHAR, year VARCHAR)
What is the Award, when the Film/Show is East West 101, and when the year is before 2009, and when the Group is Logie Award?
SELECT film_show FROM table_name_19 WHERE year = 2010
CREATE TABLE table_name_19 (film_show VARCHAR, year VARCHAR)
What is the Film/Show, when the Year is 2010?
SELECT year FROM table_name_88 WHERE entrant = "belond equa-flow / calif. muffler"
CREATE TABLE table_name_88 (year VARCHAR, entrant VARCHAR)
Which year is that has a Entrant of belond equa-flow / calif. muffler?
SELECT AVG(wkts) FROM table_name_95 WHERE ovrs < 2
CREATE TABLE table_name_95 (wkts INTEGER, ovrs INTEGER)
If the Ovrs is less than 2, what's the average in Wkts?
SELECT MAX(wkts) FROM table_name_58 WHERE ovrs < 28.5 AND player = "adam voges"
CREATE TABLE table_name_58 (wkts INTEGER, ovrs VARCHAR, player VARCHAR)
If Adam Voges had less than 28.5 Ovrs, what are his highest Wkts?
SELECT SUM(sacks) FROM table_name_59 WHERE year = "2006" AND solo < 62
CREATE TABLE table_name_59 (sacks INTEGER, year VARCHAR, solo VARCHAR)
How many sacks have 2006 as the year, and a solo less than 62?
SELECT AVG(pass_def) FROM table_name_63 WHERE team = "green bay packers" AND solo = 62 AND sacks < 2
CREATE TABLE table_name_63 (pass_def INTEGER, sacks VARCHAR, team VARCHAR, solo VARCHAR)
What is the average pass def that has green bay packers as the team, 62 as the solo and sacks less than 2?
SELECT COUNT(sacks) FROM table_name_69 WHERE solo = 72 AND ttkl < 112
CREATE TABLE table_name_69 (sacks VARCHAR, solo VARCHAR, ttkl VARCHAR)
How many sacks have 72 as the solo and a TTkl less than 112?
SELECT SUM(ttkl) FROM table_name_46 WHERE year = "2004" AND pass_def > 5
CREATE TABLE table_name_46 (ttkl INTEGER, year VARCHAR, pass_def VARCHAR)
How many TTkl have 2004 as the year, and a pass def greater than 5?
SELECT MAX(decile) FROM table_name_58 WHERE authority = "state" AND name = "tarras school"
CREATE TABLE table_name_58 (decile INTEGER, authority VARCHAR, name VARCHAR)
What is the highest decile of Tarras school, which had a state authority?
SELECT SUM(decile) FROM table_name_36 WHERE roll > 513
CREATE TABLE table_name_36 (decile INTEGER, roll INTEGER)
What is the decile of the school with a roll larger than 513?
SELECT area FROM table_name_96 WHERE authority = "state" AND name = "cromwell primary school"
CREATE TABLE table_name_96 (area VARCHAR, authority VARCHAR, name VARCHAR)
What is the area of Cromwell Primary school, which has a state authority?
SELECT player FROM table_name_46 WHERE figures = "4/14"
CREATE TABLE table_name_46 (player VARCHAR, figures VARCHAR)
Which player has figures of 4/14?
SELECT overs FROM table_name_31 WHERE ground = "waca ground" AND opponent = "queensland"
CREATE TABLE table_name_31 (overs VARCHAR, ground VARCHAR, opponent VARCHAR)
How many overs occurred at Waca Ground against Queensland?
SELECT ground FROM table_name_37 WHERE figures = "4/23"
CREATE TABLE table_name_37 (ground VARCHAR, figures VARCHAR)
At which ground did Dirk Nannes have a figure of 4/23?
SELECT opponent FROM table_name_45 WHERE overs = 3.3
CREATE TABLE table_name_45 (opponent VARCHAR, overs VARCHAR)
Who was the opponent when Steven Smith had 3.3 overs?
SELECT AVG(year) FROM table_name_99 WHERE venue = "brookvale oval" AND margin > 46
CREATE TABLE table_name_99 (year INTEGER, venue VARCHAR, margin VARCHAR)
Name the average year for brookvale oval and margin more than 46
SELECT MAX(year) FROM table_name_93 WHERE venue = "brookvale oval"
CREATE TABLE table_name_93 (year INTEGER, venue VARCHAR)
Name the most year for brookvale oval
SELECT AVG(year) FROM table_name_13 WHERE opponent = "manly-warringah sea eagles"
CREATE TABLE table_name_13 (year INTEGER, opponent VARCHAR)
Name the average year for manly-warringah sea eagles
SELECT partner FROM table_name_29 WHERE score = "6–1, 6–4"
CREATE TABLE table_name_29 (partner VARCHAR, score VARCHAR)
Who is the partner with a score of 6–1, 6–4?
SELECT best_supported_club FROM table_name_75 WHERE goals = 25 AND per_game > 1 OFFSET 156
CREATE TABLE table_name_75 (best_supported_club VARCHAR, goals VARCHAR, per_game VARCHAR)
what is the best supported club with a 25 Goal and a per game larger than 1,156?
SELECT age_groups FROM table_name_26 WHERE competition_name = "big league world series"
CREATE TABLE table_name_26 (age_groups VARCHAR, competition_name VARCHAR)
What are the age groups for the Big League World Series?
SELECT held_every FROM table_name_13 WHERE sport = "table tennis"
CREATE TABLE table_name_13 (held_every VARCHAR, sport VARCHAR)
How often is the table tennis competition held?
SELECT held_every FROM table_name_97 WHERE sport = "cricket"
CREATE TABLE table_name_97 (held_every VARCHAR, sport VARCHAR)
How often is the cricket competition held?
SELECT SUM(attendance) FROM table_name_7 WHERE record = "47-43"
CREATE TABLE table_name_7 (attendance INTEGER, record VARCHAR)
What was the attendance of the Blue Jays' game when their record was 47-43?
SELECT year FROM table_name_36 WHERE points = 12 AND engine = "cosworth v8"
CREATE TABLE table_name_36 (year VARCHAR, points VARCHAR, engine VARCHAR)
Which year had a Cosworth V8 engine and 12 points?
SELECT points FROM table_name_14 WHERE entrant = "ats wheels" AND chassis = "ats d2"
CREATE TABLE table_name_14 (points VARCHAR, entrant VARCHAR, chassis VARCHAR)
How many points did the ATS Wheels entrant with an ATS D2 chassis have?
SELECT AVG(races) FROM table_name_56 WHERE podiums < 2 AND position = "19th" AND season < 2009
CREATE TABLE table_name_56 (races INTEGER, season VARCHAR, podiums VARCHAR, position VARCHAR)
How many races have less than 2 podiums and 19th position before 2009?
SELECT co_drivers FROM table_name_23 WHERE pos = "3rd" AND team = "joest racing"
CREATE TABLE table_name_23 (co_drivers VARCHAR, pos VARCHAR, team VARCHAR)
Which co drivers are 3rd in Joest racing?
SELECT AVG(year_born) FROM table_name_97 WHERE player = "radek necas" AND height < 2.04
CREATE TABLE table_name_97 (year_born INTEGER, player VARCHAR, height VARCHAR)
When was radek necas with less than 2.04 height born?
SELECT MAX(height) FROM table_name_23 WHERE year_born = 1982 AND current_club = "nymburk"
CREATE TABLE table_name_23 (height INTEGER, year_born VARCHAR, current_club VARCHAR)
How tall was the member of Nymburk, who was born in 1982?
SELECT COUNT(kerry_number) FROM table_name_64 WHERE county = "taylor" AND others_number > 65
CREATE TABLE table_name_64 (kerry_number VARCHAR, county VARCHAR, others_number VARCHAR)
What Kerry number does Taylor county have with more than 65 others#?
SELECT MIN(bush_number) FROM table_name_55 WHERE bush_percentage = "66.0%" AND others_number < 65
CREATE TABLE table_name_55 (bush_number INTEGER, bush_percentage VARCHAR, others_number VARCHAR)
What is the smallest bush# with 66.0% bush and less than 65 others#?
SELECT away_captain FROM table_name_84 WHERE venue = "adelaide oval"
CREATE TABLE table_name_84 (away_captain VARCHAR, venue VARCHAR)
Who was the captain of the away team at Adelaide Oval?
SELECT result FROM table_name_79 WHERE venue = "melbourne cricket ground"
CREATE TABLE table_name_79 (result VARCHAR, venue VARCHAR)
What is the final score at Melbourne Cricket Ground?
SELECT score FROM table_name_66 WHERE date = "april 28"
CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR)
Name the score for april 28
SELECT AVG(heat) FROM table_name_38 WHERE name = "anjelika solovieva"
CREATE TABLE table_name_38 (heat INTEGER, name VARCHAR)
What is the average Heat for anjelika solovieva?
SELECT AVG(lane) FROM table_name_37 WHERE nationality = "netherlands antilles"
CREATE TABLE table_name_37 (lane INTEGER, nationality VARCHAR)
What is the average lane with Netherlands Antilles Nationality?
SELECT finish FROM table_name_42 WHERE start = "5"
CREATE TABLE table_name_42 (finish VARCHAR, start VARCHAR)
What is the finish of the year with start 5?
SELECT rank FROM table_name_26 WHERE year = "1940"
CREATE TABLE table_name_26 (rank VARCHAR, year VARCHAR)
What is the rank in 1940?
SELECT MAX(laps) FROM table_name_73 WHERE rank = "14"
CREATE TABLE table_name_73 (laps INTEGER, rank VARCHAR)
What is the highest laps of the year when the rank was 14?
SELECT year FROM table_name_75 WHERE laps = 134
CREATE TABLE table_name_75 (year VARCHAR, laps VARCHAR)
What year had 134 laps?
SELECT finish FROM table_name_2 WHERE laps > 192 AND qual = "135.736"
CREATE TABLE table_name_2 (finish VARCHAR, laps VARCHAR, qual VARCHAR)
What is the finish when there was more than 192 laps and a qual of 135.736?
SELECT opponent FROM table_name_51 WHERE loss = "glynn (0-2)"
CREATE TABLE table_name_51 (opponent VARCHAR, loss VARCHAR)
Witch opponent has a loss of Glynn (0-2)?
SELECT previous_champion_s_ FROM table_name_98 WHERE date_won = "july 7, 2010"
CREATE TABLE table_name_98 (previous_champion_s_ VARCHAR, date_won VARCHAR)
Who was the previous champion of the title won on July 7, 2010?
SELECT date_won FROM table_name_5 WHERE location = "bayamón, puerto rico" AND champion_s_ = "bonecrusher"
CREATE TABLE table_name_5 (date_won VARCHAR, location VARCHAR, champion_s_ VARCHAR)
When did Bonecrusher win the championship at Bayamón, Puerto Rico?
SELECT champion_s_ FROM table_name_4 WHERE previous_champion_s_ = "lash"
CREATE TABLE table_name_4 (champion_s_ VARCHAR, previous_champion_s_ VARCHAR)
Who is the champion of the title previously held by Lash?
SELECT championship FROM table_name_92 WHERE date_won = "july 7, 2010"
CREATE TABLE table_name_92 (championship VARCHAR, date_won VARCHAR)
Which championship was won on July 7, 2010?
SELECT trainer FROM table_name_50 WHERE odds = "6/1"
CREATE TABLE table_name_50 (trainer VARCHAR, odds VARCHAR)
Who has 6/1 odds?
SELECT SUM(dist__f_) FROM table_name_12 WHERE jockey = "johnny murtagh" AND runners < 26
CREATE TABLE table_name_12 (dist__f_ INTEGER, jockey VARCHAR, runners VARCHAR)
What is the total dist with Johnny Murtagh and less than 26 runners?
SELECT jockey FROM table_name_55 WHERE odds = "5/1"
CREATE TABLE table_name_55 (jockey VARCHAR, odds VARCHAR)
Who has 5/1 odds?
SELECT course FROM table_name_34 WHERE jockey = "fergal lynch" AND odds = "5/1"
CREATE TABLE table_name_34 (course VARCHAR, jockey VARCHAR, odds VARCHAR)
What course did Fergal Lynch end up with 5/1 odds?
SELECT place FROM table_name_77 WHERE to_par = "+4" AND score = 74 - 70 - 74 - 74 = 292
CREATE TABLE table_name_77 (place VARCHAR, to_par VARCHAR, score VARCHAR)
What place has a To par of +4 and a score of 74-70-74-74=292?
SELECT place FROM table_name_39 WHERE country = "united states" AND to_par = "e"
CREATE TABLE table_name_39 (place VARCHAR, country VARCHAR, to_par VARCHAR)
What place in the United States has a To par of e?
SELECT to_par FROM table_name_87 WHERE country = "united states" AND score = 74 - 69 - 71 - 74 = 288
CREATE TABLE table_name_87 (to_par VARCHAR, country VARCHAR, score VARCHAR)
What is the To par for the place in the United States and a score of 74-69-71-74=288?
SELECT venue FROM table_name_27 WHERE year < 2005 AND position = "10th (sf)"
CREATE TABLE table_name_27 (venue VARCHAR, year VARCHAR, position VARCHAR)
What Venue is listed that has a Year smaller than 2005 and a Position of 10th (sf)?
SELECT AVG(year) FROM table_name_47 WHERE position = "7th (sf)"
CREATE TABLE table_name_47 (year INTEGER, position VARCHAR)
What's the average Year for the Position of 7th (sf)?
SELECT MAX(year) FROM table_name_67 WHERE event = "800 m" AND venue = "santiago de chile"
CREATE TABLE table_name_67 (year INTEGER, event VARCHAR, venue VARCHAR)
What's the highest Year for the Venue of Santiago De Chile and the Event of 800 m?
SELECT venue FROM table_name_97 WHERE position = "12th (sf)"
CREATE TABLE table_name_97 (venue VARCHAR, position VARCHAR)
What Venue has a Position of 12th (sf)?
SELECT engine FROM table_name_47 WHERE entrant = "team lotus" AND year > 1962
CREATE TABLE table_name_47 (engine VARCHAR, entrant VARCHAR, year VARCHAR)
Which engine has an Entrant of team lotus, and a Year larger than 1962?
SELECT COUNT(points) FROM table_name_69 WHERE year > 1966
CREATE TABLE table_name_69 (points VARCHAR, year INTEGER)
How many points have a Year larger than 1966?
SELECT MIN(points) FROM table_name_87 WHERE engine = "climax v8" AND year = 1966
CREATE TABLE table_name_87 (points INTEGER, engine VARCHAR, year VARCHAR)
What is the smallest number of points with an Engine of climax v8, and a Year of 1966?
SELECT points FROM table_name_91 WHERE year > 1975 AND entrant = "team rothmans international" AND chassis = "march 771"
CREATE TABLE table_name_91 (points VARCHAR, chassis VARCHAR, year VARCHAR, entrant VARCHAR)
How many points did Team Rothmans International have after 1975 when their Chassis was a March 771?
SELECT nationality FROM table_name_59 WHERE lane < 4 AND rank = 4
CREATE TABLE table_name_59 (nationality VARCHAR, lane VARCHAR, rank VARCHAR)
What Nationality of the person who has a Rank of 4
SELECT score FROM table_name_59 WHERE date = "october 14"
CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR)
Name the score on october 14
SELECT AVG(goals_for) FROM table_name_68 WHERE goal_difference < -16 AND club = "real oviedo" AND wins < 9
CREATE TABLE table_name_68 (goals_for INTEGER, wins VARCHAR, goal_difference VARCHAR, club VARCHAR)
What was the average number of "goals for", scored in the club Real Oviedo that had a "goal difference" lower than -16 and fewer than 9 wins?
SELECT SUM(played) FROM table_name_80 WHERE goal_difference = -8 AND position < 12
CREATE TABLE table_name_80 (played INTEGER, goal_difference VARCHAR, position VARCHAR)
How many people played at the club that had a "goal difference" of -8 and a position lower than 12?
SELECT COUNT(goals_against) FROM table_name_13 WHERE goal_difference = 0 AND wins = 12 AND goals_for > 44
CREATE TABLE table_name_13 (goals_against VARCHAR, goals_for VARCHAR, goal_difference VARCHAR, wins VARCHAR)
How many "goals against" were scored at the club that had a "goal difference" of 0, 12 wins, and more than 44 goals?
SELECT MIN(goals_for) FROM table_name_85 WHERE wins = 18 AND goals_against < 38
CREATE TABLE table_name_85 (goals_for INTEGER, wins VARCHAR, goals_against VARCHAR)
What is the smallest number of "goals for" out of the clubs where there were 18 wins and fewer than 38 "goals against"?
SELECT MIN(year) FROM table_name_37 WHERE fighter = "manny pacquiao"
CREATE TABLE table_name_37 (year INTEGER, fighter VARCHAR)
When did Manny Pacquiao win his first championship?
SELECT sport FROM table_name_29 WHERE nation_represented = "united states"
CREATE TABLE table_name_29 (sport VARCHAR, nation_represented VARCHAR)
Which sport did the United States win?
SELECT MAX(year) FROM table_name_72 WHERE nation_represented = "philippines"
CREATE TABLE table_name_72 (year INTEGER, nation_represented VARCHAR)
What is the latest result where a person from the Philippines won?
SELECT nation_represented FROM table_name_1 WHERE year = 2012
CREATE TABLE table_name_1 (nation_represented VARCHAR, year VARCHAR)
Which nation won the boxing championship in 2012?
SELECT total_seats FROM table_name_34 WHERE party = "christian democratic union (cdu)"
CREATE TABLE table_name_34 (total_seats VARCHAR, party VARCHAR)
What is the total number of seats of the Christian Democratic Union (CDU) party?
SELECT seat_percentage FROM table_name_41 WHERE vote_percentage = "100.0%"
CREATE TABLE table_name_41 (seat_percentage VARCHAR, vote_percentage VARCHAR)
What seat has a vote percentage of 100.0%