answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT title FROM table_name_5 WHERE riaa_sales_certification = "gold"
CREATE TABLE table_name_5 (title VARCHAR, riaa_sales_certification VARCHAR)
Which Title was awarded the gold RIAA Sales Certification?
SELECT SUM(year) FROM table_name_80 WHERE riaa_sales_certification = "gold" AND title = "lost without your love" AND billboard_200_peak > 26
CREATE TABLE table_name_80 (year INTEGER, billboard_200_peak VARCHAR, riaa_sales_certification VARCHAR, title VARCHAR)
For how many years did the song "Lost Without Your Love" win the gold RIAA Sales Certification, and have a Billboard 200 Peak greater than 26?
SELECT riaa_sales_certification FROM table_name_50 WHERE billboard_200_peak < 18 AND year < 1972
CREATE TABLE table_name_50 (riaa_sales_certification VARCHAR, billboard_200_peak VARCHAR, year VARCHAR)
Before the Year 1972, what RIAA Sales Certification was awarded to the song that had a Billboard 200 Peak less than 18?
SELECT riaa_sales_certification FROM table_name_1 WHERE billboard_200_peak = 21
CREATE TABLE table_name_1 (riaa_sales_certification VARCHAR, billboard_200_peak VARCHAR)
What RIAA Sales Certification was awarded to the song that had a Billboard 200 Peak of 21?
SELECT SUM(billboard_200_peak) FROM table_name_38 WHERE year > 1971
CREATE TABLE table_name_38 (billboard_200_peak INTEGER, year INTEGER)
What is the sum of the Billboard 200 Peak scores after the Year 1971?
SELECT SUM(billboard_200_peak) FROM table_name_70 WHERE title = "bread"
CREATE TABLE table_name_70 (billboard_200_peak INTEGER, title VARCHAR)
What is the sum of the Billboard 200 Peak scores given to the song with the Title Bread?
SELECT COUNT(gold) FROM table_name_4 WHERE silver = 1 AND bronze = 1 AND nation = "austria"
CREATE TABLE table_name_4 (gold VARCHAR, nation VARCHAR, silver VARCHAR, bronze VARCHAR)
What is the number of gold when the silver is 1, bronze is 1, and the nation is Austria?
SELECT nation FROM table_name_54 WHERE bronze = 2 AND rank = 9
CREATE TABLE table_name_54 (nation VARCHAR, bronze VARCHAR, rank VARCHAR)
What nation has 2 bronze and a rank of 9?
SELECT MAX(gold) FROM table_name_93 WHERE bronze = 1 AND rank = 5
CREATE TABLE table_name_93 (gold INTEGER, bronze VARCHAR, rank VARCHAR)
What is the highest gold when bronze is 1, and rank is 5?
SELECT MIN(gold) FROM table_name_24 WHERE bronze = 0 AND total < 2 AND silver < 0
CREATE TABLE table_name_24 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR)
What is the lowest gold when there are 0 bronze and the total is less than 2, and silver is less than 0?
SELECT SUM(rank) FROM table_name_12 WHERE total = 3 AND nation = "australia"
CREATE TABLE table_name_12 (rank INTEGER, total VARCHAR, nation VARCHAR)
What is the sum of rank when total is 3 and the nation is Australia?
SELECT rank FROM table_name_29 WHERE goals < 66
CREATE TABLE table_name_29 (rank VARCHAR, goals INTEGER)
What is the Rank with a Goal number smaller than 66?
SELECT spoofed_title FROM table_name_43 WHERE issue > 509 AND actual_title = "parks and recreation"
CREATE TABLE table_name_43 (spoofed_title VARCHAR, issue VARCHAR, actual_title VARCHAR)
What is the spoofed title for Parks and Recreation with an issue larger than 509?
SELECT actual_title FROM table_name_15 WHERE artist = "tom richmond" AND issue < 508 AND writer = "desmond devlin"
CREATE TABLE table_name_15 (actual_title VARCHAR, writer VARCHAR, artist VARCHAR, issue VARCHAR)
What was the actual title of the show that had an issue number less than 508, was written by Desmond Devlin, and for which Tom Richmond was the artist?
SELECT SUM(issue) FROM table_name_75 WHERE spoofed_title = "ho-hum land"
CREATE TABLE table_name_75 (issue INTEGER, spoofed_title VARCHAR)
What issue was the spoofed title Ho-Hum land?
SELECT artist FROM table_name_82 WHERE actual_title = "game of thrones"
CREATE TABLE table_name_82 (artist VARCHAR, actual_title VARCHAR)
Game of Thrones was done by which artist?
SELECT surface FROM table_name_77 WHERE outcome = "runner-up" AND date = "24 february 1997"
CREATE TABLE table_name_77 (surface VARCHAR, outcome VARCHAR, date VARCHAR)
What is the Surface when Todd Woodbridge was the runner-up, and a Date of 24 february 1997?
SELECT opponent FROM table_name_52 WHERE outcome = "runner-up" AND date = "26 august 1996"
CREATE TABLE table_name_52 (opponent VARCHAR, outcome VARCHAR, date VARCHAR)
What is the Opponent when Todd Woodbridge was the runner-up, and a Date of 26 august 1996?
SELECT surface FROM table_name_75 WHERE score = "4–6, 6–3, 6–7 (5–7)"
CREATE TABLE table_name_75 (surface VARCHAR, score VARCHAR)
What is the Surface when the score was 4–6, 6–3, 6–7 (5–7)?
SELECT score FROM table_name_93 WHERE surface = "hard" AND championship = "new haven , usa"
CREATE TABLE table_name_93 (score VARCHAR, surface VARCHAR, championship VARCHAR)
What is the Score when there was a hard surface and the Championship is new haven , usa?
SELECT position FROM table_name_90 WHERE birthdate = "june 30, 1981"
CREATE TABLE table_name_90 (position VARCHAR, birthdate VARCHAR)
Which Position player was born June 30, 1981?
SELECT 2005 AS _2006_team FROM table_name_89 WHERE name = "phil kessel"
CREATE TABLE table_name_89 (name VARCHAR)
What is the 2005-2006 team for player Phil Kessel?
SELECT SUM(goals_for) FROM table_name_84 WHERE drawn > 10
CREATE TABLE table_name_84 (goals_for INTEGER, drawn INTEGER)
What is the total sum of the goals at competitions with more than 10 draws?
SELECT MAX(wins) FROM table_name_14 WHERE byes > 2
CREATE TABLE table_name_14 (wins INTEGER, byes INTEGER)
For the teams that had more than 2 Byes, what was the highest number of Wins?
SELECT COUNT(draws) FROM table_name_21 WHERE losses < 4 AND wins < 16
CREATE TABLE table_name_21 (draws VARCHAR, losses VARCHAR, wins VARCHAR)
For the teams that had fewer than 4 Losses, and less than 16 Wins, what was the total number of Draws?
SELECT AVG(wins) FROM table_name_51 WHERE losses < 1
CREATE TABLE table_name_51 (wins INTEGER, losses INTEGER)
For the teams that had less than 1 loss, what was the average number of Wins?
SELECT MIN(draws) FROM table_name_38 WHERE byes < 1
CREATE TABLE table_name_38 (draws INTEGER, byes INTEGER)
For the teams that had fewer than 1 Byes, what was the lowest number of Draws?
SELECT MAX(draws) FROM table_name_24 WHERE ballarat_fl = "sebastapol" AND against < 1802
CREATE TABLE table_name_24 (draws INTEGER, ballarat_fl VARCHAR, against VARCHAR)
What was the highest number of Draws scored by Sebastapol when the value for Against was less than 1802?
SELECT season FROM table_name_68 WHERE opponent = "zenit st. petersburg"
CREATE TABLE table_name_68 (season VARCHAR, opponent VARCHAR)
What is the Season when the Opponent was zenit st. petersburg?
SELECT opponent FROM table_name_75 WHERE round = "q2" AND season = "2005–06"
CREATE TABLE table_name_75 (opponent VARCHAR, round VARCHAR, season VARCHAR)
What is the Opponent with a Round of q2, in the 2005–06 season?
SELECT competition FROM table_name_86 WHERE season = "2002–03" AND opponent = "zenit st. petersburg"
CREATE TABLE table_name_86 (competition VARCHAR, season VARCHAR, opponent VARCHAR)
What is the Competition for Season 2002–03, and the Opponent was zenit st. petersburg?
SELECT round FROM table_name_86 WHERE series = "5th place" AND season = "2006–07"
CREATE TABLE table_name_86 (round VARCHAR, series VARCHAR, season VARCHAR)
What is the Round when the series shows 5th place, and a Season of 2006–07?
SELECT series FROM table_name_35 WHERE competition = "uefa cup" AND season = "2006–07" AND round = "group" AND opponent = "az"
CREATE TABLE table_name_35 (series VARCHAR, opponent VARCHAR, round VARCHAR, competition VARCHAR, season VARCHAR)
What is the Series for the uefa cup, in the 2006–07 season, and a Round of group, and an opponent of az?
SELECT flag FROM table_name_66 WHERE ship = "aidavita"
CREATE TABLE table_name_66 (flag VARCHAR, ship VARCHAR)
Which Flag did the Ship Aidavita have?
SELECT set_5 FROM table_name_85 WHERE total = "77 - 65"
CREATE TABLE table_name_85 (set_5 VARCHAR, total VARCHAR)
What shows for Set 5 when the Total was 77 - 65?
SELECT set_3 FROM table_name_27 WHERE total = "98 - 92"
CREATE TABLE table_name_27 (set_3 VARCHAR, total VARCHAR)
What is the Set 3 when the Total was 98 - 92?
SELECT total FROM table_name_68 WHERE set_3 = "25-15"
CREATE TABLE table_name_68 (total VARCHAR, set_3 VARCHAR)
What is the Total when the Set 3 was 25-15?
SELECT set_3 FROM table_name_72 WHERE total = "62 - 75"
CREATE TABLE table_name_72 (set_3 VARCHAR, total VARCHAR)
What is the Set 3 when the Total was 62 - 75?
SELECT score FROM table_name_27 WHERE set_2 = "25-20" AND total = "75 - 49"
CREATE TABLE table_name_27 (score VARCHAR, set_2 VARCHAR, total VARCHAR)
What is the Score when Set 2 shows 25-20, and a Total of 75 - 49?
SELECT ethernet_ports FROM table_name_5 WHERE name = "m1500"
CREATE TABLE table_name_5 (ethernet_ports VARCHAR, name VARCHAR)
What is the ethernet ports of the m1500 appliance?
SELECT ethernet_ports FROM table_name_86 WHERE name = "u150"
CREATE TABLE table_name_86 (ethernet_ports VARCHAR, name VARCHAR)
What is the ethernet ports of the u150 appliance?
SELECT dimensions FROM table_name_27 WHERE name = "u50"
CREATE TABLE table_name_27 (dimensions VARCHAR, name VARCHAR)
What is the dimensions of the u50 appliance?
SELECT ethernet_ports FROM table_name_51 WHERE name = "u10"
CREATE TABLE table_name_51 (ethernet_ports VARCHAR, name VARCHAR)
What is the ethernet ports of the u10 appliance?
SELECT COUNT(silver) FROM table_name_84 WHERE bronze < 1
CREATE TABLE table_name_84 (silver VARCHAR, bronze INTEGER)
What is the total number of Silver medals for the Nation with less than 1 Bronze?
SELECT COUNT(gold) FROM table_name_70 WHERE bronze > 1 AND total > 4
CREATE TABLE table_name_70 (gold VARCHAR, bronze VARCHAR, total VARCHAR)
What is the total number of Gold medals for the Nation with more than 1 Bronze and more the 4 Total medals?
SELECT COUNT(gold) FROM table_name_15 WHERE bronze > 3
CREATE TABLE table_name_15 (gold VARCHAR, bronze INTEGER)
What is the total number of Gold medals for the Nation with more than 3 Bronze?
SELECT MIN(gold) FROM table_name_83 WHERE nation = "great britain" AND total > 2
CREATE TABLE table_name_83 (gold INTEGER, nation VARCHAR, total VARCHAR)
How many Gold medals did Great Britain with a Total of more than 2 medals receive?
SELECT AVG(silver) FROM table_name_37 WHERE rank < 1
CREATE TABLE table_name_37 (silver INTEGER, rank INTEGER)
How many Silver medals did the Nation with a Rank of less than 1 receive?
SELECT AVG(total) FROM table_name_61 WHERE fa_cup = 1 AND fa_trophy > 0
CREATE TABLE table_name_61 (total INTEGER, fa_cup VARCHAR, fa_trophy VARCHAR)
What is the average total with 1 FA cup and more than 0 FA trophies?
SELECT club FROM table_name_34 WHERE fa_trophy > 2 AND fa_cup > 2
CREATE TABLE table_name_34 (club VARCHAR, fa_trophy VARCHAR, fa_cup VARCHAR)
Which club had more than 2 FA trophies and more than 2 FA cups?
SELECT opponent FROM table_name_37 WHERE record = "11–4–1"
CREATE TABLE table_name_37 (opponent VARCHAR, record VARCHAR)
Who was the opponent when the Maroons record was 11–4–1?
SELECT result FROM table_name_79 WHERE date = "january 5, 1926"
CREATE TABLE table_name_79 (result VARCHAR, date VARCHAR)
What was the result of the game on January 5, 1926?
SELECT date FROM table_name_91 WHERE margin_of_victory = "2 strokes"
CREATE TABLE table_name_91 (date VARCHAR, margin_of_victory VARCHAR)
What date had a margin victory of 2 strokes?
SELECT margin_of_victory FROM table_name_39 WHERE tournament = "semgroup championship"
CREATE TABLE table_name_39 (margin_of_victory VARCHAR, tournament VARCHAR)
What is the margin of victory in a semgroup championship?
SELECT winning_score FROM table_name_81 WHERE margin_of_victory = "2 strokes"
CREATE TABLE table_name_81 (winning_score VARCHAR, margin_of_victory VARCHAR)
What was the winning score with a margin victory of 2 strokes?
SELECT MAX(pct__percentage) FROM table_name_60 WHERE goals_against < 229
CREATE TABLE table_name_60 (pct__percentage INTEGER, goals_against INTEGER)
What is the highest Pct %, when Goals Against is less than 229?
SELECT AVG(goals_for) FROM table_name_37 WHERE playoffs = "lost in round 2" AND games < 81
CREATE TABLE table_name_37 (goals_for INTEGER, playoffs VARCHAR, games VARCHAR)
What is the average Goals, when Playoffs is Lost in Round 2, and when Games is less than 81?
SELECT SUM(goals_against) FROM table_name_33 WHERE lost = 45 AND points > 68
CREATE TABLE table_name_33 (goals_against INTEGER, lost VARCHAR, points VARCHAR)
What is the sum of Goals Against, when Lost is 45, and when Points is greater than 68?
SELECT AVG(lost) FROM table_name_14 WHERE games < 82 AND points < 95 AND pct__percentage < 0.506
CREATE TABLE table_name_14 (lost INTEGER, pct__percentage VARCHAR, games VARCHAR, points VARCHAR)
What is the average Lost, when Games is less than 82, when Points is less than 95, and when Pct % is less than 0.506?
SELECT class FROM table_name_90 WHERE livery = "wessex trains pink"
CREATE TABLE table_name_90 (class VARCHAR, livery VARCHAR)
What is the Class when Wessex Trains Pink is the Livery?
SELECT livery FROM table_name_57 WHERE number = 31468
CREATE TABLE table_name_57 (livery VARCHAR, number VARCHAR)
What is the Livery when the Number is 31468?
SELECT skip FROM table_name_6 WHERE nation = "germany"
CREATE TABLE table_name_6 (skip VARCHAR, nation VARCHAR)
What was the Skip for Germany?
SELECT club FROM table_name_58 WHERE nation = "great britain"
CREATE TABLE table_name_58 (club VARCHAR, nation VARCHAR)
What was the club for Great Britain?
SELECT alternate FROM table_name_38 WHERE second = "magnus swartling"
CREATE TABLE table_name_38 (alternate VARCHAR, second VARCHAR)
Who is the alternate for Magnus Swartling as Second?
SELECT club FROM table_name_69 WHERE lead = "jamie korab"
CREATE TABLE table_name_69 (club VARCHAR, lead VARCHAR)
Which club has Jamie Korab as Lead?
SELECT lead FROM table_name_62 WHERE third = "hans frauenlob"
CREATE TABLE table_name_62 (lead VARCHAR, third VARCHAR)
Which Lead has Hans Frauenlob as a Third?
SELECT home_captain FROM table_name_22 WHERE result = "aus by 218 runs"
CREATE TABLE table_name_22 (home_captain VARCHAR, result VARCHAR)
Who was the Home captain when the Result was Aus by 218 runs?
SELECT film_title_used_in_nomination FROM table_name_49 WHERE serbian_title = "бело одело"
CREATE TABLE table_name_49 (film_title_used_in_nomination VARCHAR, serbian_title VARCHAR)
What is the Film title used in nomination of the Film with a Serbian title of бело одело?
SELECT year__ceremony_ FROM table_name_46 WHERE film_title_used_in_nomination = "labyrinth"
CREATE TABLE table_name_46 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR)
In what Year was Labyrinth nominated?
SELECT high_assists FROM table_name_69 WHERE date = "march 25"
CREATE TABLE table_name_69 (high_assists VARCHAR, date VARCHAR)
What is the High assists for march 25?
SELECT score FROM table_name_20 WHERE high_points = "donyell marshall (26)"
CREATE TABLE table_name_20 (score VARCHAR, high_points VARCHAR)
What is the Score when Donyell Marshall (26) had the high points?
SELECT MAX(game) FROM table_name_81 WHERE high_assists = "morris peterson (8)"
CREATE TABLE table_name_81 (game INTEGER, high_assists VARCHAR)
What is the highest Game when Morris Peterson (8) had the high assists?
SELECT high_assists FROM table_name_35 WHERE high_points = "jalen rose (22)"
CREATE TABLE table_name_35 (high_assists VARCHAR, high_points VARCHAR)
What is the High assists when jalen rose (22) had the high points?
SELECT high_assists FROM table_name_64 WHERE record = "28–40"
CREATE TABLE table_name_64 (high_assists VARCHAR, record VARCHAR)
What is the High assists when the record was 28–40?
SELECT brazil_scorers FROM table_name_11 WHERE score = "3-3"
CREATE TABLE table_name_11 (brazil_scorers VARCHAR, score VARCHAR)
Who were the Brazil scorers who scored 3-3?
SELECT brazil_scorers FROM table_name_41 WHERE score = "6-0"
CREATE TABLE table_name_41 (brazil_scorers VARCHAR, score VARCHAR)
Who is the Brazil scorer who scored 6-0?
SELECT result FROM table_name_30 WHERE score = "2-2"
CREATE TABLE table_name_30 (result VARCHAR, score VARCHAR)
With a score of 2-2, what was the Result?
SELECT original_team FROM table_name_22 WHERE hometown = "brooklyn, new york" AND background = "comedienne"
CREATE TABLE table_name_22 (original_team VARCHAR, hometown VARCHAR, background VARCHAR)
Which Original Team has a Hometown of Brooklyn, New York and a Background of Comedienne?
SELECT background FROM table_name_71 WHERE hometown = "los angeles, california"
CREATE TABLE table_name_71 (background VARCHAR, hometown VARCHAR)
What is the Background of the contestant with a Hometown listed as Los Angeles, California?
SELECT background FROM table_name_20 WHERE result = "07 fired in task 6 (2009-04-05)"
CREATE TABLE table_name_20 (background VARCHAR, result VARCHAR)
What is the Background of the contestant with a Result of 07 fired in task 6 (2009-04-05)?
SELECT original_team FROM table_name_13 WHERE hometown = "wrightsville, georgia"
CREATE TABLE table_name_13 (original_team VARCHAR, hometown VARCHAR)
What is the Original Team of the contestant from Wrightsville, Georgia ?
SELECT attendance FROM table_name_27 WHERE opponent = "carolina panthers"
CREATE TABLE table_name_27 (attendance VARCHAR, opponent VARCHAR)
Which Attendance has an Opponent of carolina panthers?
SELECT date FROM table_name_17 WHERE week < 11 AND attendance = "54,094"
CREATE TABLE table_name_17 (date VARCHAR, week VARCHAR, attendance VARCHAR)
Which Date has a Week smaller than 11, and a Attendance of 54,094?
SELECT AVG(episode_number) FROM table_name_40 WHERE title = "sugar daddy"
CREATE TABLE table_name_40 (episode_number INTEGER, title VARCHAR)
What is the number of the episode titled 'Sugar Daddy'?
SELECT nation FROM table_name_87 WHERE gold > 1 AND silver = 4
CREATE TABLE table_name_87 (nation VARCHAR, gold VARCHAR, silver VARCHAR)
Which nations have more than 1 gold medal and 4 silver medals?
SELECT MAX(attendance) FROM table_name_77 WHERE week = 7
CREATE TABLE table_name_77 (attendance INTEGER, week VARCHAR)
In Week 7, what is the highest attendance number?
SELECT opponent FROM table_name_98 WHERE week = 13
CREATE TABLE table_name_98 (opponent VARCHAR, week VARCHAR)
In Week 13, who was the opponent?
SELECT date FROM table_name_27 WHERE week = 9
CREATE TABLE table_name_27 (date VARCHAR, week VARCHAR)
What date did Week 9 begin?
SELECT award FROM table_name_16 WHERE year = "2012"
CREATE TABLE table_name_16 (award VARCHAR, year VARCHAR)
Which award was given in 2012?
SELECT award FROM table_name_92 WHERE role = "elphaba" AND year = "2009"
CREATE TABLE table_name_92 (award VARCHAR, role VARCHAR, year VARCHAR)
Which award was given for the role of Elphaba in 2009?
SELECT result FROM table_name_73 WHERE role = "ellie greenwich" AND year = "2005"
CREATE TABLE table_name_73 (result VARCHAR, role VARCHAR, year VARCHAR)
What was the result for the role of Ellie Greenwich in 2005?
SELECT award FROM table_name_81 WHERE result = "nominated" AND production = "an officer and a gentleman"
CREATE TABLE table_name_81 (award VARCHAR, result VARCHAR, production VARCHAR)
Which award was An Officer and a Gentleman nominated for?
SELECT year FROM table_name_44 WHERE production = "wicked" AND award = "green room awards"
CREATE TABLE table_name_44 (year VARCHAR, production VARCHAR, award VARCHAR)
During what year was Wicked associated with the Green Room Awards?
SELECT manufacturer FROM table_name_73 WHERE locomotive_number = "ctn 46"
CREATE TABLE table_name_73 (manufacturer VARCHAR, locomotive_number VARCHAR)
What manufacturer makes locomotive number CTN 46?
SELECT type FROM table_name_26 WHERE locomotive_number = "ctn 46"
CREATE TABLE table_name_26 (type VARCHAR, locomotive_number VARCHAR)
What type is locomotive number CTN 46?
SELECT type FROM table_name_29 WHERE locomotive_number = "ctn 1364"
CREATE TABLE table_name_29 (type VARCHAR, locomotive_number VARCHAR)
What type is locomotive CTN 1364?
SELECT cuts_made FROM table_name_43 WHERE wins < 3 AND events = 23
CREATE TABLE table_name_43 (cuts_made VARCHAR, wins VARCHAR, events VARCHAR)
What cuts made has a wins less than 3 and 23 for the events?
SELECT MIN(events) FROM table_name_14 WHERE cuts_made = 17 AND top_25 < 8
CREATE TABLE table_name_14 (events INTEGER, cuts_made VARCHAR, top_25 VARCHAR)
What is the lowest events that have 17 as the cuts made, with a top-25 less than 8?
SELECT MIN(cuts_made) FROM table_name_84 WHERE events < 4
CREATE TABLE table_name_84 (cuts_made INTEGER, events INTEGER)
What are the lowest cuts made that have events less than 4?
SELECT MAX(top_10) FROM table_name_49 WHERE tournament = "u.s. open" AND top_25 > 12
CREATE TABLE table_name_49 (top_10 INTEGER, tournament VARCHAR, top_25 VARCHAR)
What is the highest top-10 that has a u.s. open for the tournament, and a top-25 greater than 12?