answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT country FROM table_name_61 WHERE place = "t1" AND player = "stuart appleby"
What is the country of player stuart appleby, who has a t1 place?
CREATE TABLE table_name_61 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT original_air_date FROM table_26914076_3 WHERE directed_by = "Rob Bailey"
What is the date the episode directed by rob bailey aired?
CREATE TABLE table_26914076_3 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT "Team" FROM table_21295 WHERE "Location Attendance" = 'ARCO Arena 13,685'
Name the team for arco arena 13,685
CREATE TABLE table_21295 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT place FROM table_name_45 WHERE money___£__ = "77,500" AND player = "sergio garcía"
What is the place of player sergio garcía, who has £77,500?
CREATE TABLE table_name_45 (place VARCHAR, money___£__ VARCHAR, player VARCHAR)
SELECT team FROM table_26914759_3 WHERE incoming_manager = "Dave Penney"
WHich team had dave penney as an incoming manager
CREATE TABLE table_26914759_3 (team VARCHAR, incoming_manager VARCHAR)
SELECT DISTINCT course.department, course.name, course.number FROM course, program, program_course WHERE program_course.category LIKE '%PreMajor%' AND program_course.course_id = course.course_id AND program.name LIKE '%CS-LSA%' AND program.program_id = program_course.program_id
The PreMajor classes are ?
CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, countr...
SELECT to_par FROM table_name_92 WHERE score = 73 - 70 - 70 - 65 = 278
What is the to par of the player with a 73-70-70-65=278 score?
CREATE TABLE table_name_92 (to_par VARCHAR, score VARCHAR)
SELECT manner_of_departure FROM table_26914759_3 WHERE team = "Notts County" AND incoming_manager = "Martin Allen"
What was the manner of departure for notts county with an incoming manager of martin allen
CREATE TABLE table_26914759_3 (manner_of_departure VARCHAR, team VARCHAR, incoming_manager VARCHAR)
SELECT u.Id AS "user_link", COUNT(*) AS UpVotes FROM Tags AS t WITH (nolock) INNER JOIN PostTags AS pt WITH (nolock) ON pt.TagId = t.Id INNER JOIN Posts AS p WITH (nolock) ON p.ParentId = pt.PostId INNER JOIN Votes AS v WITH (nolock) ON v.PostId = p.Id AND v.VoteTypeId = 2 INNER JOIN Users AS u WITH (nolock) ON u.Id = ...
Top 100 users in a given tag (TeX version). This query fetches the top 100 users on a given tag name. The original query is available here: data.stackexchange.com/stackoverflow/s/1791
CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId...
SELECT player FROM table_name_97 WHERE money___£__ = "140,000"
Who is the player with £140,000?
CREATE TABLE table_name_97 (player VARCHAR, money___£__ VARCHAR)
SELECT COUNT(position_in_table) FROM table_26914759_3 WHERE incoming_manager = "Gary Megson"
How many teams had gary megson as an incoming manager
CREATE TABLE table_26914759_3 (position_in_table VARCHAR, incoming_manager VARCHAR)
SELECT Document_Name, COUNT(Document_Name) FROM Documents GROUP BY Document_Name ORDER BY Document_Name
Show the number of documents for different document name in a bar chart, order bar in asc order.
CREATE TABLE Ref_Budget_Codes ( Budget_Type_Code CHAR(15), Budget_Type_Description VARCHAR(255) ) CREATE TABLE Documents ( Document_ID INTEGER, Document_Type_Code CHAR(15), Project_ID INTEGER, Document_Date DATETIME, Document_Name VARCHAR(255), Document_Description VARCHAR(255), Oth...
SELECT date FROM table_name_90 WHERE time = "56.49"
What is Date, when Time is "56.49"?
CREATE TABLE table_name_90 (date VARCHAR, time VARCHAR)
SELECT incoming_manager FROM table_26914759_3 WHERE position_in_table = "12th"
who was the incoming manager for the 12th position in the table
CREATE TABLE table_26914759_3 (incoming_manager VARCHAR, position_in_table VARCHAR)
SELECT 2010 FROM table_name_58 WHERE 2004 = "1r" AND tournament = "french open"
What french open tournament happened in 2010 and has a 2004 1r?
CREATE TABLE table_name_58 ( tournament VARCHAR )
SELECT event FROM table_name_6 WHERE date = "19 december 2009"
What is Event, when Date is "19 December 2009"?
CREATE TABLE table_name_6 (event VARCHAR, date VARCHAR)
SELECT height FROM table_26916717_1 WHERE home_town = "Farmington, KY"
How tall is the player from farmington, ky?
CREATE TABLE table_26916717_1 (height VARCHAR, home_town VARCHAR)
SELECT "Locomotive" FROM table_55814 WHERE "Gauge" = 'standard' AND "Serial No" = '83-1015'
What is the locomotive with a standard gauge and a serial number of 83-1015?
CREATE TABLE table_55814 ( "Locomotive" text, "Serial No" text, "Entered service" text, "Gauge" text, "Livery" text )
SELECT time FROM table_name_62 WHERE meet = "duel in the pool" AND date = "19 december 2009"
What is Time, when Meet is "Duel in the Pool", and when Date is "19 December 2009"?
CREATE TABLE table_name_62 (time VARCHAR, meet VARCHAR, date VARCHAR)
SELECT team_school FROM table_26916717_1 WHERE name = "Adrian Smith"
Where did adrian smith go to college?
CREATE TABLE table_26916717_1 (team_school VARCHAR, name VARCHAR)
SELECT Name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.Storm_ID = T2.Storm_ID GROUP BY T1.Storm_ID ORDER BY Name DESC
Return a bar chart on how many regions were affected by each storm?, list in descending by the names please.
CREATE TABLE storm ( Storm_ID int, Name text, Dates_active text, Max_speed int, Damage_millions_USD real, Number_Deaths int ) CREATE TABLE affected_region ( Region_id int, Storm_ID int, Number_city_affected real ) CREATE TABLE region ( Region_id int, Region_code text, R...
SELECT location FROM table_name_72 WHERE event = "100m butterfly"
What is the Location, when Event is "100m Butterfly"?
CREATE TABLE table_name_72 (location VARCHAR, event VARCHAR)
SELECT name FROM table_26916717_1 WHERE team_school = "California"
What player attended california university?
CREATE TABLE table_26916717_1 (name VARCHAR, team_school VARCHAR)
SELECT place FROM table_name_94 WHERE comp = "ech" AND date = "1989"
What's the place of 1989 with a comp of ECH?
CREATE TABLE table_name_94 ( place VARCHAR, comp VARCHAR, date VARCHAR )
SELECT date FROM table_name_86 WHERE meet = "world championships" AND nationality = "united states" AND time = "1:46.68"
What is Date, when Meet is "World Championships", when Nationality is "United States", and when Time is "1:46.68"?
CREATE TABLE table_name_86 (date VARCHAR, time VARCHAR, meet VARCHAR, nationality VARCHAR)
SELECT name FROM table_26916717_1 WHERE home_town = "Purcell, OK"
What is the name of the player from purcell, ok?
CREATE TABLE table_26916717_1 (name VARCHAR, home_town VARCHAR)
SELECT john_oxendine FROM table_name_75 WHERE karen_handel = "38%"
What is John Oxendine at in the poll where Karen Handel is at 38%?
CREATE TABLE table_name_75 ( john_oxendine VARCHAR, karen_handel VARCHAR )
SELECT event FROM table_name_41 WHERE meet = "world championships" AND time = "20.51"
What is Event, when Meet is "World Championships", and when Time is "20.51"?
CREATE TABLE table_name_41 (event VARCHAR, meet VARCHAR, time VARCHAR)
SELECT hebrew FROM table_26919_6 WHERE arabic = "tisʕ-"
Name the hebrew for tisʕ-
CREATE TABLE table_26919_6 (hebrew VARCHAR, arabic VARCHAR)
SELECT MAX("Laps") FROM table_57118 WHERE "Time/Retired" = 'differential'
What is the highest number of laps when the Time/Retired is differential?
CREATE TABLE table_57118 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT MAX(number_of_households) FROM table_name_30 WHERE median_household_income = "$31,176" AND population < 25 OFFSET 607
What is the highest number of households with a median household income of $31,176, and a population of 25,607?
CREATE TABLE table_name_30 (number_of_households INTEGER, median_household_income VARCHAR, population VARCHAR)
SELECT COUNT(tigrinya) FROM table_26919_6 WHERE arabic = "χams-"
Name the tigrinya for χams-
CREATE TABLE table_26919_6 (tigrinya VARCHAR, arabic VARCHAR)
SELECT "Score" FROM table_3122 WHERE "Rank" = '1st'
What was the score for the 1st ranked team?
CREATE TABLE table_3122 ( "Rank" text, "Player" text, "Nationality" text, "Team" text, "Opponent" text, "Score" text, "Competition" text, "Vote percentage" text )
SELECT median_household_income FROM table_name_68 WHERE county = "cape girardeau"
What is the median household income for Cape Girardeau?
CREATE TABLE table_name_68 (median_household_income VARCHAR, county VARCHAR)
SELECT hebrew FROM table_26919_6 WHERE proto_semitic = "*tišʻ-"
Name the hebrew for *tišʻ-
CREATE TABLE table_26919_6 (hebrew VARCHAR, proto_semitic VARCHAR)
SELECT rnag__mhz_ FROM table_18475946_2 WHERE lyric_fm__mhz_ = "98.7"
What is the rnag for lyric fm 98.7?
CREATE TABLE table_18475946_2 ( rnag__mhz_ VARCHAR, lyric_fm__mhz_ VARCHAR )
SELECT colourist_s FROM table_name_89 WHERE letterer_s = "albers" AND story_title = "broken glass (part 3)"
Who is the Colourist that has a Story Title of Broken Glass (part 3) and a Letterer of Albers?
CREATE TABLE table_name_89 (colourist_s VARCHAR, letterer_s VARCHAR, story_title VARCHAR)
SELECT arabic FROM table_26919_6 WHERE tigrinya = "ħamuʃte"
Name the arabic for ħamuʃte
CREATE TABLE table_26919_6 (arabic VARCHAR, tigrinya VARCHAR)
SELECT "Week 4" FROM table_60707 WHERE "Week 3" = 'laura nicole'
What is the week 3, prior to the when the week 4 was Laura Nicole?
CREATE TABLE table_60707 ( "Week 1" text, "Week 2" text, "Week 3" text, "Week 4" text, "Week 5" text )
SELECT cover_date FROM table_name_59 WHERE story_title = "spacehikers (part 2)"
What is the Cover Date of the Story Title Spacehikers (Part 2)?
CREATE TABLE table_name_59 (cover_date VARCHAR, story_title VARCHAR)
SELECT sabaean FROM table_26919_6 WHERE arabic = "sabʕ-"
Name the sabaean for sabʕ-
CREATE TABLE table_26919_6 (sabaean VARCHAR, arabic VARCHAR)
SELECT * FROM table_train_118 WHERE fibrinogen < 1.5
fibrinogen < 1.5 g / l )
CREATE TABLE table_train_118 ( "id" int, "hypocalcemia" bool, "heart_disease" bool, "renal_disease" bool, "fibrinogen" float, "diastolic_blood_pressure_dbp" int, "symptomatic_hypotension" bool, "serum_creatinine" float, "ca" float, "hypertension" bool, "NOUSE" float )
SELECT story_title FROM table_name_60 WHERE letterer_s = "albers"
What is the Story Title that has Albers as the Letterer?
CREATE TABLE table_name_60 (story_title VARCHAR, letterer_s VARCHAR)
SELECT incoming_manager FROM table_26914854_3 WHERE date_of_vacancy = "21 March 2011"
Who is the incoming manager when the date of vacancy was 21 march 2011?
CREATE TABLE table_26914854_3 (incoming_manager VARCHAR, date_of_vacancy VARCHAR)
SELECT date FROM table_name_49 WHERE home_team = "north melbourne"
When the Home team was north melbourne what was the Date of the game?
CREATE TABLE table_name_49 ( date VARCHAR, home_team VARCHAR )
SELECT drivers FROM table_name_23 WHERE laps = 133 AND class = "oc"
Who are the drivers with 133 laps in OC class?
CREATE TABLE table_name_23 (drivers VARCHAR, laps VARCHAR, class VARCHAR)
SELECT position_in_table FROM table_26914854_3 WHERE date_of_vacancy = "4 January 2011"
What is the position in table when the date of vacancy was 4 january 2011?
CREATE TABLE table_26914854_3 (position_in_table VARCHAR, date_of_vacancy VARCHAR)
SELECT MIN(to_par) FROM table_name_96 WHERE country = "australia" AND score = 76 - 70 - 75 - 72 = 293
What is the lowest to par of a player from australia with a score of 76-70-75-72=293?
CREATE TABLE table_name_96 ( to_par INTEGER, country VARCHAR, score VARCHAR )
SELECT MAX(laps) FROM table_name_62 WHERE class = "oc" AND qual_pos = 7
What are the most laps for the Qual position of 7 in the OC class?
CREATE TABLE table_name_62 (laps INTEGER, class VARCHAR, qual_pos VARCHAR)
SELECT team FROM table_26914854_3 WHERE incoming_manager = "Martin Allen"
What is the team when the incoming manager is martin allen?
CREATE TABLE table_26914854_3 (team VARCHAR, incoming_manager VARCHAR)
SELECT * FROM table_train_269 WHERE age >= 18
age 18 or older
CREATE TABLE table_train_269 ( "id" int, "pregnancy_or_lactation" bool, "hemoglobin_a1c_hba1c" float, "diabetic" string, "hba1c" float, "prisoners" bool, "age" float, "NOUSE" float )
SELECT MIN(laps) FROM table_name_17 WHERE team = "perkins engineering"
What are Perkins Engineering's fewest laps?
CREATE TABLE table_name_17 (laps INTEGER, team VARCHAR)
SELECT incoming_manager FROM table_26914854_3 WHERE date_of_appointment = "9 March 2011"
Who is the incoming manager when the date of appointment is 9 march 2011?
CREATE TABLE table_26914854_3 (incoming_manager VARCHAR, date_of_appointment VARCHAR)
SELECT demographic.religion FROM demographic WHERE demographic.name = "Paul Edwards"
what is religion of subject name paul edwards?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescription...
SELECT class FROM table_name_48 WHERE qual_pos = 30
Which class has a Qual position of 30?
CREATE TABLE table_name_48 (class VARCHAR, qual_pos VARCHAR)
SELECT team FROM table_26914854_3 WHERE date_of_appointment = "23 March 2011"
What is the team when the date of appointment is 23 march 2011?
CREATE TABLE table_26914854_3 (team VARCHAR, date_of_appointment VARCHAR)
SELECT COUNT("title") FROM table_204_631 WHERE "length" > '3:30'
how many albums are more than 3:30 long ?
CREATE TABLE table_204_631 ( id number, "#" number, "title" text, "english translation" text, "original album" text, "length" text )
SELECT release_date FROM table_name_36 WHERE version = "1.0" AND category = "utilities" AND developer = "microsoft" AND title = "msn money"
What Release date has a Version of 1.0, a Category of utilities, a Developer of microsoft, and a Title of msn money?
CREATE TABLE table_name_36 (release_date VARCHAR, title VARCHAR, developer VARCHAR, version VARCHAR, category VARCHAR)
SELECT team FROM table_26914854_3 WHERE date_of_appointment = "11 June 2010"
what is the date of appointment 11 june 2010?
CREATE TABLE table_26914854_3 (team VARCHAR, date_of_appointment VARCHAR)
SELECT "Event" FROM table_48088 WHERE "Record" = '19-9'
Which Event has a Record of 19-9?
CREATE TABLE table_48088 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" text )
SELECT release_date FROM table_name_86 WHERE category = "utilities" AND developer = "microsoft" AND title = "chord finder"
What Release date has a Category of utilities, a Developer of microsoft, and a Title of chord finder?
CREATE TABLE table_name_86 (release_date VARCHAR, title VARCHAR, category VARCHAR, developer VARCHAR)
SELECT depth FROM table_26950408_1 WHERE time___utc__ = "12:19:36"
What is the depth at the UTC time of 12:19:36?
CREATE TABLE table_26950408_1 (depth VARCHAR, time___utc__ VARCHAR)
SELECT "Icelandic" FROM table_42487 WHERE "English" = 'bride'
What is the Icelandic word for the English word bride?
CREATE TABLE table_42487 ( "English" text, "German" text, "Dutch" text, "Icelandic" text, "Latin" text, "Greek" text, "Russian" text )
SELECT developer FROM table_name_12 WHERE release_date = "2010-12-16" AND title = "facebook"
What Developer has a Release date of 2010-12-16, and a Title of facebook?
CREATE TABLE table_name_12 (developer VARCHAR, release_date VARCHAR, title VARCHAR)
SELECT date__yyyy_mm_dd_ FROM table_26950408_1 WHERE time___utc__ = "03:15:46"
What is the date for the UTC time of 03:15:46?
CREATE TABLE table_26950408_1 (date__yyyy_mm_dd_ VARCHAR, time___utc__ VARCHAR)
SELECT venue FROM table_17120964_8 WHERE man_of_the_match = "Vaclav Zavoral"
What is the venue of the game with Man of the Match Vaclav Zavoral?
CREATE TABLE table_17120964_8 ( venue VARCHAR, man_of_the_match VARCHAR )
SELECT title FROM table_name_83 WHERE version = "1.0.0.3"
What Title has a Version of 1.0.0.3?
CREATE TABLE table_name_83 (title VARCHAR, version VARCHAR)
SELECT title FROM table_26952212_1 WHERE no_in_total = "30"
What is the title for episode number 30?
CREATE TABLE table_26952212_1 (title VARCHAR, no_in_total VARCHAR)
SELECT MIN(year) FROM table_name_11 WHERE date = "14 february"
Which Year has a Date of 14 February?
CREATE TABLE table_name_11 ( year INTEGER, date VARCHAR )
SELECT version FROM table_name_77 WHERE title = "alarm clock"
What Version has a Title of alarm clock?
CREATE TABLE table_name_77 (version VARCHAR, title VARCHAR)
SELECT MAX(_percentage_identity_to_c7orf38) FROM table_26957063_3 WHERE genus_ & _species = "Mus musculus"
What is the % identity to C7orf38 of the animal whose genus & species is Mus Musculus?
CREATE TABLE table_26957063_3 (_percentage_identity_to_c7orf38 INTEGER, genus_ VARCHAR, _species VARCHAR)
SELECT measurement FROM table_name_21 WHERE estimated_function__percentage < 20
What is the measurement where the estimated function % is less than 20?
CREATE TABLE table_name_21 ( measurement VARCHAR, estimated_function__percentage INTEGER )
SELECT version FROM table_name_34 WHERE developer = "dino games" AND title = "metronome"
What Version has a Developer of dino games, and a Title of metronome?
CREATE TABLE table_name_34 (version VARCHAR, developer VARCHAR, title VARCHAR)
SELECT MIN(length__aa_) FROM table_26957063_3 WHERE ncbi_accession_number = "CAM15594.1"
What is the length (AA) of the animal whose NCBI accession number is CAM15594.1?
CREATE TABLE table_26957063_3 (length__aa_ INTEGER, ncbi_accession_number VARCHAR)
SELECT Category, COUNT(*) FROM book_club GROUP BY Category
Show all book categories and the number of books in each category in a pie chart.
CREATE TABLE culture_company ( Company_name text, Type text, Incorporated_in text, Group_Equity_Shareholding real, book_club_id text, movie_id text ) CREATE TABLE movie ( movie_id int, Title text, Year int, Director text, Budget_million real, Gross_worldwide int ) CREAT...
SELECT venue FROM table_name_39 WHERE opposing_teams = "wales"
Where did Wales play?
CREATE TABLE table_name_39 (venue VARCHAR, opposing_teams VARCHAR)
SELECT MAX(_percentage_similarity_to_c7orf38) FROM table_26957063_3 WHERE _percentage_identity_to_c7orf38 = 81
What is the % similarity to C7orf38 of the animal whose % identity to C7orf38 is 81?
CREATE TABLE table_26957063_3 (_percentage_similarity_to_c7orf38 INTEGER, _percentage_identity_to_c7orf38 VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "40391" AND lab."CATEGORY" = "Chemistry"
count the number of patients whose diagnoses icd9 code is 40391 and lab test category is chemistry?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
SELECT venue FROM table_name_47 WHERE against = 19
What venue has 19 against?
CREATE TABLE table_name_47 (venue VARCHAR, against VARCHAR)
SELECT common_name FROM table_26957063_3 WHERE length__aa_ = 1323
What is the common name of the animal whose length (AA) is 1323?
CREATE TABLE table_26957063_3 (common_name VARCHAR, length__aa_ VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.admission_location = "TRSF WITHIN THIS FACILITY"
provide the number of patients whose admission type is elective and admission location is trsf within this facility.
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, ...
SELECT award_ceremony FROM table_name_87 WHERE nominee = "sarah travis" AND category = "best orchestrations"
Which Award Ceremony has a Nominee of sarah travis, and a Category of the best orchestrations?
CREATE TABLE table_name_87 (award_ceremony VARCHAR, nominee VARCHAR, category VARCHAR)
SELECT MIN(_percentage_identity_to_c7orf38) FROM table_26957063_3 WHERE common_name = "Rat"
What is the % identity to C7orf38 of the animal whose common name is rat?
CREATE TABLE table_26957063_3 (_percentage_identity_to_c7orf38 INTEGER, common_name VARCHAR)
SELECT date FROM table_name_73 WHERE home_team = "portland" AND game = "game 1"
On what date was the game 1 played at Portland?
CREATE TABLE table_name_73 ( date VARCHAR, home_team VARCHAR, game VARCHAR )
SELECT MAX(year_signed) FROM table_name_79 WHERE reason_for_separation = "†" AND year_separated = "1997"
What is the most current year signed for separation of † and a separation year of 1997?
CREATE TABLE table_name_79 (year_signed INTEGER, reason_for_separation VARCHAR, year_separated VARCHAR)
SELECT genus_ & _species FROM table_26957063_3 WHERE ncbi_accession_number = "XP_002439156.1"
What is the genus & species of the animal whose accession number is XP_002439156.1?
CREATE TABLE table_26957063_3 (genus_ VARCHAR, _species VARCHAR, ncbi_accession_number VARCHAR)
SELECT COUNT(roll) FROM table_name_12 WHERE name = "te hapua school"
What is the total number of roll for Te Hapua school?
CREATE TABLE table_name_12 ( roll VARCHAR, name VARCHAR )
SELECT chinese_name FROM table_name_58 WHERE english_name = "andy lau"
What is the Chinese name for the English name Andy Lau?
CREATE TABLE table_name_58 (chinese_name VARCHAR, english_name VARCHAR)
SELECT COUNT(directed_by) FROM table_26961951_4 WHERE written_by = "Alison McDonald"
How many episodes were written by Alison McDonald?
CREATE TABLE table_26961951_4 (directed_by VARCHAR, written_by VARCHAR)
SELECT MIN("year") FROM table_204_202 WHERE "tournament" = 'olympic games'
what was the first olympic games in which indrek kaseorg competed ?
CREATE TABLE table_204_202 ( id number, "year" number, "tournament" text, "venue" text, "result" text, "rank" text, "event" text )
SELECT year_separated FROM table_name_74 WHERE reason_for_separation = "capital stopped recording music" AND english_name = "wilfred lau"
What year was Wilfred Lau separated because Capital stopped recording music?
CREATE TABLE table_name_74 (year_separated VARCHAR, reason_for_separation VARCHAR, english_name VARCHAR)
SELECT us_viewers__million_ FROM table_26961951_4 WHERE written_by = "Alison McDonald"
How many viewers in millions did the Alison McDonald episode get?
CREATE TABLE table_26961951_4 (us_viewers__million_ VARCHAR, written_by VARCHAR)
SELECT COUNT("Bronze") FROM table_11647 WHERE "Rank" < '2' AND "Gold" < '1'
What is the sum number of bronzes when the rank is less than 2 and the gold is less than 1?
CREATE TABLE table_11647 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT english_name FROM table_name_30 WHERE year_signed > 1974 AND chinese_name = "蘇永康"
What is the English name for the Chinese name of 蘇永康 later than 1974?
CREATE TABLE table_name_30 (english_name VARCHAR, year_signed VARCHAR, chinese_name VARCHAR)
SELECT MIN(p_max___bar__) FROM table_26967904_2 WHERE f_bolt___kgf__ = 6876
What is the p max ( bar ) for the 6876 f bolt ( kgf )?
CREATE TABLE table_26967904_2 (p_max___bar__ INTEGER, f_bolt___kgf__ VARCHAR)
SELECT tie_no FROM table_name_79 WHERE away_team = "ashford town (middx)"
What was the tie number of the away game for Ashford Town (Middx)?
CREATE TABLE table_name_79 ( tie_no VARCHAR, away_team VARCHAR )
SELECT year_signed FROM table_name_82 WHERE year_separated = "1987" AND chinese_name = "蘇永康"
What was the signed year for the Chinese name 蘇永康 who separated in 1987?
CREATE TABLE table_name_82 (year_signed VARCHAR, year_separated VARCHAR, chinese_name VARCHAR)
SELECT p1_diameter__mm_ FROM table_26967904_2 WHERE chambering = ".300 Lapua Magnum"
What is the p1 diameter (mm) when .300 lapua magnum is the chambering?
CREATE TABLE table_26967904_2 (p1_diameter__mm_ VARCHAR, chambering VARCHAR)
SELECT MIN(tv_seasons) FROM table_name_58 WHERE tv_series = "yes" AND species = "human"
What is the smallest season for a tv series with a yes and human was the species?
CREATE TABLE table_name_58 ( tv_seasons INTEGER, tv_series VARCHAR, species VARCHAR )
SELECT site FROM table_name_44 WHERE date = "october 7"
WHAT IS THE SITE ON OCTOBER 7?
CREATE TABLE table_name_44 (site VARCHAR, date VARCHAR)