context
stringlengths
11
9.12k
question
stringlengths
0
1.06k
SQL
stringlengths
2
4.44k
source
stringclasses
28 values
CREATE TABLE table_name_76 ( third VARCHAR, lead VARCHAR )
WHAT IS THE THIRD WITH LEAD CINDY SIMMONS?
SELECT third FROM table_name_76 WHERE lead = "cindy simmons"
sql_create_context
CREATE TABLE table_name_1 ( set_3 VARCHAR, week VARCHAR )
What is set 3 on week 6?
SELECT set_3 FROM table_name_1 WHERE week = 6
sql_create_context
CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE diagnoses_icd ( ...
what is the name of the drug that patient 79348 was prescribed after the chf nos diagnosis in 08/this year, within 2 days?
SELECT t2.drug FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 79348 AND diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'chf no...
mimic_iii
CREATE TABLE table_name_31 ( fall_05 VARCHAR, fall_09 VARCHAR, states VARCHAR, fall_08 VARCHAR, fall_06 VARCHAR )
What is the sum amount of fall 05 when fall 08 is more than 5, fall 06 is more than 7, the state is Maryland, and fall 09 is more than 471?
SELECT COUNT(fall_05) FROM table_name_31 WHERE fall_08 > 5 AND fall_06 > 7 AND states = "maryland" AND fall_09 > 471
sql_create_context
CREATE TABLE table_14642 ( "Year" text, "Title" text, "Role" text, "Episodes" text, "Broadcaster" text )
What was the role for Challenge TV?
SELECT "Role" FROM table_14642 WHERE "Broadcaster" = 'challenge tv'
wikisql
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...
count the number of patients whose insurance is medicare and diagnosis short title is chronic diastolic heart failure.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicare" AND diagnoses.short_title = "Chr diastolic hrt fail"
mimicsql_data
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE vitalperiodic ( ...
what are the three most frequently occurrences of output events this year?
SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%output%' AND DATETIME(intakeoutput.intakeoutputtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY intakeoutput.celllabel) AS ...
eicu
CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, departure_time int, departure_airline text, departure_flight_number int, stop_time int ) CREATE TABLE date_day ( ...
what is the earliest flight arriving in CHARLOTTE from ST. LOUIS on friday
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 (((((flight.departure_time > flight.arrival_time) AND date_day.day_number = 25 AND date_day.month_number = 6 AND date_day.year = 1991 AND days.da...
atis
CREATE TABLE table_train_124 ( "id" int, "loss_of_consciousness" bool, "serum_glucose" bool, "myelosuppression" bool, "retinoids_hepatotoxic" bool, "pulmonary_disease" bool, "etiology" bool, "abnormal_thyroid_function" bool, "laboratory_abnormality" bool, "chest_pain" bool, "...
current evidence or history in past two years of epilepsy, seizure, focal brain lesion, head injury with loss of consciousness or dsm iv criteria for any major psychiatric disorder including psychosis, major depression, bipolar disorder, severe alcohol or substance abuse.
SELECT * FROM table_train_124 WHERE epilepsy = 1 OR seizure_disorder = 1 OR focal_brain_lesion = 1 OR (head_injury = 1 AND loss_of_consciousness = 1) OR dsm_iv_criteria = 1 OR (major_psychiatric_disorder = 1 OR psychosis = 1 OR major_depression = 1 OR bipolar_disorder = 1 OR alcohol_abuse = 1 OR substance_dependence = ...
criteria2sql
CREATE TABLE table_name_22 ( firefox VARCHAR, opera VARCHAR, date VARCHAR )
What is the firefox value with a 1.8% opera on 30 July 2007?
SELECT firefox FROM table_name_22 WHERE opera = "1.8%" AND date = "30 july 2007"
sql_create_context
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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) ...
provide the number of patients whose diagnoses icd9 code is 77089 and lab test fluid is other fluid.
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.icd9_code = "77089" AND lab.fluid = "Other Body Fluid"
mimicsql_data
CREATE TABLE table_41467 ( "Club" text, "2012" text, "Seasons in Esiliiga" real, "Current run since" real, "Titles" real, "Last title" text )
What is the highest run currently since the last title in 2010, and a season in Esiliiga larger than 10?
SELECT MAX("Current run since") FROM table_41467 WHERE "Last title" = '2010' AND "Seasons in Esiliiga" > '10'
wikisql
CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, ...
so whats the first weight of patient 14749 in 03/2103?
SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14749)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit wt'...
mimic_iii
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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) ...
How many patients have lab test abnormal status as delta and lab test name as folate?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.flag = "delta" AND lab.label = "Folate"
mimicsql_data
CREATE TABLE college ( cname text, state text, enr number ) CREATE TABLE tryout ( pid number, cname text, ppos text, decision text ) CREATE TABLE player ( pid number, pname text, ycard text, hs number )
What are the names of players whose training hours is between 500 and 1500?
SELECT pname FROM player WHERE hs BETWEEN 500 AND 1500
spider
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,...
how many patients whose insurance is private and discharge location is rehab/distinct part hosp?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Private" AND demographic.discharge_location = "REHAB/DISTINCT PART HOSP"
mimicsql_data
CREATE TABLE gwyjzb ( CLINIC_ID text, CLINIC_TYPE 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, ...
能知道患者窦湛蓝在2004.12.7到2017.9.13这段时间看病最主要挂哪个医生的号吗
SELECT gwyjzb.OUT_DIAG_DOC_CD, gwyjzb.OUT_DIAG_DOC_NM FROM gwyjzb WHERE gwyjzb.PERSON_NM = '窦湛蓝' AND gwyjzb.IN_HOSP_DATE BETWEEN '2004-12-07' AND '2017-09-13' GROUP BY gwyjzb.OUT_DIAG_DOC_CD ORDER BY COUNT(*) DESC LIMIT 1 UNION SELECT fgwyjzb.OUT_DIAG_DOC_CD, fgwyjzb.OUT_DIAG_DOC_NM FROM fgwyjzb WHERE fgwyjzb.PERSON_NM...
css
CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) CREATE TABLE jyjgzbb ( BGDH text, BGRQ time, CKZFWDX text, CKZFWSX number, CKZFWXX number, JCFF text, JCRGH text, JCRXM text, JCXMMC text, JCZBDM text, JCZBJGDL number, JCZBJGDW text, ...
列出在05年2月7日到2015年9月7日内03628207患者被开出的所有检验报告单的检验报告单号是多少?
SELECT jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb 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 WHERE hz_info.RYBH = '03628207' AND jybgb.BGRQ BETWEEN '2005-02-07' AND '2015-09-07' UNION...
css
CREATE TABLE table_59499 ( "Date" text, "Opponents" text, "H / A" text, "Result F \u2013 A" text, "Attendance" real )
What's the attendance when the opponents are cambridge united?
SELECT "Attendance" FROM table_59499 WHERE "Opponents" = 'cambridge united'
wikisql
CREATE TABLE table_69335 ( "Ship" text, "Builder" text, "Namesake" text, "Renamed" text, "Laid down" text, "Launched" text, "Commissioned or completed(*)" text )
What was the original name of the ship 'Ajax'?
SELECT "Renamed" FROM table_69335 WHERE "Ship" = 'ajax'
wikisql
CREATE TABLE table_name_96 ( pts INTEGER, wins VARCHAR, coach VARCHAR )
What is the sum of points when Bruce Arena has 21 wins?
SELECT SUM(pts) FROM table_name_96 WHERE wins = 21 AND coach = "bruce arena"
sql_create_context
CREATE TABLE CLASS ( CLASS_CODE varchar(5), CRS_CODE varchar(10), CLASS_SECTION varchar(2), CLASS_TIME varchar(20), CLASS_ROOM varchar(8), PROF_NUM int ) CREATE TABLE COURSE ( CRS_CODE varchar(10), DEPT_CODE varchar(10), CRS_DESCRIPTION varchar(35), CRS_CREDIT float(8) ) CREATE...
How many different professors are there for the different schools Show bar chart, sort bars from high to low order.
SELECT SCHOOL_CODE, COUNT(*) FROM DEPARTMENT AS T1 JOIN PROFESSOR AS T2 ON T1.DEPT_CODE = T2.DEPT_CODE GROUP BY T1.SCHOOL_CODE ORDER BY SCHOOL_CODE DESC
nvbench
CREATE TABLE table_name_80 ( purse__ INTEGER, location VARCHAR )
what was the purse ($) in illinois?
SELECT MAX(purse__) AS $__ FROM table_name_80 WHERE location = "illinois"
sql_create_context
CREATE TABLE checking ( custid number, balance number ) CREATE TABLE accounts ( custid number, name text ) CREATE TABLE savings ( custid number, balance number )
List all customers names in the alphabetical order.
SELECT name FROM accounts ORDER BY name
spider
CREATE TABLE table_24126606_2 ( opponent VARCHAR, date VARCHAR )
Name the total number of opponent for october 3
SELECT COUNT(opponent) FROM table_24126606_2 WHERE date = "October 3"
sql_create_context
CREATE TABLE table_58463 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
When did the away team score 7.16 (58)?
SELECT "Date" FROM table_58463 WHERE "Away team score" = '7.16 (58)'
wikisql
CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decima...
For those employees who did not have any job in the past, visualize a bar chart about the distribution of hire_date and the sum of salary bin hire_date by time, sort total number in ascending order.
SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(SALARY)
nvbench
CREATE TABLE table_name_53 ( species_specific VARCHAR, link VARCHAR )
Which Species Specific has a Link of server/sourcecode?
SELECT species_specific FROM table_name_53 WHERE link = "server/sourcecode"
sql_create_context
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic (...
what is the number of patients whose primary disease is atrial septal defect\mitral valve replacement;repair atrial-septal defect/sda and year of birth is less than 2111?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ATRIAL SEPTAL DEFECT\MITRAL VALVE REPLACEMENT;REPAIR ATRIAL-SEPTAL DEFECT/SDA" AND demographic.dob_year < "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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescription...
count the number of patients whose procedure short title is abdomen artery incision?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.short_title = "Abdomen artery incision"
mimicsql_data
CREATE TABLE table_12941 ( "White" text, "Black" text, "Year" real, "Result" text, "Moves" real, "Tournament" text, "Opening" text )
Which year had e34 Nimzo-Indian defence is the opening?
SELECT "Year" FROM table_12941 WHERE "Opening" = 'e34 nimzo-indian defence'
wikisql
CREATE TABLE table_203_770 ( id number, "ages attained (years)" text, "catholic" text, "protestant and other christian" text, "other religion" text, "none or not stated" text )
which age range had the largest percentage for other religion ?
SELECT "ages attained (years)" FROM table_203_770 ORDER BY "other religion" DESC LIMIT 1
squall
CREATE TABLE table_35281 ( "Year" real, "Location" text, "Gold" text, "Silver" text, "Bronze" text )
Who won silver in the year before 2010, the year Chan Ming Shu won gold?
SELECT "Silver" FROM table_35281 WHERE "Year" < '2010' AND "Gold" = 'chan ming shu'
wikisql
CREATE TABLE table_name_95 ( total VARCHAR, player VARCHAR )
What is the Total with a Player named robbie winters?
SELECT total FROM table_name_95 WHERE player = "robbie winters"
sql_create_context
CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDa...
Search for spam in profile info. Finds accounts with typical spam keywords in 'about me' field
SELECT Id AS "user_link", AboutMe, WebsiteUrl FROM Users WHERE (AboutMe LIKE '%My uncle, Scrooge McDuck, is the richest duck in the world. He makes me polish his coins for 30 cents an hour. My girlfriend is Daisy Duck and my nephews are Huey, Dewey and Louie Duck. My neighbor Jones and my cousin Gladstone drive me nuts...
sede
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...
患者出院进行66169377142医疗就诊时,诊断出的疾病编号及名称是什么
SELECT t_kc21.OUT_DIAG_DIS_CD, t_kc21.OUT_DIAG_DIS_NM FROM t_kc21 WHERE t_kc21.MED_CLINIC_ID = '66169377142'
css
CREATE TABLE table_name_7 ( rank VARCHAR, team VARCHAR )
Name the rank for tottenham hotspur
SELECT rank FROM table_name_7 WHERE team = "tottenham hotspur"
sql_create_context
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime t...
how many days has passed since the last dextrose 50% 25 gram/50 ml syr prescription of patient 016-38131 on this hospital visit?
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', 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 = '016-381...
eicu
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescription...
Find the number of patients who passed away in or before 2132 and have 51067 as the lab test item id.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dod_year <= "2132.0" AND lab.itemid = "51067"
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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, ...
how many patients born earlier than 2114 had procedure under icd9 code 5110?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2114" AND procedures.icd9_code = "5110"
mimicsql_data
CREATE TABLE table_name_40 ( uni_number VARCHAR, surname VARCHAR )
Which Uni # has a Surname of ough?
SELECT uni_number FROM table_name_40 WHERE surname = "ough"
sql_create_context
CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, ...
what is the name of the medication that was prescribed to patient 015-910 during the same day after receiving a ivc filter procedure since 126 months ago?
SELECT t2.drugname FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-910') AND treatment.treatment...
eicu
CREATE TABLE table_68780 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Attendance" text )
What is the Tie no listed for the Away team of Barnet?
SELECT "Tie no" FROM table_68780 WHERE "Away team" = 'barnet'
wikisql
CREATE TABLE table_name_75 ( against INTEGER, ballarat_fl VARCHAR, wins VARCHAR )
What is the sum of against in Ballarat FL of East Point and wins less than 16?
SELECT SUM(against) FROM table_name_75 WHERE ballarat_fl = "east point" AND wins < 16
sql_create_context
CREATE TABLE table_name_82 ( lost VARCHAR, goals_scored VARCHAR, goals_conceded VARCHAR )
Name the total number of lost when goals scored is less than 22 and goals conceded is more than 27
SELECT COUNT(lost) FROM table_name_82 WHERE goals_scored < 22 AND goals_conceded > 27
sql_create_context
CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, cha...
when was patient 74392 discharged from the hospital until 2102 for the last time?
SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 74392 AND STRFTIME('%y', admissions.dischtime) <= '2102' ORDER BY admissions.dischtime DESC LIMIT 1
mimic_iii
CREATE TABLE table_11364 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
What competition was at pusk s ferenc stadium , budapest , hungary, and a Score of 1 0?
SELECT "Competition" FROM table_11364 WHERE "Venue" = 'puskás ferenc stadium , budapest , hungary' AND "Score" = '1–0'
wikisql
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Per...
Visualize a bar chart about the distribution of All_Neutral and ACC_Percent , and display from high to low by the ACC_Percent.
SELECT All_Neutral, ACC_Percent FROM basketball_match ORDER BY ACC_Percent DESC
nvbench
CREATE TABLE table_name_80 ( year INTEGER, date VARCHAR, designated_home VARCHAR )
What year had a date of TBA where the Oakland raiders were the home team?
SELECT AVG(year) FROM table_name_80 WHERE date = "tba" AND designated_home = "oakland raiders"
sql_create_context
CREATE TABLE gwyjzb ( CLINIC_ID text, CLINIC_TYPE 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, ...
褚欣合这位参保人从0五年十二月三日到一六年十月十九日,门诊开出的手术总共有多少金额
SELECT SUM(t_kc22.AMOUNT) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_NM = '褚欣合' AND gwyjzb.CLINIC_TYPE = '门诊' AND t_kc22.STA_DATE BETWEEN '2005-12-03' AND '2016-10-19' AND t_kc22.MED_INV_ITEM_TYPE = '手术费' UNION SELECT SUM(t_kc22.AMOUNT) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb...
css
CREATE TABLE table_name_11 ( stadium VARCHAR, host_team VARCHAR )
What is the home stadium of the Atlanta Falcons?
SELECT stadium FROM table_name_11 WHERE host_team = "atlanta falcons"
sql_create_context
CREATE TABLE table_name_38 ( player VARCHAR, college VARCHAR )
Which player came from Kent State?
SELECT player FROM table_name_38 WHERE college = "kent state"
sql_create_context
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 age is less than 31 and lab test category is hematology?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "31" AND lab."CATEGORY" = "Hematology"
mimicsql_data
CREATE TABLE table_37384 ( "Train Number" text, "Train Name" text, "Origin" text, "Destination" text, "Frequency (inbound/outbound)" text )
What is the train name of the rail with a daily frequency and Jammutawi as the destination?
SELECT "Train Name" FROM table_37384 WHERE "Frequency (inbound/outbound)" = 'daily' AND "Destination" = 'jammutawi'
wikisql
CREATE TABLE table_name_48 ( chapter INTEGER, articles INTEGER )
Can you tell me the average Chapter that has Articles smaller than 15?
SELECT AVG(chapter) FROM table_name_48 WHERE articles < 15
sql_create_context
CREATE TABLE t_kc22 ( AMOUNT number, CHA_ITEM_LEV number, DATA_ID text, DIRE_TYPE number, DOSE_FORM text, DOSE_UNIT text, EACH_DOSAGE text, EXP_OCC_DATE time, FLX_MED_ORG_ID text, FXBZ number, HOSP_DOC_CD text, HOSP_DOC_NM text, MED_CLINIC_ID text, MED_DIRE_CD tex...
患者号码是的那个人86565852其医疗费总额高于2978.48元的时候的治病记录中显示其出院诊断疾病编码和名称为啥?
SELECT t_kc21.OUT_DIAG_DIS_CD, t_kc21.OUT_DIAG_DIS_NM FROM t_kc21 WHERE t_kc21.PERSON_ID = '86565852' AND t_kc21.MED_CLINIC_ID IN (SELECT t_kc21_t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT > 2978.48)
css
CREATE TABLE table_name_95 ( m939_series VARCHAR, wheelbase VARCHAR, m809_series VARCHAR )
Name the M939 series for short wheelbase and M809 series of m817
SELECT m939_series FROM table_name_95 WHERE wheelbase = "short" AND m809_series = "m817"
sql_create_context
CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TAB...
Total count of up- and downvotes in the system from the Users and the Votes table.
SELECT 'Users Table' AS Source, SUM(UpVotes) AS Ups, SUM(DownVotes) AS Downs FROM Users UNION SELECT 'Votes Table' AS Source, COUNT(CASE WHEN VoteTypeId = 2 THEN 1 ELSE NULL END) AS Ups, COUNT(CASE WHEN VoteTypeId = 3 THEN 1 ELSE NULL END) AS Downs FROM Votes
sede
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 jyjgzbb ( BGDH text, BGRQ tim...
二零一二年一月二十九日到二零二零年三月三十一,病患83591891去医疗机构6330903挂过几次门诊
SELECT COUNT(*) FROM hz_info JOIN txmzjzjlb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX WHERE hz_info.RYBH = '83591891' AND txmzjzjlb.JZKSRQ BETWEEN '2012-01-29' AND '2020-03-31' AND txmzjzjlb.YLJGDM = '6330903' UNION SELECT COUNT(*) FROM hz_info JOIN ftxmzjzjlb ON...
css
CREATE TABLE cinema ( Cinema_ID int, Name text, Openning_year int, Capacity int, Location text ) 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 schedule...
Show how many cinemas open for each year in a line chart, and could you rank X from high to low order?
SELECT Openning_year, COUNT(Openning_year) FROM cinema ORDER BY Openning_year DESC
nvbench
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, ...
give me the number of patients whose admission location is trsf within this facility and procedure icd9 code is 5059?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND procedures.icd9_code = "5059"
mimicsql_data
CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text ) CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text )
Plot how many class by grouped by class as a bar graph, order in asc by the Class.
SELECT Class, COUNT(Class) FROM captain GROUP BY Class ORDER BY Class
nvbench
CREATE TABLE t_kc21_t_kc22 ( MED_CLINIC_ID text, MED_EXP_DET_ID number ) 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, C...
从2007年6月7日开始2020年1月13日结束名字为奚修然的参保人门诊西药费花费多少?
SELECT SUM(t_kc22.AMOUNT) FROM t_kc21 JOIN t_kc22 JOIN t_kc21_t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc22.MED_CLINIC_ID AND t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID WHERE t_kc21.PERSON_NM = '奚修然' AND t_kc21.CLINIC_TYPE = '门诊' AND t_kc22.STA_DATE BETWEEN '2007-06-07' AND '2020-01-13' AND t_kc22.MED_INV_IT...
css
CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe tex...
Top Users with most rejected Edits.
SELECT OwnerUserId AS "user_link", COUNT(*) FROM SuggestedEdits WHERE ApprovalDate IS NULL AND NOT RejectionDate IS NULL GROUP BY OwnerUserId ORDER BY COUNT(*) DESC LIMIT 10
sede
CREATE TABLE journal_committee ( Editor_ID VARCHAR, Journal_ID VARCHAR ) CREATE TABLE journal ( Theme VARCHAR, Journal_ID VARCHAR ) CREATE TABLE editor ( Name VARCHAR, Editor_ID VARCHAR )
Show the names of editors and the theme of journals for which they serve on committees.
SELECT T2.Name, T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID
sql_create_context
CREATE TABLE table_name_56 ( december INTEGER, record VARCHAR )
What is the sum for December when the record was 22-12-5?
SELECT SUM(december) FROM table_name_56 WHERE record = "22-12-5"
sql_create_context
CREATE TABLE table_name_96 ( viavoice_5_15_09 VARCHAR, csa_5_14_09 VARCHAR, tns_sofres_5_28_09 VARCHAR )
Which Viavoice 5/15/09 has a CSA 5/14/09 of 5%, and a TNS-Sofres 5/28/09 of 4.5%?
SELECT viavoice_5_15_09 FROM table_name_96 WHERE csa_5_14_09 = "5%" AND tns_sofres_5_28_09 = "4.5%"
sql_create_context
CREATE TABLE table_27460 ( "Rank" real, "Rider" text, "Sat 29 May" text, "Mon 31 May" text, "Tues 1 June" text, "Wed 2 June" text, "Thurs 3 June" text, "Fri 4 June" text )
What is the Friday 4 June if the Wednesday 2 June is 20' 50.62 108.608mph?
SELECT "Fri 4 June" FROM table_27460 WHERE "Wed 2 June" = '20'' 50.62 108.608mph'
wikisql
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE departments ( DEPARTME...
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 email and commission_pct , show y-axis in ascending order.
SELECT EMAIL, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT
nvbench
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) C...
how many patients whose diagnoses long title is diabetes mellitus without mention of complication, type ii or unspecified type, not stated as uncontrolled and drug route is oral?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Diabetes mellitus without mention of complication, type II or unspecified type, not stated ...
mimicsql_data
CREATE TABLE table_6084 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text )
What was the date of the home game for Colorado?
SELECT "Date" FROM table_6084 WHERE "Home" = 'colorado'
wikisql
CREATE TABLE table_1132600_3 ( report VARCHAR, grand_prix VARCHAR )
What was the report of the Belgian Grand Prix?
SELECT report FROM table_1132600_3 WHERE grand_prix = "Belgian grand_prix"
sql_create_context
CREATE TABLE table_name_75 ( gain INTEGER, name VARCHAR, avg_g VARCHAR )
Can you tell me the sum of Gain that has the Name of kass, rob, and the Avg/g smaller than 1.9?
SELECT SUM(gain) FROM table_name_75 WHERE name = "kass, rob" AND avg_g < 1.9
sql_create_context
CREATE TABLE table_44171 ( "Rank" real, "City" text, "Province" text, "Date of Official Foundation of Municipality" real, "2006" real )
What is the highest Rank, when Date of Official Foundation of Municipality is '1952', and when 2006 is less than 189120?
SELECT MAX("Rank") FROM table_44171 WHERE "Date of Official Foundation of Municipality" = '1952' AND "2006" < '189120'
wikisql
CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number ) CRE...
Non-wiki posts with a lot of edits.
SELECT PostHistory.PostId AS "post_link", COUNT(PostHistory.Id) AS "count" FROM PostHistory INNER JOIN Posts ON PostHistory.PostId = Posts.Id WHERE Posts.CommunityOwnedDate IS NULL GROUP BY PostId ORDER BY 'count' DESC LIMIT 100
sede
CREATE TABLE people ( People_ID int, Sex text, Name text, Date_of_Birth text, Height real, Weight real ) CREATE TABLE candidate ( Candidate_ID int, People_ID int, Poll_Source text, Date text, Support_rate real, Consider_rate real, Oppose_rate real, Unsure_rate re...
Show me about the distribution of Sex and the average of Height , and group by attribute Sex in a bar chart, and list in ascending by the Y.
SELECT Sex, AVG(Height) FROM people GROUP BY Sex ORDER BY AVG(Height)
nvbench
CREATE TABLE flight ( flno number(4,0), origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date date, arrival_date date, price number(7,2), aid number(9,0) ) CREATE TABLE employee ( eid number(9,0), name varchar2(30), salary number(10,2) ) CREATE...
Show all origins and the number of flights from each origin by a bar chart, show by the x axis from low to high.
SELECT origin, COUNT(*) FROM flight GROUP BY origin ORDER BY origin
nvbench
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...
Show me about the distribution of Team_Name and ACC_Percent in a bar chart, and order from high to low by the X.
SELECT Team_Name, ACC_Percent FROM basketball_match ORDER BY Team_Name DESC
nvbench
CREATE TABLE table_944 ( "Rnd" real, "Circuit" text, "LMP1 Winning Team" text, "LMP2 Winning Team" text, "GT1 Winning Team" text, "GT2 Winning Team" text, "Results" text )
Jos verstappen jeroen bleekemolen is on Imp2 winning team where all are rnd.
SELECT "Rnd" FROM table_944 WHERE "LMP2 Winning Team" = 'Jos Verstappen Jeroen Bleekemolen'
wikisql
CREATE TABLE organization ( continent varchar, homepage varchar, name varchar, oid int ) CREATE TABLE domain_publication ( did int, pid int ) CREATE TABLE conference ( cid int, homepage varchar, name varchar ) CREATE TABLE domain ( did int, name varchar ) CREATE TABLE pub...
return me the number of papers by ' H. V. Jagadish ' on PVLDB .
SELECT COUNT(DISTINCT (publication.title)) FROM author, journal, publication, writes WHERE author.name = 'H. V. Jagadish' AND journal.name = 'PVLDB' AND publication.jid = journal.jid AND writes.aid = author.aid AND writes.pid = publication.pid
academic
CREATE TABLE table_40422 ( "Season" text, "Events" real, "Cashes" real, "Match Play" real, "TV Finals" real, "PBA Titles" real, "Average" real, "Earnings" text )
Which Cashes has a Match Play smaller than 13, and a Events of 7?
SELECT COUNT("Cashes") FROM table_40422 WHERE "Match Play" < '13' AND "Events" = '7'
wikisql
CREATE TABLE table_name_81 ( position INTEGER, wins VARCHAR, draws VARCHAR )
What is the position when wins are fewer than 14 and draws are fewer than 3?
SELECT AVG(position) FROM table_name_81 WHERE wins < 14 AND draws < 3
sql_create_context
CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number...
Posts of a hibernate project.
SELECT * FROM Posts WHERE Tags LIKE '%hibernate%' AND Tags LIKE '%orm%' AND Body LIKE '%doc%'
sede
CREATE TABLE company ( company_id number, rank number, company text, headquarters text, main_industry text, sales_billion number, profits_billion number, assets_billion number, market_value number ) CREATE TABLE station_company ( station_id number, company_id number, ran...
What are the locations and representatives' names of the gas stations owned by the companies with the 3 largest amounts of assets?
SELECT T3.location, T3.representative_name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id ORDER BY T2.assets_billion DESC LIMIT 3
spider
CREATE TABLE t_kc22 ( AMOUNT number, CHA_ITEM_LEV number, DATA_ID text, DIRE_TYPE number, DOSE_FORM text, DOSE_UNIT text, EACH_DOSAGE text, EXP_OCC_DATE time, FLX_MED_ORG_ID text, FXBZ number, HOSP_DOC_CD text, HOSP_DOC_NM text, MED_CLINIC_ID text, MED_DIRE_CD tex...
列出医院6110651医疗就诊记录中所有患者的平均年龄有多大,根据不同的科室名称和入院诊断疾病名称?
SELECT qtb.MED_ORG_DEPT_NM, qtb.IN_DIAG_DIS_NM, AVG(qtb.PERSON_AGE) FROM qtb WHERE qtb.MED_SER_ORG_NO = '6110651' GROUP BY qtb.MED_ORG_DEPT_NM, qtb.IN_DIAG_DIS_NM UNION SELECT gyb.MED_ORG_DEPT_NM, gyb.IN_DIAG_DIS_NM, AVG(gyb.PERSON_AGE) FROM gyb WHERE gyb.MED_SER_ORG_NO = '6110651' GROUP BY gyb.MED_ORG_DEPT_NM, gyb.IN_...
css
CREATE TABLE table_30120566_1 ( poor_law_union VARCHAR, townland VARCHAR )
What is Lisladeen poor law union?
SELECT poor_law_union FROM table_30120566_1 WHERE townland = "Lisladeen"
sql_create_context
CREATE TABLE table_3712 ( "Episode #" real, "Title" text, "Directed by" text, "Written by" text, "Originalairdate" text, "Ratings" text )
Name the air date for ratings of 2.19 million
SELECT "Originalairdate" FROM table_3712 WHERE "Ratings" = '2.19 Million'
wikisql
CREATE TABLE table_204_878 ( id number, "model" text, "release date" text, "sensor\nres., size" text, "lens (35 mm equiv.)\nzoom, aperture" text, "screen\nsize, pixels" text, "dimensions\nw (mm) \u00d7 h (mm) \u00d7 d (mm)" text, "weight" text, "features" text )
what is the total number of different models ?
SELECT COUNT(DISTINCT "model") FROM table_204_878
squall
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, ...
how many black/cape verdean patients had guillain barre syndrome as a primary disease?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND demographic.diagnosis = "GUILLAIN BARRE SYNDROME"
mimicsql_data
CREATE TABLE table_56366 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
What is the name of the competition that ended with a score of 1-3?
SELECT "Competition" FROM table_56366 WHERE "Score" = '1-3'
wikisql
CREATE TABLE table_name_16 ( color VARCHAR, transcription VARCHAR )
Which Color has a Transcription of wan suk?
SELECT color FROM table_name_16 WHERE transcription = "wan suk"
sql_create_context
CREATE TABLE table_79273 ( "Class" text, "Wheel arrangement" text, "Fleet number(s)" text, "Manufacturer" text, "Year made" text, "Quantity made" text, "Quantity preserved" text, "Year(s) retired" text )
What is the year retired of the locomotive which had the quantity made of 25?
SELECT "Year(s) retired" FROM table_79273 WHERE "Quantity made" = '25'
wikisql
CREATE TABLE table_30058355_3 ( fri_26_aug VARCHAR, mon_22_aug VARCHAR )
What is every entry for Friday August 26 if the entry for Monday August 22 is 32' 25.72 69.809mph?
SELECT fri_26_aug FROM table_30058355_3 WHERE mon_22_aug = "32' 25.72 69.809mph"
sql_create_context
CREATE TABLE table_203_633 ( id number, "title" text, "year" number, "platform" text, "developer" text, "publisher" text )
how many swat games were there before 2006 ?
SELECT COUNT("title") FROM table_203_633 WHERE "year" < 2006
squall
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 zyjzjlb ( CYBQDM text, CYBQMC...
在2003年4月11日到2012年1月23日这段时间医院5023348有多少科室在门诊就诊期间开出的检验报告单比19张多的?
SELECT COUNT(*) FROM (SELECT zyjybgb.KSBM FROM mzjzjlb JOIN zyjybgb ON mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB WHERE mzjzjlb.YLJGDM = '5023348' AND zyjybgb.BGRQ BETWEEN '2003-04-11' AND '2012-01-23' GROUP BY zyjybgb.KSBM HAVING COUNT(*) >= 19 UNION SELECT mzjybgb.KSBM FROM mzjz...
css
CREATE TABLE table_28334498_3 ( original_air_date VARCHAR, us_viewers__millions_ VARCHAR )
What air date had 1.01 million U.S. viewers?
SELECT original_air_date FROM table_28334498_3 WHERE us_viewers__millions_ = "1.01"
sql_create_context
CREATE TABLE table_12896884_1 ( football_stadium VARCHAR, enrollment VARCHAR )
What football stadium has a school enrollment of 43579?
SELECT football_stadium FROM table_12896884_1 WHERE enrollment = 43579
sql_create_context
CREATE TABLE table_201_46 ( id number, "name" text, "position" text, "length\n[km]" number, "drainage basin area\n[km2]" number, "confluence\n[by lahn-km]" number, "mouth elevation\n[m above msl]" number )
which river is positioned right , with a drainage area for 11.8
SELECT "name" FROM table_201_46 WHERE "position" = 'right' AND "drainage basin area\n[km2]" = 11.8
squall
CREATE TABLE table_name_19 ( visitor VARCHAR, date VARCHAR )
Who is the visitor team of the game on March 2, 2008?
SELECT visitor FROM table_name_19 WHERE date = "march 2, 2008"
sql_create_context
CREATE TABLE table_23406517_2 ( direction VARCHAR )
What are all values for 24 mountains when direction is Northeast?
SELECT 24 AS _mountains FROM table_23406517_2 WHERE direction = "Northeast"
sql_create_context