text
stringlengths
197
8.39k
### Context: CREATE TABLE table_name_32 ( name VARCHAR, location VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Name has a Location of ljubljana? ### Query: SELECT name FROM table_name_32 WHERE location = "ljubljana"
### Context: CREATE TABLE table_1341897_3 ( candidates VARCHAR, incumbent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many candidates represent the district of kenneth a. roberts? ### Query: SELECT COUNT(candidates) FROM table_1341897_3 WHERE incumbe...
### Context: CREATE TABLE table_12523 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Opponent has a Week larger than 3, and a Gam...
### Context: CREATE TABLE Flight ( distance INTEGER, price INTEGER, origin VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average distance and average price for flights from Los Angeles. ### Query: SELECT AVG(distance), AVG(price) FROM Fligh...
### Context: CREATE TABLE table_66053 ( "Year" real, "Category" text, "Film" text, "Result" text, "Lost to" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the loss to for the film Chicago? ### Query: SELECT "Lost to" FROM table_66053 WHERE ...
### Context: CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration n...
### 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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gend...
### Context: CREATE TABLE table_name_19 ( devices_per_channel VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Devices per channel where the Name is sata revision 3.0? ### Query: SELECT devices_per_channel FROM table_name_19 WHERE na...
### Context: CREATE TABLE table_9279 ( "Date" text, "Opponent" text, "Score" text, "Result" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Score has a Date of may 20? ### Query: SELECT "Score" FROM table_9279 WHERE "Date" = 'ma...
### Context: CREATE TABLE authorship ( authid number, instid number, paperid number, authorder number ) CREATE TABLE papers ( paperid number, title text ) CREATE TABLE inst ( instid number, name text, country text ) CREATE TABLE authors ( authid number, lname text, fna...
### Context: CREATE TABLE table_name_74 ( away_team VARCHAR, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the away team's score at Western Oval? ### Query: SELECT away_team AS score FROM table_name_74 WHERE venue = "western oval"
### Context: CREATE TABLE table_name_58 ( round VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of rounds for the player of Rell Tipton? ### Query: SELECT COUNT(round) FROM table_name_58 WHERE player = "rell tipton"
### Context: CREATE TABLE table_79934 ( "Year" real, "Awards" text, "Categorie" text, "Movie" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result at the Berlin International Film Festival in a year greater than 1987? #...
### Context: CREATE TABLE table_test_21 ( "id" int, "gender" string, "systolic_blood_pressure_sbp" int, "tachycardia" int, "body_weight" float, "renal_disease" bool, "anaemia" bool, "creatinine_clearance_cl" float, "estimated_glomerular_filtration_rate_egfr" int, "cardiogenic_sho...
### Context: CREATE TABLE nuclear_power_plants ( id text, name text, latitude text, longitude text, country text, status text, reactortype text, reactormodel text, constructionstartat text, operationalfrom text, operationalto text, capacity text, lastupdatedat text, ...
### Context: CREATE TABLE table_62333 ( "Year" real, "Delegate" text, "Hometown" text, "Pageant" text, "Result" text, "Other awards" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the latest year the miss internet www pageant had a result...
### Context: CREATE TABLE table_57411 ( "Year" real, "Result" text, "Award" text, "Category" text, "Film or series" text, "Character" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which film or series was nominated in the category of best fansi...
### Context: CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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, JS...
### Context: CREATE TABLE table_41332 ( "Rank" real, "Name" text, "Years" text, "Matches" real, "Goals" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the sum of Matches that has the Goals of 103, and the Rank larger than 9? ### Que...
### Context: CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) -- Using valid SQLite, answer the following ques...
### Context: CREATE TABLE table_7348 ( "Name" text, "Years" text, "League a" text, "FA Cup" text, "League Cup" text, "Other b" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Total for 1953 1964? ### Query: SELECT "...
### Context: CREATE TABLE table_name_8 ( home VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was at home on april 14? ### Query: SELECT home FROM table_name_8 WHERE date = "april 14"
### Context: CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE labe...
### Context: CREATE TABLE table_204_379 ( id number, "year" text, "title" text, "hangul" text, "network" text, "further info" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name of the title listed before music bank ? ### Query: SEL...
### Context: CREATE TABLE table_17282 ( "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_13920 ( "Position" text, "Gymnast" text, "A Score" real, "B Score" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the average B Score that has the Position of 2nd, and the Total smaller t...
### Context: CREATE TABLE table_13480122_5 ( game VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the game with record being 29 3 ### Query: SELECT game FROM table_13480122_5 WHERE record = "29–3"
### Context: CREATE TABLE table_46073 ( "Religion" text, "Suriname" text, "Paramaribo" text, "Wanica" text, "Nickerie" text, "Coronie" text, "Saramacca" text, "Commewijne" text, "Marowijne" text, "Para" text, "Brokopondo" text, "Sipaliwini" text ) -- Using valid SQLite,...
### Context: CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime...
### Context: CREATE TABLE table_58198 ( "Character" text, "Portrayed by" text, "Crime" text, "First appearance" text, "Last appearance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the first appearance when Chad Williams is a p...
### Context: CREATE TABLE table_57171 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the loss on may 29 ### Query: SELECT "Loss" FROM table_57171 WHERE ...
### Context: CREATE TABLE table_name_66 ( tv_time VARCHAR, road_team VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the TV time for Chicago's road game against Phoenix on June 18? ### Query: SELECT tv_time FROM table_name_66 WHERE...
### Context: CREATE TABLE table_37108 ( "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. -- How much Played has an Against lar...
### Context: CREATE TABLE table_27520 ( "June 10-11" text, "March 27-29" text, "January 15-16" text, "November 3" text, "August 21-22" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the November 3 result when the result for January 15-16 is ...
### Context: CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text )...
### Context: CREATE TABLE table_21234111_6 ( jason VARCHAR, public_vote__percentage VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the jason for public vote being 19.20% ### Query: SELECT jason FROM table_21234111_6 WHERE public_vote__percentage = "19....
### 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_58330 ( "Aircraft" text, "Origin" text, "Role" text, "Registration" text, "Number" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the role of the aircraft that originates from the European Union? ### Query: S...
### Context: CREATE TABLE table_21380 ( "Official Name" text, "Status" text, "Area km 2" text, "Population" real, "Census Ranking" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the community with an area of 30.75 sq. km.? ### Q...
### Context: CREATE TABLE table_73496 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Opponent in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is every surface with a score in the...
### Context: CREATE TABLE table_34355 ( "Season" text, "Player" text, "Position" text, "Nationality" text, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team did the 2003-04 winner play for? ### Query: SELECT "Team" FROM table_34355 WH...
### Context: CREATE TABLE table_name_79 ( episode_number VARCHAR, broadcast_date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the episode number of the episode broadcast on 21 September 2001? ### Query: SELECT episode_number FROM table_name_79 WHE...
### Context: CREATE TABLE tip ( tip_id int, business_id varchar, text longtext, user_id varchar, likes int, year int, month varchar ) CREATE TABLE category ( id int, business_id varchar, category_name varchar ) CREATE TABLE neighborhood ( id int, business_id varchar, ...
### Context: CREATE TABLE table_name_28 ( station VARCHAR, city_of_license VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Station has hagerstown? ### Query: SELECT station FROM table_name_28 WHERE city_of_license = "hagerstown"
### Context: CREATE TABLE table_36071 ( "Date" text, "Tournament" text, "Location" text, "Winner" text, "Score" text, "1st prize ( $ )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the location of the b.c. open? ### Query: SELECT "Loc...
### 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 table_71905 ( "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 Men's double held together with ...
### 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 prescriptions ( subject_id text...
### Context: CREATE TABLE table_2899 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How ma...
### Context: CREATE TABLE table_42610 ( "Condition" text, "Prothrombin time" text, "Partial thromboplastin time" text, "Bleeding time" text, "Platelet count" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Condition has a Bleeding time of unaff...
### Context: CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE Badges ( Id number, UserId numbe...
### Context: CREATE TABLE table_31657 ( "Year" real, "Division" text, "League" text, "Reg. Season" text, "Playoffs" text, "Open Cup" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Rampage's result in the playoffs in the year that th...
### Context: CREATE TABLE table_name_79 ( date VARCHAR, away_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date did South Melbourne play as the Away team? ### Query: SELECT date FROM table_name_79 WHERE away_team = "south melbourne"
### 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 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 date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE fare ( fare_id int, fr...
### Context: CREATE TABLE table_1137718_2 ( fastest_lap VARCHAR, grand_prix VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the fastest lap at the Mexican Grand Prix? ### Query: SELECT fastest_lap FROM table_1137718_2 WHERE grand_prix = "Mexican gra...
### Context: CREATE TABLE mzjzjlb ( YLJGDM text, JZLSH text, KH text, KLX number, MJZH text, HZXM text, NLS number, NLY number, ZSEBZ number, JZZTDM number, JZZTMC text, JZJSSJ time, TXBZ number, ZZBZ number, WDBZ number, JZKSBM text, JZKSMC text, ...
### Context: CREATE TABLE table_name_46 ( best_score INTEGER, worst_score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the best average score with a bad score of 15? ### Query: SELECT AVG(best_score) FROM table_name_46 WHERE worst_score = 15
### Context: CREATE TABLE table_31629 ( "Species" text, "Lived when ( mya )" text, "Lived where" text, "Fossil record" text, "Discovery / publication of name" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the discovery/publicatio of name fo...
### Context: CREATE TABLE table_12505 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" text, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What total average has 1988 has the year (s) won? ### Query: SELECT ...
### Context: CREATE TABLE table_23308178_7 ( score VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the results for all games which involved the detroit red wings. ### Query: SELECT score FROM table_23308178_7 WHERE opponent = "Detroit ...
### Context: CREATE TABLE stadium ( ID int, name text, Capacity int, City text, Country text, Opening_year int ) CREATE TABLE swimmer ( ID int, name text, Nationality text, meter_100 real, meter_200 text, meter_300 text, meter_400 text, meter_500 text, meter_...
### Context: CREATE TABLE table_10848177_1 ( singers VARCHAR, lyricist VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For which singers was Alangudi Somu the lyricist? ### Query: SELECT singers FROM table_10848177_1 WHERE lyricist = "Alangudi Somu"
### Context: CREATE TABLE table_11698 ( "Entrant" text, "Constructor" text, "Chassis" text, "Engine" text, "Driver" text, "Rounds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the constructor for jo bonnier of 6 rounds? ### Query: SE...
### Context: CREATE TABLE table_name_96 ( player VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which player had a score of 70? ### Query: SELECT player FROM table_name_96 WHERE score = 70
### Context: CREATE TABLE table_name_91 ( modulation VARCHAR, power VARCHAR, channel VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On channel 32, when the power is 32 kW horizontal, what is the modulation? ### Query: SELECT modulation FROM table_name_9...
### Context: CREATE TABLE table_10031 ( "Date" text, "H/A/N" text, "Opponent" text, "Score" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Record, when Score is 104-99? ### Query: SELECT "Record" FROM table_10031 WHERE "Score...
### Context: CREATE TABLE table_77053 ( "City of license" text, "Identifier" text, "Frequency" text, "Power" text, "Class" text, "RECNet" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the Power with 88.5 fm Frequency ### Query: SELECT ...
### Context: CREATE TABLE table_name_19 ( opponent VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Opponent, when Attendance is 58,836? ### Query: SELECT opponent FROM table_name_19 WHERE attendance = "58,836"
### Context: CREATE TABLE appellations ( No INTEGER, Appelation TEXT, County TEXT, State TEXT, Area TEXT, isAVA TEXT ) CREATE TABLE grapes ( ID INTEGER, Grape TEXT, Color TEXT ) CREATE TABLE wine ( No INTEGER, Grape TEXT, Winery TEXT, Appelation TEXT, State TEXT...
### 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 table_31744 ( "Nomination" text, "Actor's Name" text, "Film Name" text, "Director" text, "Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the actor from russia for anastasiya slutskaya ### Query: SELECT "Ac...
### Context: CREATE TABLE table_79938 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalog" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which region is identified as 38xa-3 in the catalog? ### Query: SELECT "Region" FROM table_799...
### Context: CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE...
### 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_26314 ( "Administrative District" text, "DS Divisions" real, "GN Divisions" real, "Total Area (km 2 )" real, "Land Area (km 2 )" real, "Sri Lankan Tamil" real, "Sri Lankan Moors" real, "Sinhalese" real, "Indian Tamil" real, "Other" real, "Total...
### Context: CREATE TABLE table_51793 ( "Year" text, "Team" text, "Comp" text, "Long" text, "Rate" text, "RAtt" text, "RYds" text, "RAvg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the long in 1994? ### Query: SELECT "Long" ...
### Context: CREATE TABLE table_7151 ( "Event" text, "2006\u201307" text, "2007\u201308" text, "2008\u201309" text, "2009\u201310" text, "2010\u201311" text, "2011\u201312" text, "2012\u201313" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
### Context: CREATE TABLE people ( People_ID int, Sex text, Name text, Date_of_Birth text, Height real, Weight real ) CREATE TABLE candidate ( Candidate_ID int, People_ID int, Poll_Source text, Date text, Support_rate real, Consider_rate real, Oppose_rate real, U...
### Context: CREATE TABLE table_name_80 ( band VARCHAR, female VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What band performed when Samantha Mumba presented? ### Query: SELECT band FROM table_name_80 WHERE female = "samantha mumba"
### Context: CREATE TABLE table_30225 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tabl...
### 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 employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varc...
### 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 ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDat...
### 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 table_name_67 ( rank INTEGER, date VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the rank for February 11, 2012 with less than 18,735 in attendance? ### Query: SELECT AVG(rank) FROM table_name_67 WHE...
### Context: CREATE TABLE table_204_510 ( id number, "team 1" text, "agg." text, "team 2" text, "1st leg" text, "2nd leg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what nation is next after porto on team 2 ### Query: SELECT "team 2" FROM t...
### Context: CREATE TABLE table_name_5 ( tournament VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the value in 2009 when 2005 was A for the Australian Open? ### Query: SELECT 2009 FROM table_name_5 WHERE 2005 = "a" AND tournament = "australian open"
### Context: CREATE TABLE wdmzjzjlb ( CYBQDM text, CYBQMC text, CYCWH text, CYKSDM text, CYKSMC text, CYSJ time, CYZTDM number, HZXM text, JZKSDM text, JZKSMC text, JZLSH number, KH text, KLX number, MZBMLX number, MZJZLSH text, MZZDBM text, MZZDMC tex...
### 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 PostTags ( PostId number, TagId number ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress tex...
### Context: CREATE TABLE table_76725 ( "Date" text, "Home team" text, "Score" text, "Away team" text, "Venue" text, "Box Score" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the report at State Sports Centre? ### Q...
### Context: CREATE TABLE Participants_in_Events ( Event_ID INTEGER, Participant_ID INTEGER ) CREATE TABLE Events ( Event_ID INTEGER, Service_ID INTEGER, Event_Details VARCHAR(255) ) CREATE TABLE Participants ( Participant_ID INTEGER, Participant_Type_Code CHAR(15), Participant_Details...
### Context: CREATE TABLE photos ( camera_lens_id VARCHAR ) CREATE TABLE camera_lens ( name VARCHAR, id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of each camera lens and the number of photos taken by it? Order the result by the cou...
### Context: CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE food_service ( meal_code text, meal_number int, ...
### Context: CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE program_requirement ( program_id int, category varchar, mi...
### Context: CREATE TABLE table_36838 ( "Surname" text, "First" text, "D.O.B." text, "Bats" text, "Throws" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Position has a DOB of 13 may 1987? ### Query: SELECT "Position" FRO...
### 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_38 ( opponent VARCHAR, rules VARCHAR, round VARCHAR, time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Opponent has a Round of 3, a Time of n/a, and a Rules of n/a? ### Query: SELECT opponent FROM table_n...