instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_69086 (
"Name" text,
"Creator" text,
"Latest stable version" text,
"Standard cost (USD)" text,
"Software license" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is a Creator of hyriand?
| SELECT "Name" FROM table_69086 WHERE "Creator" = 'hyriand' | wikisql |
CREATE TABLE table_name_88 (
conference_joined VARCHAR,
mascot VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Conference Joined that has the Mascot of little sycamores?
| SELECT conference_joined FROM table_name_88 WHERE mascot = "little sycamores" | sql_create_context |
CREATE TABLE table_7938 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the attendance on 24 December 1898?
| SELECT "Attendance" FROM table_7938 WHERE "Date" = '24 december 1898' | wikisql |
CREATE TABLE table_11111116_6 (
written_by VARCHAR,
original_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote the episode that aired on April 17, 2011?
| SELECT written_by FROM table_11111116_6 WHERE original_air_date = "April 17, 2011" | sql_create_context |
CREATE TABLE table_35194 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Game has a Location of Philadelphia Spectrum and an Opponent of New York Knicks?
| SELECT "Game" FROM table_35194 WHERE "Location" = 'philadelphia spectrum' AND "Opponent" = 'new york knicks' | wikisql |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtim... | SELECT SUM(CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', t4.diagnosistime) > 1 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.uniquepid, t2.diagnosistime FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid... | eicu |
CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT SUM(t_kc24.MED_AMOUT) 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 = '6823656' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2008-09-28' AND '2011-05-10' | css |
CREATE TABLE table_train_249 (
"id" int,
"gender" string,
"allergy_to_dapagliflozin" bool,
"body_weight" float,
"estimated_glomerular_filtration_rate_egfr" int,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the table... | SELECT * FROM table_train_249 WHERE (body_mass_index_bmi > 24 AND gender = 'female') OR (body_mass_index_bmi > 25 AND gender = 'male') | criteria2sql |
CREATE TABLE table_72861 (
"1st throw" real,
"2nd throw" real,
"3rd throw" text,
"Equation" text,
"Result" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the equation is (10 times 1) + 3, what is the 2nd throw?
| SELECT MAX("2nd throw") FROM table_72861 WHERE "Equation" = '(10 times 1) + 3' | wikisql |
CREATE TABLE table_name_15 (
first_year INTEGER,
model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest First Year, when Model is 'Quattroporte (2.8)'?
| SELECT MIN(first_year) FROM table_name_15 WHERE model = "quattroporte (2.8)" | sql_create_context |
CREATE TABLE table_name_17 (
country VARCHAR,
player VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country did mario lemieux play for in 1994?
| SELECT country FROM table_name_17 WHERE player = "mario lemieux" AND year = 1994 | sql_create_context |
CREATE TABLE table_15781170_3 (
root_of_all_evil VARCHAR,
poll_winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When bloggers was the poll winner, who was the root of all evil?
| SELECT root_of_all_evil FROM table_15781170_3 WHERE poll_winner = "Bloggers" | sql_create_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_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "HOME" AND procedures.short_title = "Contr cerebr arteriogram" | mimicsql_data |
CREATE TABLE table_name_91 (
status VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the status for 07/01/1961?
| SELECT status FROM table_name_91 WHERE date = "07/01/1961" | sql_create_context |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC... | SELECT jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN hz_info_mzjzjlb ON hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info... | css |
CREATE TABLE table_28276 (
"Rank" real,
"Runs" real,
"Average" text,
"Strike rate" text,
"Player" text,
"Matches" real,
"Innings" real,
"Period" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many innings are there when the average i... | SELECT MIN("Innings") FROM table_28276 WHERE "Average" = '32.3' | wikisql |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "61" AND prescriptions.route = "IM" | mimicsql_data |
CREATE TABLE table_name_6 (
score VARCHAR,
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for the away team, Ipswich Town?
| SELECT score FROM table_name_6 WHERE away_team = "ipswich town" | sql_create_context |
CREATE TABLE table_name_87 (
new_entries_this_round VARCHAR,
leagues_entering_at_this_round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many new entries when the leagues entering in the round are tff third league & turkish regional amateur league?
| SELECT new_entries_this_round FROM table_name_87 WHERE leagues_entering_at_this_round = "tff third league & turkish regional amateur league" | sql_create_context |
CREATE TABLE table_203_812 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- japan and france each won how many gold medals ?
| SELECT "gold" FROM table_203_812 WHERE "nation" = 'japan' | squall |
CREATE TABLE table_name_91 (
title VARCHAR,
length VARCHAR,
producer_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Title has a Length of 3:32, and a Producer(s) of hadise a kg z, yves jongen?
| SELECT title FROM table_name_91 WHERE length = "3:32" AND producer_s_ = "hadise açıkgöz, yves jongen" | sql_create_context |
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.
-- Draw ... | SELECT title, stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY stars | nvbench |
CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
end_station_name TEXT,
end_station_id INTEGER,
bike_id INTEGER,
subscription_type TEXT,
zip_code INTEGER
)
CREATE TABLE station (
id INTEG... | SELECT city, COUNT(*) FROM station GROUP BY city | nvbench |
CREATE TABLE t_kc21_t_kc24 (
MED_CLINIC_ID text,
MED_SAFE_PAY_ID number
)
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,
... | SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_ID = '94878508' AND t_kc21.MED_SER_ORG_NO = '4527027' AND t_kc21.IN_DIAG_DIS_NM LIKE '%2%' | css |
CREATE TABLE table_204_29 (
id number,
"rank" number,
"lane" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who comes before marco loughran ?
| SELECT "name" FROM table_204_29 WHERE "rank" = (SELECT "rank" FROM table_204_29 WHERE "name" = 'marco loughran') - 1 | squall |
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE has_allergy (
stuid number,
allergy text
)
CREATE TABLE allergy_type (
allergy text,
allergytype text
)
-- Using valid SQLite... | SELECT AVG(age), sex FROM student GROUP BY sex | spider |
CREATE TABLE wedding (
Church_ID int,
Male_ID int,
Female_ID int,
Year int
)
CREATE TABLE church (
Church_ID int,
Name text,
Organized_by text,
Open_Date int,
Continuation_of text
)
CREATE TABLE people (
People_ID int,
Name text,
Country text,
Is_Male text,
Age ... | SELECT Country, COUNT(Country) FROM people WHERE Age < (SELECT AVG(Age) FROM people) GROUP BY Country ORDER BY Country | nvbench |
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE flight_stop (
flight_id in... | SELECT DISTINCT aircraft.aircraft_code FROM aircraft, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, equipment_sequence, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND flight.departure_time < 1200 AND flight.t... | atis |
CREATE TABLE table_66999 (
"Stage (Winner)" text,
"General Classification Yellow Jersey" text,
"Mountains Classification Green Jersey" text,
"Points Classification Navy Blue Jersey" text,
"Intermediate Sprints Classification Red Jersey" text,
"Team Classification" text
)
-- Using valid SQLite,... | SELECT "Points Classification Navy Blue Jersey" FROM table_66999 WHERE "Mountains Classification Green Jersey" = 'yoann le boulanger' AND "Team Classification" = 'gerolsteiner' | wikisql |
CREATE TABLE table_203_702 (
id number,
"name" text,
"type" text,
"technologies" text,
"author" text,
"presented /\nlast updated" text,
"licence" text,
"homepage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which license is listed mor... | SELECT "licence" FROM table_203_702 WHERE "licence" IN ('os', 'c') GROUP BY "licence" ORDER BY COUNT(*) DESC LIMIT 1 | squall |
CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_ID number
)
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,
H... | SELECT COUNT(*) FROM (SELECT t_kc21.MED_ORG_DEPT_CD FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '0869043' GROUP BY t_kc21.MED_ORG_DEPT_CD HAVING MIN(t_kc21.IN_HOSP_DAYS) > 21) AS T | css |
CREATE TABLE table_204_536 (
id number,
"event" text,
"bowling center" text,
"city" text,
"dates" text,
"winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what bowling center comes after florida lanes
| SELECT "bowling center" FROM table_204_536 WHERE id = (SELECT id FROM table_204_536 WHERE "bowling center" = 'florida lanes') + 1 | squall |
CREATE TABLE table_name_22 (
crowd INTEGER,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average crowd size at Victoria Park?
| SELECT AVG(crowd) FROM table_name_22 WHERE venue = "victoria park" | sql_create_context |
CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT COUNT(*) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '1165324' AND t_kc21.IN_HOSP_DATE BETWEEN '2002-04-26' AND '2008-06-23' AND t_kc21.INSU_TYPE = '儿童' | css |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "DIVORCED" AND demographic.ethnicity = "HISPANIC OR LATINO" | mimicsql_data |
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 SUM(t_kc24.OVE_PAY) FROM qtb JOIN t_kc24 ON qtb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE qtb.MED_SER_ORG_NO = '7494699' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2006-02-11' AND '2009-08-18' UNION SELECT SUM(t_kc24.OVE_PAY) FROM gyb JOIN t_kc24 ON gyb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gyb.MED_SER_ORG_NO = '... | css |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Myelodysplastic syndrome, unspecified" AND prescriptions.drug_type = "BASE" | mimicsql_data |
CREATE TABLE table_27306 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of district for tom marino
| SELECT COUNT("District") FROM table_27306 WHERE "Incumbent" = 'Tom Marino' | wikisql |
CREATE TABLE table_28538 (
"Candidate" text,
"Background" text,
"Original team" text,
"Age" real,
"Hometown" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the age when the result is fired in week 8
| SELECT MIN("Age") FROM table_28538 WHERE "Result" = 'Fired in week 8' | wikisql |
CREATE TABLE business (
bid int,
business_id varchar,
name varchar,
full_address varchar,
city varchar,
latitude varchar,
longitude varchar,
review_count bigint,
is_open tinyint,
rating float,
state varchar
)
CREATE TABLE category (
id int,
business_id varchar,
c... | SELECT neighborhood.neighborhood_name FROM business, neighborhood WHERE business.name = 'Flat Top Grill' AND neighborhood.business_id = business.business_id | yelp |
CREATE TABLE table_203_723 (
id number,
"year" number,
"song" text,
"us hot 100" number,
"us msr" number,
"us a.c." number,
"can" number,
"uk singles" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the total ... | SELECT COUNT("song") FROM table_203_723 | squall |
CREATE TABLE table_14584 (
"Game" real,
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date for game 6?
| SELECT "Date" FROM table_14584 WHERE "Game" = '6' | wikisql |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime... | SELECT lab.labname FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '033-10593')) AND DATETIME(lab.labresulttime) >= DATETIME(CURRENT_TIME(), '-101 month') OR... | eicu |
CREATE TABLE table_train_242 (
"id" int,
"macroalbuminuria" bool,
"hyperlipidemia" bool,
"fasting_serum_triglycerides" int,
"fasting_ldl_cholesterol" int,
"panel_reactive_antibodies" int,
"serum_creatinine" float,
"albumin" float,
"body_mass_index_bmi" float,
"fasting_serum_chole... | SELECT * FROM table_train_242 WHERE macroalbuminuria = 1 OR albumin > 300 | criteria2sql |
CREATE TABLE Student_Tests_Taken (
registration_id INTEGER,
date_test_taken DATETIME,
test_result VARCHAR(255)
)
CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
personal_name VARCHAR(80),
middle_n... | SELECT date_of_latest_logon, COUNT(date_of_latest_logon) FROM Students WHERE family_name = "Jaskolski" OR family_name = "Langosh" | nvbench |
CREATE TABLE table_2417340_3 (
state__class_ VARCHAR,
date_of_successors_formal_installation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all state classes when successors were formally installed on June 22, 1868.
| SELECT state__class_ FROM table_2417340_3 WHERE date_of_successors_formal_installation = "June 22, 1868" | sql_create_context |
CREATE TABLE table_203_325 (
id number,
"year" number,
"title" text,
"(english)" text,
"ifpi israel certification" text,
"label" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what album came out in the year previous to the album ofa'a haia ?
| SELECT "title" FROM table_203_325 WHERE "year" = (SELECT "year" FROM table_203_325 WHERE "title" = "ofa'a haia") - 1 | squall |
CREATE TABLE table_name_50 (
opponents VARCHAR,
attendance VARCHAR,
h___a VARCHAR,
result_f___a VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent has a H / A of a, and a Result F A of 2 0, and a Attendance larger than 30,000?
| SELECT opponents FROM table_name_50 WHERE h___a = "a" AND result_f___a = "2 – 0" AND attendance > 30 OFFSET 000 | sql_create_context |
CREATE TABLE ship (
name VARCHAR,
ship_id VARCHAR
)
CREATE TABLE captain (
ship_id VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name of the ships that are steered by both a captain with Midshipman rank and a captain with Lie... | SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Midshipman' INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant' | sql_create_context |
CREATE TABLE table_name_56 (
rank INTEGER,
name VARCHAR,
places VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average rank of Wolfgang Schwarz with greater than 13 places?
| SELECT AVG(rank) FROM table_name_56 WHERE name = "wolfgang schwarz" AND places > 13 | sql_create_context |
CREATE TABLE table_15346009_1 (
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the value of 1st prize when the score was 271 (-9)?
| SELECT 1 AS st_prize__$__ FROM table_15346009_1 WHERE score = "271 (-9)" | sql_create_context |
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE has_allergy (
stuid number,
allergy text
)
CREATE TABLE allergy_type (
allergy text,
allergytype text
)
-- Using valid SQLite... | SELECT allergytype FROM allergy_type WHERE allergy = "Cat" | spider |
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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "BLACK/HAITIAN" AND procedures.short_title = "Contrast aortogram" | mimicsql_data |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE vitalperiodic (
... | SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-3059')) AND medication.drugname = 'coumadin' AND DATETIME(medication.drugs... | eicu |
CREATE TABLE table_2493389_1 (
butter VARCHAR,
protein__g_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of butters for 3 protein
| SELECT COUNT(butter) FROM table_2493389_1 WHERE protein__g_ = "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 jybgb.BGDH FROM hz_info JOIN wdmzjzjlb JOIN jybgb ON hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE hz_info.RYBH = '33852265' AND NOT jybgb.BGDH IN (SELECT jyjgzbb.BGDH FRO... | css |
CREATE TABLE table_16613 (
"Wicket" text,
"Runs" text,
"Batting partners" text,
"Batting team" text,
"Fielding team" text,
"Venue" text,
"Season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the batting partners with runs of 226?
| SELECT "Batting partners" FROM table_16613 WHERE "Runs" = '226' | wikisql |
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,
OVE_PAY numb... | SELECT SOC_SRT_DIRE_CD, SOC_SRT_DIRE_NM FROM t_kc22 WHERE MED_CLINIC_ID = '92050718697' GROUP BY SOC_SRT_DIRE_CD ORDER BY SUM(SELF_PAY_AMO) DESC LIMIT 1 | css |
CREATE TABLE film (
title VARCHAR,
film_id VARCHAR,
description VARCHAR
)
CREATE TABLE film_actor (
film_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which film has the most number of actors or actresses? List the film name, film id and descrip... | SELECT T2.title, T2.film_id, T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.film_id ORDER BY COUNT(*) DESC LIMIT 1 | sql_create_context |
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE Comments (
Id number,
PostId num... | SELECT p.Title, p.Body, p.CreationDate, p.Id AS "post_link", p.Tags, p.Score, u.AboutMe FROM Posts AS p LEFT JOIN Users AS u ON p.OwnerUserId = u.Id WHERE p.PostTypeId IN (1) AND p.CreationDate > '2020-01-01' AND p.CreationDate < '2020-12-31' AND p.Tags LIKE ('%python%') AND p.Score >= 15 AND u.AboutMe != '' ORDER BY p... | sede |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description ... | SELECT COUNT(DISTINCT v.UserId) FROM Votes AS v WHERE v.VoteTypeId = 5 | sede |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartr... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'bacteremia - community acquired' AND STRFTIME('%y', diagnosis.diagnosistime) >= '2105') | eicu |
CREATE TABLE table_76138 (
"Rank" real,
"Name" text,
"Years" text,
"Matches" real,
"Goals" real,
"Goals/Matches" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the lowest goal that have goals/matches greater than 0.43 with joachim strei... | SELECT MIN("Goals") FROM table_76138 WHERE "Goals/Matches" > '0.43' AND "Name" = 'joachim streich' AND "Matches" > '378' | wikisql |
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID | nvbench |
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,
MZZYZDZZMC ... | SELECT jyjgzbb.JYZBLSH FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE hz... | css |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ tim... | SELECT COUNT(hz_info.RYBH) FROM hz_info JOIN txmzjzjlb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX WHERE txmzjzjlb.ZZYSGH = '22158304' AND txmzjzjlb.JZKSRQ BETWEEN '2003-05-25' AND '2013-08-20' UNION SELECT COUNT(hz_info.RYBH) FROM hz_info JOIN ftxmzjzjlb ON hz_inf... | css |
CREATE TABLE table_21636599_1 (
insurgents VARCHAR,
period VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many insurgents have 2003 as a period?
| SELECT COUNT(insurgents) FROM table_21636599_1 WHERE period = "2003" | sql_create_context |
CREATE TABLE table_name_4 (
wins INTEGER,
place VARCHAR,
losses VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most wins for losses more than 2 and points of two with place larger than 7
| SELECT MAX(wins) FROM table_name_4 WHERE losses > "2" AND points = "2" AND place > 7 | sql_create_context |
CREATE TABLE table_name_28 (
time_retired VARCHAR,
laps VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Time/Retired of the Newman-Haas Racing team in under 51 laps?
| SELECT time_retired FROM table_name_28 WHERE laps < 51 AND team = "newman-haas racing" | 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_CLINIC_ID text,
MED_DIRE_CD tex... | SELECT t_kc21.IN_DIAG_DIS_CD, t_kc21.IN_DIAG_DIS_NM FROM t_kc21 WHERE t_kc21.PERSON_NM = '魏倚云' | css |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'midazolam 100 mg/100 ml ns' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-1 year')) | eicu |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | SELECT MED_SER_ORG_NO FROM t_kc21 WHERE PERSON_ID = '56628366' AND MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc22 WHERE SOC_SRT_DIRE_NM = '厄贝沙坦片(薄膜衣)') | css |
CREATE TABLE diagnoses (
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_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.short_title = "Int inser lead atri-vent" | mimicsql_data |
CREATE TABLE table_1115992_1 (
late_1943 INTEGER,
_late_1941 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most late 1943 with late 194 in slovenia
| SELECT MAX(late_1943) FROM table_1115992_1 WHERE NOT _late_1941 = "Slovenia" | sql_create_context |
CREATE TABLE table_34009 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the population for ... | SELECT "Population" FROM table_34009 WHERE "Median household income" = '$69,760' | wikisql |
CREATE TABLE table_name_74 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What shows for 1995 when 1996 shows grand slams?
| SELECT 1995 FROM table_name_74 WHERE 1996 = "grand slams" | sql_create_context |
CREATE TABLE table_name_22 (
finish VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Finish for the 1950 51? season?
| SELECT finish FROM table_name_22 WHERE season = "1950–51" | sql_create_context |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT gwyjzb.MED_ORG_DEPT_NM, gwyjzb.IN_DIAG_DIS_NM, AVG(gwyjzb.PERSON_AGE) FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '3385540' GROUP BY gwyjzb.MED_ORG_DEPT_NM, gwyjzb.IN_DIAG_DIS_NM HAVING AVG(gwyjzb.PERSON_AGE) < 14 UNION SELECT fgwyjzb.MED_ORG_DEPT_NM, fgwyjzb.IN_DIAG_DIS_NM, AVG(fgwyjzb.PERSON_AGE) FROM fgwyjzb WH... | css |
CREATE TABLE table_name_99 (
total_points VARCHAR,
points_average VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the points total for the team with points average more than 34, 1984 score more than 37 and N/A in 1982?
| SELECT COUNT(total_points) FROM table_name_99 WHERE 1982 = "n/a" AND points_average > 34 AND 1984 > 37 | sql_create_context |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_typ... | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 4326) AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | mimic_iii |
CREATE TABLE table_name_34 (
host_interface VARCHAR,
digital VARCHAR,
model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the Host interface for digital of dvb-t (cx22702) and model of nova-t pci (90002)
| SELECT host_interface FROM table_name_34 WHERE digital = "dvb-t (cx22702)" AND model = "nova-t pci (90002)" | sql_create_context |
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL v... | SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | nvbench |
CREATE TABLE table_23286 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 1984 is the first elected who are the candidates?
| SELECT "Candidates" FROM table_23286 WHERE "First elected" = '1984' | wikisql |
CREATE TABLE table_52854 (
"Station Number" text,
"District" text,
"Location" text,
"Type" text,
"Appliances" text,
"Registrations" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type of the station with a 1 wrl appliance in Linton?
| SELECT "Type" FROM table_52854 WHERE "Appliances" = '1 wrl' AND "Location" = 'linton' | wikisql |
CREATE TABLE table_name_6 (
opening_date VARCHAR,
classification VARCHAR,
theatre VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the opening date of the musical at the adelphi theatre?
| SELECT opening_date FROM table_name_6 WHERE classification = "musical" AND theatre = "adelphi theatre" | 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 jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb 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 WHERE hz_info.RYBH = '61732704' AND NOT jybgb.BGDH IN (SELECT jyjgzbb.BGDH FROM jyjgzbb WH... | css |
CREATE TABLE table_name_64 (
shooter VARCHAR,
rank_points VARCHAR,
event VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the shooter when the rank points was 8 and the event was WC Kerrville?
| SELECT shooter FROM table_name_64 WHERE rank_points = "8" AND event = "wc kerrville" | sql_create_context |
CREATE TABLE table_64752 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the platform of the game from 2007?
| SELECT "Platform(s)" FROM table_64752 WHERE "Year" = '2007' | wikisql |
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.discharge_location = "DEAD/EXPIRED" AND lab.label = "Iron Binding Capacity, Total" | mimicsql_data |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
... | SELECT HIRE_DATE, SALARY FROM employees | nvbench |
CREATE TABLE table_203_715 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the first year where the position was higher than 3rd place ?
| SELECT MIN("year") FROM table_203_715 WHERE "position" < 3 | squall |
CREATE TABLE table_15187735_3 (
segment_d VARCHAR,
segment_a VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the segment d for combination locks
| SELECT segment_d FROM table_15187735_3 WHERE segment_a = "Combination Locks" | sql_create_context |
CREATE TABLE table_57847 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who built the car that retired due to suspension before 65 laps?
| SELECT "Constructor" FROM table_57847 WHERE "Laps" < '65' AND "Time/Retired" = 'suspension' | wikisql |
CREATE TABLE table_name_77 (
region VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The country of Laos is in what region?
| SELECT region FROM table_name_77 WHERE country = "laos" | sql_create_context |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ATRIAL FIBRILLATION\THORACOSCOPIC MAZE PROCEDURE BILATERAL/SDA" AND demographic.dod_year <= "2148.0" | mimicsql_data |
CREATE TABLE table_13719788_1 (
director VARCHAR,
film_title_used_in_nomination VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the director of the film Gie?
| SELECT director FROM table_13719788_1 WHERE film_title_used_in_nomination = "Gie" | sql_create_context |
CREATE TABLE table_34081 (
"Week" real,
"Date" text,
"Opponent" text,
"Time / Time Zone" text,
"Game Site" text,
"Final Score" text,
"Record" text,
"Match Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the game site for... | SELECT "Game Site" FROM table_34081 WHERE "Record" = '2-2' | wikisql |
CREATE TABLE table_name_67 (
pole_position VARCHAR,
tyre VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What individual(s) had Pole Position for Tyre F?
| SELECT pole_position FROM table_name_67 WHERE tyre = "f" | sql_create_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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "DISC-TRAN CANCER/CHLDRN H" AND procedures.short_title = "Temporary colostomy" | mimicsql_data |
CREATE TABLE Student_Tests_Taken (
registration_id INTEGER,
date_test_taken DATETIME,
test_result VARCHAR(255)
)
CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
personal_name VARCHAR(80),
middle_n... | SELECT date_of_completion, COUNT(date_of_completion) FROM Student_Course_Enrolment ORDER BY COUNT(date_of_completion) DESC | nvbench |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.