context
stringlengths
11
9.12k
question
stringlengths
0
1.06k
SQL
stringlengths
2
4.44k
source
stringclasses
28 values
CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate t...
That stupid windows clock question.
SELECT vt.Name, COUNT(pf.VoteTypeId) FROM PostFeedback AS pf INNER JOIN VoteTypes AS vt ON pf.VoteTypeId = vt.Id WHERE pf.PostId = 19051750 AND pf.IsAnonymous = 'true' AND vt.Name = '##UpDownMod:string?UpMod##' GROUP BY pf.VoteTypeId, vt.Name
sede
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...
give the number of patients who primarily came for chest pain and stayed in the hospital for more than 2 days.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CHEST PAIN" AND demographic.days_stay > "2"
mimicsql_data
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 patients ( row_id number, subject_id number, gender text, dob time, dod time ) CR...
how many hours since the first cardiac tamponade diagnosis of patient 10624 in the current hospital visit?
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', diagnoses_icd.charttime)) FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'cardiac tamponade') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admission...
mimic_iii
CREATE TABLE table_25689 ( "Episode Number" text, "Title" text, "Villains" text, "Director" text, "Writer" text, "Original airdate" text )
What was the original air date of the episode 'nano nits'?
SELECT "Original airdate" FROM table_25689 WHERE "Title" = 'Nano Nits'
wikisql
CREATE TABLE table_name_74 ( Id VARCHAR )
What 2006 has 1r as the 2007?
SELECT 2006 FROM table_name_74 WHERE 2007 = "1r"
sql_create_context
CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE flight ( aircraft_code_sequence text, airline_code varchar, airline_flight text, arrival_time int, ...
what is the first flight after 1200 from WASHINGTON for DENVER
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, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND flight.departure_time > 1200 AND flight.to_airport = AIRPORT_SERVICE_1.airpo...
atis
CREATE TABLE table_name_6 ( field_goals VARCHAR, extra_points VARCHAR, touchdowns VARCHAR )
What is the total number of field goals a player had when there were more than 0 extra points and there were 5 touchdowns?
SELECT COUNT(field_goals) FROM table_name_6 WHERE extra_points > 0 AND touchdowns = 5
sql_create_context
CREATE TABLE table_name_54 ( wins VARCHAR, rank VARCHAR, scoring_average VARCHAR )
What is the total number of Wins when 98 is the rank and the scoring average is more than 73.52?
SELECT COUNT(wins) FROM table_name_54 WHERE rank = "98" AND scoring_average > 73.52
sql_create_context
CREATE TABLE table_name_7 ( total__kg_ INTEGER, snatch VARCHAR, bodyweight VARCHAR )
What is the total for the player with more snatches than 87.5 and bodyweight more than 74.8?
SELECT AVG(total__kg_) FROM table_name_7 WHERE snatch > 87.5 AND bodyweight > 74.8
sql_create_context
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, ...
find the maximum days of hospital stay for patients who were admitted in or after the year 2184.
SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.admityear >= "2184"
mimicsql_data
CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, ...
Find all suggested edits made by a user.
SELECT Id, PostId AS "post_link", CreationDate, ApprovalDate, RejectionDate, Comment FROM SuggestedEdits WHERE OwnerUserId = '##UserId##'
sede
CREATE TABLE film ( Film_ID int, Rank_in_series int, Number_in_season int, Title text, Directed_by text, Original_air_date text, Production_code text ) CREATE TABLE cinema ( Cinema_ID int, Name text, Openning_year int, Capacity int, Location text ) CREATE TABLE schedule...
Bar chart of how many openning year from each openning year, and display by the the number of openning year from high to low.
SELECT Openning_year, COUNT(Openning_year) FROM cinema GROUP BY Openning_year ORDER BY COUNT(Openning_year) DESC
nvbench
CREATE TABLE table_name_30 ( nominee VARCHAR, category VARCHAR )
Who was nominated for outstanding director of a musical?
SELECT nominee FROM table_name_30 WHERE category = "outstanding director of a musical"
sql_create_context
CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE PostNoticeTypes ( Id...
Count of new user registrations by month. It shows the stats only until the last completely dumped month to the SEDE.
SELECT DATEFROMPARTS(TIME_TO_STR(CreationDate, '%Y'), TIME_TO_STR(CreationDate, '%M'), 1) AS Month, COUNT(*) AS Count FROM Users WHERE CreationDate < @TsNow GROUP BY DATEFROMPARTS(TIME_TO_STR(CreationDate, '%Y'), TIME_TO_STR(CreationDate, '%M'), 1) ORDER BY Month
sede
CREATE TABLE table_204_489 ( id number, "rank" number, "name" text, "height" text, "floors" number, "year" number, "notes" text )
how tall -lrb- in meters -rrb- is the tallest building ?
SELECT "height" FROM table_204_489 ORDER BY "height" DESC LIMIT 1
squall
CREATE TABLE table_6583 ( "Celebrity" text, "Famous for" text, "Entered" text, "Exited" text, "Finished" text )
What rank did Myleene Klass finish?
SELECT "Finished" FROM table_6583 WHERE "Celebrity" = 'myleene klass'
wikisql
CREATE TABLE table_30650 ( "No." real, "#" real, "Title" text, "Directed by" text, "Written by" text, "U.S. air date" text, "Production code" text, "U.S. viewers (million)" text )
Who is directed by when 'fade' is the title?
SELECT "Directed by" FROM table_30650 WHERE "Title" = 'Fade'
wikisql
CREATE TABLE fare_basis ( fare_basis_code text, booking_class text, class_type text, premium text, economy text, discounted text, night text, season text, basis_days text ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE equipment_...
please list the flights leaving from ST. LOUIS to ST. PAUL after 1000
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, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ST. PAUL' AND flight.departure_time > 1000 AND flight.to_airport = AIRPORT_SERVICE_1.airp...
atis
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE medication ( medicatio...
how many patients were diagnosed with acute renal failure who did not return to the hospital within 2 months in this year?
SELECT (SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'acute renal failure' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(...
eicu
CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype tex...
how many patients were diagnosed with end stage renal disease and they didn't come back to the hospital within 2 months until 2 years ago?
SELECT (SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'end stage ...
mimic_iii
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescription...
what is the number of patients whose admission location is clinic referral/premature and procedure icd9 code is 46?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND procedures.icd9_code = "46"
mimicsql_data
CREATE TABLE table_203_482 ( id number, "year" number, "award" text, "result" text, "category" text, "series" text )
how many awards total was scrubs nominated for ?
SELECT COUNT("award") FROM table_203_482
squall
CREATE TABLE table_203_664 ( id number, "club" text, "town" text, "founded" number, "nickname" text, "colours" text, "home ground" text, "titles" number, "website" text )
how many teams were founded in morwell ?
SELECT COUNT("club") FROM table_203_664 WHERE "town" = 'morwell'
squall
CREATE TABLE table_name_24 ( code INTEGER, density__inh_km²_ VARCHAR, land_area__hectares_ VARCHAR )
How many codes have a density of 621.68, and a Land area (hectares) larger than 75.28?
SELECT SUM(code) FROM table_name_24 WHERE density__inh_km²_ = 621.68 AND land_area__hectares_ > 75.28
sql_create_context
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 ...
whats the sex of patient 22315?
SELECT patients.gender FROM patients WHERE patients.subject_id = 22315
mimic_iii
CREATE TABLE table_name_93 ( team VARCHAR, position VARCHAR, pick VARCHAR )
WHAT IS THE TEAM WITH AN OF POSITION AND PICK OF 24?
SELECT team FROM table_name_93 WHERE position = "of" AND pick = 24
sql_create_context
CREATE TABLE t_kc24 ( ACCOUNT_DASH_DATE time, ACCOUNT_DASH_FLG number, CASH_PAY number, CIVIL_SUBSIDY number, CKC102 number, CLINIC_ID text, CLINIC_SLT_DATE time, COMP_ID text, COM_ACC_PAY number, COM_PAY number, DATA_ID text, ENT_ACC_PAY number, ENT_PAY number, F...
编号为4510388的这个医院医治过多少异地患者?在2016-09-10到2020-07-08的这段时间
SELECT COUNT(*) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '4510388' AND t_kc21.IN_HOSP_DATE BETWEEN '2016-09-10' AND '2020-07-08' AND t_kc21.REMOTE_SETTLE_FLG = '异地1' OR t_kc21.REMOTE_SETTLE_FLG = '异地2'
css
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE treatment ( treatmentid...
what was the first time a drug was prescribed for patient 006-158338 on their current hospital visit?
SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-158338' AND patient.hospitaldischargetime IS NULL)) ORDER ...
eicu
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...
find out the number of patients diagnosed with chronic diastolic heart failure who had emergency admission.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.long_title = "Chronic diastolic heart failure"
mimicsql_data
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE vitalperiodic ( vitalperiod...
what would be the maximum daily number of patients diagnosed with acute renal failure - due to hypovolemia/decreased circulating volume in the previous year?
SELECT MAX(t1.c1) FROM (SELECT COUNT(DISTINCT diagnosis.patientunitstayid) AS c1 FROM diagnosis WHERE diagnosis.diagnosisname = 'acute renal failure - due to hypovolemia/decreased circulating volume' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY S...
eicu
CREATE TABLE table_52676 ( "Name" text, "Title" text, "Start term" real, "End term" real, "House" text )
What is the average Start term with a 1912 end term?
SELECT AVG("Start term") FROM table_52676 WHERE "End term" = '1912'
wikisql
CREATE TABLE table_203_145 ( id number, "position" number, "club" text, "played" number, "points" text, "wins" number, "draws" number, "losses" number, "goals for" number, "goals against" number, "goal difference" number )
did any clubs have no losses ?
SELECT (SELECT COUNT("club") FROM table_203_145 WHERE "losses" = 0) > 0
squall
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE intakeoutput ( i...
how many days have it been since the first time patient 035-24054 has had the oral intake on the current icu visit?
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', intakeoutput.intakeoutputtime)) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid =...
eicu
CREATE TABLE table_name_80 ( wins VARCHAR, podiums VARCHAR, f_laps VARCHAR )
If Podiums is 2 and F/Laps are 2, what are the wins?
SELECT wins FROM table_name_80 WHERE podiums = "2" AND f_laps = "2"
sql_create_context
CREATE TABLE table_25276250_3 ( release_year VARCHAR, outputs VARCHAR, notes VARCHAR )
What year were outputs is 2x pro bias, rca loop out and notes is vacuum tube released?
SELECT release_year FROM table_25276250_3 WHERE outputs = "2x Pro Bias, RCA Loop Out" AND notes = "Vacuum tube"
sql_create_context
CREATE TABLE person_info ( CSD text, CSRQ time, GJDM text, GJMC text, JGDM text, JGMC text, MZDM text, MZMC text, RYBH text, XBDM number, XBMC text, XLDM text, XLMC text, XM text, ZYLBDM text, ZYMC text ) CREATE TABLE bdmzjzjlb ( HXPLC number, HZX...
在18年9月23日到2021年10月29日内病患93673084的有多少检验结果指标记录的检测人为窦虹雨的检验指标流水号?
SELECT jyjgzbb.JYZBLSH FROM hz_info JOIN wdmzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.B...
css
CREATE TABLE table_name_51 ( tournament VARCHAR, opponent VARCHAR )
what tournament had sam querrey as the opponent?
SELECT tournament FROM table_name_51 WHERE opponent = "sam querrey"
sql_create_context
CREATE TABLE table_42876 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Event" text, "Notes" text )
Which Event has a Year of 1986?
SELECT "Event" FROM table_42876 WHERE "Year" = '1986'
wikisql
CREATE TABLE table_68601 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text )
What is the record of the team that lost to Alexander (5-2)?
SELECT "Record" FROM table_68601 WHERE "Loss" = 'alexander (5-2)'
wikisql
CREATE TABLE table_name_15 ( city VARCHAR, sep VARCHAR )
Name the city with september of 83 f / 28.3 c
SELECT city FROM table_name_15 WHERE sep = "83 °f / 28.3 °c"
sql_create_context
CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE...
what is the maximum daily number of patients with thrombot microangiopathy diagnosed until 2104?
SELECT MAX(t1.c1) FROM (SELECT COUNT(DISTINCT diagnoses_icd.hadm_id) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'thrombot microangiopathy') AND STRFTIME('%y', diagnoses_icd.charttime) <= '2104' GROUP BY STRFTIME('%y...
mimic_iii
CREATE TABLE table_36643 ( "Year" real, "Date" text, "Winner" text, "Result" text, "Loser" text, "Location" text )
Who lost at schaefer stadium when the Winner was new england patriots, and a Date of october 18?
SELECT "Loser" FROM table_36643 WHERE "Location" = 'schaefer stadium' AND "Winner" = 'new england patriots' AND "Date" = 'october 18'
wikisql
CREATE TABLE table_name_18 ( events INTEGER, tournament VARCHAR, top_5 VARCHAR )
What is the average event for the Open Championship Tournament, and a Top-5 less than 1?
SELECT AVG(events) FROM table_name_18 WHERE tournament = "the open championship" AND top_5 < 1
sql_create_context
CREATE TABLE table_204_883 ( id number, "pos." text, "name" text, "place of birth" text, "date of birth" text, "previous club" text, "date joined" text, "fee" text )
which player is the oldest ?
SELECT "name" FROM table_204_883 ORDER BY "date of birth" LIMIT 1
squall
CREATE TABLE table_name_55 ( date VARCHAR, winning_score VARCHAR )
What is the Date of the Tournament with a Winning score of 9 (65-71-68-67=271)?
SELECT date FROM table_name_55 WHERE winning_score = −9(65 - 71 - 68 - 67 = 271)
sql_create_context
CREATE TABLE t_kc21 ( MED_CLINIC_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, COMP_ID text, PERSON_ID text, PERSON_NM text, IDENTITY_CARD text, SOC_SRT_CARD text, PERSON_SEX number, PERSON_AGE number, IN_HOSP_DATE time, OUT_HOSP_DATE time, DIFF_PLACE_FLG numb...
在2008年4月28日到2018年10月12日之间参保人韦逸馨门诊手术费一共是多少?
SELECT SUM(t_kc22.AMOUNT) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '韦逸馨' AND t_kc21.CLINIC_TYPE = '门诊' AND t_kc22.STA_DATE BETWEEN '2008-04-28' AND '2018-10-12' AND t_kc22.MED_INV_ITEM_TYPE = '手术费'
css
CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, U...
My favorites URL on Meta.
SELECT url = 'https://physics.meta.stackexchange.com/questions/' + CAST(q.Id AS TEXT) FROM Votes AS v INNER JOIN Posts AS q ON v.PostId = q.Id WHERE VoteTypeId = 5 AND UserId = '##UserId##' ORDER BY q.Id DESC
sede
CREATE TABLE table_name_18 ( total_cargo__metric_tonnes_ INTEGER, code__iata_icao_ VARCHAR, rank VARCHAR )
What is the highest total cargo of an airport ranked larger than 19 with a code of BKK/VTBS?
SELECT MAX(total_cargo__metric_tonnes_) FROM table_name_18 WHERE code__iata_icao_ = "bkk/vtbs" AND rank > 19
sql_create_context
CREATE TABLE table_53109 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
What driver raced for more than 9 laps on grid 7?
SELECT "Driver" FROM table_53109 WHERE "Laps" > '9' AND "Grid" = '7'
wikisql
CREATE TABLE table_42649 ( "Tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text )
What shows for 2010 when 2005 shows 1r?
SELECT "2010" FROM table_42649 WHERE "2005" = '1r'
wikisql
CREATE TABLE table_814 ( "Stain" text, "Common use" text, "Nucleus" text, "Cytoplasm" text, "Red blood cell (RBC)" text, "Collagen fibers" text, "Specifically stains" text )
Pink cytoplasm is seen in a test that specifically stains what?
SELECT "Specifically stains" FROM table_814 WHERE "Cytoplasm" = 'Pink'
wikisql
CREATE TABLE table_16267 ( "Year" real, "Network" text, "Host" text, "Pre-race analyst" text, "Lap-by-lap" text, "Color commentator(s)" text, "Pit reporters" text )
Who does the lap-by-lap in 2011?
SELECT "Lap-by-lap" FROM table_16267 WHERE "Year" = '2011'
wikisql
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, h...
what is the minimum hospital cost for a drug with a name called nacl 0.9% bolus until 2 years ago?
SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'nacl 0.9% bolus')) AND DATETIME(cost.chargetim...
eicu
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 microlab ( microl...
how much is the change of patient 018-47575's hct last measured on the first hospital visit compared to the first value measured on the first hospital visit?
SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '018-47575' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospi...
eicu
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...
what is the number of patients whose primary disease is gastrointestinal bleed?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "GASTROINTESTINAL BLEED"
mimicsql_data
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, ...
provide the number of patients whose death status is 1 and lab test name is lactate dehydrogenase, pleural?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.expire_flag = "1" AND lab.label = "Lactate Dehydrogenase, Pleural"
mimicsql_data
CREATE TABLE hz_info_mzjzjlb ( JZLSH number, YLJGDM number, mzjzjlb_id number ) CREATE TABLE zyjzjlb ( CYBQDM text, CYBQMC text, CYCWH text, CYKSDM text, CYKSMC text, CYSJ time, CYZTDM number, HZXM text, JZKSDM text, JZKSMC text, JZLSH text, KH text, KLX ...
名叫李向彤的病人所有检验结果指标记录中的检测方法在11年12月4日到21年12月17日内都有哪些?
SELECT jyjgzbb.JCFF FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN hz_info_mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb...
css
CREATE TABLE table_name_18 ( gold INTEGER, rank VARCHAR, nation VARCHAR )
what is the highest gold when the rank is 12 for the nation vietnam?
SELECT MAX(gold) FROM table_name_18 WHERE rank = "12" AND nation = "vietnam"
sql_create_context
CREATE TABLE operate_company ( TYPE VARCHAR )
What is the most common company type, and how many are there?
SELECT TYPE, COUNT(*) FROM operate_company GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
sql_create_context
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE intakeoutput ( intakeoutputid ...
how much is the average hospital cost involving cultures - bal/pbs since 2102?
SELECT AVG(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'cultures - bal/pbs')) AND STRFTIME('%y', cos...
eicu
CREATE TABLE stadium ( ID int, name text, Capacity int, City text, Country text, Opening_year int ) CREATE TABLE swimmer ( ID int, name text, Nationality text, meter_100 real, meter_200 text, meter_300 text, meter_400 text, meter_500 text, meter_600 text, ...
Draw a bar chart about the distribution of Nationality and the amount of Nationality , and group by attribute Nationality.
SELECT Nationality, COUNT(Nationality) FROM swimmer GROUP BY Nationality
nvbench
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...
what is the number of office admission patients who were admitted in hospital before 2111?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND demographic.admityear < "2111"
mimicsql_data
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, ...
provide the number of patients whose days of hospital stay is greater than 8 and drug name is acetylcysteine 20%?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "8" AND prescriptions.drug = "Acetylcysteine 20%"
mimicsql_data
CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text ) CREATE TABLE university ( Scho...
Draw a bar chart about the distribution of All_Home and the sum of Team_ID , and group by attribute All_Home, and I want to show from high to low by the All_Home.
SELECT All_Home, SUM(Team_ID) FROM basketball_match GROUP BY All_Home ORDER BY All_Home DESC
nvbench
CREATE TABLE table_name_63 ( position INTEGER, club VARCHAR, goal_difference VARCHAR )
What is the position of club Melilla CF, with a goal difference smaller than -10?
SELECT SUM(position) FROM table_name_63 WHERE club = "melilla cf" AND goal_difference < -10
sql_create_context
CREATE TABLE table_name_60 ( venue VARCHAR, margin VARCHAR, opponent VARCHAR )
Name the venue for margin less than 66 and opponent of north queensland cowboys
SELECT venue FROM table_name_60 WHERE margin < 66 AND opponent = "north queensland cowboys"
sql_create_context
CREATE TABLE table_name_25 ( fa_cup INTEGER, total VARCHAR, malaysia_cup VARCHAR, player VARCHAR )
Which FA Cup is the highest one that has a Malaysia Cup of 0, and a Player of ahmad fouzee masuri, and a Total larger than 0?
SELECT MAX(fa_cup) FROM table_name_25 WHERE malaysia_cup = 0 AND player = "ahmad fouzee masuri" AND total > 0
sql_create_context
CREATE TABLE table_67120 ( "State ranked in partisan order" text, "Percentage Republicans" text, "Percentage Democrats" text, "Republican/ Democratic" text, "Republican seat plurality" text )
What is the Republican seat plurality of the state with a ratio of 12/4 Republicans to Democrats?
SELECT "Republican seat plurality" FROM table_67120 WHERE "Republican/ Democratic" = '12/4'
wikisql
CREATE TABLE table_26390 ( "Branding" text, "Callsign" text, "Frequency" text, "Power kW" text, "Coverage" text )
What is the coverage when power kw is 25kw?
SELECT "Coverage" FROM table_26390 WHERE "Power kW" = '25kW'
wikisql
CREATE TABLE zyb ( CLINIC_ID text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURED_STS text, INSU_TYPE text, IN...
列出对于凤锐达患者医疗记录中医疗费总额高于7564.57元的入院诊断疾病号码和名称都是哪些?
SELECT qtb.IN_DIAG_DIS_CD, qtb.IN_DIAG_DIS_NM FROM qtb WHERE qtb.PERSON_NM = '凤锐达' AND qtb.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT > 7564.57) UNION SELECT gyb.IN_DIAG_DIS_CD, gyb.IN_DIAG_DIS_NM FROM gyb WHERE gyb.PERSON_NM = '凤锐达' AND gyb.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLIN...
css
CREATE TABLE table_name_89 ( venue VARCHAR, home_team VARCHAR, result VARCHAR )
What was the Venue of the San Francisco 49ers Home game with a Result of 30-10?
SELECT venue FROM table_name_89 WHERE home_team = "san francisco 49ers" AND result = "30-10"
sql_create_context
CREATE TABLE table_12261806_2 ( general_classification VARCHAR, stage VARCHAR )
Name the general classification of stage 15
SELECT COUNT(general_classification) FROM table_12261806_2 WHERE stage = "15"
sql_create_context
CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description...
Accepted answers average score per user.
SELECT CAST(AVG(CAST(a.Score AS FLOAT)) AS FLOAT(20, 3)) AS average, COUNT(a.Score) AS acceptedanswers, a.OwnerUserId AS "user_link", (SELECT Reputation FROM Users WHERE Id = a.OwnerUserId) AS rep FROM Posts AS a GROUP BY a.OwnerUserId HAVING (COUNT(a.Score) > 5 OR a.OwnerUserId = @UserId) ORDER BY average DESC
sede
CREATE TABLE table_31266 ( "Season" real, "Apocalypstix" text, "Denim Demons" text, "Sake Tuyas" text, "Toxic Shocks" text )
What season did the Sake Tuyas come in 1st place?
SELECT "Season" FROM table_31266 WHERE "Sake Tuyas" = '1st'
wikisql
CREATE TABLE table_224839_3 ( vacator VARCHAR, successor VARCHAR )
What is the number of vacators when the successor was William H. Wells ( F )?
SELECT COUNT(vacator) FROM table_224839_3 WHERE successor = "William H. Wells ( F )"
sql_create_context
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time )...
tell me the name of the drug that patient 005-77687 is allergic to the last month?
SELECT allergy.drugname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-77687')) AND DATETIME(allergy.allergytime, 'start of month') = DATETIME(...
eicu
CREATE TABLE t_kc24 ( ACCOUNT_DASH_DATE time, ACCOUNT_DASH_FLG number, CASH_PAY number, CIVIL_SUBSIDY number, CKC102 number, CLINIC_ID text, CLINIC_SLT_DATE time, COMP_ID text, COM_ACC_PAY number, COM_PAY number, DATA_ID text, ENT_ACC_PAY number, ENT_PAY number, F...
列出为49528446这个病人开药品438415-0的几家医院
SELECT qtb.MED_SER_ORG_NO FROM qtb WHERE qtb.PERSON_ID = '49528446' AND qtb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.SOC_SRT_DIRE_CD = '438415-0') UNION SELECT gyb.MED_SER_ORG_NO FROM gyb WHERE gyb.PERSON_ID = '49528446' AND gyb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHE...
css
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, ...
what is admission type of subject id 53707?
SELECT demographic.admission_type FROM demographic WHERE demographic.subject_id = "53707"
mimicsql_data
CREATE TABLE table_name_39 ( fastest_lap VARCHAR, constructor VARCHAR, location VARCHAR )
Who ran the fastest lap in the team that competed in Zolder, in which Ferrari was the Constructor?
SELECT fastest_lap FROM table_name_39 WHERE constructor = "ferrari" AND location = "zolder"
sql_create_context
CREATE TABLE table_name_75 ( road_number VARCHAR, type VARCHAR, rank VARCHAR )
What is the rad number for the dead end in rank 22?
SELECT road_number FROM table_name_75 WHERE type = "dead end" AND rank = "22"
sql_create_context
CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varch...
Show me easy 300 -level classes .
SELECT DISTINCT course.name, course.number, program_course.workload FROM course, program_course WHERE course.department = 'EECS' AND course.number BETWEEN 300 AND 300 + 100 AND program_course.course_id = course.course_id AND program_course.workload < 3 ORDER BY program_course.workload
advising
CREATE TABLE table_name_56 ( to_par VARCHAR, finish VARCHAR, player VARCHAR )
What is the To Par when the finish was t16 and the player was Julius Boros?
SELECT to_par FROM table_name_56 WHERE finish = "t16" AND player = "julius boros"
sql_create_context
CREATE TABLE table_name_62 ( res VARCHAR, opponent VARCHAR )
Did the fighter beat Ryo Takigawa?
SELECT res FROM table_name_62 WHERE opponent = "ryo takigawa"
sql_create_context
CREATE TABLE table_204_693 ( id number, "place" text, "total" number, "men" number, "women" number, "children" number, "elderly" number, "serbs" number, "jews" number, "romani" number, "rusyns" number, "hungarians" number, "russians" number )
how many children casualties were there in temerin and titel ?
SELECT SUM("children") FROM table_204_693 WHERE "place" IN ('temerin', 'titel')
squall
CREATE TABLE table_name_61 ( total VARCHAR, gold VARCHAR, bronze VARCHAR, silver VARCHAR )
What is the total number of medals when the Bronze, Silver, and Gold medals are smaller than 1?
SELECT COUNT(total) FROM table_name_61 WHERE bronze < 1 AND silver < 1 AND gold < 1
sql_create_context
CREATE TABLE broadcast ( channel_id number, program_id number, time_of_day text ) CREATE TABLE program ( program_id number, name text, origin text, launch number, owner text ) CREATE TABLE channel ( channel_id number, name text, owner text, share_in_percent number, ...
Who are the owners of the programs that broadcast both in the morning and at night?
SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.time_of_day = "Morning" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.time_of_day = "Night"
spider
CREATE TABLE jybgb ( BBCJBW text, BBDM text, BBMC text, BBZT number, BGDH text, BGJGDM text, BGJGMC text, BGRGH text, BGRQ time, BGRXM text, BGSJ time, CJRQ time, JSBBRQSJ time, JSBBSJ time, JYBBH text, JYJGMC text, JYJSGH text, JYJSQM text, JY...
患者15176126为精神分裂症,门诊诊断的补体C4的结果定量及其单位都是什么?
SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN txmzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jyb...
css
CREATE TABLE table_11603 ( "Pick" real, "Player" text, "Country of origin*" text, "PBA team" text, "College" text )
Which Country of origin has a Pick larger than 1 and a College named Far Eastern / PSBA?
SELECT "Country of origin*" FROM table_11603 WHERE "Pick" > '1' AND "College" = 'far eastern / psba'
wikisql
CREATE TABLE table_9198 ( "Timetable" text, "Company name" text, "Production place" text, "State" text, "Owner" text )
What state is Wesson in?
SELECT "State" FROM table_9198 WHERE "Owner" = 'wesson'
wikisql
CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE state ( state_code text, state...
show me all the flights from MONTREAL to DETROIT
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, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'MONTREAL' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DETRO...
atis
CREATE TABLE table_61431 ( "County" text, "Precincts" text, "C. Abate" text, "R. Bacon" text, "D. Shulman" text )
Which county has 438 (4%) listed under R. Bacon?
SELECT "County" FROM table_61431 WHERE "R. Bacon" = '438 (4%)'
wikisql
CREATE TABLE table_name_23 ( points_difference VARCHAR, played VARCHAR, points_for VARCHAR )
Which Points difference has Played of 32, and Points for of 840?
SELECT points_difference FROM table_name_23 WHERE played = "32" AND points_for = "840"
sql_create_context
CREATE TABLE t_kc24 ( ACCOUNT_DASH_DATE time, ACCOUNT_DASH_FLG number, CASH_PAY number, CIVIL_SUBSIDY number, CKC102 number, CLINIC_ID text, CLINIC_SLT_DATE time, COMP_ID text, COM_ACC_PAY number, COM_PAY number, DATA_ID text, ENT_ACC_PAY number, ENT_PAY number, F...
患者杨星波被开出过金额不低于3838.71元的药品在哪几次医疗记录中?列出医疗就诊编号有哪些?
SELECT gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_NM = '杨星波' AND gwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT >= 3838.71) UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '杨星波' AND fgwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc2...
css
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ...
count the number of patients whose age is less than 67 and procedure short title is sm bowel exteriorization?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "67" AND procedures.short_title = "Sm bowel exteriorization"
mimicsql_data
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...
how many patients whose days of hospital stay is greater than 30 and drug name is hydromorphone (dilaudid)?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "30" AND prescriptions.drug = "HYDROmorphone (Dilaudid)"
mimicsql_data
CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost numb...
count the number of times that since 103 months ago patient 1114 had been prescribed meropenem.
SELECT COUNT(*) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1114) AND prescriptions.drug = 'meropenem' AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-103 month')
mimic_iii
CREATE TABLE jybgb ( BBCJBW text, BBDM text, BBMC text, BBZT number, BGDH text, BGJGDM text, BGJGMC text, BGRGH text, BGRQ time, BGRXM text, BGSJ time, CJRQ time, JSBBRQSJ time, JSBBSJ time, JYBBH text, JYJGMC text, JYJSGH text, JYJSQM text, JY...
患者84544410的直接胆红素二代指标在06年11月10日-13年2月14日期间是怎样的
SELECT * FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN jybgb_jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jybgb_jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BG...
css
CREATE TABLE table_19029 ( "Year" real, "Mens singles" text, "Womens singles" text, "Mens doubles" text, "Womens doubles" text, "Mixed doubles" text )
who is the the mixed doubles with year being 1972
SELECT "Mixed doubles" FROM table_19029 WHERE "Year" = '1972'
wikisql
CREATE TABLE table_name_90 ( date VARCHAR, tie_no VARCHAR )
On what date was Tie #26 played?
SELECT date FROM table_name_90 WHERE tie_no = "26"
sql_create_context
CREATE TABLE table_name_76 ( region VARCHAR, date VARCHAR )
What is the region for the date November 18, 2002?
SELECT region FROM table_name_76 WHERE date = "november 18, 2002"
sql_create_context