answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT location FROM table_name_42 WHERE race = "argentine grand prix" | Where was the argentine grand prix? | CREATE TABLE table_name_42 (location VARCHAR, race VARCHAR) |
SELECT won FROM table_15352382_1 WHERE against = 20 | if Against is 20 how much is Won? | CREATE TABLE table_15352382_1 (won VARCHAR, against VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "M" AND demographic.days_stay > "5" | how many patients whose gender is m and days of hospital stay is greater than 5? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... |
SELECT constructor FROM table_name_72 WHERE fastest_lap = "nelson piquet" | What was the constructor for the fastest nelson piquet? | CREATE TABLE table_name_72 (constructor VARCHAR, fastest_lap VARCHAR) |
SELECT drawn FROM table_15352382_1 WHERE team = "Portuguesa Santista" | How many Drawn does the team Portuguesa Santista have? | CREATE TABLE table_15352382_1 (drawn VARCHAR, team VARCHAR) |
SELECT week_sent_to_third_island FROM table_11764007_2 WHERE week_arrived_on_main_island = "6" | What week was the member who arrived on the main island in week 6 sent to the third island? | CREATE TABLE table_11764007_2 (
week_sent_to_third_island VARCHAR,
week_arrived_on_main_island VARCHAR
) |
SELECT constructor FROM table_name_64 WHERE location = "zolder" | Tell me the constructor for zolder | CREATE TABLE table_name_64 (constructor VARCHAR, location VARCHAR) |
SELECT drawn FROM table_15352382_1 WHERE team = "Corinthians" | How many drawn does the team Corinthians have? | CREATE TABLE table_15352382_1 (drawn VARCHAR, team VARCHAR) |
SELECT "Giant Slalom" FROM table_10849 WHERE "Overall" = '25' | Which giant slalom had an Overall number of 25? | CREATE TABLE table_10849 (
"Season" real,
"Overall" real,
"Slalom" real,
"Giant Slalom" text,
"Super G" text,
"Downhill" text
) |
SELECT constructor FROM table_name_75 WHERE date = "10 august" | Name the constructor for 10 august | CREATE TABLE table_name_75 (constructor VARCHAR, date VARCHAR) |
SELECT MAX(won) FROM table_15331868_1 WHERE difference = "1" | What is the highest number won with a difference of 1? | CREATE TABLE table_15331868_1 (won INTEGER, difference VARCHAR) |
SELECT date FROM table_name_37 WHERE circuit = "sandown raceway" | On what Date is the Circuit at Sandown Raceway? | CREATE TABLE table_name_37 (
date VARCHAR,
circuit VARCHAR
) |
SELECT years_at_club FROM table_name_77 WHERE games > 28 AND goals > 225 AND debut_year > 1950 | What is the number of Years at Club for the player who has had more games than 28, more Goals than 225, and his Debut year was after 1950? | CREATE TABLE table_name_77 (years_at_club VARCHAR, debut_year VARCHAR, games VARCHAR, goals VARCHAR) |
SELECT MAX(position) FROM table_15331868_1 WHERE against = 28 | What the highest position when there is 28 against? | CREATE TABLE table_15331868_1 (position INTEGER, against VARCHAR) |
SELECT (SELECT "runs" FROM table_204_154 WHERE "player" = 'john challen') - (SELECT "runs" FROM table_204_154 WHERE "player" = 'albert clapp') | how many more runs does john have than albert ? | CREATE TABLE table_204_154 (
id number,
"player" text,
"matches" number,
"innings" number,
"runs" number,
"average" number,
"100s" number,
"50s" number
) |
SELECT date_of_birth FROM table_name_12 WHERE years_at_club = "1951" | What is the birthday of the player who has Years at Club of 1951? | CREATE TABLE table_name_12 (date_of_birth VARCHAR, years_at_club VARCHAR) |
SELECT MAX(won) FROM table_15331868_1 WHERE points = 31 | What is the highest number won when the number of points is 31? | CREATE TABLE table_15331868_1 (won INTEGER, points VARCHAR) |
SELECT "Grand Prix" FROM table_73000 WHERE "Race Winner" = 'Daijiro Hiura' | What grand prixs did Daijiro Hiura win? | CREATE TABLE table_73000 (
"Round" real,
"Date" text,
"Grand Prix" text,
"Circuit" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text
) |
SELECT rank FROM table_name_55 WHERE years_until_mandatory_retirement = "6 years" | what rank has years until mandatory retirement of 6 years? | CREATE TABLE table_name_55 (rank VARCHAR, years_until_mandatory_retirement VARCHAR) |
SELECT MIN(position) FROM table_15331868_1 WHERE difference = "6" | What is the smalledt position when the difference was 6? | CREATE TABLE table_15331868_1 (position INTEGER, difference VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "4" AND prescriptions.formulary_drug_cd = "CITA20" | how many patients hospital stay is more than 4 days with drug code cita20? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... |
SELECT name FROM table_name_40 WHERE year_appointed = 2009 AND years_until_mandatory_retirement = "13 years" | what name has an appointed year of 2009 and years until mandatory retirement of 13 years? | CREATE TABLE table_name_40 (name VARCHAR, year_appointed VARCHAR, years_until_mandatory_retirement VARCHAR) |
SELECT COUNT(average_weekly_rank) FROM table_15358729_6 WHERE average_nightly_rank = "No. 2" | How many were the show's average weekly ranking when it reached No. 2 in average nightly ranking? | CREATE TABLE table_15358729_6 (average_weekly_rank VARCHAR, average_nightly_rank VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.dob_year < "2024" | How many of the patients on urgent admission were born before 2024? | 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 player FROM table_name_16 WHERE no_s_ = "12" AND school_club_team_country = "oregon" | Which player from Oregon used the number 12? | CREATE TABLE table_name_16 (player VARCHAR, no_s_ VARCHAR, school_club_team_country VARCHAR) |
SELECT timeslot FROM table_15358729_6 WHERE season = 3 | What is the show's time slot during season 3? | CREATE TABLE table_15358729_6 (timeslot VARCHAR, season VARCHAR) |
SELECT SUM(gold) FROM table_name_19 WHERE total > 1 AND bronze = 0 AND rank = "5" | What is the gold number when total is more than 1, and bronze is 0, and rank is 5? | CREATE TABLE table_name_19 (
gold INTEGER,
rank VARCHAR,
total VARCHAR,
bronze VARCHAR
) |
SELECT position FROM table_name_16 WHERE height_in_ft = "6-10" | What position does the player who is 6-10 play? | CREATE TABLE table_name_16 (position VARCHAR, height_in_ft VARCHAR) |
SELECT february FROM table_1539201_1 | Name all of the february | CREATE TABLE table_1539201_1 (february VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Polyp of nasal cavity" AND prescriptions.route = "NU" | count the number of patients whose diagnoses short title is polyp of nasal cavity and drug route is nu? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... |
SELECT no_s_ FROM table_name_94 WHERE school_club_team_country = "washington" | What are the numbers for any players from Washington? | CREATE TABLE table_name_94 (no_s_ VARCHAR, school_club_team_country VARCHAR) |
SELECT june FROM table_1539201_1 | Name the junes | CREATE TABLE table_1539201_1 (june VARCHAR) |
SELECT date FROM table_name_93 WHERE length_of_game = "75:43" | What was the date of the game that lasted 75:43? | CREATE TABLE table_name_93 (
date VARCHAR,
length_of_game VARCHAR
) |
SELECT years_for_rockets FROM table_name_80 WHERE no_s_ = "6" | Which years did the Rockets number 6 play? | CREATE TABLE table_name_80 (years_for_rockets VARCHAR, no_s_ VARCHAR) |
SELECT july FROM table_1539201_1 | Name the julys | CREATE TABLE table_1539201_1 (july VARCHAR) |
SELECT "School/Country" FROM table_33330 WHERE "Position" = 'guard' AND "From" = '2000' | What is the school or country for the guard from 2000? | CREATE TABLE table_33330 (
"Player" text,
"Nationality" text,
"Position" text,
"From" text,
"School/Country" text
) |
SELECT senior_2nd_viii FROM table_name_60 WHERE senior_iv = "stm" | Which 2nd senior VIII that also has a 4th senior stm? | CREATE TABLE table_name_60 (senior_2nd_viii VARCHAR, senior_iv VARCHAR) |
SELECT COUNT(february) FROM table_1539201_1 | Name the number of februaries | CREATE TABLE table_1539201_1 (february VARCHAR) |
SELECT "Method" FROM table_45147 WHERE "Opponent" = 'akihiro gono' | What is the method of resolution for the fight against akihiro gono? | CREATE TABLE table_45147 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) |
SELECT laps FROM table_name_18 WHERE grid < 11 AND driver = "john love" | How many laps did John Love have on a grid less than 11? | CREATE TABLE table_name_18 (laps VARCHAR, grid VARCHAR, driver VARCHAR) |
SELECT MAX(points) FROM table_15405904_1 WHERE position = 2 | How many points are listed when the position is 2? | CREATE TABLE table_15405904_1 (points INTEGER, position VARCHAR) |
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE NOT admissions.dischtime IS NULL AND DATETIME(admissions.dischtime) >= DATETIME(CURRENT_TIME(), '-6 year') | how many patients have gotten discharged from the hospital since 6 years ago? | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE cost (
row_id numbe... |
SELECT builder FROM table_name_6 WHERE locomotive = "2" | What is the Builder of Locomotive 2? | CREATE TABLE table_name_6 (builder VARCHAR, locomotive VARCHAR) |
SELECT MAX(drawn) FROM table_15405904_1 WHERE lost = 2 | When there is a lost of 2 what is the mumber drawn? | CREATE TABLE table_15405904_1 (drawn INTEGER, lost VARCHAR) |
SELECT tournament FROM table_name_8 WHERE year > 2009 | What tournament was after 2009? | CREATE TABLE table_name_8 (
tournament VARCHAR,
year INTEGER
) |
SELECT SUM(withdrawn) FROM table_name_43 WHERE type = "4-6-4t" | With a Type of 4-6-4t, what is the sum Withdrawn? | CREATE TABLE table_name_43 (withdrawn INTEGER, type VARCHAR) |
SELECT MIN(played) FROM table_15405904_1 | How many games are played? | CREATE TABLE table_15405904_1 (played INTEGER) |
SELECT attendance FROM table_name_9 WHERE week = 6 | What was the attendance of the game in week 6? | CREATE TABLE table_name_9 (
attendance VARCHAR,
week VARCHAR
) |
SELECT score FROM table_name_41 WHERE home = "dallas" AND visitor = "edmonton" | What was the score from the game where Dallas played Home and Edmonton was visiting? | CREATE TABLE table_name_41 (score VARCHAR, home VARCHAR, visitor VARCHAR) |
SELECT MIN(lost) FROM table_15405904_1 WHERE position = 2 | When the position is 2 what is the number lost? | CREATE TABLE table_15405904_1 (lost INTEGER, position VARCHAR) |
SELECT AVG(rank) FROM table_name_36 WHERE time = "2:25.65" AND lane > 3 | What is the Rank of the Swimmer with a Time of 2:25.65 in a Lane larger than 3? | CREATE TABLE table_name_36 (
rank INTEGER,
time VARCHAR,
lane VARCHAR
) |
SELECT mintage FROM table_name_15 WHERE theme = "santa claus" | What was the mintage when the theme was Santa Claus? | CREATE TABLE table_name_15 (mintage VARCHAR, theme VARCHAR) |
SELECT MIN(won) FROM table_15405904_1 WHERE team = "Ypiranga-SP" | When the team is ypiranga-sp what is the number of won games? | CREATE TABLE table_15405904_1 (won INTEGER, team VARCHAR) |
SELECT "Opponent" FROM table_63605 WHERE "Week" = '3' | What is the Opponent of the game in Week 3? | CREATE TABLE table_63605 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) |
SELECT SUM(issue_price) FROM table_name_29 WHERE year = 2008 | What was the issue price in the year 2008? | CREATE TABLE table_name_29 (issue_price INTEGER, year VARCHAR) |
SELECT difference FROM table_15400878_1 WHERE drawn > 2.0 | Name the difference for when drawn is larger than 2.0 | CREATE TABLE table_15400878_1 (difference VARCHAR, drawn INTEGER) |
SELECT "Season" FROM table_34610 WHERE "Winner" = 'kanto gakuin university' AND "Attendance" = 'n/a' AND "Title" = '37th' | What season had Kanto Gakuin University as the winner, with an attendance of n/a, and a title of 37th? | CREATE TABLE table_34610 (
"Title" text,
"Season" text,
"Winner" text,
"Score" text,
"Runner-up" text,
"Venue" text,
"Attendance" text
) |
SELECT MIN(year) FROM table_name_66 WHERE composition = "99.99% silver" AND issue_price = "$94.95" | What is the earliest year when the composition is 99.99% silver and the issue price is $94.95? | CREATE TABLE table_name_66 (year INTEGER, composition VARCHAR, issue_price VARCHAR) |
SELECT MAX(against) FROM table_15400878_1 WHERE team = "Minas Gerais" | Name the most against for minas gerais | CREATE TABLE table_15400878_1 (against INTEGER, team VARCHAR) |
SELECT COUNT(poles) FROM table_27279050_1 WHERE points = "0" AND nation = "Mexico" | How many pole position achieved 0 points from Mexico? | CREATE TABLE table_27279050_1 (
poles VARCHAR,
points VARCHAR,
nation VARCHAR
) |
SELECT AVG(year) FROM table_name_87 WHERE issue_price = "$94.95" AND theme = "amethyst crystal" | What year had an issue price of $94.95 and theme of Amethyst crystal? | CREATE TABLE table_name_87 (year INTEGER, issue_price VARCHAR, theme VARCHAR) |
SELECT LMS AS class FROM table_15412381_5 WHERE lms_nos = "14510-5" | What is the LMS class of trains with numbers 14510-5? | CREATE TABLE table_15412381_5 (LMS VARCHAR, lms_nos VARCHAR) |
SELECT SUM("Total") FROM table_65435 WHERE "Rank" = 'total' AND "Silver" < '10' | what is the total when the rank is total and the silver is less than 10? | CREATE TABLE table_65435 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT score FROM table_name_43 WHERE opponent_in_the_final = "shiho hisamatsu" | Name the score for when the opponent in the final is shiho hisamatsu | CREATE TABLE table_name_43 (score VARCHAR, opponent_in_the_final VARCHAR) |
SELECT date FROM table_15412381_5 WHERE wheels = 279 | What is the date of the 279 wheels? | CREATE TABLE table_15412381_5 (date VARCHAR, wheels VARCHAR) |
SELECT AllergyType, COUNT(AllergyType) FROM Allergy_Type AS T1 JOIN Has_Allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = "Lisa" GROUP BY AllergyType ORDER BY AllergyType DESC | What is the number of each allergie type that the student with first name Lisa has? Visualize by bar chart, and order x axis from high to low order. | CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Has_Allergy (
StuID INTEGE... |
SELECT tournament FROM table_name_79 WHERE date = "april 3, 2005" | Name the tournament for april 3, 2005 | CREATE TABLE table_name_79 (tournament VARCHAR, date VARCHAR) |
SELECT lms_nos FROM table_15412381_5 WHERE builder = "G&SWR Kilmarnock" | What is the LMS number of the trains built by G&SWR Kilmarnock? | CREATE TABLE table_15412381_5 (lms_nos VARCHAR, builder VARCHAR) |
SELECT demographic.age FROM demographic WHERE demographic.name = "Bruce Harris" | find the age of subject name bruce harris. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... |
SELECT score FROM table_name_1 WHERE date = "may 11, 2003" | Name th score for may 11, 2003 | CREATE TABLE table_name_1 (score VARCHAR, date VARCHAR) |
SELECT COUNT(wheels) FROM table_15412381_5 WHERE lms_nos = "16377-9" | How many figures are there for wheels for LMS numbers 16377-9? | CREATE TABLE table_15412381_5 (wheels VARCHAR, lms_nos VARCHAR) |
SELECT "Original air date" FROM table_72255 WHERE "Written by" = 'Michael Poryes' | What is the date of the episode written by Michael Poryes? | CREATE TABLE table_72255 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) |
SELECT constructor FROM table_name_30 WHERE driver = "pedro diniz" | Who constructed pedro diniz's car? | CREATE TABLE table_name_30 (constructor VARCHAR, driver VARCHAR) |
SELECT MAX(saffir_simpson_category) FROM table_15416002_1 | What is the maximum number for the Saffir-Simpson category in the Carvill Hurricane Index? | CREATE TABLE table_15416002_1 (saffir_simpson_category INTEGER) |
SELECT MAX("Points") FROM table_6478 WHERE "Games" < '7' | which Points has Games smaller than 7? | CREATE TABLE table_6478 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
) |
SELECT COUNT(grid) FROM table_name_85 WHERE driver = "david coulthard" AND laps > 45 | What is the grid total for david coulthard with over 45 laps? | CREATE TABLE table_name_85 (grid VARCHAR, driver VARCHAR, laps VARCHAR) |
SELECT MAX(v_mph_) FROM table_15416002_1 WHERE chi = "13.5" | What is the maximum miles per hour recorded when the CHI (Carvill Hurricane Index) is equal to 13.5 | CREATE TABLE table_15416002_1 (v_mph_ INTEGER, chi VARCHAR) |
SELECT SUM(gold) FROM table_name_88 WHERE nation = "guatemala" AND silver < 0 | What is the total amount of Gold from guatemala and silver smaller than 0? | CREATE TABLE table_name_88 (
gold INTEGER,
nation VARCHAR,
silver VARCHAR
) |
SELECT AVG(average) FROM table_name_33 WHERE start_value = 9.9 AND total = 9.612 | What is the average for the gymnast with a 9.9 start value and a total of 9.612? | CREATE TABLE table_name_33 (average INTEGER, start_value VARCHAR, total VARCHAR) |
SELECT chi FROM table_15416002_1 WHERE nhc_advisory_number = "49B" | What is the CHI (Carvill Hurricane Index) when the NHC advisory number is equal to 49b? | CREATE TABLE table_15416002_1 (chi VARCHAR, nhc_advisory_number VARCHAR) |
SELECT T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Code DESC | For those records from the products and each product's manufacturer, give me the comparison about the average of code over the name , and group by attribute name by a bar chart, and could you sort by the mean code in descending please? | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) |
SELECT penalty FROM table_name_13 WHERE average > 9.662 AND total > 9.706 | What was the penalty for the gymnast with average above 9.662 and total is more than 9.706? | CREATE TABLE table_name_13 (penalty VARCHAR, average VARCHAR, total VARCHAR) |
SELECT MAX(r_miles_) FROM table_15416002_1 WHERE landfall = "Texas" AND saffir_simpson_category < 3.0 | What is the maximum number of miles reached in a Texas landfall when the Saffir-Simpson category is smaller than 3.0? | CREATE TABLE table_15416002_1 (r_miles_ INTEGER, landfall VARCHAR, saffir_simpson_category VARCHAR) |
SELECT Id AS "user_link", age FROM Users WHERE DisplayName LIKE 'Richard J. Ross III' | Age off by one error. | CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAno... |
SELECT category FROM table_name_20 WHERE year > 2005 AND for_the_show = "kasautii zindagii kay" | What category was Kasautii Zindagii Kay nominated for after 2005? | CREATE TABLE table_name_20 (category VARCHAR, year VARCHAR, for_the_show VARCHAR) |
SELECT r_miles_ FROM table_15416002_1 WHERE chi = "9.9" | What are the miles when the Carvill Hurricane Index (CHI) is equal to 9.9? | CREATE TABLE table_15416002_1 (r_miles_ VARCHAR, chi VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND demographic.diagnosis = "T5 FRACTURE" | how many patients whose discharge location is disch-tran to psych hosp and primary disease is t5 fracture? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... |
SELECT for_the_show FROM table_name_22 WHERE category = "best actor in a lead role – female (popular)" AND year = 2006 | What show had a nomination for best actor in a lead role – female (popular) in 2006? | CREATE TABLE table_name_22 (for_the_show VARCHAR, category VARCHAR, year VARCHAR) |
SELECT saffir_simpson_category FROM table_15416002_1 WHERE name = "Bonnie" | What is the Saffir-Simpson category for the hurricane named Bonnie? | CREATE TABLE table_15416002_1 (saffir_simpson_category VARCHAR, name VARCHAR) |
SELECT AVG(lost) FROM table_name_32 WHERE played > 14 | what is the average lost when played is more than 14? | CREATE TABLE table_name_32 (
lost INTEGER,
played INTEGER
) |
SELECT AVG(week) FROM table_name_91 WHERE result = "l 15-13" | In what week was the Result L 15-13? | CREATE TABLE table_name_91 (week INTEGER, result VARCHAR) |
SELECT common_name FROM table_15417439_1 WHERE accession_number = "XP_852505.1" | What kind of animal corresponds to the accession number xp_852505.1? | CREATE TABLE table_15417439_1 (common_name VARCHAR, accession_number VARCHAR) |
SELECT demographic.dod FROM demographic WHERE demographic.name = "Kelly Gallardo" | what is date of death of subject name kelly gallardo? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... |
SELECT SUM(attendance) FROM table_name_51 WHERE opponent = "dallas cowboys" AND week > 5 | What is the Attendance with Opponent Dallas Cowboys in a Week greater than 5? | CREATE TABLE table_name_51 (attendance INTEGER, opponent VARCHAR, week VARCHAR) |
SELECT similarity FROM table_15417439_1 WHERE genus_species = "Sus scrofa" | How similar is the genus/species sus scrofa? | CREATE TABLE table_15417439_1 (similarity VARCHAR, genus_species VARCHAR) |
SELECT date FROM table_name_36 WHERE venue = "gold coast convention centre" | Which date had a venue of the Gold Coast Convention Centre? | CREATE TABLE table_name_36 (
date VARCHAR,
venue VARCHAR
) |
SELECT COUNT(points) FROM table_name_89 WHERE engine = "maserati v12" AND year = 1968 | How many points for maserati v12 engines in 1968? | CREATE TABLE table_name_89 (points VARCHAR, engine VARCHAR, year VARCHAR) |
SELECT identity FROM table_15417439_1 WHERE genus_species = "Arabidopsis thaliana" | What identities do the genus/species arabidopsis thaliana have? | CREATE TABLE table_15417439_1 (identity VARCHAR, genus_species VARCHAR) |
SELECT "Result" FROM table_18238 WHERE "District" = 'Virginia 3' | What was the result of the election in the Virginia 3 district? | CREATE TABLE table_18238 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) |
SELECT entrant FROM table_name_28 WHERE year < 1963 AND points < 3 | What entrant had less than 3 points before 1963? | CREATE TABLE table_name_28 (entrant VARCHAR, year VARCHAR, points VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.