question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
with year greater than 1988 what is the total number of points?
CREATE TABLE table_name_62 (points VARCHAR, year INTEGER)
SELECT COUNT(points) FROM table_name_62 WHERE year > 1988
What is the fastest lap with pole position of gilles villeneuve?
CREATE TABLE table_1140077_2 (fastest_lap VARCHAR, pole_position VARCHAR)
SELECT fastest_lap FROM table_1140077_2 WHERE pole_position = "Gilles Villeneuve"
List the id of students who attended some courses?
CREATE TABLE student_course_attendance (student_id VARCHAR)
SELECT student_id FROM student_course_attendance
What is the maximum miles per hour recorded when the CHI (Carvill Hurricane Index) is equal to 13.5
CREATE TABLE table_15416002_1 (v_mph_ INTEGER, chi VARCHAR)
SELECT MAX(v_mph_) FROM table_15416002_1 WHERE chi = "13.5"
How many distinct cities does the employees live in?
CREATE TABLE EMPLOYEE (city VARCHAR)
SELECT COUNT(DISTINCT city) FROM EMPLOYEE
What is the artist with less than a 2 draw?
CREATE TABLE table_name_88 (artist VARCHAR, draw INTEGER)
SELECT artist FROM table_name_88 WHERE draw < 2
What's the smallest track written by dennis linde that's 2:50 minutes long
CREATE TABLE table_name_37 (track INTEGER, writer_s_ VARCHAR, time VARCHAR)
SELECT MIN(track) FROM table_name_37 WHERE writer_s_ = "dennis linde" AND time = "2:50"
Which phase is for the Matchday 4 Round?
CREATE TABLE table_name_72 (phase VARCHAR, round VARCHAR)
SELECT phase FROM table_name_72 WHERE round = "matchday 4"
what's the pts with position being nc
CREATE TABLE table_14139408_1 (pts VARCHAR, position VARCHAR)
SELECT pts FROM table_14139408_1 WHERE position = "NC"
What's the total number that had a rank larger than 17 and a gold greater than 0?
CREATE TABLE table_name_73 (total VARCHAR, rank VARCHAR, gold VARCHAR)
SELECT COUNT(total) FROM table_name_73 WHERE rank > 17 AND gold > 0
Which higher secondary school listing has the lowest total and an Aided amount larger than 14?
CREATE TABLE table_name_41 (total INTEGER, institution VARCHAR, aided VARCHAR)
SELECT MIN(total) FROM table_name_41 WHERE institution = "higher secondary school" AND aided > 14
Which competition did the toronto city saints win?
CREATE TABLE table_25735_1 (competition VARCHAR, winner VARCHAR)
SELECT competition FROM table_25735_1 WHERE winner = "Toronto City Saints"
Who was the opponent with an outcome runner-up on November 15, 2010?
CREATE TABLE table_name_79 (opponent VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_79 WHERE outcome = "runner-up" AND date = "november 15, 2010"
What were the total number of points when the amount of goals scored was less than 20?
CREATE TABLE table_name_39 (points VARCHAR, goals_scored INTEGER)
SELECT COUNT(points) FROM table_name_39 WHERE goals_scored < 20
What time or retired does Scott Dixon have?
CREATE TABLE table_name_7 (time_retired VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_7 WHERE driver = "scott dixon"
What was the athlete with a final result of 4.30?
CREATE TABLE table_name_48 (athlete VARCHAR, result VARCHAR)
SELECT athlete FROM table_name_48 WHERE result = "4.30"
What is the title of the episode that featured Abbud Siddiqui?
CREATE TABLE table_29545336_2 (title VARCHAR, featured_character_s_ VARCHAR)
SELECT title FROM table_29545336_2 WHERE featured_character_s_ = "Abbud Siddiqui"
How many cellos are suggested in the reference with section size for 20 players?
CREATE TABLE table_2414_1 (celli VARCHAR, section_size VARCHAR)
SELECT celli FROM table_2414_1 WHERE section_size = "20 players"
Name the lowest against for when wins are greater than 14, draws is 0 and losses are 4
CREATE TABLE table_name_3 (against INTEGER, wins VARCHAR, losses VARCHAR, draws VARCHAR)
SELECT MIN(against) FROM table_name_3 WHERE losses = 4 AND draws = 0 AND wins > 14
Return the lot details and investor ids.
CREATE TABLE LOTS (lot_details VARCHAR, investor_id VARCHAR)
SELECT lot_details, investor_id FROM LOTS
What company constrcuted the vehicle with a circuit of oulton park on 15 april?
CREATE TABLE table_name_17 (constructor VARCHAR, circuit VARCHAR, date VARCHAR)
SELECT constructor FROM table_name_17 WHERE circuit = "oulton park" AND date = "15 april"
What driver raced for more than 9 laps on grid 7?
CREATE TABLE table_name_22 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_22 WHERE laps > 9 AND grid = 7
What Outgoing manager left at his end of tenure as caretaker and was Replaced by Jesper Hansen?
CREATE TABLE table_name_78 (outgoing_manager VARCHAR, manner_of_departure VARCHAR, replaced_by VARCHAR)
SELECT outgoing_manager FROM table_name_78 WHERE manner_of_departure = "end of tenure as caretaker" AND replaced_by = "jesper hansen"
What is the total number of Height(s), when Spike is less than 352, when Block is greater than 300, and when Name is Pablo Meana?
CREATE TABLE table_name_21 (height VARCHAR, name VARCHAR, spike VARCHAR, block VARCHAR)
SELECT COUNT(height) FROM table_name_21 WHERE spike < 352 AND block > 300 AND name = "pablo meana"
What was the loss for August 19?
CREATE TABLE table_name_91 (loss VARCHAR, date VARCHAR)
SELECT loss FROM table_name_91 WHERE date = "august 19"
Who was the second when Ilian Kirilov was the lead?
CREATE TABLE table_name_2 (second VARCHAR, lead VARCHAR)
SELECT second FROM table_name_2 WHERE lead = "ilian kirilov"
What is the average attendance at a game held at Firhill for the 5(r) round?
CREATE TABLE table_name_26 (attendance INTEGER, venue VARCHAR, round VARCHAR)
SELECT AVG(attendance) FROM table_name_26 WHERE venue = "firhill" AND round = "5(r)"
What is the 2003 seat number, when seats contested was at 38.23%
CREATE TABLE table_20728138_1 (_percentage_in_seats_contested VARCHAR)
SELECT MIN(2003 AS _seats) FROM table_20728138_1 WHERE _percentage_in_seats_contested = "38.23%"
Which Score has a Place of t1, and a Player of hubert green?
CREATE TABLE table_name_35 (score INTEGER, place VARCHAR, player VARCHAR)
SELECT AVG(score) FROM table_name_35 WHERE place = "t1" AND player = "hubert green"
Which Date has a Home of montreal canadiens, and Points larger than 9, and a Decision of price?
CREATE TABLE table_name_99 (date VARCHAR, decision VARCHAR, home VARCHAR, points VARCHAR)
SELECT date FROM table_name_99 WHERE home = "montreal canadiens" AND points > 9 AND decision = "price"
What is hemophilia's bleeding time?
CREATE TABLE table_name_41 (bleeding_time VARCHAR, condition VARCHAR)
SELECT bleeding_time FROM table_name_41 WHERE condition = "hemophilia"
How many people attended the game with a Tie no of 30?
CREATE TABLE table_name_88 (attendance VARCHAR, tie_no VARCHAR)
SELECT attendance FROM table_name_88 WHERE tie_no = "30"
Which Variant id has the GenBank id of nm_005411.4?
CREATE TABLE table_name_40 (variant_id VARCHAR, genbank_id VARCHAR)
SELECT variant_id FROM table_name_40 WHERE genbank_id = "nm_005411.4"
Name the production code for number in season being 21
CREATE TABLE table_22948559_1 (production_code VARCHAR, no_in_season VARCHAR)
SELECT production_code FROM table_22948559_1 WHERE no_in_season = "21"
Tell me the number for height in ft of 6-7
CREATE TABLE table_name_18 (no_s_ VARCHAR, height_in_ft VARCHAR)
SELECT no_s_ FROM table_name_18 WHERE height_in_ft = "6-7"
What was Tom Donchez pick number?
CREATE TABLE table_name_21 (pick__number VARCHAR, player VARCHAR)
SELECT pick__number FROM table_name_21 WHERE player = "tom donchez"
Tell me the recorded for time of 2:50 and released date of 6/6/77 with track more than 20
CREATE TABLE table_name_84 (recorded VARCHAR, time VARCHAR, track VARCHAR, release_date VARCHAR)
SELECT recorded FROM table_name_84 WHERE track > 20 AND release_date = "6/6/77" AND time = "2:50"
For the Enernoc Australia Pty Ltd, what's the country with an unknown date?
CREATE TABLE table_name_15 (country VARCHAR, date VARCHAR, company VARCHAR)
SELECT country FROM table_name_15 WHERE date = "unknown" AND company = "enernoc australia pty ltd"
What was the constructor for round 15?
CREATE TABLE table_1140083_2 (constructor VARCHAR, rnd VARCHAR)
SELECT constructor FROM table_1140083_2 WHERE rnd = 15
When did the Summer Olympics occur in Tokyo?
CREATE TABLE table_name_3 (summer_olympics VARCHAR, city VARCHAR)
SELECT summer_olympics FROM table_name_3 WHERE city = "tokyo"
Who was the away team that played Northampton Town at home with a tie number of replay?
CREATE TABLE table_name_53 (away_team VARCHAR, tie_no VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_53 WHERE tie_no = "replay" AND home_team = "northampton town"
When was "Tell You When" released?
CREATE TABLE table_16859758_1 (release_date VARCHAR, title VARCHAR)
SELECT release_date FROM table_16859758_1 WHERE title = "Tell You When"
What is the average interview score from Kentucky?
CREATE TABLE table_name_27 (interview INTEGER, state VARCHAR)
SELECT AVG(interview) FROM table_name_27 WHERE state = "kentucky"
Name the opponents for anabel medina garrigues
CREATE TABLE table_28979895_4 (opponents VARCHAR, partner VARCHAR)
SELECT COUNT(opponents) FROM table_28979895_4 WHERE partner = "Anabel Medina Garrigues"
What vfl club(s) for players ranked sergeant, 8th brigade australian field artillery at time of death?
CREATE TABLE table_16527640_2 (vfl_club_s_ VARCHAR, rank_held_at_time_of_death VARCHAR)
SELECT vfl_club_s_ FROM table_16527640_2 WHERE rank_held_at_time_of_death = "Sergeant, 8th Brigade Australian Field Artillery"
What is the Tie Number when the home team was West Ham United?
CREATE TABLE table_name_56 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_56 WHERE home_team = "west ham united"
What was the final score in 1986?
CREATE TABLE table_26309085_1 (score_in_final VARCHAR, year VARCHAR)
SELECT score_in_final FROM table_26309085_1 WHERE year = 1986
What is the age of the contestant from Reno, NV?
CREATE TABLE table_name_55 (age_1 VARCHAR, hometown VARCHAR)
SELECT age_1 FROM table_name_55 WHERE hometown = "reno, nv"
Atlanta was a visitor on December 8, what was their record?
CREATE TABLE table_name_68 (record VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_68 WHERE visitor = "atlanta"
Who is the incumbent of district pa-8?
CREATE TABLE table_28188239_1 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_28188239_1 WHERE district = "PA-8"
What is the Meet of the Event with a Time of 7:55.02?
CREATE TABLE table_name_33 (meet VARCHAR, time VARCHAR)
SELECT meet FROM table_name_33 WHERE time = "7:55.02"
Which area 2006 km² has a city of sopot, and an area 1996 km² smaller than 17.31?
CREATE TABLE table_name_22 (area_2006_km² INTEGER, city VARCHAR, area_1996_km² VARCHAR)
SELECT MAX(area_2006_km²) FROM table_name_22 WHERE city = "sopot" AND area_1996_km² < 17.31
What is the Netflix episode for series episode 15-01?
CREATE TABLE table_name_64 (netflix VARCHAR, series_ep VARCHAR)
SELECT netflix FROM table_name_64 WHERE series_ep = "15-01"
What position did he finish after 1998 and a note time of 2:31:40?
CREATE TABLE table_name_71 (position VARCHAR, year VARCHAR, notes VARCHAR)
SELECT position FROM table_name_71 WHERE year > 1998 AND notes = "2:31:40"
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"
Who is the home team with a tie no. 12?
CREATE TABLE table_name_70 (home_team VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_70 WHERE tie_no = "12"
Who was the entrant for driver Giuseppe Farina when he had a Chassis of 625 555 D50 and a tyre of E?
CREATE TABLE table_name_87 (entrant VARCHAR, driver VARCHAR, tyre VARCHAR, chassis VARCHAR)
SELECT entrant FROM table_name_87 WHERE tyre = "e" AND chassis = "625 555 d50" AND driver = "giuseppe farina"
How many gains have a long greater than 8, with avg/g of 124.9?
CREATE TABLE table_name_27 (gain INTEGER, long VARCHAR, avg_g VARCHAR)
SELECT SUM(gain) FROM table_name_27 WHERE long > 8 AND avg_g = 124.9
which team(s) won $2,605,05
CREATE TABLE table_2012187_1 (team_s_ VARCHAR, winnings VARCHAR)
SELECT team_s_ FROM table_2012187_1 WHERE winnings = "$2,605,05"
What is the player that went to st. benedict's prep?
CREATE TABLE table_name_61 (player VARCHAR, school VARCHAR)
SELECT player FROM table_name_61 WHERE school = "st. benedict's prep"
Which Week has a Result of l 20–13, and an Attendance larger than 49,598?
CREATE TABLE table_name_8 (week INTEGER, result VARCHAR, attendance VARCHAR)
SELECT MAX(week) FROM table_name_8 WHERE result = "l 20–13" AND attendance > 49 OFFSET 598
What is the smallest bronze with a Nation of west germany, and a Gold larger than 0?
CREATE TABLE table_name_58 (bronze INTEGER, nation VARCHAR, gold VARCHAR)
SELECT MIN(bronze) FROM table_name_58 WHERE nation = "west germany" AND gold > 0
What is Set 4, when Set 1 is 25-18, and when Date is Jun 2?
CREATE TABLE table_name_37 (set_4 VARCHAR, set_1 VARCHAR, date VARCHAR)
SELECT set_4 FROM table_name_37 WHERE set_1 = "25-18" AND date = "jun 2"
In which week was the team record 7–2?
CREATE TABLE table_24481478_1 (week INTEGER, team_record VARCHAR)
SELECT MIN(week) FROM table_24481478_1 WHERE team_record = "7–2"
what is the played when the wins is 21 and the positions is higher than 3?
CREATE TABLE table_name_55 (played INTEGER, wins VARCHAR, position VARCHAR)
SELECT SUM(played) FROM table_name_55 WHERE wins = 21 AND position > 3
What is the last 5 meetings that has w 5 as the current streak, and 3/18/2010 as the last meeting?
CREATE TABLE table_name_69 (last_5_meetings VARCHAR, current_streak VARCHAR, last_meeting VARCHAR)
SELECT last_5_meetings FROM table_name_69 WHERE current_streak = "w 5" AND last_meeting = "3/18/2010"
Find the name of projects that require between 100 and 300 hours of work.
CREATE TABLE projects (name VARCHAR, hours INTEGER)
SELECT name FROM projects WHERE hours BETWEEN 100 AND 300
Who is the Winning Applicant of Ensemble Name Muxco Lincolnshire in Block 10D?
CREATE TABLE table_name_45 (winning_applicant VARCHAR, block VARCHAR, ensemble_name VARCHAR)
SELECT winning_applicant FROM table_name_45 WHERE block = "10d" AND ensemble_name = "muxco lincolnshire"
What is Australia's Disposable USD growth?
CREATE TABLE table_24486462_1 (disposable_usd_growth INTEGER, country VARCHAR)
SELECT MAX(disposable_usd_growth) FROM table_24486462_1 WHERE country = "Australia"
What was the 1st leg when team 2 was nov milenium?
CREATE TABLE table_name_7 (team_2 VARCHAR)
SELECT 1 AS st_leg FROM table_name_7 WHERE team_2 = "nov milenium"
How many joined this Private/Church of God institution?
CREATE TABLE table_255205_1 (joined VARCHAR, type VARCHAR)
SELECT joined FROM table_255205_1 WHERE type = "Private/Church of God"
what song is a genre of glam
CREATE TABLE table_name_26 (song_title VARCHAR, genre VARCHAR)
SELECT song_title FROM table_name_26 WHERE genre = "glam"
What is the Hometown of Candidate Lenny Veltman?
CREATE TABLE table_name_73 (hometown VARCHAR, candidate VARCHAR)
SELECT hometown FROM table_name_73 WHERE candidate = "lenny veltman"
How many pages does a dream of spring have?
CREATE TABLE table_name_3 (pages VARCHAR, title VARCHAR)
SELECT pages FROM table_name_3 WHERE title = "a dream of spring"
When was the friendship cup?
CREATE TABLE table_name_37 (date VARCHAR, competition VARCHAR)
SELECT date FROM table_name_37 WHERE competition = "friendship cup"
When kevin bridges and katy wix are both on the less team what is the score?
CREATE TABLE table_23575917_6 (scores VARCHAR, lees_team VARCHAR)
SELECT scores FROM table_23575917_6 WHERE lees_team = "Kevin Bridges and Katy Wix"
What is Stop No., when Destination is Perth, and when Line is Midland?
CREATE TABLE table_name_23 (stop_no VARCHAR, destination VARCHAR, line VARCHAR)
SELECT stop_no FROM table_name_23 WHERE destination = "perth" AND line = "midland"
What is the dominant religion in Gornji Tavankut?
CREATE TABLE table_2562572_26 (dominant_religion__2002_ VARCHAR, settlement VARCHAR)
SELECT dominant_religion__2002_ FROM table_2562572_26 WHERE settlement = "Gornji Tavankut"
What grad has a Time/Retired of + 1:24.3?
CREATE TABLE table_name_74 (grid VARCHAR, time_retired VARCHAR)
SELECT grid FROM table_name_74 WHERE time_retired = "+ 1:24.3"
What is the highest number of gold medals for the team ranked 7 with less than 3 bronze?
CREATE TABLE table_name_19 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT MAX(gold) FROM table_name_19 WHERE rank = "7" AND bronze < 3
How many points when pole are 1?
CREATE TABLE table_22056184_1 (points VARCHAR, poles VARCHAR)
SELECT points FROM table_22056184_1 WHERE poles = 1
Which location has 111 as the days held?
CREATE TABLE table_name_4 (location VARCHAR, days_held VARCHAR)
SELECT location FROM table_name_4 WHERE days_held = "111"
What year had a race with 301* laps?
CREATE TABLE table_22648285_1 (year VARCHAR, laps VARCHAR)
SELECT year FROM table_22648285_1 WHERE laps = "301*"
Which formula has a thial as a chemical class?
CREATE TABLE table_name_13 (formula VARCHAR, chemical_class VARCHAR)
SELECT formula FROM table_name_13 WHERE chemical_class = "thial"
what's the sunday sōl (sun) with friday venus (venus) being vernes
CREATE TABLE table_1277350_1 (sunday_sōl__sun_ VARCHAR, friday_venus__venus_ VARCHAR)
SELECT sunday_sōl__sun_ FROM table_1277350_1 WHERE friday_venus__venus_ = "vernes"
Who was Bob Bryan's partner/s on a hard surface in 2003?
CREATE TABLE table_29163303_1 (partner VARCHAR, year VARCHAR, surface VARCHAR)
SELECT partner FROM table_29163303_1 WHERE year = 2003 AND surface = "Hard"
What is the time when the set 3 score is 31–29?
CREATE TABLE table_name_23 (time VARCHAR, set_3 VARCHAR)
SELECT time FROM table_name_23 WHERE set_3 = "31–29"
Name the championship for outcome being winner for 7–5, 4–6, 6–1
CREATE TABLE table_24638867_6 (championship VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT championship FROM table_24638867_6 WHERE outcome = "Winner" AND score = "7–5, 4–6, 6–1"
what are all the barrel lengths whith the name ar-15a3 competition hbar
CREATE TABLE table_12834315_2 (barrel_length VARCHAR, name VARCHAR)
SELECT barrel_length FROM table_12834315_2 WHERE name = "AR-15A3 Competition HBAR"
What are the largest Cars Entered with a Winning Driver of rodger ward, and a Season smaller than 1959?
CREATE TABLE table_name_33 (cars_entered INTEGER, winning_driver VARCHAR, season VARCHAR)
SELECT MAX(cars_entered) FROM table_name_33 WHERE winning_driver = "rodger ward" AND season < 1959
what is the average rank when the cyclist is alexandr pliuschin?
CREATE TABLE table_name_71 (rank INTEGER, cyclist VARCHAR)
SELECT AVG(rank) FROM table_name_71 WHERE cyclist = "alexandr pliuschin"
What city is 103.3 FM licensed in?
CREATE TABLE table_name_61 (city_of_license VARCHAR, frequency VARCHAR)
SELECT city_of_license FROM table_name_61 WHERE frequency = "103.3 fm"
What is Nationality, and when College is Illinois State?
CREATE TABLE table_name_2 (nationality VARCHAR, college VARCHAR)
SELECT nationality FROM table_name_2 WHERE college = "illinois state"
What is the highest Top-5 when the Tournament is the open championship, with a Top-25 less than 9?
CREATE TABLE table_name_32 (top_5 INTEGER, tournament VARCHAR, top_25 VARCHAR)
SELECT MAX(top_5) FROM table_name_32 WHERE tournament = "the open championship" AND top_25 < 9
How many successors were seated in the New York 20th district?
CREATE TABLE table_1199219_2 (successor VARCHAR, district VARCHAR)
SELECT COUNT(successor) FROM table_1199219_2 WHERE district = "New York 20th"
Round 1 of beat lee janzen 3&2, and a Year smaller than 1998 has what total number of place?
CREATE TABLE table_name_40 (place VARCHAR, round_1 VARCHAR, year VARCHAR)
SELECT COUNT(place) FROM table_name_40 WHERE round_1 = "beat lee janzen 3&2" AND year < 1998
What air date had 1.01 million U.S. viewers?
CREATE TABLE table_28334498_3 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT original_air_date FROM table_28334498_3 WHERE us_viewers__millions_ = "1.01"
What is the total number of wins for the entry that has fewer than 49 goals against, 39 goals for, 9 draws, and fewer than 31 points?
CREATE TABLE table_name_51 (wins VARCHAR, points VARCHAR, goals_for VARCHAR, goals_against VARCHAR, draws VARCHAR)
SELECT COUNT(wins) FROM table_name_51 WHERE goals_against < 49 AND draws = 9 AND goals_for = 39 AND points < 31
what's the overall rank with viewers (m) of 7.44
CREATE TABLE table_11354111_3 (overall_rank VARCHAR, viewers__m_ VARCHAR)
SELECT overall_rank FROM table_11354111_3 WHERE viewers__m_ = "7.44"
Luis Salom had the fastest lap on which circuits?
CREATE TABLE table_18303274_1 (circuit VARCHAR, fastest_lap VARCHAR)
SELECT circuit FROM table_18303274_1 WHERE fastest_lap = "Luis Salom"