answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT opponent FROM table_name_83 WHERE loss = "dickey (0-1)"
Who did they play when dickey (0-1) recorded the loss?
CREATE TABLE table_name_83 (opponent VARCHAR, loss VARCHAR)
SELECT attendance FROM table_name_12 WHERE loss = "mercker (3-1)"
What was the attendance at the game that had a loss of Mercker (3-1)?
CREATE TABLE table_name_12 (attendance VARCHAR, loss VARCHAR)
SELECT COUNT(year) FROM table_name_82 WHERE title = "the queen" AND award = "british academy film award" AND result = "won"
What is the total number of Year for the Title of The Queen, has an Award of British Academy Film Award, and has a Result of Won?
CREATE TABLE table_name_82 (year VARCHAR, result VARCHAR, title VARCHAR, award VARCHAR)
SELECT country FROM table_name_7 WHERE notes = "sa/b" AND rank = 2
Which country had notes of sa/b and a rank of 2?
CREATE TABLE table_name_7 (country VARCHAR, notes VARCHAR, rank VARCHAR)
SELECT cName FROM tryout WHERE pPos = 'mid' EXCEPT SELECT cName FROM tryout WHERE pPos = 'goalie'
Find the names of schools that have some players in the mid position but not in the goalie position.
CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR)
SELECT winning_team FROM table_name_46 WHERE winning_pitcher = "chris young" AND location = "arlington"
Which winning team has a winning pitcher of Chris Young and was played in Arlington?
CREATE TABLE table_name_46 (winning_team VARCHAR, winning_pitcher VARCHAR, location VARCHAR)
SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING COUNT(*) > 4
Find the policy type used by more than 4 customers.
CREATE TABLE available_policies (policy_type_code VARCHAR)
SELECT opponent_in_the_final FROM table_name_88 WHERE partnering = "graydon oliver"
Which Opponent in the final has a Partnering of graydon oliver?
CREATE TABLE table_name_88 (opponent_in_the_final VARCHAR, partnering VARCHAR)
SELECT years_in_orlando FROM table_name_16 WHERE nationality = "united states" AND school_club_team = "montana"
What years in orlando have the United States as the nationality, and montana as the school/club team?
CREATE TABLE table_name_16 (years_in_orlando VARCHAR, nationality VARCHAR, school_club_team VARCHAR)
SELECT mens_doubles FROM table_15002265_1 WHERE mens_singles = "Jürgen Koch" AND womens_singles = "Sabine Ploner"
who is the the mens doubles with mens singles being jürgen koch and womens singles being sabine ploner
CREATE TABLE table_15002265_1 (mens_doubles VARCHAR, mens_singles VARCHAR, womens_singles VARCHAR)
SELECT ordered FROM table_name_73 WHERE name = "algerine (2nd of name)"
What ordered has algerine (2nd of name) as the name?
CREATE TABLE table_name_73 (ordered VARCHAR, name VARCHAR)
SELECT timeslot FROM table_name_74 WHERE calls = "whyn"
Tell me the timeslot for calls of whyn
CREATE TABLE table_name_74 (timeslot VARCHAR, calls VARCHAR)
SELECT COUNT(title) FROM table_12030612_9 WHERE written_by = "Adam I. Lapidus"
Name the number of titles written by adam i. lapidus
CREATE TABLE table_12030612_9 (title VARCHAR, written_by VARCHAR)
SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) > 2
What document types have more than 2 corresponding documents?
CREATE TABLE documents (document_type_code VARCHAR)
SELECT leading_lady FROM table_name_59 WHERE director = "joseph kane" AND title = "the lonely trail"
Who is the leading lady in The Lonely Trail for Joseph Kane?
CREATE TABLE table_name_59 (leading_lady VARCHAR, director VARCHAR, title VARCHAR)
SELECT place FROM table_name_61 WHERE player = "fred couples"
What did Fred Couples place?
CREATE TABLE table_name_61 (place VARCHAR, player VARCHAR)
SELECT entered_office FROM table_name_74 WHERE left_office = "1337"
What is the entered office that has 1337 as the left office?
CREATE TABLE table_name_74 (entered_office VARCHAR, left_office VARCHAR)
SELECT original_title FROM table_name_66 WHERE result = "not nominated" AND year__ceremony_ = "2012 (85th)"
In the 2012 (85th) Ceremony, what was the Original title of the film not nominated?
CREATE TABLE table_name_66 (original_title VARCHAR, result VARCHAR, year__ceremony_ VARCHAR)
SELECT player FROM table_name_48 WHERE score = 66 - 74 - 76 = 216
What is Player, when Score is "66-74-76=216"?
CREATE TABLE table_name_48 (player VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_58 WHERE save = "||33,389||87–62"
Who was the opponent in the game with save ||33,389||87–62?
CREATE TABLE table_name_58 (opponent VARCHAR, save VARCHAR)
SELECT kickoff_[a_] FROM table_name_66 WHERE record = "1-7"
When was the kickoff during a game with a record of 1-7?
CREATE TABLE table_name_66 (kickoff_ VARCHAR, a_ VARCHAR, record VARCHAR)
SELECT MAX(attendance) FROM table_name_27 WHERE week > 1 AND date = "november 12, 1961"
What is the highest attendance for the game after week 1 on November 12, 1961?
CREATE TABLE table_name_27 (attendance INTEGER, week VARCHAR, date VARCHAR)
SELECT name FROM captain ORDER BY age DESC
Sort all captain names by their ages from old to young.
CREATE TABLE captain (name VARCHAR, age VARCHAR)
SELECT opponent FROM table_name_51 WHERE round = "r5"
Which opponent has a Round of r5?
CREATE TABLE table_name_51 (opponent VARCHAR, round VARCHAR)
SELECT score FROM table_name_43 WHERE player = "ernie els"
What is Ernie Els' Score?
CREATE TABLE table_name_43 (score VARCHAR, player VARCHAR)
SELECT pick__number FROM table_name_59 WHERE position = "wr"
What was the pick number for the WR position?
CREATE TABLE table_name_59 (pick__number VARCHAR, position VARCHAR)
SELECT release_date FROM table_name_14 WHERE production_number = "1018, br 1352"
What was the release date of the feature with a production number of 1018, BR 1352?
CREATE TABLE table_name_14 (release_date VARCHAR, production_number VARCHAR)
SELECT _number FROM table_12032893_1 WHERE high_school = "Crockett"
Crockett High School had which number(#)?
CREATE TABLE table_12032893_1 (_number VARCHAR, high_school VARCHAR)
SELECT regular_season_winner FROM table_22779004_1 WHERE conference = "Missouri Valley conference"
Who won the regular season when Missouri Valley Conference took place?
CREATE TABLE table_22779004_1 (regular_season_winner VARCHAR, conference VARCHAR)
SELECT frequency FROM table_name_4 WHERE order_part_number = "tmn550dcr23gm"
what is the frequency of part number tmn550dcr23gm?
CREATE TABLE table_name_4 (frequency VARCHAR, order_part_number VARCHAR)
SELECT language FROM table_2509112_3 WHERE villa_rivero_municipality = 7
If Villa Rivero Municipality if 7, what is the language?
CREATE TABLE table_2509112_3 (language VARCHAR, villa_rivero_municipality VARCHAR)
SELECT country FROM table_name_18 WHERE place = "t8" AND score = 71 - 71 - 71 = 213
What country placed t8 and scored 71-71-71=213?
CREATE TABLE table_name_18 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT position FROM table_20898602_1 WHERE pick__number = 79
what's the position of pick # 79
CREATE TABLE table_20898602_1 (position VARCHAR, pick__number VARCHAR)
SELECT AVG(wins) FROM table_name_86 WHERE draws < 4 AND goals_for < 15
What is the average win total associated with under 4 draws, and under 15 goals?
CREATE TABLE table_name_86 (wins INTEGER, draws VARCHAR, goals_for VARCHAR)
SELECT MIN(attendance) FROM table_name_27 WHERE venue = "h" AND round = "r2"
What is the lowest attendance at Venue H in Round R2?
CREATE TABLE table_name_27 (attendance INTEGER, venue VARCHAR, round VARCHAR)
SELECT driver FROM table_name_69 WHERE grid > 9 AND laps < 26 AND constructor = "ferrari"
I want the driver for ferrari who made Laps less than 26 and grids more than 9
CREATE TABLE table_name_69 (driver VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT size FROM table_name_61 WHERE year_joined < 1974 AND ihsaa_class = "aa" AND _number___county = "89 wayne" AND school = "centerville"
What's the size of Centerville in 89 Wayne county with an IHSAA class of AA in the year before 1974?
CREATE TABLE table_name_61 (size VARCHAR, school VARCHAR, _number___county VARCHAR, year_joined VARCHAR, ihsaa_class VARCHAR)
SELECT player FROM table_name_8 WHERE year > 1885 AND hits = 238
Name the player with 238 hits and years after 1885
CREATE TABLE table_name_8 (player VARCHAR, year VARCHAR, hits VARCHAR)
SELECT MAX(bronze) FROM table_name_48 WHERE total > 3 AND rank > 1
What are the most bronze medals in a rank more than 1 with a total larger than 3?
CREATE TABLE table_name_48 (bronze INTEGER, total VARCHAR, rank VARCHAR)
SELECT city FROM table_name_29 WHERE country = "spain" AND iata = "ibz"
for country of spain and iata of ibz, what's the city?
CREATE TABLE table_name_29 (city VARCHAR, country VARCHAR, iata VARCHAR)
SELECT brazil_scorers FROM table_name_93 WHERE score = "1-1"
What Brazil scorers have a 1-1 Score?
CREATE TABLE table_name_93 (brazil_scorers VARCHAR, score VARCHAR)
SELECT kickoff_[a_] FROM table_11449590_2 WHERE opponent = "at New Orleans Saints"
Which kickoff has the opponent at new orleans saints?
CREATE TABLE table_11449590_2 (kickoff_ VARCHAR, a_ VARCHAR, opponent VARCHAR)
SELECT total FROM table_name_68 WHERE set_1 = "15–11"
What is the total when the score of set 1 was 15–11?
CREATE TABLE table_name_68 (total VARCHAR, set_1 VARCHAR)
SELECT athlete FROM table_26335424_86 WHERE quarterfinals = "Nabil Talal ( JOR ) L PTS 3-3"
If the quarterfinals was nabil talal ( jor ) l pts 3-3, who was the athlete?
CREATE TABLE table_26335424_86 (athlete VARCHAR, quarterfinals VARCHAR)
SELECT year FROM table_name_92 WHERE player = "coenraad breytenbach"
What year did Coenraad Breytenbach have their Int'l Debut?
CREATE TABLE table_name_92 (year VARCHAR, player VARCHAR)
SELECT 20 AS _questions FROM table_name_46 WHERE centerfold_model = "rachel jeán marteen"
Who was the 20 Questions section aimed at when Centerfold Model was Rachel Jeán Marteen?
CREATE TABLE table_name_46 (centerfold_model VARCHAR)
SELECT COUNT(episode_title) FROM table_13505192_3 WHERE series_number = 35
How many episodes have a series number of 35?
CREATE TABLE table_13505192_3 (episode_title VARCHAR, series_number VARCHAR)
SELECT match FROM table_name_65 WHERE team = "skra warszawa"
What is the Match for skra warszawa?
CREATE TABLE table_name_65 (match VARCHAR, team VARCHAR)
SELECT T1.subject_id, T2.subject_name, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*)
Find the subject ID, name of subject and the corresponding number of courses for each subject, and sort by the course count in ascending order.
CREATE TABLE Courses (subject_id VARCHAR); CREATE TABLE Subjects (subject_name VARCHAR, subject_id VARCHAR)
SELECT _m__finishing_position FROM table_name_44 WHERE president = "ray kaduck" AND _m__coach = "corey bowen"
What was the (M) Finishe position when ray kaduck was president and corey bowen was coach?
CREATE TABLE table_name_44 (_m__finishing_position VARCHAR, president VARCHAR, _m__coach VARCHAR)
SELECT MAX(place) FROM table_name_92 WHERE year = 2010 AND clean_and_jerk = "224kg"
What was the highest place result in 2010 with a Clean and Jerk weight of 224kg?
CREATE TABLE table_name_92 (place INTEGER, year VARCHAR, clean_and_jerk VARCHAR)
SELECT luma_samples_s FROM table_237036_2 WHERE level = "1.3"
What are the luma samples at level 1.3?
CREATE TABLE table_237036_2 (luma_samples_s VARCHAR, level VARCHAR)
SELECT kk___5 FROM table_name_38 WHERE kk___3 = "310"
What is KK -5 if KK - 3 is 310?
CREATE TABLE table_name_38 (kk___5 VARCHAR, kk___3 VARCHAR)
SELECT enemy_aircraft FROM table_name_46 WHERE soviet_unit = "437 iap" AND date__ddmmyyyy_ = "14.09.1942"
What was the enemy aircraft on 14.09.1942, when the Soviet Unit was 437 iap?
CREATE TABLE table_name_46 (enemy_aircraft VARCHAR, soviet_unit VARCHAR, date__ddmmyyyy_ VARCHAR)
SELECT kickoff FROM table_24481478_1 WHERE date = "Saturday, April 20"
What time did the game start on saturday, april 20?
CREATE TABLE table_24481478_1 (kickoff VARCHAR, date VARCHAR)
SELECT captain FROM table_name_23 WHERE year = "1774" AND guns = "14"
Tell me the captain for 1774 and guns of 14
CREATE TABLE table_name_23 (captain VARCHAR, year VARCHAR, guns VARCHAR)
SELECT MAX(_number) FROM table_15190346_2 WHERE attendance = "79,280"
What is the number of the bowl game when attendance was 79,280?
CREATE TABLE table_15190346_2 (_number INTEGER, attendance VARCHAR)
SELECT segment_b FROM table_15187735_13 WHERE episode = 167
Name the segment b for 167
CREATE TABLE table_15187735_13 (segment_b VARCHAR, episode VARCHAR)
SELECT MIN(lane) FROM table_name_97 WHERE heat > 2 AND time = "1:10.57"
What is the lowest numbered Lane with a Time of 1:10.57 and Heat larger than 2?
CREATE TABLE table_name_97 (lane INTEGER, heat VARCHAR, time VARCHAR)
SELECT kerry_number FROM table_1733457_1 WHERE others_number = 44
Name the kerry # for others# is 44
CREATE TABLE table_1733457_1 (kerry_number VARCHAR, others_number VARCHAR)
SELECT T1.project_id, T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id HAVING COUNT(*) > 2
What is the project id and detail for the project with at least two documents?
CREATE TABLE Projects (project_id VARCHAR, project_details VARCHAR); CREATE TABLE Documents (project_id VARCHAR)
SELECT interview FROM table_11674683_2 WHERE delegate = "Peru"
Name the interview for peru delegate
CREATE TABLE table_11674683_2 (interview VARCHAR, delegate VARCHAR)
SELECT height FROM table_name_82 WHERE pos = "f" AND weight < 195
What is the height of the F who weighs less than 195?
CREATE TABLE table_name_82 (height VARCHAR, pos VARCHAR, weight VARCHAR)
SELECT MIN(height__m_) FROM table_name_97 WHERE name = "plessur alps" AND ave__no > 63
Which Height (m) has a Name of plessur alps, and a AVE-No larger than 63?
CREATE TABLE table_name_97 (height__m_ INTEGER, name VARCHAR, ave__no VARCHAR)
SELECT DISTINCT donator_name FROM endowment
Show all donor names.
CREATE TABLE endowment (donator_name VARCHAR)
SELECT total_games FROM table_name_84 WHERE years = 117 AND pac_12 = "california"
How many total games associated with the Pac-12 of california and 117 years?
CREATE TABLE table_name_84 (total_games VARCHAR, years VARCHAR, pac_12 VARCHAR)
SELECT transcription FROM table_20354_5 WHERE thai_name = "พฤษภาคม"
What's the transcription for the Thai name พฤษภาคม?
CREATE TABLE table_20354_5 (transcription VARCHAR, thai_name VARCHAR)
SELECT MAX(episode_number) FROM table_26733129_1 WHERE three_darts_challenge = "Sharon Osbourne"
How many episodes are there for the three darts challenge with Sharon Osbourne?
CREATE TABLE table_26733129_1 (episode_number INTEGER, three_darts_challenge VARCHAR)
SELECT score FROM table_name_56 WHERE tie_no = "33"
Which Score has a Tie no of 33?
CREATE TABLE table_name_56 (score VARCHAR, tie_no VARCHAR)
SELECT ground FROM table_name_17 WHERE match < 6 AND opponent = "chelsea reserves"
What ground had a match smaller than 6 and Chelsea Reserves as the opponent?
CREATE TABLE table_name_17 (ground VARCHAR, match VARCHAR, opponent VARCHAR)
SELECT player FROM table_name_5 WHERE to_par > 7 AND total = 298
Which player had a to par score larger than 7 and a total score of 298?
CREATE TABLE table_name_5 (player VARCHAR, to_par VARCHAR, total VARCHAR)
SELECT venue FROM table_name_49 WHERE team = "boston red sox"
In what venue did the Boston Red Sox play in?
CREATE TABLE table_name_49 (venue VARCHAR, team VARCHAR)
SELECT lost FROM table_name_20 WHERE tied = "0" AND drawn = "47"
Tell me the lost with tie of 0 and drawn of 47
CREATE TABLE table_name_20 (lost VARCHAR, tied VARCHAR, drawn VARCHAR)
SELECT MIN(season_no) FROM table_29154676_1 WHERE us_viewers__millions_ = "3.91"
What is the last episode in the season that had 3.91 million viewers in the US?
CREATE TABLE table_29154676_1 (season_no INTEGER, us_viewers__millions_ VARCHAR)
SELECT crime FROM table_2861364_1 WHERE place_of_execution = "Metz" AND executed_person = "Gunther Volz"
for what crime was gunther volz executed at metz?
CREATE TABLE table_2861364_1 (crime VARCHAR, place_of_execution VARCHAR, executed_person VARCHAR)
SELECT rider FROM table_name_67 WHERE laps < 16 AND time = "accident" AND bike = "yamaha yzf-r6" AND grid = 10
What is the driver with the laps under 16, grid of 10, a bike of Yamaha YZF-R6, and ended with an accident?
CREATE TABLE table_name_67 (rider VARCHAR, grid VARCHAR, bike VARCHAR, laps VARCHAR, time VARCHAR)
SELECT rank FROM table_name_52 WHERE name = "point hyllie"
What is the rank of Point Hyllie?
CREATE TABLE table_name_52 (rank VARCHAR, name VARCHAR)
SELECT SUM(bronze) FROM table_name_8 WHERE silver = 1 AND rank < 4 AND gold > 1
What shows for bronze when silver is 1, rank is smaller than 4, and gold is larger than 1?
CREATE TABLE table_name_8 (bronze INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR)
SELECT opponent FROM table_name_46 WHERE round > 1 AND record = "12-7"
Who was the opponent when he went more than 1 round with a record of 12-7?
CREATE TABLE table_name_46 (opponent VARCHAR, round VARCHAR, record VARCHAR)
SELECT 1999 FROM table_name_24 WHERE tournament = "rome"
What is the 1999 finish for the tournament in Rome?
CREATE TABLE table_name_24 (tournament VARCHAR)
SELECT regular_season_record__w_l_ FROM table_20774360_2 WHERE standing = "11th"
Name the regular season record for standing 11th
CREATE TABLE table_20774360_2 (regular_season_record__w_l_ VARCHAR, standing VARCHAR)
SELECT COUNT(attendance) FROM table_name_96 WHERE score = "3 – 2" AND date = "january 10"
How many people attended the game on january 10 with a Score of 3 – 2?
CREATE TABLE table_name_96 (attendance VARCHAR, score VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_79 WHERE week = 11
Who did they play in week 11?
CREATE TABLE table_name_79 (opponent VARCHAR, week VARCHAR)
SELECT MIN(lane) FROM table_name_67 WHERE react = 0.216
What is the lowest lane with a 0.216 react?
CREATE TABLE table_name_67 (lane INTEGER, react VARCHAR)
SELECT AVG(hydroelectricity) FROM table_name_73 WHERE year > 2011 AND wind_power < 13.333
In 2011 with a less than 13.333 wind power what is the mean hydroelectricity?
CREATE TABLE table_name_73 (hydroelectricity INTEGER, year VARCHAR, wind_power VARCHAR)
SELECT attendance FROM table_name_92 WHERE date = "june 11"
Name the attendance with date of june 11
CREATE TABLE table_name_92 (attendance VARCHAR, date VARCHAR)
SELECT system FROM table_name_80 WHERE name = "mess"
Which system is named mess?
CREATE TABLE table_name_80 (system VARCHAR, name VARCHAR)
SELECT event FROM table_22644589_4 WHERE compulsory_dance__cd_ = "28.12"
In what event was the compulsory dance score 28.12?
CREATE TABLE table_22644589_4 (event VARCHAR, compulsory_dance__cd_ VARCHAR)
SELECT crowd FROM table_name_76 WHERE venue = "lake oval"
How many people attended the game at Lake Oval?
CREATE TABLE table_name_76 (crowd VARCHAR, venue VARCHAR)
SELECT entrant FROM table_name_83 WHERE points < 33 AND year = 1999
Which entrant had fewer than 33 points in 1999?
CREATE TABLE table_name_83 (entrant VARCHAR, points VARCHAR, year VARCHAR)
SELECT COUNT(DISTINCT dept_address) FROM department WHERE school_code = 'BUS'
How many different locations does the school with code BUS has?
CREATE TABLE department (dept_address VARCHAR, school_code VARCHAR)
SELECT player FROM table_name_61 WHERE team = "boston patriots"
Which player played for the Boston Patriots?
CREATE TABLE table_name_61 (player VARCHAR, team VARCHAR)
SELECT COUNT(points_won) FROM table_name_74 WHERE year = "2007" AND total_matches > 5
In 2007, how many points were won when more than 5 matches were played?
CREATE TABLE table_name_74 (points_won VARCHAR, year VARCHAR, total_matches VARCHAR)
SELECT dutch FROM table_name_66 WHERE old_english = "/d/"
What's the Dutch when then Old English is /d/?
CREATE TABLE table_name_66 (dutch VARCHAR, old_english VARCHAR)
SELECT nhl_team FROM table_2679061_8 WHERE pick__number = 155
What club is associated with draft number 155?
CREATE TABLE table_2679061_8 (nhl_team VARCHAR, pick__number VARCHAR)
SELECT nosotros___nosotras FROM table_1977630_2 WHERE él___ella___usted = "piense"
What are all the conjugated forms of the verb where the el/ ella/usted verb is piense?
CREATE TABLE table_1977630_2 (nosotros___nosotras VARCHAR, él___ella___usted VARCHAR)
SELECT episode_title FROM table_name_65 WHERE episode__number = "s2"
Which Episode title has a Episode # of s2?
CREATE TABLE table_name_65 (episode_title VARCHAR, episode__number VARCHAR)
SELECT result FROM table_name_64 WHERE week > 13
What is the result later than week 13?
CREATE TABLE table_name_64 (result VARCHAR, week INTEGER)
SELECT COUNT(*), T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T1.age > 20 GROUP BY T3.dorm_name
Find the number of students who is older than 20 in each dorm.
CREATE TABLE dorm (dorm_name VARCHAR, dormid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (stuid VARCHAR, age INTEGER)
SELECT city FROM table_name_38 WHERE club = "suntracs f.c."
Which City has a Club of suntracs f.c.?
CREATE TABLE table_name_38 (city VARCHAR, club VARCHAR)