answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT top_speed FROM table_name_4 WHERE model = "slk200k" AND power = "122kw (163hp)" | What is the top speed of the SLK200K that produces 122kw (163hp)? | CREATE TABLE table_name_4 (top_speed VARCHAR, model VARCHAR, power VARCHAR) |
SELECT position FROM table_26996293_7 WHERE pick__number = 54 | What position was pick # 54? | CREATE TABLE table_26996293_7 (position VARCHAR, pick__number VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND procedures.icd9_code = "14" | provide the number of patients whose admission location is emergency room admit and procedure icd9 code is 14. | 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 latin FROM table_name_80 WHERE greek = "μ" | What is the Latin term for the Greek symbol μ? | CREATE TABLE table_name_80 (latin VARCHAR, greek VARCHAR) |
SELECT pick__number FROM table_26996293_7 WHERE cfl_team = "BC Lions (7)" | What is the pick # of cfl team bc lions (7) | CREATE TABLE table_26996293_7 (pick__number VARCHAR, cfl_team VARCHAR) |
SELECT num.TagName AS Tag, ROW_NUMBER() OVER (ORDER BY rate.Rate DESC) AS Rank2013, ROW_NUMBER() OVER (ORDER BY num.Num DESC) AS TotalRank, rate.Rate AS QuestionsInMay, num.Num AS QuestionsTotal FROM (SELECT COUNT(PostId) AS Rate, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId A... | -- Most popular StackOverflow tags in 2013. | CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
E... |
SELECT role FROM table_name_78 WHERE closing_broadway_cast = "adam grupper" | Which role had a closing broadway cast of Adam Grupper? | CREATE TABLE table_name_78 (role VARCHAR, closing_broadway_cast VARCHAR) |
SELECT college FROM table_26996293_7 WHERE player = "Terry Moss" | What is the college where player terry moss attended? | CREATE TABLE table_26996293_7 (college VARCHAR, player VARCHAR) |
SELECT COUNT("Division") FROM table_33055 WHERE "Tms." = '13' AND "Pos." < '8' | What is the division in the season with 13 tms and pos smaller than 8? | CREATE TABLE table_33055 (
"Season" real,
"Division" real,
"Tms." real,
"Pos." real,
"FA Cup" text
) |
SELECT original_us_tour_cast FROM table_name_75 WHERE original_broadway_cast = "kevin chamberlin" | What was the original US Tour cast when the original broadway was Kevin Chamberlin? | CREATE TABLE table_name_75 (original_us_tour_cast VARCHAR, original_broadway_cast VARCHAR) |
SELECT outgoing_manager FROM table_26998135_2 WHERE team = "Kasımpaşa" | What is the outgoing manager for the team kasımpaşa? | CREATE TABLE table_26998135_2 (outgoing_manager VARCHAR, team VARCHAR) |
SELECT "Power kW" FROM table_27057 WHERE "Station Type" = 'Relay' AND "Callsign" = 'DXCL-TV' | What is the power in KW that has a station type of relay and a callsign of DXCL-TV? | CREATE TABLE table_27057 (
"Branding" text,
"Callsign" text,
"Ch. #" text,
"Power kW" text,
"Station Type" text,
"Location (Transmitter site)" text
) |
SELECT original_nonequity_tour_cast FROM table_name_49 WHERE original_broadway_cast = "kevin chamberlin" | What was the original nonequity tour when the original broadway was Kevin Chamberlin? | CREATE TABLE table_name_49 (original_nonequity_tour_cast VARCHAR, original_broadway_cast VARCHAR) |
SELECT replaced_by FROM table_26998135_2 WHERE date_of_vacancy = "27 December 2010" | Who is the replaced by when the date of vacancy is 27 december 2010? | CREATE TABLE table_26998135_2 (replaced_by VARCHAR, date_of_vacancy VARCHAR) |
SELECT "Oricon Albums Chart" FROM table_2783 WHERE "Debut Sales (copies)" > '339333.011497678' | Which charts had debut sales of of more than 339333.011497678? | CREATE TABLE table_2783 (
"Release" text,
"Oricon Albums Chart" text,
"Peak Position" real,
"Debut Sales (copies)" real,
"Sales Total (copies)" real,
"Chart Run" text
) |
SELECT role FROM table_name_8 WHERE original_broadway_cast = "adam riegler" | What was the role when the original broadway was Adam Riegler? | CREATE TABLE table_name_8 (role VARCHAR, original_broadway_cast VARCHAR) |
SELECT manner_of_departure FROM table_26998135_2 WHERE date_of_appointment = "24 May 2010" | What is the manner of departure for the date of appointment 24 may 2010? | CREATE TABLE table_26998135_2 (manner_of_departure VARCHAR, date_of_appointment VARCHAR) |
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', treatment.treatmenttime)) FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '032-21820... | how many hours had it been since the first procedure patient 032-21820 received on the current hospital visit? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE allergy (
allergy... |
SELECT AVG(international) FROM table_name_78 WHERE domestic = 669 AND year < 2005 | What is the number for the international with 669 domestic earlier than 2005? | CREATE TABLE table_name_78 (international INTEGER, domestic VARCHAR, year VARCHAR) |
SELECT date_of_appointment FROM table_26998135_2 WHERE outgoing_manager = "Mustafa Denizli" | What is the date of appointment when the outgoing manager was mustafa denizli? | CREATE TABLE table_26998135_2 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) |
SELECT "Name" FROM table_32012 WHERE "Winning drivers" = 'tazio nuvolari' | What race was won by Tazio Nuvolari? | CREATE TABLE table_32012 (
"Name" text,
"Circuit" text,
"Date" text,
"Winning drivers" text,
"Winning constructor" text,
"Report" text
) |
SELECT score FROM table_name_39 WHERE date = "14 march 2004" | What was the score on 14 march 2004? | CREATE TABLE table_name_39 (score VARCHAR, date VARCHAR) |
SELECT date_of_appointment FROM table_26998135_2 WHERE date_of_vacancy = "15 March 2011" | What is the date of appointment when the date of vacancy is 15 march 2011? | CREATE TABLE table_26998135_2 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "WHITE" AND lab.itemid = "51078" | how many patients whose ethnicity is white and item id is 51078? | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... |
SELECT season FROM table_name_75 WHERE winners = "hibernian" AND finalists = "kilmarnock" | In what season was Kilmarnock a finalist and Hibernian the winner? | CREATE TABLE table_name_75 (season VARCHAR, winners VARCHAR, finalists VARCHAR) |
SELECT MIN(population) FROM table_27003223_4 WHERE democratic = "28.0%" | What is the lowest population in which 28.0% are democrat? | CREATE TABLE table_27003223_4 (population INTEGER, democratic VARCHAR) |
SELECT "Rank" FROM table_80300 WHERE "Qual" = '115.095' | What was the rank with the qual of 115.095? | CREATE TABLE table_80300 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
) |
SELECT finalists FROM table_name_53 WHERE season = "1972–73" | Who were the finalists in the 1972–73 season? | CREATE TABLE table_name_53 (finalists VARCHAR, season VARCHAR) |
SELECT democratic FROM table_27003223_4 WHERE registered_voters = "67.8%" | what is the percentage of democratic voters in which the registered voters is 67.8%? | CREATE TABLE table_27003223_4 (democratic VARCHAR, registered_voters VARCHAR) |
SELECT song_s__—_weeks FROM table_19542477_9 WHERE issue_years = 2012 AND artist_s_ = "Rihanna" | What is the title of every song, and how many weeks was each song at #1 for Rihanna in 2012? | CREATE TABLE table_19542477_9 (
song_s__—_weeks VARCHAR,
issue_years VARCHAR,
artist_s_ VARCHAR
) |
SELECT season FROM table_name_21 WHERE score = "2–1" AND winners = "rangers" | In which season did the Rangers win with a score of 2–1? | CREATE TABLE table_name_21 (season VARCHAR, score VARCHAR, winners VARCHAR) |
SELECT registered_voters FROM table_27003223_4 WHERE d_r_spread = "+10.4%" | What is the percentage of registered voters in which the d-r spread is +10.4%? | CREATE TABLE table_27003223_4 (registered_voters VARCHAR, d_r_spread VARCHAR) |
SELECT MAX("To par") FROM table_50496 WHERE "Country" = 'united states' AND "Place" = 't3' AND "Score" = '74-73-72-69=288' | What is the highest to par of the player from the United States with a t3 place and a 74-73-72-69=288 place? | CREATE TABLE table_50496 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" text
) |
SELECT date FROM table_name_15 WHERE winners = "motherwell" | When did Motherwell win? | CREATE TABLE table_name_15 (date VARCHAR, winners VARCHAR) |
SELECT registered_voters FROM table_27003223_4 WHERE d_r_spread = "+14.3%" | What is the percentage of registered voters in which the d-r spread is +14.3%? | CREATE TABLE table_27003223_4 (registered_voters VARCHAR, d_r_spread VARCHAR) |
SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 30525 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = '... | what was the first value of the anion gap lab test of patient 30525 during the last hospital visit. | 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 MIN(burglary) FROM table_name_90 WHERE forcible_rape = "39.1" AND motor_vehicle_theft < 568.8 | What is the smallest rate of burglary when forcible rape is 39.1 and motor vehicle theft is less than 568.8? | CREATE TABLE table_name_90 (burglary INTEGER, forcible_rape VARCHAR, motor_vehicle_theft VARCHAR) |
SELECT republican FROM table_27003223_4 WHERE d_r_spread = "-14.1%" | What is the percentage of republican voters in which the d-r spread is -14.1%? | CREATE TABLE table_27003223_4 (republican VARCHAR, d_r_spread VARCHAR) |
SELECT FIRST_NAME, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of first_name and manager_id . | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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(4... |
SELECT SUM(murder_and_non_negligent_manslaughter) FROM table_name_86 WHERE larceny_theft = "3,693.9" AND burglary > 1 OFFSET 027.0 | What is the total rate of murder and non-negligent manslaughter when larceny-theft is 3,693.9 and burglary is more than 1,027.0? | CREATE TABLE table_name_86 (murder_and_non_negligent_manslaughter INTEGER, larceny_theft VARCHAR, burglary VARCHAR) |
SELECT no_party_preference FROM table_27003223_4 WHERE democratic = "24.8%" | What is the percentage of "no party preference" where the democratic percentage is 24.8%? | CREATE TABLE table_27003223_4 (no_party_preference VARCHAR, democratic VARCHAR) |
SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '006-57924' AND patient.hospitaladmitsource = 'emergency department' ORDER BY patient.hospitaladmittime DESC LIMIT 1 | what was the last hospital admission time in which patient 006-57924 was admitted via the emergency department? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime... |
SELECT name FROM table_name_80 WHERE district = "total:" | What is the name for district total:? | CREATE TABLE table_name_80 (name VARCHAR, district VARCHAR) |
SELECT COUNT(train_no) FROM table_27011761_2 WHERE departure = "17:30" | How many trains depart at 17:30? | CREATE TABLE table_27011761_2 (train_no VARCHAR, departure VARCHAR) |
SELECT "Record" FROM table_13266 WHERE "Time" = '4:00' AND "Opponent" = 'krzysztof soszynski' | What's the record that had an opponent of Krzysztof Soszynski and a time of 4:00? | CREATE TABLE table_13266 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) |
SELECT AVG(number_of_electorates__2009_) FROM table_name_6 WHERE name = "modi nagar" | What is the electorates in 2009 for Modi Nagar? | CREATE TABLE table_name_6 (number_of_electorates__2009_ INTEGER, name VARCHAR) |
SELECT COUNT(train_no) FROM table_27011761_2 WHERE arrival = "11:00" | How many trains arrive at 11:00? | CREATE TABLE table_27011761_2 (train_no VARCHAR, arrival VARCHAR) |
SELECT SUM(release_date) FROM table_name_63 WHERE sampling_rate = "12-bit 40khz" | Around what time frame release a Sampling Rate of 12-bit 40khz? | CREATE TABLE table_name_63 (
release_date INTEGER,
sampling_rate VARCHAR
) |
SELECT opponent FROM table_name_53 WHERE match_day > 33 AND date = "12 may" | Who was the opponent on 12 May, when the match day was more than 33? | CREATE TABLE table_name_53 (opponent VARCHAR, match_day VARCHAR, date VARCHAR) |
SELECT no_party_preference FROM table_27003186_3 WHERE city = "Murrieta" | What is the no party preference when the city is murrieta? | CREATE TABLE table_27003186_3 (no_party_preference VARCHAR, city VARCHAR) |
SELECT MAX("Crowd") FROM table_32319 WHERE "Venue" = 'arden street oval' | What is the highest crowd at arden street oval? | CREATE TABLE table_32319 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT MAX(issue_date) FROM table_name_6 WHERE highest_position = 3 | What is the largest issue date for an album that reached position of 3? | CREATE TABLE table_name_6 (issue_date INTEGER, highest_position VARCHAR) |
SELECT no_party_preference FROM table_27003186_3 WHERE other = "10.1%" | What is the no party preference when other is 10.1%? | CREATE TABLE table_27003186_3 (no_party_preference VARCHAR, other VARCHAR) |
SELECT Location, COUNT(Location) FROM station GROUP BY Location ORDER BY COUNT(Location) DESC | A bar chart shows how many locations, list by the the number of location from high to low. | CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
Main_Services text,
Number_of_Platforms int
)
CREATE TABLE train_station (
Train_ID int,
Station_ID int
)
CREATE TABLE train (
Train_ID ... |
SELECT record FROM table_name_66 WHERE date = "march 16" | What is the record on March 16? | CREATE TABLE table_name_66 (record VARCHAR, date VARCHAR) |
SELECT no_party_preference FROM table_27003186_3 WHERE republican = "45.3%" | What is the no party preference when republican is 45.3%? | CREATE TABLE table_27003186_3 (no_party_preference VARCHAR, republican VARCHAR) |
SELECT "IATA" FROM table_7003 WHERE "Airport" = 'hamburg airport' | What kind of IATA has an Airport of hamburg airport? | CREATE TABLE table_7003 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) |
SELECT score FROM table_name_51 WHERE date = "january 23" | What was the score on January 23? | CREATE TABLE table_name_51 (score VARCHAR, date VARCHAR) |
SELECT other FROM table_27003186_3 WHERE no_party_preference = "19.1%" | What is other when no party preference is 19.1%? | CREATE TABLE table_27003186_3 (other VARCHAR, no_party_preference VARCHAR) |
SELECT DISTINCT flight_id FROM flight WHERE (((flight_days IN (SELECT DAYSalias0.days_code FROM days AS DAYSalias0 WHERE DAYSalias0.day_name IN (SELECT DATE_DAYalias0.day_name FROM date_day AS DATE_DAYalias0 WHERE DATE_DAYalias0.day_number = 23 AND DATE_DAYalias0.month_number = 4 AND DATE_DAYalias0.year = 1991)) AND to... | i need to fly from ST. LOUIS to MILWAUKEE on wednesday afternoon | CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
m... |
SELECT COUNT(to_par) FROM table_name_17 WHERE total = 157 | How many strokes off par was the player who scored 157? | CREATE TABLE table_name_17 (to_par VARCHAR, total VARCHAR) |
SELECT other FROM table_27003186_3 WHERE registered_voters = "50.7%" | What is other when registered voters is 50.7%? | CREATE TABLE table_27003186_3 (other VARCHAR, registered_voters VARCHAR) |
SELECT "Home team score" FROM table_54552 WHERE "Away team score" = '15.9 (99)' | What is the Home team with Away team score of 15.9 (99)? | CREATE TABLE table_54552 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT MAX(to_par) FROM table_name_96 WHERE year_s__won = "1977" AND total > 155 | Which player who won in 1977 and scored great than 155 was the closest to par? | CREATE TABLE table_name_96 (to_par INTEGER, year_s__won VARCHAR, total VARCHAR) |
SELECT district FROM table_27021001_1 WHERE incumbent = "Charlie Norwood" | What is the district with the incumbent Charlie Norwood? | CREATE TABLE table_27021001_1 (district VARCHAR, incumbent VARCHAR) |
SELECT COUNT(other_a) FROM table_14962287_2 WHERE name = "Tommy Johnson Category:Articles with hCards" | How many values of Other A correspond to Tommy Johnson Category:Articles with hCards? | CREATE TABLE table_14962287_2 (
other_a VARCHAR,
name VARCHAR
) |
SELECT country FROM table_name_88 WHERE to_par = 11 | What country was the player who was 11 off par from? | CREATE TABLE table_name_88 (country VARCHAR, to_par VARCHAR) |
SELECT elected FROM table_27021001_1 WHERE incumbent = "Cynthia McKinney" | What is the year elected for incumbent Cynthia Mckinney? | CREATE TABLE table_27021001_1 (elected VARCHAR, incumbent VARCHAR) |
SELECT couple FROM table_19744915_15 WHERE vote_percentage = "7.691%" | What couple had a vote percentage of 7.691% | CREATE TABLE table_19744915_15 (
couple VARCHAR,
vote_percentage VARCHAR
) |
SELECT home_team FROM table_name_90 WHERE tie_no = "16" | What was the Home team in Tie no 16? | CREATE TABLE table_name_90 (home_team VARCHAR, tie_no VARCHAR) |
SELECT COUNT(incumbent) FROM table_27021001_1 WHERE result = "Sanford Bishop (D) 57% Joseph McCormick (R) 43%" | How many incumbents were the result of sanford bishop (d) 57% joseph mccormick (r) 43%? | CREATE TABLE table_27021001_1 (incumbent VARCHAR, result VARCHAR) |
SELECT "Home team" FROM table_53001 WHERE "Venue" = 'mcg' | Who is the home team that played at MCG? | CREATE TABLE table_53001 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT date FROM table_name_61 WHERE tie_no = "9" | What is the Date of Tie no 9? | CREATE TABLE table_name_61 (date VARCHAR, tie_no VARCHAR) |
SELECT status FROM table_27021001_1 WHERE district = "Georgia's 10th" | What is the status for district georgia's 10th? | CREATE TABLE table_27021001_1 (status VARCHAR, district VARCHAR) |
SELECT debut FROM table_1557974_1 WHERE birthplace = "Nara" | What are the debut year for wrestlers born in Nara? | CREATE TABLE table_1557974_1 (
debut VARCHAR,
birthplace VARCHAR
) |
SELECT score FROM table_name_4 WHERE tie_no = "2" | What is the Score in Tie 2? | CREATE TABLE table_name_4 (score VARCHAR, tie_no VARCHAR) |
SELECT result FROM table_27021001_1 WHERE district = "Georgia's 1st" | What is the result of districk georgia's 1st? | CREATE TABLE table_27021001_1 (result VARCHAR, district VARCHAR) |
SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 27177 AND DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-2 year') ORDER BY admissions.admittime DESC LIMIT 1 | how has patient 27177 last visited the hospital since 2 years ago? | CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
v... |
SELECT tie_no FROM table_name_98 WHERE home_team = "scarborough" | What is the Tie no when Scarborough is the Home team? | CREATE TABLE table_name_98 (tie_no VARCHAR, home_team VARCHAR) |
SELECT district FROM table_27021001_1 WHERE result = "Mac Collins (R) unopposed" | What is the district with the result mac collins (r) unopposed? | CREATE TABLE table_27021001_1 (district VARCHAR, result VARCHAR) |
SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 13054) AND microbiologyevents.spec_type_desc = 'sputum' AND DATETIME(microbiologyevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 m... | is there a microbiology test result in this month for patient 13054's sputum? | CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
... |
SELECT tie_no FROM table_name_75 WHERE score = "2–2" AND away_team = "swansea city" | What is the Tie no when Swansea City is the Away team with a Score of 2–2? | CREATE TABLE table_name_75 (tie_no VARCHAR, score VARCHAR, away_team VARCHAR) |
SELECT COUNT(title) FROM table_2701851_3 WHERE production_code = "201a" | how many times is the production code is 201a? | CREATE TABLE table_2701851_3 (title VARCHAR, production_code VARCHAR) |
SELECT season FROM table_name_12 WHERE episode_count > 5 AND time_length = "159 minutes" | Which season has more than 5 episodes each 159 minutes in length? | CREATE TABLE table_name_12 (
season VARCHAR,
episode_count VARCHAR,
time_length VARCHAR
) |
SELECT name FROM table_name_50 WHERE constituency_number = "5" | What is the name of constituency 5? | CREATE TABLE table_name_50 (name VARCHAR, constituency_number VARCHAR) |
SELECT MAX(overall_rank) FROM table_2701625_1 WHERE country = "Czech Republic" | Name the most overall rank for czech republic | CREATE TABLE table_2701625_1 (overall_rank INTEGER, country VARCHAR) |
SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY AVG(DEPARTMENT_ID) DESC | For those employees who did not have any job in the past, draw a bar chart about the distribution of hire_date and the average of department_id bin hire_date by weekday, sort by the Y-axis in desc. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END... |
SELECT label FROM table_name_16 WHERE date_of_release = "september 20, 2005" | What label is released on September 20, 2005? | CREATE TABLE table_name_16 (label VARCHAR, date_of_release VARCHAR) |
SELECT COUNT(male_rank) FROM table_2701625_1 WHERE country = "Fiji" | Name the total number of male rank for fiji | CREATE TABLE table_2701625_1 (male_rank VARCHAR, country VARCHAR) |
SELECT Creation, AVG(Budget_in_Billions) FROM department ORDER BY Creation | Show average of budget in each year and bin creation time by year in a line chart, and could you display by the X-axis in asc? | CREATE TABLE management (
department_ID int,
head_ID int,
temporary_acting text
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num_Employees real
)
CREATE TABLE head (
head_ID int,
name text,
born_state tex... |
SELECT MIN(total) FROM table_name_13 WHERE all_around = 10 AND rope > 10 | What is the lowest total with an all around of 10 and a rope higher than 10? | CREATE TABLE table_name_13 (total INTEGER, all_around VARCHAR, rope VARCHAR) |
SELECT MAX(female_life_expectancy) FROM table_2701625_1 WHERE country = "Djibouti" | Name the most female life expectancy for djibouti | CREATE TABLE table_2701625_1 (female_life_expectancy INTEGER, country VARCHAR) |
SELECT "First party" FROM table_60784 WHERE "Year" < '1857' AND "First member" = 'lord john hay' | What is the first party for Lord John Hay earlier than 1857? | CREATE TABLE table_60784 (
"Year" real,
"First member" text,
"First party" text,
"Second member" text,
"Second party" text
) |
SELECT MAX(total) FROM table_name_56 WHERE name = "bianka panova" AND place < 1 | What is Bianka Panova's highest total with lower than place 1? | CREATE TABLE table_name_56 (total INTEGER, name VARCHAR, place VARCHAR) |
SELECT MAX(female_life_expectancy) FROM table_2701625_1 WHERE overall_rank = 61 | Name the most female life expectancy for overall rank of 61 | CREATE TABLE table_2701625_1 (female_life_expectancy INTEGER, overall_rank VARCHAR) |
SELECT champion FROM table_name_55 WHERE tournament_location = "sentosa golf club" | Which champion has sentosa golf club as the tournament location? | CREATE TABLE table_name_55 (
champion VARCHAR,
tournament_location VARCHAR
) |
SELECT place FROM table_name_5 WHERE rope < 9.8 AND name = "milena reljin" | What is Milena Reljin's place with a smaller than 9.8 rope? | CREATE TABLE table_name_5 (place VARCHAR, rope VARCHAR, name VARCHAR) |
SELECT MAX(male_life_expectancy) FROM table_2701625_1 WHERE country = "Pakistan" | Name the most male life expectancy for pakistan | CREATE TABLE table_2701625_1 (male_life_expectancy INTEGER, country VARCHAR) |
SELECT MAX("Attendance") FROM table_34509 WHERE "Date" = 'november 17, 1946' AND "Week" > '8' | Name the most attendance for november 17, 1946 and week more than 8 | CREATE TABLE table_34509 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) |
SELECT MAX(game) FROM table_name_62 WHERE record = "24-23" | What is the highest game with a 24-23 record? | CREATE TABLE table_name_62 (game INTEGER, record VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.