instruction
stringlengths
151
7.46k
output
stringlengths
2
4.44k
source
stringclasses
26 values
CREATE TABLE table_name_27 ( opponent VARCHAR, location VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Opponent, when Location is 'Winnipeg, Manitoba , Canada'?
SELECT opponent FROM table_name_27 WHERE location = "winnipeg, manitoba , canada"
sql_create_context
CREATE TABLE table_57549 ( "Player" text, "Position" text, "School" text, "Hometown" text, "MLB Draft" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What MLB draft has a School of green valley high school?
SELECT "MLB Draft" FROM table_57549 WHERE "School" = 'green valley high school'
wikisql
CREATE TABLE table_name_16 ( away_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the away team's score when the away team is geelong?
SELECT away_team AS score FROM table_name_16 WHERE away_team = "geelong"
sql_create_context
CREATE TABLE table_204_668 ( id number, "#" number, "menteri besar" text, "took office" text, "left office" text, "party" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is listed below onn jaafar ?
SELECT "menteri besar" FROM table_204_668 WHERE id = (SELECT id FROM table_204_668 WHERE "menteri besar" = 'onn jaafar') + 1
squall
CREATE TABLE table_10676 ( "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. -- How many people attended the game at Lake Oval?
SELECT SUM("Crowd") FROM table_10676 WHERE "Venue" = 'lake oval'
wikisql
CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE diagnoses_icd ( ...
SELECT MAX(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 18866)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arte...
mimic_iii
CREATE TABLE table_1784514_1 ( capital VARCHAR, voivodeship_after_1569 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many capitals had brest litovsk voivodeship as voivodeship after 1569?
SELECT COUNT(capital) FROM table_1784514_1 WHERE voivodeship_after_1569 = "Brest Litovsk Voivodeship"
sql_create_context
CREATE TABLE table_name_35 ( director VARCHAR, title VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the director of Antz?
SELECT director FROM table_name_35 WHERE title = "antz"
sql_create_context
CREATE TABLE table_15553 ( "Year" real, "Award" text, "Category" text, "Recipient(s)" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In which category did Nick Jonas win at the Kids' Choice Awards Mexico?
SELECT "Category" FROM table_15553 WHERE "Recipient(s)" = 'nick jonas' AND "Award" = 'kids'' choice awards mexico'
wikisql
CREATE TABLE table_3550 ( "Rank" real, "Couple" text, "Judges" real, "Public" real, "Total" real, "Vote percentage" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHat was the max public with danniella and matthew?
SELECT MAX("Public") FROM table_3550 WHERE "Couple" = 'Danniella and Matthew'
wikisql
CREATE TABLE table_10935 ( "Round" text, "Pick" text, "Player" text, "Nationality" text, "School" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which pick was from Lamar High School?
SELECT "Pick" FROM table_10935 WHERE "School" = 'lamar high school'
wikisql
CREATE TABLE table_202_72 ( id number, "year" number, "single" text, "chart" text, "position" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which singles each appear at position 22 ?
SELECT "single" FROM table_202_72 WHERE "position" = 22
squall
CREATE TABLE table_31801 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Venue" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which venue has a week smaller than 2?
SELECT "Venue" FROM table_31801 WHERE "Week" < '2'
wikisql
CREATE TABLE table_53339 ( "Season" text, "Division" text, "Position" text, "Played" text, "Lost" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the value for played when the division is nbl div2 with 12th position?
SELECT "Played" FROM table_53339 WHERE "Division" = 'nbl div2' AND "Position" = '12th'
wikisql
CREATE TABLE table_name_20 ( fate VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the fate of the ship on 26 April 1942?
SELECT fate FROM table_name_20 WHERE date = "26 april 1942"
sql_create_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, Age int...
SELECT Country, AVG(Age) FROM artist GROUP BY Country ORDER BY AVG(Age) DESC
nvbench
CREATE TABLE Allergy_Type ( Allergy VARCHAR(20), AllergyType VARCHAR(20) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Has_Allergy ( StuID INTEGE...
SELECT city_code, COUNT(*) FROM Student GROUP BY city_code
nvbench
CREATE TABLE table_name_8 ( erp_w VARCHAR, call_sign VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total number of ERP W when the call sign is w217bf
SELECT COUNT(erp_w) FROM table_name_8 WHERE call_sign = "w217bf"
sql_create_context
CREATE TABLE authorship ( paperid VARCHAR, instid VARCHAR ) CREATE TABLE inst ( instid VARCHAR, name VARCHAR ) CREATE TABLE papers ( title VARCHAR, paperid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the number of papers published b...
SELECT COUNT(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "University of Pennsylvania"
sql_create_context
CREATE TABLE table_name_62 ( date VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what Date was the Attendance 63,546?
SELECT date FROM table_name_62 WHERE attendance = "63,546"
sql_create_context
CREATE TABLE table_name_96 ( finish VARCHAR, total VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what place did Phil Mickelson finish with a total of 282?
SELECT finish FROM table_name_96 WHERE total = 282 AND player = "phil mickelson"
sql_create_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, admission_location t...
SELECT MIN(demographic.days_stay) FROM demographic WHERE demographic.insurance = "Government"
mimicsql_data
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, JCZBMC text, JCZBJGDX text, JCZBJGDL number, JCZBJGDW text, SBBM text, YQBH text...
SELECT mzjzjlb.SG, mzjzjlb.TZ FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.RYBH = '64014857'
css
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 number, F...
SELECT t_kc21.MED_ORG_DEPT_CD, AVG(t_kc24.OVE_PAY) FROM t_kc21 JOIN t_kc24 JOIN t_kc21_t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc24.MED_CLINIC_ID AND t_kc21_t_kc24.MED_SAFE_PAY_ID = t_kc24.MED_SAFE_PAY_ID WHERE t_kc21.MED_SER_ORG_NO = '5365915' GROUP BY t_kc21.MED_ORG_DEPT_CD
css
CREATE TABLE CUSTOMER ( FirstName VARCHAR, CustomerId VARCHAR, country VARCHAR ) CREATE TABLE INVOICE ( CustomerId VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the first names of all customers that live in Brazil and have an invoice.
SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = "Brazil"
sql_create_context
CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT ) CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the number of people w...
SELECT gender, COUNT(*) FROM Person WHERE age < 40 GROUP BY gender
nvbench
CREATE TABLE table_name_91 ( capacity INTEGER, highest INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the greatest capacity when the largest number in attendance is 6,192?
SELECT MAX(capacity) FROM table_name_91 WHERE highest > 6 OFFSET 192
sql_create_context
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE microlab ( microlabid number, ...
SELECT t3.treatmentname FROM (SELECT t2.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'exploratory laparoscopy' AND DATETIME(tr...
eicu
CREATE TABLE diagnoses ( 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, religion text, ...
SELECT diagnoses.long_title FROM diagnoses WHERE diagnoses.icd9_code = "2254"
mimicsql_data
CREATE TABLE table_1014206_2 ( _number VARCHAR, commissioned VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the # for ships commissioned on december 18, 1965.
SELECT _number FROM table_1014206_2 WHERE commissioned = "December 18, 1965"
sql_create_context
CREATE TABLE table_name_83 ( position VARCHAR, round VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In round 3 what was the position?
SELECT position FROM table_name_83 WHERE round = "3"
sql_create_context
CREATE TABLE table_53951 ( "Nation" text, "Skip" text, "Third" text, "Second" text, "Lead" text, "Alternate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the Alternate for Sweden?
SELECT "Alternate" FROM table_53951 WHERE "Nation" = 'sweden'
wikisql
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE microlab ( microlabid ...
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'seizures' AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-1 year')) AS t1 JOIN (SELECT p...
eicu
CREATE TABLE hz_info ( KH text, KLX number, YLJGDM text ) 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 num...
SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN person_info_hz_info JOIN person_info ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.Y...
css
CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId n...
SELECT P.Id AS "post_link", V.BountyAmount, (SELECT P2.Tags FROM Posts AS P2 WHERE P2.Id = P.ParentId) AS "tags", (SELECT P2.Score FROM Posts AS P2 WHERE P2.Id = P.ParentId) AS SCORES FROM Posts AS P, Votes AS V WHERE P.Id = V.PostId AND V.BountyAmount > 0 AND V.VoteTypeId = 9 AND (SELECT P2.Score FROM Posts AS P2 WHER...
sede
CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, ...
SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 92846) AND prescriptions.drug = 'enoxaparin sodium' AND STRFTIME('%y-%m', prescriptions.startdate) = '2105-12' ORDER BY prescriptions.startdate DESC LIMIT 1
mimic_iii
CREATE TABLE table_42913 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date after Week 6 was a Bye?
SELECT "Date" FROM table_42913 WHERE "Week" > '6' AND "Attendance" = 'bye'
wikisql
CREATE TABLE fgwyjzb ( 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, INSURED_STS text, ...
SELECT gwyjzb.OUT_DIAG_DOC_CD, gwyjzb.OUT_DIAG_DOC_NM FROM gwyjzb WHERE gwyjzb.PERSON_ID = '69621807' GROUP BY gwyjzb.OUT_DIAG_DOC_CD ORDER BY COUNT(*) DESC UNION SELECT fgwyjzb.OUT_DIAG_DOC_CD, fgwyjzb.OUT_DIAG_DOC_NM FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '69621807' GROUP BY fgwyjzb.OUT_DIAG_DOC_CD ORDER BY COUNT(*) ...
css
CREATE TABLE Reviewer ( rID int, name text ) CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date ) CREATE TABLE Movie ( mID int, title text, year int, director text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find ...
SELECT mID, AVG(stars) FROM Rating GROUP BY mID
nvbench
CREATE TABLE table_53859 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score during the competition of 1998 fifa world cup qualification?
SELECT "Score" FROM table_53859 WHERE "Competition" = '1998 fifa world cup qualification'
wikisql
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, admission_location t...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "BLACK/HAITIAN" AND diagnoses.short_title = "Lower extremity embolism"
mimicsql_data
CREATE TABLE table_78442 ( "Matches" text, "Player" text, "Lost" text, "Drawn" text, "Tied" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want to know the drawn that has a tie of 0 and the player is chris cowdrey
SELECT "Drawn" FROM table_78442 WHERE "Tied" = '0' AND "Player" = 'chris cowdrey'
wikisql
CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE time_zone ( time_zone_code text, time_zone...
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'WASHINGTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DA...
atis
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 questions for the...
SELECT Name, SUM(Price) FROM Products GROUP BY Name ORDER BY SUM(Price) DESC
nvbench
CREATE TABLE table_name_81 ( score INTEGER, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest score that wes ellis got?
SELECT MIN(score) FROM table_name_81 WHERE player = "wes ellis"
sql_create_context
CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE treatment ( treat...
SELECT t1.drugstarttime FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'ketorolac tromethamine' AND patient.uniquepid = '002-20631' AND DATETIME(medication.drugstarttime, 'start of month') = DA...
eicu
CREATE TABLE table_25409 ( "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. -- Which outcomes have a final score of 6 3, 6 2?
SELECT "Outcome" FROM table_25409 WHERE "Score in the final" = '6–3, 6–2'
wikisql
CREATE TABLE table_name_30 ( opponent VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who did the Mariners play when they had a record of 33-45?
SELECT opponent FROM table_name_30 WHERE record = "33-45"
sql_create_context
CREATE TABLE table_24706 ( "Rank" real, "School" text, "Basic Elements" text, "Tumbling" text, "Stunts" text, "Tosses" text, "Pyramids" text, "Deductions" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the school is ...
SELECT "Stunts" FROM table_24706 WHERE "School" = 'Central Colleges of the Philippines CCP Bobcats'
wikisql
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, admission_location t...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "NEWBORN" AND demographic.admityear < "2177"
mimicsql_data
CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text ) CREATE TABLE university ( Scho...
SELECT All_Home, COUNT(All_Home) FROM basketball_match GROUP BY All_Home ORDER BY COUNT(All_Home)
nvbench
CREATE TABLE status ( station_id INTEGER, bikes_available INTEGER, docks_available INTEGER, time TEXT ) CREATE TABLE station ( id INTEGER, name TEXT, lat NUMERIC, long NUMERIC, dock_count INTEGER, city TEXT, installation_date TEXT ) CREATE TABLE trip ( id INTEGER, d...
SELECT city, COUNT(*) FROM station GROUP BY city
nvbench
CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE flight ( aircraft_code_sequence text, airline_code varchar, airline_flight text, arrival_time int, connections int, departure_time int, dual_carrier text, flight_days text, flight_id...
SELECT DISTINCT aircraft_code FROM aircraft WHERE aircraft_code = '73S'
atis
CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE FlagTypes ( Id ...
SELECT Posts.Id, Posts.Id AS "post_link" FROM Posts WHERE OwnerUserId = '##UserId##' AND PostTypeId = '##PostType##' ORDER BY Posts.CreationDate DESC
sede
CREATE TABLE table_10259 ( "Rank" real, "Mountain Pass" text, "State" text, "Elevation" text, "Route" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the route that has a rank higher than 63, and Separation Summit as its mountain pass?
SELECT SUM("Route") FROM table_10259 WHERE "Rank" > '63' AND "Mountain Pass" = 'separation summit'
wikisql
CREATE TABLE table_name_65 ( form_factor VARCHAR, capacities__gb_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What form factor has capacities at 60/120/180/240?
SELECT form_factor FROM table_name_65 WHERE capacities__gb_ = "60/120/180/240"
sql_create_context
CREATE TABLE table_48964 ( "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 was the team Unics Kazan's 1st leg score?
SELECT "1st leg" FROM table_48964 WHERE "Team #1" = 'unics kazan'
wikisql
CREATE TABLE table_name_89 ( operator VARCHAR, region VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the operator of the ensemble from Yorkshire?
SELECT operator FROM table_name_89 WHERE region = "yorkshire"
sql_create_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_DIRE_CD text, MED_DIRE_NM text,...
SELECT SUM(t_kc24.MED_AMOUT) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '窦德水' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2000-04-27' AND '2009-12-29'
css
CREATE TABLE table_22189 ( "State" text, "City" text, "Population" real, "Violent Crime" text, "Murder and Non-Negligent Manslaughter" text, "Forcible Rape" text, "Robbery" text, "Aggravated Assault" text, "Property Crime" text, "Burglary" text, "Larceny-Theft" text, "Mot...
SELECT "Burglary" FROM table_22189 WHERE "Violent Crime" = '974.7'
wikisql
CREATE TABLE table_53087 ( "Rd #" real, "Pick #" real, "Player" text, "Team (League)" text, "Reg GP" real, "Pl GP" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many picks had a Reg GP that was over 906, when the Pl GP was bigger than 99?
SELECT COUNT("Pick #") FROM table_53087 WHERE "Reg GP" > '906' AND "Pl GP" > '99'
wikisql
CREATE TABLE table_name_30 ( silver INTEGER, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of silver medals won for rank 7?
SELECT SUM(silver) FROM table_name_30 WHERE rank = "7"
sql_create_context
CREATE TABLE table_20901 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where did Brendon Labatte get picked?
SELECT MIN("Pick #") FROM table_20901 WHERE "Player" = 'Brendon LaBatte'
wikisql
CREATE TABLE table_name_49 ( description VARCHAR, livery VARCHAR, date VARCHAR, number_ VARCHAR, _name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the Description for Scottish Tar Distillers No. 78, that's Livery is black, and a date pr...
SELECT description FROM table_name_49 WHERE livery = "black" AND date < 1897 AND number_ & _name = "scottish tar distillers no. 78"
sql_create_context
CREATE TABLE table_27723228_7 ( high_assists VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the high assists for w 107 99 (ot)
SELECT high_assists FROM table_27723228_7 WHERE score = "W 107–99 (OT)"
sql_create_context
CREATE TABLE table_name_68 ( points_against VARCHAR, losing_bonus VARCHAR, tries_for VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points against did the club with a losing bonus of 3 and 84 tries have?
SELECT points_against FROM table_name_68 WHERE losing_bonus = "3" AND tries_for = "84"
sql_create_context
CREATE TABLE table_4252 ( "Year" real, "Matches" real, "Innings" real, "Not out" real, "Runs" real, "High Score" text, "100" real, "50" real, "Average" text, "Strike rate" text, "Catches/Stumpings" text ) -- Using valid SQLite, answer the following questions for the tables ...
SELECT COUNT("100") FROM table_4252 WHERE "Average" = '15.78'
wikisql
CREATE TABLE table_16072430_1 ( air_date VARCHAR, weekly_rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What broadcast dates have a weekly rank of 73?
SELECT COUNT(air_date) FROM table_16072430_1 WHERE weekly_rank = "73"
sql_create_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, JYZBLSH text, ...
SELECT mzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE person_info.XM = '吴兰若' AND NOT mzjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ <= '2008-07-26')
css
CREATE TABLE table_13762472_4 ( high_points VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who had high points on december 3
SELECT high_points FROM table_13762472_4 WHERE date = "December 3"
sql_create_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 text, JY...
SELECT * FROM hz_info JOIN wdmzjzjlb ON hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX WHERE hz_info.RYBH = '82293410' AND hz_info.YLJGDM = '6552603' AND wdmzjzjlb.JZKSMC LIKE '%免疫病%' UNION SELECT * FROM hz_info JOIN bdmzjzjlb ON hz_info.YLJGDM = bdmzjzjlb.YLJGDM AND hz_...
css
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, MED_DIRE_CD tex...
SELECT gwyjzb.IN_HOSP_DAYS FROM gwyjzb WHERE gwyjzb.MED_CLINIC_ID = '23675184652' UNION SELECT fgwyjzb.IN_HOSP_DAYS FROM fgwyjzb WHERE fgwyjzb.MED_CLINIC_ID = '23675184652'
css
CREATE TABLE table_17725 ( "Year" real, "Population (Region total)" real, "Population (Stanthorpe)" real, "Population (Warwick)" real, "Population (Allora)" real, "Population (Glengallan)" real, "Population (Rosenthal)" real ) -- Using valid SQLite, answer the following questions for the t...
SELECT COUNT("Population (Region total)") FROM table_17725 WHERE "Population (Allora)" = '2132'
wikisql
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 number, F...
SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_ID = '77965758' AND t_kc22.MED_INV_ITEM_TYPE = '治疗费'
css
CREATE TABLE table_71773 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the date of the game that had a loss of Gott (2-7)?
SELECT "Date" FROM table_71773 WHERE "Loss" = 'gott (2-7)'
wikisql
CREATE TABLE table_name_25 ( score VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score on January 16, 2010?
SELECT score FROM table_name_25 WHERE date = "january 16, 2010"
sql_create_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, Unsure_rate re...
SELECT Sex, COUNT(Sex) FROM people GROUP BY Sex ORDER BY COUNT(Sex)
nvbench
CREATE TABLE table_13255 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Hold many gold had more than 16 bronzes?
SELECT COUNT("Gold") FROM table_13255 WHERE "Bronze" > '16'
wikisql
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 number, F...
SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.UNIVALENT FROM t_kc22 WHERE t_kc22.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_NM = '许虹颖' AND t_kc22.t_kc21_MED_SER_ORG_NO = '9484202') ORDER BY t_kc22.UNIVALENT DESC LIMIT 1
css
CREATE TABLE table_20904 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the college for calgary stampeders
SELECT "College" FROM table_20904 WHERE "CFL Team" = 'Calgary Stampeders'
wikisql
CREATE TABLE table_name_58 ( surface VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the surface of 2 december 1974
SELECT surface FROM table_name_58 WHERE date = "2 december 1974"
sql_create_context
CREATE TABLE zyb ( CLINIC_ID 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, INSURED_STS text, INSU_TYPE text, IN...
SELECT SUM(t_kc22.AMOUNT) FROM t_kc22 JOIN mzb ON mzb.MED_ORG_DEPT_CD = t_kc22.MED_CLINIC_ID WHERE mzb.PERSON_NM = '65322845' AND t_kc22.STA_DATE BETWEEN '2005-12-30' AND '2010-10-25' AND t_kc22.MED_INV_ITEM_TYPE = '西药费'
css
CREATE TABLE table_name_9 ( rate VARCHAR, goals INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the rate when there were more than 22 goals?
SELECT rate FROM table_name_9 WHERE goals > 22
sql_create_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, religion text, ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = "Medicaid" AND lab.label = "Creatinine, Urine"
mimicsql_data
CREATE TABLE table_name_7 ( season VARCHAR, professional_partner VARCHAR, average VARCHAR, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which season had an average under 28, a rank under 10, and a partner of Janja Lesar?
SELECT season FROM table_name_7 WHERE average < 28 AND rank < 10 AND professional_partner = "janja lesar"
sql_create_context
CREATE TABLE table_73240 ( "Type of aphasia" text, "Repetition" text, "Naming" text, "Auditory comprehension" text, "Fluency" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the fluency for transcortical sensory aphasia
SELECT "Fluency" FROM table_73240 WHERE "Type of aphasia" = 'Transcortical sensory aphasia'
wikisql
CREATE TABLE table_71825 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Record" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the result for week 7
SELECT "Result" FROM table_71825 WHERE "Week" = '7'
wikisql
CREATE TABLE table_36251 ( "Rank" real, "Name" text, "Club" text, "Nation" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What nation are carolina hermann / daniel hermann from?
SELECT "Nation" FROM table_36251 WHERE "Name" = 'carolina hermann / daniel hermann'
wikisql
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 demographic ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND demographic.diagnosis = "BOWEL OBSTRUCTION"
mimicsql_data
CREATE TABLE table_62047 ( "Date" text, "Opponent" text, "Venue" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What opponent played on the 28th with a venue of away?
SELECT "Opponent" FROM table_62047 WHERE "Venue" = 'away' AND "Date" = '28th'
wikisql
CREATE TABLE table_250309_1 ( models_produced VARCHAR, plant VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what models are produced where the plant is scarborough?
SELECT models_produced FROM table_250309_1 WHERE plant = "Scarborough"
sql_create_context
CREATE TABLE table_13282157_1 ( Reset INTEGER, events VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest reset points where the events is 23?
SELECT MAX(Reset) AS points FROM table_13282157_1 WHERE events = 23
sql_create_context
CREATE TABLE gwyjzb ( 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, INSURED_STS text, ...
SELECT gwyjzb.CLINIC_ID FROM gwyjzb WHERE gwyjzb.MED_CLINIC_ID = '75538853486' UNION SELECT fgwyjzb.CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.MED_CLINIC_ID = '75538853486'
css
CREATE TABLE table_name_72 ( school VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the School of the Player with a Date of June 4, 2011?
SELECT school FROM table_name_72 WHERE date = "june 4, 2011"
sql_create_context
CREATE TABLE table_name_87 ( date VARCHAR, ship VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Date has a Ship of hallbjorg?
SELECT date FROM table_name_87 WHERE ship = "hallbjorg"
sql_create_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, name varchar...
SELECT COUNT(*) > 0 FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.department = 'REES' AND course.number = 795 AND instructor.name LIKE '%Vanessa Gezari%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_...
advising
CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE compartment_cla...
SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_na...
atis
CREATE TABLE table_50866 ( "Tournament" text, "Surface" text, "Week" text, "Winner" text, "Finalist" text, "Semifinalists" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHich Tournament has a Finalist of marat safin (12)?
SELECT "Tournament" FROM table_50866 WHERE "Finalist" = 'marat safin (12)'
wikisql
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, MZZYZDZZBM...
SELECT mzjzjlb.YLJGDM FROM person_info JOIN hz_info JOIN mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE person_info.XM = '张天蓝' UNION SELECT zyjzjlb.YLJGDM FROM person_info JOIN hz_info JOIN zyjzjlb ON person_info.RYBH = hz_i...
css
CREATE TABLE table_name_48 ( player_name VARCHAR, year VARCHAR, college VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the player from after 1989 from Washington State?
SELECT player_name FROM table_name_48 WHERE year > 1989 AND college = "washington state"
sql_create_context