text
stringlengths
197
8.39k
### Context: CREATE TABLE exhibition_record ( Exhibition_ID int, Date text, Attendance int ) CREATE TABLE exhibition ( Exhibition_ID int, Year int, Theme text, Artist_ID int, Ticket_Price real ) CREATE TABLE artist ( Artist_ID int, Name text, Country text, Year_Join int...
### 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 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 t_kc24 ( MED_SAFE_PAY_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, MED_CLINIC_ID text, REF_SLT_FLG number, CLINIC_SLT_DATE time, COMP_ID text, PERSON_ID text, FLX_MED_ORG_ID text, INSU_TYPE text, MED_AMOUT number, PER_ACC_PAY number, ...
### Context: CREATE TABLE table_name_54 ( fat32 VARCHAR, ntfs VARCHAR, hpfs VARCHAR, refs VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which FAT32 has a no for HPFS, a no for ReFS, and a yes v3.0 fir NTFS? ### Query: SELECT fat32 FROM table_name_5...
### Context: CREATE TABLE hosting_city ( Year int, Match_ID int, Host_City text ) CREATE TABLE city ( City_ID int, City text, Hanzi text, Hanyu_Pinyin text, Regional_Population int, GDP real ) CREATE TABLE match ( Match_ID int, Date text, Venue text, Score text, ...
### Context: CREATE TABLE table_name_74 ( term_in_office VARCHAR, member VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was Hon Les Johnson in office? ### Query: SELECT term_in_office FROM table_name_74 WHERE member = "hon les johnson"
### Context: CREATE TABLE table_17467147_1 ( series__number VARCHAR, directed_by VARCHAR, written_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When debra j. fisher & erica messer are the writers and the director is patrick norris what is the series ...
### 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 mzjybgb ( BBCJBW tex...
### Context: CREATE TABLE table_56492 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the sum of laps when grid is less than 20 and johnny herbert is driving? ### ...
### Context: CREATE TABLE table_2562572_52 ( largest_ethnic_group__2002_ VARCHAR, cyrillic_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the largest ethnic group (2002) when cyrillic name is ? ### Query: SELECT largest_ethnic_group__2002_ FROM...
### Context: CREATE TABLE table_1503 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Falcons points" real, "Opponents" real, "Record" text, "Streak" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How m...
### Context: CREATE TABLE ENROLL ( CLASS_CODE varchar(5), STU_NUM int, ENROLL_GRADE varchar(50) ) CREATE TABLE PROFESSOR ( EMP_NUM int, DEPT_CODE varchar(10), PROF_OFFICE varchar(50), PROF_EXTENSION varchar(4), PROF_HIGH_DEGREE varchar(5) ) CREATE TABLE DEPARTMENT ( DEPT_CODE varch...
### Context: CREATE TABLE table_24132 ( "Rank" real, "Average" text, "Player" text, "Runs" real, "Innings" real, "Not Out" real, "Period" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- During what period did Ricky Ponting play? ### Query: S...
### Context: CREATE TABLE hz_info ( KH text, KLX number, YLJGDM text, RYBH text ) CREATE TABLE jyjgzbb ( JYZBLSH text, YLJGDM text, BGDH text, BGRQ time, JYRQ time, JCRGH text, JCRXM text, SHRGH text, SHRXM text, JCXMMC text, JCZBDM text, JCFF text, J...
### Context: CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate...
### Context: CREATE TABLE table_74541 ( "Class" text, "Date" text, "Race" text, "Driver" text, "Position" real, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what team has a drive name emmanuel de graffenried and a position larger than 1...
### Context: CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, int...
### Context: CREATE TABLE table_204_753 ( id number, "no." number, "name" text, "position" text, "date of birth (age)" text, "signed from" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the oldest player on the squad in...
### Context: CREATE TABLE table_17085724_1 ( sarasota VARCHAR, indianapolis_concerts VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the sarasota samantha sharpe ### Query: SELECT sarasota FROM table_17085724_1 WHERE indianapolis_concerts = "Samantha Sh...
### Context: CREATE TABLE manufacturers ( code number, name text, headquarter text, founder text, revenue number ) CREATE TABLE products ( code number, name text, price number, manufacturer number ) -- Using valid SQLite, answer the following questions for the tables provided abov...
### Context: CREATE TABLE party_host ( Party_ID int, Host_ID int, Is_Main_in_Charge bool ) CREATE TABLE host ( Host_ID int, Name text, Nationality text, Age text ) CREATE TABLE party ( Party_ID int, Party_Theme text, Location text, First_year text, Last_year text, N...
### Context: CREATE TABLE table_name_76 ( mintage VARCHAR, theme VARCHAR, issue_price VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the mintage of the coin with a Toronto Maple Leafs theme and an issue price below 24.95? ### Query: SELECT minta...
### Context: CREATE TABLE table_55699 ( "D 41" text, "D 42" text, "D 43" text, "D 44" text, "D 45" text, "D 46" text, "D 47" text, "R 53" text, "R 52" text, "R 51" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want the D 42 wi...
### Context: CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE food_serv...
### 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 instructor ( id text, name text, dept_name text, salary number ) CREATE TABLE teaches ( id text, course_id text, sec_id text, semester text, year number ) CREATE TABLE section ( course_id text, sec_id text, semester text, year number, b...
### Context: CREATE TABLE mzjzjlb ( HXPLC number, HZXM text, JLSJ time, JZJSSJ time, JZKSBM text, JZKSMC text, JZKSRQ time, JZLSH text, JZZDBM text, JZZDSM text, JZZTDM number, JZZTMC text, KH text, KLX number, MJZH text, ML number, MZZYZDZZBM text, ...
### Context: CREATE TABLE table_name_81 ( lead VARCHAR, home VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the lead of the team from Lockerbie? ### Query: SELECT lead FROM table_name_81 WHERE home = "lockerbie"
### Context: CREATE TABLE table_55641 ( "Player" text, "Position" text, "Date of Birth (Age)" text, "Caps" real, "Club/province" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position for jj gagiano? ### Query: SELECT "Position" FROM table_55...
### Context: CREATE TABLE table_name_62 ( rank INTEGER, time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the rank of the person with a time of 1:44.757? ### Query: SELECT MAX(rank) FROM table_name_62 WHERE time = "1:44.757"
### Context: CREATE TABLE table_2217 ( "Poll source" text, "Dates administered" text, "Tom Emmer (R)" text, "Matt Entenza (DFL)" text, "Tom Horner (I)" text, "Undecided" text, "Sampling error" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- W...
### Context: CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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, JSBBRQ...
### 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 lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, val...
### Context: CREATE TABLE table_name_65 ( driver VARCHAR, time_retired VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had to retire due to suspension? ### Query: SELECT driver FROM table_name_65 WHERE time_retired = "suspension"
### Context: CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE microlab ( microlabid...
### Context: CREATE TABLE table_name_95 ( player VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which player has the score 72-67-69=208? ### Query: SELECT player FROM table_name_95 WHERE score = 72 - 67 - 69 = 208
### 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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( 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_1373542_1 ( reported_cost VARCHAR, acquired_from VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the reported cost of the asset acquired from Standard & Poor's? ### Query: SELECT reported_cost FROM table_1373542_1 WHE...
### Context: CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int,...
### Context: CREATE TABLE table_61955 ( "Year" real, "Award" text, "Category" text, "Nominee" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year had Best Actor in a Musical as a category? ### Query: SELECT SUM("Year") FROM tabl...
### Context: CREATE TABLE table_70978 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What To par scored 72-71-68=211? ### Query: SELECT "To par" FROM table_70978 WHERE "Score" = ...
### Context: CREATE TABLE table_47440 ( "Year" real, "Nominated/Won" text, "Award/category" text, "Festival/organization" text, "Role" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the first year that there was a Satellite Award? ### Query...
### Context: CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE ta ( campus_job...
### 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 jyjgzbb ( BGDH text,...
### Context: CREATE TABLE table_29087004_2 ( written_by VARCHAR, united_states_original_airdate VARCHAR, directed_by VARCHAR, canada_original_airdate VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who wrote the episode directed by Jos Humphrey that h...
### Context: CREATE TABLE building ( building_id text, name text, street_address text, years_as_tallest text, height_feet number, floors number ) CREATE TABLE protein ( common_name text, protein_name text, divergence_from_human_lineage number, accession_number text, sequence...
### Context: CREATE TABLE table_204_101 ( id number, "#" number, "title" text, "producer(s)" text, "performer (s)" text, "sample(s)" text, "length" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how long is the song likwit ? ### Query: SELE...
### Context: CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE fare_basis ( f...
### Context: CREATE TABLE table_203_716 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what country is the only country with at least 20 go...
### Context: CREATE TABLE table_10088 ( "Number" real, "Name" text, "Year Built" text, "Boat Builder" text, "Current Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year did J. Jones, trearddur bay build a boat with a current status of t...
### 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_33 ( name VARCHAR, qual_2 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What name has a qual 2 of 1:46.025? ### Query: SELECT name FROM table_name_33 WHERE qual_2 = "1:46.025"
### Context: CREATE TABLE table_78604 ( "Letter" text, "Pronunciation spelled free" text, "Pronunciation spelled checked" text, "Example spelled free" text, "Example spelled checked" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Pronunciati...
### 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_name_21 ( first_elected VARCHAR, state VARCHAR, member VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the year First elected, when the State is vic, and when the Member is Hon Don Chipp? ### Query: SELECT first_el...
### Context: CREATE TABLE table_17056 ( "Player" text, "Position" text, "School" text, "Hometown" text, "MLB Draft" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What school did the player attend who's hometown was Montvale, NJ? ### Query: SELECT ...
### Context: CREATE TABLE table_13685 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date was there a playoff on the margin of victory during the S...
### Context: CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE program ( program_id int, ...
### Context: CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE Tags ( Id number, TagName ...
### Context: CREATE TABLE table_72688 ( "Conflict" text, "United Nations Mission" text, "Sexual abuse 1" real, "Murder 2" real, "Extortion/Theft 3" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sexual abuse rate where the conflict is th...
### Context: CREATE TABLE table_17080868_8 ( location_attendance VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- February 12 is the date for all location attendance. ### Query: SELECT location_attendance FROM table_17080868_8 WHERE date = "Febr...
### Context: CREATE TABLE table_65818 ( "Part Number" text, "Pins" text, "Body Width/mm" real, "Body Length/mm" real, "Lead Pitch/mm" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Bod...
### Context: CREATE TABLE table_15872814_4 ( score VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the score for december 28 ### Query: SELECT score FROM table_15872814_4 WHERE date = "December 28"
### Context: CREATE TABLE table_74307 ( "#" real, "Episode" text, "Directed by" text, "Written by" text, "U.S. Viewers (in millions)" text, "Original airdate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who wrote the episode with 9.81 million...
### Context: CREATE TABLE table_name_73 ( score VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score for Darren Clarke? ### Query: SELECT score FROM table_name_73 WHERE player = "darren clarke"
### Context: CREATE TABLE table_10269427_3 ( episode__number VARCHAR, production_code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the episode # for production code 227 ### Query: SELECT episode__number FROM table_10269427_3 WHERE production_code ...
### 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 d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, i...
### 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 allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, d...
### Context: CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE comment_instructor ( instruct...
### Context: CREATE TABLE table_27686 ( "Casinos" real, "County" text, "Road" text, "1-Jul-08" real, "FY07 $millions" text, "FY08 $millions" text, "FY09 $millions" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many casinos are associate...
### Context: CREATE TABLE table_14368332_1 ( average VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result in 91-92 for the team with a 1.053 average? ### Query: SELECT 1991 AS _92 FROM table_14368332_1 WHERE average = "1.053"
### Context: CREATE TABLE table_name_57 ( genitive_1 VARCHAR, genitive_3 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Genitive 1 has a Genitive 3 of *n(i)-ia? ### Query: SELECT genitive_1 FROM table_name_57 WHERE genitive_3 = "*n(i)-ia"
### Context: CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVIN...
### Context: CREATE TABLE film_market_estimation ( estimation_id number, low_estimate number, high_estimate number, film_id number, type text, market_id number, year number ) CREATE TABLE market ( market_id number, country text, number_cities number ) CREATE TABLE film ( fi...
### Context: CREATE TABLE aircraft ( aircraft_id number, order_year number, manufacturer text, model text, fleet_series text, powertrain text, fuel_propulsion text ) CREATE TABLE pilot_record ( record_id number, pilot_id number, aircraft_id number, date text ) CREATE TABLE ...
### Context: CREATE TABLE table_79565 ( "Year" real, "Competition Description" text, "Location" text, "Apparatus" text, "Rank-Final" text, "Score-Final" real, "Rank-Qualifying" text, "Score-Qualifying" real ) -- Using valid SQLite, answer the following questions for the tables provided...
### Context: CREATE TABLE table_name_80 ( jump_3 VARCHAR, jump_2 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who has a Jump 2 of 7.06, and what is this person's Jump 3? ### Query: SELECT jump_3 FROM table_name_80 WHERE jump_2 = "7.06"
### Context: CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ...
### 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 area ( course_id int, area varchar ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, ...
### 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_49057 ( "Year" real, "Dates" text, "Champion" text, "Country" text, "Score" real, "To par" text, "Margin of victory" text, "Purse ( US $ )" real, "Winner's share" text ) -- Using valid SQLite, answer the following questions for the tables provided ab...
### Context: CREATE TABLE table_56494 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the driver when grid is 11? ### Query: SELECT "Driver" FROM table_56494 WHERE ...
### Context: CREATE TABLE table_name_53 ( base_pairs INTEGER, genes VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of base pairs with 784 genes? ### Query: SELECT AVG(base_pairs) FROM table_name_53 WHERE genes = 784
### Context: CREATE TABLE Addresses ( address_id INTEGER, address_content VARCHAR(80), city VARCHAR(50), zip_postcode VARCHAR(20), state_province_county VARCHAR(50), country VARCHAR(50), other_address_details VARCHAR(255) ) CREATE TABLE Products ( product_id INTEGER, product_details...
### Context: CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_typ...
### Context: CREATE TABLE table_35901 ( "Year" real, "Album" text, "Oricon position" real, "1st week sales" text, "Copies sold" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many copies were sold where the position is lager than 1 in 1988? ###...
### Context: CREATE TABLE table_26520 ( "Year" real, "Division" real, "League" text, "Regular Season" text, "Playoffs" text, "Open Cup" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the playoff result where the league did not qualify i...
### Context: CREATE TABLE table_53827 ( "Tournament" text, "Winner" text, "Runner-up" text, "Score" text, "Third Place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score with third place of stefan edberg? ### Query: SELECT "Score" FR...
### Context: CREATE TABLE table_name_81 ( games INTEGER, year INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- After the 2013 season, what was the fewest number of games that Willis McGahee played in a single season? ### Query: SELECT MIN(games) FROM table_na...
### Context: CREATE TABLE table_10646790_2 ( week VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many weeks are there that include the date November 9, 1969. ### Query: SELECT COUNT(week) FROM table_10646790_2 WHERE date = "November 9, 196...
### Context: CREATE TABLE table_name_89 ( userpics_free VARCHAR, monthly_cost_for_paid_account VARCHAR, s_registered_user VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Userpics Free, when Monthly Cost For Paid Account is 'unknown', and when S Re...
### Context: CREATE TABLE table_name_30 ( bronze INTEGER, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the bronze number when the total is 54/ ### Query: SELECT AVG(bronze) FROM table_name_30 WHERE total = 54
### 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 prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, ...
### Context: CREATE TABLE table_70428 ( "Player" text, "Country" text, "Year won" real, "Total" real, "To par" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the to par for Paul Azinger from the United States after 1986 for a total bigger th...
### Context: CREATE TABLE table_44726 ( "Date" text, "Time" text, "Score" text, "Set 1" text, "Set 2" text, "Set 3" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total when the score for set 2 is 25 22? ### Query:...