answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(director) FROM table_20345624_2 WHERE no = 6
Name the total number of directors for number 6
CREATE TABLE table_20345624_2 (director VARCHAR, no VARCHAR)
SELECT COUNT(playoffs) FROM table_1999350_1 WHERE year = 2006
What is the total number of playoffs held in exactly 2006?
CREATE TABLE table_1999350_1 (playoffs VARCHAR, year VARCHAR)
SELECT COUNT(overs_bowled) FROM table_15700367_6 WHERE name = "Muttiah Muralitharan"
How many overs bowled for muttiah muralitharan?
CREATE TABLE table_15700367_6 (overs_bowled VARCHAR, name VARCHAR)
SELECT t1.name, t2.price_in_dollar FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID
Give me the names and prices of furnitures which some companies are manufacturing.
CREATE TABLE furniture_manufacte (price_in_dollar VARCHAR, Furniture_ID VARCHAR); CREATE TABLE furniture (name VARCHAR, Furniture_ID VARCHAR)
SELECT name, age, weight FROM Dogs WHERE abandoned_yn = 1
List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.
CREATE TABLE Dogs (name VARCHAR, age VARCHAR, weight VARCHAR, abandoned_yn VARCHAR)
SELECT product_category_code FROM products WHERE product_name = "flax"
Which category does the product named "flax" belong to?
CREATE TABLE products (product_category_code VARCHAR, product_name VARCHAR)
SELECT player FROM table_name_10 WHERE to_par = "+1" AND score = 75 - 70 - 71 - 73 = 289
What Player has a To par of +1 and the Score 75-70-71-73=289?
CREATE TABLE table_name_10 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT won FROM table_27293285_4 WHERE played = "22" AND lost = "15" AND points_against = "511"
Name the won for played being 22 and points against 511 and lost being 15
CREATE TABLE table_27293285_4 (won VARCHAR, points_against VARCHAR, played VARCHAR, lost VARCHAR)
SELECT final_venue FROM table_name_17 WHERE winner = "sheffield reserves"
What was the Final Venue having Sheffield Reserves as the Winner?
CREATE TABLE table_name_17 (final_venue VARCHAR, winner VARCHAR)
SELECT runner_up FROM table_name_36 WHERE week = "april 11"
What is the Runner-up on April 11?
CREATE TABLE table_name_36 (runner_up VARCHAR, week VARCHAR)
SELECT type FROM table_1602620_1 WHERE elected = 1980
What type had an election day in 1980
CREATE TABLE table_1602620_1 (type VARCHAR, elected VARCHAR)
SELECT yes_votes FROM table_256286_23 WHERE _percentage_yes = "60.39%"
How many yes votes did the measure that got 60.39% yes votes get?
CREATE TABLE table_256286_23 (yes_votes VARCHAR, _percentage_yes VARCHAR)
SELECT in_service FROM table_name_64 WHERE versions = "t-260 eu"
How many T-260 EU aircrafts are currently in service?
CREATE TABLE table_name_64 (in_service VARCHAR, versions VARCHAR)
SELECT venue FROM table_name_69 WHERE home_team = "richmond"
Which sporting location is where Richmond plays?
CREATE TABLE table_name_69 (venue VARCHAR, home_team VARCHAR)
SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.city_code = "NYC" AND T2.Election_Cycle = "Spring"
Find the average age of students who live in the city with code "NYC" and have secretary votes in the spring election cycle.
CREATE TABLE STUDENT (Age INTEGER, StuID VARCHAR, city_code VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)
SELECT no_9 FROM table_name_65 WHERE no_5 = "mason" AND no_3 = "aiden"
Who was No. 9 when No. 5 Mason and No. 3 Aiden?
CREATE TABLE table_name_65 (no_9 VARCHAR, no_5 VARCHAR, no_3 VARCHAR)
SELECT AVG(time) FROM table_name_94 WHERE lane < 4 AND rank > 6
Which Time has a Lane smaller than 4, and a Rank larger than 6?
CREATE TABLE table_name_94 (time INTEGER, lane VARCHAR, rank VARCHAR)
SELECT opponents FROM table_name_43 WHERE djurgården_scorers = "sjölund (2)"
What are the Opponents that have Djurgården scorers of sjölund (2)?
CREATE TABLE table_name_43 (opponents VARCHAR, djurgården_scorers VARCHAR)
SELECT finalists FROM table_name_40 WHERE week__number < 2
Tell me the finalists for week # less than 2
CREATE TABLE table_name_40 (finalists VARCHAR, week__number INTEGER)
SELECT SUM(amount_piad), AVG(amount_piad) FROM claim_headers
Find the total and average amount paid in claim headers.
CREATE TABLE claim_headers (amount_piad INTEGER)
SELECT COUNT(number_of_jews__wjc_) FROM table_1131183_2 WHERE rank__arda_ = 1
What is the number of jews where the rank is 1?
CREATE TABLE table_1131183_2 (number_of_jews__wjc_ VARCHAR, rank__arda_ VARCHAR)
SELECT laps FROM table_name_77 WHERE grid > 17 AND rider = "tetsuya harada"
Which lap has more than 17 grids with tetsuya harada?
CREATE TABLE table_name_77 (laps VARCHAR, grid VARCHAR, rider VARCHAR)
SELECT COUNT(description) FROM table_29997112_3 WHERE meaning = "Decimal Digit 2"
How many different descriptions are there for the flag that means decimal digit 2?
CREATE TABLE table_29997112_3 (description VARCHAR, meaning VARCHAR)
SELECT MIN(pick) FROM table_name_96 WHERE school = "stanford university"
What is the lowest pick when the School is Stanford University?
CREATE TABLE table_name_96 (pick INTEGER, school VARCHAR)
SELECT city FROM city WHERE regional_population > 10000000 UNION SELECT city FROM city WHERE regional_population < 5000000
Please give me a list of cities whose regional population is over 8000000 or under 5000000.
CREATE TABLE city (city VARCHAR, regional_population INTEGER)
SELECT height_feet_m FROM table_name_2 WHERE surpassed_by = "book tower"
Tell me the height which has a surpassed by of book tower
CREATE TABLE table_name_2 (height_feet_m VARCHAR, surpassed_by VARCHAR)
SELECT COUNT(overall_gms) FROM table_27094070_4 WHERE overall_avg = 12796
How many games had an average of 12796?
CREATE TABLE table_27094070_4 (overall_gms VARCHAR, overall_avg VARCHAR)
SELECT MIN(malaysia_cup) FROM table_name_74 WHERE player = "zamri hassan" AND fa_cup < 0
What is Zamri Hassan's lowest Malaysia Cup when there were an FA Cup of 0?
CREATE TABLE table_name_74 (malaysia_cup INTEGER, player VARCHAR, fa_cup VARCHAR)
SELECT MIN(camper) FROM table_26894949_2 WHERE puma = "12"
If puma is 12, what is camper?
CREATE TABLE table_26894949_2 (camper INTEGER, puma VARCHAR)
SELECT stage FROM table_name_76 WHERE intergiro_classification = "miguel indurain" AND points_classification = "mario cipollini" AND young_rider_classification = "leonardo sierra"
During which stage was the Intergiro classification held by Miguel Indurain, the Points classification held by Mario Cipollini, and the Young rider classification held by Leonardo Sierra?
CREATE TABLE table_name_76 (stage VARCHAR, young_rider_classification VARCHAR, intergiro_classification VARCHAR, points_classification VARCHAR)
SELECT MAX(draw) FROM table_name_40 WHERE points > 60 AND artist = "paul duffy"
What's the highest draw with over 60 points for paul duffy?
CREATE TABLE table_name_40 (draw INTEGER, points VARCHAR, artist VARCHAR)
SELECT SUM(top_5) FROM table_name_98 WHERE events < 12 AND top_25 < 0
Tell me the sum of top 5 with events less than 12 and top 25 less than 0
CREATE TABLE table_name_98 (top_5 INTEGER, events VARCHAR, top_25 VARCHAR)
SELECT MAX(average) FROM table_name_87 WHERE highest = 5 OFFSET 078
What is the highest average number in attendance when the most in attendance is 5,078?
CREATE TABLE table_name_87 (average INTEGER, highest VARCHAR)
SELECT MAX(round) FROM table_name_92 WHERE event = "ufc 109"
What is the highest round for UFC 109?
CREATE TABLE table_name_92 (round INTEGER, event VARCHAR)
SELECT first_name, last_name, gender_mf FROM customers WHERE good_or_bad_customer = 'good' ORDER BY last_name
What are the first name, last name, and gender of all the good customers? Order by their last name.
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, gender_mf VARCHAR, good_or_bad_customer VARCHAR)
SELECT score FROM table_11964047_9 WHERE record = "35–33"
what's the score where record is 35–33
CREATE TABLE table_11964047_9 (score VARCHAR, record VARCHAR)
SELECT SUM(year) FROM table_name_89 WHERE name = "greek small letter sampi"
What is the year that has a name with the Greek small letter sampi?
CREATE TABLE table_name_89 (year INTEGER, name VARCHAR)
SELECT score FROM table_name_62 WHERE visitor = "new jersey" AND home = "toronto"
What was the score when the home team, Toronto, played against New Jersey?
CREATE TABLE table_name_62 (score VARCHAR, visitor VARCHAR, home VARCHAR)
SELECT rowers FROM table_name_76 WHERE notes = "sa/b" AND time = "5:51.30"
Who were the rowers when notes were sa/b, with a time of 5:51.30?
CREATE TABLE table_name_76 (rowers VARCHAR, notes VARCHAR, time VARCHAR)
SELECT condition FROM table_name_46 WHERE partial_thromboplastin_time = "unaffected" AND platelet_count = "unaffected" AND prothrombin_time = "unaffected"
Which Condition has an unaffected Partial thromboplastin time, Platelet count, and a Prothrombin time?
CREATE TABLE table_name_46 (condition VARCHAR, prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, platelet_count VARCHAR)
SELECT MIN(grid) FROM table_name_70 WHERE time_retired = "engine" AND qual < 138.75
What is the smallest grid with a Time/Retired of engine, and a qual of less than 138.75?
CREATE TABLE table_name_70 (grid INTEGER, time_retired VARCHAR, qual VARCHAR)
SELECT record FROM table_name_8 WHERE head_coach = "steve spurrier"
What was the record of the team with head coach Steve Spurrier?
CREATE TABLE table_name_8 (record VARCHAR, head_coach VARCHAR)
SELECT MIN(total) FROM table_name_65 WHERE silver = 16 AND bronze < 32
How many Total medals did the country with 16 Silver and less than 32 Bronze receive?
CREATE TABLE table_name_65 (total INTEGER, silver VARCHAR, bronze VARCHAR)
SELECT country_name FROM table_name_4 WHERE numeric_code < 580 AND latin_2_letter_code = "dk"
What is the country name with a numeric code less than 580 and a dk Latin 2-letter code?
CREATE TABLE table_name_4 (country_name VARCHAR, numeric_code VARCHAR, latin_2_letter_code VARCHAR)
SELECT rank FROM table_name_86 WHERE qual = "115.095"
What was the rank with the qual of 115.095?
CREATE TABLE table_name_86 (rank VARCHAR, qual VARCHAR)
SELECT MAX(after) FROM table_28498999_4 WHERE player = "Geoff Ogilvy"
What is the after for geoff ogilvy?
CREATE TABLE table_28498999_4 (after INTEGER, player VARCHAR)
SELECT time_retired FROM table_name_99 WHERE constructor = "lotus - ford" AND laps < 17
What is the Time/Retired when lotus - ford was constructor and the laps were less than 17?
CREATE TABLE table_name_99 (time_retired VARCHAR, constructor VARCHAR, laps VARCHAR)
SELECT place FROM table_name_64 WHERE country = "australia" AND score = 70 - 70 - 72 = 212
Which Place has a Country of australia, and a Score of 70-70-72=212?
CREATE TABLE table_name_64 (place VARCHAR, country VARCHAR, score VARCHAR)
SELECT AVG(founded) FROM table_name_31 WHERE years = "k-6" AND suburb_town = "broken hill"
What is the average year founded that is located in Broken Hill and has school years of k-6?
CREATE TABLE table_name_31 (founded INTEGER, years VARCHAR, suburb_town VARCHAR)
SELECT spanish_voice_actor FROM table_name_4 WHERE french_voice_actor = "véronique desmadryl"
Which Spanish voice actor does the same character as French voice actor Véronique Desmadryl?
CREATE TABLE table_name_4 (spanish_voice_actor VARCHAR, french_voice_actor VARCHAR)
SELECT network FROM table_name_80 WHERE premiere = "13 january 2009"
Tell me the network for 13 january 2009
CREATE TABLE table_name_80 (network VARCHAR, premiere VARCHAR)
SELECT COUNT(prod_code) FROM table_17901155_3 WHERE no_in_series = 32
how many production codes were there for the episode that was 32 in the series?
CREATE TABLE table_17901155_3 (prod_code VARCHAR, no_in_series VARCHAR)
SELECT SUM(scored) FROM table_name_72 WHERE date = "22 february 2006"
How many times did Sham Kwok Fai score in the game that was played on 22 February 2006?
CREATE TABLE table_name_72 (scored INTEGER, date VARCHAR)
SELECT 2012 FROM table_name_8 WHERE 2007 = "0 / 4"
Which 2012 has a 2007 of 0 / 4?
CREATE TABLE table_name_8 (Id VARCHAR)
SELECT semi_finalist__number2 FROM table_name_26 WHERE year = "2001"
Who was the Semi-Finalist #2 in 2001?
CREATE TABLE table_name_26 (semi_finalist__number2 VARCHAR, year VARCHAR)
SELECT rev FROM table_1310499_1 WHERE application = "2003-2004 Mustang Cobra"
What is the rev of the 2003-2004 Mustang Cobra?
CREATE TABLE table_1310499_1 (rev VARCHAR, application VARCHAR)
SELECT direction FROM table_100518_1 WHERE mantra = "Oṃ Yaṃ Vāyuve Namaḥ"
Where the mantra is "oṃ yaṃ vāyuve namaḥ", what is the direction of the guardian?
CREATE TABLE table_100518_1 (direction VARCHAR, mantra VARCHAR)
SELECT event FROM table_name_23 WHERE name = "ye shiwen"
Which event was Ye Shiwen in?
CREATE TABLE table_name_23 (event VARCHAR, name VARCHAR)
SELECT margin_of_victory FROM table_name_41 WHERE date = "aug 11, 2002"
What is the Margin of victory on aug 11, 2002?
CREATE TABLE table_name_41 (margin_of_victory VARCHAR, date VARCHAR)
SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2
Who were the comptrollers of the parties associated with the delegates from district 1 or district 2?
CREATE TABLE party (Comptroller VARCHAR, Party_ID VARCHAR); CREATE TABLE election (Party VARCHAR, District VARCHAR)
SELECT candidates FROM table_1341738_34 WHERE first_elected = "1952" AND party = "Democratic"
who was the candidate elected to the democratic party in 1952?
CREATE TABLE table_1341738_34 (candidates VARCHAR, first_elected VARCHAR, party VARCHAR)
SELECT home_team FROM table_name_90 WHERE away_team = "farnborough town"
What was the Home team when Farnborough Town was the Away team?
CREATE TABLE table_name_90 (home_team VARCHAR, away_team VARCHAR)
SELECT MIN(lost) FROM table_name_72 WHERE place > 4 AND goals_scored = 12 AND points > 4
what is the least lost when the place is higher than 4, goals scored is 12 and points is more than 4?
CREATE TABLE table_name_72 (lost INTEGER, points VARCHAR, place VARCHAR, goals_scored VARCHAR)
SELECT object_type FROM table_name_72 WHERE ngc_number > 6638 AND right_ascension___j2000__ = "18h25m37.8s"
Name the object type with an NGC number more than 6638 and right ascensions being 18h25m37.8s
CREATE TABLE table_name_72 (object_type VARCHAR, ngc_number VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = "Aruba" ORDER BY Percentage DESC LIMIT 1
Which language is the most popular in Aruba?
CREATE TABLE country (Code VARCHAR, Name VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)
SELECT score FROM table_name_33 WHERE date = "17 april 2013"
What is the score for 17 April 2013?
CREATE TABLE table_name_33 (score VARCHAR, date VARCHAR)
SELECT eastern__number1 FROM table_name_23 WHERE week = 5
Tell me the eastern #1 for week of 5
CREATE TABLE table_name_23 (eastern__number1 VARCHAR, week VARCHAR)
SELECT StuID FROM Student WHERE major = 600 INTERSECT SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y'
Show student ids who are on scholarship and have major 600.
CREATE TABLE Sportsinfo (StuID VARCHAR, major VARCHAR, onscholarship VARCHAR); CREATE TABLE Student (StuID VARCHAR, major VARCHAR, onscholarship VARCHAR)
SELECT week FROM table_17781886_1 WHERE opponent = "New York Jets"
The opponent was the New York Jets on what week?
CREATE TABLE table_17781886_1 (week VARCHAR, opponent VARCHAR)
SELECT 2008 AS _status FROM table_name_15 WHERE democratic = "rosa delauro"
What's the 2008 Status of Rosa Delauro?
CREATE TABLE table_name_15 (democratic VARCHAR)
SELECT athlete FROM table_17417383_6 WHERE round_of_32 = "Enkhzorig ( MGL ) L 1–10"
Name the athelte for enkhzorig ( mgl ) l 1–10
CREATE TABLE table_17417383_6 (athlete VARCHAR, round_of_32 VARCHAR)
SELECT time FROM table_name_84 WHERE lane < 4 AND nationality = "spain"
Spain had what time with lanes smaller than 4?
CREATE TABLE table_name_84 (time VARCHAR, lane VARCHAR, nationality VARCHAR)
SELECT length FROM table_name_36 WHERE writer = "james swallow" AND release > 2.1
What was the length when James Swallow had a release longer than 2.1?
CREATE TABLE table_name_36 (length VARCHAR, writer VARCHAR, release VARCHAR)
SELECT MIN(grid) FROM table_name_52 WHERE laps > 67 AND driver = "stefan bellof"
What is the lowest grid that has over 67 laps with stefan bellof driving?
CREATE TABLE table_name_52 (grid INTEGER, laps VARCHAR, driver VARCHAR)
SELECT score FROM table_23286158_11 WHERE game = 3
What is the score in game 3?
CREATE TABLE table_23286158_11 (score VARCHAR, game VARCHAR)
SELECT part_3 FROM table_1745843_8 WHERE class = "7a"
What is the part 3 of the word in class 7a?
CREATE TABLE table_1745843_8 (part_3 VARCHAR, class VARCHAR)
SELECT position FROM table_name_74 WHERE nationality = "united states" AND player = "brett lawrence"
What is the position of United States' player Brett Lawrence?
CREATE TABLE table_name_74 (position VARCHAR, nationality VARCHAR, player VARCHAR)
SELECT hometown FROM table_name_83 WHERE player = "cody zeller"
What is the hometown of Cody Zeller?
CREATE TABLE table_name_83 (hometown VARCHAR, player VARCHAR)
SELECT COUNT(original_air_date) FROM table_2791668_1 WHERE us_viewers__millions_ = "12.68"
how many premieres had the episode that had 12.68 millions of north american viewers?
CREATE TABLE table_2791668_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT AVG(attendance) FROM table_name_95 WHERE week = 8
What was the Attendance on Week 8?
CREATE TABLE table_name_95 (attendance INTEGER, week VARCHAR)
SELECT arena FROM table_name_32 WHERE capacity = "800" AND team = "milton keynes lions"
Which arena has the Milton Keynes Lions and a capacity of 800?
CREATE TABLE table_name_32 (arena VARCHAR, capacity VARCHAR, team VARCHAR)
SELECT transfer_fee FROM table_name_86 WHERE name = "paolo vanoli"
What is the transfer fee for Paolo Vanoli?
CREATE TABLE table_name_86 (transfer_fee VARCHAR, name VARCHAR)
SELECT year FROM table_name_96 WHERE opponent_in_the_final = "brenda schultz-mccarthy" AND score = "6–7(5), 2–6"
What year had a score of 6–7(5), 2–6 and opponent of Brenda Schultz-Mccarthy?
CREATE TABLE table_name_96 (year VARCHAR, opponent_in_the_final VARCHAR, score VARCHAR)
SELECT japanese_title FROM table_name_78 WHERE average_ratings = "9.2%" AND tv_station = "nhk"
What Japanese title had average ratings of 9.2% on the NHK station?
CREATE TABLE table_name_78 (japanese_title VARCHAR, average_ratings VARCHAR, tv_station VARCHAR)
SELECT score FROM table_name_92 WHERE to_par = "+5" AND player = "vijay singh"
What did vijay singh score with a +5 to par?
CREATE TABLE table_name_92 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT discs FROM table_name_90 WHERE region_1_release = "january 22, 2008"
What discs has a region 1 release date of January 22, 2008?
CREATE TABLE table_name_90 (discs VARCHAR, region_1_release VARCHAR)
SELECT home_team FROM table_name_7 WHERE road_team = "seattle" AND date = "june 1"
What is the Home Team of the game against Seattle on June 1?
CREATE TABLE table_name_7 (home_team VARCHAR, road_team VARCHAR, date VARCHAR)
SELECT 2 AS nd_member FROM table_name_43 WHERE election = "1833 by-election"
What 2nd Member has an Election of 1833 by-election?
CREATE TABLE table_name_43 (election VARCHAR)
SELECT fin_pos FROM table_name_93 WHERE points = "13"
What was the finishing position with 13 points?
CREATE TABLE table_name_93 (fin_pos VARCHAR, points VARCHAR)
SELECT title FROM table_2156758_4 WHERE no_in_series = "28"
What is the title for episode number in series of 28?
CREATE TABLE table_2156758_4 (title VARCHAR, no_in_series VARCHAR)
SELECT score FROM table_name_29 WHERE away_team = "tottenham hotspur"
what is the score when the away team is tottenham hotspur?
CREATE TABLE table_name_29 (score VARCHAR, away_team VARCHAR)
SELECT manufacturer FROM table_2241841_1 WHERE date = "May 21"
Who made the car that won the race on May 21?
CREATE TABLE table_2241841_1 (manufacturer VARCHAR, date VARCHAR)
SELECT episode FROM table_29960651_5 WHERE no_for_season = 3
Which episode is number 3 in the season?
CREATE TABLE table_29960651_5 (episode VARCHAR, no_for_season VARCHAR)
SELECT MAX(losses) FROM table_16512618_1 WHERE manager = "Leslie Mann"
Name the most losses for leslie mann
CREATE TABLE table_16512618_1 (losses INTEGER, manager VARCHAR)
SELECT save FROM table_name_86 WHERE opponent = "braves" AND date = "may 15"
Name the save for braves for may 15
CREATE TABLE table_name_86 (save VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT first_match FROM table_name_72 WHERE final_position___round = "third qualifying round"
Which first match had a final position/round in the third qualifying round?
CREATE TABLE table_name_72 (first_match VARCHAR, final_position___round VARCHAR)
SELECT pos FROM table_name_20 WHERE from_club = "cska moscow"
What is Pos., when From Club is "CSKA Moscow"?
CREATE TABLE table_name_20 (pos VARCHAR, from_club VARCHAR)
SELECT house FROM table_name_89 WHERE four = "opat"
What is "house", when "four" is "opat"?
CREATE TABLE table_name_89 (house VARCHAR, four VARCHAR)
SELECT AVG(round) FROM table_name_90 WHERE player = "ty lawson" AND pick < 18
What round was the player Ty Lawson with a pick earlier than 18?
CREATE TABLE table_name_90 (round INTEGER, player VARCHAR, pick VARCHAR)
SELECT directed_by FROM table_27969432_4 WHERE production = "2M5901"
Who directed the episode whose production code is 2m5901?
CREATE TABLE table_27969432_4 (directed_by VARCHAR, production VARCHAR)