answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT type FROM table_name_32 WHERE ends = "2009"
What is the type that ends in 2009?
CREATE TABLE table_name_32 (type VARCHAR, ends VARCHAR)
SELECT line FROM table_1612760_1 WHERE service_pattern = "Fast to Norwood Junction"
Which line offers Fast to Norwood Junction?
CREATE TABLE table_1612760_1 (line VARCHAR, service_pattern VARCHAR)
SELECT goals FROM table_name_6 WHERE player = "mike eruzione"
How many goals does Mike Eruzione have in total?
CREATE TABLE table_name_6 (goals VARCHAR, player VARCHAR)
SELECT MAX(rank) FROM table_name_49 WHERE u_17_goals = 9
What is the highest Rank, when U-17 Goals is "9"?
CREATE TABLE table_name_49 (rank INTEGER, u_17_goals VARCHAR)
SELECT frequency_mhz FROM table_name_74 WHERE city_of_license = "walterboro, sc"
What is the frequency of Walterboro, SC?
CREATE TABLE table_name_74 (frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT record FROM table_name_55 WHERE score = "104-99"
What is Record, when Score is 104-99?
CREATE TABLE table_name_55 (record VARCHAR, score VARCHAR)
SELECT date FROM table_name_90 WHERE tournament = "madrid, spain"
What is the date of the tournament played in Madrid, Spain?
CREATE TABLE table_name_90 (date VARCHAR, tournament VARCHAR)
SELECT MAX(founded) FROM table_1183842_1 WHERE enrollment = 3584
If the enrollment is 3584, what's the largest founded?
CREATE TABLE table_1183842_1 (founded INTEGER, enrollment VARCHAR)
SELECT term_start FROM table_name_53 WHERE born_died = "prime ministers 1939 - 1943"
What is Term Start, when Born-Died is Prime Ministers 1939 - 1943?
CREATE TABLE table_name_53 (term_start VARCHAR, born_died VARCHAR)
SELECT AVG(total) FROM table_name_76 WHERE player = "jeff sluman"
Name the Total of jeff sluman?
CREATE TABLE table_name_76 (total INTEGER, player VARCHAR)
SELECT college FROM table_name_43 WHERE player = "jojo manalo"
What college has Jojo Manalo?
CREATE TABLE table_name_43 (college VARCHAR, player VARCHAR)
SELECT notes FROM table_name_31 WHERE position = "2nd" AND year < 1986
What is the notes distance for 2nd position earlier than 1986?
CREATE TABLE table_name_31 (notes VARCHAR, position VARCHAR, year VARCHAR)
SELECT format, _special_notes FROM table_name_23 WHERE title = "the pact: ...of the gods"
What is the Format and Special Notes for of the pact: ...of the gods?
CREATE TABLE table_name_23 (format VARCHAR, _special_notes VARCHAR, title VARCHAR)
SELECT tournament FROM table_name_8 WHERE date = "may 29, 2010"
What tournament was played on May 29, 2010?
CREATE TABLE table_name_8 (tournament VARCHAR, date VARCHAR)
SELECT general_classification FROM table_14710984_2 WHERE stage = 3
Who is the general classification leader for stage 3?
CREATE TABLE table_14710984_2 (general_classification VARCHAR, stage VARCHAR)
SELECT winner FROM table_name_14 WHERE mountains_classification = "pierre rolland" AND stage = "7"
What winner has pierre rolland as mountains classification, with 7 as the stage?
CREATE TABLE table_name_14 (winner VARCHAR, mountains_classification VARCHAR, stage VARCHAR)
SELECT to_par FROM table_name_29 WHERE player = "jack nicklaus"
what is the to par when the player is jack nicklaus?
CREATE TABLE table_name_29 (to_par VARCHAR, player VARCHAR)
SELECT competition FROM table_name_47 WHERE venue = "berlin, germany"
What competition took place in Berlin, Germany?
CREATE TABLE table_name_47 (competition VARCHAR, venue VARCHAR)
SELECT SUM(attendance) FROM table_name_21 WHERE score = "3–2" AND opponent = "reds"
Score of 3–2, and a Opponent of reds had what sum of attendance?
CREATE TABLE table_name_21 (attendance INTEGER, score VARCHAR, opponent VARCHAR)
SELECT MAX(fa_cup_goals) FROM table_name_96 WHERE flt_goals > 0
what is the highest fa cup goals when flt goals is more than 0?
CREATE TABLE table_name_96 (fa_cup_goals INTEGER, flt_goals INTEGER)
SELECT team_2 FROM table_name_29 WHERE team_1 = "sestese(e16)"
who is the team 2 when the team 1 is sestese(e16)?
CREATE TABLE table_name_29 (team_2 VARCHAR, team_1 VARCHAR)
SELECT COUNT(wins) FROM table_name_90 WHERE points < 54 AND team = "yamaha" AND class = "250cc" AND year < 1977
How many wins for bikes with under 54 points, team yamaha, a 250cc bike, and before 1977?
CREATE TABLE table_name_90 (wins VARCHAR, year VARCHAR, class VARCHAR, points VARCHAR, team VARCHAR)
SELECT city FROM table_name_15 WHERE airport = "singapore changi airport"
Name the city that has singapore changi airport
CREATE TABLE table_name_15 (city VARCHAR, airport VARCHAR)
SELECT COUNT(*) FROM architect WHERE gender = 'female'
How many architects are female?
CREATE TABLE architect (gender VARCHAR)
SELECT player FROM table_10960039_1 WHERE college = "Saskatchewan"
Which player's college is Saskatchewan?
CREATE TABLE table_10960039_1 (player VARCHAR, college VARCHAR)
SELECT tyres FROM table_name_40 WHERE chassis = "mp4/14"
What tyres were used with the mp4/14 chassis?
CREATE TABLE table_name_40 (tyres VARCHAR, chassis VARCHAR)
SELECT MAX(round) FROM table_name_92 WHERE event = "ufc 109"
What is the highest round for UFC 109?
CREATE TABLE table_name_92 (round INTEGER, event VARCHAR)
SELECT mayor FROM table_name_37 WHERE election = 2010 AND municipality = "riva del garda"
What is the Mayor of Riva del Garda in 2010?
CREATE TABLE table_name_37 (mayor VARCHAR, election VARCHAR, municipality VARCHAR)
SELECT tie_no FROM table_name_78 WHERE home_team = "scunthorpe united"
What is the Tie no for Scunthorpe United?
CREATE TABLE table_name_78 (tie_no VARCHAR, home_team VARCHAR)
SELECT origin_of_programming FROM table_name_43 WHERE network = "mtv india"
What is the Origin of Programming for the Network MTV India?
CREATE TABLE table_name_43 (origin_of_programming VARCHAR, network VARCHAR)
SELECT unit FROM table_name_75 WHERE construction_start = "1 december 1984"
Construction start of 1 december 1984 is what unit?
CREATE TABLE table_name_75 (unit VARCHAR, construction_start VARCHAR)
SELECT MAX(races) FROM table_15852257_1
What is the highest value for race?
CREATE TABLE table_15852257_1 (races INTEGER)
SELECT best FROM table_name_9 WHERE qual_2 = "1:44.050"
what team has the qual 2 of 1:44.050?
CREATE TABLE table_name_9 (best VARCHAR, qual_2 VARCHAR)
SELECT MAX(total) FROM table_name_43 WHERE bronze = 7 AND silver > 12
What is the highest total medals won by a nation that had 7 bronze but more than 12 silver medals?
CREATE TABLE table_name_43 (total INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT gold FROM table_name_44 WHERE silver = 3 AND total = 10
How many gold medals did the team that won a total of 10 medals and 3 silver medals win?
CREATE TABLE table_name_44 (gold VARCHAR, silver VARCHAR, total VARCHAR)
SELECT MIN(date) FROM table_name_59 WHERE result = "win" AND method = "points" AND notes = "opening round"
Tell me the lowest date for result of win and method of points with notes of opening round
CREATE TABLE table_name_59 (date INTEGER, notes VARCHAR, result VARCHAR, method VARCHAR)
SELECT T1.student_id, T2.course_name FROM student_course_registrations AS T1 JOIN courses AS T2 ON T1.course_id = T2.course_id
What are the ids of all students for courses and what are the names of those courses?
CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR, course_id VARCHAR)
SELECT MIN(no) FROM table_25851971_1 WHERE written_by = "Anthony Sparks"
What episode number was written by Anthony Sparks?
CREATE TABLE table_25851971_1 (no INTEGER, written_by VARCHAR)
SELECT height FROM table_12032893_1 WHERE position = "Forward" AND high_school = "Crockett"
What height was the forward position at Crockett High School?
CREATE TABLE table_12032893_1 (height VARCHAR, position VARCHAR, high_school VARCHAR)
SELECT MIN(groundwater_discharge__million_m_3__) FROM table_26609958_1 WHERE hydrographic_basin = "Cabarita River"
When cabarita river is the hydrographic basin what is the lowest groundwater discharge (million m 3)?
CREATE TABLE table_26609958_1 (groundwater_discharge__million_m_3__ INTEGER, hydrographic_basin VARCHAR)
SELECT comments FROM table_1206114_2 WHERE implementation = "Software running on Central Processor Module"
What are the comments when the implementation is software running on central processor module?
CREATE TABLE table_1206114_2 (comments VARCHAR, implementation VARCHAR)
SELECT country FROM table_name_84 WHERE to_par = "e"
What country has a To par of e?
CREATE TABLE table_name_84 (country VARCHAR, to_par VARCHAR)
SELECT year_made FROM table_name_44 WHERE wheel_arrangement = "4-6-2" AND quantity_made = "11"
What year had a quantity made of 11 and a wheel arrangement of 4-6-2?
CREATE TABLE table_name_44 (year_made VARCHAR, wheel_arrangement VARCHAR, quantity_made VARCHAR)
SELECT position FROM table_name_67 WHERE player = "dale craigwell"
What is the position of Dale Craigwell?
CREATE TABLE table_name_67 (position VARCHAR, player VARCHAR)
SELECT poles FROM table_name_94 WHERE wins > 0 AND podiums < 17 AND fastest_laps = 0
Which Poles has a Wins larger than 0, and a Podiums smaller than 17?
CREATE TABLE table_name_94 (poles VARCHAR, fastest_laps VARCHAR, wins VARCHAR, podiums VARCHAR)
SELECT MIN(game) FROM table_name_81 WHERE record = "3-3-1"
Record of 3-3-1 had what lowest game?
CREATE TABLE table_name_81 (game INTEGER, record VARCHAR)
SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' INTERSECT SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog'
What are the students' first names who have both cats and dogs as pets?
CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE student (Fname VARCHAR, stuid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR)
SELECT nature_of_incident FROM table_name_69 WHERE circumstances = "bomb attack"
What is the nature of the incident that's a bomb attack?
CREATE TABLE table_name_69 (nature_of_incident VARCHAR, circumstances VARCHAR)
SELECT MIN(played) FROM table_name_97 WHERE pd_per_game > 6.28 AND loss < 4
Which Played has a PD per game larger than 6.28, and a Loss smaller than 4?
CREATE TABLE table_name_97 (played INTEGER, pd_per_game VARCHAR, loss VARCHAR)
SELECT home_team FROM table_name_30 WHERE score = "5 - 5"
What home team has a score of 5 - 5?
CREATE TABLE table_name_30 (home_team VARCHAR, score VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_4 WHERE round = 6
What college/junior/club team had a player selected in round 6?
CREATE TABLE table_name_4 (college_junior_club_team__league_ VARCHAR, round VARCHAR)
SELECT race_2 FROM table_name_26 WHERE race_1 = "dnf" AND race_3 = "dnf" AND track = "winton"
What Race 2 has a Race 1 of dnf, a Race 3 of dnf, and the Track Winton?
CREATE TABLE table_name_26 (race_2 VARCHAR, track VARCHAR, race_1 VARCHAR, race_3 VARCHAR)
SELECT SUM(top_25) FROM table_name_71 WHERE top_5 > 9 AND wins < 11
Which Top-25 has a Top-5 larger than 9, and Wins smaller than 11?
CREATE TABLE table_name_71 (top_25 INTEGER, top_5 VARCHAR, wins VARCHAR)
SELECT MAX(round) FROM table_name_38 WHERE school_club_team = "missouri"
What is the highest round number for the player who came from team Missouri?
CREATE TABLE table_name_38 (round INTEGER, school_club_team VARCHAR)
SELECT course FROM table_name_22 WHERE jockey = "royston ffrench"
Which course had a jockey of Royston FFrench?
CREATE TABLE table_name_22 (course VARCHAR, jockey VARCHAR)
SELECT SUM(points) FROM table_name_17 WHERE jury > 6 AND artist = "zhenya rasskazova" AND draw > 9
Jury larger than 6, and a Artist of zhenya rasskazova, and a Draw larger than 9 had what sum of points?
CREATE TABLE table_name_17 (points INTEGER, draw VARCHAR, jury VARCHAR, artist VARCHAR)
SELECT general_classification FROM table_name_1 WHERE asian_rider_classification = "shinichi fukushima" AND winner = "jeremy hunt"
WHich General classification has an Asian rider classification of shinichi fukushima, and a Winner of jeremy hunt?
CREATE TABLE table_name_1 (general_classification VARCHAR, asian_rider_classification VARCHAR, winner VARCHAR)
SELECT established FROM table_name_62 WHERE league = "ontario australian football league"
Which Established has a League of ontario australian football league?
CREATE TABLE table_name_62 (established VARCHAR, league VARCHAR)
SELECT position FROM table_26996293_7 WHERE player = "Bill Simmons"
What is the position of the player bill simmons?
CREATE TABLE table_26996293_7 (position VARCHAR, player VARCHAR)
SELECT MIN(week) FROM table_24786958_2 WHERE kickoff = "6:00 p.m."
What week had kickoff time at 6:00 p.m.?
CREATE TABLE table_24786958_2 (week INTEGER, kickoff VARCHAR)
SELECT AVG(attendance) FROM table_name_86 WHERE opponent = "mariners" AND record = "62-64"
What is the average attendance of the Mariners' attendance when their record was 62-64?
CREATE TABLE table_name_86 (attendance INTEGER, opponent VARCHAR, record VARCHAR)
SELECT attendance FROM table_name_2 WHERE week = 1
What was the attendance during the week 1 match?
CREATE TABLE table_name_2 (attendance VARCHAR, week VARCHAR)
SELECT max_torque_at_rpm FROM table_name_31 WHERE engine_code_s_ = "bmm"
What is the maximum torque at rpm for the engine with code BMM?
CREATE TABLE table_name_31 (max_torque_at_rpm VARCHAR, engine_code_s_ VARCHAR)
SELECT time_retired FROM table_name_61 WHERE driver = "ivan capelli"
What's the Time/Retired of Ivan Capelli?
CREATE TABLE table_name_61 (time_retired VARCHAR, driver VARCHAR)
SELECT MIN(avg) FROM table_name_43 WHERE player = "kevin swayne" AND long > 7
How many yards did kevin swayne average, with a long carry over 7?
CREATE TABLE table_name_43 (avg INTEGER, player VARCHAR, long VARCHAR)
SELECT AVG(attendance) FROM table_name_81 WHERE date = "4 february 2003"
How many attended the game on 4 February 2003?
CREATE TABLE table_name_81 (attendance INTEGER, date VARCHAR)
SELECT result FROM table_name_90 WHERE week > 10 AND opponent = "new england patriots"
I want the result for week larger than 10 for opponent of new england patriots
CREATE TABLE table_name_90 (result VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT type FROM table_name_29 WHERE value = "0.0"
What's the type of 0.0 value?
CREATE TABLE table_name_29 (type VARCHAR, value VARCHAR)
SELECT institution FROM table_261931_2 WHERE nickname = "Bobcats"
Which institution's nickname is the Bobcats?
CREATE TABLE table_261931_2 (institution VARCHAR, nickname VARCHAR)
SELECT date FROM table_name_26 WHERE week < 15 AND result = "bye"
When was the game before week 15 with the result of bye?
CREATE TABLE table_name_26 (date VARCHAR, week VARCHAR, result VARCHAR)
SELECT terry_kilrea__dropped_out_ FROM table_name_63 WHERE polling_firm = "holinshed" AND bob_chiarelli = "22.5%"
What are the polling dates for polling firm Holinshed when Terry Kilrea dropped out and Bob Chiarelli has 22.5%?
CREATE TABLE table_name_63 (terry_kilrea__dropped_out_ VARCHAR, polling_firm VARCHAR, bob_chiarelli VARCHAR)
SELECT losing_bonus FROM table_13940275_5 WHERE played = "22" AND tries_against = "38"
what's the losing bonus with played being 22 and tries against being 38
CREATE TABLE table_13940275_5 (losing_bonus VARCHAR, played VARCHAR, tries_against VARCHAR)
SELECT home_town FROM table_name_60 WHERE took_office = 1983 AND district > 15
Which Home Town has a Took Office of 1983, and a District larger than 15?
CREATE TABLE table_name_60 (home_town VARCHAR, took_office VARCHAR, district VARCHAR)
SELECT place FROM table_name_21 WHERE money___$__ = 350
What place did the player that took won $350 finish in?
CREATE TABLE table_name_21 (place VARCHAR, money___$__ VARCHAR)
SELECT COUNT(money___) AS $__ FROM table_name_2 WHERE to_par = 13 AND player = "julius boros"
What is the total number of Money ( $ ), when To Par is "13", and when Player is "Julius Boros"?
CREATE TABLE table_name_2 (money___ VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT MAX(round) FROM table_name_66 WHERE pick = 4
In which round was there a pick of 4?
CREATE TABLE table_name_66 (round INTEGER, pick VARCHAR)
SELECT kinka_developer FROM table_name_70 WHERE kinka_12 = "341s0297 thru 300"
What is the developer when the 1.2 is 341s0297 thru 300?
CREATE TABLE table_name_70 (kinka_developer VARCHAR, kinka_12 VARCHAR)
SELECT clubdesc FROM club WHERE clubname = "Pen and Paper Gaming"
Find the description of the club "Pen and Paper Gaming".
CREATE TABLE club (clubdesc VARCHAR, clubname VARCHAR)
SELECT COUNT(uk_co_presenter) FROM table_14345690_15 WHERE co_presenter = "Joe Swash" AND comedian = "Russell Kane"
Who are the UK co-presenters that have Joe Swash as a co-presenter and Russell Kane as a comedian?
CREATE TABLE table_14345690_15 (uk_co_presenter VARCHAR, co_presenter VARCHAR, comedian VARCHAR)
SELECT stage FROM table_name_13 WHERE trofeo_fast_team = "gewiss playbus" AND points_classification = "fabrizio guidi" AND winner = "fabiano fontanelli"
What is the stage of Fabiano Fontanelli, who had a Trofeo Fast Team of Gewiss Playbus and a point classification of Fabrizio Guidi?
CREATE TABLE table_name_13 (stage VARCHAR, winner VARCHAR, trofeo_fast_team VARCHAR, points_classification VARCHAR)
SELECT player FROM table_10812938_3 WHERE college = "Laval"
Which player went to college at Laval?
CREATE TABLE table_10812938_3 (player VARCHAR, college VARCHAR)
SELECT nation FROM table_name_70 WHERE gold = "1" AND bronze = "1" AND total = 2
Which nation won 1 gold medal and 1 bronze, for a total of 2 medals?
CREATE TABLE table_name_70 (nation VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT first_elected FROM table_1341423_36 WHERE district = "Oklahoma 1"
when was the first elected for districk oklahoma 1?
CREATE TABLE table_1341423_36 (first_elected VARCHAR, district VARCHAR)
SELECT MAX(money_list_rank) FROM table_22838521_3
What is the possible maximum money list rank?
CREATE TABLE table_22838521_3 (money_list_rank INTEGER)
SELECT copa_libertadores_1996 FROM table_name_32 WHERE team = "corinthians"
What is the copa libertadores 1996 of team corinthians?
CREATE TABLE table_name_32 (copa_libertadores_1996 VARCHAR, team VARCHAR)
SELECT record FROM table_name_18 WHERE home = "st. louis"
What is the record of the team with a St. Louis home?
CREATE TABLE table_name_18 (record VARCHAR, home VARCHAR)
SELECT engine AS code FROM table_name_46 WHERE engine = "2.5 20v d"
Engine 2.5 20v d has what engine code?
CREATE TABLE table_name_46 (engine VARCHAR)
SELECT orchestra FROM table_222198_1 WHERE year_of_recording = 1951
Which orchestra has a recording year of 1951?
CREATE TABLE table_222198_1 (orchestra VARCHAR, year_of_recording VARCHAR)
SELECT player FROM table_name_17 WHERE round = 3 AND nationality = "russia"
Who is the player from Round 3 from Russia?
CREATE TABLE table_name_17 (player VARCHAR, round VARCHAR, nationality VARCHAR)
SELECT MIN(pernambuco) FROM table_name_55 WHERE northeast_total = "119978"
What was the lowest number in Pernambuco where the Northeast had a total of 119978?
CREATE TABLE table_name_55 (pernambuco INTEGER, northeast_total VARCHAR)
SELECT name FROM table_name_55 WHERE nation = "france" AND pts_game > 3 AND points < 33
what is the name when the nation is France, the pts/game is more than 3 and points is less than 33?
CREATE TABLE table_name_55 (name VARCHAR, points VARCHAR, nation VARCHAR, pts_game VARCHAR)
SELECT visa_3 FROM table_name_83 WHERE visa_1 = "gui finkler"
Which Visa 3 has gui finkler as Visa 1?
CREATE TABLE table_name_83 (visa_3 VARCHAR, visa_1 VARCHAR)
SELECT surface FROM table_name_55 WHERE date = "january 11, 1998"
Date of january 11, 1998 has what surface?
CREATE TABLE table_name_55 (surface VARCHAR, date VARCHAR)
SELECT game FROM table_name_69 WHERE player = "eoin holohan"
What game did Eoin Holohan play in?
CREATE TABLE table_name_69 (game VARCHAR, player VARCHAR)
SELECT home_ground_s_ FROM table_18752986_1 WHERE nickname = "Swans"
With the nickname the swans, what is the home ground?
CREATE TABLE table_18752986_1 (home_ground_s_ VARCHAR, nickname VARCHAR)
SELECT rank FROM table_name_35 WHERE wins > 11 AND player = "miller barber"
What rank is Miller Barber with more than 11 wins?
CREATE TABLE table_name_35 (rank VARCHAR, wins VARCHAR, player VARCHAR)
SELECT competition FROM table_name_1 WHERE position = "8th" AND venue = "budapest, hungary"
Which competition in Budapest, Hungary gave a result of 8th?
CREATE TABLE table_name_1 (competition VARCHAR, position VARCHAR, venue VARCHAR)
SELECT stadium FROM table_name_91 WHERE opposition = "79,122"
Which stadium had the opposition of 79,122?
CREATE TABLE table_name_91 (stadium VARCHAR, opposition VARCHAR)
SELECT home_team FROM table_name_19 WHERE venue = "junction oval"
What is the Home team score at junction oval?
CREATE TABLE table_name_19 (home_team VARCHAR, venue VARCHAR)
SELECT wins FROM table_name_20 WHERE class = "500cc" AND year = 1979
How many wins did the 500cc class have in 1979?
CREATE TABLE table_name_20 (wins VARCHAR, class VARCHAR, year VARCHAR)