answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MAX(gold) FROM table_name_17 WHERE silver < 7 AND bronze < 0
What is the highest Gold that has a Silver less than 7 and Bronze less than 0
CREATE TABLE table_name_17 (gold INTEGER, silver VARCHAR, bronze VARCHAR)
SELECT COUNT(margin) FROM table_1359212_2 WHERE second_place = "Spain" AND language = "Russian"
what amount has spain as second place and the language is russian?
CREATE TABLE table_1359212_2 (margin VARCHAR, second_place VARCHAR, language VARCHAR)
SELECT socket FROM table_name_64 WHERE voltage = "2.0v" AND model_number = "pentium ii 333"
What is Socket, when Voltage is 2.0V, and when Model Number is Pentium II 333?
CREATE TABLE table_name_64 (socket VARCHAR, voltage VARCHAR, model_number VARCHAR)
SELECT state FROM table_name_91 WHERE host = "university of tennessee"
What state is the University of Tennessee located in?
CREATE TABLE table_name_91 (state VARCHAR, host VARCHAR)
SELECT young_rider_classification FROM table_12261714_2 WHERE stage = "12"
Who's the leader in the young rider classification in stage 12?
CREATE TABLE table_12261714_2 (young_rider_classification VARCHAR, stage VARCHAR)
SELECT MIN(losses) FROM table_name_79 WHERE club = "cádiz cf"
What is the lowest number of losses for the club cádiz cf?
CREATE TABLE table_name_79 (losses INTEGER, club VARCHAR)
SELECT MIN(goals_for) FROM table_name_25 WHERE wins > 15 AND goal_difference > 35
What were the lowest goals when there were mor than 15 wins and the goal difference was larger than 35?
CREATE TABLE table_name_25 (goals_for INTEGER, wins VARCHAR, goal_difference VARCHAR)
SELECT player FROM table_name_51 WHERE country = "united states" AND place = "t6"
Which player from United States is in place of t6?
CREATE TABLE table_name_51 (player VARCHAR, country VARCHAR, place VARCHAR)
SELECT party FROM table_name_59 WHERE name = "richard simpson"
What is the party of Richard Simpson?
CREATE TABLE table_name_59 (party VARCHAR, name VARCHAR)
SELECT rank FROM table_name_56 WHERE county = "pima" AND mine = "silver bell"
What rank is the Silver Bell mine of Pima county?
CREATE TABLE table_name_56 (rank VARCHAR, county VARCHAR, mine VARCHAR)
SELECT player FROM table_name_20 WHERE country = "united states" AND to_par = 4 AND score = 74 - 73 - 72 - 69 = 288
Who is the player from the United States with a 4 to par and a 74-73-72-69=288 score?
CREATE TABLE table_name_20 (player VARCHAR, country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT knockouts_of_the_night FROM table_21114902_1 WHERE fighter = "Joe Lauzon"
How many knockout of the night occurred when joe lauzon fought.
CREATE TABLE table_21114902_1 (knockouts_of_the_night VARCHAR, fighter VARCHAR)
SELECT MAX(total_goals) FROM table_10240125_1
What is the highest value of Total Goals?
CREATE TABLE table_10240125_1 (total_goals INTEGER)
SELECT MAX(stolen_ends) FROM table_29704430_1
What is the most stolen ends?
CREATE TABLE table_29704430_1 (stolen_ends INTEGER)
SELECT us_viewers__millions_ FROM table_23242958_1 WHERE production_code = "3AJN01"
How many millions of U.S. viewers watched the episode with the production code of 3AJN01?
CREATE TABLE table_23242958_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR)
SELECT MAX(labour) FROM table_name_86 WHERE lib_dem > 21
Name the highest Labour with Lib Dem larger than 21?
CREATE TABLE table_name_86 (labour INTEGER, lib_dem INTEGER)
SELECT MAX(wickets) FROM table_name_89 WHERE matches < 5 AND player = "jim laker" AND average > 52.44
what is the highest wickets when the matches is less than 5, player is jim laker and average is more than 52.44?
CREATE TABLE table_name_89 (wickets INTEGER, average VARCHAR, matches VARCHAR, player VARCHAR)
SELECT label FROM table_name_65 WHERE format = "cd maxi"
What is the Label of the release in CD Maxi Format?
CREATE TABLE table_name_65 (label VARCHAR, format VARCHAR)
SELECT COUNT(scottish_cup) FROM table_name_22 WHERE league < 561 AND years = "1989–1995 1997–2001" AND europe < 11
Which Scottish Cup has a League smaller than 561, Years of 1989–1995 1997–2001, and Europe smaller than 11?
CREATE TABLE table_name_22 (scottish_cup VARCHAR, europe VARCHAR, league VARCHAR, years VARCHAR)
SELECT home_team FROM table_name_95 WHERE venue = "vfl park"
Which team played at VFL Park?
CREATE TABLE table_name_95 (home_team VARCHAR, venue VARCHAR)
SELECT AVG(field_goals) FROM table_name_25 WHERE touchdowns < 3 AND player = "clark" AND points < 5
What the average amount of field goals Clark has if he has less than 3 touch downs and less than 5 points?
CREATE TABLE table_name_25 (field_goals INTEGER, points VARCHAR, touchdowns VARCHAR, player VARCHAR)
SELECT round FROM table_name_1 WHERE opposition = "lyon"
What round had the opponent Lyon?
CREATE TABLE table_name_1 (round VARCHAR, opposition VARCHAR)
SELECT MIN(2007) FROM table_name_96 WHERE country_or_territory = "china" AND 2002 < 670 OFFSET 099
Which 2007 has a Country or territory of china, and a 2002 smaller than 670,099?
CREATE TABLE table_name_96 (country_or_territory VARCHAR)
SELECT stu_fname, stu_gpa FROM student WHERE stu_gpa < (SELECT AVG(stu_gpa) FROM student)
Find the first name and gpa of the students whose gpa is lower than the average gpa of all students.
CREATE TABLE student (stu_fname VARCHAR, stu_gpa INTEGER)
SELECT score FROM table_name_81 WHERE competition = "2007 afc asian cup qualification" AND result = "8–0"
What is the Score of 2007 afc asian cup qualification with a Result of 8–0?
CREATE TABLE table_name_81 (score VARCHAR, competition VARCHAR, result VARCHAR)
SELECT week_2 FROM table_name_40 WHERE week_3 = "lara leverence"
What was the week 2 before Lara Leverence was week 3?
CREATE TABLE table_name_40 (week_2 VARCHAR, week_3 VARCHAR)
SELECT width FROM table_name_38 WHERE year = "1970"
What is the width for the year of the 1970?
CREATE TABLE table_name_38 (width VARCHAR, year VARCHAR)
SELECT COUNT(record) FROM table_27700375_8 WHERE high_assists = "Devin Harris (6)"
How many record data were written when Devin Harris (6) was High Assists?
CREATE TABLE table_27700375_8 (record VARCHAR, high_assists VARCHAR)
SELECT first_broadcast FROM table_29141354_7 WHERE andrew_and_jacks_guest = "Amy Williams"
When was the episode with Amy Williams as Andrew and Jack's guest broadcast?
CREATE TABLE table_29141354_7 (first_broadcast VARCHAR, andrew_and_jacks_guest VARCHAR)
SELECT date FROM table_name_73 WHERE away_team = "university"
What is the Date for the Away team University?
CREATE TABLE table_name_73 (date VARCHAR, away_team VARCHAR)
SELECT partner FROM table_name_23 WHERE year = "asian games"
What is the Partner during the Asian Games Year?
CREATE TABLE table_name_23 (partner VARCHAR, year VARCHAR)
SELECT COUNT(field_stability) FROM table_name_5 WHERE agent = "cyanogen bromide" AND effectiveness_as_blood_agent > 9
What is the field stability of Cyanogen Bromide that has an effectiveness of 9?
CREATE TABLE table_name_5 (field_stability VARCHAR, agent VARCHAR, effectiveness_as_blood_agent VARCHAR)
SELECT date_of_vacancy FROM table_name_37 WHERE team = "aberdeen"
What is Aberdeen team's date of vacancy?
CREATE TABLE table_name_37 (date_of_vacancy VARCHAR, team VARCHAR)
SELECT score FROM table_name_63 WHERE player = "lloyd mangrum"
What was Lloyd Mangrum's Score?
CREATE TABLE table_name_63 (score VARCHAR, player VARCHAR)
SELECT general_classification FROM table_name_25 WHERE team_classification = "mapei-clas" AND stage = "12"
What is the general classification of Mapei-clas in stage 12?
CREATE TABLE table_name_25 (general_classification VARCHAR, team_classification VARCHAR, stage VARCHAR)
SELECT score FROM table_name_96 WHERE record = "44-49"
Which score has a Record of 44-49?
CREATE TABLE table_name_96 (score VARCHAR, record VARCHAR)
SELECT SUM(goals_scored) FROM table_name_79 WHERE games_played < 20
What is the sum of Goals scored when there was less than 20 Games played?
CREATE TABLE table_name_79 (goals_scored INTEGER, games_played INTEGER)
SELECT date FROM table_name_68 WHERE record = "2–1–1"
What is the Date with a game with a Record of 2–1–1?
CREATE TABLE table_name_68 (date VARCHAR, record VARCHAR)
SELECT bulletins_to_all_contacts FROM table_name_43 WHERE transport_layer_security = "no" AND license = "proprietary" AND creator = "microsoft"
Were there Bulletins to all contacts of the proprietary license created by Microsoft with no transport layer of security?
CREATE TABLE table_name_43 (bulletins_to_all_contacts VARCHAR, creator VARCHAR, transport_layer_security VARCHAR, license VARCHAR)
SELECT COUNT(share__18_49_) FROM table_20971444_3 WHERE rating__18_49_ = "3.1"
Name the total number for 18-49 share being 18-49 being 3.1
CREATE TABLE table_20971444_3 (share__18_49_ VARCHAR, rating__18_49_ VARCHAR)
SELECT date FROM table_name_48 WHERE week < 13 AND opponent = "miami dolphins"
What is the date before week 13 and Miami Dolphins as an opponent?
CREATE TABLE table_name_48 (date VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT MIN(pct__percentage) FROM table_name_90 WHERE points < 37
When less than 37 points are scored, what's the lowest Pct % found?
CREATE TABLE table_name_90 (pct__percentage INTEGER, points INTEGER)
SELECT maturity FROM table_21692771_1 WHERE coupon = "0.726"
What is the maturity that has a coupon of exactly 0.726?
CREATE TABLE table_21692771_1 (maturity VARCHAR, coupon VARCHAR)
SELECT COUNT(attendance) FROM table_name_61 WHERE record = "23-23"
What is the total attendance for games when the record was 23-23?
CREATE TABLE table_name_61 (attendance VARCHAR, record VARCHAR)
SELECT COUNT(world_rank) FROM table_2248991_2 WHERE nation = "Nigeria"
How many items were listed under world rank under the nation of Nigeria?
CREATE TABLE table_2248991_2 (world_rank VARCHAR, nation VARCHAR)
SELECT date FROM table_name_75 WHERE location_attendance = "wachovia center"
When did they play at the wachovia center?
CREATE TABLE table_name_75 (date VARCHAR, location_attendance VARCHAR)
SELECT 1993 FROM table_name_6 WHERE 1991 = "grand slams"
What shows for 1993 when 1991 is grand slams?
CREATE TABLE table_name_6 (Id VARCHAR)
SELECT title FROM table_1876825_5 WHERE production_code = "06-02-407"
What is title of episode 06-02-407?
CREATE TABLE table_1876825_5 (title VARCHAR, production_code VARCHAR)
SELECT MAX(taijijian) FROM table_name_20 WHERE taijiquan = 9.87 AND total < 19.77
What is the highest taijijian with a 9.87 taijiquan and a total less than 19.77?
CREATE TABLE table_name_20 (taijijian INTEGER, taijiquan VARCHAR, total VARCHAR)
SELECT laps FROM table_name_80 WHERE grid = "21"
How many laps were there in grid 21?
CREATE TABLE table_name_80 (laps VARCHAR, grid VARCHAR)
SELECT away_team AS score FROM table_name_56 WHERE away_team = "hawthorn"
What was the score for Hawthorn when they were the away team?
CREATE TABLE table_name_56 (away_team VARCHAR)
SELECT record FROM table_name_25 WHERE location_attendance = "the omni" AND date = "april 12"
What's the record on April 12 when the location was The Omni?
CREATE TABLE table_name_25 (record VARCHAR, location_attendance VARCHAR, date VARCHAR)
SELECT date FROM table_name_74 WHERE home_team = "fitzroy"
On what date did Fitzroy play as the home team?
CREATE TABLE table_name_74 (date VARCHAR, home_team VARCHAR)
SELECT MAX(sp) + fs FROM table_name_27 WHERE points > 164.56 AND rank > 1 AND name = "mitsuru matsumura"
What is the largest value for SP+FS with more than 164.56 points for Mitsuru Matsumura in a Rank greater than 1?
CREATE TABLE table_name_27 (fs VARCHAR, sp INTEGER, name VARCHAR, points VARCHAR, rank VARCHAR)
SELECT date FROM table_13464416_8 WHERE team = "Chicago"
What day was the game at chicago?
CREATE TABLE table_13464416_8 (date VARCHAR, team VARCHAR)
SELECT name FROM table_name_6 WHERE avg_g = 201.3
Who averaged 201.3 yards passing per game?
CREATE TABLE table_name_6 (name VARCHAR, avg_g VARCHAR)
SELECT directed_by FROM table_2618072_1 WHERE production_code = 67425
Who is the directed by when the production code is 67425?
CREATE TABLE table_2618072_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT COUNT(density) FROM table_1300525_1 WHERE english_name = "Yushan County"
What is the density of yushan county?
CREATE TABLE table_1300525_1 (density VARCHAR, english_name VARCHAR)
SELECT SUM(first_time_as_hc_climb) FROM table_name_82 WHERE no_of_hc_climbs > 1 AND no_of_times_visited > 29 AND most_recent > 2012
When was the first HC climb which, more recently than 2012, had more than 1 HC climbs, more than 29 times visited?
CREATE TABLE table_name_82 (first_time_as_hc_climb INTEGER, most_recent VARCHAR, no_of_hc_climbs VARCHAR, no_of_times_visited VARCHAR)
SELECT role FROM table_name_78 WHERE closing_broadway_cast = "adam grupper"
Which role had a closing broadway cast of Adam Grupper?
CREATE TABLE table_name_78 (role VARCHAR, closing_broadway_cast VARCHAR)
SELECT MIN(pick__number) FROM table_name_93 WHERE player = "dimelon westfield"
What is the pick # for Dimelon Westfield?
CREATE TABLE table_name_93 (pick__number INTEGER, player VARCHAR)
SELECT incumbent FROM table_2646656_3 WHERE district = "Ohio 10"
Who was the incumbent in the Ohio 10 district?
CREATE TABLE table_2646656_3 (incumbent VARCHAR, district VARCHAR)
SELECT MIN(gp_gs) FROM table_name_42 WHERE avg_g < 234.3 AND effic = "410.80"
What is the lowest gp-gs that has an avg/g less than 234.3, with 410.80 as the effic?
CREATE TABLE table_name_42 (gp_gs INTEGER, avg_g VARCHAR, effic VARCHAR)
SELECT score FROM table_name_36 WHERE record = "18-21-7"
Which score has a record of 18-21-7?
CREATE TABLE table_name_36 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_79 WHERE date = "july 29, 1990"
What is the score of the match on July 29, 1990?
CREATE TABLE table_name_79 (score VARCHAR, date VARCHAR)
SELECT MIN(attendance__away_) FROM table_name_99 WHERE venue = "away" AND date = "24 august 2007"
Name the least attendance with venue of away on 24 august 2007
CREATE TABLE table_name_99 (attendance__away_ INTEGER, venue VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_11960407_4 WHERE high_points = "Chris Bosh (16)"
Who had the high rebounds when Chris Bosh (16) had the high points?
CREATE TABLE table_11960407_4 (high_rebounds VARCHAR, high_points VARCHAR)
SELECT imperial_value FROM table_name_51 WHERE jyutping = "cin4"
what's the imperial that contains a jyutping of cin4?
CREATE TABLE table_name_51 (imperial_value VARCHAR, jyutping VARCHAR)
SELECT time FROM table_name_49 WHERE laps < 25 AND bike = "honda cbr1000rr"
What is the time of the honda cbr1000rr bike, which has less than 25 laps?
CREATE TABLE table_name_49 (time VARCHAR, laps VARCHAR, bike VARCHAR)
SELECT AVG(points) FROM table_name_86 WHERE english_translation = "sing"
The English translation of Sing has what average points?
CREATE TABLE table_name_86 (points INTEGER, english_translation VARCHAR)
SELECT airport FROM table_name_68 WHERE iata = "kuf"
What is the name of the airport with an IATA of KUF?
CREATE TABLE table_name_68 (airport VARCHAR, iata VARCHAR)
SELECT MIN(year) FROM table_name_64 WHERE sideline_reporter_s_ = "michelle tafoya and suzy kolber"
What was the earliest year featuring Sideline reporter(s) of michelle tafoya and suzy kolber?
CREATE TABLE table_name_64 (year INTEGER, sideline_reporter_s_ VARCHAR)
SELECT COUNT(revenue__) AS $m_ FROM table_name_21 WHERE country = "italy" AND team = "internazionale" AND operating_income__$m_ < 27
Name the total number of revenue for italy with team of internazionale with operating income less than 27
CREATE TABLE table_name_21 (revenue__ VARCHAR, operating_income__$m_ VARCHAR, country VARCHAR, team VARCHAR)
SELECT record FROM table_name_88 WHERE visitor = "boston"
What was the cougars record during the game where Boston were the visitors?
CREATE TABLE table_name_88 (record VARCHAR, visitor VARCHAR)
SELECT player FROM table_26041144_11 WHERE average = "36.74"
Who was the player with a 36.74 average?
CREATE TABLE table_26041144_11 (player VARCHAR, average VARCHAR)
SELECT almaty_, _kazakhstan FROM table_name_42 WHERE sergey_filimonov___kaz__ = "210kg"
What is the Almaty, Kazakhstan when the Sergey Filimonov (KAZ) is 210kg?
CREATE TABLE table_name_42 (almaty_ VARCHAR, _kazakhstan VARCHAR, sergey_filimonov___kaz__ VARCHAR)
SELECT round FROM table_name_31 WHERE ranking = "2008 wta tour"
Which Round has a Ranking of 2008 wta tour?
CREATE TABLE table_name_31 (round VARCHAR, ranking VARCHAR)
SELECT away_team FROM table_name_85 WHERE home_team = "essendon"
Who played as the away team when Essendon was the home team?
CREATE TABLE table_name_85 (away_team VARCHAR, home_team VARCHAR)
SELECT segment_d FROM table_15187735_5 WHERE segment_b = "Dining Room Tables"
When segment b is dining room tables what is segment d?
CREATE TABLE table_15187735_5 (segment_d VARCHAR, segment_b VARCHAR)
SELECT COUNT(_number_of_airlines) FROM table_name_76 WHERE distance__km_ = 705
How many Airlines have a total distance of 705 (km)?
CREATE TABLE table_name_76 (_number_of_airlines VARCHAR, distance__km_ VARCHAR)
SELECT week FROM table_name_5 WHERE original_artist = "the police"
What week was the Original artist, the police ?
CREATE TABLE table_name_5 (week VARCHAR, original_artist VARCHAR)
SELECT COUNT(winners) FROM table_name_11 WHERE runners_up < 0
How many times is runners-up less than 0?
CREATE TABLE table_name_11 (winners VARCHAR, runners_up INTEGER)
SELECT decision FROM table_name_2 WHERE home = "vancouver" AND date = "april 21"
What was the decision from the Vancouver home game on April 21?
CREATE TABLE table_name_2 (decision VARCHAR, home VARCHAR, date VARCHAR)
SELECT MIN(block) FROM table_name_5 WHERE height < 202 AND date_of_birth = "19.06.1980" AND weight > 76
What is the lowest block that has a height less than 202, 19.06.1980 as the date of birth, and a weight greater than 76?
CREATE TABLE table_name_5 (block INTEGER, weight VARCHAR, height VARCHAR, date_of_birth VARCHAR)
SELECT high_assists FROM table_30054758_5 WHERE date = "February 5"
how many high assits have a date of february 5?
CREATE TABLE table_30054758_5 (high_assists VARCHAR, date VARCHAR)
SELECT to_par FROM table_name_56 WHERE place = "t6" AND player = "nick faldo"
Which To par has a Place of t6, and a Player of nick faldo?
CREATE TABLE table_name_56 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT high_rebounds FROM table_11964154_11 WHERE score = "L 84–102 (OT)"
Who had the high rebounds when the score was l 84–102 (ot)?
CREATE TABLE table_11964154_11 (high_rebounds VARCHAR, score VARCHAR)
SELECT transfer_window FROM table_name_95 WHERE ends > 2006
Which transfer window ends after 2006?
CREATE TABLE table_name_95 (transfer_window VARCHAR, ends INTEGER)
SELECT written_by FROM table_23235679_1 WHERE directed_by = "Pam Cooke & Jansen Yee"
Name who wrote the episode directed by pam cooke & jansen yee
CREATE TABLE table_23235679_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT actor FROM table_name_94 WHERE year < 1971
What actor was nominated for or won an award before 1971?
CREATE TABLE table_name_94 (actor VARCHAR, year INTEGER)
SELECT SUM(votes) FROM table_name_26 WHERE vote__percentage > 19.5
Name the sum of votes % more than 19.5
CREATE TABLE table_name_26 (votes INTEGER, vote__percentage INTEGER)
SELECT MIN(established) FROM table_1641054_2
Name the least established
CREATE TABLE table_1641054_2 (established INTEGER)
SELECT COUNT(top_10) FROM table_name_24 WHERE events < 3 AND cuts_made < 1
For events with under 3 times played and fewer than 1 cut made, what is the total number of top-10 finishes?
CREATE TABLE table_name_24 (top_10 VARCHAR, events VARCHAR, cuts_made VARCHAR)
SELECT country FROM table_name_67 WHERE stolen_ends > 7 AND skip = "david murdoch"
Name the Country which has Stolen Ends larger than 7, and a Skip of david murdoch?
CREATE TABLE table_name_67 (country VARCHAR, stolen_ends VARCHAR, skip VARCHAR)
SELECT MIN(rank) FROM table_name_11 WHERE earnings___$__ < 71 OFFSET 979
What is the lowest rank for a player earning $71,979?
CREATE TABLE table_name_11 (rank INTEGER, earnings___$__ INTEGER)
SELECT player FROM table_name_51 WHERE pick = 176
What player was picked 176?
CREATE TABLE table_name_51 (player VARCHAR, pick VARCHAR)
SELECT SUM(year) FROM table_name_6 WHERE accolade = "50 best albums of the year" AND rank = "#3"
How many years have an accolade of 50 best albums of the year, with #3 as the rank?
CREATE TABLE table_name_6 (year INTEGER, accolade VARCHAR, rank VARCHAR)
SELECT MIN(total) FROM table_19439864_2
What is the lowest total?
CREATE TABLE table_19439864_2 (total INTEGER)
SELECT home_team FROM table_name_96 WHERE venue = "vfl park"
Which team calls VFL Park their home?
CREATE TABLE table_name_96 (home_team VARCHAR, venue VARCHAR)
SELECT points_difference FROM table_name_23 WHERE played = "32" AND points_for = "840"
Which Points difference has Played of 32, and Points for of 840?
CREATE TABLE table_name_23 (points_difference VARCHAR, played VARCHAR, points_for VARCHAR)