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