instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_2562572_22 (
cyrillic_name_other_names VARCHAR,
settlement VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of cyrillic name for stani i
| SELECT COUNT(cyrillic_name_other_names) FROM table_2562572_22 WHERE settlement = "Stanišić" | sql_create_context |
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 jybgb.KSBM, jybgb.KSMC 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 = '27615170' AND jybgb.BGRQ BETWEEN '2013-04-02' AND '2021-... | css |
CREATE TABLE table_6240 (
"Year" real,
"Manufacturer" text,
"Start" text,
"Finish" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Finish has a Start of 15, and a Team of bahari?
| SELECT "Finish" FROM table_6240 WHERE "Start" = '15' AND "Team" = 'bahari' | wikisql |
CREATE TABLE region (
Region_id int,
Region_code text,
Region_name text
)
CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_city_affected real
)
CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Nu... | SELECT Region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.Region_id = T2.Region_id GROUP BY T1.Region_id ORDER BY Region_name | nvbench |
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE airline (
... | SELECT DISTINCT airport_code FROM airport WHERE airport_code = 'CVG' | atis |
CREATE TABLE table_name_88 (
branding VARCHAR,
frequency VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the branding for frequency of 680 khz
| SELECT branding FROM table_name_88 WHERE frequency = "680 khz" | sql_create_context |
CREATE TABLE table_3801 (
"Stage" real,
"Winner" text,
"General classification" text,
"Mountains Classification" text,
"Points classification" text,
"Sprints Classification" text,
"Team Classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "General classification" FROM table_3801 WHERE "Points classification" = 'Marco Marcato' AND "Stage" < '5.0' | wikisql |
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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "MARRIED" AND lab.label = "Urine Volume" | mimicsql_data |
CREATE TABLE table_20800 (
"Institution" text,
"Location" text,
"Nickname" text,
"Enrollment" real,
"Established" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Total enrollment at the school with the nickname Blue Hens
| SELECT COUNT("Enrollment") FROM table_20800 WHERE "Nickname" = 'Blue Hens' | wikisql |
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAno... | SELECT u.Id AS "user_link", u.DownVotes, COUNT(DISTINCT c.PostId) AS CommentedPosts, CAST(u.DownVotes AS FLOAT) / CAST(COUNT(DISTINCT c.PostId) AS FLOAT) AS Ratio FROM Users AS u INNER JOIN Comments AS c ON c.UserId = u.Id WHERE u.DownVotes > '##min?100##' GROUP BY u.Id, u.DownVotes ORDER BY CAST(u.DownVotes AS FLOAT) ... | sede |
CREATE TABLE table_30133_3 (
gap_from_thailand_as_of_1980__times_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the max 2010 value for a 1980 gap value is 2.43?
| SELECT MAX(2010) FROM table_30133_3 WHERE gap_from_thailand_as_of_1980__times_ = "2.43" | sql_create_context |
CREATE TABLE table_50946 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of Laps that have a Time of +18.366, and a Grid lower than 13?
| SELECT MAX("Laps") FROM table_50946 WHERE "Grid" < '13' AND "Time" = '+18.366' | wikisql |
CREATE TABLE table_71034 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the game with a record of 47 39?
| SELECT "Date" FROM table_71034 WHERE "Record" = '47–39' | wikisql |
CREATE TABLE table_name_1 (
speed VARCHAR,
rider VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Brian Mateer's Speed?
| SELECT speed FROM table_name_1 WHERE rider = "brian mateer" | sql_create_context |
CREATE TABLE table_26922 (
"Rnd" real,
"Date" text,
"Race Name" text,
"Track" text,
"Location" text,
"Pole position" text,
"Fastest lap" text,
"Most Laps Led" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what race... | SELECT "Race Name" FROM table_26922 WHERE "Fastest lap" = 'Buddy Rice' | wikisql |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE vitalperiodic (
vitalperio... | SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '008-32147')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.ce... | eicu |
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 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 = '61785002' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' | css |
CREATE TABLE table_name_80 (
copa_sudamericana INTEGER,
others INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest copa sudamericana number when the others number is less than 0?
| SELECT MAX(copa_sudamericana) FROM table_name_80 WHERE others < 0 | sql_create_context |
CREATE TABLE table_62415 (
"Date" text,
"Opponent" text,
"Score" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score when the decision was Raycroft, with attendance larger than 18,... | SELECT "Score" FROM table_62415 WHERE "Decision" = 'raycroft' AND "Attendance" > '18,277' AND "Date" = 'february 11' | wikisql |
CREATE TABLE table_59921 (
"Week 8 Oct 26" text,
"Week 10 Nov 9" text,
"Week 11 Nov 16" text,
"Week 12 Nov 23" text,
"Week 13 Nov 30" text,
"Week 14 (Final) Dec 7" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the week 11 nov 16 standin... | SELECT "Week 11 Nov 16" FROM table_59921 WHERE "Week 13 Nov 30" = 'wisconsin (10-1)' | 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 jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN person_info_hz_info ON person_info.RYBH = person_info_hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND... | css |
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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Acute pancreatitis" AND prescriptions.drug_type = "ADDITIVE" | mimicsql_data |
CREATE TABLE table_name_36 (
surface VARCHAR,
score VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What surface was played on with a score of 6 4, 6 3 and on 4 May 1992?
| SELECT surface FROM table_name_36 WHERE score = "6–4, 6–3" AND date = "4 may 1992" | sql_create_context |
CREATE TABLE table_203_862 (
id number,
"draw" number,
"artist" text,
"song" text,
"points" number,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what song is listed in the table right before layla layla ?
| SELECT "song" FROM table_203_862 WHERE id = (SELECT id FROM table_203_862 WHERE "song" = '"layla layla"') - 1 | squall |
CREATE TABLE table_65359 (
"Place" text,
"Code" real,
"Area (km 2 )" real,
"Population" real,
"Most spoken language" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Most Spoken language in the Place with Code 70403 with an Area (km 2) lar... | SELECT "Most spoken language" FROM table_65359 WHERE "Code" > '70403' AND "Area (km 2 )" > '3.79' AND "Population" > '73,283' | wikisql |
CREATE TABLE table_204_612 (
id number,
"draft order\nround" number,
"draft order\nchoice" number,
"player" text,
"position" text,
"height" text,
"weight" text,
"college" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total o... | SELECT COUNT("player") FROM table_204_612 WHERE "height" < 6 | squall |
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 WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND demographic.admityear < "2124" | mimicsql_data |
CREATE TABLE table_name_60 (
event VARCHAR,
games VARCHAR,
medal VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Event of the Games of 1950 auckland and a Medal of bronze?
| SELECT event FROM table_name_60 WHERE games = "1950 auckland" AND medal = "bronze" | sql_create_context |
CREATE TABLE table_name_49 (
country VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country had a total of 295?
| SELECT country FROM table_name_49 WHERE total = 295 | sql_create_context |
CREATE TABLE table_9589 (
"School" text,
"Base" text,
"Bask" text,
"Golf" text,
"Soccer" text,
"Swimming" text,
"Tennis" text,
"Indoor track" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the basketball status for Valparaiso who... | SELECT "Bask" FROM table_9589 WHERE "Indoor track" = 'yes' AND "School" = 'valparaiso' | wikisql |
CREATE TABLE table_name_54 (
caps INTEGER,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the greatest number of caps for Bruce Djite?
| SELECT MAX(caps) FROM table_name_54 WHERE player = "bruce djite" | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND prescriptions.formulary_drug_cd = "KETO15I" | mimicsql_data |
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 COUNT(*) FROM txmzjzjlb WHERE txmzjzjlb.JZKSBM = '6381' AND txmzjzjlb.JZKSRQ BETWEEN '2003-08-25' AND '2015-09-03' UNION SELECT COUNT(*) FROM ftxmzjzjlb WHERE ftxmzjzjlb.JZKSBM = '6381' AND ftxmzjzjlb.JZKSRQ BETWEEN '2003-08-25' AND '2015-09-03' | css |
CREATE TABLE table_57837 (
"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.
-- Who played in lake oval while away?
| SELECT "Away team" FROM table_57837 WHERE "Venue" = 'lake oval' | wikisql |
CREATE TABLE table_4342 (
"Country/Region" text,
"Name" text,
"Host" text,
"Network" text,
"Premiere" text,
"Prize" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the prize for belgium
| SELECT "Prize" FROM table_4342 WHERE "Country/Region" = 'belgium' | wikisql |
CREATE TABLE basketball_match (
school_id VARCHAR,
acc_percent VARCHAR
)
CREATE TABLE university (
Primary_conference VARCHAR,
school_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the primary conference of the school that has the lowest ... | SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1 | sql_create_context |
CREATE TABLE hz_info_mzjzjlb (
JZLSH number,
YLJGDM number,
mzjzjlb_id number
)
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
... | SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN hz_info_mzjzjlb ON person_info.RYBH = hz_info.RYBH AND 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_MZJZ... | 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 COUNT(*) FROM (SELECT t_kc24.t_kc21_MED_ORG_DEPT_CD FROM t_kc24 WHERE t_kc24.t_kc21_MED_SER_ORG_NO = '1714876' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2004-06-08' AND '2016-11-26' GROUP BY t_kc24.t_kc21_MED_ORG_DEPT_CD HAVING SUM(t_kc24.MED_AMOUT) > 6282.3) AS T | css |
CREATE TABLE table_46930 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the game was played at Mile High Stadium before week 9, wh... | SELECT "Result" FROM table_46930 WHERE "Week" < '9' AND "Game Site" = 'mile high stadium' | wikisql |
CREATE TABLE physician (
employeeid number,
name text,
position text,
ssn number
)
CREATE TABLE trained_in (
physician number,
treatment number,
certificationdate time,
certificationexpires time
)
CREATE TABLE nurse (
employeeid number,
name text,
position text,
registe... | SELECT T1.name FROM patient AS T1 JOIN appointment AS T2 ON T1.ssn = T2.patient ORDER BY T2.start DESC LIMIT 1 | spider |
CREATE TABLE table_74557 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the extra for tournament of olympic games
| SELECT "Extra" FROM table_74557 WHERE "Tournament" = 'olympic games' | wikisql |
CREATE TABLE mzb (
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 qtb.MED_SER_ORG_NO FROM qtb WHERE qtb.PERSON_NM = '喻奇文' AND qtb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.SOC_SRT_DIRE_NM = '氯雷他定片') UNION SELECT gyb.MED_SER_ORG_NO FROM gyb WHERE gyb.PERSON_NM = '喻奇文' AND gyb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.SOC... | css |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT demographic.age, demographic.gender FROM demographic WHERE demographic.name = "Bruce Harris" | mimicsql_data |
CREATE TABLE table_14962287_1 (
years VARCHAR,
other_a VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which years had other a of 8 (1)?
| SELECT years FROM table_14962287_1 WHERE other_a = "8 (1)" | sql_create_context |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "51245" | mimicsql_data |
CREATE TABLE table_79504 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country is the athlete ekaterina karsten from with a rank less than 4?
| SELECT "Country" FROM table_79504 WHERE "Rank" < '4' AND "Athlete" = 'ekaterina karsten' | wikisql |
CREATE TABLE table_58317 (
"Date" text,
"Pilot" text,
"Weapon Systems Officer" text,
"Aircraft" text,
"Tail Code" text,
"Call Sign" text,
"Kill" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Tail Code belongs to Weapon Systems Officer... | SELECT "Tail Code" FROM table_58317 WHERE "Weapon Systems Officer" = 'capt charles b. debellevue' | wikisql |
CREATE TABLE table_53277 (
"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.
-- When the away team scored 7.8 (50), what was the... | SELECT "Home team score" FROM table_53277 WHERE "Away team score" = '7.8 (50)' | wikisql |
CREATE TABLE table_name_33 (
segment_d VARCHAR,
episode VARCHAR,
segment_c VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What segment d is associated with an episode number above 16 and a segment c of laser eye surgery?
| SELECT segment_d FROM table_name_33 WHERE episode > 16 AND segment_c = "laser eye surgery" | sql_create_context |
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
... | WITH rquestions AS (SELECT CAST(TIME_TO_STR(p.CreationDate, '%Y%m%d') AS TEXT(12)) AS daydate, CAST(TIME_TO_STR(p.CreationDate, '%m/%d/%y') AS TEXT(12)) AS usdaydate FROM Tags AS t WITH (nolock) INNER JOIN PostTags AS pt WITH (nolock) ON pt.TagId = t.Id INNER JOIN Posts AS p WITH (nolock) ON p.Id = pt.PostId WHERE p.Po... | sede |
CREATE TABLE College (
enr INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average enrollment number?
| SELECT AVG(enr) FROM College | sql_create_context |
CREATE TABLE fzzmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZD... | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM person_info JOIN hz_info JOIN zzmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX AND zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZ... | css |
CREATE TABLE table_204_646 (
id number,
"location" text,
"region" text,
"coordinates\n(links to map & photo sources)" text,
"population" number,
"elevation" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many people live in santa maria ?
| SELECT "population" FROM table_204_646 WHERE "location" = 'santa maria' | squall |
CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
departure_date date,
arrival_date date,
price number(7,2),
aid number(9,0)
)
CREATE TABLE employee (
eid number(9,0),
name varchar2(30),
salary number(10,2)
)
CREATE... | SELECT name, distance FROM aircraft ORDER BY name | nvbench |
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_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.QTY, t_kc22.UNIVALENT, t_kc22.AMOUNT FROM qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.PERSON_ID = '55507351' AND qtb.IN_HOSP_DATE BETWEEN '2004-09-12' AND '2008-02-03' UNION SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_k... | css |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
... | SELECT COUNT(p.Id) AS "total_questions", SUM(CASE WHEN p.AcceptedAnswerId > 0 THEN 1 ELSE 0 END) AS "answered_questions", SUM(CASE WHEN p.AcceptedAnswerId > 0 THEN 0 ELSE 1 END) * 1000 / COUNT(p.Id) / 10.0 AS "percentage_unanaswered" FROM Posts AS p, PostTags AS pt, Tags AS t WHERE p.PostTypeId = 1 AND p.Id = pt.PostId... | sede |
CREATE TABLE elimination (
Time VARCHAR,
Wrestler_ID VARCHAR
)
CREATE TABLE wrestler (
Wrestler_ID VARCHAR,
Days_held INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show times of elimination of wrestlers with days held more than 50.
| SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50 | sql_create_context |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
... | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'ventilator weaning' AND DATETIME(treatment.treatmenttime, 'start of year'... | eicu |
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate ti... | SELECT DISTINCT prescriptions.route FROM prescriptions WHERE prescriptions.drug = 'provera' | mimic_iii |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CRE... | SELECT * FROM PostLinks WHERE PostId = 95650 | sede |
CREATE TABLE table_name_7 (
date VARCHAR,
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Away Team is 'Barnet'?
| SELECT date FROM table_name_7 WHERE away_team = "barnet" | sql_create_context |
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TA... | SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%Core%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_co... | advising |
CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price real
)
CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Ranking int
)
CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stoc... | SELECT Carrier, AVG(Memory_in_G) FROM phone GROUP BY Carrier ORDER BY Carrier | nvbench |
CREATE TABLE table_73541 (
"Horizontal order" real,
"Height order" real,
"Soundfield type" text,
"Number of channels" real,
"Channels" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the channels is wxyzuv, what is the number of channels?
| SELECT "Number of channels" FROM table_73541 WHERE "Channels" = 'WXYZUV' | wikisql |
CREATE TABLE table_name_20 (
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the 2008 for 2012 being a and tournament of australian open
| SELECT 2008 FROM table_name_20 WHERE 2012 = "a" AND tournament = "australian open" | sql_create_context |
CREATE TABLE table_name_95 (
week_3 VARCHAR,
week_4 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Week 3 has a Week 4 of gina blair?
| SELECT week_3 FROM table_name_95 WHERE week_4 = "gina blair" | sql_create_context |
CREATE TABLE table_2750 (
"Team" text,
"SEC Wins" real,
"SEC Losses" real,
"Percentage" text,
"Home Record" text,
"Road Record" text,
"Overall Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's LSU's overall record/
| SELECT "Overall Record" FROM table_2750 WHERE "Team" = 'LSU' | wikisql |
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPo... | SELECT p.Title, p.Body, TIME_TO_STR(p.CreationDate, '%Year'), v.PostId AS "post_link", p.Tags FROM Posts AS P JOIN Votes AS V ON p.Id = v.PostId WHERE PostTypeId = 1 AND VoteTypeId = 2 AND p.Tags LIKE '%amazon-appstore%' AND TIME_TO_STR(p.CreationDate, '%Year') = 2015 GROUP BY p.Title, p.Body, v.PostId, p.Tags, p.Creat... | sede |
CREATE TABLE table_64746 (
"Rank" text,
"Province" text,
"Population (2011)" real,
"Percentage" real,
"Population Estimate (2013)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest 2013 population estimate of the province with a 23.7... | SELECT MIN("Population Estimate (2013)") FROM table_64746 WHERE "Percentage" = '23.7' | wikisql |
CREATE TABLE table_name_87 (
at_neutral_site VARCHAR,
overall_record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With an overall record of MU, 15-8 what is the at neutral site?
| SELECT at_neutral_site FROM table_name_87 WHERE overall_record = "mu, 15-8" | sql_create_context |
CREATE TABLE Customers (
customer_id INTEGER,
payment_method_code VARCHAR(15),
customer_number VARCHAR(20),
customer_name VARCHAR(80),
customer_address VARCHAR(255),
customer_phone VARCHAR(80),
customer_email VARCHAR(80)
)
CREATE TABLE Customer_Orders (
order_id INTEGER,
customer_id... | SELECT product_name, COUNT(product_name) FROM Products GROUP BY product_name | nvbench |
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 OUT_DIAG_DIS_CD, AVG(PERSON_AGE) FROM t_kc21 WHERE MED_SER_ORG_NO = '9733339' GROUP BY OUT_DIAG_DIS_CD | css |
CREATE TABLE table_name_8 (
competition VARCHAR,
score VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What competition had a score of 3-0, and a result of 4-1?
| SELECT competition FROM table_name_8 WHERE score = "3-0" AND result = "4-1" | sql_create_context |
CREATE TABLE player (
Player_ID int,
Sponsor_name text,
Player_name text,
Gender text,
Residence text,
Occupation text,
Votes int,
Rank text
)
CREATE TABLE player_coach (
Player_ID int,
Coach_ID int,
Starting_year int
)
CREATE TABLE club (
Club_ID int,
Club_name tex... | SELECT Occupation, COUNT(Occupation) FROM player GROUP BY Occupation ORDER BY Occupation | nvbench |
CREATE TABLE table_64032 (
"Position" real,
"Gymnast" text,
"A Score" real,
"B Score" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Total has an A Score of 6.5, and a Position larger than 5?
| SELECT MIN("Total") FROM table_64032 WHERE "A Score" = '6.5' AND "Position" > '5' | wikisql |
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
... | SELECT SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t4.charttime) > 3 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.subject_id, t2.charttime FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd... | mimic_iii |
CREATE TABLE table_name_59 (
captain VARCHAR,
kit_manufacturer VARCHAR,
manager VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the captain for the manufacturer Pony, and the manager Harry Redknapp?
| SELECT captain FROM table_name_59 WHERE kit_manufacturer = "pony" AND manager = "harry redknapp" | sql_create_context |
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
... | WITH USER_BY_TAG AS (SELECT ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS Rank, u.Id AS "user_link", COUNT(*) AS UpVotes FROM Tags AS t INNER JOIN PostTags AS pt ON pt.TagId = t.Id INNER JOIN Posts AS p ON p.ParentId = pt.PostId INNER JOIN Votes AS v ON v.PostId = p.Id AND VoteTypeId = 2 INNER JOIN Users AS u ON u.Id =... | sede |
CREATE TABLE table_76206 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Label has the Region of Australia?
| SELECT "Label" FROM table_76206 WHERE "Region" = 'australia' | wikisql |
CREATE TABLE table_11622840_1 (
tournament VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name all the tournaments that took place in Rhode Island.
| SELECT tournament FROM table_11622840_1 WHERE location = "Rhode Island" | sql_create_context |
CREATE TABLE mailshot_customers (
mailshot_id number,
customer_id number,
outcome_code text,
mailshot_customer_date time
)
CREATE TABLE premises (
premise_id number,
premises_type text,
premise_details text
)
CREATE TABLE products (
product_id number,
product_category text,
pro... | SELECT DISTINCT address_type_code FROM customer_addresses | spider |
CREATE TABLE table_76341 (
"Name" text,
"Background" text,
"Title" text,
"Appointment" text,
"Presentation of Credentials" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Anthony D. Marshall's title?
| SELECT "Title" FROM table_76341 WHERE "Name" = 'anthony d. marshall' | wikisql |
CREATE TABLE table_1137702_3 (
winning_driver VARCHAR,
pole_position VARCHAR,
fastest_lap VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the winning driver when the pole position was held by Ayrton Senna and the Fastest lap was Michael Schumacher... | SELECT winning_driver FROM table_1137702_3 WHERE pole_position = "Ayrton Senna" AND fastest_lap = "Michael Schumacher" | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Private" AND demographic.discharge_location = "DEAD/EXPIRED" | mimicsql_data |
CREATE TABLE table_23769 (
"Result" text,
"Date" text,
"Race" text,
"Venue" text,
"Group" text,
"Distance" text,
"Weight (kg)" text,
"Jockey" text,
"Winner/2nd" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the weight in kg... | SELECT "Weight (kg)" FROM table_23769 WHERE "Jockey" = 'B. York' | wikisql |
CREATE TABLE table_68937 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
)
-- Using valid SQLite, answer the following questions f... | SELECT "Points for" FROM table_68937 WHERE "Played" = '22' AND "Tries for" = '91' | wikisql |
CREATE TABLE table_name_10 (
total INTEGER,
horse VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the most total for horse of carlson
| SELECT MAX(total) FROM table_name_10 WHERE horse = "carlson" | sql_create_context |
CREATE TABLE Ref_calendar (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many calendar items do we have?
| SELECT COUNT(*) FROM Ref_calendar | sql_create_context |
CREATE TABLE table_name_15 (
season VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season has roma as the opponent?
| SELECT season FROM table_name_15 WHERE opponent = "roma" | sql_create_context |
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admi... | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course_offering.end_time <= '12:00:00' AND course.course_id = course_offering.course_id AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semest... | advising |
CREATE TABLE table_name_11 (
draws VARCHAR,
losses VARCHAR,
efficiency__percentage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of draws when there are 4 losses and 28.6% efficiency?
| SELECT COUNT(draws) FROM table_name_11 WHERE losses = 4 AND efficiency__percentage = "28.6%" | sql_create_context |
CREATE TABLE table_61529 (
"Bow number" text,
"Ship name" text,
"Launched" text,
"Commissioned" text,
"Service" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the ship commissioned in November 1975 with a bow number of ps-18 launch?
| SELECT "Launched" FROM table_61529 WHERE "Commissioned" = 'november 1975' AND "Bow number" = 'ps-18' | wikisql |
CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
First_Elected real,
Committee text
)
CREATE TABLE party (
Party_ID int,
... | SELECT County_name, COUNT(County_name) FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District GROUP BY County_name | nvbench |
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 t_kc21.IN_DIAG_DIS_CD, t_kc21.IN_DIAG_DIS_NM FROM t_kc21 WHERE t_kc21.PERSON_ID = '89171613' | css |
CREATE TABLE table_62355 (
"Event" text,
"Time" text,
"Nationality" text,
"Date" text,
"Meet" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of the event with a 1:51.51 time?
| SELECT "Nationality" FROM table_62355 WHERE "Time" = '1:51.51' | wikisql |
CREATE TABLE table_77001 (
"Squad No." real,
"Name" text,
"Position" text,
"League Apps" text,
"League Goals" real,
"FA Cup Apps" text,
"FA Cup Goals" real,
"League Cup Apps" text,
"League Cup Goals" real,
"Total Apps" text,
"Total Goals" real
)
-- Using valid SQLite, answe... | SELECT SUM("FA Cup Goals") FROM table_77001 WHERE "League Cup Goals" > '0' | wikisql |
CREATE TABLE table_name_77 (
opponent VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent has a record of 70-52?
| SELECT opponent FROM table_name_77 WHERE record = "70-52" | sql_create_context |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE mzjzjlb_jybgb (
YLJGDM_MZJZJLB text,
BGDH number,
YLJGDM number
)
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
... | SELECT COUNT(*) FROM mzjzjlb WHERE mzjzjlb.JZKSBM = '97321' AND mzjzjlb.JZKSRQ BETWEEN '2018-02-23' AND '2021-07-20' | css |
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 * FROM gwyjzb WHERE gwyjzb.PERSON_ID = '70117479' AND gwyjzb.MED_SER_ORG_NO = '2870578' AND gwyjzb.MED_ORG_DEPT_NM LIKE '%泌尿科%' UNION SELECT * FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '70117479' AND fgwyjzb.MED_SER_ORG_NO = '2870578' AND fgwyjzb.MED_ORG_DEPT_NM LIKE '%泌尿科%' | css |
CREATE TABLE protein (
common_name text,
protein_name text,
divergence_from_human_lineage real,
accession_number text,
sequence_length real,
sequence_identity_to_human_protein text,
Institution_id text
)
CREATE TABLE Institution (
Institution_id text,
Institution text,
Location ... | SELECT Institution, COUNT(*) FROM Institution AS T1 JOIN protein AS T2 ON T1.Institution_id = T2.Institution_id GROUP BY T1.Institution_id ORDER BY Institution DESC | nvbench |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.