context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_22993636_2 (
overall_record VARCHAR,
road_record VARCHAR
) | What's the overall record of the team with 4-3 road record? | SELECT overall_record FROM table_22993636_2 WHERE road_record = "4-3" | sql_create_context |
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
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,
t... | Which person teaches the easiest course in regards to ULCS ? | SELECT DISTINCT instructor.name, program_course.workload 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 program_course ON program_course.course_id = cour... | advising |
CREATE TABLE table_54042 (
"Driver" text,
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyre" text
) | who is the constructor when the tyre is d, the engine is talbot 23cv 4.5 l6, the chassis is talbot-lago t26c and the entrant is ecurie belge? | SELECT "Constructor" FROM table_54042 WHERE "Tyre" = 'd' AND "Engine" = 'talbot 23cv 4.5 l6' AND "Chassis" = 'talbot-lago t26c' AND "Entrant" = 'ecurie belge' | wikisql |
CREATE TABLE table_47828 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real
) | What is Place, when To Par is '5', and when Score is '72-73=145'? | SELECT "Place" FROM table_47828 WHERE "To par" = '5' AND "Score" = '72-73=145' | wikisql |
CREATE TABLE table_67462 (
"Minister" text,
"Party" text,
"Governments" text,
"Term start" text,
"Term end" text
) | When is the term end of Shlomo-Yisrael Ben-Meir of the National Religious Party? | SELECT "Term end" FROM table_67462 WHERE "Party" = 'national religious party' AND "Minister" = 'shlomo-yisrael ben-meir' | wikisql |
CREATE TABLE editor (
Name VARCHAR,
Age VARCHAR
) | List the names of editors in ascending order of age. | SELECT Name FROM editor ORDER BY Age | sql_create_context |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TAB... | what was the last time that patient 009-13409 was prescribed for a drug until 48 months ago? | SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-13409')) AND DATETIME(medication.drugstarttime) <= DATETIM... | eicu |
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's the minimum cost of a hospital that includes a cortisol lab test until 4 years ago? | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = 'cortisol')) AND DATETIME(cost.chargetime) <= DATETIME(CURRENT_TIME()... | eicu |
CREATE TABLE Ref_Budget_Codes (
Budget_Type_Code CHAR(15),
Budget_Type_Description VARCHAR(255)
)
CREATE TABLE Projects (
Project_ID INTEGER,
Project_Details VARCHAR(255)
)
CREATE TABLE Documents (
Document_ID INTEGER,
Document_Type_Code CHAR(15),
Project_ID INTEGER,
Document_Date DATE... | What are the different budget type codes, and how many documents are there for each. Show a pie chart. | SELECT Budget_Type_Code, COUNT(*) FROM Documents_with_Expenses GROUP BY Budget_Type_Code | nvbench |
CREATE TABLE table_31969 (
"Heat Rank" real,
"Lane" real,
"Swimmer" text,
"Country" text,
"Time" real,
"Overall Rank" text
) | In heat rank 7, what is the sum of lanes? | SELECT SUM("Lane") FROM table_31969 WHERE "Heat Rank" = '7' | wikisql |
CREATE TABLE table_51037 (
"Date" text,
"Series" text,
"Circuit" text,
"City / State" text,
"Winner" text,
"Team" text
) | What is the city/state of the circuit where Russell Ingall Larry Perkins was the winner? | SELECT "City / State" FROM table_51037 WHERE "Winner" = 'russell ingall larry perkins' | wikisql |
CREATE TABLE table_143352_1 (
construction_started INTEGER,
net_mwe VARCHAR
) | When did construction start on the Power station with a net MWE of 1190 | SELECT MIN(construction_started) FROM table_143352_1 WHERE net_mwe = 1190 | sql_create_context |
CREATE TABLE table_26866233_1 (
director VARCHAR,
series__number VARCHAR
) | Who are the directors of the episode in series # 54? | SELECT director FROM table_26866233_1 WHERE series__number = 54 | sql_create_context |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | 病号56549574药品金额不低于6975.76元的在哪几次医疗记录中被开出过?医疗就诊编号是多少呢? | SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_ID = '56549574' AND t_kc21.MED_CLINIC_ID IN (SELECT t_kc21_t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT >= 6975.76) | css |
CREATE TABLE table_71546 (
"Date" text,
"Winner" text,
"Score" text,
"Location" text,
"Series" text
) | What is the Location, when the Score is 38-29? | SELECT "Location" FROM table_71546 WHERE "Score" = '38-29' | wikisql |
CREATE TABLE table_name_79 (
week VARCHAR,
host_team VARCHAR
) | Which week did the Baltimore Ravens play at home ? | SELECT week FROM table_name_79 WHERE host_team = "baltimore ravens" | sql_create_context |
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 airline (
... | please show me all airlines with SUNDAY flights from PHILADELPHIA to DENVER | SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND days.day_name = 'SUNDAY' AND flight.flight_days = days.day... | atis |
CREATE TABLE table_203_756 (
id number,
"year" number,
"title" text,
"role" text,
"network" text,
"notes" text
) | count of unique roles | SELECT COUNT("role") FROM table_203_756 | squall |
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
)
... | what is the number of patients whose primary disease is brain mass;intracranial hemorrhage and procedure icd9 code is 8856? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" AND procedures.icd9_code = "8856" | mimicsql_data |
CREATE TABLE table_name_62 (
record VARCHAR,
attendance VARCHAR
) | Which Record has an Attendance of 24,597? | SELECT record FROM table_name_62 WHERE attendance = "24,597" | sql_create_context |
CREATE TABLE table_62596 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | Who had a finish of t15? | SELECT "Player" FROM table_62596 WHERE "Finish" = 't15' | wikisql |
CREATE TABLE table_62642 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog number" text,
"Lyrics" text
) | In what language is the Lyrics of the release on August 10, 2005 with Catalog number of TOCP-66427? | SELECT "Lyrics" FROM table_62642 WHERE "Date" = 'august 10, 2005' AND "Catalog number" = 'tocp-66427' | wikisql |
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 wdmzjzjlb (
HXPLC number,
HZX... | 在医院3470456中科室名有变态反应这几个字的就诊科室的门诊中,有哪些是病患范秀逸的就诊记录流水号 | SELECT wdmzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN wdmzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX WHERE person_info.XM = '范秀逸' AND hz_info.YLJGDM = '3470456' AND wdmzjzjlb.JZKSMC LIKE '%变态反应%' UNION SELECT bdmzjzjlb... | css |
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE All_Documents (
Document_ID INTEGER,
Date_Stored DATETIME,
Document_Type_Code CHAR(15),
Document_Name CHAR(255),
Document_Description CHA... | What are all the calendar dates? Show a bar chart binning calendar date by weekday. | SELECT Calendar_Date, COUNT(Calendar_Date) FROM Ref_Calendar | nvbench |
CREATE TABLE Photos (
Photo_ID INTEGER,
Tourist_Attraction_ID INTEGER,
Name VARCHAR(255),
Description VARCHAR(255),
Filename VARCHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Staff (
Staff_ID INTEGER,
Tourist_Attraction_ID INTEGER,
Name VARCHAR(40),
Other_Details VARCHAR(2... | Show the names and ids of tourist attractions that are visited at most once. Plot them as pie chart. | SELECT T1.Name, T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN Visits AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID | nvbench |
CREATE TABLE table_36 (
"Calls" text,
"Frequency" text,
"Branding" text,
"Format" text,
"Market/Rank" text,
"Timeslot" text,
"Group owner" text
) | What is the Branding for Group Owner Qantam of Cape Cod, LLC? | SELECT "Branding" FROM table_36 WHERE "Group owner" = 'Qantam of Cape Cod, LLC' | wikisql |
CREATE TABLE table_9053 (
"Date" text,
"Venue" text,
"Score" text,
"Competition" text,
"Report" text
) | What was the Competition on November 16, 2007? | SELECT "Competition" FROM table_9053 WHERE "Date" = 'november 16, 2007' | wikisql |
CREATE TABLE table_name_46 (
television_service VARCHAR,
language VARCHAR
) | Which television service has italian for its language? | SELECT television_service FROM table_name_46 WHERE language = "italian" | sql_create_context |
CREATE TABLE table_39379 (
"Year" real,
"English title" text,
"Original title" text,
"Country" text,
"Director" text
) | English title of am lie had what year? | SELECT "Year" FROM table_39379 WHERE "English title" = 'amélie' | wikisql |
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_p... | Name the professor or teacher teaching CICS 301 ? | SELECT DISTINCT instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'CICS' AND course.number = 301 AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.o... | advising |
CREATE TABLE table_61007 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | WHAT ARE THE GOALS WITH DRAWS SMALLER THAN 6, AND LOSSES SMALLER THAN 7? | SELECT AVG("Goals for") FROM table_61007 WHERE "Draws" < '6' AND "Losses" < '7' | wikisql |
CREATE TABLE table_name_4 (
inhabitants INTEGER,
mayor VARCHAR,
election VARCHAR
) | Which Inhabitants have a Mayor of matteo renzi, and an Election larger than 2009? | SELECT MIN(inhabitants) FROM table_name_4 WHERE mayor = "matteo renzi" AND election > 2009 | sql_create_context |
CREATE TABLE table_204_91 (
id number,
"year" number,
"original title" text,
"english title" text,
"role" text,
"notes" text
) | what was henrick malberg 's first film ? | SELECT "original title" FROM table_204_91 ORDER BY "year" LIMIT 1 | squall |
CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
... | Find the names and average salaries of all departments whose average salary is greater than 42000, and rank by the dept_name in ascending. | SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name ORDER BY dept_name | nvbench |
CREATE TABLE table_15315816_1 (
year VARCHAR,
champion VARCHAR
) | When are all years that the champion is Ji Min Jeong? | SELECT year FROM table_15315816_1 WHERE champion = "Ji Min Jeong" | sql_create_context |
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE p... | What upper-level MUSICOL classes are available in the Summer ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.department = 'MUSICOL' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Sum... | advising |
CREATE TABLE table_name_58 (
location VARCHAR,
score VARCHAR
) | what is the location when the score is w 105-99? | SELECT location FROM table_name_58 WHERE score = "w 105-99" | sql_create_context |
CREATE TABLE table_69468 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | Which entrant has a year after 1999? | SELECT "Entrant" FROM table_69468 WHERE "Year" > '1999' | wikisql |
CREATE TABLE table_name_52 (
year INTEGER,
opponent VARCHAR
) | What is the highest Year, when Opponent is #2 Syracuse? | SELECT MAX(year) FROM table_name_52 WHERE opponent = "#2 syracuse" | sql_create_context |
CREATE TABLE table_842 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | Who did the Raptors play when their record was 45-36? | SELECT "Team" FROM table_842 WHERE "Record" = '45-36' | wikisql |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE chartevents ... | for the first time until 31 months ago, when was patient 7165 prescribed insulin human regular and labetalol hcl at the same time? | SELECT t1.startdate FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'insulin human regular' AND admissions.subject_id = 7165 AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-31 mont... | mimic_iii |
CREATE TABLE table_20137 (
"Condition" text,
"Prothrombin time" text,
"Partial thromboplastin time" text,
"Bleeding time" text,
"Platelet count" text
) | What are all the possible bleeding time results where prothrombin time and platelet count are both unaffected? | SELECT "Bleeding time" FROM table_20137 WHERE "Prothrombin time" = 'Unaffected' AND "Platelet count" = 'Unaffected' | wikisql |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | how many patients whose drug code is teraz5 and lab test fluid is urine? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "TERAZ5" AND lab.fluid = "Urine" | mimicsql_data |
CREATE TABLE table_61634 (
"Name" text,
"Birth" text,
"Marriage" text,
"Became Consort" text,
"Ceased to be Consort" text,
"Spouse" text
) | On what date did the woman married to Louis II become consort? | SELECT "Became Consort" FROM table_61634 WHERE "Spouse" = 'louis ii' | wikisql |
CREATE TABLE table_name_23 (
crowd VARCHAR,
away_team VARCHAR
) | When Richmond is the away team, what is the crowd size? | SELECT crowd FROM table_name_23 WHERE away_team = "richmond" | sql_create_context |
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
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,
admi... | Of the upper level classes , how many have labs ? | SELECT COUNT(DISTINCT course.course_id) FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.has_lab = 'Y' AND program_course.category LIKE '%ULCS%' | advising |
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,
... | 医疗机构5289268有多少检查记录,在项目072012上? | SELECT COUNT(*) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.MED_SER_ORG_NO = '5289268' AND t_kc22.SOC_SRT_DIRE_CD = '072012' UNION SELECT COUNT(*) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE fgwyjzb.MED_SER_ORG_NO = '5289268' AND t_kc22.SOC_SRT_... | css |
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
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... | Return a bar chart about the distribution of meter_600 and ID , list in asc by the names please. | SELECT meter_600, ID FROM swimmer ORDER BY meter_600 | nvbench |
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttim... | is the heart rate of patient 1902's body last measured on the current intensive care unit visit less than the value second to last measured on the current intensive care unit visit? | SELECT (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 = 1902) AND icustays.outtime IS NULL) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_it... | mimic_iii |
CREATE TABLE table_dev_22 (
"id" int,
"gender" string,
"hemoglobin_a1c_hba1c" float,
"heart_disease" bool,
"cardiovascular_disease" bool,
"esophageal_varices" bool,
"liver_disease" bool,
"diabetes" bool,
"serum_creatinine" float,
"hypertension" bool,
"portal_hypertension" boo... | cirrhosis of the liver, portal hypertension, or esophageal varices | SELECT * FROM table_dev_22 WHERE liver_disease = 1 OR portal_hypertension = 1 OR esophageal_varices = 1 | criteria2sql |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
... | what was the four most common specimen test ordered in this year? | SELECT t1.spec_type_desc FROM (SELECT microbiologyevents.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM microbiologyevents WHERE DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY microbiologyevents.spec_type_desc) AS t1 WHERE t... | mimic_iii |
CREATE TABLE table_13971 (
"Draw" real,
"Artist" text,
"Song" text,
"Result" text,
"Place" real
) | What's the smallest draw that has a place bigger more than 1 and Anastasia Prikhodko as the artist? | SELECT MIN("Draw") FROM table_13971 WHERE "Artist" = 'anastasia prikhodko' AND "Place" > '1' | wikisql |
CREATE TABLE buildings (
id int,
name text,
City text,
Height int,
Stories int,
Status text
)
CREATE TABLE Office_locations (
building_id int,
company_id int,
move_in_year int
)
CREATE TABLE Companies (
id int,
name text,
Headquarters text,
Industry text,
Sales_... | , order by the bars from low to high. | SELECT Industry, COUNT(*) FROM Companies GROUP BY Industry ORDER BY Industry | nvbench |
CREATE TABLE table_27646 (
"Letters" text,
"Organization" text,
"Nickname" text,
"Founding Date" text,
"Founding University" text,
"Type" text
) | What is the type if the organization name is Gamma RHO Lambda 1? | SELECT "Type" FROM table_27646 WHERE "Organization" = 'Gamma Rho Lambda 1' | wikisql |
CREATE TABLE table_42494 (
"Ballarat FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | How many losses have byes greater than 2? | SELECT COUNT("Losses") FROM table_42494 WHERE "Byes" > '2' | wikisql |
CREATE TABLE table_14685 (
"Year" real,
"Award" text,
"Category" text,
"Motive" text,
"Result" text
) | What is the motive before 2007? | SELECT "Motive" FROM table_14685 WHERE "Year" < '2007' | wikisql |
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS va... | For those employees who was hired before 2002-06-21, give me the comparison about the sum of salary over the hire_date bin hire_date by time by a bar chart, order by the y axis in descending. | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY SUM(SALARY) DESC | nvbench |
CREATE TABLE table_name_87 (
lost INTEGER,
goals_against VARCHAR,
position VARCHAR,
points_1 VARCHAR
) | Which Lost has a Position larger than 5, and Points 1 of 37, and less than 63 Goals Against? | SELECT AVG(lost) FROM table_name_87 WHERE position > 5 AND points_1 = "37" AND goals_against < 63 | sql_create_context |
CREATE TABLE table_71565 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) | What team was the opponent when the score was 7 1? | SELECT "Opponent" FROM table_71565 WHERE "Score" = '7–1' | wikisql |
CREATE TABLE table_name_4 (
record VARCHAR,
result VARCHAR
) | What is the record for the result w 33-3? | SELECT record FROM table_name_4 WHERE result = "w 33-3" | sql_create_context |
CREATE TABLE table_2206 (
"ILO code" text,
"Field" text,
"conclusion date" text,
"entry into force" text,
"closure for signature" text,
"Parties (April 2011)" real,
"Denunciations (September 2011)" real,
"revising convention(s)" text,
"text and ratifications" text
) | What were the revising conventions commentary with a denunciation of 21? | SELECT "revising convention(s)" FROM table_2206 WHERE "Denunciations (September 2011)" = '21' | wikisql |
CREATE TABLE table_27186 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | Who wrote the episodes that had a viewership of 7.14? | SELECT "Written by" FROM table_27186 WHERE "U.S. viewers (millions)" = '7.14' | wikisql |
CREATE TABLE table_1301373_1 (
captain VARCHAR,
head_coach VARCHAR
) | Who's the captain of the team whose head coach is Alistair Edwards? | SELECT captain FROM table_1301373_1 WHERE head_coach = "Alistair Edwards" | sql_create_context |
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 ReviewTasks (
Id number,
ReviewTaskTypeId number,
... | View Statistics for all questions. | SELECT AVG(ViewCount) AS AvgViews, STDEV(ViewCount) AS StDevViews, COUNT(*) AS N FROM Posts WHERE PostTypeId = 1 | sede |
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(... | Scatter plot to show department id on x axis and sum salary on y axis. | SELECT DEPARTMENT_ID, SUM(SALARY) FROM employees GROUP BY DEPARTMENT_ID | nvbench |
CREATE TABLE actor (
actor_id number,
first_name text,
last_name text,
last_update time
)
CREATE TABLE film (
film_id number,
title text,
description text,
release_year time,
language_id number,
original_language_id number,
rental_duration number,
rental_rate number,
... | Return the name of the category to which the film 'HUNGER ROOF' belongs. | SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id = T2.category_id JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'HUNGER ROOF' | spider |
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE microlab (
microl... | until 8 months ago, when was the first time that patient 002-56583 was prescribed medication via dialysis? | SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-56583')) AND medication.routeadmin = 'dialysis' AND DATETI... | eicu |
CREATE TABLE table_203_374 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | what country is listed before france ? | SELECT "nation" FROM table_203_374 WHERE id = (SELECT id FROM table_203_374 WHERE "nation" = 'france') - 1 | squall |
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... | Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type Show bar chart, I want to sort X-axis from low to high order please. | SELECT Affiliation, SUM(Enrollment) FROM university WHERE Founded > 1850 GROUP BY Affiliation ORDER BY Affiliation | nvbench |
CREATE TABLE Participants (
Participant_ID INTEGER,
Participant_Type_Code CHAR(15),
Participant_Details VARCHAR(255)
)
CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15)
)
CREATE TABLE Events (
Event_ID INTEGER,
Service_ID INTEGER,
Event_Details VARCHAR(255)
)
CREA... | List all the participant ids and their details using a bar chart, and rank from high to low by the X-axis. | SELECT Participant_Details, Participant_ID FROM Participants ORDER BY Participant_Details DESC | nvbench |
CREATE TABLE gyb (
CLINIC_ID text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
INSU_TYPE text,
IN... | 零九年八月一日到一二年五月十二日的这段时间里,8225788医疗机构中哪5个科室消耗统筹金额最多 | SELECT qtb.MED_ORG_DEPT_CD, qtb.MED_ORG_DEPT_NM FROM qtb JOIN t_kc24 ON qtb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE qtb.MED_SER_ORG_NO = '8225788' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2009-08-01' AND '2012-05-12' GROUP BY qtb.MED_ORG_DEPT_CD ORDER BY SUM(t_kc24.OVE_PAY) DESC LIMIT 5 UNION SELECT gyb.MED_ORG_DEPT_CD, ... | css |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtim... | how many patients were diagnosed with stroke during the same month last year after prophylactic antibacterials - for transplant/hiv. | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'prophylactic antibacterials - for transplant/hiv' AND DATETIME(treatment.treatmenttime, 'start of year') = D... | eicu |
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time... | tell me all the airports near WESTCHESTER COUNTY | SELECT DISTINCT airport.airport_code FROM airport, airport_service, city WHERE airport.airport_code = airport_service.airport_code AND city.city_code = airport_service.city_code AND city.city_name = 'WESTCHESTER COUNTY' | atis |
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, show me about the distribution of headquarter and the sum of manufacturer , and group by attribute headquarter in a bar chart. | SELECT Headquarter, SUM(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter | nvbench |
CREATE TABLE table_name_92 (
silver INTEGER,
rank INTEGER
) | What is the largest silver number when the rank is smaller than 1? | SELECT MAX(silver) FROM table_name_92 WHERE rank < 1 | sql_create_context |
CREATE TABLE jyjgzbb (
JYZBLSH text,
YLJGDM text,
BGDH text,
BGRQ time,
JYRQ time,
JCRGH text,
JCRXM text,
SHRGH text,
SHRXM text,
JCXMMC text,
JCZBDM text,
JCFF text,
JCZBMC text,
JCZBJGDX text,
JCZBJGDL number,
JCZBJGDW text,
SBBM text,
YQBH text... | 从二00四年十月五日到二00八年十一月八日这段时间,患者苗宏壮检测指标938237找的哪些医务人员做的,这些医务人员的工号和姓名报一下 | (SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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 = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND j... | css |
CREATE TABLE table_61752 (
"Team" text,
"Outgoing manage" text,
"Manner" text,
"Date of vacancy" text,
"Incoming manager" text,
"Date of appointment" text
) | Who was the outgoing manager when the incoming manager was augusto in cio? | SELECT "Outgoing manage" FROM table_61752 WHERE "Incoming manager" = 'augusto inácio' | 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... | 卫星纬这位患者的204895指标在零一年四月三十日至零六年一月三十一日期间的情况 | SELECT * FROM person_info JOIN hz_info JOIN zzmzjzjlb JOIN jybgb JOIN jyjgzbb 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 AND jybgb.YLJGDM = jy... | css |
CREATE TABLE table_79308 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
) | What was the venue after 2012? | SELECT "Venue" FROM table_79308 WHERE "Year" > '2012' | wikisql |
CREATE TABLE table_name_64 (
score VARCHAR,
opponent VARCHAR
) | Name the score for hawthorn opponent | SELECT score FROM table_name_64 WHERE opponent = "hawthorn" | sql_create_context |
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE procedures_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 ti... | how much are patient 5252's differences in heart rate second measured on the first intensive care unit visit compared to the value first measured on the first intensive care unit visit? | SELECT (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 = 5252) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.itemi... | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | count the number of patients whose discharge location is home health care and admission year is less than 2158? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME HEALTH CARE" AND demographic.admityear < "2158" | mimicsql_data |
CREATE TABLE table_47791 (
"Year" real,
"Date" text,
"Winner" text,
"Result" text,
"Loser" text,
"Location" text
) | How many years did the new york giants win with a result of 15-7 at lincoln financial field? | SELECT COUNT("Year") FROM table_47791 WHERE "Location" = 'lincoln financial field' AND "Winner" = 'new york giants' AND "Result" = '15-7' | wikisql |
CREATE TABLE table_67359 (
"Image" real,
"Smith" text,
"Ashmolean" real,
"Foster" real,
"Hahland" real,
"Dinsmoor" text,
"Hofkes-Brukker" text,
"Harrison" text,
"Cooper" text,
"BM/Corbett" text
) | What is the cooper with an Ashmolean less than 21, and hahland smaller than 4? | SELECT "Cooper" FROM table_67359 WHERE "Ashmolean" < '21' AND "Hahland" < '4' | wikisql |
CREATE TABLE table_60550 (
"Election" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
) | What Election has a 2nd Member of frederick knight, and a 1st Member of sir edmund lechmere, bt? | SELECT "Election" FROM table_60550 WHERE "2nd Member" = 'frederick knight' AND "1st Member" = 'sir edmund lechmere, bt' | wikisql |
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE date_day (
month_number int,
... | show me cheap flights from BALTIMORE to DALLAS | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, fare, flight, flight_fare WHERE ((CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BALTIMORE' AND ... | atis |
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 procedures (
... | find the number of patients with blood gas lab test category who were hospitalized for more than 7 days. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "7" AND lab."CATEGORY" = "Blood Gas" | mimicsql_data |
CREATE TABLE table_name_40 (
erp_w INTEGER,
call_sign VARCHAR
) | How many ERP W is it that has a Call sign of w273bs? | SELECT SUM(erp_w) FROM table_name_40 WHERE call_sign = "w273bs" | sql_create_context |
CREATE TABLE table_808 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | Who is the club that has 30 points? | SELECT "Club" FROM table_808 WHERE "Points" = '30' | wikisql |
CREATE TABLE table_32451 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff" text,
"Game site" text,
"Record" text,
"Attendance" text
) | What is the site of the game with a Record of 6-2? | SELECT "Game site" FROM table_32451 WHERE "Record" = '6-2' | wikisql |
CREATE TABLE bank (
branch_ID int,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20)
)
CREATE TABLE loan (
loan_ID varchar(3),
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int
)
CREATE TABLE customer (
cust_ID varchar(3),... | Can you compare the account balances of customers with the letter 'a' in their names using a bar graph. | SELECT cust_name, acc_bal FROM customer WHERE cust_name LIKE '%a%' | nvbench |
CREATE TABLE table_name_7 (
finalist VARCHAR,
tournament VARCHAR
) | Who was the finalist in Miami? | SELECT finalist FROM table_name_7 WHERE tournament = "miami" | 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 jyjgzbb (
JYZBLSH text,
YLJGD... | 知道是谁给患者35197142在医疗就诊36953184780中的检验报告做的审核吗?他们的姓名和工号是什么 | SELECT SHRGH, SHRXM FROM jybgb WHERE JZLSH = '36953184780' | css |
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 (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABL... | what is the total number of patients who were admitted to the hospital? | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions | mimic_iii |
CREATE TABLE table_8010 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | What is the tie number when Wigan Athletic is the home team? | SELECT "Tie no" FROM table_8010 WHERE "Home team" = 'wigan athletic' | wikisql |
CREATE TABLE t_kc21 (
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,
... | 兰索拉唑肠溶片的医疗机构在医疗就诊26488493176中三大目录有什么编码及名称? | SELECT t_kc22.MED_DIRE_CD, t_kc22.MED_DIRE_NM FROM t_kc22 JOIN t_kc21_t_kc22 JOIN t_kc21 ON t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID AND t_kc21_t_kc22.MED_CLINIC_ID = t_kc21.MED_CLINIC_ID WHERE t_kc21.MED_CLINIC_ID = '26488493176' AND t_kc22.SOC_SRT_DIRE_NM = '兰索拉唑肠溶片' | css |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
... | how many patients were prescribed 10 ml vial : calcium chloride 10 % iv soln during the same month after the diagnosis of sinus tachycardia, since 4 years ago? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'sinus tachycardia' AND DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-4 year')) AS t1 JOIN ... | eicu |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | 编码为8244564的医院所有非异地结算的医疗就诊记录在2010年5月23日到2020年1月11日内的有哪些啊? | SELECT * FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '8244564' AND gwyjzb.IN_HOSP_DATE BETWEEN '2010-05-23' AND '2020-01-11' UNION SELECT * FROM fgwyjzb WHERE fgwyjzb.MED_SER_ORG_NO = '8244564' AND fgwyjzb.IN_HOSP_DATE BETWEEN '2010-05-23' AND '2020-01-11' EXCEPT SELECT * FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '824456... | css |
CREATE TABLE table_39747 (
"Year" text,
"Total" real,
"Wins" real,
"Losses" real,
"No result" real,
"% Win" text
) | How many losses had a total of 17 and more than 10 wins? | SELECT COUNT("Losses") FROM table_39747 WHERE "Total" = '17' AND "Wins" > '10' | wikisql |
CREATE TABLE table_49576 (
"Date" text,
"Place" text,
"Race winners" text,
"GP winner" text,
"Source" text
) | What date has a place of chernivtsi, and a race winners of etienne bax / kaspars stupelis? What | SELECT "Date" FROM table_49576 WHERE "Place" = 'chernivtsi' AND "Race winners" = 'etienne bax / kaspars stupelis' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.