question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What rank was caerphilly with a Swing smaller than 6.92?
CREATE TABLE table_name_25 (rank VARCHAR, swing_to_gain VARCHAR, constituency VARCHAR)
SELECT COUNT(rank) FROM table_name_25 WHERE swing_to_gain < 6.92 AND constituency = "caerphilly"
What's the sum of swing to gain with a winning party 2007 of Conservative with a rank smaller than 5?
CREATE TABLE table_name_70 (swing_to_gain INTEGER, winning_party_2007 VARCHAR, rank VARCHAR)
SELECT SUM(swing_to_gain) FROM table_name_70 WHERE winning_party_2007 = "conservative" AND rank < 5
Who directs before 1949 with linda darnell leading and jonathan kent?
CREATE TABLE table_name_60 (director VARCHAR, role VARCHAR, year VARCHAR, leading_lady VARCHAR)
SELECT director FROM table_name_60 WHERE year < 1949 AND leading_lady = "linda darnell" AND role = "jonathan kent"
Who is the leading lady in a yank in the r.a.f.?
CREATE TABLE table_name_10 (leading_lady VARCHAR, title VARCHAR)
SELECT leading_lady FROM table_name_10 WHERE title = "a yank in the r.a.f."
What title has rouben mamoulian directing after 1940 with linda darnell as the leading lady?
CREATE TABLE table_name_16 (title VARCHAR, leading_lady VARCHAR, director VARCHAR, year VARCHAR)
SELECT title FROM table_name_16 WHERE director = "rouben mamoulian" AND year > 1940 AND leading_lady = "linda darnell"
Who directs before 1948 with linda darnell, titled blood and sand?
CREATE TABLE table_name_55 (director VARCHAR, title VARCHAR, year VARCHAR, leading_lady VARCHAR)
SELECT director FROM table_name_55 WHERE year < 1948 AND leading_lady = "linda darnell" AND title = "blood and sand"
Which driver had 3 Laps and grids less than 15?
CREATE TABLE table_name_83 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_83 WHERE laps = 3 AND grid < 15
I want the time/retired with grid less than 22 and Laps less than 33 for john surtees
CREATE TABLE table_name_96 (time_retired VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT time_retired FROM table_name_96 WHERE grid < 22 AND laps < 33 AND driver = "john surtees"
What is the 2010 for the grand slam tournaments of 2007?
CREATE TABLE table_name_44 (Id VARCHAR)
SELECT 2010 FROM table_name_44 WHERE 2007 = "grand slam tournaments"
Name the 2009 for when 2007 is 3r and 2010 is q2
CREATE TABLE table_name_52 (Id VARCHAR)
SELECT 2009 FROM table_name_52 WHERE 2007 = "3r" AND 2010 = "q2"
Name the 2012 for when 2010 is q3
CREATE TABLE table_name_94 (Id VARCHAR)
SELECT 2012 FROM table_name_94 WHERE 2010 = "q3"
Name the 2010 for 2012 grand slam tournaments
CREATE TABLE table_name_38 (Id VARCHAR)
SELECT 2010 FROM table_name_38 WHERE 2012 = "grand slam tournaments"
Which giant slalom had an Overall number of 25?
CREATE TABLE table_name_34 (Giant VARCHAR, overall VARCHAR)
SELECT Giant AS slalom FROM table_name_34 WHERE overall = 25
Which Giant Slalom was obtained in the 1997 season?
CREATE TABLE table_name_29 (Giant VARCHAR, season VARCHAR)
SELECT Giant AS slalom FROM table_name_29 WHERE season = 1997
On what date did Mike Hawthorn have the fastest lap for the E Tyre of the Silverstone Circuit?
CREATE TABLE table_name_36 (date VARCHAR, circuit VARCHAR, fastest_lap VARCHAR, tyre VARCHAR)
SELECT date FROM table_name_36 WHERE fastest_lap = "mike hawthorn" AND tyre = "e" AND circuit = "silverstone"
What was the Tyre for 19 January?
CREATE TABLE table_name_95 (tyre VARCHAR, date VARCHAR)
SELECT tyre FROM table_name_95 WHERE date = "19 january"
What individual(s) had Pole Position for Tyre F?
CREATE TABLE table_name_67 (pole_position VARCHAR, tyre VARCHAR)
SELECT pole_position FROM table_name_67 WHERE tyre = "f"
Who won the race on 24 August?
CREATE TABLE table_name_99 (winning_driver VARCHAR, date VARCHAR)
SELECT winning_driver FROM table_name_99 WHERE date = "24 august"
During what race did Mike Hawthorn have the Fastest Lap and Peter Collins win?
CREATE TABLE table_name_51 (race VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR)
SELECT race FROM table_name_51 WHERE fastest_lap = "mike hawthorn" AND winning_driver = "peter collins"
What race occurred on the date of 15 June?
CREATE TABLE table_name_74 (race VARCHAR, date VARCHAR)
SELECT race FROM table_name_74 WHERE date = "15 june"
What's the lowest attendance for October 13, 1968, and is larger than week 5?
CREATE TABLE table_name_19 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT MIN(attendance) FROM table_name_19 WHERE date = "october 13, 1968" AND week > 5
What was the attendance on October 27, 1968?
CREATE TABLE table_name_9 (week INTEGER, date VARCHAR)
SELECT MAX(week) FROM table_name_9 WHERE date = "october 27, 1968"
What was the attendance on November 3, 1968, that was a week smaller than 8?
CREATE TABLE table_name_81 (attendance VARCHAR, date VARCHAR, week VARCHAR)
SELECT COUNT(attendance) FROM table_name_81 WHERE date = "november 3, 1968" AND week < 8
What is the lowest ranking team in Australia?
CREATE TABLE table_name_57 (rank INTEGER, country VARCHAR)
SELECT MIN(rank) FROM table_name_57 WHERE country = "australia"
Which score happened on 11 february 1996?
CREATE TABLE table_name_37 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_37 WHERE date = "11 february 1996"
What was the result of the Competition of euro 2000 qualifier?
CREATE TABLE table_name_78 (result VARCHAR, competition VARCHAR)
SELECT result FROM table_name_78 WHERE competition = "euro 2000 qualifier"
Which venue was used 11 february 1996?
CREATE TABLE table_name_45 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_45 WHERE date = "11 february 1996"
Which venue has a Score of 1–0, and a Competition of 2002 world cup qualifier?
CREATE TABLE table_name_91 (venue VARCHAR, score VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_91 WHERE score = "1–0" AND competition = "2002 world cup qualifier"
Where did the game on March 11 take place and how many people attended?
CREATE TABLE table_name_68 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_name_68 WHERE date = "march 11"
What chassis recorded 5 points?
CREATE TABLE table_name_68 (chassis VARCHAR, points VARCHAR)
SELECT chassis FROM table_name_68 WHERE points = 5
What is the low point total for arrows a22 chassis?
CREATE TABLE table_name_3 (points INTEGER, chassis VARCHAR)
SELECT MIN(points) FROM table_name_3 WHERE chassis = "arrows a22"
How many points for the simtek s951 chassis?
CREATE TABLE table_name_92 (points VARCHAR, chassis VARCHAR)
SELECT COUNT(points) FROM table_name_92 WHERE chassis = "simtek s951"
What Chassis has a year later than 1989?
CREATE TABLE table_name_31 (chassis VARCHAR, year INTEGER)
SELECT chassis FROM table_name_31 WHERE year > 1989
What is the Tyres with a ford dfz v8 engine(s) with a chassis of coloni fc187?
CREATE TABLE table_name_27 (tyres VARCHAR, engine_s_ VARCHAR, chassis VARCHAR)
SELECT tyres FROM table_name_27 WHERE engine_s_ = "ford dfz v8" AND chassis = "coloni fc187"
What is the round of the match at venue A with a result of 1-2 on 7 December 2004?
CREATE TABLE table_name_17 (round VARCHAR, date VARCHAR, venue VARCHAR, result VARCHAR)
SELECT round FROM table_name_17 WHERE venue = "a" AND result = "1-2" AND date = "7 december 2004"
Who was the opponent of the match in round sf with a result of 0-0?
CREATE TABLE table_name_97 (opponent VARCHAR, round VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_97 WHERE round = "sf" AND result = "0-0"
Who is the opponent of the match with an attendance larger than 59,000?
CREATE TABLE table_name_89 (opponent VARCHAR, attendance INTEGER)
SELECT opponent FROM table_name_89 WHERE attendance > 59 OFFSET 000
How many apperances for shakhtar donetsk?
CREATE TABLE table_name_84 (appearances VARCHAR, team VARCHAR)
SELECT COUNT(appearances) FROM table_name_84 WHERE team = "shakhtar donetsk"
How many appearances for psv eindhoven ranked above 11?
CREATE TABLE table_name_16 (appearances INTEGER, team VARCHAR, rank VARCHAR)
SELECT SUM(appearances) FROM table_name_16 WHERE team = "psv eindhoven" AND rank < 11
How many caps for alister campbell from brumbies?
CREATE TABLE table_name_67 (caps INTEGER, club_province VARCHAR, player VARCHAR)
SELECT MIN(caps) FROM table_name_67 WHERE club_province = "brumbies" AND player = "alister campbell"
When was the player born who has 1 caps?
CREATE TABLE table_name_53 (date_of_birth__age_ VARCHAR, caps VARCHAR)
SELECT date_of_birth__age_ FROM table_name_53 WHERE caps = 1
When was the queensland reds lock player born?
CREATE TABLE table_name_7 (date_of_birth__age_ VARCHAR, position VARCHAR, club_province VARCHAR)
SELECT date_of_birth__age_ FROM table_name_7 WHERE position = "lock" AND club_province = "queensland reds"
Which Opponent has a Round larger than 4 and the Event, Draka V?
CREATE TABLE table_name_78 (opponent VARCHAR, round VARCHAR, event VARCHAR)
SELECT opponent FROM table_name_78 WHERE round > 4 AND event = "draka v"
Which Event has the Opponent, Jason Yee?
CREATE TABLE table_name_3 (event VARCHAR, opponent VARCHAR)
SELECT event FROM table_name_3 WHERE opponent = "jason yee"
Which Result has the Event Strikeforce and the Method, Ko (spinning back fist)?
CREATE TABLE table_name_15 (result VARCHAR, event VARCHAR, method VARCHAR)
SELECT result FROM table_name_15 WHERE event = "strikeforce" AND method = "ko (spinning back fist)"
What is the lowest Round with the Location, Las Vegas, Nevada, the Method, Decision (unanimous), and the Event, K-1 World Grand Prix 2003 in Las Vegas II?
CREATE TABLE table_name_87 (round INTEGER, event VARCHAR, location VARCHAR, method VARCHAR)
SELECT MIN(round) FROM table_name_87 WHERE location = "las vegas, nevada" AND method = "decision (unanimous)" AND event = "k-1 world grand prix 2003 in las vegas ii"
Which Result has the Event, Strikeforce, and Method, Ko (double roundhouse kick)?
CREATE TABLE table_name_14 (result VARCHAR, event VARCHAR, method VARCHAR)
SELECT result FROM table_name_14 WHERE event = "strikeforce" AND method = "ko (double roundhouse kick)"
what is the frequency of part number tmn550dcr23gm?
CREATE TABLE table_name_4 (frequency VARCHAR, order_part_number VARCHAR)
SELECT frequency FROM table_name_4 WHERE order_part_number = "tmn550dcr23gm"
How many games were lost by more than 27 but not more 78 with goals less than 300?
CREATE TABLE table_name_61 (games INTEGER, goals_against VARCHAR, lost VARCHAR, points VARCHAR)
SELECT AVG(games) FROM table_name_61 WHERE lost > 27 AND points < 78 AND goals_against < 300
How many games had a tied less 15 with goals against being fewer than 186?
CREATE TABLE table_name_41 (games VARCHAR, tied VARCHAR, goals_against VARCHAR)
SELECT COUNT(games) FROM table_name_41 WHERE tied < 15 AND goals_against < 186
What's the least amount of goals for a game that had a tied bigger than 15?
CREATE TABLE table_name_73 (goals_for INTEGER, tied INTEGER)
SELECT MIN(goals_for) FROM table_name_73 WHERE tied > 15
What was the highest year that Europe/Africa Zone Group I Group B lost?
CREATE TABLE table_name_79 (year INTEGER, competition VARCHAR, result VARCHAR)
SELECT MAX(year) FROM table_name_79 WHERE competition = "europe/africa zone group i group b" AND result = "lost"
What is the least number of Gold for a Rank smaller than 5, and 1 silver medal for Poland with more than 1 medal in total?
CREATE TABLE table_name_31 (gold INTEGER, total VARCHAR, nation VARCHAR, rank VARCHAR, silver VARCHAR)
SELECT MIN(gold) FROM table_name_31 WHERE rank < 5 AND silver = 1 AND nation = "poland" AND total > 1
How many silver medals are there with 3 gold medals at a rank above 1?
CREATE TABLE table_name_40 (silver VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT COUNT(silver) FROM table_name_40 WHERE gold = 3 AND rank > 1
What is the average number of gold medals with more than 1 bronze medal?
CREATE TABLE table_name_6 (gold INTEGER, bronze INTEGER)
SELECT AVG(gold) FROM table_name_6 WHERE bronze > 1
What is the average number of silver medals for rank 2 and more than 1 bronze medal?
CREATE TABLE table_name_15 (silver INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT AVG(silver) FROM table_name_15 WHERE rank = 2 AND bronze > 1
Which Manufacturer has a Quantity of 1, and has the LMMR name Great Mountain?
CREATE TABLE table_name_85 (manufacturer VARCHAR, quantity VARCHAR, lmmr_name VARCHAR)
SELECT manufacturer FROM table_name_85 WHERE quantity = 1 AND lmmr_name = "great mountain"
How many in the majority when Dan Sullivan won?
CREATE TABLE table_name_9 (majority VARCHAR, winner VARCHAR)
SELECT COUNT(majority) FROM table_name_9 WHERE winner = "dan sullivan"
What is the average decile of the school with a state authority and a roll number of 888?
CREATE TABLE table_name_62 (decile INTEGER, authority VARCHAR, roll VARCHAR)
SELECT AVG(decile) FROM table_name_62 WHERE authority = "state" AND roll = 888
What is the area of Mount Albert School?
CREATE TABLE table_name_85 (area VARCHAR, name VARCHAR)
SELECT area FROM table_name_85 WHERE name = "mount albert school"
What years does Our Lady Sacred Heart School, which is state integrated, have?
CREATE TABLE table_name_47 (years VARCHAR, authority VARCHAR, name VARCHAR)
SELECT years FROM table_name_47 WHERE authority = "state integrated" AND name = "our lady sacred heart school"
What is the number of asts when rebs are larger than 1,189?
CREATE TABLE table_name_76 (asts VARCHAR, rebs INTEGER)
SELECT asts FROM table_name_76 WHERE rebs > 1 OFFSET 189
What did the visiting team score at brunswick street oval?
CREATE TABLE table_name_67 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_67 WHERE venue = "brunswick street oval"
When did fitzroy play at home?
CREATE TABLE table_name_38 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_38 WHERE home_team = "fitzroy"
Which rank took place prior to 2000 when the bike was bsl?
CREATE TABLE table_name_71 (rank VARCHAR, year VARCHAR, bike VARCHAR)
SELECT rank FROM table_name_71 WHERE year < 2000 AND bike = "bsl"
Which constructor has 10-12 rounds and a M7A chassis?
CREATE TABLE table_name_40 (constructor VARCHAR, rounds VARCHAR, chassis VARCHAR)
SELECT constructor FROM table_name_40 WHERE rounds = "10-12" AND chassis = "m7a"
The rounds of 1-2, 4-10, 12 belong to which entrant?
CREATE TABLE table_name_96 (entrant VARCHAR, rounds VARCHAR)
SELECT entrant FROM table_name_96 WHERE rounds = "1-2, 4-10, 12"
What tyre has 1 round with Dave Charlton driving?
CREATE TABLE table_name_91 (tyre VARCHAR, rounds VARCHAR, driver VARCHAR)
SELECT tyre FROM table_name_91 WHERE rounds = "1" AND driver = "dave charlton"
Which driver has a G tyre, rounds of 2-12 and a M7A chassis?
CREATE TABLE table_name_18 (driver VARCHAR, chassis VARCHAR, tyre VARCHAR, rounds VARCHAR)
SELECT driver FROM table_name_18 WHERE tyre = "g" AND rounds = "2-12" AND chassis = "m7a"
Who was the leading scorer of the game where the Knicks were the home team and the Warriors were the visiting team?
CREATE TABLE table_name_53 (leading_scorer VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT leading_scorer FROM table_name_53 WHERE home = "knicks" AND visitor = "warriors"
What is the lowest Not Outs with an average lower than 31.25, fewer than 13 matches, and fewer than 327 runs?
CREATE TABLE table_name_8 (not_outs INTEGER, runs VARCHAR, average VARCHAR, matches VARCHAR)
SELECT MIN(not_outs) FROM table_name_8 WHERE average < 31.25 AND matches < 13 AND runs < 327
What is the total number of runs when the average was less than 31.25 and there were fewer than 24 innings?
CREATE TABLE table_name_51 (runs VARCHAR, average VARCHAR, innings VARCHAR)
SELECT COUNT(runs) FROM table_name_51 WHERE average > 31.25 AND innings < 24
What is the lowest number of Not Outs when there were more than 25 innings?
CREATE TABLE table_name_76 (not_outs INTEGER, innings INTEGER)
SELECT MIN(not_outs) FROM table_name_76 WHERE innings > 25
What is the number of Not Outs when there were more than 327 runs and 24 innings, and an average of 29.54
CREATE TABLE table_name_41 (not_outs VARCHAR, average VARCHAR, runs VARCHAR, innings VARCHAR)
SELECT not_outs FROM table_name_41 WHERE runs > 327 AND innings > 24 AND average = 29.54
What is the total number of runs where the average is less than 27.22?
CREATE TABLE table_name_87 (runs VARCHAR, average INTEGER)
SELECT COUNT(runs) FROM table_name_87 WHERE average < 27.22
What's the hometown of the player who went to lsu?
CREATE TABLE table_name_32 (hometown VARCHAR, college VARCHAR)
SELECT hometown FROM table_name_32 WHERE college = "lsu"
What college did delray brooks go to?
CREATE TABLE table_name_23 (college VARCHAR, player VARCHAR)
SELECT college FROM table_name_23 WHERE player = "delray brooks"
What school did delray brooks go to?
CREATE TABLE table_name_72 (school VARCHAR, player VARCHAR)
SELECT school FROM table_name_72 WHERE player = "delray brooks"
Who has a hometown of los angeles, ca?
CREATE TABLE table_name_52 (player VARCHAR, hometown VARCHAR)
SELECT player FROM table_name_52 WHERE hometown = "los angeles, ca"
What's the hometown of the player who is 6-4?
CREATE TABLE table_name_45 (hometown VARCHAR, height VARCHAR)
SELECT hometown FROM table_name_45 WHERE height = "6-4"
What college did danny manning go to?
CREATE TABLE table_name_95 (college VARCHAR, player VARCHAR)
SELECT college FROM table_name_95 WHERE player = "danny manning"
Which model(s) has AGP graphics and 400 FSB (MHz)?
CREATE TABLE table_name_44 (model VARCHAR, graphics VARCHAR, fsb__mhz_ VARCHAR)
SELECT model FROM table_name_44 WHERE graphics = "agp" AND fsb__mhz_ = "400"
Which model's chipset is intel 955?
CREATE TABLE table_name_63 (memory VARCHAR, chipset VARCHAR)
SELECT memory FROM table_name_63 WHERE chipset = "intel 955"
What is the chipset in the Precision 340 model that has the rambus memory and 400 or 533 FSB (MHz)?
CREATE TABLE table_name_17 (chipset VARCHAR, model VARCHAR, memory VARCHAR, fsb__mhz_ VARCHAR)
SELECT chipset FROM table_name_17 WHERE memory = "rambus" AND fsb__mhz_ = "400 or 533" AND model = "precision 340"
What type of graphics are present in the Precision 340 model with the intel 850e chipset?
CREATE TABLE table_name_99 (graphics VARCHAR, chipset VARCHAR, model VARCHAR)
SELECT graphics FROM table_name_99 WHERE chipset = "intel 850e" AND model = "precision 340"
What type of chipset is in the Precision t3400 model with the PCI Express graphics?
CREATE TABLE table_name_97 (chipset VARCHAR, graphics VARCHAR, model VARCHAR)
SELECT chipset FROM table_name_97 WHERE graphics = "pci express" AND model = "precision t3400"
What is the Time/Retired for brabham - climax, on Grid of 10?
CREATE TABLE table_name_89 (time_retired VARCHAR, constructor VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_89 WHERE constructor = "brabham - climax" AND grid = 10
How many laps have a Time/Retired of +12.5 secs?
CREATE TABLE table_name_87 (laps VARCHAR, time_retired VARCHAR)
SELECT COUNT(laps) FROM table_name_87 WHERE time_retired = "+12.5 secs"
What competition was contested at stavanger?
CREATE TABLE table_name_77 (competition VARCHAR, venue VARCHAR)
SELECT competition FROM table_name_77 WHERE venue = "stavanger"
What is the result of the contest with over 1 scored?
CREATE TABLE table_name_30 (result VARCHAR, scored INTEGER)
SELECT result FROM table_name_30 WHERE scored > 1
What was the score of the game where Wallace (17) had the highest points?
CREATE TABLE table_name_68 (score VARCHAR, high_points VARCHAR)
SELECT score FROM table_name_68 WHERE high_points = "wallace (17)"
Who had the highest points of the game on March 24?
CREATE TABLE table_name_39 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_name_39 WHERE date = "march 24"
Which pick was from Lamar High School?
CREATE TABLE table_name_15 (pick VARCHAR, school VARCHAR)
SELECT pick FROM table_name_15 WHERE school = "lamar high school"
Which nationality does Florida Tech have?
CREATE TABLE table_name_1 (nationality VARCHAR, school VARCHAR)
SELECT nationality FROM table_name_1 WHERE school = "florida tech"
Which nationality's pick was 415?
CREATE TABLE table_name_21 (nationality VARCHAR, pick VARCHAR)
SELECT nationality FROM table_name_21 WHERE pick = "415"
Which school's nationality was United States when its pick was 595?
CREATE TABLE table_name_65 (school VARCHAR, nationality VARCHAR, pick VARCHAR)
SELECT school FROM table_name_65 WHERE nationality = "united states" AND pick = "595"
Which school's round was 24?
CREATE TABLE table_name_41 (school VARCHAR, round VARCHAR)
SELECT school FROM table_name_41 WHERE round = "24"
What Winning Jockey ran in the Tampa Bay Downs Track on Winning Horse Barkley Sound?
CREATE TABLE table_name_86 (winning_jockey VARCHAR, track VARCHAR, winning_horse VARCHAR)
SELECT winning_jockey FROM table_name_86 WHERE track = "tampa bay downs" AND winning_horse = "barkley sound"
What is the Purse in Sunland Park Track?
CREATE TABLE table_name_37 (purse___us$__ VARCHAR, track VARCHAR)
SELECT purse___us$__ FROM table_name_37 WHERE track = "sunland park"
What Date is Northern Spur Breeders' Cup Stakes Race?
CREATE TABLE table_name_31 (date VARCHAR, race VARCHAR)
SELECT date FROM table_name_31 WHERE race = "northern spur breeders' cup stakes"