context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_name_40 (
ihsaa_class VARCHAR,
county VARCHAR
) | What is the IHSAA class when the county was 83 vermillion? | SELECT ihsaa_class FROM table_name_40 WHERE county = "83 vermillion" | sql_create_context |
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
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 Lives_in (
stuid INTEGER,
... | Bar chart of mean age from each city code | SELECT city_code, AVG(Age) FROM Student GROUP BY city_code | nvbench |
CREATE TABLE table_204_106 (
id number,
"year" number,
"title" text,
"image" text,
"dimensions" text,
"collection" text,
"comments" text
) | how many works had terence cuneo completed before the year 1950 ? | SELECT COUNT("title") FROM table_204_106 WHERE "year" < 1950 | squall |
CREATE TABLE table_name_28 (
nationality VARCHAR,
points VARCHAR
) | Which 1st (m) is the lowest one that has a Nationality of aut, and Points larger than 273.5? | SELECT MIN(1 AS st__m_) FROM table_name_28 WHERE nationality = "aut" AND points > 273.5 | sql_create_context |
CREATE TABLE table_7589 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | What is the total number of Total when Germany is the nation with less than 1 silver? | SELECT COUNT("Total") FROM table_7589 WHERE "Nation" = 'germany' AND "Silver" < '1' | 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... | 4063324这所医疗机构在20零六年九月三十到零九年的六月二十二号所有就诊记录里就诊患者是未就业人员的数目 | SELECT COUNT(*) FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '4063324' AND gwyjzb.IN_HOSP_DATE BETWEEN '2006-09-30' AND '2009-06-22' AND gwyjzb.INSURED_STS = '未就业' UNION SELECT COUNT(*) FROM fgwyjzb WHERE fgwyjzb.MED_SER_ORG_NO = '4063324' AND fgwyjzb.IN_HOSP_DATE BETWEEN '2006-09-30' AND '2009-06-22' AND fgwyjzb.INSURED_... | css |
CREATE TABLE table_4848 (
"Player" text,
"Nationality" text,
"Position" text,
"From" real,
"School/Country" text
) | When England is the nationality what is the year from? | SELECT "From" FROM table_4848 WHERE "Nationality" = 'england' | wikisql |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid num... | retrieve the patient identifications who have been diagnosed with intracranial injury - with intraventricular hemorrhage during a year before. | SELECT patient.uniquepid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'intracranial injury - with intraventricular hemorrhage' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year... | eicu |
CREATE TABLE table_76843 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text
) | What was the ground for away team sydney? | SELECT "Ground" FROM table_76843 WHERE "Away team" = 'sydney' | 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... | 在09年7月5日到17年7月6日这段时间,患者卫逸明一共有多少检验报告单,把这些检验报告单的标本采集部位列出来 | SELECT jybgb.BBCJBW FROM person_info JOIN hz_info JOIN txmzjzjlb JOIN jybgb 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 AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE person_info.XM = ... | css |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | find the number of urgent hospital admission patients who have acute salpingitis and oophoritis diagnoses. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "URGENT" AND diagnoses.long_title = "Acute salpingitis and oophoritis" | mimicsql_data |
CREATE TABLE table_10170 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | Who was the home team at the game with a decision of Mason and a visiting team of Dallas? | SELECT "Home" FROM table_10170 WHERE "Decision" = 'mason' AND "Visitor" = 'dallas' | wikisql |
CREATE TABLE table_39674 (
"Pos." real,
"Car #" real,
"Driver" text,
"Make" text,
"Team" text
) | Which Make has a Car # larger than 59? | SELECT "Make" FROM table_39674 WHERE "Car #" > '59' | 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... | 3169312这个医疗机构在零一年八月二十日到二零年六月四日期间看过的转诊门诊记录有多少 | SELECT COUNT(*) FROM fzzmzjzjlb WHERE fzzmzjzjlb.YLJGDM = '3169312' AND fzzmzjzjlb.JZKSRQ BETWEEN '2001-08-20' AND '2020-06-04' | css |
CREATE TABLE fgwyjzb (
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,
... | 患者马浩浩的医疗记录中被开出不低于459.68元的药品有哪几次?查一下医疗就诊的编码 | SELECT gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_NM = '马浩浩' AND NOT gwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT < 459.68) UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '马浩浩' AND NOT fgwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM... | css |
CREATE TABLE table_204_683 (
id number,
"no." number,
"constituency" text,
"winner candidate" text,
"party" text,
"votes" number,
"margin" number
) | are there more or less inc party winners than there are bjp party winners ? | SELECT (SELECT COUNT(*) FROM table_204_683 WHERE "party" = 'inc') > (SELECT COUNT(*) FROM table_204_683 WHERE "party" = 'bjp') | squall |
CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type text
)
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance int
)
CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working... | Visualize a bar chart, count and group by nationality from the journalist table, display by the total number in descending please. | SELECT Nationality, COUNT(Nationality) FROM journalist GROUP BY Nationality ORDER BY COUNT(Nationality) DESC | nvbench |
CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
) | What is all the information of all the products that have a price between 60 and 120? | SELECT * FROM products WHERE price BETWEEN 60 AND 120 | spider |
CREATE TABLE table_62380 (
"Pick #" real,
"Player" text,
"Nationality" text,
"Position" text,
"NHL team" text,
"Team from" text,
"League from" text
) | Which Position has a Pick # smaller than 26 and a Player of jack campbell? | SELECT "Position" FROM table_62380 WHERE "Pick #" < '26' AND "Player" = 'jack campbell' | wikisql |
CREATE TABLE table_55417 (
"Edition" text,
"Round" text,
"Date" text,
"Surface" text,
"Opponent" text,
"Result" text
) | What surface was used on July 17, 1983? | SELECT "Surface" FROM table_55417 WHERE "Date" = 'july 17, 1983' | wikisql |
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... | what was the first thing patient 55360 got diagnosed with in 2105? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT diagnoses_icd.icd9_code FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 55360) AND STRFTIME('%y', diagnoses_icd.charttime) = '2105' ORDER BY diagn... | mimic_iii |
CREATE TABLE table_name_49 (
ring_name VARCHAR,
stable VARCHAR,
birthplace VARCHAR
) | What is Ring Name, when Stable is Kasugano, and when Birthplace is Z Mtskheta , Georgia? | SELECT ring_name FROM table_name_49 WHERE stable = "kasugano" AND birthplace = "z mtskheta , georgia" | sql_create_context |
CREATE TABLE table_29458735_5 (
regiment VARCHAR,
county VARCHAR
) | which regimen was in the arkansas county | SELECT regiment FROM table_29458735_5 WHERE county = "Arkansas" | sql_create_context |
CREATE TABLE table_name_83 (
rank INTEGER,
total VARCHAR,
silver VARCHAR,
gold VARCHAR
) | What is the highest rank that has 5 silvers, less than 5 golds, and less than 7 total medals? | SELECT MAX(rank) FROM table_name_83 WHERE silver = 5 AND gold < 5 AND total < 7 | sql_create_context |
CREATE TABLE table_10733530_3 (
_percentage_growth__2000_2008_ INTEGER,
nation VARCHAR
) | What is the maximum percentage grown 2000-2008 in burundi | SELECT MAX(_percentage_growth__2000_2008_) FROM table_10733530_3 WHERE nation = "Burundi" | sql_create_context |
CREATE TABLE table_28277 (
"Rank" real,
"Runs" real,
"Average" text,
"Strike rate" text,
"Player" text,
"Matches" real,
"Innings" real,
"Period" text
) | What was the average when the strike rate is 75.78? | SELECT "Average" FROM table_28277 WHERE "Strike rate" = '75.78' | wikisql |
CREATE TABLE table_36985 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
) | What is the earliest year associated with under 0 wins? | SELECT MIN("Year") FROM table_36985 WHERE "Wins" < '0' | wikisql |
CREATE TABLE table_63465 (
"Team" text,
"Location" text,
"County" text,
"Division" text,
"Home ground" text,
"Coach" text,
"Captain" text
) | Who is the captain of the team coached by Giles White? | SELECT "Captain" FROM table_63465 WHERE "Coach" = 'giles white' | wikisql |
CREATE TABLE people_addresses (
person_address_id number,
person_id number,
address_id number,
date_from time,
date_to time
)
CREATE TABLE candidate_assessments (
candidate_id number,
qualification text,
assessment_date time,
asessment_outcome_code text
)
CREATE TABLE courses (
... | What are the ids of the students who registered for some courses but had the least number of courses for all students? | SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY COUNT(*) LIMIT 1 | spider |
CREATE TABLE happy_hour (
HH_ID int,
Shop_ID int,
Month text,
Num_of_shaff_in_charge int
)
CREATE TABLE shop (
Shop_ID int,
Address text,
Num_of_staff text,
Score real,
Open_Year text
)
CREATE TABLE happy_hour_member (
HH_ID int,
Member_ID int,
Total_amount real
)
CREA... | Find the address and staff number of the shops that do not have any happy hour Visualize by bar chart, order y-axis from low to high order. | SELECT Address, Num_of_staff FROM shop WHERE NOT Shop_ID IN (SELECT Shop_ID FROM happy_hour) ORDER BY Num_of_staff | nvbench |
CREATE TABLE table_19135 (
"School" text,
"Mascot" text,
"Conference" text,
"National Titles" real,
"Founded" real
) | how many big wins does peru state college have | SELECT COUNT("National Titles") FROM table_19135 WHERE "School" = 'Peru State College' | wikisql |
CREATE TABLE table_name_95 (
wheel_arrangement VARCHAR,
number VARCHAR
) | What is the wheel arrangement of the locomotive with number 6 or 4? | SELECT wheel_arrangement FROM table_name_95 WHERE number = "6 or 4" | sql_create_context |
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense... | Active Users able to vote and active since first day of primary election. | SELECT COUNT(Id) FROM Users WHERE LastAccessDate > '2017-07-24 00:00:01' AND Reputation > 150 | sede |
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 ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TAB... | As far as prerequisites , is ENDODONT 652 necessary ? | SELECT DISTINCT COURSE_1.department, COURSE_1.name, COURSE_1.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND COURSE_0.department = 'ENDODONT' AND COURSE_0.number = 652 AND COURSE_1.course_id = course_prerequisite.course_id | advising |
CREATE TABLE table_27133147_3 (
date_of_vacancy VARCHAR,
manner_of_departure VARCHAR,
position_in_table VARCHAR
) | If the position in table is 10th, and the manner of departure was resigned, what was the date of vacancy? | SELECT date_of_vacancy FROM table_27133147_3 WHERE manner_of_departure = "Resigned" AND position_in_table = "10th" | sql_create_context |
CREATE TABLE table_name_94 (
attendance INTEGER,
result VARCHAR
) | What is the highest attendance at a game with a result of 5-1? | SELECT MAX(attendance) FROM table_name_94 WHERE result = "5-1" | sql_create_context |
CREATE TABLE table_25186 (
"Romanised name" text,
"Chinese name" text,
"age at appointment" real,
"Portfolio" text,
"Prior occupation" text
) | What was Anthony Leung Kam-Chung previous position? | SELECT "Portfolio" FROM table_25186 WHERE "Romanised name" = 'Anthony Leung Kam-chung' | wikisql |
CREATE TABLE table_27047 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
) | Who wrote the episode that originally aired April 29, 1994? | SELECT "Written by" FROM table_27047 WHERE "Original air date" = 'April 29, 1994' | wikisql |
CREATE TABLE table_name_97 (
council VARCHAR
) | What's the 2003 result for the falkirk council? | SELECT 2003 AS _result FROM table_name_97 WHERE council = "falkirk" | sql_create_context |
CREATE TABLE table_name_10 (
goals_conceded INTEGER,
points VARCHAR,
lost VARCHAR
) | What is the total of Goals Conceded that has Points smaller than 21 and a Lost thats smaller than 8? | SELECT SUM(goals_conceded) FROM table_name_10 WHERE points < 21 AND lost < 8 | sql_create_context |
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... | 患者90265376的全部检查结果指标记录在在00年7月28日到11年6月19日内的质检人为32482264的检测指标流水号是多少? | SELECT jyjgzbb.JYZBLSH FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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 mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJ... | css |
CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TABLE student (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
tot_cred numeric(3,0)
)
CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar(20),
credits numeric(2,0)
)... | Bar chart x axis building y axis the average of capacity, sort bars in asc order. | SELECT building, AVG(capacity) FROM classroom GROUP BY building ORDER BY building | nvbench |
CREATE TABLE table_37644 (
"Location (State, City)" text,
"USN 2013" real,
"BW 2013" real,
"Forbes 2011" real,
"Ec 2013" real,
"FT 2011" real,
"AE 2011" real,
"CNN 2011" real,
"BI 2013" real,
"ARWU 2012" real
) | What is the average AE 2011 ranking with a Forbes 2011 ranking of 24 and a FT 2011 ranking less than 44? | SELECT AVG("AE 2011") FROM table_37644 WHERE "Forbes 2011" = '24' AND "FT 2011" < '44' | wikisql |
CREATE TABLE table_name_47 (
result VARCHAR,
category VARCHAR,
year VARCHAR
) | What is the Result with a Category of album of the year in a Year that is 2011? | SELECT result FROM table_name_47 WHERE category = "album of the year" AND year = 2011 | sql_create_context |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | count the number of times that patient 035-4428 had received a alt (sgpt) laboratory test in 01/last year. | SELECT COUNT(*) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-4428')) AND lab.labname = 'alt (sgpt)' AND DATETIME(lab.labresulttime, 'start of year') ... | eicu |
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 aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,... | fares and flights from PITTSBURGH to PHILADELPHIA | SELECT DISTINCT fare.fare_id, flight.airline_code, flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PITTSBURGH' AND CITY_1.city_code = A... | atis |
CREATE TABLE table_43165 (
"Rank" real,
"Name" text,
"S-League" text,
"Singapore Cup" text,
"Singapore League Cup" text,
"Total" text
) | What is the Singapore Cup when the S-League is 5 (14)? | SELECT "Singapore Cup" FROM table_43165 WHERE "S-League" = '5 (14)' | wikisql |
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minu... | please list the flight schedule from BALTIMORE to SAN FRANCISCO on FRIDAY nights | 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, days, flight AS FLIGHT_0, flight AS FLIGHT_1, flight_leg WHERE ((((FLIGHT_1.departure_time <= 2400 AND FLIGHT_1.departure_time >= 1800) AND days... | atis |
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,
... | 阿立哌唑口腔崩解片在医疗就诊85094791445中开出的医疗发票项目类别是哪个类别的? | SELECT t_kc22.MED_INV_ITEM_TYPE 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 = '85094791445' AND t_kc22.SOC_SRT_DIRE_NM = '阿立哌唑口腔崩解片' | css |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
... | how many patients died in the same hospital visit after being diagnosed since 1 year ago with hypotension / pressor dependent? | SELECT COUNT(DISTINCT t2.uniquepid) FROM (SELECT t1.uniquepid, t1.diagnosistime, t1.patienthealthsystemstayid FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = ... | eicu |
CREATE TABLE table_13555999_1 (
gender VARCHAR,
junior_high_school__12_15_yrs_ VARCHAR
) | What is the gender of the junior high school is 24mm? | SELECT gender FROM table_13555999_1 WHERE junior_high_school__12_15_yrs_ = "24mm" | sql_create_context |
CREATE TABLE table_62352 (
"Name" text,
"Hometown" text,
"Games" text,
"Goals" text,
"Assists" text,
"Points" text,
"Pen. Min." text
) | How many assists did the player with 54 penalty minutes have? | SELECT "Assists" FROM table_62352 WHERE "Pen. Min." = '54' | wikisql |
CREATE TABLE table_72603 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) | Which episode number drew in 3.84 million viewers in the U.S.? | SELECT MAX("Series #") FROM table_72603 WHERE "U.S. viewers (million)" = '3.84' | wikisql |
CREATE TABLE table_2159571_2 (
successor VARCHAR,
district VARCHAR
) | Who is every successor for the Washington 3rd District? | SELECT successor FROM table_2159571_2 WHERE district = "Washington 3rd" | sql_create_context |
CREATE TABLE table_name_49 (
opponent VARCHAR,
week VARCHAR,
result VARCHAR
) | Who was the opponent before week 8 when the result was l 28-17? | SELECT opponent FROM table_name_49 WHERE week < 8 AND result = "l 28-17" | sql_create_context |
CREATE TABLE table_60701 (
"Season" text,
"League" text,
"Teams" text,
"Home" text,
"Away" text
) | What team has a season of 2009-10? | SELECT "Teams" FROM table_60701 WHERE "Season" = '2009-10' | wikisql |
CREATE TABLE table_225102_4 (
vacator VARCHAR,
reason_for_change VARCHAR
) | Name the vacator for reason for change died january 12, 1826 | SELECT vacator FROM table_225102_4 WHERE reason_for_change = "Died January 12, 1826" | sql_create_context |
CREATE TABLE table_64099 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | What home team played against Crystal Palace? | SELECT "Home team" FROM table_64099 WHERE "Away team" = 'crystal palace' | wikisql |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | count the number of patients whose age is less than 80 and drug name is oseltamivir? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "80" AND prescriptions.drug = "Oseltamivir" | mimicsql_data |
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 airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE time_int... | i want to go from DENVER to OAKLAND | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKLAND... | atis |
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE departments (
DEPARTME... | Group and count the city attribute of the location table to visualize a bar chart, show by the names from low to high. | SELECT CITY, COUNT(CITY) FROM locations GROUP BY CITY ORDER BY CITY | nvbench |
CREATE TABLE table_204_508 (
id number,
"no." number,
"race title" text,
"track" text,
"date" text,
"tv" text
) | what was the name of the first race title ? | SELECT "race title" FROM table_204_508 ORDER BY "date" LIMIT 1 | squall |
CREATE TABLE employee (
eid number(9,0),
name varchar2(30),
salary number(10,2)
)
CREATE TABLE aircraft (
aid number(9,0),
name varchar2(30),
distance number(6,0)
)
CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
... | What are the destinations and number of flights to each one Visualize by bar chart, and sort y-axis in desc order. | SELECT destination, COUNT(*) FROM flight GROUP BY destination ORDER BY COUNT(*) DESC | nvbench |
CREATE TABLE table_23715 (
"Year" real,
"District" real,
"Blocks" real,
"Panchayat" real,
"Village" real,
"Human (in Lakh )" text,
"Animal (in Lakh )" text,
"Total Area (in Lakh ha )" text,
"Cropped area (in Lakh ha )" text,
"Crop Damaged (in Lakh INR )" text,
"House Affected... | How many districts had crib damage of 1,164.50? | SELECT COUNT("District") FROM table_23715 WHERE "Crop Damaged (in Lakh INR )" = '1,164.50' | wikisql |
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,
... | show the top three most frequent output events until 2100? | SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%output%' AND STRFTIME('%y', intakeoutput.intakeoutputtime) <= '2100' GROUP BY intakeoutput.celllabel) AS t1 WHERE t1.c1 <= 3 | eicu |
CREATE TABLE table_74075 (
"Salary range" text,
"Indians" text,
"Pakistanis" text,
"Nepalese" text,
"Working force of HK" text
) | If the Indians are 8.2%, what is the salary range? | SELECT "Salary range" FROM table_74075 WHERE "Indians" = '8.2%' | wikisql |
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
r... | i'm planning a trip to PITTSBURGH and i live in DENVER can you help me | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBU... | atis |
CREATE TABLE table_206217_2 (
epoch__utc_ VARCHAR,
periselene__km_ VARCHAR
) | What is every entry for epoch if periselene is 2,291.250? | SELECT epoch__utc_ FROM table_206217_2 WHERE periselene__km_ = "2,291.250" | sql_create_context |
CREATE TABLE table_24425976_2 (
production_code VARCHAR,
season VARCHAR
) | How many production codes are there for episode 10 in the season? | SELECT COUNT(production_code) FROM table_24425976_2 WHERE season = "10" | sql_create_context |
CREATE TABLE table_58805 (
"Date" text,
"Opponent#" text,
"Site" text,
"Result" text,
"Attendance" text
) | What was the result of the game that was attended by 41,650 people? | SELECT "Result" FROM table_58805 WHERE "Attendance" = '41,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... | 把2007年6月24日到2016年11月13日期间患者76533732一共看过多少家医院统计了解一下 | SELECT COUNT(qtb.MED_SER_ORG_NO) FROM qtb WHERE qtb.PERSON_ID = '76533732' AND qtb.IN_HOSP_DATE BETWEEN '2007-06-24' AND '2016-11-03' UNION SELECT COUNT(gyb.MED_SER_ORG_NO) FROM gyb WHERE gyb.PERSON_ID = '76533732' AND gyb.IN_HOSP_DATE BETWEEN '2007-06-24' AND '2016-11-03' UNION SELECT COUNT(zyb.MED_SER_ORG_NO) FROM zy... | css |
CREATE TABLE jobs (
job_id text,
job_title text,
min_salary number,
max_salary number
)
CREATE TABLE employees (
employee_id number,
first_name text,
last_name text,
email text,
phone_number text,
hire_date time,
job_id text,
salary number,
commission_pct number,
... | What are the full names of employees who with in department 70 or 90? | SELECT first_name, last_name FROM employees WHERE department_id = 70 OR department_id = 90 | spider |
CREATE TABLE bdmzjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH number,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZD... | 在47241272961住院就诊中,门诊的主要诊断如何?编码类型、编码列表、名称列表分别是啥 | SELECT wdmzjzjlb.MZBMLX, wdmzjzjlb.MZZDBM, wdmzjzjlb.MZZDMC FROM wdmzjzjlb WHERE wdmzjzjlb.JZLSH = '47241272961' UNION SELECT bdmzjzjlb.MZBMLX, bdmzjzjlb.MZZDBM, bdmzjzjlb.MZZDMC FROM bdmzjzjlb WHERE bdmzjzjlb.JZLSH = '47241272961' | css |
CREATE TABLE table_20557 (
"#" real,
"Date" text,
"at/vs." text,
"Opponent" text,
"Score" text,
"Attendance" real,
"Record" text
) | When was the game played if the attendance is less than 6427.0? | SELECT "Date" FROM table_20557 WHERE "Attendance" < '6427.0' | wikisql |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE diagnosis (
diagnosisid number... | what were the four most frequent microbiology tests ordered for a patient within 2 months after receiving paracentesis in this year? | SELECT t3.culturesite FROM (SELECT t2.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'paracentesis' AND DATETIME(treatment.treatme... | eicu |
CREATE TABLE table_name_79 (
nation VARCHAR,
rank VARCHAR,
total VARCHAR,
bronze VARCHAR
) | What nation had a medal total of less than 10, less than 1 bronze medal, in rank 11? | SELECT nation FROM table_name_79 WHERE total < 10 AND bronze < 1 AND rank = "11" | sql_create_context |
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... | 从二00四年十月五日到二00八年十一月八日这段时间,患者苗宏壮检测指标938237找的哪些医务人员做的,这些医务人员的工号和姓名报一下 | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM person_info JOIN hz_info JOIN wdmzjzjlb JOIN jybgb JOIN jyjgzbb 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 AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZ... | css |
CREATE TABLE table_45339 (
"Year" real,
"Domestic freight" real,
"Domestic mail" real,
"International freight" real,
"International mail" real,
"Total freight and mail" real,
"Change" text
) | What is the international mail with the lowest number to have less than 72 domestic freight, 0 domestic mail later than 2012 with total freight and mail more than 4,695? | SELECT MIN("International mail") FROM table_45339 WHERE "Domestic freight" < '72' AND "Domestic mail" = '0' AND "Year" < '2012' AND "Total freight and mail" > '4,695' | wikisql |
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 demographic ... | how many patients whose admission location is clinic referral/premature underwent endoscopic sphincterotomy and papillotomy? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND procedures.long_title = "Endoscopic sphincterotomy and papillotomy" | mimicsql_data |
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 dual_carrier... | when do planes leave BOSTON for SAN FRANCISCO | SELECT DISTINCT flight.departure_time FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SA... | atis |
CREATE TABLE table_11655 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
) | Who wrote series number 99? | SELECT "Written by" FROM table_11655 WHERE "Series #" = '99' | 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... | 给病患33250252开出均价不足3095.33元的药品在哪几次医疗记录中?分别列出医疗就诊编号分别是多少? | SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_ID = '33250252' AND NOT t_kc22.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT >= 3095.33) | css |
CREATE TABLE table_60522 (
"Pick #" real,
"Player" text,
"Nationality" text,
"Position" text,
"NHL team" text,
"Team from" text,
"League from" text
) | Which NHL team chose an American player from the United States Hockey League? | SELECT "NHL team" FROM table_60522 WHERE "Nationality" = 'united states' AND "League from" = 'united states hockey league' | wikisql |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE icustays (
row_id number,
... | what were the four most frequently ordered laboratory tests for patients who had been diagnosed with dmii circ uncntrld previously in the same month,? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.i... | mimic_iii |
CREATE TABLE table_name_76 (
lead VARCHAR,
country VARCHAR
) | Who was Canada's lead? | SELECT lead FROM table_name_76 WHERE country = "canada" | sql_create_context |
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city var... | Has 154 been taught by Prof. Kristin Vaneyk many times ? | SELECT COUNT(*) FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.number = 154 AND instructor.name LIKE '%Kristin Vaneyk%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offe... | advising |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | calculate the average age of male patients who were admitted to hospital on an urgent basis. | SELECT AVG(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.admission_type = "URGENT" | mimicsql_data |
CREATE TABLE table_name_28 (
score VARCHAR,
opponent VARCHAR,
date VARCHAR
) | What is the score of the Devil Rays on April 24? | SELECT score FROM table_name_28 WHERE opponent = "devil rays" AND date = "april 24" | sql_create_context |
CREATE TABLE table_dev_15 (
"id" int,
"hemoglobin_a1c_hba1c" float,
"hepatic_enzymes" bool,
"platelet_count" float,
"liver_disease" bool,
"hba1c" float,
"triglyceride_tg" float,
"NOUSE" float
) | hba1c between 7.5 % _ 10.5 % | SELECT * FROM table_dev_15 WHERE hba1c >= 7.5 AND hemoglobin_a1c_hba1c <= 10.5 | criteria2sql |
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... | give me the number of patients whose admission year is less than 2123 and lab test category is blood gas? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2123" AND lab."CATEGORY" = "Blood Gas" | mimicsql_data |
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... | Give me a pie chart to reflect the proportion of Team_Name and Team_ID. | SELECT Team_Name, Team_ID FROM basketball_match | nvbench |
CREATE TABLE table_3865 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | Name the date for washington | SELECT "Date" FROM table_3865 WHERE "Team" = 'Washington' | wikisql |
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),
... | A bar chart showing the number of first name for all female students. Their sex is F. | SELECT Fname, COUNT(Fname) FROM Student WHERE Sex = 'F' GROUP BY Fname | nvbench |
CREATE TABLE voting_record (
stuid number,
registration_date text,
election_cycle text,
president_vote number,
vice_president_vote number,
secretary_vote number,
treasurer_vote number,
class_president_vote number,
class_senator_vote number
)
CREATE TABLE student (
stuid number,
... | Find the distinct last names of all the students who have president votes and whose advisor is not 2192. | SELECT DISTINCT T1.lname FROM student AS T1 JOIN voting_record AS T2 ON T1.stuid = president_vote EXCEPT SELECT DISTINCT lname FROM student WHERE advisor = "2192" | spider |
CREATE TABLE table_name_81 (
name VARCHAR,
assumed_office VARCHAR,
district VARCHAR
) | What is the name of the Senator in the O District who assumed office in 2013? | SELECT name FROM table_name_81 WHERE assumed_office = 2013 AND district = "o" | sql_create_context |
CREATE TABLE table_name_83 (
spouse VARCHAR,
name VARCHAR
) | Name the spouse for louise of hesse-kassel | SELECT spouse FROM table_name_83 WHERE name = "louise of hesse-kassel" | sql_create_context |
CREATE TABLE table_16881 (
"No. in series" text,
"No. in season" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Featured character(s)" text,
"Original air date" text,
"U.S. viewers (million)" text
) | List the episode whose number in the series is 111. | SELECT "No. in season" FROM table_16881 WHERE "No. in series" = '111' | wikisql |
CREATE TABLE table_name_18 (
date VARCHAR,
opponent VARCHAR,
result VARCHAR
) | What is the date of the game against the Lizards with a result of w 18-17? | SELECT date FROM table_name_18 WHERE opponent = "lizards" AND result = "w 18-17" | sql_create_context |
CREATE TABLE table_32395 (
"Player" text,
"Team" text,
"Date" text,
"Opposition" text,
"Game" text
) | On which date did Ger Loughnane from Team Clare have a match? | SELECT "Date" FROM table_32395 WHERE "Team" = 'clare' AND "Player" = 'ger loughnane' | wikisql |
CREATE TABLE table_18142 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
) | What party does Bill McCollum belong to? | SELECT "Party" FROM table_18142 WHERE "Incumbent" = 'Bill McCollum' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.