text
stringlengths
197
8.39k
### Context: CREATE TABLE table_35856 ( "Season" real, "Overall" text, "Slalom" text, "Giant Slalom" text, "Super G" text, "Combined" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which combined score has an overall of 8? ### Query: SELECT "Co...
### Context: CREATE TABLE player ( Player_ID int, name text, Position text, Club_ID int, Apps real, Tries real, Goals text, Points real ) CREATE TABLE club_rank ( Rank real, Club_ID int, Gold real, Silver real, Bronze real, Total real ) CREATE TABLE club ( C...
### Context: CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) ...
### Context: CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admissi...
### Context: CREATE TABLE t_kc22 ( AMOUNT number, CHA_ITEM_LEV number, DATA_ID text, DIRE_TYPE number, DOSE_FORM text, DOSE_UNIT text, EACH_DOSAGE text, EXP_OCC_DATE time, FLX_MED_ORG_ID text, FXBZ number, HOSP_DOC_CD text, HOSP_DOC_NM text, MED_DIRE_CD text, MED_...
### Context: CREATE TABLE table_name_84 ( area_km_2 INTEGER, population VARCHAR, official_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest area for locations named Centreville having populations over 532? ### Query: SELECT MAX(are...
### Context: CREATE TABLE status ( station_id INTEGER, bikes_available INTEGER, docks_available INTEGER, time TEXT ) CREATE TABLE weather ( date TEXT, max_temperature_f INTEGER, mean_temperature_f INTEGER, min_temperature_f INTEGER, max_dew_point_f INTEGER, mean_dew_point_f INTE...
### Context: CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration n...
### Context: CREATE TABLE table_204_711 ( id number, "dance" text, "best dancer(s)" text, "best score" number, "worst dancer(s)" text, "worst score" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which is the last dance on the chart ### Query...
### Context: CREATE TABLE person_info_hz_info ( RYBH text, KH number, KLX number, YLJGDM number ) CREATE TABLE person_info ( CSD text, CSRQ time, GJDM text, GJMC text, JGDM text, JGMC text, MZDM text, MZMC text, RYBH text, XBDM number, XBMC text, XLDM tex...
### Context: CREATE TABLE table_57035 ( "Date" text, "Tournament" text, "Location" text, "Purse( $ )" real, "Winner" text, "Score" text, "1st Prize( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the winner for Virginia? ### Qu...
### Context: CREATE TABLE table_6148 ( "Year" real, "Finish position" text, "1st day" text, "2nd day" text, "3rd day" text, "4th Day" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 3rd day that has bumped by clare as the 4th day? ##...
### Context: CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admissi...
### Context: CREATE TABLE device ( Software_Platform VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Please show different software platforms and the corresponding number of devices using each. ### Query: SELECT Software_Platform, COUNT(*) FROM device GROUP BY S...
### Context: CREATE TABLE table_name_62 ( a330 VARCHAR, a310 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the A330 and the A310 wide? ### Query: SELECT a330 FROM table_name_62 WHERE a310 = "wide"
### Context: CREATE TABLE table_11504 ( "Rank" real, "Player" text, "Country" text, "Earnings ( $ )" real, "Events" real, "Wins" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average events that Al Geiberger played with wins smaller...
### Context: CREATE TABLE table_name_95 ( founded INTEGER, joined_prsl VARCHAR, home_city VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When is the club founded that founed prsl in 2008 and the home city is carolina 1? ### Query: SELECT MAX(founded) FR...
### Context: CREATE TABLE customers_cards ( card_id number, customer_id number, card_type_code text, card_number text, date_valid_from time, date_valid_to time, other_card_details text ) CREATE TABLE customers ( customer_id number, customer_first_name text, customer_last_name te...
### Context: CREATE TABLE table_name_98 ( event VARCHAR, method VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What event did Mikhail Avetisyan win by method of DQ (eye gouging)? ### Query: SELECT event FROM table_name_98 WHERE method = "dq (eye gouging)"
### Context: CREATE TABLE table_28019988_5 ( series__number INTEGER, production_code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What episode number in the series had a production code of bdf405? ### Query: SELECT MIN(series__number) FROM table_28019988_...
### Context: CREATE TABLE company ( Company_ID real, Name text, Headquarters text, Industry text, Sales_in_Billion real, Profits_in_Billion real, Assets_in_Billion real, Market_Value_in_Billion real ) CREATE TABLE employment ( Company_ID int, People_ID int, Year_working int ...
### Context: CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, int...
### Context: CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) 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_fee...
### 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, ...
### Context: CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text, person_info_CSD text, person_info_CSRQ time, person_info_GJDM text, person_info_GJMC text, person_info_JGDM text, person_info_JGMC text, person_info_MZDM text, person_info_MZMC text, pers...
### Context: CREATE TABLE table_name_19 ( venue VARCHAR, host VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the venue at Stanford University? ### Query: SELECT venue FROM table_name_19 WHERE host = "stanford university"
### Context: CREATE TABLE t_kc24 ( ACCOUNT_DASH_DATE time, ACCOUNT_DASH_FLG number, CASH_PAY number, CIVIL_SUBSIDY number, CKC102 number, CLINIC_ID text, CLINIC_SLT_DATE time, COMP_ID text, COM_ACC_PAY number, COM_PAY number, DATA_ID text, ENT_ACC_PAY number, ENT_PAY ...
### Context: CREATE TABLE table_name_45 ( byes INTEGER, wins VARCHAR, against VARCHAR, club VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Byes has an Against smaller than 1297, and a Club of avoca, and Wins larger than 12? ### Query: SELECT A...
### Context: CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text ) CREATE TABLE universi...
### Context: CREATE TABLE table_74617 ( "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. -- When was the game where the away te...
### Context: CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admissi...
### Context: CREATE TABLE table_2289 ( "Type" text, "Beam height (mm)" real, "Flange width (mm)" real, "Web thickness (mm)" text, "Flange thickness (mm)" text, "Weight (kg/m)" text, "Cross-section area (cm 2 )" text, "Moment of inertia in torsion (J) (cm 4 )" text ) -- Using valid SQLi...
### Context: CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALA...
### Context: CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time...
### Context: CREATE TABLE table_22496344_1 ( weight INTEGER, _number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the weight when 20 is the number? ### Query: SELECT MAX(weight) FROM table_22496344_1 WHERE _number = 20
### Context: CREATE TABLE t_kc21_t_kc22 ( MED_CLINIC_ID text, MED_EXP_DET_ID number ) 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 ...
### Context: CREATE TABLE table_name_67 ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 2007 value with 2r in 2011 and 2r in 2008? ### Query: SELECT 2007 FROM table_name_67 WHERE 2011 = "2r" AND 2008 = "2r"
### Context: CREATE TABLE table_203_631 ( id number, "year" number, "name of show" text, "episodes" text, "other guests" text, "winner(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many of shows had at least 5 episodes ? ### Query: SEL...
### Context: CREATE TABLE table_name_29 ( time VARCHAR, song_title VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the time from the song called Treat Me Nice? ### Query: SELECT time FROM table_name_29 WHERE song_title = "treat me nice"
### Context: CREATE TABLE table_11161 ( "Date" text, "Venue" text, "Result" text, "Win/ Loss/ Draw" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which competition had a result of 1-0? ### Query: SELECT "Competition" FROM table...
### Context: CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE admissions ( row_id number, subject_i...
### 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 Votes ( Id number, PostId number, ...
### Context: CREATE TABLE table_name_41 ( year INTEGER, mixed_doubles VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average year with alfredo salazar fina salazar in mixed doubles? ### Query: SELECT AVG(year) FROM table_name_41 WHERE mixed_doub...
### Context: 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, rel...
### Context: CREATE TABLE staff ( gender VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which gender makes up the majority of the staff? ### Query: SELECT gender FROM staff GROUP BY gender ORDER BY COUNT(*) DESC LIMIT 1
### Context: CREATE TABLE table_16855 ( "Player" text, "No." real, "Nationality" text, "Position" text, "Years for Jazz" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position did the player from maynard evans hs p...
### Context: CREATE TABLE table_10596 ( "Location" text, "Venue" text, "Promotion" text, "Event" text, "Inductee(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the location when the event was November reign? ### Query: SELECT "Location"...
### 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, ...
### Context: CREATE TABLE table_13723 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the week when the result was W 38-24 and attendance was less than 43,449? ### Query...
### Context: CREATE TABLE body_builder ( Body_Builder_ID int, People_ID int, Snatch real, Clean_Jerk real, Total real ) CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, Birth_Date text, Birth_Place text ) -- Using valid SQLite, answer the following...
### Context: CREATE TABLE table_name_89 ( top_10 INTEGER, cuts_made VARCHAR, events VARCHAR, top_5 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the best top-10 result when events are fewer than 39, top-5 is 1 and more than 5 cuts are made? ...
### Context: CREATE TABLE table_41988 ( "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. -- What date has 6 as the tie no.? ### Query: SELECT "Date" FROM table_41988 WHERE "Tie no" ...
### Context: CREATE TABLE table_48597 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the resolution of the fight w...
### Context: CREATE TABLE table_20422 ( "Episode Number" real, "Air Date" text, "Guest Host" text, "Musical Guest (Song performed)" text, "Who knows the most about the guest host? panelists" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the...
### Context: CREATE TABLE table_104 ( "Name of lava dome" text, "Country" text, "Volcanic area" text, "Composition" text, "Last eruption or growth episode" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the composition at Valles lava dome? ...
### Context: CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) C...
### Context: CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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, JCZB...
### Context: CREATE TABLE table_1939367_1 ( arabs_2011 VARCHAR, province VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the province is Nunavut, what is the Arabs 2011 amount? ### Query: SELECT arabs_2011 FROM table_1939367_1 WHERE province = "Nunavut"
### Context: CREATE TABLE table_name_32 ( name VARCHAR, caps VARCHAR, rank VARCHAR, confederation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which UEFA confederation member had a rank more than 17 and caps of 114? ### Query: SELECT name FROM tab...
### Context: CREATE TABLE table_74641 ( "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 playing the h...
### Context: CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Locati...
### Context: CREATE TABLE table_1434788_5 ( candidates VARCHAR, incumbent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were the candidates in the election where John Beatty was the incumbent? ### Query: SELECT candidates FROM table_1434788_5 WHERE inc...
### Context: 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 ques...
### Context: CREATE TABLE PHOTOS ( Tourist_Attraction_ID VARCHAR, Name VARCHAR ) CREATE TABLE TOURIST_ATTRACTIONS ( Name VARCHAR, Tourist_Attraction_ID VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the tourist attraction that is...
### Context: CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE Tags ( I...
### Context: 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_P...
### Context: CREATE TABLE table_71063 ( "Sydney" text, "Melbourne" text, "Perth" text, "Adelaide" text, "Gold Coast" text, "Auckland" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result for Gold Coast when Adelaide and Perth are ye...
### Context: CREATE TABLE table_name_83 ( license VARCHAR, system VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which License has a System of amiga, and a Name of pocketuae? ### Query: SELECT license FROM table_name_83 WHERE system = "ami...
### Context: CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects...
### 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...
### Context: CREATE TABLE table_name_24 ( package_option VARCHAR, country VARCHAR, language VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the package/option for Italy when the language is italian? ### Query: SELECT package_option FROM table_nam...
### Context: CREATE TABLE table_name_91 ( population INTEGER, town_status VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest population of a city that has a town status of 2010? ### Query: SELECT MAX(population) FROM table_name_91 WHERE town...
### Context: CREATE TABLE table_76729 ( "Round" real, "Pick" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Picks have an Overall smaller than 304, and a Position of g, and a...
### Context: CREATE TABLE table_78673 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was Australia's score when Peter Lonard played? ### Query: SELECT "Score" FROM table_786...
### Context: CREATE TABLE table_14342480_5 ( field_goals VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Na,e the number of field goals for right tackle ### Query: SELECT COUNT(field_goals) FROM table_14342480_5 WHERE position = "Right tack...
### Context: CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, ha...
### Context: CREATE TABLE table_9856 ( "Rank" real, "Venue name" text, "Highest attendance" text, "Location" text, "Current seating capacity" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Rank, when Location is Kinshasa, DR Cong...
### Context: CREATE TABLE table_15187735_21 ( segment_c VARCHAR, series_ep VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the titles of segment c for series episode is 21-08? ### Query: SELECT segment_c FROM table_15187735_21 WHERE series_ep = "21-...
### Context: CREATE TABLE table_43549 ( "Official #" real, "TF1 #" real, "French title" text, "English title" text, "Air date (France)" text, "Original Beechwood Bunny Tale / Source material" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What i...
### Context: CREATE TABLE table_30293 ( "Vessel" text, "Built" real, "Max Speed" text, "Length" text, "Breadth" text, "Flag" text, "Propulsion" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the max speed when the vessel is gallion? ...
### Context: CREATE TABLE table_26387382_1 ( power__mw·hr_yr_ VARCHAR, location__county_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What locations are considered centre? ### Query: SELECT power__mw·hr_yr_ FROM table_26387382_1 WHERE location__county_ = ...
### Context: CREATE TABLE table_635 ( "W.H. Archer" text, "J.E. Armstrong" text, "H.L. Birkett" text, "F.A. Brill" text, "H.T. Brewer" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is J.E. Armstrong when W.H. Archer is D.M. Lawson? ### Query: ...
### Context: CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE fare_basis ( fare_basis_code text, booking_class text, class_type text, premium text, economy text, discounted...
### Context: CREATE TABLE table_17801022_1 ( manufacturer VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What manufacturer won the race on November 2? ### Query: SELECT manufacturer FROM table_17801022_1 WHERE date = "November 2"
### Context: CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug...
### Context: CREATE TABLE table_10568 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many times was the total more than 1, the nation was east germany and silve...
### Context: CREATE TABLE table_name_53 ( attempts INTEGER, net_yards VARCHAR, touchdowns VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the highest attempts that have net yards less than 631, and 2 for the touchdowns? ### Query: SELECT MAX(att...
### Context: CREATE TABLE table_6170 ( "Year" real, "Total Convictions" real, "Homicide (Art. 111,112,113,116 StGB)" real, "Serious Bodily Injury (Art. 122 StGB)" real, "Minor Bodily Injury (Art. 123 StGB)" real, "Sexual Contact with Children (Art. 187 StGB)" real, "Rape (Art. 190 StGB)" rea...
### Context: CREATE TABLE table_26996293_1 ( college VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What college did Jim Bennett attend? ### Query: SELECT college FROM table_26996293_1 WHERE player = "Jim Bennett"
### Context: CREATE TABLE table_53665 ( "English" text, "Scots" text, "West Frisian" text, "Afrikaans" text, "Dutch" text, "Dutch ( Limburgish )" text, "Low German" text, "Low German ( Groningen )" text, "Middle German ( Luxemburgish )" text, "German" text, "Yiddish" text, ...
### Context: CREATE TABLE status ( station_id INTEGER, bikes_available INTEGER, docks_available INTEGER, time TEXT ) CREATE TABLE station ( id INTEGER, name TEXT, lat NUMERIC, long NUMERIC, dock_count INTEGER, city TEXT, installation_date TEXT ) CREATE TABLE trip ( id I...
### 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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age tex...
### Context: CREATE TABLE table_6775 ( "Season" text, "Round" text, "Date" text, "Home" text, "Away" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What round had a home of FC augsburg with the result of 3-0? ### Query: SELECT "R...
### Context: CREATE TABLE routes ( rid integer, dst_apid integer, dst_ap varchar(4), src_apid bigint, src_ap varchar(4), alid bigint, airline varchar(4), codeshare text ) CREATE TABLE airlines ( alid integer, name text, iata varchar(2), icao varchar(3), callsign text...
### Context: CREATE TABLE t_kc24 ( ACCOUNT_DASH_DATE time, ACCOUNT_DASH_FLG number, CASH_PAY number, CIVIL_SUBSIDY number, CKC102 number, CLINIC_ID text, CLINIC_SLT_DATE time, COMP_ID text, COM_ACC_PAY number, COM_PAY number, DATA_ID text, ENT_ACC_PAY number, ENT_PAY ...
### Context: CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE lab ( labid n...
### Context: CREATE TABLE table_name_34 ( average VARCHAR, total_points VARCHAR, rank_by_average VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total average with 54 total points and a rank less than 10? ### Query: SELECT COUNT(average) FROM...
### Context: 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 ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gend...
### Context: CREATE TABLE person_info ( CSD text, CSRQ time, GJDM text, GJMC text, JGDM text, JGMC text, MZDM text, MZMC text, RYBH text, XBDM number, XBMC text, XLDM text, XLMC text, XM text, ZYLBDM text, ZYMC text ) CREATE TABLE wdmzjzjlb ( CYBQDM t...
### Context: 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), departure_date date, arrival_date date, price number(7,2), aid number(...