context
stringlengths
11
9.12k
question
stringlengths
0
1.06k
SQL
stringlengths
2
4.44k
source
stringclasses
28 values
CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(...
For those employees who was hired before 2002-06-21, give me the comparison about the sum of department_id over the job_id , and group by attribute job_id, could you sort in asc by the y axis?
SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY SUM(DEPARTMENT_ID)
nvbench
CREATE TABLE table_2668329_11 ( party VARCHAR, incumbent VARCHAR )
what is Peter Little's party?
SELECT party FROM table_2668329_11 WHERE incumbent = "Peter Little"
sql_create_context
CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name var...
now i need another flight from LAS VEGAS to LOS ANGELES arriving also in the late afternoon what 's available for that
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.arrival_time <= 1800 AND flight.arrival_time >= 1600) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'LOS ANGELES' AND flight...
atis
CREATE TABLE table_35187 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
What was the grid for anthony davidson when the laps were less than 8?
SELECT COUNT("Grid") FROM table_35187 WHERE "Driver" = 'anthony davidson' AND "Laps" < '8'
wikisql
CREATE TABLE table_43047 ( "Volume" text, "Series" text, "Title" text, "Cover" text, "Published" text, "ISBN" text )
What is the name of the series with an ISBN of 978-1-59582-523-0 (tpb)?
SELECT "Series" FROM table_43047 WHERE "ISBN" = '978-1-59582-523-0 (tpb)'
wikisql
CREATE TABLE table_name_47 ( year VARCHAR, title VARCHAR, award VARCHAR )
What year was Black Swan up for the Gotham Awards?
SELECT COUNT(year) FROM table_name_47 WHERE title = "black swan" AND award = "gotham awards"
sql_create_context
CREATE TABLE t_kc22 ( MED_EXP_DET_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, MED_CLINIC_ID text, MED_EXP_BILL_ID text, SOC_SRT_DIRE_CD text, SOC_SRT_DIRE_NM text, DIRE_TYPE number, CHA_ITEM_LEV number, MED_INV_ITEM_TYPE text, MED_DIRE_CD text, MED_DIRE_NM text,...
这个号码是61021790病患所交的医疗费总费用大于5648.4元的医疗记录有啥,办理出院的诊断里有什么病,病名和编号多少?
SELECT OUT_DIAG_DIS_CD, OUT_DIAG_DIS_NM FROM t_kc21 WHERE PERSON_ID = '61021790' AND MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc24 WHERE MED_AMOUT >= 5648.4)
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, ...
二零零五年五月十一日到二零二一年十月二十七日,患者苗乐池去4321914医疗机构挂过几次门诊
SELECT COUNT(*) FROM person_info JOIN hz_info JOIN txmzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX WHERE person_info.XM = '苗乐池' AND txmzjzjlb.JZKSRQ BETWEEN '2005-05-11' AND '2021-10-27' AND txmzjzjlb.YLJGDM = '4321914' UNI...
css
CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text...
select count(Tags) from Posts where Tags like '%<r>%' group by CreationDate.
SELECT DATE(CreationDate), COUNT(Tags) FROM Posts WHERE Tags LIKE '%r%' GROUP BY DATE(CreationDate)
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...
查一下2000年6月19日到2009年11月2日期间利培酮片(薄膜衣)在牙体牙髓科室的开药数量
SELECT COUNT(*) FROM t_kc22 WHERE t_kc22.MED_ORG_DEPT_NM = '牙体牙髓科' AND t_kc22.STA_DATE BETWEEN '2000-06-19' AND '2009-11-02' AND t_kc22.SOC_SRT_DIRE_NM = '利培酮片(薄膜衣)'
css
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...
从00.8.7开始,截止到02.12.6,盐酸胺碘酮片总共被医院开出给患者魏俊发多少次
SELECT COUNT(*) FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_NM = '魏俊发' AND t_kc22.STA_DATE BETWEEN '2000-08-07' AND '2002-12-06' AND t_kc22.SOC_SRT_DIRE_NM = '盐酸胺碘酮片'
css
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 diagnoses ( ...
how many patients are diagnosed with other drugs and medicinal substances causing adverse effects in therapeutic use?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Other drugs and medicinal substances causing adverse effects in therapeutic use"
mimicsql_data
CREATE TABLE table_62083 ( "Companion (in order from star)" text, "Mass" text, "Semimajor axis ( AU )" text, "Orbital period ( s day )" text, "Eccentricity" text, "Inclination" text )
What Semimajor axis (AU) has a Mass of 3.5 1.4 m ?
SELECT "Semimajor axis ( AU )" FROM table_62083 WHERE "Mass" = '≥ 3.5 ± 1.4 m⊕'
wikisql
CREATE TABLE table_35831 ( "RNA Segment (Gene)" real, "Size ( s base pair )" real, "Protein" text, "Molecular weight kDa" text, "Location" text, "Copies per particle" text )
How many copies per particle does the protein nsp2 have?
SELECT "Copies per particle" FROM table_35831 WHERE "Protein" = 'nsp2'
wikisql
CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) 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, ...
show me fares leaving on TUESDAY from DENVER to go to DALLAS
SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis, flight, flight_fare WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND DAYS_1.day_name = ...
atis
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...
Who is going to teach NURS 579 next semester ?
SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN course ON course.course_id = course_offering.course_id INNER JOIN semester...
advising
CREATE TABLE Movie ( mID int, title text, year int, director text ) CREATE TABLE Reviewer ( rID int, name text ) CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date )
What is the average rating star for each reviewer, and order Y-axis from low to high order please.
SELECT name, AVG(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name ORDER BY AVG(T1.stars)
nvbench
CREATE TABLE table_name_12 ( d_erp VARCHAR, city_of_license VARCHAR )
What's the D ERP in San Martin Texmelucan, Puebla?
SELECT d_erp FROM table_name_12 WHERE city_of_license = "san martin texmelucan, puebla"
sql_create_context
CREATE TABLE person_info ( RYBH text, XBDM number, XBMC text, XM text, CSRQ time, CSD text, MZDM text, MZMC text, GJDM text, GJMC text, JGDM text, JGMC text, XLDM text, XLMC text, ZYLBDM text, ZYMC text ) CREATE TABLE jybgb ( YLJGDM text, YLJGDM_M...
这个号码是95841621的病人在医院3219418的门诊诊断名称不含有煤的门诊就诊记录是哪几条?
SELECT * FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.RYBH = '95841621' AND hz_info.YLJGDM = '3219418' AND NOT mzjzjlb.JZZDSM LIKE '%煤%'
css
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 ...
what is the daily maximum ph value for patient 64292 until 4 months ago?
SELECT MAX(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 64292) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'ph') AND DATETIME(labevents.charttime) <= DATETIME(CURRENT_TIME(), '-4 mont...
mimic_iii
CREATE TABLE table_39222 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text )
Who is the incumbent that is a republican and first elected before 1864?
SELECT "Incumbent" FROM table_39222 WHERE "Party" = 'republican' AND "First elected" < '1864'
wikisql
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...
病患凤慧捷有过多少次检查是在03年3月14日到17年6月9日之间做的?
SELECT COUNT(*) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_NM = '凤慧捷' AND t_kc22.STA_DATE BETWEEN '2003-03-14' AND '2017-06-09' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' UNION SELECT COUNT(*) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE fgwyjz...
css
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 job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), ...
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the trend about department_id over hire_date , sort by the x-axis in descending please.
SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY HIRE_DATE DESC
nvbench
CREATE TABLE t_kc24 ( MED_SAFE_PAY_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, MED_CLINIC_ID text, REF_SLT_FLG number, CLINIC_SLT_DATE time, COMP_ID text, PERSON_ID text, FLX_MED_ORG_ID text, INSU_TYPE text, MED_AMOUT number, PER_ACC_PAY number, OVE_PAY numb...
医院0862388给患者治疗时一共记录的购药数量是多少,在00-02-09到2011-08-18这期间
SELECT COUNT(*) FROM t_kc21 WHERE MED_SER_ORG_NO = '0862388' AND IN_HOSP_DATE BETWEEN '2000-02-09' AND '2011-08-18' AND CLINIC_TYPE = '购药'
css
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) 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...
find the discharge time of subject name betty campbell.
SELECT demographic.dischtime FROM demographic WHERE demographic.name = "Betty Campbell"
mimicsql_data
CREATE TABLE courses ( course_id number, author_id number, subject_id number, course_name text, course_description text ) CREATE TABLE student_course_enrolment ( registration_id number, student_id number, course_id number, date_of_enrolment time, date_of_completion time ) CREAT...
Return the description for the courses named 'database'.
SELECT course_description FROM courses WHERE course_name = "database"
spider
CREATE TABLE table_name_93 ( label VARCHAR, region VARCHAR )
What label is from the Region of Spain?
SELECT label FROM table_name_93 WHERE region = "spain"
sql_create_context
CREATE TABLE table_55537 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
What is the grid total for kazuyoshi hoshino with under 71 laps?
SELECT SUM("Grid") FROM table_55537 WHERE "Driver" = 'kazuyoshi hoshino' AND "Laps" < '71'
wikisql
CREATE TABLE table_204_89 ( id number, "team" text, "truck(s)" text, "#" number, "driver(s)" text, "primary sponsor(s)" text, "listed owner(s)" text, "crew chief" text )
how many teams have ford f-150 as their trucks ?
SELECT COUNT("team") FROM table_204_89 WHERE "truck(s)" = 'ford f-150'
squall
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 of the patients with benign neoplasm of spinal meninges were treated with a base drug?
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 = "Benign neoplasm of spinal meninges" AND prescriptions.drug_type = "BASE"
mimicsql_data
CREATE TABLE table_name_7 ( date VARCHAR, race_name VARCHAR )
Which date was the x gran premio di napoli?
SELECT date FROM table_name_7 WHERE race_name = "x gran premio di napoli"
sql_create_context
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, ...
患者赵芳荃之前是去哪个医院看病的
SELECT txmzjzjlb.YLJGDM FROM person_info JOIN hz_info JOIN txmzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX WHERE person_info.XM = '赵芳荃' UNION SELECT ftxmzjzjlb.YLJGDM FROM person_info JOIN hz_info JOIN ftxmzjzjlb ON person_...
css
CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, item...
tell me how long patient 3745 stayed in the hospital last time.
SELECT STRFTIME('%j', admissions.dischtime) - STRFTIME('%j', admissions.admittime) FROM admissions WHERE admissions.subject_id = 3745 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1
mimic_iii
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospita...
count the number of hospital visits made to patient 035-11731 since 5 years ago.
SELECT COUNT(DISTINCT patient.patienthealthsystemstayid) FROM patient WHERE patient.uniquepid = '035-11731' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-5 year')
eicu
CREATE TABLE table_203_20 ( id number, "player" text, "year" number, "round" text, "result" text, "opponent" text )
is dean winstanley listed above or below kyle anderson ?
SELECT (SELECT id FROM table_203_20 WHERE "player" = 'dean winstanley') < (SELECT id FROM table_203_20 WHERE "player" = 'kyle anderson')
squall
CREATE TABLE table_name_44 ( tie_no VARCHAR, date VARCHAR, away_team VARCHAR )
/What is Tie No, when Date is 18 February 1956, and when Away Team is Tottenham Hotspur?
SELECT tie_no FROM table_name_44 WHERE date = "18 february 1956" AND away_team = "tottenham hotspur"
sql_create_context
CREATE TABLE table_41574 ( "Week of" text, "Tier" text, "Winner" text, "Runner-up" text, "Semi finalists" text )
What is Week, when Semi Finalists is Sandrine Testud Yone Kamio?
SELECT "Week of" FROM table_41574 WHERE "Semi finalists" = 'sandrine testud yone kamio'
wikisql
CREATE TABLE table_55680 ( "Riding" text, "Candidate" text, "Gender" text, "Residence" text, "Occupation" text, "Votes" real, "Rank" text )
What occupation does Mary Louise Lorefice have?
SELECT "Occupation" FROM table_55680 WHERE "Candidate" = 'mary louise lorefice'
wikisql
CREATE TABLE customer ( cust_id text, cust_name text, acc_type text, acc_bal number, no_of_loans number, credit_score number, branch_id number, state text ) CREATE TABLE loan ( loan_id text, loan_type text, cust_id text, branch_id text, amount number ) CREATE TABLE ...
What is the name of the bank branch that has lended the largest total amount in loans, specifically to customers with credit scores below 100?
SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 GROUP BY T2.bname ORDER BY SUM(T1.amount) DESC LIMIT 1
spider
CREATE TABLE table_2588 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text )
When did the episode titled 'Route 666 (part 1)' air for the first time?
SELECT "Original air date" FROM table_2588 WHERE "Title" = 'Route 666 (Part 1)'
wikisql
CREATE TABLE status ( station_id INTEGER, bikes_available INTEGER, docks_available INTEGER, time TEXT ) CREATE TABLE station ( id INTEGER, name TEXT, lat NUMERIC, long NUMERIC, dock_count INTEGER, city TEXT, installation_date TEXT ) CREATE TABLE trip ( id INTEGER, d...
Give me a bar chart to show how many days with a max temperature greater than or equal to 80 for each year, and could you list total number in ascending order?
SELECT date, COUNT(date) FROM weather WHERE max_temperature_f >= 80 ORDER BY COUNT(date)
nvbench
CREATE TABLE table_10908676_7 ( title VARCHAR, written_by VARCHAR )
What is the title written by David Mamet?
SELECT title FROM table_10908676_7 WHERE written_by = "David Mamet"
sql_create_context
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE treatment ( trea...
until 2100, what are the top four most common procedures?
SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE STRFTIME('%y', treatment.treatmenttime) <= '2100' GROUP BY treatment.treatmentname) AS t1 WHERE t1.c1 <= 4
eicu
CREATE TABLE table_20848 ( "City" text, "Chinese" text, "Pinyin" text, "Province" text, "Urban Population (2010)" real, "Administrative Population (2010)" real )
What is the total administrative population of Shanghai?
SELECT COUNT("Administrative Population (2010)") FROM table_20848 WHERE "City" = 'Shanghai'
wikisql
CREATE TABLE table_13619105_3 ( location_attendance VARCHAR, team VARCHAR )
Where did they play and how many attended in the game against minnesota?
SELECT location_attendance FROM table_13619105_3 WHERE team = "Minnesota"
sql_create_context
CREATE TABLE table_name_16 ( Id VARCHAR )
What shows for 2013 when 2012 is 2r?
SELECT 2013 FROM table_name_16 WHERE 2012 = "2r"
sql_create_context
CREATE TABLE table_15796054_3 ( order__number VARCHAR, original_artist VARCHAR, result VARCHAR )
Name the order number for the beatles and result is safe
SELECT order__number FROM table_15796054_3 WHERE original_artist = "The Beatles" AND result = "Safe"
sql_create_context
CREATE TABLE table_2604 ( "Rank" real, "Athlete" text, "Nation" text, "Olympics" text, "Gold" real, "Silver" real, "Bronze" real, "Total(min. 2 medals)" real )
What rank did the nation with athlete peter snell category:articles with hcards have?
SELECT COUNT("Rank") FROM table_2604 WHERE "Athlete" = 'Peter Snell Category:Articles with hCards'
wikisql
CREATE TABLE table_70070 ( "Institution" text, "Team" text, "City" text, "Province" text, "First season" real, "Head coach" text, "Enrollment" real, "Endowment" text, "Football stadium" text, "Capacity" real )
What is the enrollment associated with a capacity greater then 35,650?
SELECT MIN("Enrollment") FROM table_70070 WHERE "Capacity" > '35,650'
wikisql
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 gwyjzb.MED_SER_ORG_NO FROM gwyjzb WHERE gwyjzb.PERSON_NM = '蒋芳馥' GROUP BY gwyjzb.MED_SER_ORG_NO ORDER BY COUNT(*) DESC UNION SELECT fgwyjzb.MED_SER_ORG_NO FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '蒋芳馥' GROUP BY fgwyjzb.MED_SER_ORG_NO ORDER BY COUNT(*) DESC
css
CREATE TABLE table_name_91 ( react INTEGER, name VARCHAR, lane VARCHAR )
What is the average React, when Name is 'Candice Davis', and when Lane is less than 3?
SELECT AVG(react) FROM table_name_91 WHERE name = "candice davis" AND lane < 3
sql_create_context
CREATE TABLE hz_info_zyjzjlb ( JZLSH number, YLJGDM number, zyjzjlb_id number ) 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, ...
患者李弘伟的报告日期均在2016年5月19日之后的检验报告单中有哪些相关的住院就诊记录?当时住院就诊流水号都是什么呢?
SELECT zyjzjlb.JZLSH FROM person_info JOIN hz_info JOIN zyjzjlb JOIN hz_info_zyjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = hz_info_zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX AND hz_info_zyjzjlb.JZLSH = zyjzjlb.JZLSH AND hz_info_zyjzjlb.YLJGDM = hz_info_zyjzjlb.YLJGDM AND ...
css
CREATE TABLE table_name_73 ( gold_medals VARCHAR, ensemble VARCHAR, silver_medals VARCHAR )
How many gold medals for bellbrook HS with less than 1 silver?
SELECT COUNT(gold_medals) FROM table_name_73 WHERE ensemble = "bellbrook hs" AND silver_medals < 1
sql_create_context
CREATE TABLE Has_Allergy ( StuID INTEGER, Allergy VARCHAR(20) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Allergy_Type ( Allergy VARCHAR(20), ...
Find the last name and age of the student who has allergy to both milk and cat. Show a bar chart.
SELECT LName, Age FROM Student WHERE StuID IN (SELECT StuID FROM Has_Allergy WHERE Allergy = "Milk" INTERSECT SELECT StuID FROM Has_Allergy WHERE Allergy = "Cat")
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 procedure long title of subject id 84129?
SELECT procedures.long_title FROM procedures WHERE procedures.subject_id = "84129"
mimicsql_data
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid numb...
what are the top three most frequent specimen tests that patients took within 2 months after being diagnosed with sinus tachycardia since 4 years ago?
SELECT t3.culturesite FROM (SELECT t2.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'sinus tachycardia' AND DATETIME(diagnosis.di...
eicu
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, meter_700 text, Time text ) CREATE TABLE event ( ID int, Name text, Stadium_ID int, Year text ) CREATE...
Bar chart x axis meter 500 y axis meter_100, sort y-axis in ascending order.
SELECT meter_500, meter_100 FROM swimmer ORDER BY meter_100
nvbench
CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE PostFeedback ( Id nu...
Email hashes from Data Explorer.
SELECT EmailHash FROM Users WHERE NOT EmailHash IS NULL
sede
CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE pr...
what is the top five most frequent diagnoses for the patients 50s since 1 year ago?
SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t1.icd9_code FROM (SELECT diagnoses_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN...
mimic_iii
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE microlab ( microlabid number, ...
what is the five most common lab test that are done during this year?
SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE DATETIME(lab.labresulttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 5
eicu
CREATE TABLE table_12266757_1 ( womens_doubles VARCHAR, season VARCHAR )
Where were the Womens Doubles in the 1951/1952 season and who won?
SELECT womens_doubles FROM table_12266757_1 WHERE season = "1951/1952"
sql_create_context
CREATE TABLE table_41051 ( "Date" text, "Opponent" text, "Location" text, "Result" text, "Attendance" real )
What is the Location of the game on 11/08/1975*?
SELECT "Location" FROM table_41051 WHERE "Date" = '11/08/1975*'
wikisql
CREATE TABLE Projects ( Project_ID INTEGER, Project_Details VARCHAR(255) ) CREATE TABLE Statements ( Statement_ID INTEGER, Statement_Details VARCHAR(255) ) CREATE TABLE Ref_Document_Types ( Document_Type_Code CHAR(15), Document_Type_Name VARCHAR(255), Document_Type_Description VARCHAR(255)...
Show the number of documents created in each day and bin document date by year interval and group by document type with a group line chart, show from low to high by the Document_Date please.
SELECT Document_Date, COUNT(Document_Date) FROM Ref_Document_Types AS T1 JOIN Documents AS T2 ON T1.Document_Type_Code = T2.Document_Type_Code GROUP BY Document_Type_Name ORDER BY Document_Date
nvbench
CREATE TABLE table_name_55 ( played INTEGER, wins VARCHAR, position VARCHAR )
what is the played when the wins is 21 and the positions is higher than 3?
SELECT SUM(played) FROM table_name_55 WHERE wins = 21 AND position > 3
sql_create_context
CREATE TABLE table_name_84 ( tonnage_grt INTEGER, nationality VARCHAR, ship VARCHAR )
what is the least tonnage grt when the nationality is british and the ship is kidalton?
SELECT MIN(tonnage_grt) FROM table_name_84 WHERE nationality = "british" AND ship = "kidalton"
sql_create_context
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellv...
when was the last lab test patient 006-168146 has received in 10/last year?
SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-168146')) AND DATETIME(lab.labresulttime, 'start of year') = DATETIME(CURRENT_T...
eicu
CREATE TABLE table_42612 ( "Name" text, "Novelty" text, "Status" text, "Authors" text, "Unit" text, "Location" text, "Notes" text )
What are the notes where the authors are Zhou & Zhang?
SELECT "Notes" FROM table_42612 WHERE "Authors" = 'zhou & zhang'
wikisql
CREATE TABLE table_name_61 ( attendance VARCHAR, week VARCHAR, game_site VARCHAR, opponent VARCHAR )
After week 2, how many people attended the game at Rich Stadium against the Miami Dolphins?
SELECT COUNT(attendance) FROM table_name_61 WHERE game_site = "rich stadium" AND opponent = "miami dolphins" AND week > 2
sql_create_context
CREATE TABLE table_13824 ( "Brand" text, "Model" text, "Type" text, "Modem" text, "Storage" text, "CPU speed" text, "CPU chip" text )
Which CPU chip(s) is used in the Classic type hardware?
SELECT "CPU chip" FROM table_13824 WHERE "Type" = 'classic'
wikisql
CREATE TABLE table_31395 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real, "U.S. viewers (million)" text )
What is the original air date of the episode written by Liz Feldman?
SELECT "Original air date" FROM table_31395 WHERE "Written by" = 'Liz Feldman'
wikisql
CREATE TABLE table_68400 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text )
Name the record when the attendance was more than 20,228 and rockies was the opponent on june 8
SELECT "Record" FROM table_68400 WHERE "Attendance" > '20,228' AND "Opponent" = 'rockies' AND "Date" = 'june 8'
wikisql
CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE procedures_icd ( ...
what is the maximum total cost of the hospital that includes the laboratory cd8 cells, percent test the last year?
SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'cd8 cells, percent')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'star...
mimic_iii
CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wa...
what is the organism name found in the first urine, catheter specimen test of patient 031-24513 in 03/last year?
SELECT microlab.organism FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-24513')) AND microlab.culturesite = 'urine, catheter specimen' AND DA...
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...
provide the number of patients who have government insurance policy and have undergone a unilateral radical neck dissection.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Government" AND procedures.long_title = "Radical neck dissection, unilateral"
mimicsql_data
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...
Number of unique answerers per month.
SELECT YR_MONTH, COUNT(*) AS NumAnswerers FROM (SELECT (TIME_TO_STR(p.CreationDate, '%y') + (TIME_TO_STR(p.CreationDate, '%m') - 1) / 12.0) AS YR_MONTH, u.Id AS UID, COUNT(*) AS NumAnswers FROM Users AS u INNER JOIN Posts AS p ON p.OwnerUserId = u.Id AND p.PostTypeId = 2 GROUP BY (TIME_TO_STR(p.CreationDate, '%y') + (T...
sede
CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date ) CREATE TABLE Reviewer ( rID int, name text ) CREATE TABLE Movie ( mID int, title text, year int, director text )
Show the score of the movie with the lowest rating among all movies directed by each director with a scatter chart.
SELECT stars, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY director
nvbench
CREATE TABLE table_name_59 ( round INTEGER, player VARCHAR, pick VARCHAR )
Player of dan federman, and a Pick larger than 114 involves which highest round?
SELECT MAX(round) FROM table_name_59 WHERE player = "dan federman" AND pick > 114
sql_create_context
CREATE TABLE table_65426 ( "Rank" real, "Heat" real, "Lane" real, "Nationality" text, "Time" text )
Which Heat has a Rank of 8?
SELECT MAX("Heat") FROM table_65426 WHERE "Rank" = '8'
wikisql
CREATE TABLE table_70122 ( "Date" text, "Home captain" text, "Away captain" text, "Venue" text, "Result" text )
Name the venue for eng by 6 wkts
SELECT "Venue" FROM table_70122 WHERE "Result" = 'eng by 6 wkts'
wikisql
CREATE TABLE table_name_91 ( score VARCHAR, visitor VARCHAR )
What score has mtl. maroons as the visitor?
SELECT score FROM table_name_91 WHERE visitor = "mtl. maroons"
sql_create_context
CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE outputevents ( row_id number, subject_id number, ...
so how many days have passed since patient 27172 was admitted to the hospital?
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', admissions.admittime)) FROM admissions WHERE admissions.subject_id = 27172 AND admissions.dischtime IS NULL
mimic_iii
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE patient ( uniquepid text, patientheal...
when is the last sputum, tracheal specimen microbiological test on patient 025-44495 during the last hospital encounter?
SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-44495' AND NOT patient.hospitaldischargetime IS NULL ORDER BY...
eicu
CREATE TABLE table_24639086_3 ( original_air_date VARCHAR, viewers__in_millions_ VARCHAR )
If the amount of viewers is 2.48 million, what is the original air date?
SELECT original_air_date FROM table_24639086_3 WHERE viewers__in_millions_ = "2.48"
sql_create_context
CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE ground...
a FIRST class flight to SAN FRANCISCO on AA tuesday next week
SELECT DISTINCT flight.flight_id FROM airport_service, city, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis AS FARE_BASIS_0, fare_basis AS FARE_BASIS_1, flight, flight_fare WHERE ((DATE_DAY_0.day_number = 22 AND DATE_DAY_0.month_number = 3 AND DATE_DAY_0.year = 1991 AND...
atis
CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varchar, test_id varchar ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, ...
Can you list the 300 -level courses for next semester ?
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number BETWEEN 300 AND 300 + 100 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester...
advising
CREATE TABLE table_16510 ( "Hand" text, "1 credit" real, "2 credits" real, "3 credits" real, "4 credits" real, "5 credits" text )
How many 4 credits is the hand two pair?
SELECT COUNT("4 credits") FROM table_16510 WHERE "Hand" = 'Two pair'
wikisql
CREATE TABLE table_39565 ( "Role" text, "D'Oyly Carte 1920 Tour" text, "D'Oyly Carte 1930 Tour" text, "D'Oyly Carte 1939 Tour" text, "D'Oyly Carte 1945 Tour" text, "D'Oyly Carte 1950 Tour" text )
Role of wilfred is what D'Oyly Carte 1945 Tour?
SELECT "D'Oyly Carte 1945 Tour" FROM table_39565 WHERE "Role" = 'wilfred'
wikisql
CREATE TABLE table_name_90 ( club VARCHAR, lost VARCHAR )
What club had a loss of 15?
SELECT club FROM table_name_90 WHERE lost = "15"
sql_create_context
CREATE TABLE table_50198 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" real )
What is the sum of Money ($), when Score is 70-71-70-69=280?
SELECT SUM("Money ( $ )") FROM table_50198 WHERE "Score" = '70-71-70-69=280'
wikisql
CREATE TABLE table_56273 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text )
What was the score when the record was 39-62?
SELECT "Score" FROM table_56273 WHERE "Record" = '39-62'
wikisql
CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, ...
Does 628 have any software course prerequisites ?
SELECT DISTINCT COURSE_0.department, COURSE_0.name, COURSE_0.number FROM course AS COURSE_0 INNER JOIN course_prerequisite ON COURSE_0.course_id = course_prerequisite.pre_course_id INNER JOIN course AS COURSE_1 ON COURSE_1.course_id = course_prerequisite.course_id INNER JOIN area ON COURSE_0.course_id = area.course_id ...
advising
CREATE TABLE table_11963601_11 ( score VARCHAR, date VARCHAR )
What was the score in the game on May 11?
SELECT score FROM table_11963601_11 WHERE date = "May 11"
sql_create_context
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...
Visualize a pie chart with what are the number of rooms for each bed type?
SELECT bedType, COUNT(*) FROM Rooms GROUP BY bedType
nvbench
CREATE TABLE hz_info ( KH text, KLX number, YLJGDM text, RYBH text ) CREATE TABLE person_info ( RYBH text, XBDM number, XBMC text, XM text, CSRQ time, CSD text, MZDM text, MZMC text, GJDM text, GJMC text, JGDM text, JGMC text, XLDM text, XLMC text...
检验报告单34439326471的审核人工号和姓名分别是?
SELECT SHRGH, SHRXM FROM jybgb WHERE BGDH = '34439326471'
css
CREATE TABLE table_name_80 ( home_team VARCHAR, game VARCHAR )
What is the Home Team in Game 2?
SELECT home_team FROM table_name_80 WHERE game = "game 2"
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,...
在医院7336183所有就诊记录里面依科室编码差别算出统筹基金的花费比上医疗总费用的平均比值
SELECT t_kc21.MED_ORG_DEPT_CD, AVG(t_kc24.OVE_PAY) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '7336183' GROUP BY t_kc21.MED_ORG_DEPT_CD
css
CREATE TABLE table_16559 ( "#" real, "Episode" text, "Air Date" text, "Time slot (EST)" text, "Rating" text, "Share" real, "18-49 (Rating/Share)" text, "Viewers (m)" text, "Rank (Overall)" text )
What time slots have a 6.3 rating
SELECT "Time slot (EST)" FROM table_16559 WHERE "Rating" = '6.3'
wikisql
CREATE TABLE table_25318 ( "Game" text, "Date" text, "Champion" text, "Score" text, "Runner Up" text, "Stadium" text, "City" text, "Ted Morris Memorial Trophy (Game MVP)" text, "Bruce Coulter Award" text )
Name the ted morris memorial trophy for november 22, 2008
SELECT "Ted Morris Memorial Trophy (Game MVP)" FROM table_25318 WHERE "Date" = 'November 22, 2008'
wikisql
CREATE TABLE table_name_41 ( winning_driver VARCHAR, name VARCHAR )
Name the winning driver for monaco grand prix
SELECT winning_driver FROM table_name_41 WHERE name = "monaco grand prix"
sql_create_context
CREATE TABLE table_67391 ( "Member" text, "Party" text, "Electorate" text, "State" text, "Term in office" text )
What member is in the liberal party and has an electorate of bruce?
SELECT "Member" FROM table_67391 WHERE "Party" = 'liberal' AND "Electorate" = 'bruce'
wikisql