conversations
listlengths
2
2
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE time_zone (\n time_zone_code text,\n time_zone_name text,\n hours_from_gmt int\n)\n\nCREATE TABLE airport_service (\n city_code varchar,\n airport_code varchar,\n miles_distant int,\n direction varchar,\n minutes_distant int\n)\n\nCREATE TAB...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE TagSynonyms (\n Id number,\n SourceTagName text,\n TargetTagName text,\n CreationDate time,\n OwnerUserId number,\n AutoRenameCount number,\n LastAutoRename time,\n Score number,\n ApprovedByUserId number,\n ApprovalDate time\n)\n\nCRE...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_37988 (\n \"School\" text,\n \"Team Name\" text,\n \"Town\" text,\n \"County\" text,\n \"School Enrollment (2008\\u201310)\" real,\n \"Football?\" text\n)" }, { "from": "human", "value": "What school had a team name of the Trojan...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE procedures (\n subject_id text,\n hadm_id text,\n icd9_code text,\n short_title text,\n long_title text\n)\n\nCREATE TABLE diagnoses (\n subject_id text,\n hadm_id text,\n icd9_code text,\n short_title text,\n long_title text\n)\n\nCRE...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_16577990_1 (\n tree_species VARCHAR,\n central_forest_reserve VARCHAR\n)" }, { "from": "human", "value": "How many tree species are in the kitechura reserve?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_12013 (\n \"Rider\" text,\n \"Horse\" text,\n \"Faults\" text,\n \"Round 1 + 2A Points\" text,\n \"Total\" real\n)" }, { "from": "human", "value": "Tell me the horse when the faults are 9 and the total is 46.36" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (\n total INTEGER,\n gold VARCHAR,\n rank VARCHAR\n)" }, { "from": "human", "value": "What average total has 0 as the gold, with 6 as the rank?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE icustays (\n row_id number,\n subject_id number,\n hadm_id number,\n icustay_id number,\n first_careunit text,\n last_careunit text,\n first_wardid number,\n last_wardid number,\n intime time,\n outtime time\n)\n\nCREATE TABLE d_items ...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE tryout (\n pid number,\n cname text,\n ppos text,\n decision text\n)\n\nCREATE TABLE player (\n pid number,\n pname text,\n ycard text,\n hs number\n)\n\nCREATE TABLE college (\n cname text,\n state text,\n enr number\n)" }, { ...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_3 (\n place VARCHAR,\n score VARCHAR\n)" }, { "from": "human", "value": "what is the place when the score is 68-70-68=206?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE job_history (\n EMPLOYEE_ID decimal(6,0),\n START_DATE date,\n END_DATE date,\n JOB_ID varchar(10),\n DEPARTMENT_ID decimal(4,0)\n)\n\nCREATE TABLE locations (\n LOCATION_ID decimal(4,0),\n STREET_ADDRESS varchar(40),\n POSTAL_CODE varchar(1...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_204_32 (\n id number,\n \"season\" number,\n \"division\" text,\n \"w-l\" text,\n \"finish\" text,\n \"home\" text,\n \"road\" text,\n \"gf\" number,\n \"ga\" number,\n \"coach\" text,\n \"playoffs\" text,\n \"avg attendanc...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE job_history (\n EMPLOYEE_ID decimal(6,0),\n START_DATE date,\n END_DATE date,\n JOB_ID varchar(10),\n DEPARTMENT_ID decimal(4,0)\n)\n\nCREATE TABLE countries (\n COUNTRY_ID varchar(2),\n COUNTRY_NAME varchar(40),\n REGION_ID decimal(10,0)\n)...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE demographic (\n subject_id text,\n hadm_id text,\n name text,\n marital_status text,\n age text,\n dob text,\n gender text,\n language text,\n religion text,\n admission_type text,\n days_stay text,\n insurance text,\n ethnici...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE prescriptions (\n row_id number,\n subject_id number,\n hadm_id number,\n startdate time,\n enddate time,\n drug text,\n dose_val_rx text,\n dose_unit_rx text,\n route text\n)\n\nCREATE TABLE icustays (\n row_id number,\n subject_id...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE Movie (\n mID int,\n title text,\n year int,\n director text\n)\n\nCREATE TABLE Reviewer (\n rID int,\n name text\n)\n\nCREATE TABLE Rating (\n rID int,\n mID int,\n stars int,\n ratingDate date\n)" }, { "from": "human", "v...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (\n week INTEGER,\n attendance VARCHAR\n)" }, { "from": "human", "value": "Total weeks of 49,980 attendance?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (\n Id VARCHAR\n)" }, { "from": "human", "value": "Name the 2008 for 2012 of sf" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_203_694 (\n id number,\n \"#\" number,\n \"name\" text,\n \"took office\" text,\n \"left office\" text,\n \"party\" text\n)" }, { "from": "human", "value": "nejat konuk and dervi ş ero ğ lu are from which party ?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_18600760_20 (\n ansi_code VARCHAR,\n latitude VARCHAR\n)" }, { "from": "human", "value": "How many ansi codes are there for longitude 46.415037?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_28 (\n railway_number_s_ VARCHAR,\n class VARCHAR\n)" }, { "from": "human", "value": "What's the railway number of a D(rebuild) class?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_train_169 (\n \"id\" int,\n \"leukocytes\" int,\n \"hemoglobin_a1c_hba1c\" float,\n \"urine_albumin_excretion\" int,\n \"estimated_glomerular_filtration_rate_egfr\" int,\n \"glucola_beverage_gct\" int,\n \"age\" float,\n \"NOUSE\" floa...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE cost (\n costid number,\n uniquepid text,\n patienthealthsystemstayid number,\n eventtype text,\n eventid number,\n chargetime time,\n cost number\n)\n\nCREATE TABLE intakeoutput (\n intakeoutputid number,\n patientunitstayid number,\n ...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_10468 (\n \"Independent\" text,\n \"Lost\" real,\n \"Tied\" real,\n \"Pct.\" real,\n \"Years\" real,\n \"Total Games\" real\n)" }, { "from": "human", "value": "What is the average number lost when the PCT is more than 0.7334 and ...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE microlab (\n microlabid number,\n patientunitstayid number,\n culturesite text,\n organism text,\n culturetakentime time\n)\n\nCREATE TABLE vitalperiodic (\n vitalperiodicid number,\n patientunitstayid number,\n temperature number,\n sao2...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE lab (\n labid number,\n patientunitstayid number,\n labname text,\n labresult number,\n labresulttime time\n)\n\nCREATE TABLE vitalperiodic (\n vitalperiodicid number,\n patientunitstayid number,\n temperature number,\n sao2 number,\n ...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_54361 (\n \"Candidate\" text,\n \"Contributions\" real,\n \"Loans Received\" real,\n \"All Receipts\" real,\n \"Operating Expenditures\" real,\n \"All Disbursements\" real\n)" }, { "from": "human", "value": "How much is the lowes...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE inputevents_cv (\n row_id number,\n subject_id number,\n hadm_id number,\n icustay_id number,\n charttime time,\n itemid number,\n amount number\n)\n\nCREATE TABLE diagnoses_icd (\n row_id number,\n subject_id number,\n hadm_id number,...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_70723 (\n \"Rank\" real,\n \"Nation\" text,\n \"Gold\" real,\n \"Silver\" real,\n \"Bronze\" real,\n \"Total\" real\n)" }, { "from": "human", "value": "How many gold medals does the country ranked higher than 2 with more than 8 b...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_203_873 (\n id number,\n \"model name\" text,\n \"length\" text,\n \"width\" text,\n \"height\" text,\n \"riders\" number,\n \"capacity\" number,\n \"description\" text,\n \"portable\" text,\n \"notes\" number\n)" }, { "f...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (\n engine VARCHAR,\n year INTEGER\n)" }, { "from": "human", "value": "Which engine has a Year larger than 1969?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_53738 (\n \"Home team\" text,\n \"Home team score\" text,\n \"Away team\" text,\n \"Away team score\" text,\n \"Venue\" text,\n \"Crowd\" real,\n \"Date\" text\n)" }, { "from": "human", "value": "Who was the home team when the...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (\n position VARCHAR,\n years_for_jazz VARCHAR\n)" }, { "from": "human", "value": "Which position was active in Jazz in 2002-03?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE diagnosis (\n diagnosisid number,\n patientunitstayid number,\n diagnosisname text,\n diagnosistime time,\n icd9code text\n)\n\nCREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gen...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (\n actor VARCHAR,\n year VARCHAR\n)" }, { "from": "human", "value": "Which actor won in 1966?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE restriction (\n restriction_code text,\n advance_purchase int,\n stopovers text,\n saturday_stay_required text,\n minimum_stay int,\n maximum_stay int,\n application text,\n no_discounts text\n)\n\nCREATE TABLE flight_stop (\n flight_id i...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_3703 (\n \"Team\" text,\n \"Outgoing manager\" text,\n \"Manner of departure\" text,\n \"Date of vacancy\" text,\n \"Replaced by\" text,\n \"Date of appointment\" text\n)" }, { "from": "human", "value": "For outgoing manager is a...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_18703133_6 (\n losses VARCHAR,\n team VARCHAR\n)" }, { "from": "human", "value": "How many losses are there for team tembetary?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_1053802_1 (\n main_presenters VARCHAR,\n region_country VARCHAR\n)" }, { "from": "human", "value": "What is the main presenter of bulgaria?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_28715942_5 (\n original_artist VARCHAR,\n vocal_percussionist VARCHAR\n)" }, { "from": "human", "value": "What is the original artist when the vocal percussionist is Alexei Kalveks?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE Ref_Document_Types (\n Document_Type_Code CHAR(15),\n Document_Type_Name VARCHAR(255),\n Document_Type_Description VARCHAR(255)\n)\n\nCREATE TABLE All_Documents (\n Document_ID INTEGER,\n Date_Stored DATETIME,\n Document_Type_Code CHAR(15),\n D...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (\n total INTEGER,\n gold VARCHAR,\n bronze VARCHAR,\n nation VARCHAR\n)" }, { "from": "human", "value": "What is the sum of all total medals with more than 2 bronze medals and more than 1 gold medal for the United States?" }...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_70472 (\n \"Date\" text,\n \"Tournament\" text,\n \"Winning score\" text,\n \"Margin of victory\" text,\n \"Runner(s)-up\" text\n)" }, { "from": "human", "value": "What was the winning score of the Buy.com Siouxland Open?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE lab (\n subject_id text,\n hadm_id text,\n itemid text,\n charttime text,\n flag text,\n value_unit text,\n label text,\n fluid text\n)\n\nCREATE TABLE prescriptions (\n subject_id text,\n hadm_id text,\n icustay_id text,\n drug_...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_59768 (\n \"Year\" real,\n \"Pick\" text,\n \"Player\" text,\n \"Position\" text,\n \"Country\" text,\n \"Previous team (League)\" text\n)" }, { "from": "human", "value": "What is Country, when Previous Team (League) is 'Kingston...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE rating (\n rid number,\n mid number,\n stars number,\n ratingdate time\n)\n\nCREATE TABLE reviewer (\n rid number,\n name text\n)\n\nCREATE TABLE movie (\n mid number,\n title text,\n year number,\n director text\n)" }, { "from...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE ref_document_status (\n document_status_code text,\n document_status_description text\n)\n\nCREATE TABLE circulation_history (\n document_id number,\n draft_number number,\n copy_number number,\n employee_id number\n)\n\nCREATE TABLE documents (\n...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_66466 (\n \"Sport\" text,\n \"Body\" text,\n \"Year\" text,\n \"Event type\" text,\n \"Location\" text,\n \"Nations\" text\n)" }, { "from": "human", "value": "What nations participated in 2007?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_34550 (\n \"Rank\" real,\n \"Country\" text,\n \"International tourist arrivals (2012)\" text,\n \"International tourist arrivals (2011)\" text,\n \"Change (2011 to 2012)\" text,\n \"Change (2010 to 2011)\" text\n)" }, { "from": "hum...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_11219 (\n \"Stage\" text,\n \"Winner\" text,\n \"General classification\" text,\n \"Points classification\" text,\n \"Trofeo Fast Team\" text\n)" }, { "from": "human", "value": "What stage did team Carrera Jeans-Tassoni have when Ma...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_27597 (\n \"Team\" text,\n \"Outgoing manager\" text,\n \"Manner of departure\" text,\n \"Date of vacancy\" text,\n \"Position in table\" text,\n \"Replaced by\" text,\n \"Date of appointment\" text\n)" }, { "from": "human", "...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (\n venue VARCHAR,\n date VARCHAR\n)" }, { "from": "human", "value": "What venue was on 27 May 2000?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE intakeoutput (\n intakeoutputid number,\n patientunitstayid number,\n cellpath text,\n celllabel text,\n cellvaluenumeric number,\n intakeoutputtime time\n)\n\nCREATE TABLE allergy (\n allergyid number,\n patientunitstayid number,\n drugn...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_9828 (\n \"Model number\" text,\n \"sSpec number\" text,\n \"Frequency\" text,\n \"GPU frequency\" text,\n \"L2 cache\" text,\n \"I/O bus\" text,\n \"Memory\" text,\n \"Voltage\" text,\n \"Socket\" text,\n \"Release date\" text,\...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE d_icd_diagnoses (\n row_id number,\n icd9_code text,\n short_title text,\n long_title text\n)\n\nCREATE TABLE icustays (\n row_id number,\n subject_id number,\n hadm_id number,\n icustay_id number,\n first_careunit text,\n last_careuni...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE demographic (\n subject_id text,\n hadm_id text,\n name text,\n marital_status text,\n age text,\n dob text,\n gender text,\n language text,\n religion text,\n admission_type text,\n days_stay text,\n insurance text,\n ethnici...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (\n to_par VARCHAR,\n year VARCHAR\n)" }, { "from": "human", "value": "Which To par has a Year of 1994?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE stadium (\n ID int,\n name text,\n Capacity int,\n City text,\n Country text,\n Opening_year int\n)\n\nCREATE TABLE event (\n ID int,\n Name text,\n Stadium_ID int,\n Year text\n)\n\nCREATE TABLE swimmer (\n ID int,\n name text,\...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_36 (\n year VARCHAR,\n championship VARCHAR\n)" }, { "from": "human", "value": "Which year was the peter jackson classic?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE PostNotices (\n Id number,\n PostId number,\n PostNoticeTypeId number,\n CreationDate time,\n DeletionDate time,\n ExpiryDate time,\n Body text,\n OwnerUserId number,\n DeletionUserId number\n)\n\nCREATE TABLE PostTypes (\n Id number,\...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE chartevents (\n row_id number,\n subject_id number,\n hadm_id number,\n icustay_id number,\n itemid number,\n charttime time,\n valuenum number,\n valueuom text\n)\n\nCREATE TABLE procedures_icd (\n row_id number,\n subject_id number,\...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dis...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE procedures (\n subject_id text,\n hadm_id text,\n icd9_code text,\n short_title text,\n long_title text\n)\n\nCREATE TABLE lab (\n subject_id text,\n hadm_id text,\n itemid text,\n charttime text,\n flag text,\n value_unit text,\n ...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE prescriptions (\n subject_id text,\n hadm_id text,\n icustay_id text,\n drug_type text,\n drug text,\n formulary_drug_cd text,\n route text,\n drug_dose text\n)\n\nCREATE TABLE diagnoses (\n subject_id text,\n hadm_id text,\n icd9_c...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (\n district VARCHAR,\n constituency_number VARCHAR\n)" }, { "from": "human", "value": "What district has a constituency of 60?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_14553 (\n \"Year\" real,\n \"Entrant\" text,\n \"Chassis\" text,\n \"Engine\" text,\n \"Points\" real\n)" }, { "from": "human", "value": "When were there less than 1 point with a cosworth v8 engine in jolly club switzerland?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_20718 (\n \"Institution\" text,\n \"Location\" text,\n \"Team Nickname\" text,\n \"Joined TSCHL\" real,\n \"Home Arena\" text,\n \"Capacity\" real,\n \"Team Website\" text\n)" }, { "from": "human", "value": "For the flyers, wh...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE diagnoses (\n subject_id text,\n hadm_id text,\n icd9_code text,\n short_title text,\n long_title text\n)\n\nCREATE TABLE procedures (\n subject_id text,\n hadm_id text,\n icd9_code text,\n short_title text,\n long_title text\n)\n\nCRE...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE countries (\n COUNTRY_ID varchar(2),\n COUNTRY_NAME varchar(40),\n REGION_ID decimal(10,0)\n)\n\nCREATE TABLE employees (\n EMPLOYEE_ID decimal(6,0),\n FIRST_NAME varchar(20),\n LAST_NAME varchar(25),\n EMAIL varchar(25),\n PHONE_NUMBER varc...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_23292220_17 (\n scores VARCHAR,\n seans_team VARCHAR\n)" }, { "from": "human", "value": "Name the scores for chris ramsey and carol vorderman" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (\n games VARCHAR,\n tied VARCHAR\n)" }, { "from": "human", "value": "What is the number of games for the season with 10 ties?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (\n year VARCHAR,\n event VARCHAR,\n position VARCHAR\n)" }, { "from": "human", "value": "What year did she place 8th in the junior race?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE Ref_Characteristic_Types (\n characteristic_type_code VARCHAR(15),\n characteristic_type_description VARCHAR(80)\n)\n\nCREATE TABLE Products (\n product_id INTEGER,\n color_code VARCHAR(15),\n product_category_code VARCHAR(15),\n product_name VARC...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_56530 (\n \"Year\" text,\n \"Starts\" real,\n \"Cuts made\" real,\n \"Wins\" real,\n \"Top 10\" real,\n \"Top 25\" real,\n \"Earnings ($)\" real,\n \"Money list rank\" text\n)" }, { "from": "human", "value": "What is the sm...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_8509 (\n \"White\" text,\n \"Black\" text,\n \"Year\" real,\n \"Result\" text,\n \"Moves\" real,\n \"Tournament\" text,\n \"Opening\" text\n)" }, { "from": "human", "value": "What year had 32 moves?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_204_343 (\n id number,\n \"nation\" text,\n \"model\" text,\n \"length\" text,\n \"barrel length\" text,\n \"weight\" text\n)" }, { "from": "human", "value": "how long was the m1894 rifle 's barrel ?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (\n att INTEGER,\n yards VARCHAR,\n long VARCHAR\n)" }, { "from": "human", "value": "How many Atts that have Yards of 43 and a Long larger than 43?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_25220821_4 (\n mon_31_may VARCHAR,\n rank VARCHAR\n)" }, { "from": "human", "value": "How many times are listed for 31 May for the rider ranked 5?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE train (\n id int,\n train_number int,\n name text,\n origin text,\n destination text,\n time text,\n interval text\n)\n\nCREATE TABLE weekly_weather (\n station_id int,\n day_of_week text,\n high_temperature int,\n low_temperature i...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_56316 (\n \"Driver\" text,\n \"Constructor\" text,\n \"Laps\" real,\n \"Time/Retired\" text,\n \"Grid\" real\n)" }, { "from": "human", "value": "Which constructor has a Time/Retired of +37.311?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (\n tournament VARCHAR\n)" }, { "from": "human", "value": "What is the 2007 result when the 2010 result was 2r, at the US Open?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_22277 (\n \"Departure\" text,\n \"Going to\" text,\n \"Calling at\" text,\n \"Arrival\" text,\n \"Operator\" text\n)" }, { "from": "human", "value": "when does the train arriving at bourne at 11.45 departure" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE ReviewTaskTypes (\n Id number,\n Name text,\n Description text\n)\n\nCREATE TABLE CloseReasonTypes (\n Id number,\n Name text,\n Description text\n)\n\nCREATE TABLE PostNotices (\n Id number,\n PostId number,\n PostNoticeTypeId number,\n ...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_58 (\n time_retired VARCHAR,\n grid VARCHAR,\n driver VARCHAR\n)" }, { "from": "human", "value": "Which Time/Retired has a Grid smaller than 3, and a Driver of mika h kkinen?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (\n attendance INTEGER,\n date VARCHAR\n)" }, { "from": "human", "value": "What was the higest attendance on November 9, 1958?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_78521 (\n \"Team\" text,\n \"Games Played\" real,\n \"Wins\" real,\n \"Losses\" real,\n \"Ties\" real,\n \"Goals For\" real,\n \"Goals Against\" real\n)" }, { "from": "human", "value": "How many losses did the team with 22 goa...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_2930244_3 (\n number_of_major_hurricanes INTEGER\n)" }, { "from": "human", "value": "What is the largest overall number of major hurricanes?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE procedures (\n subject_id text,\n hadm_id text,\n icd9_code text,\n short_title text,\n long_title text\n)\n\nCREATE TABLE demographic (\n subject_id text,\n hadm_id text,\n name text,\n marital_status text,\n age text,\n dob text,\...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_41531 (\n \"Player\" text,\n \"Position\" text,\n \"Date of Birth (Age)\" text,\n \"Caps\" text,\n \"Province / Club\" text\n)" }, { "from": "human", "value": "What is Position, when Caps is Example, and When Player is Shane Kelly?"...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (\n proto_austronesian VARCHAR,\n proto_oceanic VARCHAR\n)" }, { "from": "human", "value": "Which Proto-Austronesian has a Proto-Oceanic of *lima?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_60349 (\n \"Tie no\" text,\n \"Home team\" text,\n \"Score\" text,\n \"Away team\" text,\n \"Date\" text\n)" }, { "from": "human", "value": "What is the Away team at the Wolverhampton Wanderers Home game with a Score of 2 0?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_19 (\n res VARCHAR,\n opponent VARCHAR\n)" }, { "from": "human", "value": "The match against Oleg Taktarov had what result?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE diagnosis (\n diagnosisid number,\n patientunitstayid number,\n diagnosisname text,\n diagnosistime time,\n icd9code text\n)\n\nCREATE TABLE intakeoutput (\n intakeoutputid number,\n patientunitstayid number,\n cellpath text,\n celllabel ...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_55779 (\n \"Entrant\" text,\n \"Constructor\" text,\n \"Chassis\" text,\n \"Engine\" text,\n \"Tyres\" text,\n \"Driver\" text,\n \"Rounds\" text\n)" }, { "from": "human", "value": "What was the featured in Engine through roun...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_67113 (\n \"School\" text,\n \"Team\" text,\n \"Division Record\" text,\n \"Overall Record\" text,\n \"Season Outcome\" text\n)" }, { "from": "human", "value": "What was Laurel's division record?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (\n games INTEGER,\n name VARCHAR,\n points VARCHAR\n)" }, { "from": "human", "value": "What is the lowest Games, when Name is Jeremiah Massey, and when Points is less than 340?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_30030227_1 (\n written_by VARCHAR,\n directed_by VARCHAR\n)" }, { "from": "human", "value": "How many people wrote the episode directed by Arvin Brown?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_70406 (\n \"Year\" real,\n \"Entrant\" text,\n \"Chassis\" text,\n \"Engine\" text,\n \"Points\" real\n)" }, { "from": "human", "value": "How many years was ensign n180b a Chassis with 4 points?" } ]
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE diagnoses_icd (\n row_id number,\n subject_id number,\n hadm_id number,\n icd9_code text,\n charttime time\n)\n\nCREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n ...
Text-to-sql-v1
chosen
[ { "from": "system", "value": "CREATE TABLE table_75827 (\n \"Season\" text,\n \"Competition\" text,\n \"Round\" text,\n \"Opponent\" text,\n \"Home\" text,\n \"Away\" text,\n \"Series\" text\n)" }, { "from": "human", "value": "Which Opponent has an Away of 1 1, and a Home of...
Text-to-sql-v1
chosen