answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT home_team FROM table_name_46 WHERE away_team = "footscray"
What is the name of the home team that played away team Footscray?
CREATE TABLE table_name_46 (home_team VARCHAR, away_team VARCHAR)
SELECT result FROM table_1342233_6 WHERE incumbent = "Jack Z. Anderson"
what's the result with incumbent being jack z. anderson
CREATE TABLE table_1342233_6 (result VARCHAR, incumbent VARCHAR)
SELECT code_name FROM table_25005714_3 WHERE model = "Radeon HD 6650M"
What is every code name for the model Radeon HD 6650m?
CREATE TABLE table_25005714_3 (code_name VARCHAR, model VARCHAR)
SELECT vault FROM table_11542215_3 WHERE total = "56.635"
What is the vault score for the total of 56.635?
CREATE TABLE table_11542215_3 (vault VARCHAR, total VARCHAR)
SELECT won FROM table_13758945_3 WHERE points_against = "597"
what's the won with points against being 597
CREATE TABLE table_13758945_3 (won VARCHAR, points_against VARCHAR)
SELECT notes FROM table_name_29 WHERE country = "spain"
What are the notes for the athlete from Spain?
CREATE TABLE table_name_29 (notes VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_35 WHERE place = "t10" AND player = "colin montgomerie"
What is the to par for t10 and Colin Montgomerie?
CREATE TABLE table_name_35 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT song_choice FROM table_23871828_1 WHERE result = "Safe" AND order__number = 8
Name the song for safe result #8.
CREATE TABLE table_23871828_1 (song_choice VARCHAR, result VARCHAR, order__number VARCHAR)
SELECT latitude FROM table_18600760_19 WHERE water__sqmi_ = "0.288"
what is the latitude in the township where wate is 0.288
CREATE TABLE table_18600760_19 (latitude VARCHAR, water__sqmi_ VARCHAR)
SELECT MIN(first_elected) FROM table_name_36 WHERE results = "re-elected" AND incumbent = "jerry costello"
What is re-elected Incumbent Jerry Costello's First elected date?
CREATE TABLE table_name_36 (first_elected INTEGER, results VARCHAR, incumbent VARCHAR)
SELECT championship FROM table_name_77 WHERE year < 1952 AND race_title = "grand prix watkins glen" AND drivers = "miles collier"
Was the Grand Prix Watkins GLen that Miles Collier raced in before 1952 a championship?
CREATE TABLE table_name_77 (championship VARCHAR, drivers VARCHAR, year VARCHAR, race_title VARCHAR)
SELECT distance FROM table_name_6 WHERE venue = "seoul, south korea"
How far Venue of seoul, south korea is?
CREATE TABLE table_name_6 (distance VARCHAR, venue VARCHAR)
SELECT MAX(years_participated) FROM table_1571238_2 WHERE team = "Notre Dame"
How many years did notre dame participate?
CREATE TABLE table_1571238_2 (years_participated INTEGER, team VARCHAR)
SELECT score FROM table_17118657_7 WHERE game = 12
What was the score on game number 12?
CREATE TABLE table_17118657_7 (score VARCHAR, game VARCHAR)
SELECT position FROM table_16575609_3 WHERE player = "Justin Shaw"
What position is Justin Shaw in?
CREATE TABLE table_16575609_3 (position VARCHAR, player VARCHAR)
SELECT published_in FROM table_name_22 WHERE setting = "mars" AND publication_date = "july 1934"
Name what was published in july 1934 with a setting of mars
CREATE TABLE table_name_22 (published_in VARCHAR, setting VARCHAR, publication_date VARCHAR)
SELECT AVG(week) FROM table_name_80 WHERE attendance = "19,741"
Attendance of 19,741 had what average week?
CREATE TABLE table_name_80 (week INTEGER, attendance VARCHAR)
SELECT 2009 AS _season FROM table_name_21 WHERE city = "panama city" AND group = "group b"
WHat kind of 2009 season has a City of panama city, and a Group of group b?
CREATE TABLE table_name_21 (city VARCHAR, group VARCHAR)
SELECT date FROM table_name_45 WHERE place = "7th"
When 7th place, what is the date?
CREATE TABLE table_name_45 (date VARCHAR, place VARCHAR)
SELECT incumbent FROM table_1342256_6 WHERE result = "New seat Republican gain"
what's the incumbent with result being new seat republican gain
CREATE TABLE table_1342256_6 (incumbent VARCHAR, result VARCHAR)
SELECT MIN(losses) FROM table_name_24 WHERE wins < 15 AND golden_rivers = "quambatook" AND draws > 0
What is the lowest amount of losses when the goldne rivers is quambatook, wins are smaller than 15 and draws larger than 0?
CREATE TABLE table_name_24 (losses INTEGER, draws VARCHAR, wins VARCHAR, golden_rivers VARCHAR)
SELECT home_captain FROM table_name_13 WHERE venue = "oval"
Who was the Home captain that played at the venue Oval?
CREATE TABLE table_name_13 (home_captain VARCHAR, venue VARCHAR)
SELECT average_speed__mph_ FROM table_2196127_1 WHERE race_time = "3:08:08"
What was the average speed for a racetime of 3:08:08?
CREATE TABLE table_2196127_1 (average_speed__mph_ VARCHAR, race_time VARCHAR)
SELECT 2008 FROM table_name_38 WHERE 2012 = "4r" AND 2009 = "a"
Tell me the 2008 for 2012 of 4r and 2009 of a
CREATE TABLE table_name_38 (Id VARCHAR)
SELECT SUM(international_mail) FROM table_name_35 WHERE change = "+35,7%" AND year > 2008
How much international mail has a change of +35,7% later than 2008?
CREATE TABLE table_name_35 (international_mail INTEGER, change VARCHAR, year VARCHAR)
SELECT vmax FROM table_name_45 WHERE capacity = "1.556 cc"
What was the maximum speed of the car with 1.556 cc capacity?
CREATE TABLE table_name_45 (vmax VARCHAR, capacity VARCHAR)
SELECT no FROM table_26202847_6 WHERE date = "October 21, 2007"
On the date October 21, 2007, what is the No.?
CREATE TABLE table_26202847_6 (no VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_30 WHERE round = 3
Can you tell me the Opponent that has the Round of 3?
CREATE TABLE table_name_30 (opponent VARCHAR, round VARCHAR)
SELECT margin_of_victory FROM table_1515346_2 WHERE honoree_s_ = "Tommy Armour"
What was the margin of victory in the year when the honoree was Tommy Armour?
CREATE TABLE table_1515346_2 (margin_of_victory VARCHAR, honoree_s_ VARCHAR)
SELECT AVG(econ) FROM table_name_2 WHERE ovrs > 25.5 AND runs > 703
Name the average econ for runs more than 703 and ovrs more than 25.5
CREATE TABLE table_name_2 (econ INTEGER, ovrs VARCHAR, runs VARCHAR)
SELECT duration FROM table_14118521_1 WHERE mission = "STS-87"
what's the duration with mission being sts-87
CREATE TABLE table_14118521_1 (duration VARCHAR, mission VARCHAR)
SELECT title, YEAR, director FROM movie ORDER BY budget_million
Show all movie titles, years, and directors, ordered by budget.
CREATE TABLE movie (title VARCHAR, YEAR VARCHAR, director VARCHAR, budget_million VARCHAR)
SELECT group FROM table_name_31 WHERE result = "nominated" AND year < 2012 AND film_show = "east west 101" AND award = "best lead actor in a television drama"
Before 2012, which Group has the Result, nominated, the Film/Show, East West 101, and the Award, Best Lead Actor in A Television Drama?
CREATE TABLE table_name_31 (group VARCHAR, award VARCHAR, film_show VARCHAR, result VARCHAR, year VARCHAR)
SELECT catalogue FROM table_name_34 WHERE date = "october 15, 2004"
What is the catalogue on october 15, 2004?
CREATE TABLE table_name_34 (catalogue VARCHAR, date VARCHAR)
SELECT id, duration FROM trip ORDER BY duration DESC LIMIT 3
What are the ids and durations of the trips with the top 3 durations?
CREATE TABLE trip (id VARCHAR, duration VARCHAR)
SELECT score FROM table_name_21 WHERE result = "2–1" AND competition = "friendly" AND goal < 17
Which Score has a Result of 2–1, and a Competition of friendly, and a Goal smaller than 17?
CREATE TABLE table_name_21 (score VARCHAR, goal VARCHAR, result VARCHAR, competition VARCHAR)
SELECT score FROM table_name_47 WHERE away_team = "arsenal"
If the Away Team is Arsenal what is the Score?
CREATE TABLE table_name_47 (score VARCHAR, away_team VARCHAR)
SELECT DISTINCT T1.type FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id WHERE T2.nationality = 'American' OR T2.nationality = 'Canadian'
What are the distinct types of mills that are built by American or Canadian architects?
CREATE TABLE architect (Id VARCHAR); CREATE TABLE mill (type VARCHAR, architect_id VARCHAR)
SELECT tournament FROM table_name_74 WHERE 2000 = "2-4"
In what year 2000 tournment did Angeles Montolio have a career win-loss record of 2-4?
CREATE TABLE table_name_74 (tournament VARCHAR)
SELECT result FROM table_name_59 WHERE competition = "1948 og"
What was the result of the 1948 og competition?
CREATE TABLE table_name_59 (result VARCHAR, competition VARCHAR)
SELECT date FROM table_name_65 WHERE catalog = "lp 5060"
What is the Date for Catalog of lp 5060?
CREATE TABLE table_name_65 (date VARCHAR, catalog VARCHAR)
SELECT state_ranked_in_partisan_order FROM table_name_28 WHERE percentage_republicans = "67%" AND republican__democratic = "24/12"
Which state has 67% Republicans and a ratio of 24/12 of Republicans to Democrats?
CREATE TABLE table_name_28 (state_ranked_in_partisan_order VARCHAR, percentage_republicans VARCHAR, republican__democratic VARCHAR)
SELECT score FROM table_23248910_5 WHERE record = "11-3"
What was the score against the team with an 11-3 record against the Hawks?
CREATE TABLE table_23248910_5 (score VARCHAR, record VARCHAR)
SELECT notes FROM table_name_78 WHERE displacement = "220cid (3,604cc)"
What is the notes when the displacement is 220cid (3,604cc)?
CREATE TABLE table_name_78 (notes VARCHAR, displacement VARCHAR)
SELECT name, MAX(revenue), Headquarter FROM manufacturers GROUP BY Headquarter
Find the name and revenue of the company that earns the highest revenue in each city.
CREATE TABLE manufacturers (name VARCHAR, Headquarter VARCHAR, revenue INTEGER)
SELECT outgoing_manager FROM table_26976615_3 WHERE incoming_manager = "Laurenţiu Reghecampf"
Who was the outgoing manager when the incoming manager was laurenţiu reghecampf?
CREATE TABLE table_26976615_3 (outgoing_manager VARCHAR, incoming_manager VARCHAR)
SELECT player FROM table_name_5 WHERE pba_team = "red bull thunder"
Which player has a PBA team of Red Bull Thunder?
CREATE TABLE table_name_5 (player VARCHAR, pba_team VARCHAR)
SELECT first_elected FROM table_1342451_38 WHERE incumbent = "William F. Stevenson"
What year was incumbent william f. stevenson first elected?
CREATE TABLE table_1342451_38 (first_elected VARCHAR, incumbent VARCHAR)
SELECT height FROM table_name_82 WHERE stories = 52
How tall is the 52 story building?
CREATE TABLE table_name_82 (height VARCHAR, stories VARCHAR)
SELECT manner_of_departure FROM table_name_70 WHERE team = "anderlecht"
What was the manner of departure for the team Anderlecht?
CREATE TABLE table_name_70 (manner_of_departure VARCHAR, team VARCHAR)
SELECT score FROM table_name_76 WHERE date = "may 20"
Which Score has a Date of may 20?
CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR)
SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment ORDER BY T3.cost DESC LIMIT 1
Find the physician who was trained in the most expensive procedure?
CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR); CREATE TABLE procedures (code VARCHAR, cost VARCHAR)
SELECT date FROM table_name_14 WHERE home_team = "gold coast blaze"
What date did home team Gold Coast Blaze play?
CREATE TABLE table_name_14 (date VARCHAR, home_team VARCHAR)
SELECT AVG(drawn) FROM table_name_30 WHERE difference = "4" AND lost > 13
What is the average drawn of the team with a difference of 4 and more than 13 losses?
CREATE TABLE table_name_30 (drawn INTEGER, difference VARCHAR, lost VARCHAR)
SELECT away_team AS score FROM table_name_26 WHERE home_team = "hawthorn"
What was the away team score at Hawthorn?
CREATE TABLE table_name_26 (away_team VARCHAR, home_team VARCHAR)
SELECT AVG(round) FROM table_name_66 WHERE loser = "tank abbott"
What was the average number of rounds in the fight where Tank Abbott lost?
CREATE TABLE table_name_66 (round INTEGER, loser VARCHAR)
SELECT time FROM table_name_39 WHERE round = "3" AND opponent = "keith wisniewski"
What was the total time for the match that ocurred in Round 3 with opponent Keith Wisniewski?
CREATE TABLE table_name_39 (time VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT country FROM table_name_33 WHERE player = "curtis strange"
What is the country of player curtis strange?
CREATE TABLE table_name_33 (country VARCHAR, player VARCHAR)
SELECT opponent FROM table_name_16 WHERE date = "september 27, 1998"
Who was the opponent on september 27, 1998?
CREATE TABLE table_name_16 (opponent VARCHAR, date VARCHAR)
SELECT date FROM table_name_73 WHERE visitor = "toronto" AND points < 49 AND record = "18-17-7"
What date does visitor team Toronto score less than 49 points and has record of 18-17-7?
CREATE TABLE table_name_73 (date VARCHAR, record VARCHAR, visitor VARCHAR, points VARCHAR)
SELECT name, course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID
Find the names of all instructors who have taught some course and the course_id.
CREATE TABLE instructor (ID VARCHAR); CREATE TABLE teaches (ID VARCHAR)
SELECT original_title FROM table_name_56 WHERE year = "1996 (11th)" AND winner_and_nominees = "breaking the waves"
What was the orignal title for the winner and nominee, Breaking the Waves, in 1996 (11th)?
CREATE TABLE table_name_56 (original_title VARCHAR, year VARCHAR, winner_and_nominees VARCHAR)
SELECT position FROM table_name_71 WHERE venue = "lyon"
What was the position at the venue of lyon?
CREATE TABLE table_name_71 (position VARCHAR, venue VARCHAR)
SELECT area_sq_mi__km_2____rank_ FROM table_14253123_1 WHERE county_seat = "Vincennes"
When Vincennes is the county seat what is the area sq mi (km 2 ) (rank) ?
CREATE TABLE table_14253123_1 (area_sq_mi__km_2____rank_ VARCHAR, county_seat VARCHAR)
SELECT MAX(date) FROM table_name_58 WHERE label = "captain oi! records"
What is the latest Date, when Label is Captain Oi! Records?
CREATE TABLE table_name_58 (date INTEGER, label VARCHAR)
SELECT spacecraft FROM table_179174_2 WHERE launch_complex = "LC34"
What spacecraft was launched from the LC34 launch complex?
CREATE TABLE table_179174_2 (spacecraft VARCHAR, launch_complex VARCHAR)
SELECT goals FROM table_name_89 WHERE player = "matt cook"
How many Goals did Matt Cook have?
CREATE TABLE table_name_89 (goals VARCHAR, player VARCHAR)
SELECT COUNT(lmp1_winning_team) FROM table_24865763_2 WHERE rnd = 4 AND lmp2_winning_team = "No. 42 Strakka Racing"
How many won the LMP1 on round 4 if No. 42 Strakka Racing was the LMP2 Winning Team?
CREATE TABLE table_24865763_2 (lmp1_winning_team VARCHAR, rnd VARCHAR, lmp2_winning_team VARCHAR)
SELECT opponent FROM table_23612439_2 WHERE date = "September 5"
Which opponents are on the date September 5?
CREATE TABLE table_23612439_2 (opponent VARCHAR, date VARCHAR)
SELECT programming FROM table_name_20 WHERE name = "kanal 5"
What is the programming for Kanal 5?
CREATE TABLE table_name_20 (programming VARCHAR, name VARCHAR)
SELECT position FROM table_name_27 WHERE pick < 92 AND school_club_team = "ucla"
Which position at UCLA has a lower than 92 pick number?
CREATE TABLE table_name_27 (position VARCHAR, pick VARCHAR, school_club_team VARCHAR)
SELECT COUNT(silver) FROM table_name_9 WHERE rank = "3" AND gold < 2
What kind of Silver has a Rank of 3, and a Gold smaller than 2?
CREATE TABLE table_name_9 (silver VARCHAR, rank VARCHAR, gold VARCHAR)
SELECT points_against FROM table_name_34 WHERE points_difference = "points difference"
What are the points against with a points difference?
CREATE TABLE table_name_34 (points_against VARCHAR, points_difference VARCHAR)
SELECT COUNT(golden_tickets) FROM table_name_51 WHERE audition_city = "san francisco, california"
How many golden tickets were given out when the auditions were held in San Francisco, California?
CREATE TABLE table_name_51 (golden_tickets VARCHAR, audition_city VARCHAR)
SELECT type FROM table_2538117_7 WHERE organization = "Gamma Rho Lambda 1"
What is the type if the organization name is Gamma RHO Lambda 1?
CREATE TABLE table_2538117_7 (type VARCHAR, organization VARCHAR)
SELECT MIN(length__aa_) FROM table_26957063_3 WHERE ncbi_accession_number = "CAM15594.1"
What is the length (AA) of the animal whose NCBI accession number is CAM15594.1?
CREATE TABLE table_26957063_3 (length__aa_ INTEGER, ncbi_accession_number VARCHAR)
SELECT title FROM table_16581695_3 WHERE written_by = "Matt Wayne"
What title was written by Matt Wayne?
CREATE TABLE table_16581695_3 (title VARCHAR, written_by VARCHAR)
SELECT team FROM table_name_59 WHERE name = "paolo quinteros"
What team was Paolo Quinteros on?
CREATE TABLE table_name_59 (team VARCHAR, name VARCHAR)
SELECT title_rank FROM table_name_24 WHERE series = "1-8, 13" AND character = "arthur hastings"
What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13?
CREATE TABLE table_name_24 (title_rank VARCHAR, series VARCHAR, character VARCHAR)
SELECT opponent FROM table_name_81 WHERE record = "0-1"
Who is the opponent with a 0-1 record?
CREATE TABLE table_name_81 (opponent VARCHAR, record VARCHAR)
SELECT MIN(clock_speed__mhz_) FROM table_name_36 WHERE introduced = "april 1986"
With April 1986 as the introduced, what is the least clock speed (MHz)?
CREATE TABLE table_name_36 (clock_speed__mhz_ INTEGER, introduced VARCHAR)
SELECT 3 AS rd_day FROM table_name_65 WHERE year < 2012 AND finish_position = "33rd"
What is the 3rd day result for years under 2012 and a finish position of 33rd?
CREATE TABLE table_name_65 (year VARCHAR, finish_position VARCHAR)
SELECT MIN(enrollment) FROM table_15851155_1 WHERE school = "Montana Tech of the University of Montana"
Name the minimum enrollment for montana tech of the university of montana
CREATE TABLE table_15851155_1 (enrollment INTEGER, school VARCHAR)
SELECT winner FROM table_19930660_2 WHERE rufus_guest = "Sean Lock"
Who won the episode in which Sean Lock was Rufus's guest?
CREATE TABLE table_19930660_2 (winner VARCHAR, rufus_guest VARCHAR)
SELECT COUNT(party) FROM table_1342393_17 WHERE incumbent = "Whitmell P. Martin"
how many party with incumbent being whitmell p. martin
CREATE TABLE table_1342393_17 (party VARCHAR, incumbent VARCHAR)
SELECT to_par FROM table_name_72 WHERE country = "united states" AND score = 67 - 71 - 73 = 211
What is the to par for the United States with a 67-71-73=211 score?
CREATE TABLE table_name_72 (to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT COUNT(partner) FROM table_22597626_17 WHERE opponents_in_the_final = "Forget Leconte"
What was the partner count when the opponents in the final was forget leconte?
CREATE TABLE table_22597626_17 (partner VARCHAR, opponents_in_the_final VARCHAR)
SELECT MAX(after) FROM table_24108789_4 WHERE player = "Steve Stricker"
What is the latest after when the player is Steve Stricker?
CREATE TABLE table_24108789_4 (after INTEGER, player VARCHAR)
SELECT report FROM table_name_79 WHERE date = "08 jul" AND score = "3–1"
What is the Report for 08 jul, and a Score of 3–1?
CREATE TABLE table_name_79 (report VARCHAR, date VARCHAR, score VARCHAR)
SELECT awardee_s_ FROM table_24446718_3 WHERE name_of_film = "Tingya"
Name the awardee for tingya
CREATE TABLE table_24446718_3 (awardee_s_ VARCHAR, name_of_film VARCHAR)
SELECT round FROM table_21350934_2 WHERE attendance = "6,150"
How many rounds have 6,150 as attendance?
CREATE TABLE table_21350934_2 (round VARCHAR, attendance VARCHAR)
SELECT drivers FROM table_name_23 WHERE laps = 133 AND class = "oc"
Who are the drivers with 133 laps in OC class?
CREATE TABLE table_name_23 (drivers VARCHAR, laps VARCHAR, class VARCHAR)
SELECT MAX(points) FROM table_name_78 WHERE entrant = "coloni spa"
What was the most points for Coloni Spa?
CREATE TABLE table_name_78 (points INTEGER, entrant VARCHAR)
SELECT high_rebounds FROM table_23284271_11 WHERE location_attendance = "American Airlines Center 20,557"
Name the high rebounds for american airlines center 20,557
CREATE TABLE table_23284271_11 (high_rebounds VARCHAR, location_attendance VARCHAR)
SELECT MIN(round) FROM table_name_29 WHERE player = "ed smith" AND pick > 19
What is the lowest round of Ed Smith, who had a pick lower than 19?
CREATE TABLE table_name_29 (round INTEGER, player VARCHAR, pick VARCHAR)
SELECT frequency FROM table_name_32 WHERE power = "32 kw horizontal" AND channel = 32
On channel 32, when the power is 32 kW horizontal, what is the frequency?
CREATE TABLE table_name_32 (frequency VARCHAR, power VARCHAR, channel VARCHAR)
SELECT COUNT(1 AS st__m_) FROM table_name_81 WHERE name = "martin schmitt" AND points < 235.7
What is the total number of 1sts that Martin Schmitt had where he less than 235.7 points?
CREATE TABLE table_name_81 (name VARCHAR, points VARCHAR)
SELECT COUNT(losses) FROM table_name_37 WHERE goal_difference = -8 AND position < 10
What is the number of losses when the goal difference was -8, and position is smaller than 10?
CREATE TABLE table_name_37 (losses VARCHAR, goal_difference VARCHAR, position VARCHAR)
SELECT COUNT(team__b_) FROM table_1594772_2 WHERE margin = "35 runs" AND winner = "India"
Name the number of team for 35 runs margin and india winner
CREATE TABLE table_1594772_2 (team__b_ VARCHAR, margin VARCHAR, winner VARCHAR)
SELECT winner FROM table_name_20 WHERE runner_up = "real salt lake"
Who was the Winner when the Runner-up was Real Salt Lake?
CREATE TABLE table_name_20 (winner VARCHAR, runner_up VARCHAR)