question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What home team played Collingwood as the away team?
CREATE TABLE table_name_42 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_42 WHERE away_team = "collingwood"
What's the accolade for the rank of 497?
CREATE TABLE table_name_23 (accolade VARCHAR, rank VARCHAR)
SELECT accolade FROM table_name_23 WHERE rank = 497
What Venue has a Past Season of 2nd?
CREATE TABLE table_name_89 (venue VARCHAR, past_season VARCHAR)
SELECT venue FROM table_name_89 WHERE past_season = "2nd"
What is the series sorted value for the episode released December 2009?
CREATE TABLE table_name_91 (series_sorted VARCHAR, released VARCHAR)
SELECT series_sorted FROM table_name_91 WHERE released = "december 2009"
What is Andrea Suarez Lazaro's height?
CREATE TABLE table_name_25 (height VARCHAR, contestant VARCHAR)
SELECT height FROM table_name_25 WHERE contestant = "andrea suarez lazaro"
What was the tournament that happened in 1974 in gothenburg , sweden?
CREATE TABLE table_name_84 (tournament VARCHAR, year VARCHAR, venue VARCHAR)
SELECT tournament FROM table_name_84 WHERE year = 1974 AND venue = "gothenburg , sweden"
I want to know the right ascension which has an NGC less than 6575 and declination of °38′00″
CREATE TABLE table_name_72 (right_ascension___j2000__ VARCHAR, ngc_number VARCHAR, declination___j2000__ VARCHAR)
SELECT right_ascension___j2000__ FROM table_name_72 WHERE ngc_number < 6575 AND declination___j2000__ = "°38′00″"
find the names of museums which have more staff than the minimum staff number of all museums opened after 2010.
CREATE TABLE museum (name VARCHAR, num_of_staff INTEGER, open_year INTEGER)
SELECT name FROM museum WHERE num_of_staff > (SELECT MIN(num_of_staff) FROM museum WHERE open_year > 2010)
What is the penalty for the DET team player Andreas Lilja?
CREATE TABLE table_name_42 (penalty VARCHAR, team VARCHAR, player VARCHAR)
SELECT penalty FROM table_name_42 WHERE team = "det" AND player = "andreas lilja"
What is the total number of Draw(s), when Televotes is greater than 1761, when Song is "Ils Sont Là", and when Place is less than 2?
CREATE TABLE table_name_9 (draw VARCHAR, place VARCHAR, televotes VARCHAR, song VARCHAR)
SELECT COUNT(draw) FROM table_name_9 WHERE televotes > 1761 AND song = "ils sont là" AND place < 2
What away team played when the crowd was over 27,463 people?
CREATE TABLE table_name_69 (away_team VARCHAR, crowd INTEGER)
SELECT away_team FROM table_name_69 WHERE crowd > 27 OFFSET 463
Name the original air date for 9.16 viewers
CREATE TABLE table_21550870_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
SELECT original_air_date FROM table_21550870_1 WHERE us_viewers__million_ = "9.16"
What is the sum of November, when Game is "17"?
CREATE TABLE table_name_55 (november INTEGER, game VARCHAR)
SELECT SUM(november) FROM table_name_55 WHERE game = 17
What is the oldest year that the Royal Philharmonic Orchestra released a record with Decca Records?
CREATE TABLE table_name_63 (year_of_recording INTEGER, orchestra VARCHAR, record_company VARCHAR)
SELECT MIN(year_of_recording) FROM table_name_63 WHERE orchestra = "royal philharmonic orchestra" AND record_company = "decca records"
who had the first performance on 3 july 2011?
CREATE TABLE table_name_26 (name VARCHAR, first_performance VARCHAR)
SELECT name FROM table_name_26 WHERE first_performance = "3 july 2011"
Which date has a competition type of friendly and a score of 2-1?
CREATE TABLE table_name_3 (date VARCHAR, competition VARCHAR, score VARCHAR)
SELECT date FROM table_name_3 WHERE competition = "friendly" AND score = "2-1"
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 score FROM table_name_38 WHERE country = "united states" AND place = "t3" AND player = "chris riley"
Which award category was the film series The Wire nominated for after 2005?
CREATE TABLE table_name_20 (category VARCHAR, year VARCHAR, result VARCHAR, film_or_series VARCHAR)
SELECT category FROM table_name_20 WHERE result = "nominated" AND film_or_series = "the wire" AND year > 2005
Show ids for all transactions whose amounts are greater than the average.
CREATE TABLE Financial_transactions (transaction_id VARCHAR, transaction_amount INTEGER)
SELECT transaction_id FROM Financial_transactions WHERE transaction_amount > (SELECT AVG(transaction_amount) FROM Financial_transactions)
What is the College with a Player that is dean caliguire?
CREATE TABLE table_name_49 (college VARCHAR, player VARCHAR)
SELECT college FROM table_name_49 WHERE player = "dean caliguire"
Kevin lucas appears in which seasons?
CREATE TABLE table_12441518_1 (recurring_cast_seasons VARCHAR, character VARCHAR)
SELECT recurring_cast_seasons FROM table_12441518_1 WHERE character = "Kevin Lucas"
How many teams does Lee Sorochan play for?
CREATE TABLE table_2781227_2 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT COUNT(college_junior_club_team) FROM table_2781227_2 WHERE player = "Lee Sorochan"
Name the team with high assists of nelson (5)
CREATE TABLE table_name_83 (team VARCHAR, high_assists VARCHAR)
SELECT team FROM table_name_83 WHERE high_assists = "nelson (5)"
What are the fewest wickets when player's career spanned 1946-1960 and maidens were more than 419?
CREATE TABLE table_name_84 (wickets INTEGER, career VARCHAR, maidens VARCHAR)
SELECT MIN(wickets) FROM table_name_84 WHERE career = "1946-1960" AND maidens > 419
which is the lowest favorable on 1954 June and more unfavorable than 45?
CREATE TABLE table_name_72 (favorable INTEGER, date VARCHAR, unfavorable VARCHAR)
SELECT MIN(favorable) FROM table_name_72 WHERE date = "1954 june" AND unfavorable > 45
How many years for the team with under 31 ties and a percentage of 0.5451?
CREATE TABLE table_name_15 (years VARCHAR, tied VARCHAR, pct VARCHAR)
SELECT years FROM table_name_15 WHERE tied < 31 AND pct = 0.5451
Who was the opponent in which the bout ended in round 2?
CREATE TABLE table_name_71 (opponent VARCHAR, round VARCHAR)
SELECT opponent FROM table_name_71 WHERE round = 2
Who are all of the telecom providers for which the upload rate is 1024 kbits and the resale category is yes?
CREATE TABLE table_1773908_3 (provider VARCHAR, up__up_to_kbit_s_ VARCHAR, resale VARCHAR)
SELECT provider FROM table_1773908_3 WHERE up__up_to_kbit_s_ = 1024 AND resale = "yes"
Who this the no. 8 team that has a no. 9 player, Telmo?
CREATE TABLE table_name_72 (no8 VARCHAR, no9 VARCHAR)
SELECT no8 FROM table_name_72 WHERE no9 = "telmo"
What premiere has a finale of less than 41, peak less than 40, average above 31, and a Chinese title of 學警雄心?
CREATE TABLE table_name_95 (premiere VARCHAR, chinese_title VARCHAR, average VARCHAR, finale VARCHAR, peak VARCHAR)
SELECT premiere FROM table_name_95 WHERE finale < 41 AND peak < 40 AND average > 31 AND chinese_title = "學警雄心"
What is the average point total for arrows racing team before 1983?
CREATE TABLE table_name_73 (points INTEGER, team VARCHAR, year VARCHAR)
SELECT AVG(points) FROM table_name_73 WHERE team = "arrows racing team" AND year < 1983
What was the double's performance data from the Monte Carlo Masters tournament in 2007?
CREATE TABLE table_name_54 (tournament VARCHAR)
SELECT 2007 FROM table_name_54 WHERE tournament = "monte carlo masters"
What is the position of player Marcus Hogberg?
CREATE TABLE table_11803648_22 (position VARCHAR, player VARCHAR)
SELECT position FROM table_11803648_22 WHERE player = "Marcus Hogberg"
Which City has the Bahawalpur Stags Team?
CREATE TABLE table_name_98 (city VARCHAR, team VARCHAR)
SELECT city FROM table_name_98 WHERE team = "bahawalpur stags"
What was Week 15 when Week 12 was Washington (9-1)?
CREATE TABLE table_name_69 (week_15__final__dec_3 VARCHAR, week_12_nov_13 VARCHAR)
SELECT week_15__final__dec_3 FROM table_name_69 WHERE week_12_nov_13 = "washington (9-1)"
What is the transfer window of the player moving to Panionios?
CREATE TABLE table_name_97 (transfer_window VARCHAR, moving_to VARCHAR)
SELECT transfer_window FROM table_name_97 WHERE moving_to = "panionios"
What is the nationality of the Jazz player 1977-79?
CREATE TABLE table_name_30 (nationality VARCHAR, years_for_jazz VARCHAR)
SELECT nationality FROM table_name_30 WHERE years_for_jazz = "1977-79"
NAME THE OVERALL FOR THE OMAHA (USHL) CLUB TEAM
CREATE TABLE table_11803648_17 (overall INTEGER, club_team VARCHAR)
SELECT MIN(overall) FROM table_11803648_17 WHERE club_team = "Omaha (USHL)"
Name the date for the italian grand prix
CREATE TABLE table_name_67 (date VARCHAR, race VARCHAR)
SELECT date FROM table_name_67 WHERE race = "italian grand prix"
What was the date of the game when the Lightning had a record of 9–8–1?
CREATE TABLE table_name_58 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_58 WHERE record = "9–8–1"
What was the highest position for the person who performed in 16 races?
CREATE TABLE table_21795650_1 (position VARCHAR, races VARCHAR)
SELECT position FROM table_21795650_1 WHERE races = 16
Who is the main contestant with scores by each individual judge of 8 + 7 + 7 = 21?
CREATE TABLE table_name_62 (main_contestant VARCHAR, scores_by_each_individual_judge VARCHAR)
SELECT main_contestant FROM table_name_62 WHERE scores_by_each_individual_judge = 8 + 7 + 7 = 21
The rounds of 1-2, 4-10, 12 belong to which entrant?
CREATE TABLE table_name_96 (entrant VARCHAR, rounds VARCHAR)
SELECT entrant FROM table_name_96 WHERE rounds = "1-2, 4-10, 12"
What is the Japanese Title of the Episode on NTV Station with a Romaji Title of Kuitan 2?
CREATE TABLE table_name_42 (japanese_title VARCHAR, tv_station VARCHAR, romaji_title VARCHAR)
SELECT japanese_title FROM table_name_42 WHERE tv_station = "ntv" AND romaji_title = "kuitan 2"
Which Points is the highest one that has a Position of 1, and a Lost smaller than 0?
CREATE TABLE table_name_60 (points INTEGER, position VARCHAR, lost VARCHAR)
SELECT MAX(points) FROM table_name_60 WHERE position = 1 AND lost < 0
who is the grand finalist where scores is 11.11 (77) – 10.8 (68)
CREATE TABLE table_1139835_3 (grand_finalist VARCHAR, scores VARCHAR)
SELECT grand_finalist FROM table_1139835_3 WHERE scores = "11.11 (77) – 10.8 (68)"
When the shares were less than 8, how many total viewers were there?
CREATE TABLE table_name_12 (total_viewers VARCHAR, share INTEGER)
SELECT total_viewers FROM table_name_12 WHERE share < 8
Who reported the game played on 1 september?
CREATE TABLE table_name_8 (report VARCHAR, date VARCHAR)
SELECT report FROM table_name_8 WHERE date = "1 september"
Which streak had an attendance of 33,013?
CREATE TABLE table_name_45 (streak VARCHAR, attendance VARCHAR)
SELECT streak FROM table_name_45 WHERE attendance = "33,013"
What report did Jack Brabham win?
CREATE TABLE table_name_21 (report VARCHAR, winning_driver VARCHAR)
SELECT report FROM table_name_21 WHERE winning_driver = "jack brabham"
How many million viewers watched episode 3 in the series?
CREATE TABLE table_26808178_1 (us_viewers__millions_ VARCHAR, series__number VARCHAR)
SELECT us_viewers__millions_ FROM table_26808178_1 WHERE series__number = 3
How many business rates are related to each cmi cross reference? List cross reference id, master customer id and the n
CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, master_customer_id VARCHAR); CREATE TABLE Business_Rates (cmi_cross_ref_id VARCHAR)
SELECT T2.cmi_cross_ref_id, T2.master_customer_id, COUNT(*) FROM Business_Rates AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id GROUP BY T2.cmi_cross_ref_id
What was the smallest total number of medals?
CREATE TABLE table_1305623_20 (total_medals INTEGER)
SELECT MIN(total_medals) FROM table_1305623_20
Which Points have a Year larger than 1966, and Wins larger than 1?
CREATE TABLE table_name_78 (points INTEGER, year VARCHAR, wins VARCHAR)
SELECT AVG(points) FROM table_name_78 WHERE year > 1966 AND wins > 1
How many results were there on 19/06/2009?
CREATE TABLE table_21311525_1 (result VARCHAR, date VARCHAR)
SELECT COUNT(result) FROM table_21311525_1 WHERE date = "19/06/2009"
What is the lowest rank of a swimmer named Elizabeth Van Welie with a lane larger than 5?
CREATE TABLE table_name_85 (rank INTEGER, lane VARCHAR, name VARCHAR)
SELECT MIN(rank) FROM table_name_85 WHERE lane > 5 AND name = "elizabeth van welie"
What are the average scores of participants with 9.226 in evening gown
CREATE TABLE table_17088705_2 (average VARCHAR, evening_gown VARCHAR)
SELECT average FROM table_17088705_2 WHERE evening_gown = "9.226"
List the id of students who registered course statistics in the order of registration date.
CREATE TABLE student_course_registrations (student_id VARCHAR, course_id VARCHAR, registration_date VARCHAR); CREATE TABLE courses (course_id VARCHAR, course_name VARCHAR)
SELECT T2.student_id FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "statistics" ORDER BY T2.registration_date
Who is the senator for district 24?
CREATE TABLE table_11948857_1 (member_senator VARCHAR, district VARCHAR)
SELECT member_senator FROM table_11948857_1 WHERE district = 24
Which tournament has a Date of april 20, 1987?
CREATE TABLE table_name_21 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_21 WHERE date = "april 20, 1987"
When bush# is 3907, what is Kerry#?
CREATE TABLE table_1302886_1 (kerry_number VARCHAR, bush_number VARCHAR)
SELECT kerry_number FROM table_1302886_1 WHERE bush_number = 3907
Name the record for kentucky
CREATE TABLE table_22847880_2 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_22847880_2 WHERE opponent = "Kentucky"
Which places have points larger than 10?
CREATE TABLE table_name_8 (points INTEGER, place INTEGER)
SELECT MIN(points) FROM table_name_8 WHERE place > 10
Whose Name has a Date of reclassification of 2003-04-01 (merge into shizuoka )?
CREATE TABLE table_name_52 (name VARCHAR, date_of_reclassification VARCHAR)
SELECT name FROM table_name_52 WHERE date_of_reclassification = "2003-04-01 (merge into shizuoka )"
What was the score when there were 7 ties?
CREATE TABLE table_name_36 (score VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_36 WHERE tie_no = "7"
What's the average mph of 1964?
CREATE TABLE table_2267465_1 (average_speed__mph_ VARCHAR, year VARCHAR)
SELECT average_speed__mph_ FROM table_2267465_1 WHERE year = "1964"
When h.264 is 9.0, how much is vp9 ( webm )
CREATE TABLE table_26099252_1 (vp9___webm__ VARCHAR, h264 VARCHAR)
SELECT vp9___webm__ FROM table_26099252_1 WHERE h264 = "9.0"
What was the result for round r3?
CREATE TABLE table_name_10 (result VARCHAR, round VARCHAR)
SELECT result FROM table_name_10 WHERE round = "r3"
Which Matches has champion Rank of 5?
CREATE TABLE table_name_16 (matches_as_champion INTEGER, rank VARCHAR)
SELECT MAX(matches_as_champion) FROM table_name_16 WHERE rank = 5
Name the most draws when goals against is more than 56 and wins is more than 14
CREATE TABLE table_name_89 (draws INTEGER, goals_against VARCHAR, wins VARCHAR)
SELECT MAX(draws) FROM table_name_89 WHERE goals_against > 56 AND wins > 14
What state is the city of Ruston in?
CREATE TABLE table_name_13 (state VARCHAR, city VARCHAR)
SELECT state FROM table_name_13 WHERE city = "ruston"
What was drawn for llanishen rfc?
CREATE TABLE table_name_56 (drawn VARCHAR, club VARCHAR)
SELECT drawn FROM table_name_56 WHERE club = "llanishen rfc"
How many wins happened with 8 draws?
CREATE TABLE table_name_72 (wins VARCHAR, draws VARCHAR)
SELECT wins FROM table_name_72 WHERE draws = "8"
On April 28, what was the average number of people attending?
CREATE TABLE table_name_6 (attendance INTEGER, date VARCHAR)
SELECT AVG(attendance) FROM table_name_6 WHERE date = "april 28"
Which rule has The Event of n/a, The Result of loss, and The Location of winsford england?
CREATE TABLE table_name_2 (rules VARCHAR, location VARCHAR, event VARCHAR, result VARCHAR)
SELECT rules FROM table_name_2 WHERE event = "n/a" AND result = "loss" AND location = "winsford england"
What was the attendance on the bye week?
CREATE TABLE table_name_3 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_3 WHERE date = "bye"
How many positions have a Postseason of relegation playoffs and a tier of 3?
CREATE TABLE table_name_11 (pos VARCHAR, postseason VARCHAR, tier VARCHAR)
SELECT COUNT(pos) FROM table_name_11 WHERE postseason = "relegation playoffs" AND tier = 3
When a race had less than 18 laps and time/retired of accident, what was the smallest grid?
CREATE TABLE table_name_16 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT MIN(grid) FROM table_name_16 WHERE time_retired = "accident" AND laps < 18
What is the Date if the Site is Shriver Field?
CREATE TABLE table_name_34 (date VARCHAR, site VARCHAR)
SELECT date FROM table_name_34 WHERE site = "shriver field"
What was the To par for United States golfer fred couples?
CREATE TABLE table_name_17 (to_par VARCHAR, country VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_17 WHERE country = "united states" AND player = "fred couples"
how many byu-uu score with winner being utah state (2–1) won over byu by media vote
CREATE TABLE table_13665809_2 (byu_uu_score VARCHAR, winner VARCHAR)
SELECT COUNT(byu_uu_score) FROM table_13665809_2 WHERE winner = "Utah State (2–1) Won over BYU by media vote"
What is the smallest number of fastest laps listed?
CREATE TABLE table_19312274_3 (fastest_laps INTEGER)
SELECT MIN(fastest_laps) FROM table_19312274_3
what is the total silver when total is 30 and bronze is more than 10?
CREATE TABLE table_name_85 (silver VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT COUNT(silver) FROM table_name_85 WHERE total = 30 AND bronze > 10
Who was the director of the episode with a season after 8 and an episode of XVI?
CREATE TABLE table_name_77 (directed_by VARCHAR, season VARCHAR, episode VARCHAR)
SELECT directed_by FROM table_name_77 WHERE season > 8 AND episode = "xvi"
What was the series number of the episode directed by Rob Bailey?
CREATE TABLE table_14346689_1 (series__number INTEGER, directed_by VARCHAR)
SELECT MAX(series__number) FROM table_14346689_1 WHERE directed_by = "Rob Bailey"
What are the details of the shops that can be accessed by walk?
CREATE TABLE TOURIST_ATTRACTIONS (Tourist_Attraction_ID VARCHAR, How_to_Get_There VARCHAR); CREATE TABLE SHOPS (Shop_Details VARCHAR, Shop_ID VARCHAR)
SELECT T1.Shop_Details FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = "walk"
What is the largest round number for Dan Connor, the player?
CREATE TABLE table_name_87 (round INTEGER, player VARCHAR)
SELECT MAX(round) FROM table_name_87 WHERE player = "dan connor"
How many different starts had an average finish of 17.9?
CREATE TABLE table_2622469_1 (starts VARCHAR, avg_finish VARCHAR)
SELECT COUNT(starts) FROM table_2622469_1 WHERE avg_finish = "17.9"
What is the Total of Player Craig Stadler?
CREATE TABLE table_name_56 (total INTEGER, player VARCHAR)
SELECT AVG(total) FROM table_name_56 WHERE player = "craig stadler"
Which builder has a railway of Rhodesia Railways?
CREATE TABLE table_name_18 (builder VARCHAR, railway VARCHAR)
SELECT builder FROM table_name_18 WHERE railway = "rhodesia railways"
When the home team is Cairns Taipans, at which venue do they play?
CREATE TABLE table_name_51 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_51 WHERE home_team = "cairns taipans"
Who was the special guest when the category was vocal groups and the name was Romantic?
CREATE TABLE table_name_28 (special_guest VARCHAR, category VARCHAR, name VARCHAR)
SELECT special_guest FROM table_name_28 WHERE category = "vocal groups" AND name = "romantic"
Name the least founded for gutenberg college
CREATE TABLE table_2076533_1 (founded INTEGER, school VARCHAR)
SELECT MIN(founded) FROM table_2076533_1 WHERE school = "Gutenberg College"
What was the score of the home team when they played footscray?
CREATE TABLE table_name_8 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_8 WHERE away_team = "footscray"
What was the enrollment (2005) for baccalaureate colleges , for Granite State College?
CREATE TABLE table_2076490_1 (enrollment__2005_ VARCHAR, type VARCHAR, school VARCHAR)
SELECT enrollment__2005_ FROM table_2076490_1 WHERE type = "Baccalaureate college" AND school = "Granite State College"
What is the smallest crowd for victoria park?
CREATE TABLE table_name_89 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_89 WHERE venue = "victoria park"
When was incumbent Bud Shuster first elected?
CREATE TABLE table_1341453_40 (first_elected VARCHAR, incumbent VARCHAR)
SELECT first_elected FROM table_1341453_40 WHERE incumbent = "Bud Shuster"
Tell me the home of 2-3
CREATE TABLE table_name_5 (home VARCHAR, aggregate VARCHAR)
SELECT home FROM table_name_5 WHERE aggregate = "2-3"
Tell me the status of eliminated of anton dela paz
CREATE TABLE table_name_15 (status VARCHAR, eliminated VARCHAR)
SELECT status FROM table_name_15 WHERE eliminated = "anton dela paz"
What does full house have as a 5 credits?
CREATE TABLE table_name_58 (hand VARCHAR)
SELECT 5 AS _credits FROM table_name_58 WHERE hand = "full house"