text
stringlengths
197
8.39k
### Context: CREATE TABLE table_203_397 ( id number, "series" text, "launch date" text, "finale date" text, "days" number, "housemates" number, "winner" text, "main presenter" text, "grand prize" text, "liveshow\naudience\nmillions" number ) -- Using valid SQLite, answer the fo...
### Context: CREATE TABLE table_203_185 ( id number, "season" text, "a\ntechnical" text, "b\nscientific" text, "c\nfine arts" text, "d\nimprovisational" text, "e\nstructural" text, "rising stars!\u00ae" text, "po\nprojectoutreach\u00ae" text, "university level" text ) -- Using ...
### Context: CREATE TABLE zyjzjlb_jybgb ( YLJGDM_ZYJZJLB text, BGDH number, YLJGDM number ) 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 te...
### Context: CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedE...
### Context: CREATE TABLE table_name_67 ( venue VARCHAR, time VARCHAR, away_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the venue of the match with a 14:30 time and sun source as the away team? ### Query: SELECT venue FROM table_name_67 ...
### Context: CREATE TABLE table_2618072_1 ( directed_by VARCHAR, production_code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the directed by when the production code is 67425? ### Query: SELECT directed_by FROM table_2618072_1 WHERE production_cod...
### Context: CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmitti...
### Context: 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...
### 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_name_27 ( score VARCHAR, away_team VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- With a date of Aldershot and Aldershot as the away team what was the score of the game? ### Query: SELECT score FROM table_na...
### Context: CREATE TABLE table_name_3 ( l3_cache VARCHAR, release_price___usd__ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the L3 cache of the processor with a release price of $440? ### Query: SELECT l3_cache FROM table_name_3 WHERE release_pr...
### 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 table_203_237 ( id number, "n" number, "p" text, "nat." text, "name" text, "age" number, "moving from" text, "type" text, "transfer\nwindow" text, "ends" number, "transfer\nfee" text ) -- Using valid SQLite, answer the following questions for the t...
### Context: CREATE TABLE HOTELS ( hotel_id VARCHAR, star_rating_code VARCHAR, price_range VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show the id and star rating of each hotel, ordered by its price from low to high. ### Query: SELECT hotel_id, star_...
### Context: CREATE TABLE mountain ( id VARCHAR, country VARCHAR ) CREATE TABLE photos ( camera_lens_id VARCHAR, mountain_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many distinct kinds of camera lenses are used to take photos of mountains...
### Context: CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time )...
### 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 zyjzjlb ( CYBQDM tex...
### Context: CREATE TABLE table_12419 ( "Shooter" text, "Event" text, "Rank points" text, "Score points" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the rank points when the total was 11? ### Query: SELECT "Rank points" F...
### 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_name_66 ( date VARCHAR, meet VARCHAR, time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what Date was the Meet of 2007 Pan American Games with a Time of 1:07.78? ### Query: SELECT date FROM table_name_66 WHERE meet =...
### Context: CREATE TABLE table_75445 ( "Celebrity" text, "Famous for" text, "Entered" text, "Exited" text, "Finished" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position did the celebrity finish that entered on day 1 and exited on day 19? ...
### Context: CREATE TABLE table_75858 ( "Date" text, "Time" text, "Home" text, "Away" text, "Score" text, "Ground" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Ground with a Date that is 2008-06-20? ### Query: SELECT "Ground" FROM...
### 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 requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE progra...
### Context: CREATE TABLE table_name_51 ( change___percentage_ INTEGER, land_area__km²_ VARCHAR, population_density__per_km²_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average change to have a land area of 546.74 and a population density...
### Context: CREATE TABLE table_101 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What college had a LB in the draft? ### Query: SELECT "College" FROM table_101 WHERE "Pos...
### Context: 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, additional_req varchar ) CREATE TABLE course_offering ( offering_id int, course_id i...
### Context: CREATE TABLE table_name_81 ( opponent VARCHAR, round VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the opponent in the fight of 1 round when the record is 18-7? ### Query: SELECT opponent FROM table_name_81 WHERE rou...
### Context: CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, in...
### Context: CREATE TABLE table_71787 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total number of overall for defensive tackle ### Query: SELECT ...
### Context: CREATE TABLE table_name_94 ( goal_diff INTEGER, losses VARCHAR, wins VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team has a Losses value larger than 1 and a Wins value smaller than 0? ### Query: SELECT SUM(goal_diff) FROM table_nam...
### Context: CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TA...
### Context: CREATE TABLE table_name_65 ( attendance VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On September 10, 1989 how many people attended the game? ### Query: SELECT attendance FROM table_name_65 WHERE date = "september 10, 1989"
### Context: CREATE TABLE Movie ( mID int, title text, year int, director text ) CREATE TABLE Reviewer ( rID int, name text ) CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date ) -- Using valid SQLite, answer the following questions for the tables provided abo...
### Context: CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outti...
### Context: CREATE TABLE table_name_72 ( overall VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the overall draft pick for the player selected for the tight end position? ### Query: SELECT overall FROM table_name_72 WHERE positio...
### Context: CREATE TABLE member ( Member_ID int, Member_Name text, Party_ID text, In_office text ) CREATE TABLE party ( Party_ID int, Minister text, Took_office text, Left_office text, Region_ID int, Party_name text ) CREATE TABLE region ( Region_ID int, Region_name te...
### Context: CREATE TABLE table_name_88 ( score VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score of Bernhard Langer after 3 rounds? ### Query: SELECT score FROM table_name_88 WHERE player = "bernhard langer"
### 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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_ti...
### 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_27539535_5 ( opponent VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Against what team did the Islanders have a 5-18-5 record? ### Query: SELECT opponent FROM table_27539535_5 WHERE record = "5-18-5"
### Context: CREATE TABLE table_2781227_1 ( college_junior_club_team VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the college/junior/club team name of player Mats Lindgren? ### Query: SELECT college_junior_club_team FROM table_2781...
### Context: CREATE TABLE table_name_73 ( score VARCHAR, visitor VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score of the game on November 9 when Atlanta was the visiting team? ### Query: SELECT score FROM table_name_73 WHE...
### Context: CREATE TABLE Reservations ( Code INTEGER, Room TEXT, CheckIn TEXT, CheckOut TEXT, Rate REAL, LastName TEXT, FirstName TEXT, Adults INTEGER, Kids INTEGER ) CREATE TABLE Rooms ( RoomId TEXT, roomName TEXT, beds INTEGER, bedType TEXT, maxOccupancy INTEG...
### Context: CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE PostsWithDeleted ( Id number...
### Context: CREATE TABLE table_name_40 ( lane INTEGER, nationality VARCHAR, heat VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's Great Britain's lane with a heat less than 3? ### Query: SELECT AVG(lane) FROM table_name_40 WHERE nationality = "gre...
### Context: CREATE TABLE table_76687 ( "Full name" text, "Alias" text, "Age\u00b9" real, "From" text, "Occupation\u00b2" text, "Specialty" text, "Position/ Eliminated" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Position/ Elimina...
### Context: CREATE TABLE prereq ( course_id varchar(8), prereq_id varchar(8) ) CREATE TABLE section ( course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), building varchar(15), room_number varchar(7), time_slot_id varchar(4) ) CREATE TABLE student ( ...
### Context: CREATE TABLE table_name_93 ( player VARCHAR, place VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Player, when Place is 2? ### Query: SELECT player FROM table_name_93 WHERE place = "2"
### Context: CREATE TABLE Catalog_Structure ( catalog_level_number INTEGER, catalog_id INTEGER, catalog_level_name VARCHAR(50) ) CREATE TABLE Catalogs ( catalog_id INTEGER, catalog_name VARCHAR(50), catalog_publisher VARCHAR(80), date_of_publication DATETIME, date_of_latest_revision DAT...
### Context: CREATE TABLE table_1816947_2 ( average_attendance_home VARCHAR, division___section VARCHAR, average_attendance_away VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the average away attendance is 1.889 in the Superettan, what's the averag...
### Context: CREATE TABLE table_50211 ( "Opposing Team" text, "Against" real, "Date" text, "Venue" text, "Round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of Against that were played in the H Venue on 26 february 1949? ...
### Context: CREATE TABLE table_67394 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalog" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the region for cd with catalog of alca-9203 ### Query: SELECT "Region" FROM table_67394 W...
### Context: CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, cul...
### Context: CREATE TABLE table_33038 ( "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 hosted a home team with...
### Context: CREATE TABLE table_41743 ( "Date" text, "Opponent" text, "Location" text, "Score" text, "Loss" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Location when the Opponent shows vs. #23 south carolina? ### Q...
### Context: CREATE TABLE table_39612 ( "Value" text, "Color" text, "Obverse" text, "Reverse" text, "First issued" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What reverse has a color of green? ### Query: SELECT "Reverse" FROM table_39612 WHERE ...
### Context: CREATE TABLE table_name_96 ( grid INTEGER, time_retired VARCHAR, laps VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many grids have more than 24 laps with a time/retired of +1:12.208? ### Query: SELECT SUM(grid) FROM table_name_96 WHER...
### Context: CREATE TABLE table_55822 ( "Class" text, "Operator" text, "Number" real, "Year Built" text, "Cars per Set" real, "Unit Numbers." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was the class 253 larger than 18 built? ### Q...
### Context: CREATE TABLE table_26993 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "F/Laps" real, "Podiums" real, "Points" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- N...
### Context: CREATE TABLE submission ( Author VARCHAR, Scores VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the authors of submissions in ascending order of scores. ### Query: SELECT Author FROM submission ORDER BY Scores
### Context: CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text,...
### Context: CREATE TABLE table_59433 ( "Mark" text, "Wind*" text, "Athlete" text, "Nationality" text, "Venue" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the mark from April 2, 1994 with a wind number of 2.0? ### Query:...
### Context: CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, Bounty...
### Context: CREATE TABLE table_57791 ( "Name" text, "Power" text, "Torque" text, "Size" text, "Engine code" text, "0\u2013100km/h,s" real, "Top speed" text, "Years" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the power of the...
### Context: 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, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE...
### Context: CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ...
### Context: CREATE TABLE table_22297140_3 ( outgoing_manager VARCHAR, replaced_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which outgoing manager was replaced by Jafar Fatahi? ### Query: SELECT outgoing_manager FROM table_22297140_3 WHERE replaced_by...
### Context: CREATE TABLE table_name_59 ( others__number VARCHAR, bush__percentage VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the other number with 63.98% bush? ### Query: SELECT others__number FROM table_name_59 WHERE bush__percentage = "63.98...
### Context: CREATE TABLE table_name_69 ( acceleration_0_100km_h__0_62mph_ VARCHAR, transmission VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the acceleration 0 100km/h (0 62mph) when the transmission is 5-speed manual? ### Query: SELECT accelerat...
### Context: CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE...
### Context: CREATE TABLE table_41155 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Position has a Played larger...
### 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 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_name_84 ( time VARCHAR, lane VARCHAR, nationality VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Spain had what time with lanes smaller than 4? ### Query: SELECT time FROM table_name_84 WHERE lane < 4 AND nationality = "s...
### Context: CREATE TABLE table_name_52 ( manufacturer VARCHAR, laps VARCHAR, time_retired VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which manufacturer has 23 laps and a time of +45.195? ### Query: SELECT manufacturer FROM table_name_52 WHERE laps ...
### Context: CREATE TABLE table_31477 ( "Round" real, "Circuit" text, "Date" text, "Length" text, "Pole Position" text, "GT3 Winner" text, "GT4 Winner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When charles bateman michael lyons is the ...
### Context: CREATE TABLE table_name_23 ( overall INTEGER, college VARCHAR, round VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average overall pick number for the USF player who was picked after round 5? ### Query: SELECT AVG(overall) FROM...
### Context: CREATE TABLE table_60396 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Seve Ballesteros's score? ### Query: SELECT "Score" FROM table_60396 WHERE "Player" = 's...
### Context: CREATE TABLE table_12226390_2 ( directed_by VARCHAR, production_code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who directed the episode with production code 28? ### Query: SELECT directed_by FROM table_12226390_2 WHERE production_code = 28
### Context: CREATE TABLE table_33346 ( "Translator Call Letters" text, "B Mountain Channel" text, "Laurel Mountain Channel" text, "PSIP" text, "Station Call Letters" text, "Network Affiliation ID" text, "Original Channel" text, "Signal Quality" text ) -- Using valid SQLite, answer the...
### Context: CREATE TABLE table_51560 ( "Country" text, "Date" text, "Label" text, "Format" text, "Catalogue #" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date had a 4ad label and a CD (reissue) format? ### Query: SELECT "Date" FROM table_...
### Context: CREATE TABLE ship ( ship_id number, name text, type text, built_year number, class text, flag text ) CREATE TABLE captain ( captain_id number, name text, ship_id number, age text, class text, rank text ) -- Using valid SQLite, answer the following question...
### 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 patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmitti...
### Context: CREATE TABLE table_name_60 ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average for 2009 when 2001 is more than 0, 1996 is less than 1 and 2004 is more than 2 ### Query: SELECT AVG(2009) FROM table_name_60 WHERE 2001 > 0 AND 1996...
### Context: CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, ...
### Context: CREATE TABLE t_kc21_t_kc24 ( MED_CLINIC_ID text, MED_SAFE_PAY_ID number ) 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, ...
### Context: CREATE TABLE table_dev_39 ( "id" int, "gender" string, "random_serum_glucose" int, "glycated_hemoglobin" bool, "heart_disease" bool, "stroke" bool, "diabetes_mellitus" bool, "hgba1c" float, "diabetic" string, "fasting_blood_glucose_fbg" float, "fasting_plasma_glu...
### Context: CREATE TABLE Movie ( director VARCHAR, title VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For directors who had more than one movie, return the titles and produced years of all movies directed by them. ### Query: SELECT T1.title, T1.year FROM...
### Context: CREATE TABLE table_61333 ( "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 jerry bohlander's time? ### ...
### 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_11545282_6 ( years_for_jazz VARCHAR, school_club_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For how many players from UTEP can one calculate how many years they've played for Jazz? ### Query: SELECT COUNT(years_for_j...
### Context: CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmitti...
### Context: 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, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE...
### Context: CREATE TABLE table_25116 ( "Player" text, "Nat" text, "Pos" text, "L Apps" real, "L G" real, "C Apps" real, "C G" real, "Total Apps" real, "Total G" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the least total app...
### Context: CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, Related...
### 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 departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) ...
### Context: CREATE TABLE table_23385853_20 ( power_stage_wins VARCHAR, wins VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the power stage wins total number if the wins is 10? ### Query: SELECT COUNT(power_stage_wins) FROM table_23385853_20 WHERE w...
### Context: CREATE TABLE table_name_19 ( location VARCHAR, method VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the location of the match where the method was submission (armbar) and Mayra Conde was the opponent? ### Query: S...