text
stringlengths
197
8.39k
### Context: CREATE TABLE table_name_76 ( score VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Score when the record was 9-3-0? ### Query: SELECT score FROM table_name_76 WHERE record = "9-3-0"
### Context: CREATE TABLE table_15796100_1 ( order__number VARCHAR, theme VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the order number for the theme of Mariah Carey? ### Query: SELECT order__number FROM table_15796100_1 WHERE theme = "Mariah Care...
### Context: CREATE TABLE table_name_68 ( shirt_sponsor VARCHAR, kit_manufacturer VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which shirt sponser has Nike as a kit manufacturer? ### Query: SELECT shirt_sponsor FROM table_name_68 WHERE kit_manufacturer = ...
### Context: CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE ReviewTaskResultTypes ( Id number...
### Context: CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), ...
### 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_t...
### Context: CREATE TABLE gyb ( CLINIC_ID text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURED_STS text, INSU_TYPE...
### 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_CLINIC_ID text, ME...
### Context: CREATE TABLE table_name_73 ( home_team VARCHAR, away_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What home team played against Richmond? ### Query: SELECT home_team FROM table_name_73 WHERE away_team = "richmond"
### 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_d...
### Context: CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE inputevents_cv ( ...
### Context: CREATE TABLE table_62225 ( "Rank" text, "Country" text, "Highest point" text, "Height (m)" real, "Height (ft)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How high is Macedonia's highest point? ### Query: SELECT "Height (ft)" FROM t...
### Context: 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 medicati...
### Context: CREATE TABLE table_20988 ( "Year" real, "Starts" real, "Wins" real, "Top 5" real, "Top 10" real, "Poles" real, "Avg. Start" text, "Avg. Finish" text, "Winnings" text, "Position" text, "Team(s)" text ) -- Using valid SQLite, answer the following questions for th...
### Context: CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_...
### Context: CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careu...
### 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 hz_info ( KH text, ...
### 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 demographic ( subject_id text, ...
### Context: CREATE TABLE table_75819 ( "Date" text, "Opponent" text, "Location" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the date of the game against North Carolina? ### Query: SELECT "Date" FROM ta...
### Context: CREATE TABLE table_67854 ( "Tournament" text, "Wins" real, "Top-10" real, "Events" real, "Cuts made" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest wins a tournament with 3 cuts and more than 4 events has? ### Query...
### Context: CREATE TABLE table_49974 ( "Name" text, "Heir of" text, "Birth" text, "Ceased to be Duke of Girona" text, "Death" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE DEATH WHEN BIRTH DATE IS 2 AUGUST 1424? ### Query: SELECT "Dea...
### Context: CREATE TABLE table_name_12 ( losses VARCHAR, team VARCHAR, goals_for VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many times has the Cornwall HC team, that has scored more than 18 goals, lost ? ### Query: SELECT COUNT(losses) FROM tab...
### Context: CREATE TABLE table_1341577_43 ( party VARCHAR, first_elected VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which party is associated with the person who was first elected in 1982? ### Query: SELECT party FROM table_1341577_43 WHERE first_elect...
### Context: CREATE TABLE table_76890 ( "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 To Par, when Country is 'United States', when Place is 'T4', and when Player is 'Arnol...
### Context: CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId ...
### Context: CREATE TABLE Allergy_Type ( Allergy VARCHAR(20), AllergyType VARCHAR(20) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Has_Allergy ( ...
### Context: CREATE TABLE table_204_554 ( id number, "rank" number, "name" text, "nation" text, "time" text, "speed" number, "note" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which is the last russian to be ranked ? ### Query: SELECT "n...
### Context: CREATE TABLE membership_register_branch ( member_id number, branch_id text, register_year text ) CREATE TABLE branch ( branch_id number, name text, open_year text, address_road text, city text, membership_amount text ) CREATE TABLE member ( member_id number, ca...
### Context: CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, int...
### Context: CREATE TABLE mzjybgb ( BBCJBW text, BBDM text, BBMC text, BBZT number, BGDH number, BGJGDM text, BGJGMC text, BGRGH text, BGRQ time, BGRXM text, BGSJ time, CJRQ time, JSBBRQSJ time, JSBBSJ time, JYBBH text, JYJGMC text, JYJSGH text, JY...
### Context: CREATE TABLE table_14288212_1 ( first_played INTEGER, team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what year did Italy begin playing? ### Query: SELECT MIN(first_played) FROM table_14288212_1 WHERE team = "Italy"
### Context: CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMEN...
### Context: CREATE TABLE table_name_97 ( kosal VARCHAR, sitalsasthi_carnival VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Kosal with a balangir town sitalsasthi carnival? ### Query: SELECT kosal FROM table_name_97 WHERE sitalsasthi_carnival =...
### Context: CREATE TABLE airport ( id number, city text, country text, iata text, icao text, name text ) CREATE TABLE operate_company ( id number, name text, type text, principal_activities text, incorporated_in text, group_equity_shareholding number ) CREATE TABLE fli...
### Context: CREATE TABLE table_name_93 ( date VARCHAR, score VARCHAR, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what Date in Stade Leopold Senghor, Dakar was the Score 4 0? ### Query: SELECT date FROM table_name_93 WHERE score = "4–0" AND...
### Context: CREATE TABLE table_76204 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalog" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the Date for the Region of Europe and has the Catalog of 28765 22392 8? ### Query: SELE...
### Context: CREATE TABLE table_name_31 ( percentage___percentage_ VARCHAR, males VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which language do 1% of males speak? ### Query: SELECT percentage___percentage_ FROM table_name_31 WHERE males = "1"
### Context: CREATE TABLE table_5263 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which competition took place in Bangkok? ### Query: SELECT "Competition" FROM table_5263 WHE...
### Context: CREATE TABLE table_204_641 ( id number, "pos" text, "no" number, "driver" text, "constructor" text, "laps" number, "time/retired" text, "grid" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the...
### Context: CREATE TABLE table_44029 ( "Rank" real, "Company" text, "Headquarters" text, "Industry" text, "Sales (billion $)" real, "Profits (billion $)" real, "Assets (billion $)" real, "Market Value (billion $)" real ) -- Using valid SQLite, answer the following questions for the ta...
### 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 domain_journal ( did int, jid int ) CREATE TABLE conference ( cid int, homepage varchar, name varchar ) CREATE TABLE domain_author ( aid int, did int ) CREATE TABLE organization ( continent varchar, homepage varchar, name varchar, oid int ) CREAT...
### Context: CREATE TABLE table_name_2 ( draw INTEGER, lost VARCHAR, played VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many total draws was played less than 18 with 11 losts? ### Query: SELECT SUM(draw) FROM table_name_2 WHERE lost = 11 AND play...
### Context: CREATE TABLE table_17335602_1 ( winners_share___ INTEGER, tournament VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the winner's share in the wegmans lpga championship? ### Query: SELECT MAX(winners_share___) AS $__ FROM table_17335602...
### Context: CREATE TABLE table_22670216_1 ( rnd VARCHAR, track VARCHAR, pole_position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the pole position is Johnny Rutherford and the track is the Ontario Motor Speedway, what is the RND total number? ##...
### Context: CREATE TABLE table_77837 ( "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. -- Which Venue has a Home team of esse...
### Context: 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_...
### Context: CREATE TABLE table_name_66 ( road_team VARCHAR, game VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name Road Team of Game of game 4? ### Query: SELECT road_team FROM table_name_66 WHERE game = "game 4"
### Context: CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMEN...
### Context: 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, JYZBL...
### Context: CREATE TABLE table_23566 ( "English Name" text, "Simplified" text, "Traditional" text, "Pinyin" text, "Foochow" text, "Area" real, "Population" real, "Density" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the traditio...
### Context: CREATE TABLE On_Call ( Nurse INTEGER, BlockFloor INTEGER, BlockCode INTEGER, OnCallStart DATETIME, OnCallEnd DATETIME ) CREATE TABLE Undergoes ( Patient INTEGER, Procedures INTEGER, Stay INTEGER, DateUndergoes DATETIME, Physician INTEGER, AssistingNurse INTEGER ...
### Context: CREATE TABLE table_56062 ( "State" text, "Votes" real, "Votes since 1856" real, "Democratic votes" real, "D votes since 1856" real, "% of D votes" text, "D % since 1856" text, "Republican votes" real, "% of R votes" text, "R % since 1856" text, "Other votes" real...
### Context: CREATE TABLE table_4113 ( "Townland" text, "s Acre" real, "Barony" text, "Civil parish" text, "Poor law union" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the poor law union on Marshalstown? ### Query: SELECT "Poor law union...
### Context: CREATE TABLE table_22109 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When is the first elected in the Florida 19 district? ###...
### Context: CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE fare ( fare_id i...
### Context: CREATE TABLE table_name_52 ( name VARCHAR, area VARCHAR, roll VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which school in Balclutha has a roll smaller than 55? ### Query: SELECT name FROM table_name_52 WHERE area = "balclutha" AND roll <...
### 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 table_25649 ( "Country" text, "KEI" text, "KI" text, "Economic Incentive Regime" text, "Innovation" text, "Education" text, "ICT" text, "2008 Rank" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many KEI cat...
### Context: CREATE TABLE table_name_85 ( record VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the record of the champion in 2008? ### Query: SELECT record FROM table_name_85 WHERE year = 2008
### Context: CREATE TABLE table_name_36 ( location VARCHAR, event VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Location for the jiu-jitsu vs martial arts? ### Query: SELECT location FROM table_name_36 WHERE event = "jiu-jitsu vs martial arts"
### Context: CREATE TABLE table_15187735_20 ( segment_c VARCHAR, segment_d VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many segment C are there in the episode where segment D is bicycle tires? ### Query: SELECT COUNT(segment_c) FROM table_15187735_20...
### Context: CREATE TABLE claims_documents ( claim_id number, document_type_code text, created_by_staff_id number, created_date number ) CREATE TABLE customers ( customer_id number, customer_details text ) CREATE TABLE claims_processing_stages ( claim_stage_id number, next_claim_stage_...
### Context: CREATE TABLE table_61019 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Place has a Score of 71-70=141? ### Query: SELECT "Place" FROM table_61019 WHERE "Score...
### Context: CREATE TABLE zyjzjlb ( CYBQDM text, CYBQMC text, CYCWH text, CYKSDM text, CYKSMC text, CYSJ time, CYZTDM number, HZXM text, JZKSDM text, JZKSMC text, JZLSH text, KH text, KLX number, MZBMLX number, MZJZLSH text, MZZDBM text, MZZDMC text, ...
### Context: CREATE TABLE table_name_68 ( artist VARCHAR, number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which artist has a serial number of BOONCD1? ### Query: SELECT artist FROM table_name_68 WHERE number = "booncd1"
### Context: CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE flight_stop ( flight_id ...
### Context: 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 numb...
### Context: CREATE TABLE table_name_76 ( result VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result of the game that was attended by 72,703 people? ### Query: SELECT result FROM table_name_76 WHERE attendance = "72,703"
### Context: CREATE TABLE table_4902 ( "Season" text, "Winner" text, "Score" text, "Runner-up" text, "Venue" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the runner-up for Ilhwa Chunma? ### Query: SELECT "Runner-up" FROM table_4902 WHERE "...
### Context: CREATE TABLE table_name_96 ( team VARCHAR, wins VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wins of 0 involves what team? ### Query: SELECT team FROM table_name_96 WHERE wins = 0
### Context: CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, Birth_Date text, Birth_Place text ) CREATE TABLE body_builder ( Body_Builder_ID int, People_ID int, Snatch real, Clean_Jerk real, Total real ) -- Using valid SQLite, answer the following...
### 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 table_6377 ( "Year" text, "Team" text, "Attempts" text, "Completions" text, "Completion %" text, "Yards" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which Completion % has a Yards of 2,175? ### Query: SELECT "Comple...
### Context: CREATE TABLE table_13524 ( "School" text, "Location" text, "Mascot" text, "Enrollment" real, "IHSAA Class" text, "# / County" text, "Year Joined" real, "Previous Conference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wha...
### Context: CREATE TABLE table_name_86 ( place INTEGER, units_sold_in_the_uk VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Of the games that sold 321,000 units in the UK, what is their average place? ### Query: SELECT AVG(place) FROM table_name_86 WHERE u...
### Context: CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE area ( course_id int, area varchar ...
### 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 Video_Games ( GameID INTEGER, GName VARCHAR(40), GType VARCHAR(40) ) 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 Plays_...
### Context: CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE fare ( fare_id int, from_airport varchar, to_airport varchar, fare_basis_code text, fare_airline text, restriction_code text, one_direction_cost int, round_tr...
### 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_63364 ( "Name" text, "Network" text, "Owner" text, "Launch date" text, "Channel ( BKK )" text, "Broadcasting area" text, "Transmitted area" text, "Broadcasting hours" text ) -- Using valid SQLite, answer the following questions for the tables provided ab...
### Context: CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE fare_basis ( fare_basis_code text, booking_class text, class_type text, premium text, economy text, discounted text, night text, season text, basis_days text ) CREATE TA...
### Context: CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTM...
### Context: CREATE TABLE table_15971 ( "Formula" text, "Notation" text, "T c (K)" real, "No. of Cu-O planes in unit cell" real, "Crystal structure" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many times is the formula tl 2 ba 2 cuo 6? ### Q...
### Context: CREATE TABLE table_40063 ( "Year" real, "Venue" text, "City" text, "State" text, "Host" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the city that is located in California when the year is greater than 2009? ### Query: SELECT...
### Context: 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 d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_t...
### Context: 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, reli...
### Context: CREATE TABLE ORDER_ITEMS ( Other_Item_Details VARCHAR, Product_ID VARCHAR ) CREATE TABLE Products ( Product_ID VARCHAR, Product_price INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the order details of the products with price h...
### Context: CREATE TABLE table_name_59 ( bronze INTEGER, total VARCHAR, silver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Bronze has a Total of 11, and a Silver smaller than 6? ### Query: SELECT MAX(bronze) FROM table_name_59 WHERE total = 11...
### Context: CREATE TABLE table_67928 ( "Wins" real, "Draws" real, "Losses" real, "Goal difference" text, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of draws that have a total of 1 and a goal difference of 2:0?...
### Context: CREATE TABLE table_5931 ( "Country" text, "Project Name" text, "Year startup" text, "Operator" text, "Peak" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the name of the project that peaked at 40 and was in the USA? ### Query...
### Context: 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_...
### Context: CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, h...
### Context: CREATE TABLE table_25037577_1 ( year VARCHAR, high_school_principal VARCHAR, superintendent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many years was lynn muscarella the high school principal and charlie wiltse the superintendent? #...
### Context: 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...
### Context: CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate ti...
### Context: CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDis...
### Context: 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 te...
### Context: CREATE TABLE table_29475589_3 ( episode_title VARCHAR, no VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When 22 is the number what is the episode title? ### Query: SELECT episode_title FROM table_29475589_3 WHERE no = 22