answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT wheel_arrangement FROM table_name_52 WHERE manufacturer = "baldwin" AND quantity_made = "12"
What is Wheel Arrangement, when Manufacturer is "Baldwin", and when Quantity Made is 12?
CREATE TABLE table_name_52 (wheel_arrangement VARCHAR, manufacturer VARCHAR, quantity_made VARCHAR)
SELECT event FROM table_name_81 WHERE score_points = "10"
What event did the shooter, who had 10 score points, compete in?
CREATE TABLE table_name_81 (event VARCHAR, score_points VARCHAR)
SELECT MAX(tonnage) FROM table_name_35 WHERE ship_type = "brig" AND disposition_of_ship = "prize"
What is the highest tonnage of the Brig Ship Type and the disposition of Ship of Prize?
CREATE TABLE table_name_35 (tonnage INTEGER, ship_type VARCHAR, disposition_of_ship VARCHAR)
SELECT years_runner_up FROM table_name_91 WHERE runners_up > 1 AND club = "birmingham city"
What years runner-up is Birmingham city, with over 1 runners-up?
CREATE TABLE table_name_91 (years_runner_up VARCHAR, runners_up VARCHAR, club VARCHAR)
SELECT SUM(shirt_no) FROM table_name_11 WHERE position = "setter" AND nationality = "italy" AND height > 172
What is the shirt no with a position of setter, a nationality of Italy, and height larger than 172?
CREATE TABLE table_name_11 (shirt_no INTEGER, height VARCHAR, position VARCHAR, nationality VARCHAR)
SELECT school_club_team FROM table_name_38 WHERE round > 13 AND overall = 384
What school/club team did the player who was drafted after round 13 with an overall rank of 384 play for?
CREATE TABLE table_name_38 (school_club_team VARCHAR, round VARCHAR, overall VARCHAR)
SELECT date FROM table_23184448_3 WHERE cyclones_points = 46
When did the Cyclones get 46 points?
CREATE TABLE table_23184448_3 (date VARCHAR, cyclones_points VARCHAR)
SELECT year FROM table_23548160_1 WHERE driver = "Randy Lewis"
What year did Randy Lewis drive?
CREATE TABLE table_23548160_1 (year VARCHAR, driver VARCHAR)
SELECT COUNT(term_expires) FROM table_name_52 WHERE province = "north western" AND name = "ken wright"
How many times did Ken Wright expired in North Western?
CREATE TABLE table_name_52 (term_expires VARCHAR, province VARCHAR, name VARCHAR)
SELECT date FROM table_name_5 WHERE score = "379"
What's the date the score was 379?
CREATE TABLE table_name_5 (date VARCHAR, score VARCHAR)
SELECT T1.degree_program_id, T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY COUNT(*) DESC LIMIT 1
Find the program which most number of students are enrolled in. List both the id and the summary.
CREATE TABLE Degree_Programs (degree_program_id VARCHAR, degree_summary_name VARCHAR); CREATE TABLE Student_Enrolment (degree_program_id VARCHAR)
SELECT 2 AS nd_leg FROM table_name_9 WHERE team__number1 = "tsv bayer 04 leverkusen"
Who played against TSV bayer 04 leverkusen when they were team #1?
CREATE TABLE table_name_9 (team__number1 VARCHAR)
SELECT competition FROM table_name_33 WHERE score = "3-0"
What was the competition when the score was 3-0?
CREATE TABLE table_name_33 (competition VARCHAR, score VARCHAR)
SELECT place FROM table_name_32 WHERE score = 73 - 73 - 65 - 73 = 284
What is the Place of the Player with a Score of 73-73-65-73=284?
CREATE TABLE table_name_32 (place VARCHAR, score 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 headquarters FROM table_10054296_1 WHERE member = "Alpha Nu Omega"
Where is the headquarters of Alpha Nu Omega
CREATE TABLE table_10054296_1 (headquarters VARCHAR, member VARCHAR)
SELECT MAX(no) FROM table_15621965_7 WHERE player = "Chris Gatling"
What number identifies Chris Gatling?
CREATE TABLE table_15621965_7 (no INTEGER, player VARCHAR)
SELECT MAX(viewers__m_) FROM table_name_47 WHERE rating > 9.4
What is the highest number of viewers for a rating greater than 9.4?
CREATE TABLE table_name_47 (viewers__m_ INTEGER, rating INTEGER)
SELECT wounded FROM table_name_79 WHERE complement = "83 off 9 men"
How many were Wounded while in a Unit with a Complement of 83 off 9 Men?
CREATE TABLE table_name_79 (wounded VARCHAR, complement VARCHAR)
SELECT MAX(year_of_disaffiliation) FROM table_name_31 WHERE station = "chch-tv" AND year_of_affiliation > 2001
What is the most recent year of disaffiliation of a CHCH-TV station that affiliated after 2001?
CREATE TABLE table_name_31 (year_of_disaffiliation INTEGER, station VARCHAR, year_of_affiliation VARCHAR)
SELECT DISTINCT T1.first_name, T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code
List the first name of all the professionals along with the description of the treatment they have done.
CREATE TABLE Treatments (professional_id VARCHAR, treatment_type_code VARCHAR); CREATE TABLE Treatment_types (treatment_type_description VARCHAR, treatment_type_code VARCHAR); CREATE TABLE professionals (first_name VARCHAR, professional_id VARCHAR)
SELECT icao FROM table_name_62 WHERE iata = "ccu"
Name the ICAO for IATA of ccu
CREATE TABLE table_name_62 (icao VARCHAR, iata VARCHAR)
SELECT played FROM table_name_38 WHERE lost = "20"
How many matches played are associated with 20 losses?
CREATE TABLE table_name_38 (played VARCHAR, lost VARCHAR)
SELECT college FROM table_name_72 WHERE position = "defensive end" AND round = 2
What college was the defensive end pick that was picked in round 2?
CREATE TABLE table_name_72 (college VARCHAR, position VARCHAR, round VARCHAR)
SELECT stadium FROM table_name_66 WHERE club = "f.c. igea virtus barcellona"
What's the name of the stadium when the club was F.C. Igea Virtus Barcellona?
CREATE TABLE table_name_66 (stadium VARCHAR, club VARCHAR)
SELECT record FROM table_17323529_8 WHERE team = "Boston"
What is the record against Boston?
CREATE TABLE table_17323529_8 (record VARCHAR, team VARCHAR)
SELECT MIN(round) FROM table_name_55 WHERE player = "will wilcox"
What is the lowest round number in which Will Wilcox was selected?
CREATE TABLE table_name_55 (round INTEGER, player VARCHAR)
SELECT MIN(episode__number) FROM table_25691838_12 WHERE guest = "Julie Nixon Eisenhower and David Eisenhower"
What is the episode # when the guests were julie nixon eisenhower and david eisenhower?
CREATE TABLE table_25691838_12 (episode__number INTEGER, guest VARCHAR)
SELECT MIN(year) FROM table_name_13 WHERE start = "17th"
Name the least year for start of 17th
CREATE TABLE table_name_13 (year INTEGER, start VARCHAR)
SELECT COUNT(*), sex FROM people WHERE weight > 85 GROUP BY sex
how many people are there whose weight is higher than 85 for each gender?
CREATE TABLE people (sex VARCHAR, weight INTEGER)
SELECT total FROM table_name_40 WHERE player = "matt ruth"
Which Total has a Player of matt ruth?
CREATE TABLE table_name_40 (total VARCHAR, player VARCHAR)
SELECT COUNT(points) FROM table_14342210_12 WHERE position = "Right end"
How many points where scored by the right end?
CREATE TABLE table_14342210_12 (points VARCHAR, position VARCHAR)
SELECT title FROM table_18102421_2 WHERE us_viewers__millions_ = "13.82"
What was the title of the episode that had 13.82 million U.S. viewers?
CREATE TABLE table_18102421_2 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT MAX(first_elected) FROM table_name_71 WHERE incumbent = "john sullivan"
Incumbent John Sullivan has what as biggest first elected?
CREATE TABLE table_name_71 (first_elected INTEGER, incumbent VARCHAR)
SELECT high_assists FROM table_11959669_3 WHERE date = "November 4"
Who had the highest assists on November 4
CREATE TABLE table_11959669_3 (high_assists VARCHAR, date VARCHAR)
SELECT tv_time FROM table_name_23 WHERE date = "january 2, 2005"
Which TV Time has a Date of january 2, 2005?
CREATE TABLE table_name_23 (tv_time VARCHAR, date VARCHAR)
SELECT COUNT(start) FROM table_name_53 WHERE team = "rahal letterman" AND year = 2006
Where did the team of Rahal Letterman in 2006 start?
CREATE TABLE table_name_53 (start VARCHAR, team VARCHAR, year VARCHAR)
SELECT visitor FROM table_name_39 WHERE home = "lakers" AND score = "85–106"
Who was the visitor when the lakers were at home with a Score of 85–106?
CREATE TABLE table_name_39 (visitor VARCHAR, home VARCHAR, score VARCHAR)
SELECT COUNT(pick) FROM table_name_82 WHERE player = "brandon rush"
WHAT WAS THE PICK NUMBER FOR BRANDON RUSH?
CREATE TABLE table_name_82 (pick VARCHAR, player VARCHAR)
SELECT visitor FROM table_name_52 WHERE date = "april 18"
On April 18, which team was the visitor?
CREATE TABLE table_name_52 (visitor VARCHAR, date VARCHAR)
SELECT AVG(pick) FROM table_name_79 WHERE college = "texas-san antonio"
What is the pick of Texas-San Antonio?
CREATE TABLE table_name_79 (pick INTEGER, college VARCHAR)
SELECT SUM(rank) FROM table_name_89 WHERE player = "lee trevino" AND wins < 27
What is the rank of Lee Trevino, who had less than 27 wins?
CREATE TABLE table_name_89 (rank INTEGER, player VARCHAR, wins VARCHAR)
SELECT score FROM table_name_20 WHERE time = "1:36"
Name the score for 1:36 time
CREATE TABLE table_name_20 (score VARCHAR, time VARCHAR)
SELECT iata FROM table_name_79 WHERE airport = "gatwick airport"
What is the IATA for Gatwick airport?
CREATE TABLE table_name_79 (iata VARCHAR, airport VARCHAR)
SELECT AVG(points) FROM table_name_73 WHERE team = "arrows racing team" AND year < 1983
What is the average point total for arrows racing team before 1983?
CREATE TABLE table_name_73 (points INTEGER, team VARCHAR, year VARCHAR)
SELECT COUNT(member_association) FROM table_1059743_2 WHERE points = "177.2"
How many countries earned 177.2 points?
CREATE TABLE table_1059743_2 (member_association VARCHAR, points VARCHAR)
SELECT COUNT(nba_draft) FROM table_11677760_31 WHERE school = "East Side High school"
Name the total number of nba drafts that went to east side high school
CREATE TABLE table_11677760_31 (nba_draft VARCHAR, school VARCHAR)
SELECT championship FROM table_name_43 WHERE margin = "10 strokes"
Which championship had a margin of 10 strokes?
CREATE TABLE table_name_43 (championship VARCHAR, margin VARCHAR)
SELECT hometown FROM table_11677691_1 WHERE player = "Jeremy Hill"
What is Jeremy Hill's hometown?
CREATE TABLE table_11677691_1 (hometown VARCHAR, player VARCHAR)
SELECT MAX(year) FROM table_name_37 WHERE chassis = "emeryson 1006" AND points > 0
What is the latest year for a Emeryson 1006 chassis with more than 0 points?
CREATE TABLE table_name_37 (year INTEGER, chassis VARCHAR, points VARCHAR)
SELECT conference_semifinals FROM table_name_57 WHERE conference_finals = "† denotes division championship"
Which Conference Semifinals has a Conference Finals of † denotes division championship?
CREATE TABLE table_name_57 (conference_semifinals VARCHAR, conference_finals VARCHAR)
SELECT stadium FROM table_name_76 WHERE coach = "rashid budaj"
Which stadium did Rashid Budaj coach?
CREATE TABLE table_name_76 (stadium VARCHAR, coach VARCHAR)
SELECT MIN(league_cup_goals) FROM table_name_59 WHERE scorer = "denis law"
What is the lowest League Cup Goals, when Scorer is Denis Law?
CREATE TABLE table_name_59 (league_cup_goals INTEGER, scorer VARCHAR)
SELECT round FROM table_name_52 WHERE against = 1 AND date = "29 january 1949"
What was the round for 29 January 1949, when the against was 1?
CREATE TABLE table_name_52 (round VARCHAR, against VARCHAR, date VARCHAR)
SELECT record FROM table_name_50 WHERE visitor = "edmonton oilers"
What is the record of the game where the visitor team is the Edmonton Oilers?
CREATE TABLE table_name_50 (record VARCHAR, visitor VARCHAR)
SELECT score_final FROM table_name_86 WHERE apparatus = "ribbon"
What was her final score on the ribbon apparatus?
CREATE TABLE table_name_86 (score_final VARCHAR, apparatus VARCHAR)
SELECT team FROM table_name_21 WHERE completions = "redshirt"
What team did James Vanderberg belong to when the Completions had a status of redshirt?
CREATE TABLE table_name_21 (team VARCHAR, completions VARCHAR)
SELECT kit_factory FROM table_name_90 WHERE manufacturer = "jabiru" AND model = "j250"
What Kit/Factory has a J250 model made by Jabiru?
CREATE TABLE table_name_90 (kit_factory VARCHAR, manufacturer VARCHAR, model VARCHAR)
SELECT results FROM table_1341423_9 WHERE district = "Florida 14"
How did the election in the Florida 14 district end?
CREATE TABLE table_1341423_9 (results VARCHAR, district VARCHAR)
SELECT MAX(goals_for) FROM table_2110959_1 WHERE pct__percentage = "0.604"
What was the goals for in the season that the pct % was 0.604?
CREATE TABLE table_2110959_1 (goals_for INTEGER, pct__percentage VARCHAR)
SELECT COUNT(fastest_time__s_) FROM table_1231316_5 WHERE nation = "Nigeria"
Nigeria had the fastest time once.
CREATE TABLE table_1231316_5 (fastest_time__s_ VARCHAR, nation VARCHAR)
SELECT COUNT(goals_against) FROM table_name_97 WHERE played > 34
How many Goals against have Played more than 34?
CREATE TABLE table_name_97 (goals_against VARCHAR, played INTEGER)
SELECT date FROM table_name_25 WHERE time = "20:10"
What date had a time of 20:10?
CREATE TABLE table_name_25 (date VARCHAR, time VARCHAR)
SELECT finished FROM table_14345690_5 WHERE exited = "Day 11"
What is the finished place where exited is day 11?
CREATE TABLE table_14345690_5 (finished VARCHAR, exited VARCHAR)
SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) LIMIT 1
What is the least common media type in all tracks?
CREATE TABLE MEDIATYPE (Name VARCHAR, MediaTypeId VARCHAR); CREATE TABLE TRACK (MediaTypeId VARCHAR)
SELECT area FROM table_name_11 WHERE decile < 10 AND name = "glenorchy school"
Glenorchy school has a decile less than 10 and is in what area?
CREATE TABLE table_name_11 (area VARCHAR, decile VARCHAR, name VARCHAR)
SELECT COUNT(april) FROM table_name_98 WHERE record = "42–22–12–3" AND points < 99
How many days in April has a record of 42–22–12–3, and less than 99 points?
CREATE TABLE table_name_98 (april VARCHAR, record VARCHAR, points VARCHAR)
SELECT COUNT(record) FROM table_17340355_6 WHERE high_rebounds = "Amar'e Stoudemire (11)"
What are the records of games where high rebounds is amar'e stoudemire (11)
CREATE TABLE table_17340355_6 (record VARCHAR, high_rebounds VARCHAR)
SELECT opponents_in_the_final FROM table_name_51 WHERE tournament = "schenectady, u.s."
What are the Opponents at the Schenectady, U.S. Tournament?
CREATE TABLE table_name_51 (opponents_in_the_final VARCHAR, tournament VARCHAR)
SELECT tournament_at_which_lead_began FROM table_23408094_14 WHERE player = "William Renshaw" AND titles_won_at_point_of_lead = 7
At which tournament did william renshaw begin his lead when he had won 7 titles?
CREATE TABLE table_23408094_14 (tournament_at_which_lead_began VARCHAR, player VARCHAR, titles_won_at_point_of_lead VARCHAR)
SELECT MAX(december) FROM table_name_59 WHERE record = "21–7–2" AND game > 30
Which December has a Record of 21–7–2, and a Game larger than 30?
CREATE TABLE table_name_59 (december INTEGER, record VARCHAR, game VARCHAR)
SELECT type FROM table_name_49 WHERE unit = "naval base swinoujscie (auxiliary squadron)"
What is the type for a vessel with a listed unit of naval base swinoujscie (auxiliary squadron)?
CREATE TABLE table_name_49 (type VARCHAR, unit VARCHAR)
SELECT opponent FROM table_name_41 WHERE attendance = "57,331"
Who is the opponent when the attendance is 57,331?
CREATE TABLE table_name_41 (opponent VARCHAR, attendance VARCHAR)
SELECT move_only FROM table_26538035_1 WHERE developer = "AiLive"
For the game whose developer was Ailive, is it a Move-only release?
CREATE TABLE table_26538035_1 (move_only VARCHAR, developer VARCHAR)
SELECT bats FROM table_name_61 WHERE surname = "graham"
Which batter has the last name Graham?
CREATE TABLE table_name_61 (bats VARCHAR, surname VARCHAR)
SELECT SUM(silver) FROM table_name_70 WHERE gold < 1 AND rank = "9" AND total < 1
How many Silvers that has a Gold smaller than 1, and a Rank of 9, and a Total smaller than 1?
CREATE TABLE table_name_70 (silver INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT sample_size FROM table_name_4 WHERE date_s__administered = "march 24, 2010"
what is the sample size when the date(s) administered is march 24, 2010?
CREATE TABLE table_name_4 (sample_size VARCHAR, date_s__administered VARCHAR)
SELECT SUM(avg_g) FROM table_name_93 WHERE gain = 1 OFFSET 839
Which Avg/G has a Gain of 1,839?
CREATE TABLE table_name_93 (avg_g INTEGER, gain VARCHAR)
SELECT free_dance__fd_ FROM table_22644589_4 WHERE compulsory_dance__cd_ = "15.99"
What was the free dance score in the event where compulsory dance score was 15.99?
CREATE TABLE table_22644589_4 (free_dance__fd_ VARCHAR, compulsory_dance__cd_ VARCHAR)
SELECT MAX(pct__percentage) FROM table_name_60 WHERE goals_against < 229
What is the highest Pct %, when Goals Against is less than 229?
CREATE TABLE table_name_60 (pct__percentage INTEGER, goals_against INTEGER)
SELECT COUNT(high_points) FROM table_11960944_7 WHERE game = 67
How many high points were there in the game 67?
CREATE TABLE table_11960944_7 (high_points VARCHAR, game VARCHAR)
SELECT COUNT(heat) FROM table_name_4 WHERE mark = "7.63" AND react < 0.229
What is the heat number at 7.63, and a reaction less than 0.229?
CREATE TABLE table_name_4 (heat VARCHAR, mark VARCHAR, react VARCHAR)
SELECT frequency FROM table_134987_3 WHERE format = "Classic Country KRKI-FM booster"
What is the frequency of the Classic Country Krki-fm booster station?
CREATE TABLE table_134987_3 (frequency VARCHAR, format VARCHAR)
SELECT against FROM table_24074130_5 WHERE opponent = "Andreas Vinciguerra"
What is every entry for against with opponent Andreas Vinciguerra?
CREATE TABLE table_24074130_5 (against VARCHAR, opponent VARCHAR)
SELECT SUM(ofsted) FROM table_name_46 WHERE capacity < 56 AND ages = "11-16"
Which Ofsted has a Capacity smaller than 56, and Ages of 11-16?
CREATE TABLE table_name_46 (ofsted INTEGER, capacity VARCHAR, ages VARCHAR)
SELECT SUM(score) FROM table_name_18 WHERE player = "vijay singh"
What is Sum of Score, when Player is Vijay Singh?
CREATE TABLE table_name_18 (score INTEGER, player VARCHAR)
SELECT __500m FROM table_1912276_2 WHERE name = "Theo Bos"
What is the -500 number for Theo Bos?
CREATE TABLE table_1912276_2 (__500m VARCHAR, name VARCHAR)
SELECT score FROM table_name_36 WHERE date = "16 december 1987"
What was the score of the game on 16 december 1987?
CREATE TABLE table_name_36 (score VARCHAR, date VARCHAR)
SELECT driver FROM table_name_19 WHERE time_retired = "2:16:38.0"
What driver has a Time/Retired of 2:16:38.0?
CREATE TABLE table_name_19 (driver VARCHAR, time_retired VARCHAR)
SELECT T1.first_name, T1.country_code, T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1
Find the first name, country code and birth date of the winner who has the highest rank points in all matches.
CREATE TABLE players (first_name VARCHAR, country_code VARCHAR, birth_date VARCHAR, player_id VARCHAR); CREATE TABLE matches (winner_id VARCHAR, winner_rank_points VARCHAR)
SELECT best_score FROM table_name_19 WHERE worst_dancer_s_ = "gethin jones/kenny logan"
What's the best score, with the worst dancer(s) gethin jones/kenny logan?
CREATE TABLE table_name_19 (best_score VARCHAR, worst_dancer_s_ VARCHAR)
SELECT Group AS song FROM table_name_80 WHERE song = "换季"
What is Group Song, when Song is 换季?
CREATE TABLE table_name_80 (Group VARCHAR, song VARCHAR)
SELECT written_by FROM table_26565936_2 WHERE no_in_series = 109
Who wrote episode number 109 in the series?
CREATE TABLE table_26565936_2 (written_by VARCHAR, no_in_series VARCHAR)
SELECT date_and_time___utc__ FROM table_name_23 WHERE orbit = "sub-orbital" AND function = "aeronomy research" AND rocket = "nike orion" AND site = "poker flat"
What date and time has a sub-orbital of orbit, a function of aeronomy research, and a Nike Orion rocket, as well as a Poker Flat site?
CREATE TABLE table_name_23 (date_and_time___utc__ VARCHAR, site VARCHAR, rocket VARCHAR, orbit VARCHAR, function VARCHAR)
SELECT COUNT(draws) FROM table_14889048_2 WHERE team = "Libertad"
How may draws did libertad have?
CREATE TABLE table_14889048_2 (draws VARCHAR, team VARCHAR)
SELECT zares FROM table_name_87 WHERE date = "may 21–22"
What is the percentage for Zares on May 21–22?
CREATE TABLE table_name_87 (zares VARCHAR, date VARCHAR)
SELECT class_a_winner FROM table_24852622_1 WHERE class_c_winner = "David Haynes"
Who was the Class A winner when the Class C winner was David Haynes?
CREATE TABLE table_24852622_1 (class_a_winner VARCHAR, class_c_winner VARCHAR)
SELECT MAX(pick__number) FROM table_name_99 WHERE overall < 136 AND position = "defensive back"
What is the highest pick number of a defensive back with less than 136 overall points?
CREATE TABLE table_name_99 (pick__number INTEGER, overall VARCHAR, position VARCHAR)
SELECT COUNT(goals_scored) FROM table_name_71 WHERE games_played < 30
How many total goals scored when less than 30 games have been played?
CREATE TABLE table_name_71 (goals_scored VARCHAR, games_played INTEGER)
SELECT MAX(appearances¹) FROM table_24565004_2 WHERE name = "Bernard Allou"
Name the most appearances for bernard allou
CREATE TABLE table_24565004_2 (appearances¹ INTEGER, name VARCHAR)