question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What years does Kakahi school, with a decile of 3, have?
CREATE TABLE table_name_9 (years VARCHAR, decile VARCHAR, name VARCHAR)
SELECT years FROM table_name_9 WHERE decile = 3 AND name = "kakahi school"
What is the average decile of Ruapehu college, which has a state authority?
CREATE TABLE table_name_64 (decile INTEGER, authority VARCHAR, name VARCHAR)
SELECT AVG(decile) FROM table_name_64 WHERE authority = "state" AND name = "ruapehu college"
What is the roll number of Orautoha school in Raetihi, which has a decile smaller than 8?
CREATE TABLE table_name_63 (roll INTEGER, decile VARCHAR, area VARCHAR, name VARCHAR)
SELECT SUM(roll) FROM table_name_63 WHERE area = "raetihi" AND name = "orautoha school" AND decile < 8
On what day was Utah Blaze the opponent?
CREATE TABLE table_name_6 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_6 WHERE opponent = "utah blaze"
What is the 2006 value with a 1r in 2011?
CREATE TABLE table_name_56 (Id VARCHAR)
SELECT 2006 FROM table_name_56 WHERE 2011 = "1r"
What is the 2010 value with a 2r in 200r and a 3r in 2011?
CREATE TABLE table_name_85 (Id VARCHAR)
SELECT 2010 FROM table_name_85 WHERE 2004 = "2r" AND 2011 = "3r"
What is the 2007 value with a 2r in 2012 and 1r in 2002?
CREATE TABLE table_name_53 (Id VARCHAR)
SELECT 2007 FROM table_name_53 WHERE 2012 = "2r" AND 2002 = "1r"
What is the 2004 value in the 2011 Grand Slam Tournaments?
CREATE TABLE table_name_46 (Id VARCHAR)
SELECT 2004 FROM table_name_46 WHERE 2011 = "grand slam tournaments"
What is the 2004 value with a sf in 2010?
CREATE TABLE table_name_4 (Id VARCHAR)
SELECT 2004 FROM table_name_4 WHERE 2010 = "sf"
Name the score for 30 january 2013
CREATE TABLE table_name_24 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_24 WHERE date = "30 january 2013"
Name the result for goal # more than 4
CREATE TABLE table_name_92 (result VARCHAR, goal__number INTEGER)
SELECT result FROM table_name_92 WHERE goal__number > 4
What is Fred Couples to par?
CREATE TABLE table_name_24 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_24 WHERE player = "fred couples"
What place has a score under 68?
CREATE TABLE table_name_9 (place VARCHAR, score INTEGER)
SELECT place FROM table_name_9 WHERE score < 68
Which driver won when o.m. was the winning constructor ?
CREATE TABLE table_name_96 (winning_driver VARCHAR, winning_constructor VARCHAR)
SELECT winning_driver FROM table_name_96 WHERE winning_constructor = "o.m."
Which driver won when the winning constructor was bugatti at the Boulogne Grand Prix ?
CREATE TABLE table_name_40 (winning_driver VARCHAR, winning_constructor VARCHAR, name VARCHAR)
SELECT winning_driver FROM table_name_40 WHERE winning_constructor = "bugatti" AND name = "boulogne grand prix"
What race did Meo Constantini win at the circuit of monza ?
CREATE TABLE table_name_36 (name VARCHAR, winning_driver VARCHAR, circuit VARCHAR)
SELECT name FROM table_name_36 WHERE winning_driver = "meo constantini" AND circuit = "monza"
On what date did Aymo Maggi win the Rome Grand Prix ?
CREATE TABLE table_name_6 (date VARCHAR, winning_driver VARCHAR, name VARCHAR)
SELECT date FROM table_name_6 WHERE winning_driver = "aymo maggi" AND name = "rome grand prix"
Name the season outcome for smyrna
CREATE TABLE table_name_89 (season_outcome VARCHAR, school VARCHAR)
SELECT season_outcome FROM table_name_89 WHERE school = "smyrna"
Name the school for eagles
CREATE TABLE table_name_87 (school VARCHAR, team VARCHAR)
SELECT school FROM table_name_87 WHERE team = "eagles"
Name the school for Season Outcome of loss in first round of div. i playoffs
CREATE TABLE table_name_73 (school VARCHAR, season_outcome VARCHAR)
SELECT school FROM table_name_73 WHERE season_outcome = "loss in first round of div. i playoffs"
Name the division record for riders
CREATE TABLE table_name_28 (division_record VARCHAR, team VARCHAR)
SELECT division_record FROM table_name_28 WHERE team = "riders"
Name the team for school of milford
CREATE TABLE table_name_44 (team VARCHAR, school VARCHAR)
SELECT team FROM table_name_44 WHERE school = "milford"
Name the average points for chassis of stevens and year less than 1950
CREATE TABLE table_name_14 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT AVG(points) FROM table_name_14 WHERE chassis = "stevens" AND year < 1950
Name the least points for chassis of kurtis kraft 500a
CREATE TABLE table_name_54 (points INTEGER, chassis VARCHAR)
SELECT MIN(points) FROM table_name_54 WHERE chassis = "kurtis kraft 500a"
Name the total number of year for chassis of kurtis kraft 4000 and points more than 2
CREATE TABLE table_name_89 (year VARCHAR, chassis VARCHAR, points VARCHAR)
SELECT COUNT(year) FROM table_name_89 WHERE chassis = "kurtis kraft 4000" AND points > 2
Who was the visiting team on weeks under 12 and at Sports Authority Field at Mile High?
CREATE TABLE table_name_24 (visiting_team VARCHAR, week VARCHAR, stadium VARCHAR)
SELECT visiting_team FROM table_name_24 WHERE week < 12 AND stadium = "sports authority field at mile high"
Who was the visiting team at Raymond James Stadium?
CREATE TABLE table_name_36 (visiting_team VARCHAR, stadium VARCHAR)
SELECT visiting_team FROM table_name_36 WHERE stadium = "raymond james stadium"
What date had the Houston Texans as visitors?
CREATE TABLE table_name_75 (date VARCHAR, visiting_team VARCHAR)
SELECT date FROM table_name_75 WHERE visiting_team = "houston texans"
Name the year with percentage of 9.66%
CREATE TABLE table_name_55 (year VARCHAR, percentage VARCHAR)
SELECT year FROM table_name_55 WHERE percentage = "9.66%"
Name the total number of popular votes for mn attorney general in 1994
CREATE TABLE table_name_74 (popular_votes VARCHAR, office VARCHAR, year VARCHAR)
SELECT COUNT(popular_votes) FROM table_name_74 WHERE office = "mn attorney general" AND year = 1994
Name the average popular votes in years after 1990 with percentage of 4.94%
CREATE TABLE table_name_35 (popular_votes INTEGER, percentage VARCHAR, year VARCHAR)
SELECT AVG(popular_votes) FROM table_name_35 WHERE percentage = "4.94%" AND year > 1990
Name the least popular votes for year less than 1994 and percentage of 0.96%
CREATE TABLE table_name_35 (popular_votes INTEGER, year VARCHAR, percentage VARCHAR)
SELECT MIN(popular_votes) FROM table_name_35 WHERE year < 1994 AND percentage = "0.96%"
What United States player holds the place of t8?`
CREATE TABLE table_name_57 (player VARCHAR, place VARCHAR, country VARCHAR)
SELECT player FROM table_name_57 WHERE place = "t8" AND country = "united states"
What country of argentina has the To par of 68?
CREATE TABLE table_name_51 (to_par VARCHAR, score VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_51 WHERE score = 68 AND country = "argentina"
What is the To par and holds the t8 place of the United States player Tiger Woods?
CREATE TABLE table_name_62 (to_par VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)
SELECT to_par FROM table_name_62 WHERE country = "united states" AND place = "t8" AND player = "tiger woods"
What country does miguel ángel jiménez player for and has a score of 69?
CREATE TABLE table_name_50 (country VARCHAR, score VARCHAR, player VARCHAR)
SELECT country FROM table_name_50 WHERE score = 69 AND player = "miguel ángel jiménez"
What is the date of the race at Truro?
CREATE TABLE table_name_32 (date VARCHAR, track VARCHAR)
SELECT date FROM table_name_32 WHERE track = "truro"
Which Year has a nominated outstanding actor in a musical?
CREATE TABLE table_name_88 (year VARCHAR, result VARCHAR, category VARCHAR)
SELECT year FROM table_name_88 WHERE result = "nominated" AND category = "outstanding actor in a musical"
Which Award has a nominated, and outstanding choreography?
CREATE TABLE table_name_92 (award VARCHAR, result VARCHAR, category VARCHAR)
SELECT award FROM table_name_92 WHERE result = "nominated" AND category = "outstanding choreography"
Which Award has best performance by a leading actor in a musical
CREATE TABLE table_name_20 (award VARCHAR, category VARCHAR)
SELECT award FROM table_name_20 WHERE category = "best performance by a leading actor in a musical"
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?
CREATE TABLE table_name_65 (club_career VARCHAR, league_goals VARCHAR, league_apps VARCHAR, position VARCHAR, total_goals VARCHAR)
SELECT club_career FROM table_name_65 WHERE position = "df" AND total_goals < 18 AND league_apps < 129 AND league_goals > 7
What is the fewest total goals scored for players with under 171 league appearances, 151 total appearances, and the DF position?
CREATE TABLE table_name_3 (total_goals INTEGER, position VARCHAR, league_apps VARCHAR, total_apps VARCHAR)
SELECT MIN(total_goals) FROM table_name_3 WHERE league_apps < 171 AND total_apps = 151 AND position = "df"
What is the total number of Years that has the Group, Method Fest Independent Film Festival?
CREATE TABLE table_name_45 (year VARCHAR, group VARCHAR)
SELECT COUNT(year) FROM table_name_45 WHERE group = "method fest independent film festival"
What is the average Year that has the Group, Logie Award, the Award, Most Outstanding Actor, and the Result, nominated?
CREATE TABLE table_name_79 (year INTEGER, result VARCHAR, group VARCHAR, award VARCHAR)
SELECT AVG(year) FROM table_name_79 WHERE group = "logie award" AND award = "most outstanding actor" AND result = "nominated"
Before 2012, which Group has the Result, nominated, the Film/Show, East West 101, and the Award, Best Lead Actor in A Television Drama?
CREATE TABLE table_name_31 (group VARCHAR, award VARCHAR, film_show VARCHAR, result VARCHAR, year VARCHAR)
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"
After 2008, which Group has the Result, nominated, and the Award, Best Lead Actor in a Television Drama?
CREATE TABLE table_name_54 (group VARCHAR, award VARCHAR, result VARCHAR, year VARCHAR)
SELECT group FROM table_name_54 WHERE result = "nominated" AND year > 2008 AND award = "best lead actor in a television drama"
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?
CREATE TABLE table_name_96 (award VARCHAR, group VARCHAR, film_show VARCHAR, year VARCHAR)
SELECT award FROM table_name_96 WHERE film_show = "east west 101" AND year < 2009 AND group = "logie award"
What is the Film/Show, when the Year is 2010?
CREATE TABLE table_name_19 (film_show VARCHAR, year VARCHAR)
SELECT film_show FROM table_name_19 WHERE year = 2010
Which year is that has a Entrant of belond equa-flow / calif. muffler?
CREATE TABLE table_name_88 (year VARCHAR, entrant VARCHAR)
SELECT year FROM table_name_88 WHERE entrant = "belond equa-flow / calif. muffler"
If the Ovrs is less than 2, what's the average in Wkts?
CREATE TABLE table_name_95 (wkts INTEGER, ovrs INTEGER)
SELECT AVG(wkts) FROM table_name_95 WHERE ovrs < 2
If Adam Voges had less than 28.5 Ovrs, what are his highest Wkts?
CREATE TABLE table_name_58 (wkts INTEGER, ovrs VARCHAR, player VARCHAR)
SELECT MAX(wkts) FROM table_name_58 WHERE ovrs < 28.5 AND player = "adam voges"
How many sacks have 2006 as the year, and a solo less than 62?
CREATE TABLE table_name_59 (sacks INTEGER, year VARCHAR, solo VARCHAR)
SELECT SUM(sacks) FROM table_name_59 WHERE year = "2006" AND solo < 62
What is the average pass def that has green bay packers as the team, 62 as the solo and sacks less than 2?
CREATE TABLE table_name_63 (pass_def INTEGER, sacks VARCHAR, team VARCHAR, solo VARCHAR)
SELECT AVG(pass_def) FROM table_name_63 WHERE team = "green bay packers" AND solo = 62 AND sacks < 2
How many sacks have 72 as the solo and a TTkl less than 112?
CREATE TABLE table_name_69 (sacks VARCHAR, solo VARCHAR, ttkl VARCHAR)
SELECT COUNT(sacks) FROM table_name_69 WHERE solo = 72 AND ttkl < 112
How many TTkl have 2004 as the year, and a pass def greater than 5?
CREATE TABLE table_name_46 (ttkl INTEGER, year VARCHAR, pass_def VARCHAR)
SELECT SUM(ttkl) FROM table_name_46 WHERE year = "2004" AND pass_def > 5
What is the highest decile of Tarras school, which had a state authority?
CREATE TABLE table_name_58 (decile INTEGER, authority VARCHAR, name VARCHAR)
SELECT MAX(decile) FROM table_name_58 WHERE authority = "state" AND name = "tarras school"
What is the decile of the school with a roll larger than 513?
CREATE TABLE table_name_36 (decile INTEGER, roll INTEGER)
SELECT SUM(decile) FROM table_name_36 WHERE roll > 513
What is the area of Cromwell Primary school, which has a state authority?
CREATE TABLE table_name_96 (area VARCHAR, authority VARCHAR, name VARCHAR)
SELECT area FROM table_name_96 WHERE authority = "state" AND name = "cromwell primary school"
Which player has figures of 4/14?
CREATE TABLE table_name_46 (player VARCHAR, figures VARCHAR)
SELECT player FROM table_name_46 WHERE figures = "4/14"
How many overs occurred at Waca Ground against Queensland?
CREATE TABLE table_name_31 (overs VARCHAR, ground VARCHAR, opponent VARCHAR)
SELECT overs FROM table_name_31 WHERE ground = "waca ground" AND opponent = "queensland"
At which ground did Dirk Nannes have a figure of 4/23?
CREATE TABLE table_name_37 (ground VARCHAR, figures VARCHAR)
SELECT ground FROM table_name_37 WHERE figures = "4/23"
Who was the opponent when Steven Smith had 3.3 overs?
CREATE TABLE table_name_45 (opponent VARCHAR, overs VARCHAR)
SELECT opponent FROM table_name_45 WHERE overs = 3.3
Name the average year for brookvale oval and margin more than 46
CREATE TABLE table_name_99 (year INTEGER, venue VARCHAR, margin VARCHAR)
SELECT AVG(year) FROM table_name_99 WHERE venue = "brookvale oval" AND margin > 46
Name the most year for brookvale oval
CREATE TABLE table_name_93 (year INTEGER, venue VARCHAR)
SELECT MAX(year) FROM table_name_93 WHERE venue = "brookvale oval"
Name the average year for manly-warringah sea eagles
CREATE TABLE table_name_13 (year INTEGER, opponent VARCHAR)
SELECT AVG(year) FROM table_name_13 WHERE opponent = "manly-warringah sea eagles"
Who is the partner with a score of 6–1, 6–4?
CREATE TABLE table_name_29 (partner VARCHAR, score VARCHAR)
SELECT partner FROM table_name_29 WHERE score = "6–1, 6–4"
what is the best supported club with a 25 Goal and a per game larger than 1,156?
CREATE TABLE table_name_75 (best_supported_club VARCHAR, goals VARCHAR, per_game VARCHAR)
SELECT best_supported_club FROM table_name_75 WHERE goals = 25 AND per_game > 1 OFFSET 156
What are the age groups for the Big League World Series?
CREATE TABLE table_name_26 (age_groups VARCHAR, competition_name VARCHAR)
SELECT age_groups FROM table_name_26 WHERE competition_name = "big league world series"
How often is the table tennis competition held?
CREATE TABLE table_name_13 (held_every VARCHAR, sport VARCHAR)
SELECT held_every FROM table_name_13 WHERE sport = "table tennis"
How often is the cricket competition held?
CREATE TABLE table_name_97 (held_every VARCHAR, sport VARCHAR)
SELECT held_every FROM table_name_97 WHERE sport = "cricket"
What was the attendance of the Blue Jays' game when their record was 47-43?
CREATE TABLE table_name_7 (attendance INTEGER, record VARCHAR)
SELECT SUM(attendance) FROM table_name_7 WHERE record = "47-43"
Which year had a Cosworth V8 engine and 12 points?
CREATE TABLE table_name_36 (year VARCHAR, points VARCHAR, engine VARCHAR)
SELECT year FROM table_name_36 WHERE points = 12 AND engine = "cosworth v8"
How many points did the ATS Wheels entrant with an ATS D2 chassis have?
CREATE TABLE table_name_14 (points VARCHAR, entrant VARCHAR, chassis VARCHAR)
SELECT points FROM table_name_14 WHERE entrant = "ats wheels" AND chassis = "ats d2"
How many races have less than 2 podiums and 19th position before 2009?
CREATE TABLE table_name_56 (races INTEGER, season VARCHAR, podiums VARCHAR, position VARCHAR)
SELECT AVG(races) FROM table_name_56 WHERE podiums < 2 AND position = "19th" AND season < 2009
Which co drivers are 3rd in Joest racing?
CREATE TABLE table_name_23 (co_drivers VARCHAR, pos VARCHAR, team VARCHAR)
SELECT co_drivers FROM table_name_23 WHERE pos = "3rd" AND team = "joest racing"
When was radek necas with less than 2.04 height born?
CREATE TABLE table_name_97 (year_born INTEGER, player VARCHAR, height VARCHAR)
SELECT AVG(year_born) FROM table_name_97 WHERE player = "radek necas" AND height < 2.04
How tall was the member of Nymburk, who was born in 1982?
CREATE TABLE table_name_23 (height INTEGER, year_born VARCHAR, current_club VARCHAR)
SELECT MAX(height) FROM table_name_23 WHERE year_born = 1982 AND current_club = "nymburk"
What Kerry number does Taylor county have with more than 65 others#?
CREATE TABLE table_name_64 (kerry_number VARCHAR, county VARCHAR, others_number VARCHAR)
SELECT COUNT(kerry_number) FROM table_name_64 WHERE county = "taylor" AND others_number > 65
What is the smallest bush# with 66.0% bush and less than 65 others#?
CREATE TABLE table_name_55 (bush_number INTEGER, bush_percentage VARCHAR, others_number VARCHAR)
SELECT MIN(bush_number) FROM table_name_55 WHERE bush_percentage = "66.0%" AND others_number < 65
Who was the captain of the away team at Adelaide Oval?
CREATE TABLE table_name_84 (away_captain VARCHAR, venue VARCHAR)
SELECT away_captain FROM table_name_84 WHERE venue = "adelaide oval"
What is the final score at Melbourne Cricket Ground?
CREATE TABLE table_name_79 (result VARCHAR, venue VARCHAR)
SELECT result FROM table_name_79 WHERE venue = "melbourne cricket ground"
Name the score for april 28
CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_66 WHERE date = "april 28"
What is the average Heat for anjelika solovieva?
CREATE TABLE table_name_38 (heat INTEGER, name VARCHAR)
SELECT AVG(heat) FROM table_name_38 WHERE name = "anjelika solovieva"
What is the average lane with Netherlands Antilles Nationality?
CREATE TABLE table_name_37 (lane INTEGER, nationality VARCHAR)
SELECT AVG(lane) FROM table_name_37 WHERE nationality = "netherlands antilles"
What is the finish of the year with start 5?
CREATE TABLE table_name_42 (finish VARCHAR, start VARCHAR)
SELECT finish FROM table_name_42 WHERE start = "5"
What is the rank in 1940?
CREATE TABLE table_name_26 (rank VARCHAR, year VARCHAR)
SELECT rank FROM table_name_26 WHERE year = "1940"
What is the highest laps of the year when the rank was 14?
CREATE TABLE table_name_73 (laps INTEGER, rank VARCHAR)
SELECT MAX(laps) FROM table_name_73 WHERE rank = "14"
What year had 134 laps?
CREATE TABLE table_name_75 (year VARCHAR, laps VARCHAR)
SELECT year FROM table_name_75 WHERE laps = 134
What is the finish when there was more than 192 laps and a qual of 135.736?
CREATE TABLE table_name_2 (finish VARCHAR, laps VARCHAR, qual VARCHAR)
SELECT finish FROM table_name_2 WHERE laps > 192 AND qual = "135.736"
Witch opponent has a loss of Glynn (0-2)?
CREATE TABLE table_name_51 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_51 WHERE loss = "glynn (0-2)"
Who was the previous champion of the title won on July 7, 2010?
CREATE TABLE table_name_98 (previous_champion_s_ VARCHAR, date_won VARCHAR)
SELECT previous_champion_s_ FROM table_name_98 WHERE date_won = "july 7, 2010"
When did Bonecrusher win the championship at Bayamón, Puerto Rico?
CREATE TABLE table_name_5 (date_won VARCHAR, location VARCHAR, champion_s_ VARCHAR)
SELECT date_won FROM table_name_5 WHERE location = "bayamón, puerto rico" AND champion_s_ = "bonecrusher"
Who is the champion of the title previously held by Lash?
CREATE TABLE table_name_4 (champion_s_ VARCHAR, previous_champion_s_ VARCHAR)
SELECT champion_s_ FROM table_name_4 WHERE previous_champion_s_ = "lash"
Which championship was won on July 7, 2010?
CREATE TABLE table_name_92 (championship VARCHAR, date_won VARCHAR)
SELECT championship FROM table_name_92 WHERE date_won = "july 7, 2010"
Who has 6/1 odds?
CREATE TABLE table_name_50 (trainer VARCHAR, odds VARCHAR)
SELECT trainer FROM table_name_50 WHERE odds = "6/1"
What is the total dist with Johnny Murtagh and less than 26 runners?
CREATE TABLE table_name_12 (dist__f_ INTEGER, jockey VARCHAR, runners VARCHAR)
SELECT SUM(dist__f_) FROM table_name_12 WHERE jockey = "johnny murtagh" AND runners < 26
Who has 5/1 odds?
CREATE TABLE table_name_55 (jockey VARCHAR, odds VARCHAR)
SELECT jockey FROM table_name_55 WHERE odds = "5/1"
What course did Fergal Lynch end up with 5/1 odds?
CREATE TABLE table_name_34 (course VARCHAR, jockey VARCHAR, odds VARCHAR)
SELECT course FROM table_name_34 WHERE jockey = "fergal lynch" AND odds = "5/1"
What place has a To par of +4 and a score of 74-70-74-74=292?
CREATE TABLE table_name_77 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT place FROM table_name_77 WHERE to_par = "+4" AND score = 74 - 70 - 74 - 74 = 292
What place in the United States has a To par of e?
CREATE TABLE table_name_39 (place VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT place FROM table_name_39 WHERE country = "united states" AND to_par = "e"