answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT dance FROM table_name_55 WHERE year = 2004 | In 2004, what is the Dance? | CREATE TABLE table_name_55 (dance VARCHAR, year VARCHAR) |
SELECT department FROM table_17384764_1 WHERE qualification = "M.Phil(Maths)" | Which departments have M.Phil(Maths)? | CREATE TABLE table_17384764_1 (department VARCHAR, qualification VARCHAR) |
SELECT MIN("No. in series") FROM table_26899 WHERE "Title" = 'Guitar' | What episode number in the series is 'guitar'? | CREATE TABLE table_26899 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
) |
SELECT artist FROM table_name_52 WHERE draw = 1 | What artist had 1 draw? | CREATE TABLE table_name_52 (artist VARCHAR, draw VARCHAR) |
SELECT COUNT(designation) FROM table_17384764_1 WHERE experience = "20 years" | How many faculty members have 20 years of experience? | CREATE TABLE table_17384764_1 (designation VARCHAR, experience VARCHAR) |
SELECT school FROM table_name_71 WHERE round > 3 AND player = "jason odom" | Which school has more than 3 rounds with jason odom? | CREATE TABLE table_name_71 (
school VARCHAR,
round VARCHAR,
player VARCHAR
) |
SELECT iata FROM table_name_28 WHERE city = "jeddah" | Name the IATA for jeddah | CREATE TABLE table_name_28 (iata VARCHAR, city VARCHAR) |
SELECT power_provided FROM table_174151_5 WHERE transfer_speed__mb_s_ = "1250" | Name the power provided for transfer speed mb/s is 1250 | CREATE TABLE table_174151_5 (power_provided VARCHAR, transfer_speed__mb_s_ VARCHAR) |
SELECT MAX("Year") FROM table_56372 WHERE "Entrant" = 'ligier gitanes blondes' | what is the most recent year for a ligier gitanes blondes | CREATE TABLE table_56372 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Pts." real
) |
SELECT iata FROM table_name_80 WHERE city = "jessore" | Name the IATA for jessore | CREATE TABLE table_name_80 (iata VARCHAR, city VARCHAR) |
SELECT devices_per_channel FROM table_174151_5 WHERE raw_bandwidth__mbit_s_ = 2560 | Name the devices per channel for 2560 | CREATE TABLE table_174151_5 (devices_per_channel VARCHAR, raw_bandwidth__mbit_s_ VARCHAR) |
SELECT year, AVG(attendance) FROM home_game ORDER BY year | Can you draw the trend of avg(attendance) over the year? and display in ascending order by the year. | CREATE TABLE appearances (
year INTEGER,
team_id TEXT,
league_id TEXT,
player_id TEXT,
g_all NUMERIC,
gs NUMERIC,
g_batting INTEGER,
g_defense NUMERIC,
g_p INTEGER,
g_c INTEGER,
g_1b INTEGER,
g_2b INTEGER,
g_3b INTEGER,
g_ss INTEGER,
g_lf INTEGER,
g_cf INT... |
SELECT city FROM table_name_97 WHERE country = "thailand" | Name the city for thailand | CREATE TABLE table_name_97 (city VARCHAR, country VARCHAR) |
SELECT power_provided FROM table_174151_5 WHERE transfer_speed__mb_s_ = "300" AND max_cable_length__m_ = "10" | Name the power provided where transfer speed mb/s is 300 and max cable length of 10 | CREATE TABLE table_174151_5 (power_provided VARCHAR, transfer_speed__mb_s_ VARCHAR, max_cable_length__m_ VARCHAR) |
SELECT receipt_date, COUNT(receipt_date) FROM Documents ORDER BY receipt_date DESC | I want to see trend of how many receipt date by receipt date, and order by the X in desc please. | CREATE TABLE Employees (
employee_id INTEGER,
role_code CHAR(15),
employee_name VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Documents_Mailed (
document_id INTEGER,
mailed_to_address_id INTEGER,
mailing_date DATETIME
)
CREATE TABLE Draft_Copies (
document_id INTEGER,
dra... |
SELECT iata FROM table_name_20 WHERE icao = "wmkk" | Name the IATA of wmkk | CREATE TABLE table_name_20 (iata VARCHAR, icao VARCHAR) |
SELECT colorado FROM table_17425749_1 WHERE alaska = "Connecticut" | Name the colorado when alaska is connecticut | CREATE TABLE table_17425749_1 (colorado VARCHAR, alaska VARCHAR) |
SELECT 1956 AS _1968 FROM table_name_31 WHERE 1969 = "qf" | What did the tournament with a QF in 1969 get in 1956-1968? | CREATE TABLE table_name_31 (
Id VARCHAR
) |
SELECT date FROM table_name_88 WHERE away_team = "carlton" | When did the away team carlton play? | CREATE TABLE table_name_88 (date VARCHAR, away_team VARCHAR) |
SELECT california FROM table_17425749_1 WHERE alaska = "Tennessee" | Name the california where alaska tennessee | CREATE TABLE table_17425749_1 (california VARCHAR, alaska VARCHAR) |
SELECT "2012" FROM table_11461 WHERE "2011" = '1r' AND "2007" = 'a' AND "2010" = '1r' AND "2009" = 'a' | What is the 2012 value with 1r in 2011, 2007 of A, 2010 of 1r, and 2009 of A? | CREATE TABLE table_11461 (
"Tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) |
SELECT constructor FROM table_name_20 WHERE country = "ita" AND rank < 13 | Which constructor is from ITA with a rank less than 13? | CREATE TABLE table_name_20 (constructor VARCHAR, country VARCHAR, rank VARCHAR) |
SELECT date FROM table_17432028_1 WHERE score = "95-101" | Name the date for score of 95-101 | CREATE TABLE table_17432028_1 (date VARCHAR, score VARCHAR) |
SELECT "Away team score" FROM table_52116 WHERE "Home team" = 'hawthorn' | What is the away side score when hawthorn is the home side? | CREATE TABLE table_52116 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT opponent FROM table_name_25 WHERE week = 4 | Who was the opponent in the Week 4 game? | CREATE TABLE table_name_25 (opponent VARCHAR, week VARCHAR) |
SELECT high_rebounds FROM table_17432028_1 WHERE date = "March 15" | Name the high rebounds for march 15 | CREATE TABLE table_17432028_1 (high_rebounds VARCHAR, date VARCHAR) |
SELECT "Viewers (in millions)" FROM table_73451 WHERE "Title" = 'Father''s Day' | How many millions of people viewed 'Father's Day'? | CREATE TABLE table_73451 (
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"Viewers (in millions)" text
) |
SELECT co_drivers FROM table_name_76 WHERE year < 2010 AND laps < 326 | Who are the co-drivers before 2010 with under 326 laps? | CREATE TABLE table_name_76 (co_drivers VARCHAR, year VARCHAR, laps VARCHAR) |
SELECT score FROM table_17432028_1 WHERE record = "2-5" | Name the score for record of 2-5 | CREATE TABLE table_17432028_1 (score VARCHAR, record VARCHAR) |
SELECT ties FROM table_name_38 WHERE wins = "0" | What is the tie with a win of 0? | CREATE TABLE table_name_38 (
ties VARCHAR,
wins VARCHAR
) |
SELECT co_drivers FROM table_name_45 WHERE laps < 329 AND class = "gt2" AND team = "risi competizione" AND pos = "dnf" | Who are the co-drivers the risi competizione gt2 class that went under 329 laps and recorded a DNF? | CREATE TABLE table_name_45 (co_drivers VARCHAR, pos VARCHAR, team VARCHAR, laps VARCHAR, class VARCHAR) |
SELECT COUNT(school) FROM table_17429402_7 WHERE last_occ_championship = "2006" | How many schools won their last occ championship in 2006? | CREATE TABLE table_17429402_7 (school VARCHAR, last_occ_championship VARCHAR) |
SELECT "Owner" FROM table_66603 WHERE "Call sign" = 'cksb-8-fm' | Who owns CKSB-8-FM? | CREATE TABLE table_66603 (
"Frequency" text,
"Call sign" text,
"Branding" text,
"Format" text,
"Owner" text
) |
SELECT MAX(laps) FROM table_name_24 WHERE time_retired = "+2 laps" AND driver = "felice bonetto" | Tell me the highest laps for time/retired of +2 laps and driver of felice bonetto | CREATE TABLE table_name_24 (laps INTEGER, time_retired VARCHAR, driver VARCHAR) |
SELECT years_of_participation FROM table_17429402_7 WHERE school = "Central Crossing" | What are the years of participation for central crossing school? | CREATE TABLE table_17429402_7 (years_of_participation VARCHAR, school VARCHAR) |
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", u.Id AS "user_link", u.Reputation, COUNT(p.Id) FROM Users AS u INNER JOIN Posts AS p ON p.OwnerUserId = u.Id INNER JOIN PostTags AS pt ON pt.PostId = p.Id INNER JOIN Tags AS t ON t.Id = pt.TagId WHERE t.TagName = '##tagname##' GROUP BY u.Reputation, u.Id ORDER... | [draft] Top users by Tag. | CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImage... |
SELECT driver FROM table_name_41 WHERE grid > 13 AND laps < 60 AND time_retired = "accident" | I want to know the driver when grid is greater than 13 and laps is less than 60 with time/retired of accident | CREATE TABLE table_name_41 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR) |
SELECT MIN(occ_championships) FROM table_17429402_7 WHERE last_outright_occ_championship = "2006" | What is the fewest number of occ championships for the team that last won an outright occ championship in 2006? | CREATE TABLE table_17429402_7 (occ_championships INTEGER, last_outright_occ_championship VARCHAR) |
SELECT "Date of successors formal installation" FROM table_25071 WHERE "Reason for change" = 'Resigned December 4, 1819' | What is the date of successors formal installation when the reason for change is resigned december 4, 1819? | CREATE TABLE table_25071 (
"State (class)" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date of successors formal installation" text
) |
SELECT album FROM table_name_45 WHERE year > 2007 | Name the album for years after 2007 | CREATE TABLE table_name_45 (album VARCHAR, year INTEGER) |
SELECT years_of_participation FROM table_17429402_7 WHERE school = "Pickerington North" | What are the years of participation for pickerington north? | CREATE TABLE table_17429402_7 (years_of_participation VARCHAR, school VARCHAR) |
SELECT MAX("Year") FROM table_14572 WHERE "Venue" = 'lübker golf resort' | What is the latest Year, when the Venue is L bker Golf Resort? | CREATE TABLE table_14572 (
"Year" real,
"Venue" text,
"Winner" text,
"Country" text,
"Score" text
) |
SELECT score FROM table_name_33 WHERE date = "october 17, 2007" | What was the score on october 17, 2007? | CREATE TABLE table_name_33 (score VARCHAR, date VARCHAR) |
SELECT event FROM table_17417383_6 WHERE athlete = "Redouane Bouchtouk" | Name the event for redouane bouchtouk | CREATE TABLE table_17417383_6 (event VARCHAR, athlete VARCHAR) |
SELECT successor FROM table_2159537_3 WHERE reason_for_change = "Died January 16, 1944" | Who was the successor for the reason for change being 'died January 16, 1944? | CREATE TABLE table_2159537_3 (
successor VARCHAR,
reason_for_change VARCHAR
) |
SELECT competition FROM table_name_71 WHERE score = "3-0" | What was the competition for score of 3-0 | CREATE TABLE table_name_71 (competition VARCHAR, score VARCHAR) |
SELECT round_of_16 FROM table_17417383_6 WHERE quarterfinals = "Did not advance" AND event = "Light flyweight" | Name the round 16 for did not advance and light flyweight | CREATE TABLE table_17417383_6 (round_of_16 VARCHAR, quarterfinals VARCHAR, event VARCHAR) |
SELECT demographic.diagnosis, demographic.dischtime FROM demographic WHERE demographic.subject_id = "71798" | what is primary disease and discharge time of subject id 71798? | 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 date FROM table_name_93 WHERE turkey_scorers = "nihat kahveci" | I want the date for nihat kahveci | CREATE TABLE table_name_93 (date VARCHAR, turkey_scorers 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 "Electorate" FROM table_48202 WHERE "Party" = 'country' AND "State" = 'wa' AND "Member" = 'john hallett' | What is Electorate, when Party is 'Country', when State is 'WA', and when Member is 'John Hallett'? | CREATE TABLE table_48202 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"Term of office" text
) |
SELECT MIN(pick__number) FROM table_name_8 WHERE reg_gp < 0 | What is the smallest pick with a Reg GP less than 0? | CREATE TABLE table_name_8 (pick__number INTEGER, reg_gp INTEGER) |
SELECT quarterfinals FROM table_17427004_7 WHERE athlete = "Abdelhafid Benchebla" | Who did Abdelhafid Benchebla face in the quarterfinals? | CREATE TABLE table_17427004_7 (quarterfinals VARCHAR, athlete VARCHAR) |
SELECT "Total" FROM table_59377 WHERE "Finish" = 't44' | What is the total when the finish was t44? | CREATE TABLE table_59377 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
) |
SELECT COUNT(pick__number) FROM table_name_80 WHERE reg_gp > 0 | What is the total of pick numbers with a Reg GP larger than 0? | CREATE TABLE table_name_80 (pick__number VARCHAR, reg_gp INTEGER) |
SELECT round_of_32 FROM table_17427004_7 WHERE athlete = "Nabil Kassel" | Who did Nabil Kassel face in the Round of 32? | CREATE TABLE table_17427004_7 (round_of_32 VARCHAR, athlete VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" AND lab.fluid = "Urine" | how many patients are primarily suffering from brain mass; intracranial hemorrhage and their lab test fluid is urine? | 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
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... |
SELECT SUM(points) FROM table_name_85 WHERE faults = "refusal" AND rider = "h.r.h. prince abdullah al-soud" | What is the total points when there is a refusal fault and the rider is H.R.H. Prince Abdullah Al-Soud? | CREATE TABLE table_name_85 (points INTEGER, faults VARCHAR, rider VARCHAR) |
SELECT semifinals FROM table_17427004_7 WHERE athlete = "Hamza Kramou" | How did Hamza Kramou fare in the semifinals? | CREATE TABLE table_17427004_7 (semifinals VARCHAR, athlete VARCHAR) |
SELECT "Location Attendance" FROM table_29926 WHERE "High assists" = 'Will Bynum (5)' | Where was the game in which Will Bynum (5) did the high assists played? | CREATE TABLE table_29926 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT COUNT(points) FROM table_name_96 WHERE horse = "chippison" | What is the total points when the horse is Chippison? | CREATE TABLE table_name_96 (points VARCHAR, horse VARCHAR) |
SELECT winter_olympics FROM table_174491_1 WHERE fis_nordic_world_ski_championships = "1982" | In what year did the winner of the FIS championship in 1982 win the Winter Olympics? | CREATE TABLE table_174491_1 (winter_olympics VARCHAR, fis_nordic_world_ski_championships VARCHAR) |
SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of hire_date and the average of salary bin hire_date by weekday. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,... |
SELECT total_time___s__ FROM table_name_53 WHERE horse = "pinot grigio" | What is the total time (s) for the horse Pinot Grigio? | CREATE TABLE table_name_53 (total_time___s__ VARCHAR, horse VARCHAR) |
SELECT winter_olympics FROM table_174491_1 WHERE winner = "Thorleif Haug" | What year did Thorleif Haug win the Winter Olympics? | CREATE TABLE table_174491_1 (winter_olympics VARCHAR, winner VARCHAR) |
SELECT MAX(bush_number) FROM table_name_85 WHERE others_percentage = "1.7%" AND others_number < 75 AND kerry_number > 1 OFFSET 524 | What is the highest Bush#, when Others% is '1.7%', when Others# is less than 75, and when Kerry# is greater than 1,524? | CREATE TABLE table_name_85 (
bush_number INTEGER,
kerry_number VARCHAR,
others_percentage VARCHAR,
others_number VARCHAR
) |
SELECT AVG(points) FROM table_name_93 WHERE time___s__ = "81.78" | What is the average amount of points when the time (s) is 81.78? | CREATE TABLE table_name_93 (points INTEGER, time___s__ VARCHAR) |
SELECT fis_nordic_world_ski_championships FROM table_174491_1 WHERE country = "Norway" AND holmenkollen = "1958" | What year did the man from Norway who won the Holmenkollen in 1958 win the FIS Nordic World Ski Championships? | CREATE TABLE table_174491_1 (fis_nordic_world_ski_championships VARCHAR, country VARCHAR, holmenkollen VARCHAR) |
SELECT COUNT("Silver") FROM table_76372 WHERE "Nation" = 'russia' | How many total silvers does Russia have? | CREATE TABLE table_76372 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT position FROM table_name_59 WHERE school = "glades day school" | What is the position of the player from Glades Day School? | CREATE TABLE table_name_59 (position VARCHAR, school VARCHAR) |
SELECT holmenkollen FROM table_174491_2 WHERE fis_nordic_world_ski_championships = "1982" | What is the holmenkollen for the 1982 FIS Nordic World Ski Championships? | CREATE TABLE table_174491_2 (holmenkollen VARCHAR, fis_nordic_world_ski_championships VARCHAR) |
SELECT team FROM table_27091128_2 WHERE replaced_by = "Ercan Ertemçöz" | What team's manager was replaced by Ercan Ertem z? | CREATE TABLE table_27091128_2 (
team VARCHAR,
replaced_by VARCHAR
) |
SELECT position FROM table_name_78 WHERE college = "notre dame" | What is the position of the player who went to college of notre dame? | CREATE TABLE table_name_78 (position VARCHAR, college VARCHAR) |
SELECT fis_nordic_world_ski_championships FROM table_174491_2 WHERE winner = "Birger Ruud" | What years did Birger Ruud win the FIS Nordic World Ski Championships? | CREATE TABLE table_174491_2 (fis_nordic_world_ski_championships VARCHAR, winner VARCHAR) |
SELECT notes FROM table_20174050_7 WHERE reader = "Briggs, Nicholas Nicholas Briggs" AND title = "Paradox Lost" | If the title is Paradox Lost and the reader is Briggs, Nicholas Nicholas Briggs, what are all of the notes? | CREATE TABLE table_20174050_7 (
notes VARCHAR,
reader VARCHAR,
title VARCHAR
) |
SELECT school FROM table_name_2 WHERE college = "michigan" AND hometown = "wheaton, illinois" | What is the school of the player who went to the college of michigan and originally comes from Wheaton, Illinois? | CREATE TABLE table_name_2 (school VARCHAR, college VARCHAR, hometown VARCHAR) |
SELECT winter_olympics FROM table_174491_2 WHERE winner = "Karl Schnabl" | What year did Karl Schnabl win the Winter Olympics? | CREATE TABLE table_174491_2 (winter_olympics VARCHAR, winner VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "LEFT COLON CANCER" AND lab.fluid = "Urine" | what is the number of patients whose primary disease is left colon cancer and lab test fluid is urine? | 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 chassis FROM table_name_12 WHERE driver = "otto stuppacher" | What Chassis was driven by Otto Stuppacher? | CREATE TABLE table_name_12 (chassis VARCHAR, driver VARCHAR) |
SELECT fis_nordic_world_ski_championships FROM table_174491_2 WHERE holmenkollen = "1976" | What is the FIS Nordic World Ski Championships when holmenkollen is 1976? | CREATE TABLE table_174491_2 (fis_nordic_world_ski_championships VARCHAR, holmenkollen VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2197" AND lab.fluid = "Blood" | count the number of patients whose admission year is less than 2197 and lab test fluid is blood? | 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
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... |
SELECT driver FROM table_name_1 WHERE chassis = "n175" AND rounds = "13" | Who drove the car with the n175 chassis in round 13? | CREATE TABLE table_name_1 (driver VARCHAR, chassis VARCHAR, rounds VARCHAR) |
SELECT winter_olympics FROM table_174491_2 WHERE holmenkollen = "1957, 1960" | What year is Winter Olympics when Holmenkollen is 1957, 1960? | CREATE TABLE table_174491_2 (winter_olympics VARCHAR, holmenkollen VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND diagnoses.long_title = "Dehydration" | what is the number of patients whose discharge location is disch-tran to psych hosp and diagnoses long title is dehydration? | 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 chassis FROM table_name_4 WHERE driver = "john watson" | What chassis did John Watson drive? | CREATE TABLE table_name_4 (chassis VARCHAR, driver VARCHAR) |
SELECT part_4 FROM table_1745843_7 WHERE part_3 = "borgen" | What's the part 4 for the verb whose part 3 is borgen? | CREATE TABLE table_1745843_7 (part_4 VARCHAR, part_3 VARCHAR) |
SELECT men_doubles FROM table_14903355_2 WHERE womens_doubles = "Caroline Persyn Smids" | Name the men doubles for caroline persyn smids | CREATE TABLE table_14903355_2 (
men_doubles VARCHAR,
womens_doubles VARCHAR
) |
SELECT right_ascension___j2000__ FROM table_name_53 WHERE constellation = "sextans" AND declination___j2000__ = "°28′01″" | what is the right ascension (j2000) when the constellation is sextans and the declination (j2000) is °28′01″? | CREATE TABLE table_name_53 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, declination___j2000__ VARCHAR) |
SELECT verb_meaning FROM table_1745843_7 WHERE part_1 = "slapen" | What's the meaning of the verb whose part 1 is slapen? | CREATE TABLE table_1745843_7 (verb_meaning VARCHAR, part_1 VARCHAR) |
SELECT "Winning team" FROM table_35641 WHERE "Date" = 'january 28, 2006' | What is the Winning team on january 28, 2006? | CREATE TABLE table_35641 (
"Date" text,
"Site" text,
"Sport" text,
"Winning team" text,
"Series" text
) |
SELECT constellation FROM table_name_10 WHERE right_ascension___j2000__ = "10h18m58.4s" | what is the constellation when the Right ascension ( J2000 ) is 10h18m58.4s? | CREATE TABLE table_name_10 (constellation VARCHAR, right_ascension___j2000__ VARCHAR) |
SELECT class FROM table_1745843_7 WHERE part_4 = "gelopen" | In what class does the verb with part 4 gelopen belong to? | CREATE TABLE table_1745843_7 (class VARCHAR, part_4 VARCHAR) |
SELECT "Region" FROM table_80341 WHERE "Date" = 'may 27, 2009' | What was the region of the release from May 27, 2009? | CREATE TABLE table_80341 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) |
SELECT MAX(ngc_number) FROM table_name_51 WHERE declination___j2000__ = "°25′26″" | what is the highest ngc number when the declination (j2000) is °25′26″? | CREATE TABLE table_name_51 (ngc_number INTEGER, declination___j2000__ VARCHAR) |
SELECT part_1 FROM table_1745843_7 WHERE part_4 = "gevroren" | What's part 1 of the verb whose part 4 is gevroren? | CREATE TABLE table_1745843_7 (part_1 VARCHAR, part_4 VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Retain plastic fragments" | what is the number of patients whose diagnoses short title is retain plastic fragments? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... |
SELECT home_team AS score FROM table_name_85 WHERE home_team = "collingwood" | What is the score for Collingwood as the home team? | CREATE TABLE table_name_85 (home_team VARCHAR) |
SELECT COUNT(verb_meaning) FROM table_1745843_7 WHERE part_4 = "gegeven" | How many different meanings does the verb with part 4 gegeven have? | CREATE TABLE table_1745843_7 (verb_meaning VARCHAR, part_4 VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.religion = "CHRISTIAN SCIENTIST" AND demographic.age < "54" | how many christian scientist patients were aged below 54 years? | 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 home_team AS score FROM table_name_15 WHERE venue = "princes park" | What did the home team score at Princes Park? | CREATE TABLE table_name_15 (home_team VARCHAR, venue VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.