answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MAX(overall) FROM table_name_26 WHERE college = "notre dame" AND pick > 5
If Notre Dame had a pick larger than 5, what's the overall pick?
CREATE TABLE table_name_26 (overall INTEGER, college VARCHAR, pick VARCHAR)
SELECT name FROM table_name_40 WHERE group = "b" AND mark = "6.17"
Who has a mark of 6.17 in group B?
CREATE TABLE table_name_40 (name VARCHAR, group VARCHAR, mark VARCHAR)
SELECT MAX(samples_failed) FROM table_name_77 WHERE product = "可淇牌嬰幼兒配方乳粉" AND samples_taken < 1
What the most samples failed for 可淇牌嬰幼兒配方乳粉 and had less than 1 samples taken?
CREATE TABLE table_name_77 (samples_failed INTEGER, product VARCHAR, samples_taken VARCHAR)
SELECT AVG(losses) FROM table_name_44 WHERE wins < 4 AND against > 1728
What is the average number of losses when there are more than 4 wins, and the against matches is more than 1728?
CREATE TABLE table_name_44 (losses INTEGER, wins VARCHAR, against VARCHAR)
SELECT MIN(drawn) FROM table_name_38 WHERE position < 7 AND against = 19
What is the smallest amount of draws when the position is less than 7 and the against is 19?
CREATE TABLE table_name_38 (drawn INTEGER, position VARCHAR, against VARCHAR)
SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = "Movies"
List the name of all tracks in the playlists of Movies.
CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR)
SELECT grand_prix FROM table_1137694_3 WHERE winning_constructor = "Jordan - Mugen-Honda"
Which Grand Prix was won by a car constructed by Jordan - Mugen-Honda?
CREATE TABLE table_1137694_3 (grand_prix VARCHAR, winning_constructor VARCHAR)
SELECT player FROM table_11677691_9 WHERE college = "Ohio State"
What player is from Ohio State college?
CREATE TABLE table_11677691_9 (player VARCHAR, college VARCHAR)
SELECT outgoing_manager FROM table_name_92 WHERE replaced_by = "tony mowbray"
Who was the outgoing manager that was replaced by Tony Mowbray?
CREATE TABLE table_name_92 (outgoing_manager VARCHAR, replaced_by VARCHAR)
SELECT high_assists FROM table_13619027_7 WHERE date = "January 22"
who is the player with high assists on january 22?
CREATE TABLE table_13619027_7 (high_assists VARCHAR, date VARCHAR)
SELECT MIN(t20_matches) FROM table_1176371_1
What is the minimum of t20 matches?
CREATE TABLE table_1176371_1 (t20_matches INTEGER)
SELECT MAX(year) FROM table_22834834_3 WHERE opponent_in_the_final = "Andre Agassi"
What is the last year that Andre Agassi was the final opponent?
CREATE TABLE table_22834834_3 (year INTEGER, opponent_in_the_final VARCHAR)
SELECT position_in_table FROM table_name_49 WHERE outgoing_manager = "sammy lee"
How was Sammy Lee's team doing on the table before being replaced?
CREATE TABLE table_name_49 (position_in_table VARCHAR, outgoing_manager VARCHAR)
SELECT COUNT(overall) FROM table_name_26 WHERE position = "safety" AND round > 1
What is the total of overall values with a safety position in a round greater than 1?
CREATE TABLE table_name_26 (overall VARCHAR, position VARCHAR, round VARCHAR)
SELECT COUNT(bronze) FROM table_name_43 WHERE rank < 6 AND total < 5
How many bronze had a rank of less than 6 and a total less than 5?
CREATE TABLE table_name_43 (bronze VARCHAR, rank VARCHAR, total VARCHAR)
SELECT college FROM table_name_67 WHERE position = "placekicker"
What college did the placekicker go to?
CREATE TABLE table_name_67 (college VARCHAR, position VARCHAR)
SELECT COUNT(gold) FROM table_name_64 WHERE bronze > 1 AND total > 4
What is the total of Golds with more bronzes than 1 and totaled larger than 4?
CREATE TABLE table_name_64 (gold VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT day_power___w__ FROM table_25034983_2 WHERE city = "Moline"
List the kilo watt hoours per day for moline.
CREATE TABLE table_25034983_2 (day_power___w__ VARCHAR, city VARCHAR)
SELECT AVG(league) FROM table_name_22 WHERE player = "kris doolan" AND total < 5
What was the average league with Kris Doolan and a total less than 5?
CREATE TABLE table_name_22 (league INTEGER, player VARCHAR, total VARCHAR)
SELECT pop__1996_ FROM table_2134521_1 WHERE area__km²_ = "15767.99"
How many people lived in the census division with an area of 15767.99 km2 in 1996?
CREATE TABLE table_2134521_1 (pop__1996_ VARCHAR, area__km²_ VARCHAR)
SELECT original_air_date FROM table_30030477_1 WHERE written_by = "Adam E. Fierro & Glen Mazzara"
What dated the episode written by is adam e. fierro & glen mazzara air?
CREATE TABLE table_30030477_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT position FROM table_name_92 WHERE college = "western michigan"
What is the position of the player from the college of western michigan?
CREATE TABLE table_name_92 (position VARCHAR, college VARCHAR)
SELECT score_in_final FROM table_name_97 WHERE tournament = "$10,000 – tarakan , indonesia f2"
What is the score of the final in $10,000 – tarakan , indonesia f2?
CREATE TABLE table_name_97 (score_in_final VARCHAR, tournament VARCHAR)
SELECT episode_title FROM table_name_83 WHERE doctor_who_episode = "episodes 1–12"
Which Episode title has a Doctor Who episode of episodes 1–12?
CREATE TABLE table_name_83 (episode_title VARCHAR, doctor_who_episode VARCHAR)
SELECT AVG(jersey__number) FROM table_name_71 WHERE name = "steve griffith" AND weight__kg_ < 84
What was the average Jersey # of Steve Griffith, when his Weight (kg) was less than 84?
CREATE TABLE table_name_71 (jersey__number INTEGER, name VARCHAR, weight__kg_ VARCHAR)
SELECT television_commentator FROM table_1998037_9 WHERE spokesperson = "Kateryna Osadcha"
Who is the television commentator when the spokesperson is Kateryna Osadcha?
CREATE TABLE table_1998037_9 (television_commentator VARCHAR, spokesperson VARCHAR)
SELECT player FROM table_name_43 WHERE height = 1.92 AND current_club = "montepaschi siena"
Who is 1.92 m tall and a current club member of Montepaschi Siena
CREATE TABLE table_name_43 (player VARCHAR, height VARCHAR, current_club VARCHAR)
SELECT SUM(rebounds) FROM table_name_12 WHERE games > 22
with games more than 22 what is the rebound total?
CREATE TABLE table_name_12 (rebounds INTEGER, games INTEGER)
SELECT to_par FROM table_name_92 WHERE score = 68 AND player = "tom kite"
What is Tom Kite with a Score of 68's To Par?
CREATE TABLE table_name_92 (to_par VARCHAR, score VARCHAR, player VARCHAR)
SELECT 1851 FROM table_name_67 WHERE 1881 = "764"
What's the 1851 when 1881 had 764?
CREATE TABLE table_name_67 (Id VARCHAR)
SELECT type FROM table_name_73 WHERE record_description = "altitude with kg (lb) payload" AND pilot = "g.v. alfyorov"
Record description of altitude with kg (lb) payload, and a Pilot of g.v. alfyorov had what type?
CREATE TABLE table_name_73 (type VARCHAR, record_description VARCHAR, pilot VARCHAR)
SELECT mixed_restricted FROM table_28211674_3 WHERE mens_singles = "Matt Ware"
When Matt Ware won the mens singles, who won the mixed restricted?
CREATE TABLE table_28211674_3 (mixed_restricted VARCHAR, mens_singles VARCHAR)
SELECT stable FROM table_name_59 WHERE current_rank = "f1 jūryō 14 west"
What is Stable, when Current Rank is F1 Jūryō 14 West?
CREATE TABLE table_name_59 (stable VARCHAR, current_rank VARCHAR)
SELECT score FROM table_name_31 WHERE place = "t7" AND player = "justin leonard"
What is T7 Place Player Justin Leonard's Score?
CREATE TABLE table_name_31 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT year FROM table_name_35 WHERE assists = "48"
What year had 48 assists?
CREATE TABLE table_name_35 (year VARCHAR, assists VARCHAR)
SELECT home FROM table_name_93 WHERE score = "4–3"
Who was the home team when the score was 4–3?
CREATE TABLE table_name_93 (home VARCHAR, score VARCHAR)
SELECT location FROM table_name_68 WHERE tournament = "sea pines heritage classic"
What is the location of the Sea Pines Heritage Classic tournament?
CREATE TABLE table_name_68 (location VARCHAR, tournament VARCHAR)
SELECT game_site FROM table_name_20 WHERE week = 1
What is the Game site week 1?
CREATE TABLE table_name_20 (game_site VARCHAR, week VARCHAR)
SELECT class_aAAA FROM table_14747043_1 WHERE class_aAAAA = Weslaco AND school_year = "1994-95"
Who was the class AAAA when class AAAAA was Weslaco in 1994-95
CREATE TABLE table_14747043_1 (class_aAAA VARCHAR, class_aAAAA VARCHAR, Weslaco VARCHAR, school_year VARCHAR)
SELECT AVG(position) FROM table_name_80 WHERE goal_difference = 17 AND wins > 13
What is the average Position, when Goal Difference is "17", and when Wins is greater than 13?
CREATE TABLE table_name_80 (position INTEGER, goal_difference VARCHAR, wins VARCHAR)
SELECT english_title FROM table_name_20 WHERE original_title = "fanny och alexander"
What's the English Title of Fanny Och Alexander?
CREATE TABLE table_name_20 (english_title VARCHAR, original_title VARCHAR)
SELECT written_by FROM table_21313498_1 WHERE no_in_season = 11
in the number of episode in season is 11, who was the writer?
CREATE TABLE table_21313498_1 (written_by VARCHAR, no_in_season VARCHAR)
SELECT MAX(year) FROM table_name_69 WHERE points > 27 AND wins > 5
When is the most recent year with more than 27 points and more than 5 wins?
CREATE TABLE table_name_69 (year INTEGER, points VARCHAR, wins VARCHAR)
SELECT episode FROM table_29960651_5 WHERE no_for_season = 3
Which episode is number 3 in the season?
CREATE TABLE table_29960651_5 (episode VARCHAR, no_for_season VARCHAR)
SELECT opponent FROM table_name_47 WHERE score = "6–5 (10)"
Who was the opponent at the game with a score of 6–5 (10)?
CREATE TABLE table_name_47 (opponent VARCHAR, score VARCHAR)
SELECT AVG(december) FROM table_name_49 WHERE points = 38 AND record = "18–6–2"
Which December has Points of 38, and a Record of 18–6–2?
CREATE TABLE table_name_49 (december INTEGER, points VARCHAR, record VARCHAR)
SELECT score FROM table_name_96 WHERE player = "john fought"
What was John Fought's score?
CREATE TABLE table_name_96 (score VARCHAR, player VARCHAR)
SELECT COUNT(swing_to_gain) FROM table_name_20 WHERE constituency = "edinburgh northern and leith"
how many times is the constituency edinburgh northern and leith?
CREATE TABLE table_name_20 (swing_to_gain VARCHAR, constituency VARCHAR)
SELECT cfl_team FROM table_10812938_5 WHERE college = "St. Francis Xavier"
What's the team of the player from St. Francis Xavier College?
CREATE TABLE table_10812938_5 (cfl_team VARCHAR, college VARCHAR)
SELECT rider FROM table_name_61 WHERE speed = "80.18mph"
Which Rider finished with a speed of 80.18mph?
CREATE TABLE table_name_61 (rider VARCHAR, speed VARCHAR)
SELECT AVG(bronze) FROM table_name_12 WHERE total = 19 AND silver = 8 AND rank = "31"
I want the average bronze for total of 19 and silver of 8 with rank of 31
CREATE TABLE table_name_12 (bronze INTEGER, rank VARCHAR, total VARCHAR, silver VARCHAR)
SELECT label FROM table_name_48 WHERE date = "20 july"
Which Label has a Date of 20 July?
CREATE TABLE table_name_48 (label VARCHAR, date VARCHAR)
SELECT player FROM table_name_81 WHERE year_s__won = "1978"
Who is the player that won in the year 1978?
CREATE TABLE table_name_81 (player VARCHAR, year_s__won VARCHAR)
SELECT SUM(played) FROM table_name_80 WHERE goal_difference = -8 AND position < 12
How many people played at the club that had a "goal difference" of -8 and a position lower than 12?
CREATE TABLE table_name_80 (played INTEGER, goal_difference VARCHAR, position VARCHAR)
SELECT open_cup FROM table_1570003_2 WHERE year = 2003
During 2003 what was open cup qualifying status?
CREATE TABLE table_1570003_2 (open_cup VARCHAR, year VARCHAR)
SELECT player FROM table_name_72 WHERE score = 74 - 74 - 73 - 70 = 291
Which player has a score of 74-74-73-70=291?
CREATE TABLE table_name_72 (player VARCHAR, score VARCHAR)
SELECT competition FROM table_name_68 WHERE location = "bamako"
What competition is located in bamako?
CREATE TABLE table_name_68 (competition VARCHAR, location VARCHAR)
SELECT score FROM table_name_38 WHERE country = "united states" AND place = "t3" AND player = "chris riley"
What is the Score, when the Country is United States, when the Place is T3, and when the Player is Chris Riley?
CREATE TABLE table_name_38 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)
SELECT COUNT(race) FROM table_name_48 WHERE circuit = "mallala motor sport park"
How many races were in the Mallala Motor Sport Park circuit?
CREATE TABLE table_name_48 (race VARCHAR, circuit VARCHAR)
SELECT 2 AS __vf_ FROM table_name_75 WHERE verb = "dhoa"
For the verb dhoa, what is the 2VF?
CREATE TABLE table_name_75 (verb VARCHAR)
SELECT MAX(no_in_season) FROM table_12226390_4 WHERE written_by = "Bobby Bell and Bill Lee"
What episode was written by Bobby Bell and Bill Lee?
CREATE TABLE table_12226390_4 (no_in_season INTEGER, written_by VARCHAR)
SELECT MIN(year_built) FROM table_name_47 WHERE last_refurbished < 2013
What is the earliest year built for the ship refurbished earlier than 2013?
CREATE TABLE table_name_47 (year_built INTEGER, last_refurbished INTEGER)
SELECT MAX(clean_) & _jerk FROM table_name_92 WHERE total__kg_ = "200.0" AND snatch > 87.5
what is the highest clean & jerk when total (kg) is 200.0 and snatch is more than 87.5?
CREATE TABLE table_name_92 (_jerk VARCHAR, clean_ INTEGER, total__kg_ VARCHAR, snatch VARCHAR)
SELECT SUM(year) FROM table_name_19 WHERE round_1 = "66" AND money__$_ > 400 OFFSET 000
Round 1 of 66, and a Money ($) larger than 400,000 has what sum of year?
CREATE TABLE table_name_19 (year INTEGER, round_1 VARCHAR, money__$_ VARCHAR)
SELECT career_win_loss FROM table_name_3 WHERE 1995 = "atp masters series"
What is the career win-loss for the ATP Masters Series?
CREATE TABLE table_name_3 (career_win_loss VARCHAR)
SELECT no_range FROM table_name_58 WHERE year_built__converted * _ = "1965-66"
Tell me the number range for 1965-66
CREATE TABLE table_name_58 (no_range VARCHAR, year_built__converted VARCHAR, _ VARCHAR)
SELECT runner_up FROM table_name_26 WHERE year = 1999
Who won the runner-up in 1999?
CREATE TABLE table_name_26 (runner_up VARCHAR, year VARCHAR)
SELECT bname FROM bank WHERE state = 'New York'
Find the branch names of banks in the New York state.
CREATE TABLE bank (bname VARCHAR, state VARCHAR)
SELECT appearances FROM table_name_75 WHERE goals < 30 AND name = "gary depalma"
How many appearances did Gary Depalma make when he scored less than 30 goals?
CREATE TABLE table_name_75 (appearances VARCHAR, goals VARCHAR, name VARCHAR)
SELECT COUNT(engine_type) FROM table_1147705_1 WHERE model = "2.4 AWD"
How many have are model 2.4 awd?
CREATE TABLE table_1147705_1 (engine_type VARCHAR, model VARCHAR)
SELECT common_name FROM table_175442_1 WHERE scientific_name = "Rhampholeon spectrum"
Name the common name for rhampholeon spectrum
CREATE TABLE table_175442_1 (common_name VARCHAR, scientific_name VARCHAR)
SELECT architecture FROM table_name_73 WHERE original_vehicle = "ford escort wagon"
What architecture type does the Ford Escort Wagon have?
CREATE TABLE table_name_73 (architecture VARCHAR, original_vehicle VARCHAR)
SELECT preliminaries FROM table_12094609_1 WHERE state = "South Dakota"
what's the preliminaries where state is south dakota
CREATE TABLE table_12094609_1 (preliminaries VARCHAR, state VARCHAR)
SELECT csa_4_16_09 FROM table_name_17 WHERE opinionway_4_17_09 = "12%"
Name the csa 4/16/09 for opinionway being 4/17/09 of 12%
CREATE TABLE table_name_17 (csa_4_16_09 VARCHAR, opinionway_4_17_09 VARCHAR)
SELECT COUNT(bronze) FROM table_name_43 WHERE total < 4 AND gold > 1
How many bronze had a total less than 4 and gold bigger than 1?
CREATE TABLE table_name_43 (bronze VARCHAR, total VARCHAR, gold VARCHAR)
SELECT MAX(year) FROM table_name_50 WHERE hometown = "san carlos, pangasinan"
What's the latest year with a hometown of san carlos, pangasinan?
CREATE TABLE table_name_50 (year INTEGER, hometown VARCHAR)
SELECT MIN(l) FROM table_29565120_2 WHERE w = 4
What is the L when the W is 4?
CREATE TABLE table_29565120_2 (l INTEGER, w VARCHAR)
SELECT date FROM table_name_44 WHERE surface = "carpet (i)"
Which date has a Surface of carpet (i)?
CREATE TABLE table_name_44 (date VARCHAR, surface VARCHAR)
SELECT 1958 FROM table_name_67 WHERE 1957 = "2" AND 1956 = "3"
what is 1958 when 1957 is 2 and 1956 is 3?
CREATE TABLE table_name_67 (Id VARCHAR)
SELECT latitude FROM table_16799784_11 WHERE name = "Naijok Fossae"
At what latitude can the name origin of naijok fossae be found?
CREATE TABLE table_16799784_11 (latitude VARCHAR, name VARCHAR)
SELECT speed__ghz_ FROM table_269920_16 WHERE model = "W3540"
What is the speed of the model whose number is W3540?
CREATE TABLE table_269920_16 (speed__ghz_ VARCHAR, model VARCHAR)
SELECT LName FROM Student WHERE age = (SELECT MIN(age) FROM Student)
What is the last name of the youngest student?
CREATE TABLE Student (LName VARCHAR, age INTEGER)
SELECT director FROM table_name_79 WHERE title = "the star packer"
Who directed the movie The Star Packer?
CREATE TABLE table_name_79 (director VARCHAR, title VARCHAR)
SELECT MIN(title_playoff) FROM table_name_42 WHERE league > 3 AND super_cup < 0
What is the lowest Title Playoff, when League is greater than 3, and when Super Cup is less than 0?
CREATE TABLE table_name_42 (title_playoff INTEGER, league VARCHAR, super_cup VARCHAR)
SELECT grid FROM table_name_54 WHERE laps = 78 AND driver = "ronnie bremer"
What grid has 78 laps, and Ronnie Bremer as driver?
CREATE TABLE table_name_54 (grid VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT AVG(launches) FROM table_name_3 WHERE failures = 0 AND rocket = "soyuz" AND successes < 12
What are average launches with 0 failures, rocket of Soyuz, and less than 12 successes?
CREATE TABLE table_name_3 (launches INTEGER, successes VARCHAR, failures VARCHAR, rocket VARCHAR)
SELECT time FROM table_name_4 WHERE ground = "ghantoot racing and polo club"
What is the time of the Ghantoot Racing and Polo Club?
CREATE TABLE table_name_4 (time VARCHAR, ground VARCHAR)
SELECT season FROM table_name_31 WHERE score = "3 – 3 aet , 4–3 pen"
Which Season has a Score of 3 – 3 aet , 4–3 pen
CREATE TABLE table_name_31 (season VARCHAR, score VARCHAR)
SELECT surname FROM table_name_73 WHERE bats = "r" AND position = "p" AND dob = "20 may 1989"
Which Surname has Bats of r, and a Position of p, and a DOB of 20 may 1989?
CREATE TABLE table_name_73 (surname VARCHAR, dob VARCHAR, bats VARCHAR, position VARCHAR)
SELECT AVG(grid) FROM table_name_83 WHERE time_retired = "+2 laps" AND laps < 51
What is the average Grid that has a Time/Retired of +2 laps, and under 51 laps?
CREATE TABLE table_name_83 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT finalist FROM table_name_38 WHERE week = "october 21"
Which finalist played in the week of October 21?
CREATE TABLE table_name_38 (finalist VARCHAR, week VARCHAR)
SELECT game FROM table_name_60 WHERE score = "82-79"
What game was the final score 82-79?
CREATE TABLE table_name_60 (game VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_22 WHERE surface = "hard"
Which tournament had a hard surface?
CREATE TABLE table_name_22 (tournament VARCHAR, surface VARCHAR)
SELECT score FROM table_name_19 WHERE game = 31
What is the score at game 31?
CREATE TABLE table_name_19 (score VARCHAR, game VARCHAR)
SELECT COUNT(lost) FROM table_name_31 WHERE drawn = 1 AND games > 7
What is the total number of losses that have 1 draw and games over 7?
CREATE TABLE table_name_31 (lost VARCHAR, drawn VARCHAR, games VARCHAR)
SELECT AVG(year) FROM table_name_93 WHERE beer_name = "maggs magnificent mild" AND prize = "gold medal" AND category = "mild and porter" AND competition = "siba south east region beer competition"
What year did maggs magnificent mild win a gold medal in the mild and porter category at the siba south east region beer competition?
CREATE TABLE table_name_93 (year INTEGER, competition VARCHAR, category VARCHAR, beer_name VARCHAR, prize VARCHAR)
SELECT mary_davis FROM table_name_96 WHERE gay_mitchell = "4.6%"
What is the Mary Davis with a Gay Mitchell that is 4.6%?
CREATE TABLE table_name_96 (mary_davis VARCHAR, gay_mitchell VARCHAR)
SELECT votes_swing FROM table_149330_1 WHERE general_election = "12th Lok Sabha"
What was the vote swing for the general election of the 12th lok sabha?
CREATE TABLE table_149330_1 (votes_swing VARCHAR, general_election VARCHAR)
SELECT icelandic_title FROM table_name_28 WHERE norwegian_title = "galgeblomsten"
What is the Icelandic title for the Norweigan titled galgeblomsten?
CREATE TABLE table_name_28 (icelandic_title VARCHAR, norwegian_title VARCHAR)
SELECT MAX(year) FROM table_name_16 WHERE venue = "lübker golf resort"
What is the latest Year, when the Venue is Lübker Golf Resort?
CREATE TABLE table_name_16 (year INTEGER, venue VARCHAR)