answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT moving_from FROM table_22810095_8 WHERE name = "Kisnorbo" | Where did Kisnorbo move from? | CREATE TABLE table_22810095_8 (moving_from VARCHAR, name VARCHAR) |
SELECT COUNT("Losses") FROM table_58695 WHERE "Goals for" = '30' AND "Points" > '24' | Hiw many losses have 30 for the goals with points greater than 24? | CREATE TABLE table_58695 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) |
SELECT driver FROM table_name_80 WHERE entrant = "enrico platé" | Who is the driver for the Entract of Enrico Platé? | CREATE TABLE table_name_80 (driver VARCHAR, entrant VARCHAR) |
SELECT name FROM table_22810095_8 WHERE n = 28 | What is the name of the player when n is 28? | CREATE TABLE table_22810095_8 (name VARCHAR, n VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((date_day.day_number = 24 AND date_day.month_number = 5 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time... | what flights from ST. LOUIS to ST. PAUL on thursday leaving after 1000 | CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABL... |
SELECT entrant FROM table_name_79 WHERE driver = "luigi fagioli" | Which of the entrants had Luigi Fagioli as a driver? | CREATE TABLE table_name_79 (entrant VARCHAR, driver VARCHAR) |
SELECT transfer_fee FROM table_22810095_8 WHERE n = 2 | How much was the transfer fee when n is 2? | CREATE TABLE table_22810095_8 (transfer_fee VARCHAR, n VARCHAR) |
SELECT "2013" FROM table_33199 WHERE "2012" = 'grand slam tournaments' | What value in 2013 corresponds to Grand Slam Tournaments in 2012? | CREATE TABLE table_33199 (
"Tournament" text,
"2007" text,
"2011" text,
"2012" text,
"2013" text
) |
SELECT driver FROM table_name_94 WHERE constructor = "era" AND entrant = "t.a.s.o. mathieson" | Who is the driver whose Constructor was Era, and whose entrant was T.A.S.O. Mathieson? | CREATE TABLE table_name_94 (driver VARCHAR, constructor VARCHAR, entrant VARCHAR) |
SELECT name FROM table_22810095_9 WHERE age = 24 | What player is 24 years old? | CREATE TABLE table_22810095_9 (name VARCHAR, age VARCHAR) |
SELECT COUNT(*), constructorid FROM constructorstandings GROUP BY constructorid | What are the numbers of races for each constructor id? | CREATE TABLE qualifying (
qualifyid number,
raceid number,
driverid number,
constructorid number,
number number,
position number,
q1 text,
q2 text,
q3 text
)
CREATE TABLE races (
raceid number,
year number,
round number,
circuitid number,
name text,
date text... |
SELECT chassis FROM table_name_15 WHERE rounds = "7" AND entrant = "ecurie rosier" | Which chassis had Rounds of 7, and an Entrant of Ecurie Rosier? | CREATE TABLE table_name_15 (chassis VARCHAR, rounds VARCHAR, entrant VARCHAR) |
SELECT COUNT(bruce_coulter_award) FROM table_228149_1 WHERE game = "9th" | Nam the total number for bruce coulter award for 9th game | CREATE TABLE table_228149_1 (bruce_coulter_award VARCHAR, game VARCHAR) |
SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20165) AND STRFTIME('%y', procedures_icd.charttime) <= '2100' ORDER BY procedures_icd.charttime LIMIT 1 | when did patient 20165 first undergo the procedure until 2100? | 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 winning_constructor FROM table_name_79 WHERE winning_driver = "riccardo patrese" | Who is the winner constructor with driver riccardo patrese? | CREATE TABLE table_name_79 (winning_constructor VARCHAR, winning_driver VARCHAR) |
SELECT MIN(opponents) FROM table_22815265_1 WHERE opponent = "Arizona State" | How many opponents were there when the opponent was Arizona State? | CREATE TABLE table_22815265_1 (opponents INTEGER, opponent VARCHAR) |
SELECT AVG(heat) FROM table_name_43 WHERE time = "59.11" AND lane > 3 | What is the average of all Heats of competitors with a Time of 59.11 and a lane higher than 3? | CREATE TABLE table_name_43 (
heat INTEGER,
time VARCHAR,
lane VARCHAR
) |
SELECT MAX(round) FROM table_name_42 WHERE date = "5 april" | What is the highest round on 5 april? | CREATE TABLE table_name_42 (round INTEGER, date VARCHAR) |
SELECT COUNT(record) FROM table_22815265_1 WHERE opponent = "Utah" | How many records show Utah as the opponent? | CREATE TABLE table_22815265_1 (record VARCHAR, opponent VARCHAR) |
SELECT country FROM table_name_21 WHERE player = "charles coody" | What country does charles coody play for? | CREATE TABLE table_name_21 (
country VARCHAR,
player VARCHAR
) |
SELECT date FROM table_name_37 WHERE location = "hermanos rodríguez" | Which date was hermanos rodríguez the location? | CREATE TABLE table_name_37 (date VARCHAR, location VARCHAR) |
SELECT opponents FROM table_22815265_1 WHERE cowboys_points = 10 | How many opponents are there when cowboy points were 10? | CREATE TABLE table_22815265_1 (opponents VARCHAR, cowboys_points VARCHAR) |
SELECT state__class_ FROM table_225205_3 WHERE reason_for_change = "Iowa admitted to the Union December 28, 1846" | Name the state class for iowa admitted to the union december 28, 1846 | CREATE TABLE table_225205_3 (
state__class_ VARCHAR,
reason_for_change VARCHAR
) |
SELECT record FROM table_name_92 WHERE date = "may 3" | Name the record for may 3 | CREATE TABLE table_name_92 (record VARCHAR, date VARCHAR) |
SELECT COUNT(record) FROM table_22815265_1 WHERE opponents = 9 | How many records were there when opponents were 9? | CREATE TABLE table_22815265_1 (record VARCHAR, opponents VARCHAR) |
SELECT opponent FROM table_name_45 WHERE round = "sf" | Which opponent had a round of SF? | CREATE TABLE table_name_45 (
opponent VARCHAR,
round VARCHAR
) |
SELECT COUNT(attendance) FROM table_name_68 WHERE date = "may 1" | Name the total number in attendance for may 1 | CREATE TABLE table_name_68 (attendance VARCHAR, date VARCHAR) |
SELECT COUNT(record) FROM table_22815259_1 WHERE cowboys_points = 12 | Name the number of record for 12 cowboys points | CREATE TABLE table_22815259_1 (record VARCHAR, cowboys_points VARCHAR) |
SELECT MAX("No.") FROM table_72685 WHERE "Player" = 'Chris Gatling' | What number identifies Chris Gatling? | CREATE TABLE table_72685 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
) |
SELECT loss FROM table_name_20 WHERE date = "may 29" | Name the loss on may 29 | CREATE TABLE table_name_20 (loss VARCHAR, date VARCHAR) |
SELECT MAX(game) FROM table_22815259_1 WHERE record = "4-0" | Name the most game for record 4-0 | CREATE TABLE table_22815259_1 (game INTEGER, record VARCHAR) |
SELECT SUM(gold) FROM table_name_79 WHERE total < 1 | How many total golds do teams have when the total medals is less than 1? | CREATE TABLE table_name_79 (
gold INTEGER,
total INTEGER
) |
SELECT SUM(cuts_made) FROM table_name_62 WHERE wins < 1 AND top_5 = 1 AND top_10 > 4 | How many cuts were made when there weren't any wins but had a top-5 of 1 and a top 10 larger than 4? | CREATE TABLE table_name_62 (cuts_made INTEGER, top_10 VARCHAR, wins VARCHAR, top_5 VARCHAR) |
SELECT COUNT(result) FROM table_22815259_1 WHERE cowboys_points = 23 | Name the result for cowboys points being 23 | CREATE TABLE table_22815259_1 (result VARCHAR, cowboys_points VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.language = "SPAN" AND demographic.age < "70" | how many patients whose language is span and age is less than 70? | 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 college FROM table_name_36 WHERE player = "shabazz muhammad" | Which college has a Player of shabazz muhammad? | CREATE TABLE table_name_36 (college VARCHAR, player VARCHAR) |
SELECT record FROM table_22815259_1 WHERE opponent = "Arizona" | Name the record for arizona | CREATE TABLE table_22815259_1 (record VARCHAR, opponent VARCHAR) |
SELECT "Competition" FROM table_54604 WHERE "Goal" = '13' | What competition has a goal number of 13? | CREATE TABLE table_54604 (
"Goal" real,
"Date" text,
"Score" text,
"Result" text,
"Competition" text
) |
SELECT height FROM table_name_11 WHERE player = "nerlens noel" | How tall is nerlens noel? | CREATE TABLE table_name_11 (height VARCHAR, player VARCHAR) |
SELECT COUNT(unemployment_rate) FROM table_22815568_12 WHERE population = 34024 | Name the unemployment rate for 34024 | CREATE TABLE table_22815568_12 (unemployment_rate VARCHAR, population VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.diagnosis = "MORBID OBESITY/SDA" | provide the number of patients whose gender is f and primary disease is morbid obesity/sda? | 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 player FROM table_name_47 WHERE hometown = "flower mound, tx" | Who is from flower mound, tx? | CREATE TABLE table_name_47 (player VARCHAR, hometown VARCHAR) |
SELECT COUNT(population) FROM table_22815568_12 WHERE county = "Craig" | Name the total number of population for craig | CREATE TABLE table_22815568_12 (population VARCHAR, county VARCHAR) |
SELECT * FROM table_train_195 WHERE heart_disease = 1 | history of congestive heart failure | CREATE TABLE table_train_195 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"allergy_to_perflutren" bool,
"heart_disease" bool,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
) |
SELECT hometown FROM table_name_58 WHERE player = "shabazz muhammad" | Where is shabazz muhammad from? | CREATE TABLE table_name_58 (hometown VARCHAR, player VARCHAR) |
SELECT unemployment_rate FROM table_22815568_12 WHERE county = "Botetourt" | Name the unemployment rate for botetourt | CREATE TABLE table_22815568_12 (unemployment_rate VARCHAR, county VARCHAR) |
SELECT title FROM table_name_99 WHERE pages = 96 | Tell me the title for pages of 96 | CREATE TABLE table_name_99 (
title VARCHAR,
pages VARCHAR
) |
SELECT opponent FROM table_name_35 WHERE date = "july 21" | What was the opponent for july 21? | CREATE TABLE table_name_35 (opponent VARCHAR, date VARCHAR) |
SELECT status FROM table_22815568_12 WHERE unemployment_rate = "6.7%" | Name the status for unemployment rate being 6.7% | CREATE TABLE table_22815568_12 (status VARCHAR, unemployment_rate VARCHAR) |
SELECT labevents.charttime FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 85700) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'potassium') AND DATETIME(labevents.charttime, 'start of month') = DATETIME(CURR... | when did patient 85700 have a minimum potassium for the first time this month? | 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 record FROM table_name_95 WHERE date = "july 24" | What was the record on july 24? | CREATE TABLE table_name_95 (record VARCHAR, date VARCHAR) |
SELECT status FROM table_22815568_1 WHERE poverty_rate = "14.7%" | What is the status of the county that has a 14.7% poverty rate? | CREATE TABLE table_22815568_1 (status VARCHAR, poverty_rate VARCHAR) |
SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 6580) AND prescriptions.route = 'po' AND STRFTIME('%y-%m', prescriptions.startdate) >= '2105-04' ORDER BY prescriptions.startdate DESC LIMIT 1 | tell me the drug that was prescribed to patient 6580 for the last time through the po route since 04/2105? | 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 constructor FROM table_name_77 WHERE grid < 15 AND laps = 77 AND time_retired = "+ 0.771" | Who constructed the car with a grid under 15, 77 laps, and a Time/Retired of + 0.771? | CREATE TABLE table_name_77 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR) |
SELECT poverty_rate FROM table_22815568_1 WHERE market_income_per_capita = "$16,420" | What is the poverty rate in the county that has a market income per capita of $16,420? | CREATE TABLE table_22815568_1 (poverty_rate VARCHAR, market_income_per_capita VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Paraplegia NOS" AND lab.flag = "abnormal" | count the number of patients with unspecified paraplegia diagnoses who had abnormal lab test status. | 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 AVG(grid) FROM table_name_29 WHERE laps > 74 AND driver = "damon hill" | What is the average grid for damon hill with over 74 laps? | CREATE TABLE table_name_29 (grid INTEGER, laps VARCHAR, driver VARCHAR) |
SELECT MIN(population) FROM table_22815568_1 WHERE market_income_per_capita = "$24,383" | What is the lowest population in a county with market income per capita of $24,383? | CREATE TABLE table_22815568_1 (population INTEGER, market_income_per_capita VARCHAR) |
SELECT "player" FROM table_203_305 WHERE id = 1 | which player was the first player to be drafted ? | CREATE TABLE table_203_305 (
id number,
"round" number,
"#" number,
"player" text,
"nationality" text,
"college/junior/club team (league)" text
) |
SELECT pos FROM table_name_81 WHERE school_club_team = "jacksonville" | Which position has a School/club team of jacksonville? | CREATE TABLE table_name_81 (pos VARCHAR, school_club_team VARCHAR) |
SELECT poverty_rate FROM table_22815568_1 WHERE market_income_per_capita = "$20,518" | What is the povery rate of the county with market income per capita of $20,518? | CREATE TABLE table_22815568_1 (poverty_rate VARCHAR, market_income_per_capita VARCHAR) |
SELECT current_marital_status FROM table_24143253_2 WHERE name = "Stella Farentino" | What is Stella Farentino's current relationship status? | CREATE TABLE table_24143253_2 (
current_marital_status VARCHAR,
name VARCHAR
) |
SELECT SUM(round) FROM table_name_21 WHERE pick = 13 | How many rounds have a Pick of 13? | CREATE TABLE table_name_21 (round INTEGER, pick VARCHAR) |
SELECT market_income_per_capita FROM table_22815568_13 WHERE county = "Hancock" | what is the market income per capita where the county is hancock? | CREATE TABLE table_22815568_13 (market_income_per_capita VARCHAR, county VARCHAR) |
SELECT MIN(game) FROM table_27713030_7 | What game in the season does this list start? | CREATE TABLE table_27713030_7 (
game INTEGER
) |
SELECT SUM(round) FROM table_name_91 WHERE school_club_team = "pan american" | How many rounds have School/club team of pan american? | CREATE TABLE table_name_91 (round INTEGER, school_club_team VARCHAR) |
SELECT county FROM table_22815568_13 WHERE market_income_per_capita = "$25,006" | what is the county where the market income per capita is $25,006? | CREATE TABLE table_22815568_13 (county VARCHAR, market_income_per_capita VARCHAR) |
SELECT MIN(season) FROM table_name_38 WHERE profile = "advertising account manager" | What is the earliest season with an advertising account manager profile? | CREATE TABLE table_name_38 (
season INTEGER,
profile VARCHAR
) |
SELECT chassis FROM table_name_41 WHERE points = "25" | What is the chassis when there is 25 points? | CREATE TABLE table_name_41 (chassis VARCHAR, points VARCHAR) |
SELECT unemployment_rate FROM table_22815568_13 WHERE market_income_per_capita = "$16,406" | what is the unemployment rate where the market income per capita is $16,406? | CREATE TABLE table_22815568_13 (unemployment_rate VARCHAR, market_income_per_capita VARCHAR) |
SELECT COUNT("Grid") FROM table_54320 WHERE "Laps" > '60' AND "Driver" = 'heinz-harald frentzen' | When driver heinz-harald frentzen has a number of laps greater than 60, what is the sum of grid? | CREATE TABLE table_54320 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) |
SELECT points FROM table_name_3 WHERE year < 1979 AND chassis = "ferrari 312b2" | How many points were there before 1979 with a ferrari 312b2 chassis? | CREATE TABLE table_name_3 (points VARCHAR, year VARCHAR, chassis VARCHAR) |
SELECT unemployment_rate FROM table_22815568_13 WHERE county = "Wayne" | what is the unemployment rate for wayne county? | CREATE TABLE table_22815568_13 (unemployment_rate VARCHAR, county VARCHAR) |
SELECT player_name FROM table_10361230_1 WHERE college = "Emporia State" | Which player went to Emporia State? | CREATE TABLE table_10361230_1 (
player_name VARCHAR,
college VARCHAR
) |
SELECT year FROM table_name_3 WHERE points = "29 (32)" | What year were there 29 (32) points? | CREATE TABLE table_name_3 (year VARCHAR, points VARCHAR) |
SELECT original_air_date FROM table_22815870_1 WHERE prod_code = 105 | What is the original air date of the episode with a production code of 105? | CREATE TABLE table_22815870_1 (original_air_date VARCHAR, prod_code VARCHAR) |
SELECT "Nationality" FROM table_4121 WHERE "Player" = 'Peter Slamiar' | What nationality was peter slamiar? | CREATE TABLE table_4121 (
"Pick" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) |
SELECT result FROM table_name_87 WHERE round = "4 leg 2" | What result occurs when the round is 4 leg 2? | CREATE TABLE table_name_87 (result VARCHAR, round VARCHAR) |
SELECT COUNT(county) FROM table_22815568_3 WHERE population = 2266 | How many counties have a population of 2266? | CREATE TABLE table_22815568_3 (county VARCHAR, population VARCHAR) |
SELECT t3.labname FROM (SELECT t2.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'vte prophylaxis - compression boots' AND STRFTIME('%... | what are the three most common laboratory tests patients had within 2 months after receiving a vte prophylaxis - compression boots treatment procedure until 2102? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREAT... |
SELECT home_team AS score FROM table_name_98 WHERE home_team = "fitzroy" | What did fitzroy score at their home game? | CREATE TABLE table_name_98 (home_team VARCHAR) |
SELECT COUNT(status) FROM table_22815568_3 WHERE county = "Wayne" | How many statuses are listed for Wayne county? | CREATE TABLE table_22815568_3 (status VARCHAR, county VARCHAR) |
SELECT visitor FROM table_name_77 WHERE home = "vancouver" | Who was the visitor when vancouver was at home? | CREATE TABLE table_name_77 (
visitor VARCHAR,
home VARCHAR
) |
SELECT away_team FROM table_name_16 WHERE venue = "western oval" | Which away team played at western oval? | CREATE TABLE table_name_16 (away_team VARCHAR, venue VARCHAR) |
SELECT market_income_per_capita FROM table_22815568_3 WHERE status = "Distressed" AND unemployment_rate = "10.5%" | What is the market income per capita in a county where the status is distressed and the unemployment rate is at 10.5%? | CREATE TABLE table_22815568_3 (market_income_per_capita VARCHAR, status VARCHAR, unemployment_rate VARCHAR) |
SELECT "Country" FROM table_20398 WHERE "DAR" = '16:9' AND "Language" = 'Italian English' AND "Television service" = 'Disney XD +2' | Name the country when dar is 16:9 for italian english for disney xd +2 | CREATE TABLE table_20398 (
"N\u00b0" real,
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"DAR" text,
"HDTV" text,
"PPV" text,
"Package/Option" text
) |
SELECT surface FROM table_name_83 WHERE partner = "yew-ming si" | Which surface had Yew-Ming Si as a partner? | CREATE TABLE table_name_83 (surface VARCHAR, partner VARCHAR) |
SELECT status FROM table_22815568_3 WHERE poverty_rate = "36.6%" | What is the status for all the counties that have a poverty rate of 36.6%? | CREATE TABLE table_22815568_3 (status VARCHAR, poverty_rate VARCHAR) |
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'orthopedics consultation' AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-6 year')) AS t... | count the number of patients who had been prescribed albumin human 25 % iv soln within 2 months after having received a orthopedics consultation procedure since 6 years ago. | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code tex... |
SELECT result FROM table_name_73 WHERE rank = 1 | What was the result of rank 1? | CREATE TABLE table_name_73 (result VARCHAR, rank VARCHAR) |
SELECT status FROM table_22815568_6 WHERE poverty_rate = "11.4%" | What is the status if the poverty rate is 11.4%? | CREATE TABLE table_22815568_6 (status VARCHAR, poverty_rate VARCHAR) |
SELECT middle_name, gender_mf FROM Course_Authors_and_Tutors ORDER BY personal_name | Visualize a bar chart about the distribution of middle_name and gender_mf . | CREATE TABLE Student_Course_Enrolment (
registration_id INTEGER,
student_id INTEGER,
course_id INTEGER,
date_of_enrolment DATETIME,
date_of_completion DATETIME
)
CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_des... |
SELECT type FROM table_name_70 WHERE date = "1 june" | What type has a date of 1 june? | CREATE TABLE table_name_70 (type VARCHAR, date VARCHAR) |
SELECT county FROM table_22815568_6 WHERE poverty_rate = "12.9%" | If the poverty rate is 12.9%, what is the county? | CREATE TABLE table_22815568_6 (county VARCHAR, poverty_rate VARCHAR) |
SELECT stop_no FROM table_name_25 WHERE destination = "[2778] claisebrook station platforms" | What is Stop No., when Destination is [2778] Claisebrook Station Platforms? | CREATE TABLE table_name_25 (
stop_no VARCHAR,
destination VARCHAR
) |
SELECT date FROM table_name_16 WHERE type = "hilly stage" | What was the date with a hilly stage? | CREATE TABLE table_name_16 (date VARCHAR, type VARCHAR) |
SELECT MAX(population) FROM table_22815568_6 | What is the population maximum? | CREATE TABLE table_22815568_6 (population INTEGER) |
SELECT * FROM table_train_143 WHERE (pulse_rate >= 45 AND pulse_rate <= 100) AND (respiratory_rate >= 8 AND respiratory_rate <= 20) | pulse rate between 45 _ 100 bpm; respirations between 8 _ 20 per minute | CREATE TABLE table_train_143 (
"id" int,
"gender" string,
"systolic_blood_pressure_sbp" int,
"agitation" bool,
"npi" int,
"aggression_domain" bool,
"delusions_hallucinations" bool,
"pulse_rate" int,
"fridericia_corrected_qt_interval_qtcf" int,
"diastolic_blood_pressure_dbp" int,
... |
SELECT winner FROM table_name_21 WHERE date = "18 may" | What is the name of the winner on 18 may? | CREATE TABLE table_name_21 (winner VARCHAR, date VARCHAR) |
SELECT county FROM table_22815568_6 WHERE unemployment_rate = "4.8%" | What county is the unemployment rate 4.8%? | CREATE TABLE table_22815568_6 (county VARCHAR, unemployment_rate VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.