answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT SUM(interview) FROM table_name_4 WHERE average < 8.697 AND evening_gown < 8.73 AND state = "north dakota" AND swimsuit > 8.41 | What is the sum of the interview scores from North Dakota that have averages less than 8.697, evening gown scores less than 8.73, and swimsuit scores greater than 8.41? | CREATE TABLE table_name_4 (interview INTEGER, swimsuit VARCHAR, state VARCHAR, average VARCHAR, evening_gown VARCHAR) |
SELECT institution FROM table_1974482_1 WHERE nickname = "Statesmen" | Name the institution for statesmen | CREATE TABLE table_1974482_1 (institution VARCHAR, nickname VARCHAR) |
SELECT COUNT(gold) FROM table_name_64 WHERE nation = "germany (ger)" AND rank < 15 | How many gold medals for germany (GER) having a rank less than 15? | CREATE TABLE table_name_64 (
gold VARCHAR,
nation VARCHAR,
rank VARCHAR
) |
SELECT SUM(swimsuit) FROM table_name_77 WHERE evening_gown < 8.77 AND state = "missouri" AND average < 8.823 | What is the sum of the swimsuit scores from Missouri that have evening gown scores less than 8.77 and average scores less than 8.823? | CREATE TABLE table_name_77 (swimsuit INTEGER, average VARCHAR, evening_gown VARCHAR, state VARCHAR) |
SELECT institution FROM table_1974482_1 WHERE nickname = "Yellowjackets" | Name the institution for yellowjackets | CREATE TABLE table_1974482_1 (institution VARCHAR, nickname VARCHAR) |
SELECT "Score" FROM table_37848 WHERE "Home" = 'vancouver' AND "Date" = 'february 16' | What score has vancouver as the home, and february 16 as the date? | CREATE TABLE table_37848 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) |
SELECT COUNT(swimsuit) FROM table_name_19 WHERE average < 8.823 AND evening_gown < 8.69 AND interview = 8.27 | What is the total number of swimsuit scores that have average scores less than 8.823, evening gown scores less than 8.69, and interview scores equal to 8.27? | CREATE TABLE table_name_19 (swimsuit VARCHAR, interview VARCHAR, average VARCHAR, evening_gown VARCHAR) |
SELECT type FROM table_1974482_1 WHERE institution = "Hobart College" | Name the type for hobart college | CREATE TABLE table_1974482_1 (type VARCHAR, institution VARCHAR) |
SELECT COUNT("english title") FROM table_204_307 | what is the total number of english titles ? | CREATE TABLE table_204_307 (
id number,
"year" number,
"english title" text,
"chinese title" text,
"role" text,
"notes" text
) |
SELECT MIN(swimsuit) FROM table_name_85 WHERE interview < 8.56 AND evening_gown > 8.54 | What is the lowest swimsuit score where the contestant scored less than 8.56 in the interview and greater than 8.54 in the evening gown? | CREATE TABLE table_name_85 (swimsuit INTEGER, interview VARCHAR, evening_gown VARCHAR) |
SELECT location FROM table_1974482_1 WHERE founded = 1829 | Name the location for 1829 | CREATE TABLE table_1974482_1 (location VARCHAR, founded VARCHAR) |
SELECT "Opponent" FROM table_15206 WHERE "Loss" = 'bell (6–9)' | Who was the opponent at the game that had a loss of Bell (6 9)? | CREATE TABLE table_15206 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) |
SELECT SUM(evening_gown) FROM table_name_4 WHERE interview < 8.77 AND swimsuit = 7.8 AND average < 8.2 | What is the sum of the evening gown scores where the interview score is less than 8.77, the swimsuit score is equal to 7.8, and the average score is less than 8.2? | CREATE TABLE table_name_4 (evening_gown INTEGER, average VARCHAR, interview VARCHAR, swimsuit VARCHAR) |
SELECT location FROM table_1974482_1 WHERE nickname = "Statesmen" | Name the location of statesmen | CREATE TABLE table_1974482_1 (location VARCHAR, nickname VARCHAR) |
SELECT "Away team score" FROM table_78319 WHERE "Home team" = 'essendon' | When Essendon was the Home Team, what was the Away Team score? | CREATE TABLE table_78319 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT SUM(attendance) FROM table_name_96 WHERE tie_no = "13" | What was the attendance for the game that has a tie number of 13? | CREATE TABLE table_name_96 (attendance INTEGER, tie_no VARCHAR) |
SELECT location FROM table_197446_1 WHERE term_ended = "January 3, 2011" | What location was the congressional service of which the term ended in January 3, 2011? | CREATE TABLE table_197446_1 (location VARCHAR, term_ended VARCHAR) |
SELECT MAX(no_in_season) FROM table_21165255_1 WHERE production_code = 4300062 | Name the number in season for 4300062 | CREATE TABLE table_21165255_1 (
no_in_season INTEGER,
production_code VARCHAR
) |
SELECT AVG(attendance) FROM table_name_82 WHERE away_team = "forest green rovers" | What is the average attendance when the Forest Green Rovers is the away team? | CREATE TABLE table_name_82 (attendance INTEGER, away_team VARCHAR) |
SELECT branch FROM table_197446_1 WHERE term_began = "January 3, 1985" | What branch was involved when the term began in January 3, 1985? | CREATE TABLE table_197446_1 (branch VARCHAR, term_began VARCHAR) |
SELECT "1965" FROM table_42325 WHERE "1967" = '7' | What is the value in 1965 when 7 is the value for 1967? | CREATE TABLE table_42325 (
"1965" text,
"1966" text,
"1967" text,
"1968" text,
"1969" text,
"1970" text,
"1971" text,
"1972" text
) |
SELECT SUM(grid) FROM table_name_48 WHERE rider = "troy corser" AND laps < 22 | What is the grid number for troy corser with under 22 laps? | CREATE TABLE table_name_48 (grid INTEGER, rider VARCHAR, laps VARCHAR) |
SELECT elected FROM table_197446_1 WHERE term_began = "January 3, 1989" | What year was the congressional service elected for a term beginning on January 3, 1989? | CREATE TABLE table_197446_1 (elected VARCHAR, term_began VARCHAR) |
SELECT cost_per_capita FROM table_12340907_1 WHERE municipality = "Courtenay" | What is the cost per capita in the Courtenay municipality? | CREATE TABLE table_12340907_1 (
cost_per_capita VARCHAR,
municipality VARCHAR
) |
SELECT rider FROM table_name_11 WHERE laps < 22 AND grid = 2 | What rider went under 22 laps with grid number 2? | CREATE TABLE table_name_11 (rider VARCHAR, laps VARCHAR, grid VARCHAR) |
SELECT office FROM table_197446_1 WHERE term_ended = "January 3, 1993" | What group was in office when the term ended in January 3, 1993? | CREATE TABLE table_197446_1 (office VARCHAR, term_ended VARCHAR) |
SELECT played FROM table_13564637_4 WHERE points_against = "321" | What is the played total when the points against was 321? | CREATE TABLE table_13564637_4 (
played VARCHAR,
points_against VARCHAR
) |
SELECT country_region FROM table_name_76 WHERE languages = "vietnamese" | What country speaks Vietnamese? | CREATE TABLE table_name_76 (country_region VARCHAR, languages VARCHAR) |
SELECT COUNT(term_began) FROM table_197446_1 WHERE term_ended = "January 3, 1989" | How many terms began when the term ended in January 3, 1989? | CREATE TABLE table_197446_1 (term_began VARCHAR, term_ended VARCHAR) |
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' | For those employees who was hired before 2002-06-21, find hire_date and the average of manager_id bin hire_date by weekday, and visualize them by a bar chart. | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(... |
SELECT COUNT(rank) FROM table_name_44 WHERE team = "250cc honda" AND time = "1:27.57.28" | What ranking did Team 250cc Honda end up in when it finished a race with a time of 1:27.57.28? | CREATE TABLE table_name_44 (rank VARCHAR, team VARCHAR, time VARCHAR) |
SELECT COUNT(total) FROM table_19744915_22 WHERE rank = 5 | How many different total points does the couple ranked at number 5 have? | CREATE TABLE table_19744915_22 (total VARCHAR, rank VARCHAR) |
SELECT COUNT("% change") FROM table_31341 WHERE "International tourism expenditure 2012" = '$83.7 billion' | How many countries spent $83.7 billion on international tourism in 2012? | CREATE TABLE table_31341 (
"Rank 2012" real,
"Country" text,
"UNWTO Region" text,
"International tourism expenditure 2011" text,
"International tourism expenditure 2012" text,
"% change" text
) |
SELECT constructor FROM table_name_57 WHERE grid = 8 | Tell me the constructor for grid of 8 | CREATE TABLE table_name_57 (constructor VARCHAR, grid VARCHAR) |
SELECT couple FROM table_19744915_22 WHERE vote_percentage = "21.843%" | What couple had vote percentage of 21.843%? | CREATE TABLE table_19744915_22 (couple VARCHAR, vote_percentage VARCHAR) |
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT procedures_icd.icd9_code FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 64873) AND DATETIME(procedures_icd.charttime) >= DATETIME(CURRENT_TI... | what procedure did patient 64873 undergo for the first time since 3 years ago? | CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... |
SELECT COUNT(grid) FROM table_name_10 WHERE driver = "heinz-harald frentzen" | I want the total number of Grids for heinz-harald frentzen | CREATE TABLE table_name_10 (grid VARCHAR, driver VARCHAR) |
SELECT MAX(judges) FROM table_19744915_22 WHERE rank = 5 | How many judges points did the couple ranked at number 5 have? | CREATE TABLE table_19744915_22 (judges INTEGER, rank VARCHAR) |
SELECT "Lansing (LAN)" FROM table_20700 WHERE "Saginaw (MBS)" = '$470.47' | At a Saginaw fare of $470.47, what is the fare to Lansing? | CREATE TABLE table_20700 (
"Year" real,
"Lansing (LAN)" text,
"Detroit (DTW)" text,
"Grand Rapids (GRR)" text,
"Flint (FNT)" text,
"Kalamazoo (AZO)" text,
"Saginaw (MBS)" text
) |
SELECT AVG(crowd) FROM table_name_97 WHERE home_team = "north melbourne" | What is the average crowd for the home team of North Melbourne? | CREATE TABLE table_name_97 (crowd INTEGER, home_team VARCHAR) |
SELECT couple FROM table_19744915_22 WHERE public < 2.0 | What couple had less than 2.0 points from the public? | CREATE TABLE table_19744915_22 (couple VARCHAR, public INTEGER) |
SELECT street_address FROM table_name_94 WHERE name = "life & casualty tower" | What is the address of the Life & Casualty Tower? | CREATE TABLE table_name_94 (
street_address VARCHAR,
name VARCHAR
) |
SELECT visitor FROM table_name_77 WHERE date = "12 march 2008" | Who was the visiting team on 12 March 2008? | CREATE TABLE table_name_77 (visitor VARCHAR, date VARCHAR) |
SELECT COUNT(result) FROM table_19744915_17 WHERE couple = "Ellery and Frankie" | What was the total result for couple Ellery and Frankie? | CREATE TABLE table_19744915_17 (result VARCHAR, couple VARCHAR) |
SELECT "Examples" FROM table_65 WHERE "Existential Question [ not in citation given ]" = 'Can I Love?' | Which examples ask the existential question 'Can I Love? | CREATE TABLE table_65 (
"Approximate Age" text,
"Virtues" text,
"Psycho Social Crisis" text,
"Significant Relationship" text,
"Existential Question [ not in citation given ]" text,
"Examples" text
) |
SELECT home FROM table_name_70 WHERE visitor = "trail blazers" | Who was the home team where Trail Blazers were the visitor? | CREATE TABLE table_name_70 (home VARCHAR, visitor VARCHAR) |
SELECT MIN(rank) FROM table_19744915_17 WHERE vote_percentage = "2.111%" | If the vote percentage is 2.111%, what was the minimum rank? | CREATE TABLE table_19744915_17 (rank INTEGER, vote_percentage VARCHAR) |
SELECT "Akkadian" FROM table_74052 WHERE "Geez" = 'libb' | if the geez is libb, what is the akkadian? | CREATE TABLE table_74052 (
"English" text,
"Proto-Semitic" text,
"Akkadian" text,
"Arabic" text,
"Aramaic" text,
"Hebrew" text,
"Geez" text,
"Mehri" text
) |
SELECT home FROM table_name_7 WHERE visitor = "bucks" AND date = "11 march 2008" | In the game on 11 March 2008 with a visiting team of Bucks, who was the home team? | CREATE TABLE table_name_7 (home VARCHAR, visitor VARCHAR, date VARCHAR) |
SELECT MAX(rank) FROM table_19744915_17 WHERE total = 17 | If the total is 17, what was the maximum rank amount? | CREATE TABLE table_19744915_17 (rank INTEGER, total VARCHAR) |
SELECT COUNT(DISTINCT job) FROM Person | How many type of jobs do they have? | CREATE TABLE Person (
job VARCHAR
) |
SELECT COUNT(laps) FROM table_name_18 WHERE driver = "robin montgomerie-charrington" AND grid < 15 | How many laps for robin montgomerie-charrington, and a Grid smaller than 15? | CREATE TABLE table_name_18 (laps VARCHAR, driver VARCHAR, grid VARCHAR) |
SELECT vote_percentage FROM table_19744915_17 WHERE couple = "Todd and Susie" | For couple Todd and Susie, what was the vote percentage? | CREATE TABLE table_19744915_17 (vote_percentage VARCHAR, couple VARCHAR) |
SELECT "Score" FROM table_3877 WHERE "Date" = 'October 16' | What is the score of the game played on october 16? | CREATE TABLE table_3877 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT AVG(total) FROM table_name_9 WHERE silver = 0 AND bronze < 0 | What is the mean number of totals with no silvers and a bronze number less than 0? | CREATE TABLE table_name_9 (total INTEGER, silver VARCHAR, bronze VARCHAR) |
SELECT couple FROM table_19744915_18 WHERE rank = 9 | When 9 is the rank who are the couple? | CREATE TABLE table_19744915_18 (couple VARCHAR, rank VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "1" AND lab.fluid = "Urine" | give me the number of patients whose days of hospital stay is greater than 1 and lab test fluid is urine? | 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 demographic ... |
SELECT MIN(silver) FROM table_name_76 WHERE rank < 4 AND bronze > 9 | What is the least number of Silvers with a ranking of less than 4 where the bronze number was larger than 9? | CREATE TABLE table_name_76 (silver INTEGER, rank VARCHAR, bronze VARCHAR) |
SELECT MAX(rank) FROM table_19744915_18 WHERE couple = "Roxanne and Daniel" | When roxanne and daniel are the couple what is the highest rank? | CREATE TABLE table_19744915_18 (rank INTEGER, couple VARCHAR) |
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'oxygen therapy (40% to 60%)' AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-5 year')) A... | how many patients were prescribed furosemide 20 mg po tabs within the same month since 5 years ago following the procedure of oxygen therapy (40% to 60%)? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wa... |
SELECT AVG(rank) FROM table_name_60 WHERE silver < 0 | Which mean rank had a silver number smaller than 0? | CREATE TABLE table_name_60 (rank INTEGER, silver INTEGER) |
SELECT MAX(total) FROM table_19744915_18 WHERE couple = "Ellery and Frankie" | When ellery and frankie are the couple what is the highest total? | CREATE TABLE table_19744915_18 (total INTEGER, couple VARCHAR) |
SELECT winery FROM wine ORDER BY score LIMIT 1 | What is the winery at which the wine with the highest score was made? | CREATE TABLE wine (
no number,
grape text,
winery text,
appelation text,
state text,
name text,
year number,
price number,
score number,
cases number,
drink text
)
CREATE TABLE appellations (
no number,
appelation text,
county text,
state text,
area text,... |
SELECT MIN(total) FROM table_name_99 WHERE rank = 4 AND silver > 3 | What is the least total number with a rank of 4 and a total silver number bigger than 3? | CREATE TABLE table_name_99 (total INTEGER, rank VARCHAR, silver VARCHAR) |
SELECT result FROM table_19744915_18 WHERE public = 8 | When 8 is the public what are the results? | CREATE TABLE table_19744915_18 (result VARCHAR, public VARCHAR) |
SELECT date FROM table_name_75 WHERE home_team = "collingwood" | What date did Collingwood play as the home team? | CREATE TABLE table_name_75 (
date VARCHAR,
home_team VARCHAR
) |
SELECT category FROM table_name_7 WHERE award = "2nd melon music awards" | Name the category for 2nd melon music awards | CREATE TABLE table_name_7 (category VARCHAR, award VARCHAR) |
SELECT MAX(rank) FROM table_19744915_18 WHERE result = "Safe" AND public = 8 | When 8 is the public and the result is safe what is the highest rank? | CREATE TABLE table_19744915_18 (rank INTEGER, result VARCHAR, public VARCHAR) |
SELECT COUNT(Appointed) AS archbishop FROM table_1656555_1 WHERE ordained_priest = "December 20, 1959" | How many appointed archbishops were ordained as priests on December 20, 1959 | CREATE TABLE table_1656555_1 (
Appointed VARCHAR,
ordained_priest VARCHAR
) |
SELECT award FROM table_name_30 WHERE result = "won" AND category = "hall of fame" | Name the award won in the hall of fame | CREATE TABLE table_name_30 (award VARCHAR, result VARCHAR, category VARCHAR) |
SELECT karen FROM table_19744915_4 WHERE nicky = "2.5" | Name the karen when nicky is 2.5 | CREATE TABLE table_19744915_4 (karen VARCHAR, nicky VARCHAR) |
SELECT COUNT(*) FROM table_203_657 WHERE "format" = 'christian contemporary' | how many christian contemporary stations are there ? | CREATE TABLE table_203_657 (
id number,
"call sign" text,
"frequency" text,
"city of license" text,
"licensee" text,
"format" text
) |
SELECT nomination FROM table_name_59 WHERE year = 2011 AND result = "won" | Name the nomination in 2011 that won | CREATE TABLE table_name_59 (nomination VARCHAR, year VARCHAR, result VARCHAR) |
SELECT capacity FROM table_1974545_3 WHERE baseball_stadium = "Owl Athletic Complex" | What is the capacity for the school that has the Owl Athletic Complex baseball stadium? | CREATE TABLE table_1974545_3 (capacity VARCHAR, baseball_stadium VARCHAR) |
SELECT AVG(rank) FROM table_name_79 WHERE status = "proposed" AND floors = 80 AND name = "celestia spaces 4" | What rank has a status of proposed, with 80 floors for Celestia Spaces 4? | CREATE TABLE table_name_79 (
rank INTEGER,
name VARCHAR,
status VARCHAR,
floors VARCHAR
) |
SELECT result FROM table_name_98 WHERE year = 2010 AND award = "bgm cyworld" | Name the result in 2010 for bgm cyworld | CREATE TABLE table_name_98 (result VARCHAR, year VARCHAR, award VARCHAR) |
SELECT softball_stadium FROM table_1974545_3 WHERE baseball_stadium = "Eastern Baseball Stadium" | What is the name of the softball stadium for the school that has Eastern Baseball Stadium? | CREATE TABLE table_1974545_3 (softball_stadium VARCHAR, baseball_stadium VARCHAR) |
SELECT athlete FROM table_name_76 WHERE time = 13.6 | Who had the time 13.6? | CREATE TABLE table_name_76 (
athlete VARCHAR,
time VARCHAR
) |
SELECT COUNT(car__number) FROM table_name_68 WHERE make = "chevrolet" AND laps = 363 | What is the car # of the Chevrolet that complete 363 laps? | CREATE TABLE table_name_68 (car__number VARCHAR, make VARCHAR, laps VARCHAR) |
SELECT softball_stadium FROM table_1974545_3 WHERE school = "UMass Boston" | What is the name of UMass Boston's softball stadium? | CREATE TABLE table_1974545_3 (softball_stadium VARCHAR, school VARCHAR) |
SELECT melbourne FROM table_name_67 WHERE gold_coast = "no" | What is The Melbourne with a No- Gold Coast | CREATE TABLE table_name_67 (
melbourne VARCHAR,
gold_coast VARCHAR
) |
SELECT MAX(points) FROM table_name_88 WHERE winnings = "$127,541" AND car__number > 31 | How many points did the driver who won $127,541 driving car #31 get? | CREATE TABLE table_name_88 (points INTEGER, winnings VARCHAR, car__number VARCHAR) |
SELECT softball_stadium FROM table_1974545_3 WHERE school = "Rhode Island College" | What is the name of Rhode Island College's softball stadium? | CREATE TABLE table_1974545_3 (softball_stadium VARCHAR, school VARCHAR) |
SELECT position FROM table_12165135_1 WHERE player = "John Charles" | What is the position of john charles? | CREATE TABLE table_12165135_1 (
position VARCHAR,
player VARCHAR
) |
SELECT english_title FROM table_name_80 WHERE year < 1999 AND role = "kim da-rim" | What is the english title of the film before 1999 with a role of kim da-rim? | CREATE TABLE table_name_80 (english_title VARCHAR, year VARCHAR, role VARCHAR) |
SELECT COUNT(basketball_arena) FROM table_1974545_3 WHERE capacity = "3,000" | How many basketball arenas are there that belong to a school with a capacity of 3,000? | CREATE TABLE table_1974545_3 (basketball_arena VARCHAR, capacity VARCHAR) |
SELECT opponents_in_the_final FROM table_name_63 WHERE partner = "katarina srebotnik" AND championship = "wimbledon (4)" | Which opponent in the final had a partner of Katarina Srebotnik and a championship of wimbledon (4)? | CREATE TABLE table_name_63 (
opponents_in_the_final VARCHAR,
partner VARCHAR,
championship VARCHAR
) |
SELECT english_title FROM table_name_96 WHERE romanization = "lee jae-su-eui nan" | What English title for the Romanization of lee jae-su-eui nan? | CREATE TABLE table_name_96 (english_title VARCHAR, romanization VARCHAR) |
SELECT baseball_stadium FROM table_1974545_3 WHERE basketball_arena = "The Murray Center" | What is the name of the baseball stadium for the school with the Murray Center basketball arena? | CREATE TABLE table_1974545_3 (baseball_stadium VARCHAR, basketball_arena VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "URGENT" AND lab.fluid = "Other Body Fluid" | How many patients had other body fluid as lab test fluid and were admitted on an urgent basis? | 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 romanization FROM table_name_81 WHERE english_title = "my old sweetheart" | What is the Romanization for my old sweetheart? | CREATE TABLE table_name_81 (romanization VARCHAR, english_title VARCHAR) |
SELECT location FROM table_1974545_2 WHERE institution = "Westfield State University" | Where is the Westfield State University located? | CREATE TABLE table_1974545_2 (location VARCHAR, institution VARCHAR) |
SELECT "election" FROM table_204_28 WHERE "election" IN (1994, 2001) ORDER BY "seats in the parliament" DESC LIMIT 1 | which election cycle yielded more parliament seats won : 1994 , or 2001 ? | CREATE TABLE table_204_28 (
id number,
"election" text,
"name of the party/alliance" text,
"number of votes" number,
"percentage" text,
"seats in the parliament" number
) |
SELECT english_title FROM table_name_56 WHERE role = "chae soo-yeon" | What is the English of chae soo-yeon? | CREATE TABLE table_name_56 (english_title VARCHAR, role VARCHAR) |
SELECT founded FROM table_1974545_2 WHERE location = "Salem, Massachusetts" | When was the school in Salem, Massachusetts located? | CREATE TABLE table_1974545_2 (founded VARCHAR, location VARCHAR) |
SELECT away_team FROM table_name_1 WHERE venue = "victoria park" | Who was the away team at Victoria Park? | CREATE TABLE table_name_1 (
away_team VARCHAR,
venue VARCHAR
) |
SELECT MIN(Highest) AS position FROM table_name_22 WHERE album_title = "10 years of hits" AND sales > 870 OFFSET 000 | What is the lowest high position for 10 years of hits, and over 870,000 sales? | CREATE TABLE table_name_22 (Highest INTEGER, album_title VARCHAR, sales VARCHAR) |
SELECT nickname FROM table_1974545_2 WHERE institution = "Westfield State University" | What's the nickname of Westfield State University's students? | CREATE TABLE table_1974545_2 (nickname VARCHAR, institution VARCHAR) |
SELECT song FROM table_name_58 WHERE index = "f6" | What Song's Index is F6? | CREATE TABLE table_name_58 (
song VARCHAR,
index VARCHAR
) |
SELECT AVG(Highest) AS position FROM table_name_69 WHERE album_title = "unwritten" | What is the average high position for the album unwritten? | CREATE TABLE table_name_69 (Highest INTEGER, album_title VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.