question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the most recent year joined?
CREATE TABLE table_20887670_1 (year_joined INTEGER)
SELECT MAX(year_joined) FROM table_20887670_1
What is the duration that has 3 for appearances, and james garret as the character?
CREATE TABLE table_name_20 (duration VARCHAR, appearances VARCHAR, character VARCHAR)
SELECT duration FROM table_name_20 WHERE appearances = "3" AND character = "james garret"
Who is the captain of Middlesbrough?
CREATE TABLE table_name_15 (captain VARCHAR, club VARCHAR)
SELECT captain FROM table_name_15 WHERE club = "middlesbrough"
who is the the candidates with incumbent being alfred j. elliott
CREATE TABLE table_1342233_6 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1342233_6 WHERE incumbent = "Alfred J. Elliott"
How many districts have Bart Stupak as the incumbent?
CREATE TABLE table_1341423_22 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(district) FROM table_1341423_22 WHERE incumbent = "Bart Stupak"
What race did Glenn Seton win on the Sandown International Raceway circuit?
CREATE TABLE table_name_81 (race_title VARCHAR, winner VARCHAR, circuit VARCHAR)
SELECT race_title FROM table_name_81 WHERE winner = "glenn seton" AND circuit = "sandown international raceway"
Region of eastern england has what investment income?
CREATE TABLE table_name_30 (investment_income VARCHAR, region VARCHAR)
SELECT investment_income FROM table_name_30 WHERE region = "eastern england"
what is the lowest round3 when round4 is 37?
CREATE TABLE table_name_73 (round3 INTEGER, round4 VARCHAR)
SELECT MIN(round3) FROM table_name_73 WHERE round4 = 37
What is the CB CW of the song which has a BB Pop of 11?
CREATE TABLE table_name_73 (cb_cw VARCHAR, bb_pop VARCHAR)
SELECT cb_cw FROM table_name_73 WHERE bb_pop = "11"
What's the highest annual interchange for wimbledon railway station?
CREATE TABLE table_name_82 (annual_interchanges__millions__2011_12 INTEGER, railway_station VARCHAR)
SELECT MAX(annual_interchanges__millions__2011_12) FROM table_name_82 WHERE railway_station = "wimbledon"
What are the most points Lap 70 had with a grid larger than 16?
CREATE TABLE table_name_71 (points INTEGER, laps VARCHAR, grid VARCHAR)
SELECT MAX(points) FROM table_name_71 WHERE laps = 70 AND grid > 16
Which institutions primary conference is merged into the university of Massachusetts boston?
CREATE TABLE table_261927_2 (institution VARCHAR, primary_conference VARCHAR)
SELECT institution FROM table_261927_2 WHERE primary_conference = "Merged into the University of Massachusetts Boston"
Which Round has an Opponent of aleksandr pitchkounov?
CREATE TABLE table_name_81 (round INTEGER, opponent VARCHAR)
SELECT MIN(round) FROM table_name_81 WHERE opponent = "aleksandr pitchkounov"
Name the total number of seats for votes % more than 19.5
CREATE TABLE table_name_89 (seats VARCHAR, vote__percentage INTEGER)
SELECT COUNT(seats) FROM table_name_89 WHERE vote__percentage > 19.5
What novelty has USA as the location, and coryloides as the name?
CREATE TABLE table_name_70 (novelty VARCHAR, location VARCHAR, name VARCHAR)
SELECT novelty FROM table_name_70 WHERE location = "usa" AND name = "coryloides"
If the player is Marcelo, what is the position?
CREATE TABLE table (position VARCHAR, player VARCHAR, Marcelo VARCHAR)
SELECT position FROM table WHERE player = Marcelo
What was their record when the attendance was 26,827?
CREATE TABLE table_name_51 (record VARCHAR, attendance VARCHAR)
SELECT record FROM table_name_51 WHERE attendance = "26,827"
What is the kit manufacturer that has billy bonds as the manager?
CREATE TABLE table_name_36 (kit_manufacturer VARCHAR, manager VARCHAR)
SELECT kit_manufacturer FROM table_name_36 WHERE manager = "billy bonds"
What is the name of the recipient when the director was Susan Jacobson?
CREATE TABLE table_name_31 (recipient VARCHAR, director_s_ VARCHAR)
SELECT recipient FROM table_name_31 WHERE director_s_ = "susan jacobson"
What are the lost where points lost is 353?
CREATE TABLE table_13758945_1 (lost VARCHAR, points_for VARCHAR)
SELECT lost FROM table_13758945_1 WHERE points_for = "353"
What is the highest opening week net gross of the movie ranked higher than 5 from Reliance Entertainment?
CREATE TABLE table_name_42 (opening_week_nett_gross INTEGER, rank VARCHAR, studio_s_ VARCHAR)
SELECT MAX(opening_week_nett_gross) FROM table_name_42 WHERE rank < 5 AND studio_s_ = "reliance entertainment"
when the number of spectator are 5.28 millions, which is the smallest number of the episode in series?
CREATE TABLE table_23117208_3 (no_in_series INTEGER, viewers__millions_ VARCHAR)
SELECT MIN(no_in_series) FROM table_23117208_3 WHERE viewers__millions_ = "5.28"
Who directed Tequila?
CREATE TABLE table_name_50 (director VARCHAR, title VARCHAR)
SELECT director FROM table_name_50 WHERE title = "tequila"
What in the series number of the episode written by Lauren Gussis?
CREATE TABLE table_24132083_1 (no_in_series INTEGER, written_by VARCHAR)
SELECT MIN(no_in_series) FROM table_24132083_1 WHERE written_by = "Lauren Gussis"
What is the record for the result w 33-3?
CREATE TABLE table_name_4 (record VARCHAR, result VARCHAR)
SELECT record FROM table_name_4 WHERE result = "w 33-3"
When the quiabaya municipality is 2 what is the combaya municipality?
CREATE TABLE table_2509202_2 (combaya_municipality VARCHAR, quiabaya_municipality VARCHAR)
SELECT combaya_municipality FROM table_2509202_2 WHERE quiabaya_municipality = "2"
What is the maximum total when the To par is +3?
CREATE TABLE table_name_16 (total INTEGER, to_par VARCHAR)
SELECT MAX(total) FROM table_name_16 WHERE to_par = "+3"
What is the lowest PF?
CREATE TABLE table_1370559_1 (pf INTEGER)
SELECT MIN(pf) FROM table_1370559_1
What is Joanne Carner's average score in Canadian Women's Open games that she has won?
CREATE TABLE table_name_70 (score INTEGER, champion VARCHAR)
SELECT AVG(score) FROM table_name_70 WHERE champion = "joanne carner"
To which party does Robert W. Edgar belong?
CREATE TABLE table_1341598_39 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341598_39 WHERE incumbent = "Robert W. Edgar"
What match number has a ground of H and the opponent Chelsea under 18s?
CREATE TABLE table_name_37 (match INTEGER, ground VARCHAR, opponent VARCHAR)
SELECT AVG(match) FROM table_name_37 WHERE ground = "h" AND opponent = "chelsea under 18s"
What is the description of the color for most products?
CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR); CREATE TABLE products (color_code VARCHAR)
SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY COUNT(*) DESC LIMIT 1
What First game has a Lost greater than 16?
CREATE TABLE table_name_16 (first_game INTEGER, lost INTEGER)
SELECT AVG(first_game) FROM table_name_16 WHERE lost > 16
How much To par has a Total larger than 149, and a Country of united states, and a Year(s) won of 1997?
CREATE TABLE table_name_32 (to_par INTEGER, year_s__won VARCHAR, total VARCHAR, country VARCHAR)
SELECT SUM(to_par) FROM table_name_32 WHERE total > 149 AND country = "united states" AND year_s__won = "1997"
What is the date of the last performance when the style is street dance and the name is George Maguire?
CREATE TABLE table_name_77 (last_performance VARCHAR, style VARCHAR, name VARCHAR)
SELECT last_performance FROM table_name_77 WHERE style = "street dance" AND name = "george maguire"
Who was the Rookie of the Year for the Season in 2000?
CREATE TABLE table_name_72 (rookie_of_the_year VARCHAR, season VARCHAR)
SELECT rookie_of_the_year FROM table_name_72 WHERE season = 2000
What is the date of the game against Philadelphia Eagles?
CREATE TABLE table_name_61 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_61 WHERE opponent = "philadelphia eagles"
What is the highest number listed under against when there were less than 3 wins and less than 15 losses?
CREATE TABLE table_name_20 (against INTEGER, wins VARCHAR, losses VARCHAR)
SELECT MAX(against) FROM table_name_20 WHERE wins < 3 AND losses < 15
What is the competition in tokyo with the result loss?
CREATE TABLE table_name_3 (competition VARCHAR, location VARCHAR, result VARCHAR)
SELECT competition FROM table_name_3 WHERE location = "tokyo" AND result = "loss"
What is the Name when the League Cup shows 0 (0), and the FA Cup is 12 (14)?
CREATE TABLE table_name_40 (name VARCHAR, league_cup VARCHAR, fa_cup VARCHAR)
SELECT name FROM table_name_40 WHERE league_cup = "0 (0)" AND fa_cup = "12 (14)"
Which 1995 has a 1993 of 3r?
CREATE TABLE table_name_86 (Id VARCHAR)
SELECT 1995 FROM table_name_86 WHERE 1993 = "3r"
Which 2006 has a 2007 of A?
CREATE TABLE table_name_98 (Id VARCHAR)
SELECT 2006 FROM table_name_98 WHERE 2007 = "a"
What capital has a population of exactly 1339724852?
CREATE TABLE table_19605700_1 (capital VARCHAR, population VARCHAR)
SELECT capital FROM table_19605700_1 WHERE population = 1339724852
Which Total (kg) has a Clean & Jerk smaller than 153, and a Snatch smaller than 100?
CREATE TABLE table_name_48 (total__kg_ INTEGER, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
SELECT MIN(total__kg_) FROM table_name_48 WHERE clean_ & _jerk < 153 AND snatch < 100
Name the location for 1829
CREATE TABLE table_1974482_1 (location VARCHAR, founded VARCHAR)
SELECT location FROM table_1974482_1 WHERE founded = 1829
What is the infinitive stem that is associated with a subjunctive present of a and a plural preterite of uo?
CREATE TABLE table_name_13 (inf_stem VARCHAR, subj_pres VARCHAR, plur_pret VARCHAR)
SELECT inf_stem FROM table_name_13 WHERE subj_pres = "a" AND plur_pret = "uo"
Name the position for delaware
CREATE TABLE table_2508633_6 (position VARCHAR, college VARCHAR)
SELECT position FROM table_2508633_6 WHERE college = "Delaware"
What district is the democratic Francis C. Le Blond from?
CREATE TABLE table_name_69 (district VARCHAR, party VARCHAR, incumbent VARCHAR)
SELECT district FROM table_name_69 WHERE party = "democratic" AND incumbent = "francis c. le blond"
What is the rank by average where the total was larger than 245 and the average was 27.1 with fewer than 15 dances?
CREATE TABLE table_name_43 (rank_by_average INTEGER, number_of_dances VARCHAR, total VARCHAR, average VARCHAR)
SELECT AVG(rank_by_average) FROM table_name_43 WHERE total > 245 AND average = 27.1 AND number_of_dances < 15
Which tribunal had a total of 4167?
CREATE TABLE table_name_34 (tribunal VARCHAR, total VARCHAR)
SELECT tribunal FROM table_name_34 WHERE total = "4167"
What is the highest Kuala Lumpur value with a Durban value less than 1 and a Mar Del Plata value greater than 0?
CREATE TABLE table_name_82 (kuala_lumpur INTEGER, durban VARCHAR, mar_del_plata VARCHAR)
SELECT MAX(kuala_lumpur) FROM table_name_82 WHERE durban < 1 AND mar_del_plata > 0
What circuit has volvo cars australia as the team?
CREATE TABLE table_name_15 (circuit VARCHAR, team VARCHAR)
SELECT circuit FROM table_name_15 WHERE team = "volvo cars australia"
What is the highest rank for the airport with a code of HKG/VHHH?
CREATE TABLE table_name_56 (rank INTEGER, code__iata_icao_ VARCHAR)
SELECT MAX(rank) FROM table_name_56 WHERE code__iata_icao_ = "hkg/vhhh"
Game larger than 76, and a March larger than 26 involves what score?
CREATE TABLE table_name_60 (score VARCHAR, game VARCHAR, march VARCHAR)
SELECT score FROM table_name_60 WHERE game > 76 AND march > 26
What is Beyer Peacock's SR number with a SECR number of 769?
CREATE TABLE table_name_10 (sr_no INTEGER, builder VARCHAR, secr_no VARCHAR)
SELECT AVG(sr_no) FROM table_name_10 WHERE builder = "beyer peacock" AND secr_no = 769
What party took office after 1993 with Senator Michael Galloway?
CREATE TABLE table_name_61 (party VARCHAR, took_office VARCHAR, senator VARCHAR)
SELECT party FROM table_name_61 WHERE took_office > 1993 AND senator = "michael galloway"
How many rounds did Virginia have?
CREATE TABLE table_20860739_1 (round VARCHAR, college VARCHAR)
SELECT round FROM table_20860739_1 WHERE college = "Virginia"
What position is associated with an overall value of 126?
CREATE TABLE table_11803648_20 (position VARCHAR, overall VARCHAR)
SELECT position FROM table_11803648_20 WHERE overall = "126"
What is the name of the player with an overall less than 209 for the Victoriaville tigres (qmjhl), and a Round of 1?
CREATE TABLE table_name_85 (player VARCHAR, round VARCHAR, overall VARCHAR, club_team VARCHAR)
SELECT player FROM table_name_85 WHERE overall < 209 AND club_team = "victoriaville tigres (qmjhl)" AND round = 1
How many U.S. air dates were from an episode in Season 4?
CREATE TABLE table_19422702_1 (us_airdate VARCHAR, no_in_season VARCHAR)
SELECT COUNT(us_airdate) FROM table_19422702_1 WHERE no_in_season = 4
Can you tell me the total number of Gain that has the Name of williams, jonathan, and the Loss larger than 3?
CREATE TABLE table_name_55 (gain VARCHAR, name VARCHAR, loss VARCHAR)
SELECT COUNT(gain) FROM table_name_55 WHERE name = "williams, jonathan" AND loss > 3
Name the Number of electorates (2009 which has a Reserved for ( SC / ST /None) of none, and a Name of jahanabad?
CREATE TABLE table_name_40 (number_of_electorates__2009_ INTEGER, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
SELECT MIN(number_of_electorates__2009_) FROM table_name_40 WHERE reserved_for___sc___st__none_ = "none" AND name = "jahanabad"
Which animal has a resting potential of −60?
CREATE TABLE table_name_75 (animal VARCHAR, resting_potential__mv_ VARCHAR)
SELECT animal FROM table_name_75 WHERE resting_potential__mv_ = "−60"
What pick was play Jason Webb?
CREATE TABLE table_name_31 (pick INTEGER, player VARCHAR)
SELECT MAX(pick) FROM table_name_31 WHERE player = "jason webb"
What school has south bend as the location, with indians as the mascot?
CREATE TABLE table_name_32 (school VARCHAR, location VARCHAR, mascot VARCHAR)
SELECT school FROM table_name_32 WHERE location = "south bend" AND mascot = "indians"
How many jockeys are listed running at the Sir Rupert Clarke Stakes?
CREATE TABLE table_14981555_3 (jockey VARCHAR, race VARCHAR)
SELECT COUNT(jockey) FROM table_14981555_3 WHERE race = "Sir Rupert Clarke Stakes"
Which viewers had Matt Gallagher as the director?
CREATE TABLE table_11642945_1 (viewers VARCHAR, director VARCHAR)
SELECT viewers FROM table_11642945_1 WHERE director = "Matt Gallagher"
How many intro dates have the price of 686€?
CREATE TABLE table_29778616_1 (intro_date VARCHAR, price VARCHAR)
SELECT COUNT(intro_date) FROM table_29778616_1 WHERE price = "686€"
What is the highest overall number for a player from Kentucky State?
CREATE TABLE table_name_36 (overall INTEGER, college VARCHAR)
SELECT MAX(overall) FROM table_name_36 WHERE college = "kentucky state"
what is the maximum season with byu-usu score being 29–7
CREATE TABLE table_13665809_2 (season INTEGER, byu_usu_score VARCHAR)
SELECT MAX(season) FROM table_13665809_2 WHERE byu_usu_score = "29–7"
What is the highest round of the player with an overall of 152?
CREATE TABLE table_name_38 (round INTEGER, overall VARCHAR)
SELECT MAX(round) FROM table_name_38 WHERE overall = 152
When was Montreal a visitor?
CREATE TABLE table_name_34 (date VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_34 WHERE visitor = "montreal"
What's the name of the competition where the nationality is Brazil and the voting percentage is n/a?
CREATE TABLE table_24765815_2 (competition VARCHAR, vote_percentage VARCHAR, nationality VARCHAR)
SELECT competition FROM table_24765815_2 WHERE vote_percentage = "N/A" AND nationality = "Brazil"
Elevation of 12,183 feet 3713 m is what average route?
CREATE TABLE table_name_12 (route INTEGER, elevation VARCHAR)
SELECT AVG(route) FROM table_name_12 WHERE elevation = "12,183 feet 3713 m"
Who were the pictorials when the centerfold model was Ava Fabian?
CREATE TABLE table_1566848_7 (pictorials VARCHAR, centerfold_model VARCHAR)
SELECT pictorials FROM table_1566848_7 WHERE centerfold_model = "Ava Fabian"
What is the least total?
CREATE TABLE table_28723146_2 (total INTEGER)
SELECT MIN(total) FROM table_28723146_2
Who wrote Season 8?
CREATE TABLE table_16617025_1 (written_by VARCHAR, season__number VARCHAR)
SELECT written_by FROM table_16617025_1 WHERE season__number = 8
Who is the losing pitcher when the winning pitcher is roy oswalt?
CREATE TABLE table_12125069_2 (losing_pitcher VARCHAR, winning_pitcher VARCHAR)
SELECT losing_pitcher FROM table_12125069_2 WHERE winning_pitcher = "Roy Oswalt"
What is the Score of the game with a decision of Lundqvist, the November less than 28, and opponent was Boston Bruins?
CREATE TABLE table_name_31 (score VARCHAR, opponent VARCHAR, decision VARCHAR, november VARCHAR)
SELECT score FROM table_name_31 WHERE decision = "lundqvist" AND november < 28 AND opponent = "boston bruins"
Which club is at the location of kuopio?
CREATE TABLE table_29250534_1 (club VARCHAR, location VARCHAR)
SELECT club FROM table_29250534_1 WHERE location = "Kuopio"
What's the 2nd leg for team 2 san francisco?
CREATE TABLE table_name_62 (team_2 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_62 WHERE team_2 = "san francisco"
What is Country, when Total is less than 290, and when Year(s) Won is 1960?
CREATE TABLE table_name_29 (country VARCHAR, total VARCHAR, year_s__won VARCHAR)
SELECT country FROM table_name_29 WHERE total < 290 AND year_s__won = "1960"
What was the earliest year that had a location of Brookline, Massachusetts?
CREATE TABLE table_name_78 (year INTEGER, location VARCHAR)
SELECT MIN(year) FROM table_name_78 WHERE location = "brookline, massachusetts"
What was the Result in 2013?
CREATE TABLE table_name_48 (result VARCHAR, year VARCHAR)
SELECT result FROM table_name_48 WHERE year = 2013
When was the game at Moorabbin Oval?
CREATE TABLE table_name_98 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_98 WHERE venue = "moorabbin oval"
What are the Japanese characters for the Chinese word 叉焼?
CREATE TABLE table_name_28 (japanese VARCHAR, chinese VARCHAR)
SELECT japanese FROM table_name_28 WHERE chinese = "叉焼"
What was the original air date of an episode set in 1544?
CREATE TABLE table_10413597_5 (original_air_date VARCHAR, setting VARCHAR)
SELECT original_air_date FROM table_10413597_5 WHERE setting = "1544"
Who were the opposing team when playing in the Portugal venue?
CREATE TABLE table_name_49 (opponents VARCHAR, venue VARCHAR)
SELECT opponents FROM table_name_49 WHERE venue = "portugal"
Name the least 4 car sets
CREATE TABLE table_19255192_2 (Id VARCHAR)
SELECT MIN(4 AS _car_sets) FROM table_19255192_2
How many branches where have more than average number of memberships are there?
CREATE TABLE branch (membership_amount INTEGER)
SELECT COUNT(*) FROM branch WHERE membership_amount > (SELECT AVG(membership_amount) FROM branch)
What is the Italian word for the English word "otter"?
CREATE TABLE table_2077192_2 (italian VARCHAR, english VARCHAR)
SELECT italian FROM table_2077192_2 WHERE english = "otter"
What is the Status with a Name that is anas cheuen?
CREATE TABLE table_name_77 (status VARCHAR, name VARCHAR)
SELECT status FROM table_name_77 WHERE name = "anas cheuen"
what's the first elected with incumbent being clair engle
CREATE TABLE table_1342233_6 (first_elected VARCHAR, incumbent VARCHAR)
SELECT first_elected FROM table_1342233_6 WHERE incumbent = "Clair Engle"
If the event number is 5, what is the winner total number?
CREATE TABLE table_2534387_11 (winner VARCHAR, event__number VARCHAR)
SELECT COUNT(winner) FROM table_2534387_11 WHERE event__number = 5
What was the rainfall by volume in Huetar Atlantico where the rainfall depth (mm/year) was 3527?
CREATE TABLE table_25983027_1 (rainfall_by_volume__km_3__year_ VARCHAR, rainfall_by_depth__mm_year_ VARCHAR)
SELECT rainfall_by_volume__km_3__year_ FROM table_25983027_1 WHERE rainfall_by_depth__mm_year_ = 3527
Show the average room count of the apartments that have booking status code "Provisional".
CREATE TABLE Apartment_Bookings (apt_id VARCHAR, booking_status_code VARCHAR); CREATE TABLE Apartments (apt_id VARCHAR)
SELECT AVG(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = "Provisional"
I want to know the driver when grid is greater than 13 and laps is less than 60 with time/retired of accident
CREATE TABLE table_name_41 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT driver FROM table_name_41 WHERE grid > 13 AND laps < 60 AND time_retired = "accident"
How many picks does Auburn have?
CREATE TABLE table_name_47 (pick VARCHAR, school_club_team VARCHAR)
SELECT COUNT(pick) FROM table_name_47 WHERE school_club_team = "auburn"
What was a penalty given for at time 29:17?
CREATE TABLE table_name_89 (penalty VARCHAR, time VARCHAR)
SELECT penalty FROM table_name_89 WHERE time = "29:17"
What is the highest position a team with 7 draws earned?
CREATE TABLE table_18018214_1 (position INTEGER, draws VARCHAR)
SELECT MAX(position) FROM table_18018214_1 WHERE draws = 7