answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT segment_c FROM table_15187735_3 WHERE segment_b = "Pottery" | Name the segment c for pottery | CREATE TABLE table_15187735_3 (segment_c VARCHAR, segment_b VARCHAR) |
SELECT * FROM customer_master_index ORDER BY cmi_details DESC | List all information about customer master index, and sort them by details in descending order. | CREATE TABLE customer_master_index (cmi_details VARCHAR) |
SELECT finalist FROM table_name_7 WHERE tournament = "miami" | Who was the finalist in Miami? | CREATE TABLE table_name_7 (
finalist VARCHAR,
tournament VARCHAR
) |
SELECT segment_d FROM table_15187735_3 WHERE segment_c = "Chicken" | Name the segment d for chicken | CREATE TABLE table_15187735_3 (segment_d VARCHAR, segment_c VARCHAR) |
SELECT council_tax_id, cmi_cross_ref_id FROM parking_fines | List the council tax ids and their related cmi cross references of all the parking fines. | CREATE TABLE parking_fines (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR) |
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions | what is the total number of patients who were admitted to the hospital? | CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABL... |
SELECT segment_a FROM table_15187735_6 WHERE segment_c = "s Sailboard" | What is the Segment A for when Segment C is s Sailboard? | CREATE TABLE table_15187735_6 (segment_a VARCHAR, segment_c VARCHAR) |
SELECT COUNT(*) FROM rent_arrears | How many council taxes are collected for renting arrears ? | CREATE TABLE rent_arrears (Id VARCHAR) |
SELECT "Tie no" FROM table_8010 WHERE "Home team" = 'wigan athletic' | What is the tie number when Wigan Athletic is the home team? | CREATE TABLE table_8010 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) |
SELECT segment_b FROM table_15187735_6 WHERE segment_d = "s Hammock" | What is the Segment B when the Segment D is s Hammock? | CREATE TABLE table_15187735_6 (segment_b VARCHAR, segment_d VARCHAR) |
SELECT DISTINCT T2.source_system_code FROM customer_master_index AS T1 JOIN cmi_cross_references AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T1.cmi_details = 'Gottlieb , Becker and Wyman' | What are the distinct cross reference source system codes which are related to the master customer details 'Gottlieb, Becker and Wyman'? | CREATE TABLE customer_master_index (master_customer_id VARCHAR, cmi_details VARCHAR); CREATE TABLE cmi_cross_references (source_system_code VARCHAR, master_customer_id VARCHAR) |
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'sinus tachycardia' AND DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-4 year')) AS t1 JOIN ... | how many patients were prescribed 10 ml vial : calcium chloride 10 % iv soln during the same month after the diagnosis of sinus tachycardia, since 4 years ago? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
... |
SELECT netflix FROM table_15187735_6 WHERE segment_b = "s Highlighter" | What is the Netflix Episode when the Segment B is s Highlighter? | CREATE TABLE table_15187735_6 (netflix VARCHAR, segment_b VARCHAR) |
SELECT cmi_cross_ref_id FROM cmi_cross_references EXCEPT SELECT cmi_cross_ref_id FROM parking_fines | Which cmi cross reference id is not related to any parking taxes? | CREATE TABLE parking_fines (cmi_cross_ref_id VARCHAR); CREATE TABLE cmi_cross_references (cmi_cross_ref_id VARCHAR) |
SELECT COUNT("Losses") FROM table_39747 WHERE "Total" = '17' AND "Wins" > '10' | How many losses had a total of 17 and more than 10 wins? | CREATE TABLE table_39747 (
"Year" text,
"Total" real,
"Wins" real,
"Losses" real,
"No result" real,
"% Win" text
) |
SELECT location FROM table_15190346_2 WHERE _number = 1 | What is the location of #1? | CREATE TABLE table_15190346_2 (location VARCHAR, _number VARCHAR) |
SELECT DISTINCT source_system_code FROM cmi_cross_references WHERE source_system_code LIKE '%en%' | Which distinct source system code includes the substring 'en'? | CREATE TABLE cmi_cross_references (source_system_code VARCHAR) |
SELECT "Date" FROM table_49576 WHERE "Place" = 'chernivtsi' AND "Race winners" = 'etienne bax / kaspars stupelis' | What date has a place of chernivtsi, and a race winners of etienne bax / kaspars stupelis? What | CREATE TABLE table_49576 (
"Date" text,
"Place" text,
"Race winners" text,
"GP winner" text,
"Source" text
) |
SELECT stadium FROM table_15190346_2 WHERE bowl_game = "1994 Gator Bowl" | What stadium was the 1994 Gator Bowl in? | CREATE TABLE table_15190346_2 (stadium VARCHAR, bowl_game VARCHAR) |
SELECT COUNT(*) FROM party | How many parties are there? | CREATE TABLE party (Id VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "41" AND lab."CATEGORY" = "Chemistry" | how many patients whose age is less than 41 and lab test category is chemistry? | 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 stadium FROM table_15190346_2 WHERE attendance = "75,406" | What is the stadium where the attendance was 75,406? | CREATE TABLE table_15190346_2 (stadium VARCHAR, attendance VARCHAR) |
SELECT Party_Theme FROM party ORDER BY Number_of_hosts | List the themes of parties in ascending order of number of hosts. | CREATE TABLE party (Party_Theme VARCHAR, Number_of_hosts VARCHAR) |
SELECT demographic.age FROM demographic WHERE demographic.name = "Paul Edwards" | specify the age of patient 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (... |
SELECT MAX(_number) FROM table_15190346_2 WHERE attendance = "79,280" | What is the number of the bowl game when attendance was 79,280? | CREATE TABLE table_15190346_2 (_number INTEGER, attendance VARCHAR) |
SELECT Party_Theme, LOCATION FROM party | What are the themes and locations of parties? | CREATE TABLE party (Party_Theme VARCHAR, LOCATION VARCHAR) |
SELECT MIN("Field Goals") FROM table_25693 WHERE "Player" = 'Chantel Hilliard' | Name the least field goals for chantel hilliard | CREATE TABLE table_25693 (
"Player" text,
"Games Played" real,
"Minutes" real,
"Field Goals" real,
"Three Pointers" real,
"Free Throws" real,
"Rebounds" real,
"Assists" real,
"Blocks" real,
"Steals" real,
"Points" real
) |
SELECT attendance FROM table_15190346_2 WHERE location = "Gainesville, FL" | What was the attendance of the bowl game in Gainesville, Fl? | CREATE TABLE table_15190346_2 (attendance VARCHAR, location VARCHAR) |
SELECT First_year, Last_year FROM party WHERE Party_Theme = "Spring" OR Party_Theme = "Teqnology" | Show the first year and last year of parties with theme "Spring" or "Teqnology". | CREATE TABLE party (First_year VARCHAR, Last_year VARCHAR, Party_Theme VARCHAR) |
SELECT SUM(points) FROM table_name_53 WHERE year > 1993 AND entrant = "sasol jordan" | For the Entrant of Sasol Jordan, add up all the points with a Year larger than 1993. | CREATE TABLE table_name_53 (
points INTEGER,
year VARCHAR,
entrant VARCHAR
) |
SELECT COUNT(median_monthly_per_capita___labour_force_income__hkd_) FROM table_151994_1 WHERE population__2006_est_ = 365540 | Name the total number of median income for population 2006 for 365540 | CREATE TABLE table_151994_1 (median_monthly_per_capita___labour_force_income__hkd_ VARCHAR, population__2006_est_ VARCHAR) |
SELECT AVG(Number_of_hosts) FROM party | What is the average number of hosts for parties? | CREATE TABLE party (Number_of_hosts INTEGER) |
SELECT "Player" FROM table_50402 WHERE "New WNBA Team" = 'miami sol' AND "College/Country/Team" = 'north carolina state' | Who is the player who played for the Miami Sol and went to school at North Carolina State? | CREATE TABLE table_50402 (
"Pick" real,
"Player" text,
"Nationality" text,
"New WNBA Team" text,
"Former WNBA Team" text,
"College/Country/Team" text
) |
SELECT MIN(derby_county) AS Goals FROM table_15201666_3 | Name the minimum derby county goals | CREATE TABLE table_15201666_3 (derby_county INTEGER) |
SELECT LOCATION FROM party ORDER BY Number_of_hosts DESC LIMIT 1 | What is the location of the party with the most hosts? | CREATE TABLE party (LOCATION VARCHAR, Number_of_hosts VARCHAR) |
SELECT date FROM table_name_94 WHERE week < 9 AND result = "l 27-10" | What is the date where the result was L 27-10 in a week before week 9? | CREATE TABLE table_name_94 (
date VARCHAR,
week VARCHAR,
result VARCHAR
) |
SELECT MAX(derby_county) FROM table_15201666_3 | Name the most derby county | CREATE TABLE table_15201666_3 (derby_county INTEGER) |
SELECT Nationality, COUNT(*) FROM HOST GROUP BY Nationality | Show different nationalities along with the number of hosts of each nationality. | CREATE TABLE HOST (Nationality VARCHAR) |
SELECT "Vacator" FROM table_22348 WHERE "Date of successors formal installation" = 'May 11, 1966' | Who vacated his post when his successor was formally installed on May 11, 1966? | CREATE TABLE table_22348 (
"State (class)" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date of successors formal installation" text
) |
SELECT segment_b FROM table_15187735_9 WHERE segment_c = "British Police Helmets" | In episode 115 what is seen being made before British police helmets? | CREATE TABLE table_15187735_9 (segment_b VARCHAR, segment_c VARCHAR) |
SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 | Show the most common nationality of hosts. | CREATE TABLE HOST (Nationality VARCHAR) |
SELECT MIN("Cuts made") FROM table_42349 WHERE "Top-25" < '6' AND "Wins" < '0' | What is the lowest cuts made that had a Top-25 less than 6 and wins greater than 0? | CREATE TABLE table_42349 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) |
SELECT COUNT(segment_c) FROM table_15187735_9 WHERE segment_d = "Pedal Steel Guitars" | How many times was leather introduced before pedal steel guitars in episode 111? | CREATE TABLE table_15187735_9 (segment_c VARCHAR, segment_d VARCHAR) |
SELECT Nationality FROM HOST WHERE Age > 45 INTERSECT SELECT Nationality FROM HOST WHERE Age < 35 | Show the nations that have both hosts older than 45 and hosts younger than 35. | CREATE TABLE HOST (Nationality VARCHAR, Age INTEGER) |
SELECT MIN("Silver") FROM table_66454 WHERE "Nation" = 'germany' AND "Gold" > '4' | what is the least silver for germany when gold is more than 4? | CREATE TABLE table_66454 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT uk_broadcast_date FROM table_15211468_1 WHERE countries_visited = "USA" | What was the UK broadcast date for the episode which visited USA? | CREATE TABLE table_15211468_1 (uk_broadcast_date VARCHAR, countries_visited VARCHAR) |
SELECT T3.Party_Theme, T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID | Show the themes of parties and the names of the party hosts. | CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE party (Party_Theme VARCHAR, Party_ID VARCHAR) |
SELECT competition FROM table_1233026_4 WHERE aggregate = "1–4" | What is the competition when aggregate is 1 4? | CREATE TABLE table_1233026_4 (
competition VARCHAR,
aggregate VARCHAR
) |
SELECT countries_visited FROM table_15211468_1 WHERE presenter = "Brian B. Thompson" | What countries are visited in the episode presented by Brian B. Thompson? | CREATE TABLE table_15211468_1 (countries_visited VARCHAR, presenter VARCHAR) |
SELECT T3.Location, T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID ORDER BY T2.Age | Show the locations of parties and the names of the party hosts in ascending order of the age of the host. | CREATE TABLE party (Location VARCHAR, Party_ID VARCHAR); CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR, Age VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR) |
SELECT MAX(points) FROM table_name_42 WHERE chassis = "focus rs wrc 08 and 09" AND stage_wins > 91 | what is the highest points when the chassis is focus rs wrc 08 and 09 and the stage wins is more than 91? | CREATE TABLE table_name_42 (
points INTEGER,
chassis VARCHAR,
stage_wins VARCHAR
) |
SELECT episode_title FROM table_15211468_1 WHERE episode_no = "#1.4" | What is the episode title for the episode numbered #1.4? | CREATE TABLE table_15211468_1 (episode_title VARCHAR, episode_no VARCHAR) |
SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T2.Age > 50 | Show the locations of parties with hosts older than 50. | CREATE TABLE party (Location VARCHAR, Party_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE HOST (Host_ID VARCHAR, Age INTEGER) |
SELECT score FROM table_name_59 WHERE player = "eduardo romero" | What was Eduardo Romero's score? | CREATE TABLE table_name_59 (
score VARCHAR,
player VARCHAR
) |
SELECT social_democratic_party FROM table_152358_3 WHERE control = "labour" | Name the social democratic party for labour | CREATE TABLE table_152358_3 (social_democratic_party VARCHAR, control VARCHAR) |
SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T3.Number_of_hosts > 20 | Show the host names for parties with number of hosts greater than 20. | CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE party (Party_ID VARCHAR, Number_of_hosts INTEGER) |
SELECT "Mascot" FROM table_65664 WHERE "City" = 'hammond' AND "School" = 'hammond tech' | What is the mascot of Hammond Tech? | CREATE TABLE table_65664 (
"School" text,
"City" text,
"Mascot" text,
"County" text,
"Year joined" real,
"Previous Conference" text,
"Year Left" real,
"Conference Joined" text
) |
SELECT written_by FROM table_15284274_1 WHERE directed_by = "Will Waring" AND no_in_season = 11 | Who wrote episode 11, of which was directed by Will Waring? | CREATE TABLE table_15284274_1 (written_by VARCHAR, directed_by VARCHAR, no_in_season VARCHAR) |
SELECT Name, Nationality FROM HOST ORDER BY Age DESC LIMIT 1 | Show the name and the nationality of the oldest host. | CREATE TABLE HOST (Name VARCHAR, Nationality VARCHAR, Age VARCHAR) |
SELECT MIN(wins) FROM table_name_80 WHERE points > 113 AND rank = "4th" | What is the lowest number of wins with more than 113 points in 4th rank? | CREATE TABLE table_name_80 (
wins INTEGER,
points VARCHAR,
rank VARCHAR
) |
SELECT written_by FROM table_15284274_1 WHERE directed_by = "Peter Woeste" | Who wrote the episode directed by Peter Woeste? | CREATE TABLE table_15284274_1 (written_by VARCHAR, directed_by VARCHAR) |
SELECT Name FROM HOST WHERE NOT Host_ID IN (SELECT Host_ID FROM party_host) | List the names of hosts who did not serve as a host of any party in our record. | CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR); CREATE TABLE party_host (Name VARCHAR, Host_ID VARCHAR) |
SELECT COUNT(*) FROM table_204_360 WHERE "gold" = 'brazil' | how many gold 's has brazil won ? | CREATE TABLE table_204_360 (
id number,
"year" number,
"host" text,
"gold" text,
"silver" text,
"bronze" text
) |
SELECT director FROM table_15277629_1 WHERE original_title = "Pecado Mortal" | Who was the director of Pecado Mortal | CREATE TABLE table_15277629_1 (director VARCHAR, original_title VARCHAR) |
SELECT region_code, region_name FROM region ORDER BY region_code | Show all region code and region name sorted by the codes. | CREATE TABLE region (region_code VARCHAR, region_name VARCHAR) |
SELECT "Round" FROM table_3277 WHERE "Against" = 'Austria' | What kind of round was played when Hanne Skak Jensen faced Austria? | CREATE TABLE table_3277 (
"Edition" real,
"Zone" text,
"Round" text,
"Against" text,
"Surface" text,
"Opponent" text,
"Outcome" text,
"Result" text
) |
SELECT original_title FROM table_15277629_1 WHERE director = "Bruno Barreto" AND year__ceremony_ = 1989 | What was the original title of the Bruno Barreto film in 1989 | CREATE TABLE table_15277629_1 (original_title VARCHAR, director VARCHAR, year__ceremony_ VARCHAR) |
SELECT region_name FROM region ORDER BY region_name | List all region names in alphabetical order. | CREATE TABLE region (region_name VARCHAR) |
SELECT "Type" FROM table_357 WHERE "Name" = 'Sussex' | What was the type of sussex? | CREATE TABLE table_357 (
"L&CR No." real,
"Type" text,
"Manufacturer" text,
"Delivered" text,
"Name" text,
"Jt. Cttee No." real,
"1845 disposal" text
) |
SELECT result FROM table_15277629_1 WHERE director = "Fernando Meirelles" | What was the result for director Fernando Meirelles | CREATE TABLE table_15277629_1 (result VARCHAR, director VARCHAR) |
SELECT region_name FROM region WHERE region_name <> 'Denmark' | Show names for all regions except for Denmark. | CREATE TABLE region (region_name VARCHAR) |
SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20066) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.itemid IN (... | when was patient 20066's arterial bp [diastolic] first measured less than 43.0 on the first icu visit? | CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code... |
SELECT original_title FROM table_15277629_1 WHERE director = "Suzana Amaral" | Name the original title of the Suzana Amaral film | CREATE TABLE table_15277629_1 (original_title VARCHAR, director VARCHAR) |
SELECT COUNT(*) FROM storm WHERE Number_Deaths > 0 | How many storms had death records? | CREATE TABLE storm (Number_Deaths INTEGER) |
SELECT SUM(amount_settled) FROM settlements | What is the total amount of settlement made for all the settlements? | CREATE TABLE claims (
claim_id number,
policy_id number,
date_claim_made time,
date_claim_settled time,
amount_claimed number,
amount_settled number
)
CREATE TABLE customers (
customer_id number,
customer_details text
)
CREATE TABLE customer_policies (
policy_id number,
custome... |
SELECT COUNT(province) FROM table_152834_2 WHERE county = "Fenghuang" | If the country is fenghuang how many provinces are there? | CREATE TABLE table_152834_2 (province VARCHAR, county VARCHAR) |
SELECT name, dates_active, number_deaths FROM storm WHERE number_deaths >= 1 | List name, dates active, and number of deaths for all storms with at least 1 death. | CREATE TABLE storm (name VARCHAR, dates_active VARCHAR, number_deaths VARCHAR) |
SELECT DISTINCT cite.citedpaperid, COUNT(cite.citedpaperid) FROM author, cite, paper, writes WHERE author.authorname = 'jeff dean' AND paper.paperid = cite.citedpaperid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid GROUP BY cite.citedpaperid ORDER BY COUNT(cite.citedpaperid) DESC | What is the highest cited paper by jeff dean ? | CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE author (
authorid int,
authorname varchar... |
SELECT group_a FROM table_15290638_1 WHERE group_d = "Indiana" | Who is in group a when indiana is in group d? | CREATE TABLE table_15290638_1 (group_a VARCHAR, group_d VARCHAR) |
SELECT AVG(damage_millions_USD), MAX(damage_millions_USD) FROM storm WHERE max_speed > 1000 | Show the average and maximum damage for all storms with max speed higher than 1000. | CREATE TABLE storm (damage_millions_USD INTEGER, max_speed INTEGER) |
SELECT MIN(rank) FROM table_name_37 WHERE total = 8 AND nation = "hungary" AND silver > 2 | What is the lowest rank of Hungary where there was a total of 8 medals, including 2 silver? | CREATE TABLE table_name_37 (
rank INTEGER,
silver VARCHAR,
total VARCHAR,
nation VARCHAR
) |
SELECT group_c FROM table_15290638_1 WHERE group_d = "Wisconsin" | Who is in group c when wisconsin is in group d? | CREATE TABLE table_15290638_1 (group_c VARCHAR, group_d VARCHAR) |
SELECT SUM(number_deaths), SUM(damage_millions_USD) FROM storm WHERE max_speed > (SELECT AVG(max_speed) FROM storm) | What is the total number of deaths and damage for all storms with a max speed greater than the average? | CREATE TABLE storm (number_deaths INTEGER, damage_millions_USD INTEGER, max_speed INTEGER) |
SELECT SUM(week) FROM table_name_24 WHERE result = "w 20–6" | How many weeks had a Result of w 20 6? | CREATE TABLE table_name_24 (
week INTEGER,
result VARCHAR
) |
SELECT group_c FROM table_15290638_1 WHERE group_e = "Iowa" | Who is in group c when iowa is in group e? | CREATE TABLE table_15290638_1 (group_c VARCHAR, group_e VARCHAR) |
SELECT name, damage_millions_USD FROM storm ORDER BY max_speed DESC | List name and damage for all storms in a descending order of max speed. | CREATE TABLE storm (name VARCHAR, damage_millions_USD VARCHAR, max_speed VARCHAR) |
SELECT SUM("Attendance") FROM table_78334 WHERE "Result" = 'w 35-14' | What is the combined attendance of all games that had a result of w 35-14? | CREATE TABLE table_78334 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) |
SELECT old_bulgarian_names FROM table_15275060_1 WHERE BULGARIAN_NAME(Transliteration) = Yuni | Name the old bulgarian names for yuni | CREATE TABLE table_15275060_1 (old_bulgarian_names VARCHAR, Yuni VARCHAR, Transliteration VARCHAR) |
SELECT COUNT(DISTINCT region_id) FROM affected_region | How many regions are affected? | CREATE TABLE affected_region (region_id VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2111" AND lab.itemid = "51446" | how many patients whose admission year is less than 2111 and item id is 51446? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... |
SELECT old_bulgarian_names FROM table_15275060_1 WHERE BULGARIAN_NAME(Transliteration) = Yanuari | Name the old bulgarian names for yanuari | CREATE TABLE table_15275060_1 (old_bulgarian_names VARCHAR, Yanuari VARCHAR, Transliteration VARCHAR) |
SELECT region_name FROM region WHERE NOT region_id IN (SELECT region_id FROM affected_region) | Show the name for regions not affected. | CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_name VARCHAR, region_id VARCHAR) |
SELECT "whitworth size (in)" FROM table_204_828 WHERE id = (SELECT id FROM table_204_828 WHERE "whitworth size (in)" = '1/8') + 1 | what is the next whitworth size -lrb- in -rrb- below 1/8 ? | CREATE TABLE table_204_828 (
id number,
"whitworth size (in)" number,
"core diameter (in)" number,
"threads per inch" number,
"pitch (in)" number,
"tapping drill size" text
) |
SELECT bulgarian_name FROM table_15275060_1 WHERE BULGARIAN_NAME(Transliteration) = Mart | Name the bulgarian name for mart | CREATE TABLE table_15275060_1 (bulgarian_name VARCHAR, Mart VARCHAR, Transliteration VARCHAR) |
SELECT T1.region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id | Show the name for regions and the number of storms for each region. | CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR) |
SELECT COUNT(rank_by_average) FROM table_26375386_28 WHERE couple = "Tana and Stuart" | How many ranks by average for the couple Tana and Stuart? | CREATE TABLE table_26375386_28 (
rank_by_average VARCHAR,
couple VARCHAR
) |
SELECT listed_owner_s_ FROM table_1529793_1 WHERE driver_s_ = "Jeremy Mayfield" | Who owned the team Jeremy Mayfield raced for? | CREATE TABLE table_1529793_1 (listed_owner_s_ VARCHAR, driver_s_ VARCHAR) |
SELECT T1.name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id | List the name for storms and the number of affected regions for each storm. | CREATE TABLE affected_region (storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR) |
SELECT "Share of votes" FROM table_9551 WHERE "Number of NDC votes" = '3,567,021' | What is the share of votes with 3,567,021 NDC votes? | CREATE TABLE table_9551 (
"Election" real,
"Number of NDC votes" text,
"Share of votes" text,
"Seats" real,
"Outcome of election" text
) |
SELECT primary_sponsor_s_ FROM table_1529793_1 WHERE driver_s_ = "Jason Leffler" | Who is Jason Leffler's primary sponsor? | CREATE TABLE table_1529793_1 (primary_sponsor_s_ VARCHAR, driver_s_ VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.