answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT f_id FROM song WHERE resolution > (SELECT MAX(resolution) FROM song WHERE rating < 8)
What is ids of the songs whose resolution is higher than the resolution of any songs with rating lower than 8?
CREATE TABLE song (f_id VARCHAR, resolution INTEGER, rating INTEGER)
SELECT COUNT(year) FROM table_name_67 WHERE drivers = "ben hanley" AND flaps < 0
How many years have Drivers of ben hanley, and Flaps smaller than 0?
CREATE TABLE table_name_67 (year VARCHAR, drivers VARCHAR, flaps VARCHAR)
SELECT loss FROM table_name_57 WHERE opponent = "rangers" AND attendance > 43 OFFSET 211
What was the Loss when the opponent was the Rangers and the attendance was greater than 43,211?
CREATE TABLE table_name_57 (loss VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT COUNT(season) FROM table_2140071_8 WHERE coach = "Rob Masek"
How many seasons feature Rob Masek?
CREATE TABLE table_2140071_8 (season VARCHAR, coach VARCHAR)
SELECT _number_of_discs FROM table_25721_4 WHERE release = "The Complete Collection Series 1-8 with extras"
How many DVDs where were in the complete collection series 1-8 with extras?
CREATE TABLE table_25721_4 (_number_of_discs VARCHAR, release VARCHAR)
SELECT 2006 FROM table_name_56 WHERE 2011 = "1r"
What is the 2006 value with a 1r in 2011?
CREATE TABLE table_name_56 (Id VARCHAR)
SELECT 3 AS ’utr_sequence FROM table_name_64 WHERE coding = "6a 3" AND genbank_id = "nm_001093770.2"
What was the 3’UTR sequence when Coding was 6a 3 and the GenBank id is nm_001093770.2?
CREATE TABLE table_name_64 (coding VARCHAR, genbank_id VARCHAR)
SELECT interregnum_ended FROM table_name_78 WHERE duration = "3 months, 6 days"
What is the Interregnum ended for the person with a Duration of 3 months, 6 days?
CREATE TABLE table_name_78 (interregnum_ended VARCHAR, duration VARCHAR)
SELECT party FROM table_name_50 WHERE counties_represented = "howard" AND delegate = "turner, frank s. frank s. turner"
What party is the delegate of Turner, Frank S. Frank S. Turner of Howard County?
CREATE TABLE table_name_50 (party VARCHAR, counties_represented VARCHAR, delegate VARCHAR)
SELECT opponent FROM table_name_62 WHERE date = "october 11, 1953"
Can you tell me the Opponent that has the Date of october 11, 1953?
CREATE TABLE table_name_62 (opponent VARCHAR, date VARCHAR)
SELECT operational_owner_s_ FROM table_1057316_1 WHERE build_date = "April 1892"
Who were the operational owners during the construction date of April 1892?
CREATE TABLE table_1057316_1 (operational_owner_s_ VARCHAR, build_date VARCHAR)
SELECT insurgents FROM table_name_75 WHERE civilians = "49"
Name the insurgents for civilians being 49
CREATE TABLE table_name_75 (insurgents VARCHAR, civilians VARCHAR)
SELECT zone FROM table_name_64 WHERE against = "estonia"
What is the zone of the game played against Estonia?
CREATE TABLE table_name_64 (zone VARCHAR, against VARCHAR)
SELECT * FROM employees WHERE NOT department_id IN (SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200)
Find the ids of the employees who does not work in those departments where some employees works whose manager id within the range 100 and 200.
CREATE TABLE departments (department_id VARCHAR, manager_id INTEGER); CREATE TABLE employees (department_id VARCHAR, manager_id INTEGER)
SELECT MAX(stage) FROM table_22713796_14 WHERE general_classification = "Alejandro Valverde" AND team_classification = "Astana" AND winner = "Greg Henderson"
Name the most stage for alejandro valverde and astana greg henderson
CREATE TABLE table_22713796_14 (stage INTEGER, winner VARCHAR, general_classification VARCHAR, team_classification VARCHAR)
SELECT result FROM table_name_56 WHERE year = 1999
What is the result for the year 1999?
CREATE TABLE table_name_56 (result VARCHAR, year VARCHAR)
SELECT COUNT(manhattan) FROM table_1108394_6 WHERE staten_island = "12,658"
What was the total number in Manhattan when Staten Island was 12,658?
CREATE TABLE table_1108394_6 (manhattan VARCHAR, staten_island VARCHAR)
SELECT drivers FROM table_name_86 WHERE laps = 101
What driver had 101 laps?
CREATE TABLE table_name_86 (drivers VARCHAR, laps VARCHAR)
SELECT 2008 FROM table_name_48 WHERE 2005 = "13–3"
Which 2008 has a 2005 of 13–3?
CREATE TABLE table_name_48 (Id VARCHAR)
SELECT T1.product_id FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 2 AND T2.product_price > (SELECT AVG(product_price) FROM products)
Return ids of all the products that are supplied by supplier id 2 and are more expensive than the average price of all products.
CREATE TABLE products (product_id VARCHAR, product_price INTEGER); CREATE TABLE product_suppliers (product_id VARCHAR, supplier_id VARCHAR); CREATE TABLE products (product_price INTEGER)
SELECT callsign FROM table_name_31 WHERE branding = "93dot5 home radio cagayan de oro"
What is the Callsign for the station with the branding 93dot5 home radio Cagayan De Oro?
CREATE TABLE table_name_31 (callsign VARCHAR, branding VARCHAR)
SELECT AVG(podiums) FROM table_name_47 WHERE wins > 1 AND races = 2 AND points > 150
What is the average Podiums, when Wins is greater than 1, when Races is 2, and when Points is greater than 150?
CREATE TABLE table_name_47 (podiums INTEGER, points VARCHAR, wins VARCHAR, races VARCHAR)
SELECT MIN(series_number) FROM table_name_69 WHERE original_air_date < 2009 AND dvd_region_2_release_date = "26 july 2004" AND number_of_episodes > 7
What's the lowest series number that originally aired before 2009 with more than 7 episodes and had a DVD Region 2 release date of 26 july 2004?
CREATE TABLE table_name_69 (series_number INTEGER, number_of_episodes VARCHAR, original_air_date VARCHAR, dvd_region_2_release_date VARCHAR)
SELECT tournament FROM table_name_7 WHERE date = "may 31, 1987"
What tournament was on May 31, 1987?
CREATE TABLE table_name_7 (tournament VARCHAR, date VARCHAR)
SELECT designation FROM table_name_73 WHERE launch_date_time___gmt__ = "29 june 1972, 03:47"
What is Designation, when Launch Date/Time ( GMT ) is 29 June 1972, 03:47?
CREATE TABLE table_name_73 (designation VARCHAR, launch_date_time___gmt__ VARCHAR)
SELECT COUNT(nationality) FROM table_1965650_4 WHERE player = "Tom Colley"
How many nationalities does Tom Colley have?
CREATE TABLE table_1965650_4 (nationality VARCHAR, player VARCHAR)
SELECT COUNT(event) FROM table_name_92 WHERE round = "radek štěpánek" AND NOT aces < 3
What is the event year radek štěpánek was the round and there were less than 3 aces?
CREATE TABLE table_name_92 (event VARCHAR, round VARCHAR, aces VARCHAR)
SELECT result FROM table_name_27 WHERE score = "22-21"
What resulted in a score of 22-21?
CREATE TABLE table_name_27 (result VARCHAR, score VARCHAR)
SELECT platform FROM table_25474825_1 WHERE software = "GeWorkbench"
What is the platform of Geworkbench?
CREATE TABLE table_25474825_1 (platform VARCHAR, software VARCHAR)
SELECT Draft_Pick_Number, Draft_Class FROM match_season WHERE POSITION = "Defender"
Show the draft pick numbers and draft classes of players whose positions are defenders.
CREATE TABLE match_season (Draft_Pick_Number VARCHAR, Draft_Class VARCHAR, POSITION VARCHAR)
SELECT finished FROM table_name_91 WHERE famous_for = "singer in atomic kitten"
What place did the singer in atomic kitten finish?
CREATE TABLE table_name_91 (finished VARCHAR, famous_for VARCHAR)
SELECT COUNT(transit_passengers) FROM table_13836704_7 WHERE airport = "London Luton"
How many different total number of transit passengers are there in London Luton?
CREATE TABLE table_13836704_7 (transit_passengers VARCHAR, airport VARCHAR)
SELECT milliseconds FROM tracks WHERE name = "Fast As a Shark"
How long does track Fast As a Shark has?
CREATE TABLE tracks (milliseconds VARCHAR, name VARCHAR)
SELECT city, MAX(lat) FROM station GROUP BY city
For each city, return the highest latitude among its stations.
CREATE TABLE station (city VARCHAR, lat INTEGER)
SELECT position FROM table_name_15 WHERE player = "john keane"
Which position has john keane as the player?
CREATE TABLE table_name_15 (position VARCHAR, player VARCHAR)
SELECT AVG(weight__kg_) FROM table_name_83 WHERE height__cm_ < 175
What is the average weight of a player who is less than 175 centimeters tall?
CREATE TABLE table_name_83 (weight__kg_ INTEGER, height__cm_ INTEGER)
SELECT economy_rate FROM table_19662262_6 WHERE strike_rate = "54.0"
What is the economy when the strike rate is 54.0?
CREATE TABLE table_19662262_6 (economy_rate VARCHAR, strike_rate VARCHAR)
SELECT ended FROM table_name_37 WHERE country = "ghana"
when was the loan ended when the country is ghana?
CREATE TABLE table_name_37 (ended VARCHAR, country VARCHAR)
SELECT date FROM table_name_35 WHERE opponent_in_final = "anastasiya yakimova"
What is the Date of the Tournament against Anastasiya Yakimova?
CREATE TABLE table_name_35 (date VARCHAR, opponent_in_final VARCHAR)
SELECT position FROM table_name_11 WHERE competition = "world athletics final" AND year > 2008
What position was played at the World Athletics Final Competition in a year more recent than 2008?
CREATE TABLE table_name_11 (position VARCHAR, competition VARCHAR, year VARCHAR)
SELECT score FROM table_name_55 WHERE tie_no = "5"
What score has a tie of 5?
CREATE TABLE table_name_55 (score VARCHAR, tie_no VARCHAR)
SELECT circuit FROM table_26638600_3 WHERE lites_1_race_two_winning_team = "#13 Inspire Motorsports"
On which circuit was the lites race two winning team #13 Inspire Motorsports?
CREATE TABLE table_26638600_3 (circuit VARCHAR, lites_1_race_two_winning_team VARCHAR)
SELECT position_in_table FROM table_18788823_5 WHERE date_of_vacancy = "4 November 2008"
Which vacancy happened on 4 November 2008?
CREATE TABLE table_18788823_5 (position_in_table VARCHAR, date_of_vacancy VARCHAR)
SELECT week_13_nov_26 FROM table_name_18 WHERE week_14_dec_3 = "maryland (10-1)"
What is the week 13 result where the week 14 resulted in Maryland (10-1)?
CREATE TABLE table_name_18 (week_13_nov_26 VARCHAR, week_14_dec_3 VARCHAR)
SELECT result FROM table_name_97 WHERE competition = "uefa euro 2008 qualifying"
What was the result of the UEFA Euro 2008 Qualifying competition?
CREATE TABLE table_name_97 (result VARCHAR, competition VARCHAR)
SELECT res FROM table_name_34 WHERE opponent = "ryan scheepe"
Which of the Res., has Ryan Scheepe as an opponent?
CREATE TABLE table_name_34 (res VARCHAR, opponent VARCHAR)
SELECT MAX(presidency) FROM table_name_8 WHERE left_office = "1998" AND took_office > 1974
What is the highest Presidency that Took Office after 1974 and Left Office in 1998?
CREATE TABLE table_name_8 (presidency INTEGER, left_office VARCHAR, took_office VARCHAR)
SELECT asset_acquired FROM table_1373542_1 WHERE date_announced = "July 2, 2006"
It was announced on July 2, 2006 that what asset was acquired?
CREATE TABLE table_1373542_1 (asset_acquired VARCHAR, date_announced VARCHAR)
SELECT MIN(class_year) FROM table_22982552_9 WHERE player = "Vencie Glenn"
What class year was Vencie Glenn from?
CREATE TABLE table_22982552_9 (class_year INTEGER, player VARCHAR)
SELECT 0 AS _100km_h__62mph_ FROM table_name_26 WHERE model = "slk200k" AND top_speed = "236km/h (147mph)"
How fast can the SLK200K, with a top speed of 236km/h (147mph), accelerate to 100km/h (62mph)?
CREATE TABLE table_name_26 (model VARCHAR, top_speed VARCHAR)
SELECT COUNT(altitude__meters_) FROM table_name_72 WHERE range = "mühlig-hofmann mountains" AND rank < 10
What is the Altitude (meters) associated with a rank smaller than 10, and the range Mühlig-Hofmann Mountains?
CREATE TABLE table_name_72 (altitude__meters_ VARCHAR, range VARCHAR, rank VARCHAR)
SELECT MAX(round) FROM table_name_16 WHERE name = "bob randall"
What round was Bob Randall selected in?
CREATE TABLE table_name_16 (round INTEGER, name VARCHAR)
SELECT college FROM table_16376436_1 WHERE player = "Leon Perry"
Which college did Leon Perry attend?
CREATE TABLE table_16376436_1 (college VARCHAR, player VARCHAR)
SELECT name, email FROM user_profiles WHERE name LIKE '%Swift%'
Find the name and email of the user whose name contains the word ‘Swift’.
CREATE TABLE user_profiles (name VARCHAR, email VARCHAR)
SELECT opponent FROM table_name_54 WHERE res = "loss" AND event = "gladiator challenge 87: collision course"
Who was the fight against when loss was the result at the Gladiator Challenge 87: Collision Course event?
CREATE TABLE table_name_54 (opponent VARCHAR, res VARCHAR, event VARCHAR)
SELECT intergiro_classification FROM table_12261926_2 WHERE winner = "Alexander Gontchenkov"
What is the intergiro classification of alexander gontchenkov?
CREATE TABLE table_12261926_2 (intergiro_classification VARCHAR, winner VARCHAR)
SELECT score FROM table_name_30 WHERE date = "nov 28"
What is Score, when Date is "Nov 28"?
CREATE TABLE table_name_30 (score VARCHAR, date VARCHAR)
SELECT years_for_jazz FROM table_name_43 WHERE position = "guard" AND school_club_team = "notre dame"
At Position of guard, from the School/Club Team Notre Dame, how many Years for Jazz did that person play?
CREATE TABLE table_name_43 (years_for_jazz VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT T1.statement_details, T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id = T2.document_id WHERE T1.statement_details = 'Private Project'
Show the statement detail and the corresponding document name for the statement with detail 'Private Project'.
CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR); CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR)
SELECT COUNT(region_2) FROM table_17697980_1 WHERE dvd_title = "Series 5"
How many dvd titled "series 5" were released having a release date or a non available date in region 2?
CREATE TABLE table_17697980_1 (region_2 VARCHAR, dvd_title VARCHAR)
SELECT status FROM table_name_68 WHERE against > 22
What's the statue for an against above 22?
CREATE TABLE table_name_68 (status VARCHAR, against INTEGER)
SELECT AVG(total_amount_purchased), AVG(total_value_purchased) FROM Product_Suppliers WHERE supplier_id = (SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY COUNT(*) DESC LIMIT 1)
What are the average amount purchased and value purchased for the supplier who supplies the most products.
CREATE TABLE Product_Suppliers (total_amount_purchased INTEGER, total_value_purchased INTEGER, supplier_id VARCHAR)
SELECT home_team AS score FROM table_name_70 WHERE away_team = "geelong"
Who was the home team against Geelong?
CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR)
SELECT leading_scorer FROM table_name_8 WHERE date = "april 7"
Who was the leading scorer on April 7?
CREATE TABLE table_name_8 (leading_scorer VARCHAR, date VARCHAR)
SELECT rowers FROM table_name_14 WHERE time = "5:56.38"
Who are the Rowers with a Time of 5:56.38?
CREATE TABLE table_name_14 (rowers VARCHAR, time VARCHAR)
SELECT COUNT(episode) FROM table_15187735_8 WHERE segment_b = "s Hacksaw"
Name the number of episodes for s hacksaw
CREATE TABLE table_15187735_8 (episode VARCHAR, segment_b VARCHAR)
SELECT LOCATION FROM station GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1
Show the location with most number of train stations.
CREATE TABLE station (LOCATION VARCHAR)
SELECT game_site FROM table_name_52 WHERE opponent = "san diego chargers"
where was the game site when the opponent was san diego chargers?
CREATE TABLE table_name_52 (game_site VARCHAR, opponent VARCHAR)
SELECT AVG(rank) FROM table_name_75 WHERE name = "he yingqin" AND birth < 1890
What rank is He Yingqin who was born before 1890?
CREATE TABLE table_name_75 (rank INTEGER, name VARCHAR, birth VARCHAR)
SELECT 1989 FROM table_name_56 WHERE 1984 = "a" AND 1985 = "a" AND 1990 = "a"
What was the 1989 result for the tournament with 1984 of a, 1985 of a, and 1990 of a?
CREATE TABLE table_name_56 (Id VARCHAR)
SELECT MIN(population) FROM table_name_94 WHERE region > 9
What is the smallest population in a region greater than 9?
CREATE TABLE table_name_94 (population INTEGER, region INTEGER)
SELECT opponent FROM table_name_36 WHERE date = "january 7"
Who was the opponent on January 7?
CREATE TABLE table_name_36 (opponent VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_17323092_8 WHERE high_assists = "Anthony Parker (7)"
Where was the location and what was the attendance in the game that Anthony Parker (7) earned high assists?
CREATE TABLE table_17323092_8 (location_attendance VARCHAR, high_assists VARCHAR)
SELECT partner FROM table_name_94 WHERE surface = "hard" AND score = "6–3, 7–6(0)"
What is Partner, when Surface is Hard, and when Score is 6–3, 7–6(0)?
CREATE TABLE table_name_94 (partner VARCHAR, surface VARCHAR, score VARCHAR)
SELECT episode FROM table_name_62 WHERE viewers__m_ > 5.63 AND households__rating_share_ = "4.5/7"
Name the episode for viewers bigger than 5.63 and the households rating is 4.5/7
CREATE TABLE table_name_62 (episode VARCHAR, viewers__m_ VARCHAR, households__rating_share_ VARCHAR)
SELECT origin_of_programming FROM table_name_98 WHERE network = "ndtv india"
What is the Origin of Programming for the Network NDTV India?
CREATE TABLE table_name_98 (origin_of_programming VARCHAR, network VARCHAR)
SELECT MAX(silver) FROM table_name_72 WHERE gold < 12 AND total < 8
What is the maximum number of silvers for a country with fewer than 12 golds and a total less than 8?
CREATE TABLE table_name_72 (silver INTEGER, gold VARCHAR, total VARCHAR)
SELECT viewers__in_millions_ FROM table_2102945_1 WHERE run_time = "24:31"
When 24:31 is the run time how many millions of viewers are there?
CREATE TABLE table_2102945_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR)
SELECT current_club FROM table_name_31 WHERE height < 1.92 AND year_born > 1978
What player was born in 1978 and smaller than 1.92?
CREATE TABLE table_name_31 (current_club VARCHAR, height VARCHAR, year_born VARCHAR)
SELECT stadium FROM table_name_30 WHERE final_score = "27-34"
In what stadium did a game result in a final scoreline reading 27-34?
CREATE TABLE table_name_30 (stadium VARCHAR, final_score VARCHAR)
SELECT result FROM table_name_51 WHERE category = "stacy" AND year > 2008 AND awards = "jahat"
What was the result in the year greaters than 2008 with an award of Jahat and had a category of Stacy?
CREATE TABLE table_name_51 (result VARCHAR, awards VARCHAR, category VARCHAR, year VARCHAR)
SELECT COUNT(original_air_date) FROM table_25740548_2 WHERE directed_by = "Rod Hardy"
How many episodes were directed by Rod Hardy?
CREATE TABLE table_25740548_2 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT points FROM table_14070062_3 WHERE try_bonus = "10"
How many points does the club with a try bonus of 10 have?
CREATE TABLE table_14070062_3 (points VARCHAR, try_bonus VARCHAR)
SELECT elector FROM table_name_68 WHERE nationality = "hungarian"
Which Elector is hungarian?
CREATE TABLE table_name_68 (elector VARCHAR, nationality VARCHAR)
SELECT remarks FROM table_211791_1 WHERE nato_reporting_name = "SAWHOUSE"
Name the remarks for sawhouse
CREATE TABLE table_211791_1 (remarks VARCHAR, nato_reporting_name VARCHAR)
SELECT athlete FROM table_name_50 WHERE nationality = "united states" AND wind = "1.7"
Who's the athlete with a wind of 1.7 and from the United States?
CREATE TABLE table_name_50 (athlete VARCHAR, nationality VARCHAR, wind VARCHAR)
SELECT school_club_team FROM table_10015132_1 WHERE years_in_toronto = "2010-2012"
What school did the player that has been in Toronto from 2010-2012 go to?
CREATE TABLE table_10015132_1 (school_club_team VARCHAR, years_in_toronto VARCHAR)
SELECT v_oc__v_ FROM table_name_46 WHERE t__µm_ > 5 AND i_sc__a_ = "0.8"
What is the V OC (V), when t (µm) is greater than 5, and when I SC (A) is 0.8?
CREATE TABLE table_name_46 (v_oc__v_ VARCHAR, t__µm_ VARCHAR, i_sc__a_ VARCHAR)
SELECT SUM(gold) FROM table_name_92 WHERE bronze > 1 AND total > 80
Which Gold has a Bronze larger than 1, and a Total larger than 80?
CREATE TABLE table_name_92 (gold INTEGER, bronze VARCHAR, total VARCHAR)
SELECT AVG(total) FROM table_name_88 WHERE league = 18 AND player = "richard logan" AND play_offs < 1
What mean total had a league number of 18, Richard Logan as a player, and a play-offs number smaller than 1?
CREATE TABLE table_name_88 (total INTEGER, play_offs VARCHAR, league VARCHAR, player VARCHAR)
SELECT MIN(year) FROM table_18862490_2 WHERE score = 68 - 66 - 68 - 71 = 273
What is the first yar that someone won with a score of 68-66-68-71=273?
CREATE TABLE table_18862490_2 (year INTEGER, score VARCHAR)
SELECT incumbent FROM table_1341577_36 WHERE first_elected = 1958
Which incumbent was first elected in 1958?
CREATE TABLE table_1341577_36 (incumbent VARCHAR, first_elected VARCHAR)
SELECT director FROM table_name_29 WHERE studio = "fox" AND title = "predator"
Who directed Predator that was filmed with Fox Studio?
CREATE TABLE table_name_29 (director VARCHAR, studio VARCHAR, title VARCHAR)
SELECT MIN(rank) FROM table_name_16 WHERE borough = "richmondshire" AND population > 8 OFFSET 178
Which Rank is the lowest one that has a Borough of richmondshire, and a Population larger than 8,178?
CREATE TABLE table_name_16 (rank INTEGER, borough VARCHAR, population VARCHAR)
SELECT episode_title FROM table_name_3 WHERE prod_code = "1gowo04"
What was the title of the episode with a production code of 1gowo04?
CREATE TABLE table_name_3 (episode_title VARCHAR, prod_code VARCHAR)
SELECT MAX(november) FROM table_name_11 WHERE game < 19 AND opponent = "minnesota north stars"
What is the highest November date that has a game under 19 and opponents of the Minnesota North Stars?
CREATE TABLE table_name_11 (november INTEGER, game VARCHAR, opponent VARCHAR)
SELECT kit_maker FROM table_27383390_2 WHERE team = "Foolad"
What is the kit maker for team foolad?
CREATE TABLE table_27383390_2 (kit_maker VARCHAR, team VARCHAR)
SELECT written_by FROM table_17467578_1 WHERE us_viewers__million_ = "3.73"
Who wrote the episode "The Cold Turkey", which was viewed by 3.73 million viewers?
CREATE TABLE table_17467578_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT artist FROM table_name_89 WHERE theme = "billboard #1"
What artist's song was performed in the week with theme of Billboard #1?
CREATE TABLE table_name_89 (artist VARCHAR, theme VARCHAR)
SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = "Astrid" AND LastName = "Gruber"
Find all invoice dates corresponding to customers with first name Astrid and last name Gruber.
CREATE TABLE CUSTOMER (CustomerId VARCHAR, FirstName VARCHAR); CREATE TABLE INVOICE (InvoiceDate VARCHAR, CustomerId VARCHAR)