instruction
stringlengths
151
7.46k
output
stringlengths
2
4.44k
source
stringclasses
26 values
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 jyjgzbb ( BGDH text, BGRQ tim...
SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW 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 ...
css
CREATE TABLE table_2791668_1 ( title VARCHAR, directed_by VARCHAR, no_in_season VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name of the episode whose director is Michael Pressman and the number of that episode in that season is less than 1...
SELECT title FROM table_2791668_1 WHERE directed_by = "Michael Pressman" AND no_in_season < 10.0
sql_create_context
CREATE TABLE ftxmzjzjlb ( HXPLC number, HZXM text, JLSJ time, JZJSSJ time, JZKSBM text, JZKSMC text, JZKSRQ time, JZLSH number, JZZDBM text, JZZDSM text, JZZTDM number, JZZTMC text, KH text, KLX number, MJZH text, ML number, MZZYZDZZBM text, MZZYZD...
SELECT txmzjzjlb.JZLSH FROM hz_info JOIN txmzjzjlb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX WHERE hz_info.RYBH = '16026423' AND hz_info.YLJGDM = '2797205' AND txmzjzjlb.JZKSMC LIKE '%足踝%' UNION SELECT ftxmzjzjlb.JZLSH FROM hz_info JOIN ftxmzjzjlb ON hz_info.YLJG...
css
CREATE TABLE table_70633 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which opponent has a record of 44-28?
SELECT "Opponent" FROM table_70633 WHERE "Record" = '44-28'
wikisql
CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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 te...
SELECT AVG(jyjgzbb.JCZBJGDL), MIN(jyjgzbb.JCZBJGDL), MAX(jyjgzbb.JCZBJGDL) FROM mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN jybgb_jyjgzbb ON mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jybgb_jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH AND jybgb_jyjgzbb.JYZBLSH = jyjgzbb.JY...
css
CREATE TABLE table_23008 ( "Team" text, "Games" real, "Wins" real, "Losses" real, "Ties" real, "Win Pct." text, "Playoff berths" real, "Division titles" real, "Postseason record" text, "Super Bowl record" text ) -- Using valid SQLite, answer the following questions for the tabl...
SELECT "Division titles" FROM table_23008 WHERE "Win Pct." = '.558'
wikisql
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 ) ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.short_title = "Sm bowel endoscopy NEC"
mimicsql_data
CREATE TABLE table_203_179 ( id number, "goal" number, "date" text, "venue" text, "opponent" text, "score" text, "result" text, "competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the next opponent after germany in 2002 ...
SELECT "opponent" FROM table_203_179 WHERE "date" > (SELECT "date" FROM table_203_179 WHERE "opponent" = 'germany') ORDER BY "date" LIMIT 1
squall
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 ) -- Using valid SQLite, answer the following questions for the...
SELECT T2.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name
nvbench
CREATE TABLE table_26860595_2 ( texture___gt__s_ VARCHAR, tdp__watts__gpu_only VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many texture (gt/s) the card has if the tdp (watts) GPU only is 18?
SELECT COUNT(texture___gt__s_) FROM table_26860595_2 WHERE tdp__watts__gpu_only = "18"
sql_create_context
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE cost ( c...
SELECT allergy.allergyname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-29334' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient...
eicu
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 ...
SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN zyjybgb 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 = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB AND zyjybgb.YLJGDM = jyjgzb...
css
CREATE TABLE table_37887 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Visitor when the home was toronto maple leafs and the score was 4 1?
SELECT "Visitor" FROM table_37887 WHERE "Home" = 'toronto maple leafs' AND "Score" = '4–1'
wikisql
CREATE TABLE table_69297 ( "Island" text, "Group" text, "Area ( ha )" text, "Population" text, "Height (m)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Population of the group that has a Height (m) of 15 and an Area (ha) of 00017 17?
SELECT "Population" FROM table_69297 WHERE "Height (m)" = '15' AND "Area ( ha )" = '00017 17'
wikisql
CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuo...
SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 5553) ORDER BY prescriptions.startdate DESC LIMIT 1
mimic_iii
CREATE TABLE table_16876 ( "Yard Name" text, "Location (city, state)" text, "1st Ship Delivery Date" text, "Ship Types Delivered" text, "Total Number of Ways" text, "total vessels built" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was th...
SELECT "1st Ship Delivery Date" FROM table_16876 WHERE "Ship Types Delivered" = 'S2 (LST) type, S2 (frigate) type, C1-M type'
wikisql
CREATE TABLE table_74277 ( "Year" real, "FBS Opponent" text, "Result" text, "Opponents Conference" text, "Opponents Head Coach" text, "Coastal Carolina Head Coach" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many head coaches did Kent sta...
SELECT COUNT("Opponents Head Coach") FROM table_74277 WHERE "FBS Opponent" = 'Kent State Golden Flashes'
wikisql
CREATE TABLE table_65509 ( "Club" text, "League/Division" text, "Home Ground" text, "Location" text, "Position in 2012-13" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What League/Division has a Location of n/a?
SELECT "League/Division" FROM table_65509 WHERE "Location" = 'n/a'
wikisql
CREATE TABLE table_dev_61 ( "id" int, "pregnancy_or_lactation" bool, "allergy_to_gadolinium" bool, "renal_disease" bool, "creatinine_clearance_cl" float, "cardiogenic_shock" bool, "hypertension" bool, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables ...
SELECT * FROM table_dev_61 WHERE hypertension = 1
criteria2sql
CREATE TABLE table_66707 ( "Year" text, "Births (000s)" real, "Deaths" real, "Natural Growth" real, "Total Fertility Rate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the total fertility rate that had a death rate larger than 7.8?
SELECT "Total Fertility Rate" FROM table_66707 WHERE "Deaths" > '7.8'
wikisql
CREATE TABLE jybgb ( YLJGDM text, YLJGDM_MZJZJLB text, YLJGDM_ZYJZJLB text, BGDH text, BGRQ time, JYLX number, JZLSH text, JZLSH_MZJZJLB text, JZLSH_ZYJZJLB text, JZLX number, KSBM text, KSMC text, SQRGH text, SQRXM text, BGRGH text, BGRXM text, SHRGH ...
SELECT * FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.RYBH = '04455332' AND hz_info.YLJGDM = '0621051' AND mzjzjlb.JZZDSM LIKE '%形式%'
css
CREATE TABLE table_33679 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the home team's score at corio oval?
SELECT "Home team score" FROM table_33679 WHERE "Venue" = 'corio oval'
wikisql
CREATE TABLE table_50572 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" text, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the To Par when the finish was t16 and the player was Julius Boros?
SELECT "To par" FROM table_50572 WHERE "Finish" = 't16' AND "Player" = 'julius boros'
wikisql
CREATE TABLE t_kc21 ( MED_CLINIC_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, COMP_ID text, PERSON_ID text, PERSON_NM text, IDENTITY_CARD text, SOC_SRT_CARD text, PERSON_SEX number, PERSON_AGE number, IN_HOSP_DATE time, OUT_HOSP_DATE time, DIFF_PLACE_FLG numb...
SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '陈宛白' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2000-02-28' AND '2014-04-04'
css
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, ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "ATRIAL SEPTAL DEFECT\MITRAL VALVE REPLACEMENT;REPAIR ATRIAL-SEPTAL DEFECT/SDA" AND procedures.icd9_code = "3613"
mimicsql_data
CREATE TABLE table_name_93 ( runner_s__up VARCHAR, tournament VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the runner-up in the Michelob Light Open at Kingsmill?
SELECT runner_s__up FROM table_name_93 WHERE tournament = "michelob light open at kingsmill"
sql_create_context
CREATE TABLE participates_in ( stuid number, actid number ) CREATE TABLE activity ( actid number, activity_name text ) CREATE TABLE faculty ( facid number, lname text, fname text, rank text, sex text, phone number, room text, building text ) CREATE TABLE student ( ...
SELECT T1.activity_name FROM activity AS T1 JOIN faculty_participates_in AS T2 ON T1.actid = T2.actid GROUP BY T1.actid ORDER BY COUNT(*) DESC LIMIT 1
spider
CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, good_feedback int, tough_tests int, heavy_papers int, cares_for_students int, heavy_assignments ...
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Neill Mohammad%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id ...
advising
CREATE TABLE table_32907 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the away team at the game where Footscra...
SELECT "Away team" FROM table_32907 WHERE "Crowd" > '20,200' AND "Home team" = 'footscray'
wikisql
CREATE TABLE table_2598 ( "Market Rank & City of license /Market" text, "Station" text, "Channel TV / DT" text, "Owned since" real, "Affiliation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What market rank and city had the station KABC-TV?
SELECT "Market Rank & City of license /Market" FROM table_2598 WHERE "Station" = 'KABC-TV'
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...
SELECT COUNT(DISTINCT COURSE_PREREQUISITEalias0.course_id), COURSEalias0.department, COURSEalias0.name, COURSEalias0.number FROM (SELECT course_id FROM student_record WHERE earn_credit = 'Y' AND student_id = 1) AS DERIVED_TABLEalias0, course AS COURSEalias0, course AS COURSEalias1, course_offering AS COURSE_OFFERINGali...
advising
CREATE TABLE table_name_38 ( rank VARCHAR, silver VARCHAR, bronze VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many teams won more than 2 silver medals and fewer than 2 Bronze medals?
SELECT COUNT(rank) FROM table_name_38 WHERE silver > 2 AND bronze < 2
sql_create_context
CREATE TABLE table_1598533_8 ( annual_change__percentage_of_gdp__2012_ VARCHAR, gdp__percentage_of_eu__2012_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the annual change of GDP with a 20.5% GDP of EU in 2012?
SELECT annual_change__percentage_of_gdp__2012_ FROM table_1598533_8 WHERE gdp__percentage_of_eu__2012_ = "20.5%"
sql_create_context
CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsysto...
SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-48105')) AND intakeoutput.cellpath LIKE '%intake%' AND D...
eicu
CREATE TABLE table_name_99 ( tournament VARCHAR, opponent_in_the_final VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What tournament has Samantha Stosur as the opponent in the final?
SELECT tournament FROM table_name_99 WHERE opponent_in_the_final = "samantha stosur"
sql_create_context
CREATE TABLE table_59785 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Sweden's lowest score?
SELECT MIN("Score") FROM table_59785 WHERE "Country" = 'sweden'
wikisql
CREATE TABLE table_name_9 ( points INTEGER, year VARCHAR, engine VARCHAR, entrant VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the greatest point of an Entrant of connaught engineering alta straight-4 engine before 1957
SELECT MAX(points) FROM table_name_9 WHERE engine = "alta straight-4" AND entrant = "connaught engineering" AND year < 1957
sql_create_context
CREATE TABLE table_78940 ( "City" text, "Country" text, "Airport" text, "IATA" text, "ICAO" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is City of Sandefjord in Norway's IATA?
SELECT "IATA" FROM table_78940 WHERE "Country" = 'norway' AND "City" = 'sandefjord'
wikisql
CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE Users ( Id num...
SELECT Id, CreationDate, AcceptedAnswerId FROM Posts AS P WHERE (Title LIKE '%androidthings%' OR Title LIKE '%android-things%' OR Title LIKE '%AndroidThings%')
sede
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...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "REHAB/DISTINCT PART HOSP" AND diagnoses.short_title = "Septic shock"
mimicsql_data
CREATE TABLE table_name_43 ( season INTEGER, households_viewers__in_millions_ VARCHAR, viewer_rank___number_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which season had less than 25.4 viewers and had a viewer rank of #6?
SELECT MIN(season) FROM table_name_43 WHERE households_viewers__in_millions_ < 25.4 AND viewer_rank___number_ = "#6"
sql_create_context
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...
SELECT MIN(demographic.age) FROM demographic WHERE demographic.insurance = "Medicaid" AND demographic.diagnosis = "CEREBRAL ANEURYSM/SDA"
mimicsql_data
CREATE TABLE table_name_2 ( b_score INTEGER, total VARCHAR, a_score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which B Score has a Total larger than 15.325, and an A Score smaller than 6.4?
SELECT SUM(b_score) FROM table_name_2 WHERE total > 15.325 AND a_score < 6.4
sql_create_context
CREATE TABLE table_13125 ( "7:30 am" text, "8:00 am" text, "9:00 am" text, "11:00 am" text, "noon" text, "12:30 pm" text, "1:00 pm" text, "1:30 pm" text, "2:00 pm" text, "3:30 pm" text, "4:00 pm" text, "4:30 pm" text, "5:00 pm" text, "6:30 pm" text ) -- Using va...
SELECT "1:30 pm" FROM table_13125 WHERE "8:00 am" = 'the today show with katie couric & matt lauer'
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 demographic ( subject_id text, hadm_id t...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "30" AND procedures.icd9_code = "3771"
mimicsql_data
CREATE TABLE table_name_61 ( opponent VARCHAR, week VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want to know the opponent that ha a week of 3
SELECT opponent FROM table_name_61 WHERE week = "3"
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 PostsWithDeleted ( Id number, PostTypeId number, ...
WITH recent_cte AS (SELECT UserId AS uid, MAX(Id) AS MaxId FROM Comments GROUP BY UserId) SELECT uid AS "user_link", c.CreationDate, MaxId AS "comment_link", c.PostId AS "post_link", c.Text FROM recent_cte INNER JOIN Comments AS c ON MaxId = c.Id ORDER BY c.CreationDate DESC
sede
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 cost ( costid num...
SELECT t3.labname FROM (SELECT t2.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'necrotizing fasciitis - post-op' AND DATETIME(diagno...
eicu
CREATE TABLE table_name_85 ( lane INTEGER, country VARCHAR, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest lane for Brazil, ranked less than 8?
SELECT MAX(lane) FROM table_name_85 WHERE country = "brazil" AND rank < 8
sql_create_context
CREATE TABLE player ( Player_name VARCHAR, Votes VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the player with the largest number of votes?
SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 1
sql_create_context
CREATE TABLE table_name_56 ( constellation VARCHAR, declination___j2000__ VARCHAR, right_ascension___j2000__ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want the constellation for declination for 45 and right ascension of 07h58m
SELECT constellation FROM table_name_56 WHERE declination___j2000__ = "°45′" AND right_ascension___j2000__ = "07h58m"
sql_create_context
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 ...
SELECT mzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN person_info_hz_info ON person_info.RYBH = person_info_hz_info.RYBH AND 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 pers...
css
CREATE TABLE Skills_Required_To_Fix ( part_fault_id INTEGER, skill_id INTEGER ) CREATE TABLE Assets ( asset_id INTEGER, maintenance_contract_id INTEGER, supplier_company_id INTEGER, asset_details VARCHAR(255), asset_make VARCHAR(20), asset_model VARCHAR(20), asset_acquired_date DATE...
SELECT skill_description, COUNT(skill_description) FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id GROUP BY other_details, skill_description ORDER BY COUNT(skill_description) DESC
nvbench
CREATE TABLE table_name_64 ( location VARCHAR, county VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the location for the country of platte?
SELECT location FROM table_name_64 WHERE county = "platte"
sql_create_context
CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE airport ( airport_code varchar, airport_name text, airport_location ...
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 = 21 AND date_day.month_number = 2 AN...
atis
CREATE TABLE table_train_180 ( "id" int, "gender" string, "pregnancy_or_lactation" bool, "systolic_blood_pressure_sbp" int, "hemoglobin_a1c_hba1c" float, "diabetic" string, "post_load_glucose" int, "diastolic_blood_pressure_dbp" int, "impaired_glucose_tolerance" bool, "fasting_gl...
SELECT * FROM table_train_180 WHERE age >= 18 AND diabetic = 'i'
criteria2sql
CREATE TABLE table_train_95 ( "id" int, "serum_potassium" float, "mini_mental_state_examination_mmse" int, "systolic_blood_pressure_sbp" int, "resting_heart_rate" int, "diastolic_blood_pressure_dbp" int, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables p...
SELECT * FROM table_train_95 WHERE resting_heart_rate <= 50 OR resting_heart_rate >= 100
criteria2sql
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = "Government" AND lab.label = "Blasts"
mimicsql_data
CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, Bo...
SELECT COUNT(*) FROM (SELECT DISTINCT OwnerUserId FROM Posts WHERE OwnerUserId > 0 GROUP BY OwnerUserId, YEAR(CreationDate) HAVING COUNT(*) >= 100) AS f
sede
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...
SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course_offering.start_time >= '12:00:00' AND course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 101 AND semester.semester = 'Spring' AND semester.semester_id = course_offering.semester AND semester.year = 2018
advising
CREATE TABLE table_204_301 ( id number, "nationality" text, "name" text, "term as a deputy judge" text, "reason for termination" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of deputy judges that were post abolished ?
SELECT COUNT("name") FROM table_204_301 WHERE "reason for termination" = 'post abolished'
squall
CREATE TABLE table_name_32 ( lead_supporting_vocal VARCHAR, time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the lead supporting vocalist on the song that was 4:54 long?
SELECT lead_supporting_vocal FROM table_name_32 WHERE time = "4:54"
sql_create_context
CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) 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 ...
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 = 'DENVER' AND flight.departure_time > 1500 AND flight.to_airport = AIRPORT_SERVICE_1.airpor...
atis
CREATE TABLE table_13114949_3 ( final_rank VARCHAR, event VARCHAR, competition VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the final-rank for the uneven bars and the competition is u.s. championships?
SELECT final_rank FROM table_13114949_3 WHERE event = "Uneven Bars" AND competition = "U.S. Championships"
sql_create_context
CREATE TABLE t_kc24 ( MED_SAFE_PAY_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, MED_CLINIC_ID text, REF_SLT_FLG number, CLINIC_SLT_DATE time, COMP_ID text, PERSON_ID text, FLX_MED_ORG_ID text, INSU_TYPE text, MED_AMOUT number, PER_ACC_PAY number, OVE_PAY numb...
SELECT COUNT(*) FROM t_kc21 WHERE PERSON_NM = '杨艳芳' AND IN_HOSP_DATE BETWEEN '2017-04-12' AND '2018-08-25' AND CLINIC_TYPE = '住院'
css
CREATE TABLE qtb ( 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...
SELECT COUNT(*) FROM (SELECT qtb.MED_ORG_DEPT_CD FROM qtb JOIN t_kc24 ON qtb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE qtb.MED_SER_ORG_NO = '8898248' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2011-11-20' AND '2014-03-05' GROUP BY qtb.MED_ORG_DEPT_CD HAVING SUM(t_kc24.MED_AMOUT) > 5327.65 UNION SELECT gyb.MED_ORG_DEPT_CD FRO...
css
CREATE TABLE table_21627 ( "Series #" real, "Season #" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the original air date of the episode directed by Terrenc...
SELECT "Original air date" FROM table_21627 WHERE "Directed by" = 'Terrence Nightingall'
wikisql
CREATE TABLE table_47763 ( "Official Name" text, "Status" text, "Area km 2" real, "Population" real, "Census Ranking" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Status of the Paris with a Census Ranking of 3,474 of 5,008?
SELECT "Status" FROM table_47763 WHERE "Census Ranking" = '3,474 of 5,008'
wikisql
CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit te...
SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'retention urine nos')) AND DATETIME(cost.chargetime, 'start of ...
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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) C...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.days_stay > "2"
mimicsql_data
CREATE TABLE table_23308178_5 ( score VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many different scores are there for the game with 10-3-4 record?
SELECT COUNT(score) FROM table_23308178_5 WHERE record = "10-3-4"
sql_create_context
CREATE TABLE table_75820 ( "Player" text, "FG Pct" real, "3FGA" real, "3FGM" real, "3FG Pct" real, "FT Pct" real, "Off Reb" real, "Def Reb" real, "Total Reb" real, "Asst" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the...
SELECT COUNT("Off Reb") FROM table_75820 WHERE "3FGA" > '124'
wikisql
CREATE TABLE mzjzjlb ( YLJGDM text, JZLSH text, KH text, KLX number, MJZH text, HZXM text, NLS number, NLY number, ZSEBZ number, JZZTDM number, JZZTMC text, JZJSSJ time, TXBZ number, ZZBZ number, WDBZ number, JZKSBM text, JZKSMC text, JZKSRQ time, ...
SELECT COUNT(*) FROM mzjzjlb WHERE YLJGDM = '5126566' AND JZKSRQ BETWEEN '2003-10-14' AND '2014-10-02' AND WDBZ > 0
css
CREATE TABLE table_41242 ( "Name" text, "Novelty" text, "Status" text, "Authors" text, "Unit" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What unit has gen et sp nov as the novelty?
SELECT "Unit" FROM table_41242 WHERE "Novelty" = 'gen et sp nov'
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, ...
SELECT prescriptions.formulary_drug_cd FROM prescriptions WHERE prescriptions.drug = "D5NS"
mimicsql_data
CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int,...
SELECT DISTINCT COURSE_0.department, COURSE_0.name, COURSE_0.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND NOT COURSE_0.course_id IN (SELECT STUDENT_RECORDalias0.course_id FROM student_record AS STUDENT_RECORDalias0 WHERE STUDENT...
advising
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartr...
SELECT (SELECT vitalperiodic.respiration FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-18575') AND patient.unitdischargetime IS NU...
eicu
CREATE TABLE table_name_45 ( opponent VARCHAR, round VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent with a record of 14-4-1 and has a round of 1?
SELECT opponent FROM table_name_45 WHERE round = "1" AND record = "14-4-1"
sql_create_context
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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2103" AND prescriptions.drug_type = "ADDITIVE"
mimicsql_data
CREATE TABLE table_name_6 ( away_team VARCHAR, home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Away Team Score of the Hawthorn Home Team?
SELECT away_team AS score FROM table_name_6 WHERE home_team = "hawthorn"
sql_create_context
CREATE TABLE table_1963459_2 ( year INTEGER, average_speed__mph_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was the average speed 145.24
SELECT MAX(year) FROM table_1963459_2 WHERE average_speed__mph_ = "145.24"
sql_create_context
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, ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2133" AND diagnoses.short_title = "Ulcer other part of foot"
mimicsql_data
CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number...
SELECT STRFTIME('%j', admissions.dischtime) - STRFTIME('%j', admissions.admittime) FROM admissions WHERE admissions.subject_id = 15135 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1
mimic_iii
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, ...
SELECT t_kc21.IN_DIAG_DIS_CD, t_kc21.IN_DIAG_DIS_NM FROM t_kc21 WHERE t_kc21.PERSON_NM = '窦秀隽' AND t_kc21.MED_CLINIC_ID IN (SELECT t_kc21_t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT >= 5504.26)
css
CREATE TABLE member ( Name VARCHAR, Member_ID VARCHAR ) CREATE TABLE member_attendance ( Name VARCHAR, Member_ID VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the names of members who did not attend any performance.
SELECT Name FROM member WHERE NOT Member_ID IN (SELECT Member_ID FROM member_attendance)
sql_create_context
CREATE TABLE table_75230 ( "Season" text, "Oberliga Bayern" text, "Oberliga Hessen" text, "Oberliga Baden-W\u00fcrttemberg" text, "Oberliga S\u00fcdwest" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Oberliga Bayern has a Season of 1981-82?
SELECT "Oberliga Bayern" FROM table_75230 WHERE "Season" = '1981-82'
wikisql
CREATE TABLE table_68619 ( "Date" text, "Location" text, "Nature of incident" text, "Circumstances" text, "Casualties" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What happened on 2009-03-14?
SELECT "Circumstances" FROM table_68619 WHERE "Date" = '2009-03-14'
wikisql
CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, ...
SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 42473) AND DATETIME(prescriptions.startdate, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') EXCEPT SELECT prescriptions.drug FROM prescriptions WHERE...
mimic_iii
CREATE TABLE savings ( custid VARCHAR, balance VARCHAR ) CREATE TABLE checking ( custid VARCHAR, balance VARCHAR ) CREATE TABLE accounts ( name VARCHAR, custid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the name of account that has...
SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance LIMIT 1
sql_create_context
CREATE TABLE table_79899 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the record at the game against the Indians with a loss of Camacho (1-4)?
SELECT "Record" FROM table_79899 WHERE "Opponent" = 'indians' AND "Loss" = 'camacho (1-4)'
wikisql
CREATE TABLE table_name_11 ( top_25 INTEGER, events VARCHAR, top_10 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest top-25 of the tournament with less than 22 events and more than 1 top-10?
SELECT MAX(top_25) FROM table_name_11 WHERE events < 22 AND top_10 > 1
sql_create_context
CREATE TABLE table_name_79 ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is 2008 when 2012 is 3r and 2009 is 2r?
SELECT 2008 FROM table_name_79 WHERE 2012 = "3r" AND 2009 = "2r"
sql_create_context
CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE time_interval ( period text...
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 ((date_day.day_number = 26 AND date_day.month_number = 7 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time...
atis
CREATE TABLE constructorResults ( constructorResultsId INTEGER, raceId INTEGER, constructorId INTEGER, points REAL, status TEXT ) CREATE TABLE qualifying ( qualifyId INTEGER, raceId INTEGER, driverId INTEGER, constructorId INTEGER, number INTEGER, position INTEGER, q1 TE...
SELECT name, COUNT(name) FROM races WHERE year BETWEEN 2009 AND 2011 GROUP BY name ORDER BY COUNT(name) DESC
nvbench
CREATE TABLE table_22752982_5 ( runner_up_a VARCHAR, winner VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the runner-up (a) if K. P. Ramalingam won the election?
SELECT runner_up_a FROM table_22752982_5 WHERE winner = "K. P. Ramalingam"
sql_create_context
CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE prescriptions ( row_id number, subject_id number, h...
SELECT chartevents.charttime 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 = 3267) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.itemid IN (S...
mimic_iii
CREATE TABLE table_62334 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what Date is Tie no 19?
SELECT "Date" FROM table_62334 WHERE "Tie no" = '19'
wikisql
CREATE TABLE table_203_812 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many silver medals did turkey win ?
SELECT "silver" FROM table_203_812 WHERE "nation" = 'turkey'
squall
CREATE TABLE table_36212 ( "Name" text, "Pennant number" text, "Laid down" text, "Launched" text, "Date of commission" text, "Homeport (as of July 2013)" text, "Planned decommission (as announced in 2009)" text ) -- Using valid SQLite, answer the following questions for the tables provided...
SELECT "Launched" FROM table_36212 WHERE "Homeport (as of July 2013)" = 'sold to chile' AND "Pennant number" = 'f80'
wikisql
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...
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE (course.number = 398 OR course.number = 498 OR course.number = 598) AND course.department = 'E...
advising