context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_23875 (
"#" text,
"Date" text,
"at/vs." text,
"Opponent" text,
"Score" text,
"Attendance" real,
"Record" text
) | What was the game #7, at or versus (home or at)? | SELECT "at/vs." FROM table_23875 WHERE "#" = '7' | wikisql |
CREATE TABLE table_8909 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | Which College has a Round of 11, and a Pick of 14? | SELECT "College" FROM table_8909 WHERE "Round" = '11' AND "Pick" = '14' | wikisql |
CREATE TABLE table_name_78 (
time VARCHAR,
rank VARCHAR
) | What's the time of Rank 3? | SELECT time FROM table_name_78 WHERE rank = 3 | sql_create_context |
CREATE TABLE table_203_509 (
id number,
"year" number,
"laetare medalist" text,
"position" text
) | who has won this medal and the nobel prize as well ? | SELECT "laetare medalist" FROM table_203_509 WHERE "position" = 'surgeon & nobel prize winner' | squall |
CREATE TABLE table_16213 (
"General election" real,
"# of candidates" real,
"# of seats won" real,
"% of popular vote" text,
"Result" text
) | Which general election had a pq majority and a 44.75% of the popular vote? | SELECT "General election" FROM table_16213 WHERE "Result" = 'PQ majority' AND "% of popular vote" = '44.75%' | wikisql |
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, find name and code , and group by attribute founder, and visualize them by a bar chart, and show in ascending by the Name please. | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Name | nvbench |
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE time_zone (
time_zone_code tex... | show me the flights available from DALLAS to BALTIMORE 8 3 | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIMORE' AND date_day.day_number = 3 AND date_day.month_number = 8 AND ... | atis |
CREATE TABLE table_65424 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
) | What country had a Time of 6:14.84? | SELECT "Country" FROM table_65424 WHERE "Time" = '6:14.84' | wikisql |
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
... | show me all flights from NEW YORK to MIAMI leaving on a TUESDAY and returning on SUNDAY | 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, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MIAMI' AND days.day_name = 'TUESDAY' AND flight.flight_days = days.days_code AND f... | atis |
CREATE TABLE Order_Items (
Order_Item_ID INTEGER,
Order_ID INTEGER,
Product_ID INTEGER,
Order_Quantity VARCHAR(288),
Other_Item_Details VARCHAR(255)
)
CREATE TABLE Stores (
Store_ID VARCHAR(100),
Address_ID INTEGER,
Marketing_Region_Code CHAR(15),
Store_Name VARCHAR(255),
Store_... | How many services for each service type description? Use a bar chart to show it, could you sort in ascending by the Y please? | SELECT Service_Type_Description, COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T2.Service_Type_Code ORDER BY COUNT(*) | nvbench |
CREATE TABLE table_2538117_7 (
type VARCHAR,
organization VARCHAR
) | What is the type if the organization name is Gamma RHO Lambda 1? | SELECT type FROM table_2538117_7 WHERE organization = "Gamma Rho Lambda 1" | sql_create_context |
CREATE TABLE table_518 (
"Series Ep #" real,
"Season 2 Ep #" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original Airdate" text,
"Production Code" real
) | Provide me with the name of the writer with the production code 210. | SELECT "Writer(s)" FROM table_518 WHERE "Production Code" = '210' | wikisql |
CREATE TABLE table_203_247 (
id number,
"district" text,
"counties represented" text,
"delegate" text,
"party" text,
"first elected" number,
"committee" text
) | how many delegates are under the ways and means committee and represented washington county ? | SELECT COUNT("delegate") FROM table_203_247 WHERE "counties represented" = 'washington' AND "committee" = 'ways and means' | squall |
CREATE TABLE countries (
country_id text,
country_name text,
region_id number
)
CREATE TABLE regions (
region_id number,
region_name text
)
CREATE TABLE locations (
location_id number,
street_address text,
postal_code text,
city text,
state_province text,
country_id text
)
... | What are the job ids for jobs done more than once for a period of more than 300 days? | SELECT job_id FROM job_history WHERE end_date - start_date > 300 GROUP BY job_id HAVING COUNT(*) >= 2 | spider |
CREATE TABLE diagnoses (
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,
... | what is the number of patients whose admission type is elective and admission location is emergency room admit? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.admission_location = "EMERGENCY ROOM ADMIT" | mimicsql_data |
CREATE TABLE table_71987 (
"Outcome" text,
"Date" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | What was Olga Govortsova's outcome when she played on a grass surface? | SELECT "Outcome" FROM table_71987 WHERE "Surface" = 'grass' | wikisql |
CREATE TABLE table_51694 (
"Locomotive" text,
"Type" text,
"Builder" text,
"Builder's No." text,
"Built" real,
"Entered service" real,
"Withdrawn" real
) | With a Type of 4-6-4t, what is the sum Withdrawn? | SELECT SUM("Withdrawn") FROM table_51694 WHERE "Type" = '4-6-4t' | wikisql |
CREATE TABLE table_36833 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Venue" text,
"Attendance" text,
"Record" text
) | What is the largest week number for the venue of League Park for the date of November 25, 1920? | SELECT MAX("Week") FROM table_36833 WHERE "Venue" = 'league park' AND "Date" = 'november 25, 1920' | wikisql |
CREATE TABLE table_14362 (
"Club" text,
"Played" 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
) | Name the points for with drawn of 0 and points of 88 | SELECT "Points for" FROM table_14362 WHERE "Drawn" = '0' AND "Points" = '88' | wikisql |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9cod... | count how many times patient 021-221706 have had a urine output in 05/2101. | SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-221706')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutput.c... | eicu |
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CRE... | how can i get from BOSTON to ATLANTA and back in the same day and have the most hours on the ground in ATLANTA | 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_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND flight.arrival_time = (SELECT MIN(FLIGHTalias1.arrival_time) FROM airport_s... | atis |
CREATE TABLE table_name_87 (
game_site VARCHAR,
week VARCHAR
) | What was the game site for week 14? | SELECT game_site FROM table_name_87 WHERE week = "14" | sql_create_context |
CREATE TABLE Investors (
investor_id INTEGER,
Investor_details VARCHAR(255)
)
CREATE TABLE Transactions_Lots (
transaction_id INTEGER,
lot_id INTEGER
)
CREATE TABLE Transactions (
transaction_id INTEGER,
investor_id INTEGER,
transaction_type_code VARCHAR(10),
date_of_transaction DATETI... | Show the number of transactions for different investors with a scatter chart. | SELECT investor_id, COUNT(*) FROM Transactions GROUP BY investor_id | nvbench |
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_... | i would like to make a round trip between WASHINGTON and SAN FRANCISCO | 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, fare, flight, flight_fare WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND NOT fare.round_trip_cost IS NULL AND flight_fare.fa... | atis |
CREATE TABLE table_15105 (
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | What is the lowest number of bronze medals for a country with less than 1 gold and 0 silver? | SELECT MIN("Bronze") FROM table_15105 WHERE "Gold" = '1' AND "Silver" < '0' | wikisql |
CREATE TABLE table_24813 (
"Tournament" real,
"Conference" text,
"Championship Game Opponent" text,
"Score" text,
"Location" text,
"Head Coach" text
) | How many scores are there when the championship game opponent is Miami University? | SELECT COUNT("Score") FROM table_24813 WHERE "Championship Game Opponent" = 'Miami University' | wikisql |
CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
) | A bar chart for what are the number of the dates of birth of entrepreneurs with investor 'Simon Woodroffe' or 'Peter Jones'? | SELECT Date_of_Birth, COUNT(Date_of_Birth) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = "Simon Woodroffe" OR T1.Investor = "Peter Jones" | nvbench |
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... | when was the first time, this month, that patient 012-31752 was prescribed with a medication through intravenou route? | 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 = '012-31752')) AND medication.routeadmin = 'intravenou' AND DATE... | eicu |
CREATE TABLE mzb (
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... | 病人严志用药品金额超过6005.61元的在哪几次医疗记录中被开出过已经医疗就诊编号是多少? | SELECT qtb.MED_CLINIC_ID FROM qtb WHERE qtb.PERSON_NM = '严志用' AND qtb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT > 6005.61) UNION SELECT gyb.MED_CLINIC_ID FROM gyb WHERE gyb.PERSON_NM = '严志用' AND gyb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT > 6005.... | 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 ... | when was patient 97330 last having the maximum epithelial cells level since 16 months ago? | SELECT labevents.charttime FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 97330) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'epithelial cells') AND DATETIME(labevents.charttime) >= DATETIME(CURRENT_TIME()... | mimic_iii |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE inputevents_cv (
row_i... | what were the top three most common lab tests for the patients with age 30s since 2100? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t1.itemid FROM (SELECT labevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN 30 AND 39) AND STRFTIME('%y', labevents.c... | mimic_iii |
CREATE TABLE Shops (
Shop_ID INTEGER,
Shop_Details VARCHAR(255)
)
CREATE TABLE Theme_Parks (
Theme_Park_ID INTEGER,
Theme_Park_Details VARCHAR(255)
)
CREATE TABLE Features (
Feature_ID INTEGER,
Feature_Details VARCHAR(255)
)
CREATE TABLE Royal_Family (
Royal_Family_ID INTEGER,
Royal_F... | plot scatter on what is the average price range of hotels for each each star rating code? | SELECT star_rating_code, AVG(price_range) FROM Hotels GROUP BY star_rating_code | nvbench |
CREATE TABLE table_name_22 (
country VARCHAR,
publication VARCHAR
) | What country had the publication, Drowned in Sound? | SELECT country FROM table_name_22 WHERE publication = "drowned in sound" | sql_create_context |
CREATE TABLE table_24856090_1 (
chinese_title VARCHAR,
hk_viewers VARCHAR
) | What is the Chinese name of the episode with 1.97 million Hong Kong viewers? | SELECT chinese_title FROM table_24856090_1 WHERE hk_viewers = "1.97 million" | 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... | 过去患者孙秀媚的住院诊断记录都哪些? | SELECT zyjzjlb.ZYZDBM, zyjzjlb.ZYZDMC FROM person_info JOIN hz_info JOIN zyjzjlb JOIN person_info_hz_info ON person_info.RYBH = person_info_hz_info.RYBH AND hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_... | css |
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
... | Questions neither closed nor deleted indicating embedded application. | SELECT COUNT(q.Id) AS "count" FROM Posts AS q LEFT JOIN PostTags AS j ON j.PostId = q.Id INNER JOIN Tags AS t ON j.TagId = t.Id WHERE q.PostTypeId = 1 AND q.ClosedDate IS NULL AND q.DeletionDate IS NULL AND (q.Body LIKE '% embedded %' OR q.Body LIKE '% robot%' OR q.Body LIKE '%real time%' OR q.Title LIKE '% embedded %'... | sede |
CREATE TABLE table_42681 (
"Year" real,
"Award" text,
"Category" text,
"Nominee" text,
"Result" text
) | What was Matthew Warchus' Award? | SELECT "Award" FROM table_42681 WHERE "Nominee" = 'matthew warchus' | wikisql |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | Calculate the minimum days for which patients born after 2065 stayed in the hospital. | SELECT MIN(demographic.days_stay) FROM demographic WHERE demographic.dob_year > "2065" | mimicsql_data |
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Comments (
Id number,
PostId number,
Sc... | Top 1000 users in Kazakhstan. | SELECT ROW_NUMBER() OVER (ORDER BY u.Reputation DESC) AS "#", u.Id AS "user_link", u.Reputation, u.Location, u.UpVotes, u.DownVotes, u.CreationDate, p.Tags FROM Users AS u INNER JOIN Posts AS p ON p.OwnerUserId = u.Id INNER JOIN PostTags AS pt ON pt.PostId = p.Id INNER JOIN Tags AS t ON pt.TagId = t.Id WHERE LOWER(Loca... | sede |
CREATE TABLE Institution (
Institution_id text,
Institution text,
Location text,
Founded real,
Type text,
Enrollment int,
Team text,
Primary_Conference text,
building_id text
)
CREATE TABLE building (
building_id text,
Name text,
Street_address text,
Years_as_tallest... | Show the names and heights of buildings with at least two institutions founded after 1880 Plot them as bar chart, I want to show from high to low by the bar. | SELECT Name, Height_feet FROM building AS T1 JOIN Institution AS T2 ON T1.building_id = T2.building_id WHERE T2.Founded > 1880 ORDER BY Name DESC | nvbench |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | provide the number of patients whose marital status is divorced and drug route is iv drip? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.marital_status = "DIVORCED" AND prescriptions.route = "IV DRIP" | mimicsql_data |
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 are the top four most common diagnosis since 2102? | SELECT t1.diagnosisname FROM (SELECT diagnosis.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnosis WHERE STRFTIME('%y', diagnosis.diagnosistime) >= '2102' GROUP BY diagnosis.diagnosisname) AS t1 WHERE t1.c1 <= 4 | eicu |
CREATE TABLE table_name_80 (
total VARCHAR,
ward INTEGER
) | WHAT IS THE TOTAL NUMBER WITH A WARD SMALLER THAN 0? | SELECT COUNT(total) FROM table_name_80 WHERE ward < 0 | sql_create_context |
CREATE TABLE table_12850 (
"Governorate" text,
"Cereals" real,
"Fruit Trees" real,
"Olives" real,
"Industrial crops" real,
"Vegetables" real
) | What is the total number of cereals of the nabatieh governorate, which has less than 595,147 fruit trees and more than 116,124 olives? | SELECT COUNT("Cereals") FROM table_12850 WHERE "Fruit Trees" < '595,147' AND "Governorate" = 'nabatieh' AND "Olives" > '116,124' | wikisql |
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZZMC ... | 从06年1月17日至12年11月19日期间内为28372470患者检测促肾上腺皮质激素的医务人员姓名和工号分别什么? | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGD... | css |
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... | Are there AOSS 555 morning classes ? | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course_offering.start_time < '12:00:00' AND course_offering.start_time >= '08:00:00' AND course.course_id = course_offering.course_id AND course.department = 'AOSS' AND course.number = 555 AND semester.semester = 'WN' AND semester.semester_id = course_off... | advising |
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... | tell me patient 035-2205's difference in sao2 second measured on the last intensive care unit visit compared to the value first measured on the last intensive care unit visit? | SELECT (SELECT vitalperiodic.sao2 FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-2205') AND NOT patient.unitdischargetime IS NULL O... | eicu |
CREATE TABLE table_14854 (
"Title" text,
"Bugs , Daffy , or Both?" text,
"Year" real,
"Director" text,
"Series" text
) | Name the director who has title of transylvania 6-5000 | SELECT "Director" FROM table_14854 WHERE "Title" = 'transylvania 6-5000' | wikisql |
CREATE TABLE table_44175 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | what is the country when the score is 72-68-67=207? | SELECT "Country" FROM table_44175 WHERE "Score" = '72-68-67=207' | wikisql |
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,
... | 在00年9月13日到2005年5月12日期间病号56678015的所有检验结果指标记录的检测人为戚雪卉的检验指标流水号是多少? | SELECT jyjgzbb.JYZBLSH FROM hz_info JOIN zzmzjzjlb JOIN jybgb JOIN jyjgzbb ON 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 = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.B... | css |
CREATE TABLE table_name_6 (
crowd INTEGER,
away_team VARCHAR
) | What was the smallest crowd at a game when Richmond was the away team? | SELECT MIN(crowd) FROM table_name_6 WHERE away_team = "richmond" | sql_create_context |
CREATE TABLE table_203_234 (
id number,
"description" text,
"total" number,
"poland" number,
"baltic states(resettled in poland during war)" number,
"resettled in poland during war(from ussr and romania)" number,
"sudetendeutsch" number,
"se europe\n(hungary, romania, yugoslavia & slovak... | what is the total of deaths in internment camps and during the wartime flight ? | SELECT SUM("total") FROM table_203_234 WHERE "description" IN ('in internment camps', 'during the wartime flight') | squall |
CREATE TABLE table_26561509_1 (
written_by VARCHAR,
directed_by VARCHAR,
no VARCHAR
) | The episode with the no. 54, directed by Charles Haid, is written by who? | SELECT written_by FROM table_26561509_1 WHERE directed_by = "Charles Haid" AND no = 54 | sql_create_context |
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescript... | Migrations from Arqade to SU. | SELECT MigratedPosts.Id AS "post_link", MigrationHistory.CreationDate AS DateMigrated, CloseHistory.CreationDate AS DateClosed, MigrationHistory.Comment AS OriginalUrl, CASE WHEN CloseHistory.PostHistoryTypeId = 10 THEN 'Rejected' ELSE '' END AS "migration_status" FROM Posts AS MigratedPosts JOIN Posts AS ClosedPosts O... | sede |
CREATE TABLE table_14927 (
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | What is the average of all Heats of competitors with a Time of 59.11 and a lane higher than 3? | SELECT AVG("Heat") FROM table_14927 WHERE "Time" = '59.11' AND "Lane" > '3' | wikisql |
CREATE TABLE songs (
songid number,
title text
)
CREATE TABLE tracklists (
albumid number,
position number,
songid number
)
CREATE TABLE albums (
aid number,
title text,
year number,
label text,
type text
)
CREATE TABLE instruments (
songid number,
bandmateid number,
... | What are the names of all the songs whose album is under the label of 'Universal Music Group'? | SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.label = "Universal Music Group" | spider |
CREATE TABLE table_66212 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
) | what is the country for fabiana beltrame? | SELECT "Country" FROM table_66212 WHERE "Athlete" = 'fabiana beltrame' | wikisql |
CREATE TABLE table_79700 (
"Town" text,
"Fianna F\u00e1il" real,
"Fine Gael" real,
"Labour Party" real,
"Green Party" real,
"Total" real
) | What is the lowest number in the Labour Party for the Fianna Fail higher than 5? | SELECT MIN("Labour Party") FROM table_79700 WHERE "Fianna F\u00e1il" > '5' | wikisql |
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar... | Find the number of courses that have more than one prerequisites for each department in a bar chart, and could you sort in ascending by the bars? | SELECT dept_name, COUNT(dept_name) FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY dept_name ORDER BY dept_name | nvbench |
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of headquarter and the average of code , and group by attribute headquarter, and order Y in descending order. | SELECT T2.Headquarter, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Headquarter ORDER BY T1.Code DESC | nvbench |
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
) | Visualize the total smallest rating of different movie title using a bar chart, rank by the x-axis in desc. | SELECT T2.title, SUM(MIN(T1.stars)) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.title ORDER BY T2.title DESC | nvbench |
CREATE TABLE table_name_39 (
entrant VARCHAR,
chassis VARCHAR
) | What is the name of the Entrant that has a Chassis of lotus 25 | SELECT entrant FROM table_name_39 WHERE chassis = "lotus 25" | sql_create_context |
CREATE TABLE table_24257833_4 (
webkit_version VARCHAR,
minor_version VARCHAR
) | What is the webkit version when the minor version was 3.1.2.? | SELECT webkit_version FROM table_24257833_4 WHERE minor_version = "3.1.2" | sql_create_context |
CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGER,
lot_details VARCHAR(255)
)
CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Ref_Transaction_Types (
transaction_type_code VARCHAR(10),
transaction_type_description VARCHAR(80)
)
CREATE TAB... | Plot the number of investor details by grouped by investor details as a bar graph | SELECT Investor_details, COUNT(Investor_details) FROM Investors GROUP BY Investor_details | nvbench |
CREATE TABLE table_65121 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | When has an Opposing Team of mid-districts? | SELECT "Date" FROM table_65121 WHERE "Opposing Team" = 'mid-districts' | wikisql |
CREATE TABLE table_2651755_1 (
independent_regional_force VARCHAR,
alliance VARCHAR
) | What is the independent regional force when alliance is (r) iv n norambuena ( udi )? | SELECT independent_regional_force FROM table_2651755_1 WHERE alliance = "(R) Iván Norambuena ( UDI )" | sql_create_context |
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 comment_instructor (
instructor_id int,
student_id int,
score int,
... | Are 400 -level classes available in either the Fall or Winter terms ? | SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number BETWEEN 400 AND 400 + 100 AND semester.semester IN ('FA', 'WN') AND semester.semester_id = course_of... | advising |
CREATE TABLE table_75850 (
"House" text,
"Sign" text,
"Latin motto" text,
"Translation" text,
"Modern title of house" text
) | What is the translation of the sign of Aquarius? | SELECT "Translation" FROM table_75850 WHERE "Sign" = 'aquarius' | wikisql |
CREATE TABLE table_55293 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | What was the winning score when Damien McGrane was runner-up? | SELECT "Winning score" FROM table_55293 WHERE "Runner(s)-up" = 'damien mcgrane' | wikisql |
CREATE TABLE table_18720 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | What was the result when incumbent John R. Tyson was elected? | SELECT "Result" FROM table_18720 WHERE "Incumbent" = 'John R. Tyson' | wikisql |
CREATE TABLE table_name_13 (
mission VARCHAR,
location VARCHAR
) | what is the mission when the location is rome? | SELECT mission FROM table_name_13 WHERE location = "rome" | sql_create_context |
CREATE TABLE weather (
date VARCHAR,
max_temperature_f VARCHAR,
min_temperature_f VARCHAR
) | Find the day in which the difference between the max temperature and min temperature was the smallest. Also report the difference. | SELECT date, max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1 | sql_create_context |
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 intakeoutput (
intakeoutputid ... | calculate the number of patients who had been admitted to hospital until 2103. | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE STRFTIME('%y', patient.hospitaladmittime) <= '2103' | eicu |
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number... | Shows the number of questions and most recent question for the top X users since a given date.. Shows the number of questions and most recent question for the top X users since a given date. | WITH TopUsers AS (SELECT Id FROM Users ORDER BY Reputation DESC LIMIT 500) SELECT u.Id AS "user_link", COUNT(*) AS QuestionCount, MAX(CreationDate) AS LastQuestionDate FROM TopUsers AS u INNER JOIN Posts AS p ON p.OwnerUserId = u.Id WHERE p.PostTypeId = 1 AND p.CreationDate >= '##BeginDate##' GROUP BY u.Id | sede |
CREATE TABLE table_name_60 (
country VARCHAR,
score VARCHAR
) | Which country scored 66-68=134? | SELECT country FROM table_name_60 WHERE score = 66 - 68 = 134 | 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,... | 列出给尤修远这个病人开拉莫三嗪片的几家医院 | SELECT MED_SER_ORG_NO FROM t_kc21 WHERE PERSON_NM = '尤修远' AND MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc22 WHERE SOC_SRT_DIRE_NM = '拉莫三嗪片') | css |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE intakeoutput (
intakeoutpu... | tell me the average total cost of a hospital that contains wound infection since 2105? | SELECT AVG(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 diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'wound infection')) AND STRFTIME('%y', cost.c... | eicu |
CREATE TABLE table_43922 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | What is the team 1 when Ulisses is team 2? | SELECT "Team 1" FROM table_43922 WHERE "Team 2" = 'ulisses' | wikisql |
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZZMC ... | 列出在编码为9397980医院中35864254患者就诊科室名称不包含激光的所有门诊就诊记录的流水号都是多少? | SELECT mzjzjlb.JZLSH FROM hz_info JOIN mzjzjlb JOIN person_info_hz_info JOIN person_info ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND person_info_hz_info.YLJGDM = hz_info.YLJGDM AND pers... | css |
CREATE TABLE table_11159 (
"Name" text,
"Bodyweight" real,
"Snatch" real,
"Clean & jerk" text,
"Total (kg)" text
) | What's the name of the athlete with a Snatch larger than 140, Bodyweight smaller than 84.55, and Clean and Jerk of 192.5? | SELECT "Name" FROM table_11159 WHERE "Snatch" > '140' AND "Bodyweight" < '84.55' AND "Clean & jerk" = '192.5' | wikisql |
CREATE TABLE table_12834315_5 (
bayonet_lug VARCHAR,
barrel_profile VARCHAR,
name VARCHAR
) | What is the bayonet lug status for a m4 hbar and m4le carbine equipped? | SELECT bayonet_lug FROM table_12834315_5 WHERE barrel_profile = "M4 HBAR" AND name = "M4LE Carbine" | sql_create_context |
CREATE TABLE table_204_996 (
id number,
"no." text,
"air date" text,
"network" text,
"household\nrating" number,
"viewers\n(millions)" text
) | which airing had the least number of viewers ? | SELECT "air date" FROM table_204_996 ORDER BY "viewers\n(millions)" LIMIT 1 | squall |
CREATE TABLE table_42530 (
"Result" text,
"Date" text,
"Race" text,
"Venue" text,
"Group" text,
"Distance" text,
"Weight (kg)" real,
"Time" text,
"Jockey" text,
"Winner/2nd" text
) | What was the result of the race that had a group of G1 at Moonee Valley? | SELECT "Result" FROM table_42530 WHERE "Group" = 'g1' AND "Venue" = 'moonee valley' | wikisql |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
... | what is patient 16472's length of stay in the icu for the first time? | SELECT STRFTIME('%j', icustays.outtime) - STRFTIME('%j', icustays.intime) FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 16472) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1 | mimic_iii |
CREATE TABLE Activity (
actid INTEGER,
activity_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 Participates_in (
stuid INTEGER,
... | Show all the faculty ranks and the number of students advised by each rank in a bar chart, list from low to high by the Y-axis. | SELECT Rank, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.Advisor GROUP BY T1.Rank ORDER BY COUNT(*) | nvbench |
CREATE TABLE table_name_51 (
away_team VARCHAR,
venue VARCHAR
) | What was the away team that played at Princes Park? | SELECT away_team FROM table_name_51 WHERE venue = "princes park" | sql_create_context |
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE d_icd_diagnoses (
... | when patient 19096's birthday is? | SELECT patients.dob FROM patients WHERE patients.subject_id = 19096 | mimic_iii |
CREATE TABLE table_36495 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
) | How many points did ginger have when she was ranked 5th on a 350cc class bike? | SELECT COUNT("Points") FROM table_36495 WHERE "Class" = '350cc' AND "Rank" = '5th' | wikisql |
CREATE TABLE table_203_339 (
id number,
"year" text,
"car" number,
"start" number,
"qual" number,
"rank" number,
"finish" number,
"laps" number,
"led" number,
"retired" text
) | what car ranked # 1 from 1962-1963 ? | SELECT "car" FROM table_203_339 WHERE "year" = 1962 | squall |
CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
Building VARCHAR(13)
)
CREATE TABLE Activity (
actid INTEGER,
... | Show all the activity names and the number of faculty involved in each activity Show bar chart, and could you order in ascending by the the total number ? | SELECT activity_name, COUNT(*) FROM Activity AS T1 JOIN Faculty_Participates_in AS T2 ON T1.actid = T2.actid GROUP BY T1.actid ORDER BY COUNT(*) | nvbench |
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course (
course_id int,
name varchar,
dep... | Without including the DANCE department , what are the required courses for the major ? | SELECT DISTINCT course.department, course.name, course.number FROM course, program, program_course WHERE course.department <> 'DANCE' AND program_course.course_id = course.course_id AND program.program_id = program_course.program_id | advising |
CREATE TABLE table_name_58 (
rank INTEGER,
location VARCHAR
) | What is augusta's low rank? | SELECT MIN(rank) FROM table_name_58 WHERE location = "augusta" | sql_create_context |
CREATE TABLE table_name_53 (
week INTEGER,
result VARCHAR
) | What was the highest week with a result of l 16 12? | SELECT MAX(week) FROM table_name_53 WHERE result = "l 16–12" | sql_create_context |
CREATE TABLE table_52830 (
"Name" text,
"Species" text,
"Overview" text,
"Introduced" text,
"Feral" text,
"Threat level" text
) | What is the Overview with a medium Threat Level? | SELECT "Overview" FROM table_52830 WHERE "Threat level" = 'medium' | wikisql |
CREATE TABLE table_name_32 (
result VARCHAR,
recipient_s_ VARCHAR,
award VARCHAR
) | What is Joe Jonas' result at the Kids' Choice Awards Mexico? | SELECT result FROM table_name_32 WHERE recipient_s_ = "joe jonas" AND award = "kids' choice awards mexico" | sql_create_context |
CREATE TABLE Order_Items (
order_id INTEGER,
product_id INTEGER,
order_quantity VARCHAR(15)
)
CREATE TABLE Customer_Addresses (
customer_id INTEGER,
address_id INTEGER,
date_address_from DATETIME,
address_type VARCHAR(15),
date_address_to DATETIME
)
CREATE TABLE Customers (
custome... | Find the number of customers that use email as the contact channel and group by customer name and bin active date by weekday in a stacked bar chart, sort in descending by the y-axis please. | SELECT active_from_date, COUNT(active_from_date) FROM Customers AS t1 JOIN Customer_Contact_Channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email' GROUP BY customer_name ORDER BY COUNT(active_from_date) DESC | nvbench |
CREATE TABLE table_41578 (
"Name" text,
"Japanese" text,
"Date of designation" text,
"Date of reclassification" text,
"Region" text,
"Prefecture" text
) | Whose Name has a Date of reclassification of 2003-04-01 (merge into shizuoka )? | SELECT "Name" FROM table_41578 WHERE "Date of reclassification" = '2003-04-01 (merge into shizuoka )' | wikisql |
CREATE TABLE table_51967 (
"Component" text,
"Integrated" text,
"Allied-Related" text,
"Allied-Unrelated" text,
"Holding" text
) | What Allied-Unrelated is labeled as 'common'? | SELECT "Allied-Unrelated" FROM table_51967 WHERE "Allied-Related" = 'common' | wikisql |
CREATE TABLE STUDENT (
STU_NUM int,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int
)
CREATE TABLE PR... | Find the max gpa of all students in each department with a bar chart, and I want to order in asc by the y axis please. | SELECT DEPT_CODE, MAX(STU_GPA) FROM STUDENT GROUP BY DEPT_CODE ORDER BY MAX(STU_GPA) | nvbench |
CREATE TABLE table_name_92 (
runner_up VARCHAR,
tournament VARCHAR
) | What is the name of the runner up in the Tournament of s o paulo? | SELECT runner_up FROM table_name_92 WHERE tournament = "são paulo" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.