context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
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,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | 从05年1月17日到19年9月19日为止,医师34115354有多少门诊量? | SELECT COUNT(*) FROM mzjzjlb WHERE mzjzjlb.ZZYSGH = '34115354' AND mzjzjlb.JZKSRQ BETWEEN '2005-01-17' AND '2019-09-19' | css |
CREATE TABLE table_19100 (
"Call sign" text,
"Analog channel" text,
"Digital channel" text,
"Virtual channel" text,
"Network" text,
"Station Ownership" text
) | How many stations own Bounce TV? | SELECT COUNT("Station Ownership") FROM table_19100 WHERE "Network" = 'Bounce TV' | wikisql |
CREATE TABLE table_train_105 (
"id" int,
"mini_mental_state_examination_mmse" int,
"systolic_blood_pressure_sbp" int,
"diastolic_blood_pressure_dbp" int,
"body_mass_index_bmi" float,
"hypertension" bool,
"age" float,
"NOUSE" float
) | uncontrolled hypertension ( systolic bp > 170 or diastolic bp > 100 ) | SELECT * FROM table_train_105 WHERE hypertension = 1 OR (systolic_blood_pressure_sbp > 170 OR diastolic_blood_pressure_dbp > 100) | criteria2sql |
CREATE TABLE table_name_76 (
ratio INTEGER,
similar_iso_a_size VARCHAR
) | Which Ratio has a Similar ISO A size of a3? | SELECT AVG(ratio) FROM table_name_76 WHERE similar_iso_a_size = "a3" | sql_create_context |
CREATE TABLE table_name_29 (
tries_against VARCHAR,
points_against VARCHAR
) | How many tries against were there when there was 961 points against? | SELECT tries_against FROM table_name_29 WHERE points_against = "961" | 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... | 查询在一四年五月二十日到一九年六月十六日的这段时间里医院5341312有多少科室涉及的医疗费总额不低于2142.44元 | SELECT COUNT(*) FROM (SELECT t_kc21.MED_ORG_DEPT_CD FROM t_kc21 JOIN t_kc24 JOIN t_kc21_t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc24.MED_CLINIC_ID AND t_kc21_t_kc24.MED_SAFE_PAY_ID = t_kc24.MED_SAFE_PAY_ID WHERE t_kc21.MED_SER_ORG_NO = '5341312' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2014-05-20' AND '2019-06-16' GROUP B... | css |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(2... | For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, visualize a scatter chart about the correlation between commission_pct and department_id . | SELECT COMMISSION_PCT, DEPARTMENT_ID FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | nvbench |
CREATE TABLE table_name_32 (
gold INTEGER,
total VARCHAR,
bronze VARCHAR,
silver VARCHAR
) | What is the total gold that has bronze less than 2, a silver of 1 and total more than 4? | SELECT SUM(gold) FROM table_name_32 WHERE bronze < 2 AND silver = 1 AND total > 4 | sql_create_context |
CREATE TABLE table_29487895_2 (
series_premiere VARCHAR,
source_s_ VARCHAR
) | What is the premiere date of the american disney xd tron uprising site? | SELECT series_premiere FROM table_29487895_2 WHERE source_s_ = "American Disney XD Tron Uprising Site" | sql_create_context |
CREATE TABLE Staff (
staff_id INTEGER,
gender VARCHAR(1),
first_name VARCHAR(80),
last_name VARCHAR(80),
email_address VARCHAR(255),
phone_number VARCHAR(80)
)
CREATE TABLE Complaints (
complaint_id INTEGER,
product_id INTEGER,
customer_id INTEGER,
complaint_outcome_code VARCHAR... | A bar chart about what is the average price of the products for each category?, and rank from low to high by the y axis. | SELECT product_category_code, AVG(product_price) FROM Products GROUP BY product_category_code ORDER BY AVG(product_price) | nvbench |
CREATE TABLE table_79346 (
"Year" text,
"Builder" text,
"Model" text,
"Length (ft)" real,
"Propulsion" text,
"Fleet series" text,
"Total" text,
"Notes" text
) | What are the notes for Ford when the total is 5? | SELECT "Notes" FROM table_79346 WHERE "Builder" = 'ford' AND "Total" = '5' | wikisql |
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 number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | 日期均在2021-05-03之后的患者王向卉的哪些门诊就诊记录对应的检验报告单的报告?列出门诊就诊流水号是什么? | SELECT zzmzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN zzmzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX WHERE person_info.XM = '王向卉' AND NOT zzmzjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ <= '2021-05-0... | css |
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 ethnicity is black/cape verdean and drug name is bumetanide? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND prescriptions.drug = "Bumetanide" | mimicsql_data |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),... | For all employees who have the letters D or S in their first name, a bar chart shows the distribution of job_id and the sum of department_id , and group by attribute job_id, and I want to show by the Y-axis in ascending. | SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY SUM(DEPARTMENT_ID) | nvbench |
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... | 脂蛋白(a)二代的参考值界线在被诊断为矽肺(硅肺)I期的患者身上下限和上限是多些? | SELECT jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN hz_info_mzjzjlb ON hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzjzjlb.YLJGDM ... | css |
CREATE TABLE table_14259 (
"Rank" real,
"Heat" real,
"Cyclist" text,
"Nation" text,
"Result" text
) | what is the average rank when the cyclist is alexandr pliuschin? | SELECT AVG("Rank") FROM table_14259 WHERE "Cyclist" = 'alexandr pliuschin' | wikisql |
CREATE TABLE table_name_34 (
home VARCHAR,
time VARCHAR
) | What is the Home with a Time that is 12:00? | SELECT home FROM table_name_34 WHERE time = "12:00" | sql_create_context |
CREATE TABLE table_name_1 (
money___$__ VARCHAR,
player VARCHAR
) | What is Money ( $ ), when Player is Greg Norman? | SELECT money___$__ FROM table_name_1 WHERE player = "greg norman" | sql_create_context |
CREATE TABLE table_39135 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | Which Lead has a Skip of pavol pitonak? | SELECT "Lead" FROM table_39135 WHERE "Skip" = 'pavol pitonak' | wikisql |
CREATE TABLE table_204_409 (
id number,
"date" text,
"race name" text,
"location" text,
"uci rating" number,
"winner" text,
"team" text
) | what team has the most winners ? | SELECT "team" FROM table_204_409 GROUP BY "team" ORDER BY COUNT("winner") DESC LIMIT 1 | squall |
CREATE TABLE party (
Party_ID int,
Year real,
Party text,
Governor text,
Lieutenant_Governor text,
Comptroller text,
Attorney_General text,
US_Senate text
)
CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE election (
... | For each party, return the name of the party and the number of delegates from that party Plot them as bar chart, and rank in asc by the Y. | SELECT T2.Party, SUM(COUNT(*)) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party ORDER BY SUM(COUNT(*)) | nvbench |
CREATE TABLE table_21099 (
"Rank" real,
"Team" text,
"Round1" real,
"Round2" real,
"Round3" real,
"Round4" real,
"Round5" real,
"Total Points" real
) | What was the round 5 score if the team's total points where 212? | SELECT "Round5" FROM table_21099 WHERE "Total Points" = '212' | wikisql |
CREATE TABLE table_43215 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | What country won in 1993? | SELECT "Country" FROM table_43215 WHERE "Year(s) won" = '1993' | wikisql |
CREATE TABLE domain_conference (
cid int,
did int
)
CREATE TABLE domain_author (
aid int,
did int
)
CREATE TABLE domain_publication (
did int,
pid int
)
CREATE TABLE organization (
continent varchar,
homepage varchar,
name varchar,
oid int
)
CREATE TABLE cite (
cited int,... | return me the papers written by ' H. V. Jagadish ' and ' Yunyao Li ' after 2005 . | SELECT publication.title FROM author AS AUTHOR_0, author AS AUTHOR_1, publication, writes AS WRITES_0, writes AS WRITES_1 WHERE AUTHOR_0.name = 'H. V. Jagadish' AND AUTHOR_1.name = 'Yunyao Li' AND publication.year > 2005 AND WRITES_0.aid = AUTHOR_0.aid AND WRITES_0.pid = publication.pid AND WRITES_1.aid = AUTHOR_1.aid ... | academic |
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 compartmen... | i would like a schedule of flights from SAN FRANCISCO to BOSTON on wednesday | SELECT DISTINCT FLIGHT_0.arrival_time, FLIGHT_0.departure_time 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 AS FLIGHT_0, flight AS FLIGHT_1, flight_leg WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = ... | atis |
CREATE TABLE table_69442 (
"Engine" text,
"Displacement" text,
"Power" text,
"Torque" text,
"Year" real
) | When is the earliest year with a Torque of 330n m (243lb ft) @ 2000-2500? | SELECT MIN("Year") FROM table_69442 WHERE "Torque" = '330n·m (243lb·ft) @ 2000-2500' | wikisql |
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... | 哪些医务人员为患者何莹琇在12年2月15日到17年2月23日期间进行过检测指标048093的检查姓名和工号都是什么? | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH =... | css |
CREATE TABLE table_14238 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money (US$)" real
) | Which player has a score of 71-69-71-67=278? | SELECT "Player" FROM table_14238 WHERE "Score" = '71-69-71-67=278' | wikisql |
CREATE TABLE table_name_29 (
gameplan VARCHAR,
roleplay VARCHAR
) | Who is the GamePlan when Arabella Lazenby is the RolePlay actor? | SELECT gameplan FROM table_name_29 WHERE roleplay = "arabella lazenby" | sql_create_context |
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_proje... | What is easiest EECS 530 or EECS 413 ? | SELECT DISTINCT course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (course.number = 530 OR course.number = 413) AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_course AS PROGRAM_COURSEalias1 INNER JOIN course AS COURSEalias1 ON ... | advising |
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,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | 列举陈振海患者从2003年9月30日开始2005年3月3日结束被开出的所有检验报告单的科室编码以及名称都是什么呢? | SELECT jybgb.KSBM, jybgb.KSMC FROM person_info JOIN hz_info JOIN zzmzjzjlb JOIN jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX AND zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE person_... | css |
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,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | 以往,患者71329181的门诊诊断结果怎么样? | SELECT mzjzjlb.JZZDBM, mzjzjlb.JZZDSM FROM hz_info JOIN mzjzjlb JOIN person_info_hz_info JOIN person_info ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND person_info_hz_info.YLJGDM = hz_inf... | css |
CREATE TABLE table_name_43 (
san_jose_wins VARCHAR,
la_goals VARCHAR,
la_wins VARCHAR
) | How many San Jose wins have an LA goals larger than 6, and an LA wins smaller than 21? | SELECT COUNT(san_jose_wins) FROM table_name_43 WHERE la_goals > 6 AND la_wins < 21 | sql_create_context |
CREATE TABLE writes (
aid int,
pid int
)
CREATE TABLE publication_keyword (
kid int,
pid int
)
CREATE TABLE keyword (
keyword varchar,
kid int
)
CREATE TABLE domain_author (
aid int,
did int
)
CREATE TABLE domain_publication (
did int,
pid int
)
CREATE TABLE publication (
... | return me the keywords of ' Making database systems usable ' . | SELECT keyword.keyword FROM keyword, publication, publication_keyword WHERE publication_keyword.kid = keyword.kid AND publication.pid = publication_keyword.pid AND publication.title = 'Making database systems usable' | academic |
CREATE TABLE table_name_25 (
format VARCHAR,
catalog VARCHAR
) | what is the format of catalog 865 821-1? | SELECT format FROM table_name_25 WHERE catalog = "865 821-1" | sql_create_context |
CREATE TABLE table_41030 (
"Tournament" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"Win %" text
) | Which 2012 has a 2008 of grand slam tournaments? | SELECT "2012" FROM table_41030 WHERE "2008" = 'grand slam tournaments' | wikisql |
CREATE TABLE table_23403578_3 (
directed_by VARCHAR,
prod_code VARCHAR
) | Who directed the episode with production code 208? | SELECT directed_by FROM table_23403578_3 WHERE prod_code = "208" | sql_create_context |
CREATE TABLE Behavior_Incident (
incident_id INTEGER,
incident_type_code VARCHAR(10),
student_id INTEGER,
date_incident_start DATETIME,
date_incident_end DATETIME,
incident_summary VARCHAR(255),
recommendations VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Ref_Detention_Type (... | A line chart shows the change of monthly_rental over date_address_from | SELECT date_address_from, monthly_rental FROM Student_Addresses ORDER BY monthly_rental DESC | nvbench |
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
baseP... | Return a pie on what is the average base price of different bed type? List bed type and average base price. | SELECT bedType, AVG(basePrice) FROM Rooms GROUP BY bedType | nvbench |
CREATE TABLE table_32795 (
"Player" text,
"Tries" text,
"Conv" text,
"Pens" text,
"Drop" text,
"Venue" text,
"Date" text
) | Who is the player associated with the Esher venue? | SELECT "Player" FROM table_32795 WHERE "Venue" = 'esher' | wikisql |
CREATE TABLE table_12105 (
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
) | What date was the Tigullio Circuit? | SELECT "Date" FROM table_12105 WHERE "Circuit" = 'tigullio' | wikisql |
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... | count the number of patients whose ethnicity is white - russian and admission year is less than 2148? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND demographic.admityear < "2148" | mimicsql_data |
CREATE TABLE table_train_156 (
"id" int,
"anemia" bool,
"abnormal_bilirubin" bool,
"hemoglobin_a1c_hba1c" float,
"body_mass_index_bmi" float,
"bilirubin" float,
"NOUSE" float
) | anemia ( hemoglobin less than 12 mg / dl ) | SELECT * FROM table_train_156 WHERE anemia = 1 OR hemoglobin_a1c_hba1c < 12 | criteria2sql |
CREATE TABLE table_5744 (
"Records" text,
"Pct." real,
"MRC Championships" real,
"Solo" real,
"Co-Champions" real,
"State Champions" real
) | What is the average Pct value when state champions is less than 1, MRC Championships is 10, and co-champions are greater than 4? | SELECT AVG("Pct.") FROM table_5744 WHERE "State Champions" < '1' AND "MRC Championships" = '10' AND "Co-Champions" > '4' | wikisql |
CREATE TABLE table_train_222 (
"id" int,
"autoimmune_disease" bool,
"diabetic" string,
"allergy_to_hcq" bool,
"fasting_plasma_glucose" int,
"fasting_serum_insulin" int,
"NOUSE" float
) | known allergy or intolerance to hcq | SELECT * FROM table_train_222 WHERE allergy_to_hcq = 1 | criteria2sql |
CREATE TABLE table_dev_26 (
"id" int,
"gender" string,
"hemoglobin_a1c_hba1c" float,
"dyslipidemia" bool,
"body_weight" float,
"hba1c" float,
"body_mass_index_bmi" float,
"hypertension" bool,
"NOUSE" float
) | female with a hemoglobin < 11.5 g / dl, and male with a hemoglobin < 13.5 g / dl | SELECT * FROM table_dev_26 WHERE (gender = 'female' AND hemoglobin_a1c_hba1c < 11.5) OR (gender = 'male' AND hemoglobin_a1c_hba1c < 13.5) | criteria2sql |
CREATE TABLE table_10470082_4 (
director VARCHAR,
_number VARCHAR
) | Who is the director and what number is the episode for episode #1 of Are You Afraid of the Dark season 3? | SELECT COUNT(director) FROM table_10470082_4 WHERE _number = 1 | sql_create_context |
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDispl... | JanitorTags: posts that contain two specified tags. 2 user-inputtable tags, with defaults;
post must have a score > 1;
post must not be closed | SELECT Id AS "post_link", Score, ViewCount, CreationDate, LastEditDate, LastActivityDate, AnswerCount, FavoriteCount FROM Posts AS p WHERE p.Id IN (SELECT pt1.PostId FROM PostTags AS pt1 JOIN PostTags AS pt2 ON pt2.PostId = pt1.PostId WHERE pt1.TagId = (SELECT Id FROM Tags WHERE TagName = '##Tag1:string?centos##') AND ... | sede |
CREATE TABLE table_name_69 (
date VARCHAR,
opponent_in_the_final VARCHAR
) | What is the date of the match with arnaud di pasquale as the opponent in the final? | SELECT date FROM table_name_69 WHERE opponent_in_the_final = "arnaud di pasquale" | 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_DIRE_CD text,
MED_DIRE_NM text,... | 依科室与入院诊断的不同计算出医院3385540所有的就诊记载里患者的平均岁数,留下里面平均岁数小于14岁的记录 | SELECT t_kc21.MED_ORG_DEPT_NM, t_kc21.IN_DIAG_DIS_NM, AVG(t_kc21.PERSON_AGE) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '3385540' GROUP BY t_kc21.MED_ORG_DEPT_NM, t_kc21.IN_DIAG_DIS_NM HAVING AVG(t_kc21.PERSON_AGE) < 14 | css |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TAB... | Deepak Vaid's Physics.SE posts. | SELECT p.Id AS "post_link" FROM Posts AS p WHERE OwnerDisplayName = 'user346' | sede |
CREATE TABLE table_55140 (
"Title" text,
"Publisher" text,
"First Year" text,
"Last Year" text,
"Genre" text
) | When did the DC Comics title that debuted in 1937 end? | SELECT "Last Year" FROM table_55140 WHERE "First Year" = '1937' AND "Publisher" = 'dc comics' | wikisql |
CREATE TABLE table_45852 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
) | What is Player, when To Par is greater than 6, and when Year(s) Won is '1962 , 1967'? | SELECT "Player" FROM table_45852 WHERE "To par" > '6' AND "Year(s) won" = '1962 , 1967' | wikisql |
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
P... | Display Posts By Votes For Tag in Timerange. | SELECT RANK() OVER (ORDER BY Score DESC, ViewCount DESC), Title, b.DisplayName AS UserName, Score, ViewCount, CAST(TIME_TO_STR(a.CreationDate, '%d/%m/%Y') AS TEXT(30)) AS Date, Tags FROM Posts AS a INNER JOIN Users AS b ON a.OwnerUserId = b.Id WHERE a.CreationDate BETWEEN '03-09-2015' AND '03-22-2015' AND PostTypeId = ... | sede |
CREATE TABLE table_58401 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | Name the result for 13 october 2004 | SELECT "Result" FROM table_58401 WHERE "Date" = '13 october 2004' | wikisql |
CREATE TABLE table_55579 (
"Party" text,
"Results 2004" text,
"CSA 5/28/09" text,
"Ifop 5/30/09" text,
"Ipsos 5/30/09" text,
"BVA 6/1/09" text,
"TNS-Sofres 6/2/09" text,
"OpinionWay 6/3/09" text,
"Ipsos 6/3/09" text,
"TNS-Sofres 6/4/09" text,
"CSA 6/4/09" text,
"Ifop 6/4/... | Who had an Ipsos of 27%? | SELECT "Party" FROM table_55579 WHERE "Ipsos 6/3/09" = '27%' | wikisql |
CREATE TABLE Documents (
Document_ID INTEGER,
Document_Type_Code CHAR(15),
Project_ID INTEGER,
Document_Date DATETIME,
Document_Name VARCHAR(255),
Document_Description VARCHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Documents_with_Expenses (
Document_ID INTEGER,
Budget_Type_... | Show the number of documents for different budget type code in a bar chart, order by the names from high to low. | SELECT T1.Budget_Type_Code, COUNT(T1.Budget_Type_Code) FROM Documents_with_Expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_Code = T2.Budget_Type_Code GROUP BY T1.Budget_Type_Code ORDER BY T1.Budget_Type_Code DESC | nvbench |
CREATE TABLE table_52303 (
"D 49 \u221a" text,
"D 48 \u221a" text,
"D 47 \u221a" text,
"D 46 \u221a" text,
"D 45 \u221a" text,
"D 44 \u221a" text,
"D 43 \u221a" text,
"D 42 \u221a" text,
"D 41 \u221a" text
) | What is the D 48 with a D 49 with r 9? | SELECT "D 48 \u221a" FROM table_52303 WHERE "D 49 \u221a" = 'r 9' | wikisql |
CREATE TABLE table_40351 (
"From" real,
"Goal" real,
"Round 1" text,
"Round 2" text,
"Round 3" text,
"Round 4" text,
"Round 5" text,
"Round 6+" text
) | Which round 1 has a from prior to 1984, double as round 3, with a goal lwss than 300? | SELECT "Round 1" FROM table_40351 WHERE "From" < '1984' AND "Round 3" = 'double' AND "Goal" < '300' | wikisql |
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... | how many patients whose primary disease is hypoxia and year of death is less than or equal to 2164? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "HYPOXIA" AND demographic.dod_year <= "2164.0" | mimicsql_data |
CREATE TABLE table_21721351_18 (
player VARCHAR,
college_junior_club_team VARCHAR
) | Which player belongs to deerfield academy (Massachusetts) college/junior/club team? | SELECT player FROM table_21721351_18 WHERE college_junior_club_team = "Deerfield Academy (Massachusetts)" | sql_create_context |
CREATE TABLE Member_of (
FacID INTEGER,
DNO INTEGER,
Appt_Type VARCHAR(15)
)
CREATE TABLE Course (
CID VARCHAR(7),
CName VARCHAR(40),
Credits INTEGER,
Instructor INTEGER,
Days VARCHAR(5),
Hours VARCHAR(11),
DNO INTEGER
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCH... | What is the relationship between Credits and Instructor ? | SELECT Credits, Instructor FROM Course ORDER BY Credits | nvbench |
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,... | display the users ordered by decreasing reputation. | SELECT Badges.Class, COUNT(DISTINCT Badges.Id) AS BadgeCount, Users.DisplayName, Users.Location, Users.Reputation FROM Users JOIN Badges ON Users.Id = Badges.UserId WHERE YEAR(Date) = 2016 AND MONTH(Date) = 01 GROUP BY Badges.Class, Users.DisplayName, Users.Location, Users.Reputation ORDER BY BadgeCount DESC | sede |
CREATE TABLE table_name_5 (
tournament VARCHAR,
opponent VARCHAR
) | What tournament has yvonne vermaak as the opponent? | SELECT tournament FROM table_name_5 WHERE opponent = "yvonne vermaak" | sql_create_context |
CREATE TABLE procedures (
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
)
... | Let me know the lab test category and primary disease of the patient with patient id 2560. | SELECT demographic.diagnosis, lab."CATEGORY" FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.subject_id = "2560" | mimicsql_data |
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | For those records from the products and each product's manufacturer, give me the comparison about the sum of code over the name , and group by attribute name. | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name | nvbench |
CREATE TABLE table_52667 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings( $ )" real,
"Wins" real
) | What is the rank of Lee Trevino, who had less than 27 wins? | SELECT SUM("Rank") FROM table_52667 WHERE "Player" = 'lee trevino' AND "Wins" < '27' | wikisql |
CREATE TABLE table_75477 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | What numbered pick was the player from texas? | SELECT COUNT("Pick #") FROM table_75477 WHERE "College" = 'texas' | wikisql |
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,
... | count the number of patients with procedure icd9 code 3615 who died on or before 2158. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2158.0" AND procedures.icd9_code = "3615" | mimicsql_data |
CREATE TABLE table_203_532 (
id number,
"rebounds" number,
"off" number,
"def" number,
"player" text,
"team" text,
"date" text,
"opponent" text,
"score" text,
"minutes played" text,
"points" number,
"assists" number,
"steals" number,
"blocks" number,
"20-20" t... | what is the number of blocks made by moses malone ? | SELECT SUM("rebounds") FROM table_203_532 WHERE "player" = 'moses malone' | squall |
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,
... | when did patient 027-4309 get discharged from the hospital until 1 year ago for the first time? | SELECT patient.hospitaldischargetime FROM patient WHERE patient.uniquepid = '027-4309' AND DATETIME(patient.hospitaldischargetime) <= DATETIME(CURRENT_TIME(), '-1 year') ORDER BY patient.hospitaldischargetime LIMIT 1 | eicu |
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... | 讲一下名为孙欣艳的病人在哪几次医疗记录中被开过金额高于532.62元的药,把医疗就诊编号列出来 | SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_NM = '孙欣艳' AND NOT t_kc22.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT <= 532.62) | css |
CREATE TABLE table_57013 (
"Year" real,
"Author" text,
"English title" text,
"Original title" text,
"Representing" text
) | Name the representing for englar alheimsins | SELECT "Representing" FROM table_57013 WHERE "Original title" = 'englar alheimsins' | wikisql |
CREATE TABLE table_22414 (
"Frequency" text,
"Call sign" text,
"Branding" text,
"Format" text,
"Owner" text,
"Language/Rebroadcast" text
) | When classic hits 102.1 cjcy is the branding who is the owner? | SELECT "Owner" FROM table_22414 WHERE "Branding" = 'Classic Hits 102.1 CJCY' | wikisql |
CREATE TABLE table_name_80 (
Id VARCHAR
) | 1950 larger than 80, and a 1960 of 196, and a 1990 larger than 131 what is the lowest 1996[2]? | SELECT MIN(1996) AS "2" FROM table_name_80 WHERE 1950 > 80 AND 1960 = 196 AND 1990 > 131 | sql_create_context |
CREATE TABLE table_59604 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | What is the status for 07/01/1961? | SELECT "Status" FROM table_59604 WHERE "Date" = '07/01/1961' | wikisql |
CREATE TABLE table_12412 (
"Place" real,
"Team" text,
"Played" real,
"Draw" real,
"Lost" real,
"Goals Scored" real,
"Goals Conceded" real,
"Points" text
) | What is the lowest number of goals scored for the entry with goals conceded larger than 30, lost larger than 3, and fewer than 6 draws? | SELECT MIN("Goals Scored") FROM table_12412 WHERE "Draw" < '6' AND "Lost" > '3' AND "Goals Conceded" > '30' | wikisql |
CREATE TABLE table_74986 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | What is the date for the home detroit and visitor was chicago? | SELECT "Date" FROM table_74986 WHERE "Home" = 'detroit' AND "Visitor" = 'chicago' | wikisql |
CREATE TABLE table_name_59 (
green_communist VARCHAR,
socialist VARCHAR
) | What was the Green-Communist percentage in the poll in which the Socialist Party earned 41.0%? | SELECT green_communist FROM table_name_59 WHERE socialist = "41.0%" | sql_create_context |
CREATE TABLE table_17239 (
"N" real,
"P" text,
"Name" text,
"EU" text,
"Country" text,
"Age" real,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text,
"Source" text
) | What is the type where the country is esp? | SELECT "Type" FROM table_17239 WHERE "Country" = 'ESP' | wikisql |
CREATE TABLE table_28062822_3 (
contestant VARCHAR,
sponsor VARCHAR
) | Which contestant was sponsored by Yogurt Vita Slim? | SELECT contestant FROM table_28062822_3 WHERE sponsor = "Yogurt Vita Slim" | sql_create_context |
CREATE TABLE table_58791 (
"Name" text,
"Tournaments" real,
"Pro Debut" text,
"Top division debut" text,
"Highest rank" text
) | What is Top Division Debut, when Tournaments is '12', and when Name is 'Yamamotoyama'? | SELECT "Top division debut" FROM table_58791 WHERE "Tournaments" = '12' AND "Name" = 'yamamotoyama' | wikisql |
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semes... | Display Nature , Culture and Landscape courses of 11 credits . | SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Nature , Culture and Landscape%' OR name LIKE '%Nature , Culture and Landscape%') AND credits = 11 | advising |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
d... | how many fluticasone-salmeterol diskus (100/50) prescriptions occurred since 6 years ago? | SELECT COUNT(*) FROM prescriptions WHERE prescriptions.drug = 'fluticasone-salmeterol diskus (100/50)' AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-6 year') | mimic_iii |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
... | calculate the number of patients that had a wound, decubitus microbiology test since 2101. | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT microlab.patientunitstayid FROM microlab WHERE microlab.culturesite = 'wound, decubitus' AND STRFTIME('%y', microlab.culturetakentime) >= '2101') | eicu |
CREATE TABLE table_name_11 (
third VARCHAR,
second VARCHAR
) | Which Third has a Second of agnieszka ogrodniczek? | SELECT third FROM table_name_11 WHERE second = "agnieszka ogrodniczek" | 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... | 对于高于7492.17元医疗费总额的患者沈鸿信的医疗记录,列出入院诊断疾病编码和名称分别是? | SELECT IN_DIAG_DIS_CD, IN_DIAG_DIS_NM FROM t_kc21 WHERE PERSON_NM = '沈鸿信' AND MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc24 WHERE MED_AMOUT > 7492.17) | css |
CREATE TABLE table_22320 (
"Rank" real,
"Place" text,
"County" text,
"Per Capita Income" text,
"Median House- hold Income" text,
"Population" real,
"Number of Households" real
) | If the population is 2188, what was the median household income? | SELECT "Median House- hold Income" FROM table_22320 WHERE "Population" = '2188' | wikisql |
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZZMC ... | 71401875420这个检验报告单都做了什么检验项目,代码和名称分别是啥吗? | SELECT zyjybgb.JYXMDM, zyjybgb.JYXMMC FROM zyjybgb WHERE zyjybgb.BGDH = '71401875420' UNION SELECT mzjybgb.JYXMDM, mzjybgb.JYXMMC FROM mzjybgb WHERE mzjybgb.BGDH = '71401875420' | css |
CREATE TABLE table_name_78 (
Id VARCHAR
) | Which 1990s 1992 was 3r? | SELECT 1990 FROM table_name_78 WHERE 1992 = "3r" | 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,
... | what is the number of patients whose insurance is private and diagnoses short title is prim pulm hypertension? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Private" AND diagnoses.short_title = "Prim pulm hypertension" | mimicsql_data |
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TA... | i want to fly from BOSTON to DENVER and i don't want any stopovers and i'd like to fly only during the afternoon | 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 (((flight.departure_time BETWEEN 1200 AND 1800) AND (flight.stops = 0)) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND fl... | atis |
CREATE TABLE Activity (
actid INTEGER,
activity_name varchar(25)
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
Building VARCHAR(13)
)
CREATE TABLE Student (
StuID INTEGER,
... | Show all the buildings along with the number of faculty members the buildings have Plot them as bar chart, rank total number in ascending order. | SELECT Building, COUNT(*) FROM Faculty GROUP BY Building ORDER BY COUNT(*) | nvbench |
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... | 投保人马文心同志在住院的时候花费的整数金额次数多些次? | SELECT COUNT(*) FROM t_kc21 WHERE t_kc21.PERSON_NM = '马文心' AND t_kc21.CLINIC_TYPE = '住院' AND MOD(t_kc21.MED_AMOUT, 1) = 0 | css |
CREATE TABLE table_1140116_6 (
race_name VARCHAR,
winning_driver VARCHAR
) | Which races did Paul Greifzu win? | SELECT race_name FROM table_1140116_6 WHERE winning_driver = "Paul Greifzu" | sql_create_context |
CREATE TABLE table_43703 (
"Rank" real,
"Title" text,
"Studio" text,
"Director" text,
"Worldwide Gross" text
) | What is the Rank of the Film with a Worldwide Gross of $914,691,118? | SELECT "Rank" FROM table_43703 WHERE "Worldwide Gross" = '$914,691,118' | wikisql |
CREATE TABLE table_9610 (
"Missouri vs." text,
"Overall Record" text,
"at Columbia" text,
"at Opponent's Venue" text,
"at Neutral Site" text,
"Last 5 Meetings" text,
"Last 10 Meetings" text,
"Current Streak" text,
"During Time in Big 12" text
) | With an overall record of KSU, 118-117 what is the last 5 meetings? | SELECT "Last 5 Meetings" FROM table_9610 WHERE "Overall Record" = 'ksu, 118-117' | wikisql |
CREATE TABLE table_name_6 (
winner VARCHAR,
date VARCHAR
) | Who was the winner on 15 December 1957? | SELECT winner FROM table_name_6 WHERE date = "15 december 1957" | sql_create_context |
CREATE TABLE table_name_42 (
archbishop VARCHAR,
vacated_throne VARCHAR
) | Which archbishop vacated the throne on May 17, 1907? | SELECT archbishop FROM table_name_42 WHERE vacated_throne = "may 17, 1907" | sql_create_context |
CREATE TABLE table_204_26 (
id number,
"name" text,
"position" text,
"birth date/age at start of campaign" text,
"games in campaign" text,
"club" text
) | what is the name of the first club listed on this chart ? | SELECT "club" FROM table_204_26 WHERE id = 1 | squall |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.