text
stringlengths
197
8.39k
### Context: CREATE TABLE table_71289 ( "Device" real, "Device type" text, "Capacity [MB]" text, "Avg seek time [ms]" text, "Avg rotational delay [ms]" real, "Avg transfer rate [kB/s]" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the a...
### Context: CREATE TABLE table_72828 ( "Season" real, "MLS Reg. Season" text, "MLS Cup Playoffs" text, "U.S. Open Cup" text, "CONCACAF Champions Cup / Champions League" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How did the team place when they...
### Context: CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) ...
### Context: CREATE TABLE table_28283535_4 ( weekly_rank VARCHAR, episode VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the weekly rank of episode 1.03? ### Query: SELECT weekly_rank FROM table_28283535_4 WHERE episode = "1.03"
### Context: CREATE TABLE table_22839669_12 ( atp_wins INTEGER, money_list_rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many atp wins did he have when his money list rank was 4? ### Query: SELECT MAX(atp_wins) FROM table_22839669_12 WHERE money_l...
### Context: CREATE TABLE table_name_43 ( play_offs INTEGER, fa_cup VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the least number of goals scored in the play-offs among the players that have scored 2 in the FA Cup? ### Query: SELECT MIN(play_offs)...
### Context: CREATE TABLE table_1046 ( "Player" text, "Position" text, "Starter" text, "Touchdowns" real, "Extra points" real, "Field goals" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total number of points for th...
### Context: CREATE TABLE table_27069503_2 ( conf_record VARCHAR, standings VARCHAR, season VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the conference record for the Pandas when they were first in the standings in the 2003-04 season? ### Que...
### 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 driver ( home_city VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show all different home cities. ### Query: SELECT DISTINCT home_city FROM driver
### Context: CREATE TABLE Has_amenity ( dormid INTEGER, amenid INTEGER ) CREATE TABLE Lives_in ( stuid INTEGER, dormid INTEGER, room_number INTEGER ) CREATE TABLE Dorm_amenity ( amenid INTEGER, amenity_name VARCHAR(25) ) CREATE TABLE Dorm ( dormid INTEGER, dorm_name VARCHAR(20), ...
### Context: CREATE TABLE table_name_37 ( title VARCHAR, demo VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For demo 1.6/5, what is the title? ### Query: SELECT title FROM table_name_37 WHERE demo = "1.6/5"
### 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_55376 ( "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 student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CREATE TABLE video_games ( gameid number, gname text, gtype text ) CREATE TABLE sportsinfo ( stuid number, sportname text, ...
### Context: CREATE TABLE table_23021 ( "Country" text, "Total Drivers" real, "Champions" real, "Championships" real, "Current March 20, 2010" real, "First driver(s)" text, "Last/Current driver(s) March 20, 2010" text ) -- Using valid SQLite, answer the following questions for the tables p...
### Context: CREATE TABLE table_4711 ( "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 did Geelong play as the home te...
### Context: CREATE TABLE table_name_10 ( lead_envoy VARCHAR, year VARCHAR, ryūkyūan_king VARCHAR, mission_type VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the lead envoy of the congratulation mission in 1718 with the Ry ky an King sh kei?...
### Context: CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, ...
### Context: CREATE TABLE table_75833 ( "Episode #" real, "Title" text, "Air Date" text, "Rating" real, "Share" real, "18\u201349" real, "Viewers" real, "Rank" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Episode # ...
### 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_72 ( rank VARCHAR, start VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What ranking that had a start of 19? ### Query: SELECT rank FROM table_name_72 WHERE start = "19"
### Context: CREATE TABLE table_54529 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Grid had 14 laps completed? ### Query: SELECT AVG("Grid") FROM table_54529 WHERE...
### Context: CREATE TABLE table_30583 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date (U.S.)" text, "Original air date (International)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date did ...
### Context: CREATE TABLE table_54092 ( "Name" text, "GNIS Feature ID" real, "State" text, "County" text, "Type" text, "USGS 7.5' Map" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which name has a type of lake, a County of hennepin, and a USGS...
### Context: CREATE TABLE table_13114949_3 ( qualifying_rank INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the lowest qualifying rank? ### Query: SELECT MIN(qualifying_rank) FROM table_13114949_3
### Context: CREATE TABLE table_30769 ( "Branding" text, "Callsign" text, "Frequency" text, "Power (kW)" text, "Station Type" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where are the broadcasting companys with the callsign D...
### Context: CREATE TABLE table_name_70 ( average INTEGER, english_title VARCHAR, finale VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Average of Men in Pain with a Finale of less than 33? ### Query: SELECT AVG(average) FROM table_name_70 W...
### Context: CREATE TABLE host ( Host_ID int, Name text, Nationality text, Age text ) CREATE TABLE party_host ( Party_ID int, Host_ID int, Is_Main_in_Charge bool ) CREATE TABLE party ( Party_ID int, Party_Theme text, Location text, First_year text, Last_year text, N...
### 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_6293 ( "County" text, "Area (acres)" text, "Area (km\u00b2)" real, "Population" real, "Population Density (per km 2 )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the area (km ) of Nairnshire county, which ...
### 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 diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, ...
### Context: CREATE TABLE match_season ( player VARCHAR, College VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Return all players sorted by college in ascending alphabetical order. ### Query: SELECT player FROM match_season ORDER BY College
### Context: CREATE TABLE table_name_27 ( born_died VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Born-Died, when Name is Maliq Bushati? ### Query: SELECT born_died FROM table_name_27 WHERE name = "maliq bushati"
### Context: CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid n...
### Context: CREATE TABLE table_23186 ( "Rank" real, "Mountain Peak" text, "Mountain Range" text, "Elevation" text, "Prominence" text, "Isolation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the isolation of the mountain peak with a pr...
### 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 regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME v...
### Context: CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POS...
### Context: CREATE TABLE table_24220 ( "Department" text, "Micro (10ha)" real, "Small (100ha)" real, "Medium (500ha)" real, "Big (>500ha)" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many total catagories are there for La P...
### 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 mzjzjlb ( HXPLC numb...
### Context: CREATE TABLE table_30120619_1 ( barony VARCHAR, townland VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the barony for the Ballintaggart townland? ### Query: SELECT barony FROM table_30120619_1 WHERE townland = "Ballintaggart"
### Context: CREATE TABLE table_name_99 ( driver VARCHAR, constructor VARCHAR, time_retired VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which driver had brm as a constructor and a time/retired of engine? ### Query: SELECT driver FROM table_name_99 WH...
### 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 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_55831 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the crowd size at the moor...
### Context: CREATE TABLE table_name_40 ( date VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the game against the Indianapolis Colts? ### Query: SELECT date FROM table_name_40 WHERE opponent = "indianapolis colts"
### Context: CREATE TABLE table_1342233_24 ( result VARCHAR, incumbent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result for w. arthur winstead? ### Query: SELECT result FROM table_1342233_24 WHERE incumbent = "W. Arthur Winstead"
### 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 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 addresses ( address_id number, line_1_number_building text, city text, zip_postcode text, state_province_county text, country text ) CREATE TABLE customer_payments ( customer_id number, datetime_payment time, payment_method_code text, amount_payment num...
### Context: CREATE TABLE table_train_99 ( "id" int, "mini_mental_state_examination_mmse" int, "language" string, "renal_disease" bool, "hepatic_disease" bool, "allergy_to_formoterol" bool, "geriatric_depression_scale_gds" int, "NOUSE" float ) -- Using valid SQLite, answer the followin...
### Context: CREATE TABLE table_name_94 ( score VARCHAR, to_par VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score that has a To par of 3, for Branden Grace? ### Query: SELECT score FROM table_name_94 WHERE to_par = "−3" A...
### Context: CREATE TABLE table_56787 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the leading scorer that was a visitor o...
### Context: CREATE TABLE table_name_10 ( nation VARCHAR, silver VARCHAR, bronze VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which country had 1 Bronze, 1 Silver, with a total of 3 medals? ### Query: SELECT nation FROM table_name_1...
### Context: CREATE TABLE table_name_70 ( city_or_town VARCHAR, number_of_seasons_in_top_division VARCHAR, club VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which City or town has top division smaller than 40 and Gaziantepspor Club ? ### Query: SELECT...
### Context: CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId numbe...
### 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_203_426 ( id number, "year" number, "title" text, "peak chart positions\naus" number, "peak chart positions\nnz" number, "peak chart positions\nuk" number, "album" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -...
### 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_labitems ( row_id number, itemid number, label text ) CREATE TABLE chartev...
### Context: CREATE TABLE table_name_34 ( constructor VARCHAR, grid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who constructed grid 14? ### Query: SELECT constructor FROM table_name_34 WHERE grid = 14
### Context: CREATE TABLE Maintenance_Contracts ( maintenance_contract_id INTEGER, maintenance_contract_company_id INTEGER, contract_start_date DATETIME, contract_end_date DATETIME, other_contract_details VARCHAR(255) ) CREATE TABLE Skills ( skill_id INTEGER, skill_code VARCHAR(20), ski...
### Context: CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardi...
### Context: CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE flight ( aircraft_code_sequence text, airline_code varchar, airl...
### Context: CREATE TABLE table_16090262_1 ( directed_by VARCHAR, tv_broadcast VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who directed the show that had a TV broadcast of S07E04? ### Query: SELECT directed_by FROM table_16090262_1 WHERE tv_broadcast = "...
### Context: CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) ...
### Context: CREATE TABLE table_6143 ( "Call sign" text, "Frequency" text, "City of license" text, "Watts" real, "Class" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Watts has a Class of a, and a Frequency of 91.5 fm, and a City of licens...
### 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_39856 ( "Rank" real, "Name" text, "Team" text, "Games" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest game number with Aris Thessaloniki with points smaller than 120? ### Query: SELE...
### Context: CREATE TABLE table_77696 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game site" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What game site has a result of bye? ### Query: SELECT "Game site" FROM t...
### 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 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 table_21436373_6 ( type_of_record VARCHAR, result_games VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which type of record has result/games of 9 games (57,144 avg.) ### Query: SELECT type_of_record FROM table_21436373_6 WHERE resu...
### Context: CREATE TABLE table_name_53 ( roll INTEGER, area VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the sum roll of Karaka area? ### Query: SELECT SUM(roll) FROM table_name_53 WHERE area = "karaka"
### Context: CREATE TABLE table_75877 ( "Rank" real, "Main span metres" text, "Main span feet" text, "Year opened" real, "Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest rank from the year greater than 2010 with 430 main ...
### Context: CREATE TABLE zyjzjlb ( YLJGDM text, JZLSH text, MZJZLSH text, KH text, KLX number, HZXM text, WDBZ number, RYDJSJ time, RYTJDM number, RYTJMC text, JZKSDM text, JZKSMC text, RZBQDM text, RZBQMC text, RYCWH text, CYKSDM text, CYKSMC text, ...
### Context: CREATE TABLE table_13836704_6 ( rank VARCHAR, freight___metric_tonnes__ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the rank of the airport with a freight ( metric tonnes ) of 23791? ### Query: SELECT rank FROM table_13836704_6 WHERE...
### Context: CREATE TABLE table_22319599_1 ( team_name VARCHAR, school VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the school is Rend Lake College, what is the team name? ### Query: SELECT team_name FROM table_22319599_1 WHERE school = "Rend Lake Coll...
### Context: CREATE TABLE table_63660 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Home team of the game with a Score of 2 2? ### Query: SELECT "Home team...
### Context: CREATE TABLE table_train_106 ( "id" int, "gender" string, "pregnancy_or_lactation" bool, "mini_mental_state_examination_mmse" int, "uncontrolled_diabetes" bool, "blood_glucose" int, "rosen_modified_hachinski_ischemic_score" int, "body_mass_index_bmi" float, "age" float, ...
### 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 SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, ...
### Context: CREATE TABLE table_1341663_44 ( district VARCHAR, party VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which district is republican? ### Query: SELECT district FROM table_1341663_44 WHERE party = "Republican"
### Context: CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varch...
### 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 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 diagnoses ( 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_34954 ( "Year" real, "Men's singles" text, "Women's singles" text, "Men's doubles" text, "Women's doubles" text, "Mixed doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the women's singles before 19...
### Context: CREATE TABLE table_33101 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the average crowd size whe...
### Context: CREATE TABLE table_name_87 ( qual_1 VARCHAR, team VARCHAR, best VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the qual 1 for rusport and had a best of 58.665? ### Query: SELECT qual_1 FROM table_name_87 WHERE team = "rusport" AND b...
### 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 ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body t...
### Context: CREATE TABLE table_62641 ( "Team 1" text, "Score" text, "Team 2" text, "1st round" text, "2nd round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the team 1 with n mes olympique (d2) as team 2? ### Query: SELECT "Team 1" FROM...
### Context: CREATE TABLE person_info ( RYBH text, XBDM number, XBMC text, XM text, CSRQ time, CSD text, MZDM text, MZMC text, GJDM text, GJMC text, JGDM text, JGMC text, XLDM text, XLMC text, ZYLBDM text, ZYMC text ) CREATE TABLE jybgb ( YLJGDM text,...
### Context: CREATE TABLE table_49850 ( "Date" text, "H/A/N" text, "Opponent" text, "Score" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the score 123-112? ### Query: SELECT "Date" FROM table_49850 WHERE "Score" = '123-112...
### Context: CREATE TABLE table_66576 ( "School" text, "Mascot" text, "Location" text, "Enrollment" real, "IHSAA Class" text, "IHSAA Football Class" text, "County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Mascot has a Location of...
### Context: CREATE TABLE table_23259077_1 ( championship VARCHAR, opponent_in_the_final VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In which championship did John Newcombe play against Ken Rosewall in the final match? ### Query: SELECT championship FROM...
### 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 chip_model ( RAM_MiB INTEGER, model_name VARCHAR, chip_model VARCHAR ) CREATE TABLE phone ( RAM_MiB INTEGER, model_name VARCHAR, chip_model VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the average ram mib siz...
### 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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE ...