question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which tournament has a clay surface and partner henri leconte in 1983?
CREATE TABLE table_name_29 (tournament VARCHAR, date VARCHAR, surface VARCHAR, partner VARCHAR)
SELECT tournament FROM table_name_29 WHERE surface = "clay" AND partner = "henri leconte" AND date = 1983
What is the qualifying end date when the qualifying start date is qualifying start date?
CREATE TABLE table_23995075_2 (qualifying_end_date VARCHAR)
SELECT qualifying_end_date FROM table_23995075_2 WHERE "qualifying_start_date" = "qualifying_start_date"
what is the minimum position with 31 points?
CREATE TABLE table_27781212_1 (position INTEGER, points VARCHAR)
SELECT MIN(position) FROM table_27781212_1 WHERE points = 31
When 272966 is the tower division what is the highest holborn division?
CREATE TABLE table_16677738_1 (holborn_division INTEGER, tower_division VARCHAR)
SELECT MAX(holborn_division) FROM table_16677738_1 WHERE tower_division = 272966
What was the record during the loss by key (7-11)?
CREATE TABLE table_name_27 (record VARCHAR, loss VARCHAR)
SELECT record FROM table_name_27 WHERE loss = "key (7-11)"
what is the maximum freight (metric tonnes) with airport being liverpool
CREATE TABLE table_13836704_9 (freight__metric_tonnes_ INTEGER, airport VARCHAR)
SELECT MAX(freight__metric_tonnes_) FROM table_13836704_9 WHERE airport = "Liverpool"
When was incumbent William B. Oliver first elected?
CREATE TABLE table_1342379_2 (first_elected INTEGER, incumbent VARCHAR)
SELECT MAX(first_elected) FROM table_1342379_2 WHERE incumbent = "William B. Oliver"
What is the earliest Date David Adams played on a Clay Surface with Brett Steven as Partner?
CREATE TABLE table_name_46 (date INTEGER, surface VARCHAR, partner VARCHAR)
SELECT MIN(date) FROM table_name_46 WHERE surface = "clay" AND partner = "brett steven"
What is the result against Clemson?
CREATE TABLE table_name_86 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_86 WHERE opponent = "clemson"
How many populations have a capital of Montpelier and more than 1 House seat?
CREATE TABLE table_name_53 (population_est__2012_ VARCHAR, capital VARCHAR, house_seat_s_ VARCHAR)
SELECT COUNT(population_est__2012_) FROM table_name_53 WHERE capital = "montpelier" AND house_seat_s_ > 1
Which Gold has a Rank larger than 6, and a Nation of netherlands, and a Bronze smaller than 0?
CREATE TABLE table_name_25 (gold INTEGER, bronze VARCHAR, rank VARCHAR, nation VARCHAR)
SELECT SUM(gold) FROM table_name_25 WHERE rank > 6 AND nation = "netherlands" AND bronze < 0
What is the average frequency in MHz for stations with an ERP W of 170?
CREATE TABLE table_name_54 (frequency_mhz INTEGER, erp_w VARCHAR)
SELECT AVG(frequency_mhz) FROM table_name_54 WHERE erp_w = 170
Which tyre is on the car driven by Pedro de la Rosa?
CREATE TABLE table_name_35 (tyre VARCHAR, driver VARCHAR)
SELECT tyre FROM table_name_35 WHERE driver = "pedro de la rosa"
What is the lowest number of Runners that has a Placing that isn't 1?
CREATE TABLE table_name_12 (runners INTEGER, placing INTEGER)
SELECT MIN(runners) FROM table_name_12 WHERE placing < 1
Which coach works with Robert Harvey?
CREATE TABLE table_name_1 (coach VARCHAR, captain VARCHAR)
SELECT coach FROM table_name_1 WHERE captain = "robert harvey"
What are the name and assets of each company, sorted in ascending order of company name?
CREATE TABLE Companies (name VARCHAR, Assets_billion VARCHAR)
SELECT name, Assets_billion FROM Companies ORDER BY name
what is the episode number where the total viewers is 614000?
CREATE TABLE table_12995531_3 (episode_number INTEGER, total_viewers VARCHAR)
SELECT MIN(episode_number) FROM table_12995531_3 WHERE total_viewers = 614000
What is the highest Tournaments, when Pro Debut is "July 2002"?
CREATE TABLE table_name_13 (tournaments INTEGER, pro_debut VARCHAR)
SELECT MAX(tournaments) FROM table_name_13 WHERE pro_debut = "july 2002"
What is the least number of laps for the driver Jo Siffert?
CREATE TABLE table_name_58 (laps INTEGER, driver VARCHAR)
SELECT MIN(laps) FROM table_name_58 WHERE driver = "jo siffert"
What opposing teams playing on 11/04/1999?
CREATE TABLE table_name_63 (opposing_teams VARCHAR, date VARCHAR)
SELECT opposing_teams FROM table_name_63 WHERE date = "11/04/1999"
WHAT YEAR WAS IT WHEN THE SCORE WAS 3 & 2?
CREATE TABLE table_1507806_1 (year VARCHAR, winning_score VARCHAR)
SELECT year FROM table_1507806_1 WHERE winning_score = "3 & 2"
What date was the game against inverurie loco works when more than 342 attend?
CREATE TABLE table_name_3 (date VARCHAR, attendance VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_3 WHERE attendance > 342 AND opponent = "inverurie loco works"
what is the score when the country is united states, the to par is +2 and the player is phil hancock?
CREATE TABLE table_name_49 (score VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT score FROM table_name_49 WHERE country = "united states" AND to_par = "+2" AND player = "phil hancock"
Who was the loser on December 12, 1971?
CREATE TABLE table_name_5 (loser VARCHAR, date VARCHAR, year VARCHAR)
SELECT loser FROM table_name_5 WHERE date = "december 12" AND year = 1971
What is the total number of Year, when Award is "Vamsi Berkley Award", and when Category is "Best Actor"?
CREATE TABLE table_name_18 (year VARCHAR, award VARCHAR, category VARCHAR)
SELECT COUNT(year) FROM table_name_18 WHERE award = "vamsi berkley award" AND category = "best actor"
Which Venue is listed under the Date of 21st?
CREATE TABLE table_name_52 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_52 WHERE date = "21st"
What was the date of the game attended by 45,122?
CREATE TABLE table_name_39 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_39 WHERE attendance = "45,122"
What is Part 3, when Part 1 is "frjósa"?
CREATE TABLE table_name_36 (part_3 VARCHAR, part_1 VARCHAR)
SELECT part_3 FROM table_name_36 WHERE part_1 = "frjósa"
What Location Attendance has a Game of 4?
CREATE TABLE table_name_9 (location_attendance VARCHAR, game VARCHAR)
SELECT location_attendance FROM table_name_9 WHERE game = "4"
who are all the players for mission viejo high school
CREATE TABLE table_11677691_12 (player VARCHAR, school VARCHAR)
SELECT player FROM table_11677691_12 WHERE school = "Mission Viejo High school"
When is the completed date of the destroyer with a pennant number h59?
CREATE TABLE table_name_50 (completed VARCHAR, pennant_number VARCHAR)
SELECT completed FROM table_name_50 WHERE pennant_number = "h59"
On December 3, where was the game held and how many were in attendance?
CREATE TABLE table_name_56 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_name_56 WHERE date = "december 3"
How many production numbers have a Title of bosko in dutch?
CREATE TABLE table_name_93 (production_num INTEGER, title VARCHAR)
SELECT SUM(production_num) FROM table_name_93 WHERE title = "bosko in dutch"
What is the name of the engine company that is located at 89 Rope Ferry Road?
CREATE TABLE table_name_35 (engine_company VARCHAR, address VARCHAR)
SELECT engine_company FROM table_name_35 WHERE address = "89 rope ferry road"
Can you tell me the sum of 100s that has the Matches of 12, and the Strike Rate smaller than 144.81?
CREATE TABLE table_name_92 (matches VARCHAR, strike_rate VARCHAR)
SELECT SUM(100 AS s) FROM table_name_92 WHERE matches = 12 AND strike_rate < 144.81
What position did the player from Baylor play?
CREATE TABLE table_10015132_1 (position VARCHAR, school_club_team VARCHAR)
SELECT position FROM table_10015132_1 WHERE school_club_team = "Baylor"
What is the Winning score when the To par was −21?
CREATE TABLE table_name_21 (winning_score VARCHAR, to_par VARCHAR)
SELECT winning_score FROM table_name_21 WHERE to_par = "−21"
Name the number of season number for jeff truman
CREATE TABLE table_15838081_3 (season__number VARCHAR, writer_s_ VARCHAR)
SELECT COUNT(season__number) FROM table_15838081_3 WHERE writer_s_ = "Jeff Truman"
Which Country has a Total smaller than 284?
CREATE TABLE table_name_75 (country VARCHAR, total INTEGER)
SELECT country FROM table_name_75 WHERE total < 284
Round larger than 2, and a Position of guard involves what college?
CREATE TABLE table_name_6 (college VARCHAR, round VARCHAR, position VARCHAR)
SELECT college FROM table_name_6 WHERE round > 2 AND position = "guard"
What is the Away team score with north melbourne as home team?
CREATE TABLE table_name_50 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_50 WHERE home_team = "north melbourne"
Race that has a Podium larger than 1, and a Season of 1982, and a flap smaller than 1 had how many number of races?
CREATE TABLE table_name_72 (race VARCHAR, flap VARCHAR, podium VARCHAR, season VARCHAR)
SELECT COUNT(race) FROM table_name_72 WHERE podium > 1 AND season = "1982" AND flap < 1
What character did Moya Angela portray?
CREATE TABLE table_22460085_1 (character VARCHAR, original_broadway_performer VARCHAR)
SELECT character FROM table_22460085_1 WHERE original_broadway_performer = "Moya Angela"
What is the gold medal count that has a silver medal count less than 0?
CREATE TABLE table_name_64 (gold INTEGER, silver INTEGER)
SELECT MAX(gold) FROM table_name_64 WHERE silver < 0
When Bunky Henry of the United States scored higher than 67 and his To par was e, what was his place?
CREATE TABLE table_name_18 (place VARCHAR, player VARCHAR, to_par VARCHAR, score VARCHAR, country VARCHAR)
SELECT place FROM table_name_18 WHERE score > 67 AND country = "united states" AND to_par = "e" AND player = "bunky henry"
What are the maximum and minimum number of cows across all farms.
CREATE TABLE farm (Cows INTEGER)
SELECT MAX(Cows), MIN(Cows) FROM farm
How much average Finish has Starts of 9, and a Top 10 smaller than 0?
CREATE TABLE table_name_78 (avg_finish INTEGER, starts VARCHAR, top_10 VARCHAR)
SELECT SUM(avg_finish) FROM table_name_78 WHERE starts = 9 AND top_10 < 0
Can you tell me the Opponent that has the Time of 0:20?
CREATE TABLE table_name_72 (opponent VARCHAR, time VARCHAR)
SELECT opponent FROM table_name_72 WHERE time = "0:20"
List all location attendance for series 1-1.
CREATE TABLE table_17344582_11 (location_attendance VARCHAR, series VARCHAR)
SELECT location_attendance FROM table_17344582_11 WHERE series = "1-1"
Which Arena has a Date of october 10?
CREATE TABLE table_name_13 (arena VARCHAR, date VARCHAR)
SELECT arena FROM table_name_13 WHERE date = "october 10"
What's the location when the opponent was Lyoto Machida?
CREATE TABLE table_name_15 (location VARCHAR, opponent VARCHAR)
SELECT location FROM table_name_15 WHERE opponent = "lyoto machida"
Who was the opponent when the attendance was exactly 16642?
CREATE TABLE table_20745685_1 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_20745685_1 WHERE attendance = 16642
What is the Grade that has Turf 1600m?
CREATE TABLE table_name_27 (grade VARCHAR, priority_entry_rights_to_derby VARCHAR)
SELECT grade FROM table_name_27 WHERE priority_entry_rights_to_derby = "turf 1600m"
Name the result for november 14, 1965
CREATE TABLE table_14977592_1 (result VARCHAR, date VARCHAR)
SELECT result FROM table_14977592_1 WHERE date = "November 14, 1965"
What is the team captain when the shirt sponser is quick?
CREATE TABLE table_27374004_2 (team_captain VARCHAR, shirt_sponsor VARCHAR)
SELECT team_captain FROM table_27374004_2 WHERE shirt_sponsor = "Quick"
Party of republican, and a District of 7th is what elected?
CREATE TABLE table_name_81 (elected VARCHAR, party VARCHAR, district VARCHAR)
SELECT elected FROM table_name_81 WHERE party = "republican" AND district = "7th"
How many primers annulus colors were there when the color of the bullet tip was white?
CREATE TABLE table_1036189_1 (primer_annulus_color VARCHAR, bullet_tip_color VARCHAR)
SELECT COUNT(primer_annulus_color) FROM table_1036189_1 WHERE bullet_tip_color = "White"
How many long range shots did tonya edwards make.
CREATE TABLE table_24906653_5 (field_goals VARCHAR, player VARCHAR)
SELECT COUNT(field_goals) FROM table_24906653_5 WHERE player = "Tonya Edwards"
Which Rebuilt has a Name as rebuilt of binevanagh?
CREATE TABLE table_name_40 (rebuilt VARCHAR, name_as_rebuilt VARCHAR)
SELECT rebuilt FROM table_name_40 WHERE name_as_rebuilt = "binevanagh"
What is the USCA that's Total is smaller than 14, with 1 Joint Music Award, MRHMA of 2, and RTHK of 3?
CREATE TABLE table_name_67 (usca VARCHAR, rthk VARCHAR, mrhma VARCHAR, total VARCHAR, joint_music_award VARCHAR)
SELECT usca FROM table_name_67 WHERE total < 14 AND joint_music_award = "1" AND mrhma = "2" AND rthk = "3"
Which round is the UEFA Cup Compeition and the Kolkheti-1913 Poti Cub?
CREATE TABLE table_name_39 (round VARCHAR, competition VARCHAR, club VARCHAR)
SELECT round FROM table_name_39 WHERE competition = "uefa cup" AND club = "kolkheti-1913 poti"
Count the sum of Pop (2004) which has a Governorate of al mahrah with an Area km² smaller than 78,073?
CREATE TABLE table_name_15 (pop__2004_ INTEGER, governorate VARCHAR, area_km² VARCHAR)
SELECT SUM(pop__2004_) FROM table_name_15 WHERE governorate = "al mahrah" AND area_km² < 78 OFFSET 073
What nationality has a higher round than 8?
CREATE TABLE table_name_86 (nationality VARCHAR, round INTEGER)
SELECT nationality FROM table_name_86 WHERE round > 8
Total weeks of 49,980 attendance?
CREATE TABLE table_name_55 (week INTEGER, attendance VARCHAR)
SELECT SUM(week) FROM table_name_55 WHERE attendance = 49 OFFSET 980
What is the Record with a Score with 80–87, and a Visitor with bucks?
CREATE TABLE table_name_12 (record VARCHAR, score VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_12 WHERE score = "80–87" AND visitor = "bucks"
On what Surface was the match against Ilija Bozoljac played?
CREATE TABLE table_name_9 (surface VARCHAR, opponent VARCHAR)
SELECT surface FROM table_name_9 WHERE opponent = "ilija bozoljac"
What is the name of the race in Cleveland, Ohio?
CREATE TABLE table_name_65 (race_name VARCHAR, city_location VARCHAR)
SELECT race_name FROM table_name_65 WHERE city_location = "cleveland, ohio"
What is 454 gs flx when pacbio is 100-500 mb?
CREATE TABLE table_127511_1 (pacbio VARCHAR)
SELECT 454 AS _gs_flx FROM table_127511_1 WHERE pacbio = "100-500 Mb"
Which margin of victory has cyber agent ladies as the tournament?
CREATE TABLE table_name_78 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT margin_of_victory FROM table_name_78 WHERE tournament = "cyber agent ladies"
How many player eliminated an opponent within the time frame of 32:32?
CREATE TABLE table_18598175_2 (eliminated_by VARCHAR, time VARCHAR)
SELECT COUNT(eliminated_by) FROM table_18598175_2 WHERE time = "32:32"
Tell me the college/junior club team for pick of 16
CREATE TABLE table_name_5 (college_junior_club_team VARCHAR, pick VARCHAR)
SELECT college_junior_club_team FROM table_name_5 WHERE pick = "16"
What is the average lap of the race with a 23 finish?
CREATE TABLE table_name_49 (laps INTEGER, finish VARCHAR)
SELECT AVG(laps) FROM table_name_49 WHERE finish = "23"
Name the score for october 9
CREATE TABLE table_name_92 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_92 WHERE date = "october 9"
Name the least goals against for played more than 38
CREATE TABLE table_name_4 (goals_against INTEGER, played INTEGER)
SELECT MIN(goals_against) FROM table_name_4 WHERE played > 38
Show the names and grades of each high schooler.
CREATE TABLE Highschooler (name VARCHAR, grade VARCHAR)
SELECT name, grade FROM Highschooler
What is masten gregory's average lap?
CREATE TABLE table_name_70 (laps INTEGER, driver VARCHAR)
SELECT AVG(laps) FROM table_name_70 WHERE driver = "masten gregory"
What's the exposure fusion of Panoramaplus x4?
CREATE TABLE table_name_38 (exposure_fusion VARCHAR, name VARCHAR)
SELECT exposure_fusion FROM table_name_38 WHERE name = "panoramaplus x4"
What is the highest Losses, when Wins is "1", and when Matches is less than 2?
CREATE TABLE table_name_21 (losses INTEGER, wins VARCHAR, matches VARCHAR)
SELECT MAX(losses) FROM table_name_21 WHERE wins = 1 AND matches < 2
Which Venue is on 2004-07-24?
CREATE TABLE table_name_68 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_68 WHERE date = "2004-07-24"
What is the lowest amount of bronze Liechtenstein, who has more than 11 gold, has?
CREATE TABLE table_name_75 (bronze INTEGER, nation VARCHAR, gold VARCHAR)
SELECT MIN(bronze) FROM table_name_75 WHERE nation = "liechtenstein" AND gold > 11
Which team, with champion Bastian Kolmsee, used a Dallara f302 for the chassis?
CREATE TABLE table_name_8 (team VARCHAR, chassis VARCHAR, champion VARCHAR)
SELECT team FROM table_name_8 WHERE chassis = "dallara f302" AND champion = "bastian kolmsee"
What is the lowest Points, when Games is greater than 20, and when Team is Partizan Belgrade?
CREATE TABLE table_name_30 (points INTEGER, games VARCHAR, team VARCHAR)
SELECT MIN(points) FROM table_name_30 WHERE games > 20 AND team = "partizan belgrade"
What is Player, when Score is "76-73-73=222"?
CREATE TABLE table_name_60 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_60 WHERE score = 76 - 73 - 73 = 222
When there are 2 wins, how many poles are?
CREATE TABLE table_26223231_1 (poles VARCHAR, wins VARCHAR)
SELECT poles FROM table_26223231_1 WHERE wins = 2
What format has a catalogue of asw 40362?
CREATE TABLE table_name_81 (format VARCHAR, catalogue VARCHAR)
SELECT format FROM table_name_81 WHERE catalogue = "asw 40362"
What are names of stations that have average bike availability above 10 and are not located in San Jose city?
CREATE TABLE station (name VARCHAR, id VARCHAR); CREATE TABLE status (station_id VARCHAR); CREATE TABLE station (name VARCHAR, city VARCHAR, bikes_available INTEGER)
SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING AVG(bikes_available) > 10 EXCEPT SELECT name FROM station WHERE city = "San Jose"
What is the PSIP Short name for the Channel that is less than 51.6?
CREATE TABLE table_name_70 (psip_short_name VARCHAR, channel INTEGER)
SELECT psip_short_name FROM table_name_70 WHERE channel < 51.6
What is the frequency of the model with part number lf80537gf0411m?
CREATE TABLE table_11602313_4 (frequency VARCHAR, part_number_s_ VARCHAR)
SELECT frequency FROM table_11602313_4 WHERE part_number_s_ = "LF80537GF0411M"
what's the player where 50 is 2 and n/o is 0
CREATE TABLE table_10621256_1 (player VARCHAR, n_o VARCHAR)
SELECT player FROM table_10621256_1 WHERE 50 = 2 AND n_o = 0
What is the highest heat for more than 3 lanes and a time of 2:09.12?
CREATE TABLE table_name_23 (heat INTEGER, lane VARCHAR, time VARCHAR)
SELECT MAX(heat) FROM table_name_23 WHERE lane > 3 AND time = "2:09.12"
WHAT IS THE SUM OF ATTENDANCE FOR DETROIT, WHEN POINTS ARE LARGER THAN 33?
CREATE TABLE table_name_26 (attendance INTEGER, home VARCHAR, points VARCHAR)
SELECT SUM(attendance) FROM table_name_26 WHERE home = "detroit" AND points > 33
How many zodiac signs does the month by the Thai name of กันยายน belong to?
CREATE TABLE table_180802_2 (zodiac_sign VARCHAR, thai_name VARCHAR)
SELECT COUNT(zodiac_sign) FROM table_180802_2 WHERE thai_name = "กันยายน"
Which Lost has a Position of 3, and a Drawn larger than 3?
CREATE TABLE table_name_76 (lost INTEGER, position VARCHAR, drawn VARCHAR)
SELECT SUM(lost) FROM table_name_76 WHERE position = 3 AND drawn > 3
Name the number of cfl teams for jeff traversy
CREATE TABLE table_28059992_2 (cfl_team VARCHAR, player VARCHAR)
SELECT COUNT(cfl_team) FROM table_28059992_2 WHERE player = "Jeff Traversy"
What was the date of the game against the Los Angeles Rams?
CREATE TABLE table_name_60 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_60 WHERE opponent = "los angeles rams"
What is Home, when Score is 103-93?
CREATE TABLE table_name_95 (home VARCHAR, score VARCHAR)
SELECT home FROM table_name_95 WHERE score = "103-93"
When was the person who became queen on 15 April 1820 born?
CREATE TABLE table_name_79 (birth VARCHAR, became_queen VARCHAR)
SELECT birth FROM table_name_79 WHERE became_queen = "15 april 1820"
What is Country, when Place is "T3", and when Player is "Jim Thorpe"?
CREATE TABLE table_name_44 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT country FROM table_name_44 WHERE place = "t3" AND player = "jim thorpe"
Name the record when the visitor is mavericks
CREATE TABLE table_name_96 (record VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_96 WHERE visitor = "mavericks"
What position does the College of Louisiana State have?
CREATE TABLE table_name_89 (position VARCHAR, college VARCHAR)
SELECT position FROM table_name_89 WHERE college = "louisiana state"