text
stringlengths
197
8.39k
### Context: CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel te...
### Context: CREATE TABLE fgwyjzb ( CLINIC_ID text, CLINIC_TYPE text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSUR...
### Context: CREATE TABLE table_train_227 ( "id" int, "gender" string, "diabetic" string, "allergic_to_study_products" bool, "hba1c" float, "a1c" float, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. -- male 35 _ 70 ye...
### Context: CREATE TABLE table_name_40 ( week INTEGER, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the latest week with the date of november 5, 1995? ### Query: SELECT MAX(week) FROM table_name_40 WHERE date = "november 5, 1995"
### Context: CREATE TABLE table_14240688_1 ( playoffs VARCHAR, open_cup VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the playoffs for 2nd round open cup ### Query: SELECT playoffs FROM table_14240688_1 WHERE open_cup = "2nd Round"
### Context: CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, Accepted...
### Context: CREATE TABLE table_name_46 ( constructor VARCHAR, winning_driver VARCHAR, race VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the constructor when Jack Brabham was the driver at the Monaco Grand Prix? ### Query: SELECT constructor ...
### Context: CREATE TABLE table_22148 ( "English name" text, "Thai name" text, "Transcription" text, "Color" text, "Sanskrit word" text, "Planet" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which planet has the transcription of wan suk? ### ...
### Context: CREATE TABLE table_4359 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average week on November 7, 1976 with an attendance less than 46,735? ### Query...
### Context: CREATE TABLE d_labitems ( row_id number, itemid number, label text ) 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 numb...
### 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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE...
### Context: CREATE TABLE table_1348246_3 ( mechanical VARCHAR, regulating VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What mechanical has lpm regulation? ### Query: SELECT mechanical FROM table_1348246_3 WHERE regulating = "LPM"
### Context: CREATE TABLE table_60090 ( "Country" text, "Region" text, "FHFreepressreport" text, "RWB Pressfreedomindex" text, "Internetlists" text, "ONIpoliticalfiltering" text, "ONIsocialfiltering" text, "ONIsecurityfiltering" text, "ONItoolsfiltering" text ) -- Using valid SQLit...
### 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 ( weight VARCHAR, market_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the market name is Xperia U, what is the weight? ### Query: SELECT weight FROM table WHERE market_name = "Xperia U"
### Context: CREATE TABLE table_name_24 ( points VARCHAR, wins INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Points has Wins larger than 0? ### Query: SELECT COUNT(points) FROM table_name_24 WHERE wins > 0
### Context: CREATE TABLE table_22595 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the p...
### Context: CREATE TABLE table_77534 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the visiting team at the game when the Canadi...
### Context: CREATE TABLE airport ( airport_code varchar, airport_name text, airport_location text, state_code varchar, country_name varchar, time_zone_code varchar, minimum_connect_time int ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, coun...
### Context: CREATE TABLE table_54442 ( "Party" text, "Results 2004" text, "CSA 5/14/09" text, "Viavoice 5/15/09" text, "Ifop- La Croix 5/15/09" text, "Ipsos 5/16/09" text, "OpinionWay 5/18/09" text, "CSA 5/20/09" text, "Ipsos 5/25/09" text, "TNS-Sofres 5/26/09" text, "Opinio...
### Context: CREATE TABLE table_name_78 ( name VARCHAR, city VARCHAR, years_as_tallest VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the building that was the tallest from 1990 1997 in Frankfurt? ### Query: SELECT name FROM table_na...
### Context: CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE flight_stop ( flight_id int, stop_...
### Context: CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_i...
### Context: 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, INSURE...
### Context: CREATE TABLE department ( Department_ID int, Name text, Creation text, Ranking int, Budget_in_Billions real, Num_Employees real ) CREATE TABLE head ( head_ID int, name text, born_state text, age real ) CREATE TABLE management ( department_ID int, head_ID in...
### Context: CREATE TABLE table_24619 ( "Week" real, "Date" text, "Opponent" text, "Location" text, "Final Score" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people were present at the July 10 ga...
### Context: CREATE TABLE table_7309 ( "Ballarat FL" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many total wins does Ballarat FL of East point have when the against i...
### Context: CREATE TABLE artist ( artist_id number, artist text, age number, famous_title text, famous_release_date text ) CREATE TABLE volume ( volume_id number, volume_issue text, issue_date text, weeks_on_top number, song text, artist_id number ) CREATE TABLE music_fest...
### Context: CREATE TABLE table_58849 ( "Year" real, "Manufacturer" text, "Start" real, "Finish" real, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT WAS THE FINISH NUMBER WITH A START SMALLER THAN 20 IN 1969? ### Query: SELECT COUNT("F...
### 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 gsi ( course_offering_id int, student_id int ) CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varchar, test_id varchar ) CREATE TABLE ...
### Context: CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE vitalperiodic ( v...
### 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 publication ( Book_ID VARCHAR, Price INTEGER ) CREATE TABLE book ( Writer VARCHAR, Book_ID VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show writers who have published a book with price more than 4000000. ### Query: SELE...
### 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_9297 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Rank has a Total larger than 30, and a Bronze of 14? ### Query: SELECT AV...
### Context: CREATE TABLE table_69523 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Tries for" text, "Tries against" text, "Try bonus" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
### Context: CREATE TABLE table_name_36 ( school_club_team VARCHAR, round VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What school did the linebacker who was drafted after round 8 come from? ### Query: SELECT school_club_team FROM ta...
### Context: CREATE TABLE table_17299 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
### Context: CREATE TABLE table_14170 ( "Model number" text, "sSpec number" text, "Cores" text, "Frequency" text, "Turbo" text, "L2 cache" text, "L3 cache" text, "GPU model" text, "GPU frequency" text, "Socket" text, "I/O bus" text, "Release date" text, "Release price...
### Context: CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, ...
### Context: CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text...
### Context: CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, in...
### Context: CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) 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, icust...
### Context: CREATE TABLE table_12962773_12 ( player VARCHAR, height VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHat is the number for the player whose height is 2.01? ### Query: SELECT COUNT(player) FROM table_12962773_12 WHERE height = "2.01"
### Context: CREATE TABLE table_56308 ( "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the tournament surface at Aptos? ### Query: SELECT "Surface" FROM t...
### Context: CREATE TABLE table_43173 ( "Name" text, "Position" text, "Number" text, "School/Club Team" text, "Season" text, "Acquisition via" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What season did School/Club Team, East have an Acquisit...
### Context: CREATE TABLE gwyjzb ( 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, INSURE...
### Context: CREATE TABLE table_name_3 ( position VARCHAR, hometown VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the position of the player from Fort Lauderdale, Florida? ### Query: SELECT position FROM table_name_3 WHERE hometown = "fort lauderda...
### Context: CREATE TABLE table_22285 ( "No. overall" real, "No. in series" real, "Title" text, "Director" text, "Writer" text, "Original air date" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who wrote 'episode 10'...
### Context: CREATE TABLE table_name_65 ( call_sign VARCHAR, city_of_license VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What call sign is licensed in soledad, california? ### Query: SELECT call_sign FROM table_name_65 WHERE city_of_license = "soledad, c...
### Context: CREATE TABLE table_848 ( "Rnd" real, "Circuit" text, "GTO Winning Team" text, "GTU Winning Team" text, "TO Winning Team" text, "TU Winning Team" text, "Results" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what circuit was ...
### Context: CREATE TABLE person_info_hz_info ( RYBH text, KH number, KLX number, YLJGDM number ) CREATE TABLE jyjgzbb ( BGDH text, BGRQ time, CKZFWDX text, CKZFWSX number, CKZFWXX number, JCFF text, JCRGH text, JCRXM text, JCXMMC text, JCZBDM text, JCZBJGDL ...
### Context: CREATE TABLE table_33089 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the attendance on the bye week? ### Query: SELECT "Attendance" FROM table_33089 W...
### Context: CREATE TABLE faculty ( lname VARCHAR, rank VARCHAR ) CREATE TABLE Faculty ( lname VARCHAR, facID VARCHAR ) CREATE TABLE activity ( activity_name VARCHAR ) CREATE TABLE Faculty_participates_in ( facID VARCHAR, actid VARCHAR ) -- Using valid SQLite, answer the following quest...
### Context: CREATE TABLE table_name_49 ( seasons VARCHAR, total_seasons VARCHAR, city VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the season that has fewer than 5 total seasons and is in Ottawa, Ontario? ### Query: SELECT seasons FROM table_...
### Context: CREATE TABLE table_41567 ( "Year" real, "January" real, "February" real, "March" real, "April" real, "June" real, "July" real, "August" real, "September" real, "October" real, "November" real, "December" real, "Annual Additions(in millions)" real, "Av...
### Context: CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) -- Using valid SQLite, answer the following ques...
### Context: CREATE TABLE table_15887683_5 ( language VARCHAR, television_service VARCHAR, n° VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What language is Sky Cinema Passion television service n. 308? ### Query: SELECT language FROM table_15887683_5 ...
### Context: CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text...
### Context: 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 countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE departments ( DEPARTME...
### Context: CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country...
### 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_15568886_14 ( proto_austronesian VARCHAR, proto_oceanic VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the proto-austrronesian for *pine, *papine ### Query: SELECT proto_austronesian FROM table_15568886_14 WHERE proto_oc...
### Context: CREATE TABLE airports ( apid number, name text, city text, country text, x number, y number, elevation number, iata text, icao text ) CREATE TABLE airlines ( alid number, name text, iata text, icao text, callsign text, country text, active te...
### Context: CREATE TABLE table_20922 ( "Country" text, "Region" text, "Joined OPEC" real, "Population (July 2012)" real, "Area (km\u00b2)" real, "Production ( bbl /day)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the minimum area i...
### Context: CREATE TABLE table_35179 ( "Year" real, "Title" text, "Director" text, "Writer" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What notes did the creature comforts film have? ### Query: SELECT "Notes" FROM table_35179 WHE...
### Context: CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABL...
### Context: CREATE TABLE Projects ( Project_ID INTEGER, Project_Details VARCHAR(255) ) CREATE TABLE Accounts ( Account_ID INTEGER, Statement_ID INTEGER, Account_Details VARCHAR(255) ) CREATE TABLE Ref_Document_Types ( Document_Type_Code CHAR(15), Document_Type_Name VARCHAR(255), Docum...
### Context: CREATE TABLE table_name_54 ( name VARCHAR, length_meters VARCHAR, km_from_kingston VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Name, when Length Meters is greater than 66.4, and when Km From Kingston is 138.8? ### Query: SELECT n...
### Context: CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE microlab ( microlabid...
### Context: CREATE TABLE table_25689740_2 ( Ends VARCHAR, pa VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is shown for ends lost when pa is 44? ### Query: SELECT Ends AS lost FROM table_25689740_2 WHERE pa = 44
### Context: CREATE TABLE albums ( id INTEGER, title VARCHAR(160), artist_id INTEGER ) CREATE TABLE genres ( id INTEGER, name VARCHAR(120) ) CREATE TABLE employees ( id INTEGER, last_name VARCHAR(20), first_name VARCHAR(20), title VARCHAR(30), reports_to INTEGER, birth_date...
### Context: CREATE TABLE table_name_42 ( points INTEGER, entrant VARCHAR, chassis VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of Points that Peter Whitehead earned in a Ferrari 125? ### Query: SELECT SUM(points) FROM table_n...
### Context: CREATE TABLE table_name_89 ( us_dance VARCHAR, year INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the US dance when the year is more than 1985 ### Query: SELECT us_dance FROM table_name_89 WHERE year > 1985
### 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 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 school ( School_ID int, Grade text, School text, Location text, Type text ) CREATE TABLE school_bus ( School_ID int, Driver_ID int, Years_Working int, If_full_time bool ) CREATE TABLE driver ( Driver_ID int, Name text, Party text, Home_city...
### Context: CREATE TABLE Student_Course_Enrolment ( registration_id INTEGER, student_id INTEGER, course_id INTEGER, date_of_enrolment DATETIME, date_of_completion DATETIME ) CREATE TABLE Courses ( course_id INTEGER, author_id INTEGER, subject_id INTEGER, course_name VARCHAR(120), ...
### Context: CREATE TABLE table_47860 ( "Date" text, "Time" text, "Opponent" text, "Site" text, "City" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the site where the game was held in the city of Delaware? ### Query: SELECT "Site" FROM ta...
### Context: CREATE TABLE course ( course_id varchar(8), title varchar(50), dept_name varchar(20), credits numeric(2,0) ) CREATE TABLE takes ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), grade varchar(2) ) CREATE TABLE section...
### Context: CREATE TABLE table_45573 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of To Par, when Player is 'Bob Rosburg'? ### Query: SELECT SUM("To par") FROM...
### Context: CREATE TABLE table_74389 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the t...
### 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_62056 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What week were there 56,023 people in attendance? ### Query: SELECT COUNT("Week") FROM tab...
### Context: CREATE TABLE table_204_609 ( id number, "year" number, "car" number, "start" number, "qual" number, "rank" number, "finish" number, "laps" number, "led" number, "retired" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -...
### Context: CREATE TABLE table_1805191_36 ( candidates VARCHAR, incumbent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were all the candidates in elections in which Steve Chabot was a candidate? ### Query: SELECT candidates FROM table_1805191_36 WHER...
### Context: CREATE TABLE table_name_58 ( bronze INTEGER, gold VARCHAR, silver VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest bronze a team with 9 silvers, a total larger than 13, and more than 13 gold medals has? #...
### Context: CREATE TABLE table_48309 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Silver has a Rank of 1, and a Total smaller than 11? ### Query: SELECT S...
### 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_name_5 ( crowd INTEGER, home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest crowd number for the home team Richmond? ### Query: SELECT MAX(crowd) FROM table_name_5 WHERE home_team = "richmond"
### Context: CREATE TABLE table_203_212 ( id number, "#" number, "district" text, "land area (km2)" number, "population\n(2010 census)" number, "density (persons/km2)" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many more people live in...
### Context: CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE treatment ( ...
### Context: CREATE TABLE table_name_81 ( digital_psip INTEGER, call_sign VARCHAR, broadcast_channel VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest Digital PSIP for channels over 29 with callsign CFTU-DT? ### Query: SELECT MIN(digital...
### Context: CREATE TABLE table_68894 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the opponent with record of 12-18 ### Query: SELECT "Opponent" FROM table_68894 WHERE "Rec...
### Context: CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varc...
### 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_59 ( points INTEGER, entrant VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total amount of points that Christy has in the years before 1954? ### Query: SELECT SUM(points) FROM table_name_59...
### Context: CREATE TABLE table_63508 ( "Total fat" text, "Saturated fat" text, "Monounsaturated fat" text, "Polyunsaturated fat" text, "Smoke point" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the saturated fat with 28g of polyunsaturate...
### Context: CREATE TABLE table_23906 ( "School" text, "Location(s)" text, "Control" text, "Type" text, "Accreditation" text, "Founded" text, "Enrollment" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the control type which was foun...