instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
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 AVG(jyjgzbb.JCZBJGDL), MIN(jyjgzbb.JCZBJGDL), MAX(jyjgzbb.JCZBJGDL) FROM mzjzjlb JOIN jyjgzbb ON mzjzjlb.YLJGDM = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJZJLB WHERE mzjzjlb.JZZDSM = '躁狂型精神病' AND jyjgzbb.JCZBDM = '503506' | css |
CREATE TABLE table_62742 (
"Name" text,
"Feature" text,
"Latitude" text,
"Longitude" text,
"Distance" text,
"Bearing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the latitude when the distance is 42.5km?
| SELECT "Latitude" FROM table_62742 WHERE "Distance" = '42.5km' | wikisql |
CREATE TABLE table_45949 (
"Region (year)" text,
"No. 1" text,
"No. 2" text,
"No. 3" text,
"No. 4" text,
"No. 5" text,
"No. 6" text,
"No. 7" text,
"No. 8" text,
"No. 9" text,
"No. 10" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT "No. 2" FROM table_45949 WHERE "No. 9" = 'mia' | wikisql |
CREATE TABLE table_24850630_3 (
venue VARCHAR,
race VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The MacKinnon Stakes races took place on how many venues?
| SELECT COUNT(venue) FROM table_24850630_3 WHERE race = "Mackinnon Stakes" | sql_create_context |
CREATE TABLE table_15718 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the engine when the chassis was a porsche 718??
| SELECT "Engine" FROM table_15718 WHERE "Chassis" = 'porsche 718' | wikisql |
CREATE TABLE table_14702 (
"Name" text,
"Country" text,
"Loan Club" text,
"Started" text,
"Ended" text,
"Start Source" text,
"End Source" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Loan Club from Eng that ended on 22 February... | SELECT "Loan Club" FROM table_14702 WHERE "Country" = 'eng' AND "Ended" = '22 february' | wikisql |
CREATE TABLE table_33277 (
"Club" text,
"Played" real,
"Lost" real,
"Drawn" real,
"Against" real,
"Diff." real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of games played for teams that lost over 5 gam... | SELECT MAX("Played") FROM table_33277 WHERE "Lost" > '5' AND "Against" = '228' | wikisql |
CREATE TABLE table_name_39 (
place VARCHAR,
player VARCHAR,
country VARCHAR,
money___$__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Place has a Country of united states, and a Money ($) larger than 0, and a Player of craig wood?
| SELECT place FROM table_name_39 WHERE country = "united states" AND money___$__ > 0 AND player = "craig wood" | sql_create_context |
CREATE TABLE table_name_86 (
weekday VARCHAR,
away VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what weekday was the match that had Perth Glory as the away team?
| SELECT weekday FROM table_name_86 WHERE away = "perth glory" | sql_create_context |
CREATE TABLE table_77166 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Game had a Result of 136-112?
| SELECT "Game" FROM table_77166 WHERE "Result" = '136-112' | wikisql |
CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar(20),
credits numeric(2,0)
)
CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
grade varchar(2)
)
CREATE TABLE student (
ID var... | SELECT building, COUNT(building) FROM department GROUP BY building | nvbench |
CREATE TABLE table_35314 (
"Year" real,
"Event" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has the lead on Lisa Weagle?
| SELECT "Skip" FROM table_35314 WHERE "Lead" = 'lisa weagle' | wikisql |
CREATE TABLE table_31572 (
"Place" real,
"Rider" text,
"Country" text,
"Machine" text,
"Speed" text,
"Time" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which rider had a speed of 90.57mph?
| SELECT "Rider" FROM table_31572 WHERE "Speed" = '90.57mph' | wikisql |
CREATE TABLE jybgb (
YLJGDM text,
YLJGDM_MZJZJLB text,
YLJGDM_ZYJZJLB text,
BGDH text,
BGRQ time,
JYLX number,
JZLSH text,
JZLSH_MZJZJLB text,
JZLSH_ZYJZJLB text,
JZLX number,
KSBM text,
KSMC text,
SQRGH text,
SQRXM text,
BGRGH text,
BGRXM text,
SHRGH ... | (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 = h... | css |
CREATE TABLE Customers_cards (
card_type_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the card type code with most number of cards?
| SELECT card_type_code FROM Customers_cards GROUP BY card_type_code ORDER BY COUNT(*) DESC LIMIT 1 | sql_create_context |
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimme... | SELECT Time, meter_100 FROM swimmer ORDER BY Time | nvbench |
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 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_info.RYBH = '... | css |
CREATE TABLE table_name_97 (
year VARCHAR,
category VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was best costume design the award category?
| SELECT year FROM table_name_97 WHERE category = "best costume design" | 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 lab (
labid numbe... | SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-68848')) AND intakeoutput.cellpath LIKE '%in... | eicu |
CREATE TABLE table_43748 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for the United States in place T1 for David Duval?
| SELECT "Score" FROM table_43748 WHERE "Country" = 'united states' AND "Place" = 't1' AND "Player" = 'david duval' | wikisql |
CREATE TABLE train (
id int,
train_number int,
name text,
origin text,
destination text,
time text,
interval text
)
CREATE TABLE station (
id int,
network_name text,
services text,
local_authority text
)
CREATE TABLE route (
train_id int,
station_id int
)
CREATE TA... | SELECT services, COUNT(services) FROM station GROUP BY local_authority, services ORDER BY COUNT(services) DESC | 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 MED_CLINIC_ID FROM t_kc24 WHERE PERSON_ID = '26713291' AND CLINIC_SLT_DATE BETWEEN '2013-09-02' AND '2016-05-24' | css |
CREATE TABLE table_name_22 (
manufacturer VARCHAR,
year_made VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which manufacturer has a year made of 4-6-0 ooooo ten-wheeler?
| SELECT manufacturer FROM table_name_22 WHERE year_made = "4-6-0 — ooooo — ten-wheeler" | sql_create_context |
CREATE TABLE table_name_54 (
set_3 VARCHAR,
set_2 VARCHAR,
set_5 VARCHAR,
set_1 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is set 3 when set 5 is na, set 1 is 21-25, and set 2 is 25-16?
| SELECT set_3 FROM table_name_54 WHERE set_5 = "na" AND set_1 = "21-25" AND set_2 = "25-16" | sql_create_context |
CREATE TABLE table_18600760_3 (
longitude VARCHAR,
latitude VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the longitude of the township with a latitude of 48.075823?
| SELECT longitude FROM table_18600760_3 WHERE latitude = "48.075823" | sql_create_context |
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.IN_DIAG_DIS_CD, t_kc21.IN_DIAG_DIS_NM FROM t_kc21 WHERE t_kc21.MED_CLINIC_ID = '16196458812' | css |
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TAB... | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN area ON course.course_id = area.course_id INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (area.area LIKE '%Data Analysis and System Identification%' OR course.description LIKE '%Data Analysis and System ... | advising |
CREATE TABLE table_name_94 (
vertical_relief__ft_ INTEGER,
rank VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mean vertical relief in feet when the rank is more than 40 and the location is va0573?
| SELECT AVG(vertical_relief__ft_) FROM table_name_94 WHERE rank > 40 AND location = "va0573" | sql_create_context |
CREATE TABLE table_29697744_1 (
section VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many sections are for the season of 2008
| SELECT COUNT(section) FROM table_29697744_1 WHERE season = "2008" | sql_create_context |
CREATE TABLE table_203_367 (
id number,
"year" text,
"driver" text,
"constructor" text,
"location" text,
"report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which driver appears the most ?
| SELECT "driver" FROM table_203_367 GROUP BY "driver" ORDER BY COUNT(*) DESC LIMIT 1 | squall |
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.KSBM, jybgb.KSMC 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 = '38491236' AND jybgb.BGRQ BETWEEN '2013-11-25... | css |
CREATE TABLE table_name_24 (
laps VARCHAR,
grid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total laps for grid 19?
| SELECT COUNT(laps) FROM table_name_24 WHERE grid = 19 | 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 COUNT(*) FROM qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.PERSON_NM = '王清妍' AND t_kc22.STA_DATE BETWEEN '2016-05-27' AND '2019-08-14' AND t_kc22.SELF_PAY_PRO < 0.69 UNION SELECT COUNT(*) FROM gyb JOIN t_kc22 ON gyb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gyb.PERSON_NM = '王清妍' AND t_k... | css |
CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
)
CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
)
-- Using valid SQLite, answer the following que... | SELECT T2.Name, COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID ORDER BY COUNT(*) | nvbench |
CREATE TABLE table_61170 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of gold medals of the ranked 2nd nation, which has less than 2 silvers?
| SELECT COUNT("Gold") FROM table_61170 WHERE "Rank" = '2' AND "Silver" < '2' | wikisql |
CREATE TABLE table_name_1 (
outcome VARCHAR,
surface VARCHAR,
score_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the outcome on a hard surface, when the score in the final was 4 6, 3 6?
| SELECT outcome FROM table_name_1 WHERE surface = "hard" AND score_in_the_final = "4–6, 3–6" | sql_create_context |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TA... | SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-44495' AND NOT patient.hospitaldischargetime IS NULL ORDER BY... | eicu |
CREATE TABLE table_80396 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had a score of 70-73-69=212?
| SELECT "Player" FROM table_80396 WHERE "Score" = '70-73-69=212' | wikisql |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND diagnoses.short_title = "Intracerebral hemorrhage" | mimicsql_data |
CREATE TABLE team (
Team_id int,
Name text
)
CREATE TABLE player (
Player_ID int,
Player text,
Years_Played text,
Total_WL text,
Singles_WL text,
Doubles_WL text,
Team int
)
CREATE TABLE country (
Country_id int,
Country_name text,
Capital text,
Official_native_lang... | SELECT Years_Played, COUNT(Years_Played) FROM player AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Columbus Crew" GROUP BY Years_Played ORDER BY Years_Played | nvbench |
CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
family_name VARCHAR(40)
)
CREATE TABLE Student_Tests_Taken (
registration_id IN... | SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass" ORDER BY COUNT(date_of_enrolment) DESC | nvbench |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
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 T... | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees | nvbench |
CREATE TABLE table_11662133_3 (
date_withdrawn VARCHAR,
type_of_ship VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are all the date withdrawn for twin screw ro-ro motorship
| SELECT date_withdrawn FROM table_11662133_3 WHERE type_of_ship = "Twin Screw Ro-Ro Motorship" | sql_create_context |
CREATE TABLE mzjzjlb_jybgb (
YLJGDM_MZJZJLB text,
BGDH number,
YLJGDM number
)
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,
... | SELECT jybgb.BGRGH, jybgb.BGRXM FROM jybgb WHERE jybgb.JZLSH = '04623192773' GROUP BY jybgb.BGRGH HAVING COUNT(*) > 6 | css |
CREATE TABLE table_name_69 (
championship VARCHAR,
previous_champion_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which championship had a previous champion of 'defeated Justin Corino in tournament final'?
| SELECT championship FROM table_name_69 WHERE previous_champion_s_ = "defeated justin corino in tournament final" | sql_create_context |
CREATE TABLE table_28259 (
"No." real,
"#" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original air date" text,
"Prod. code" real,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the original a... | SELECT "Original air date" FROM table_28259 WHERE "Director" = 'Kevin Dowling' | wikisql |
CREATE TABLE table_204_313 (
id number,
"date" text,
"operation" text,
"location" text,
"type" text,
"information" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of operation ?
| SELECT COUNT("operation") FROM table_204_313 | squall |
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUser... | SELECT COUNT(*), Name FROM Badges WHERE TagBased = 0 GROUP BY Name ORDER BY COUNT(*) | sede |
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.KSBM, jybgb.KSMC FROM person_info JOIN hz_info JOIN wdmzjzjlb JOIN jybgb ON person_info.RYBH = hz_info.RYBH AND 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 person_... | css |
CREATE TABLE table_13767 (
"Administrative County" text,
"Area (statute acres) 1891" real,
"Population 1891" real,
"Area (statute acres) 1961" real,
"Population 1961" real,
"Headquarters" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is th... | SELECT SUM("Population 1961") FROM table_13767 WHERE "Administrative County" = 'west sussex' AND "Population 1891" < '120,952' | wikisql |
CREATE TABLE table_33 (
"Player" text,
"Total W\u2013L" text,
"Singles W\u2013L" text,
"Doubles W\u2013L" text,
"Ties played" real,
"Debut" real,
"Years played" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the maximum ties played w... | SELECT MAX("Ties played") FROM table_33 WHERE "Player" = 'Josip Palada Category:Articles with hCards' | wikisql |
CREATE TABLE table_name_50 (
college VARCHAR,
round INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which College has a Round smaller than 2?
| SELECT college FROM table_name_50 WHERE round < 2 | sql_create_context |
CREATE TABLE table_204_94 (
id number,
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponent in the final" text,
"score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many were pla... | SELECT COUNT(*) FROM table_204_94 WHERE "surface" = 'hard' | squall |
CREATE TABLE table_32388 (
"Player" text,
"Home Town" text,
"College/Prior" text,
"Drafting Team" text,
"Graduated" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the player from who graduated from Michigan after 2010?
| SELECT "Home Town" FROM table_32388 WHERE "Graduated" > '2010' AND "College/Prior" = 'michigan' | wikisql |
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 COUNT(*) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '8564108' AND t_kc22.SOC_SRT_DIRE_NM = '阿戈美拉汀片' | css |
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 jybgb.BBCJBW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb 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 AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE person_info.XM = '韩安和' AND jy... | css |
CREATE TABLE table_204_302 (
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.
-- which ranking is mexico ?
| SELECT "rank" FROM table_204_302 WHERE "nation" = 'mexico' | squall |
CREATE TABLE table_name_85 (
player VARCHAR,
position VARCHAR,
school_club_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Player has position of power forward and School/Club Team of Depaul?
| SELECT player FROM table_name_85 WHERE position = "power forward" AND school_club_team = "depaul" | sql_create_context |
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_p... | SELECT DISTINCT course.name, course.number, semester.semester, semester.year FROM course, course_offering, semester WHERE ((semester.semester = 'FA' AND semester.year = 2016) OR (semester.semester = 'FA' AND semester.year = 2017) OR (semester.semester = 'FA' AND semester.year = 2018) OR (semester.semester = 'WN' AND se... | advising |
CREATE TABLE table_name_35 (
country VARCHAR,
city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the country for johannesburg
| SELECT country FROM table_name_35 WHERE city = "johannesburg" | sql_create_context |
CREATE TABLE table_18198 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Status" text,
"Opponent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who ran unsuccessfully against Bill Hefner?
| SELECT "Opponent" FROM table_18198 WHERE "Incumbent" = 'Bill Hefner' | wikisql |
CREATE TABLE table_203_707 (
id number,
"rank" number,
"npc" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many total medals did the netherlands win ?
| SELECT "total" FROM table_203_707 WHERE "npc" = 'netherlands' | squall |
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
... | SELECT AnswerCount, COUNT(*) FROM Posts WHERE PostTypeId = 1 GROUP BY AnswerCount ORDER BY AnswerCount | sede |
CREATE TABLE table_name_76 (
team VARCHAR,
series VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the team they played when the series was 2-1?
| SELECT team FROM table_name_76 WHERE series = "2-1" | sql_create_context |
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId ... | SELECT questions.Id AS "post_link", DATE(questions.CreationDate) AS "date", initialQs.Id AS "post_link" FROM Posts AS questions JOIN Posts AS initialQs ON DATE(initialQs.CreationDate) = DATE(questions.CreationDate) WHERE questions.OwnerUserId = '##UserId##' AND questions.PostTypeId = 1 AND initialQs.OwnerUserId = '##Us... | sede |
CREATE TABLE table_name_85 (
capacity INTEGER,
city VARCHAR,
stadium VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Capacity has a City of london, and a Stadium of queen's club?
| SELECT AVG(capacity) FROM table_name_85 WHERE city = "london" AND stadium = "queen's club" | sql_create_context |
CREATE TABLE table_name_47 (
name VARCHAR,
rank VARCHAR,
height_feet___m VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the building's name that is 617 / 188 in height and ranked less than 6?
| SELECT name FROM table_name_47 WHERE rank < 6 AND height_feet___m = "617 / 188" | sql_create_context |
CREATE TABLE table_66509 (
"Medal" text,
"Name" text,
"Sport" text,
"Event" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What event did Rastislav Turecek participate in?
| SELECT "Event" FROM table_66509 WHERE "Name" = 'rastislav turecek' | wikisql |
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
good_feedback int,
tough_... | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Sunhay You%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offeri... | advising |
CREATE TABLE table_train_126 (
"id" int,
"childhood_febrile_seizure" bool,
"neurodegenerative_disease" bool,
"cns_disease" bool,
"head_injury" bool,
"stroke" bool,
"renal_disease" bool,
"cerebrovascular_disease" bool,
"hepatic_disease" bool,
"headache" bool,
"cardiovascular_d... | SELECT * FROM table_train_126 WHERE neurodegenerative_disease = 1 OR parkinson_disease = 1 OR lewy_body_dementia = 1 OR cerebrovascular_disease = 1 | criteria2sql |
CREATE TABLE table_1856 (
"Province, Community" text,
"Contestant" text,
"Age" real,
"Height" text,
"Hometown" text,
"Geographical Regions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the province where the age of the contestant is 27... | SELECT "Province, Community" FROM table_1856 WHERE "Age" = '27' | wikisql |
CREATE TABLE t_kc21_t_kc24 (
MED_CLINIC_ID text,
MED_SAFE_PAY_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,
... | SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '葛德元' AND t_kc22.STA_DATE BETWEEN '2017-02-20' AND '2020-04-10' AND t_kc22.SOC_SRT_DIRE_NM = '地西泮片' | css |
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
... | SELECT a.Body, a.Score, a.OwnerUserId, a.CreationDate, t.Name AS Type, u.Reputation, u.DisplayName, u.Location, a.ParentId FROM Posts AS q INNER JOIN Posts AS a ON a.ParentId = q.Id INNER JOIN PostTypes AS t ON a.PostTypeId = t.Id INNER JOIN Users AS u ON a.OwnerUserId = u.Id WHERE q.Tags LIKE '%minecraft%' OR q.Title ... | sede |
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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "45" AND lab.fluid = "Blood" | mimicsql_data |
CREATE TABLE table_11691212_2 (
ratings VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the rating in 1997?
| SELECT ratings FROM table_11691212_2 WHERE year = 1997 | sql_create_context |
CREATE TABLE table_24013 (
"Stations" text,
"Connections" text,
"City/ Neighborhood" text,
"Parking" text,
"Date Opened" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many connection catagories are there for Tampa?
| SELECT COUNT("Connections") FROM table_24013 WHERE "Stations" = 'Tampa' | 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 COUNT(*) FROM (SELECT qtb.MED_ORG_DEPT_CD FROM qtb WHERE qtb.MED_SER_ORG_NO = '9309855' GROUP BY qtb.MED_ORG_DEPT_CD HAVING MIN(qtb.IN_HOSP_DAYS) > 7 UNION SELECT gyb.MED_ORG_DEPT_CD FROM gyb WHERE gyb.MED_SER_ORG_NO = '9309855' GROUP BY gyb.MED_ORG_DEPT_CD HAVING MIN(gyb.IN_HOSP_DAYS) > 7 UNION SELECT zyb.MED_O... | css |
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 person_info.JGDM, person_info.JGMC, COUNT(person_info.RYBH) 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 mzjzjlb.JZZDBM = 'C78.373' GROUP BY person_info.JGDM | css |
CREATE TABLE table_name_24 (
gold INTEGER,
silver VARCHAR,
bronze VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest gold when there are 0 bronze and the total is less than 2, and silver is less than 0?
| SELECT MIN(gold) FROM table_name_24 WHERE bronze = 0 AND total < 2 AND silver < 0 | 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 jybgb.BBCJBW 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 = '78981064' AND jybgb.BGRQ BETWEEN '2018-02-11' AND '201... | css |
CREATE TABLE table_52672 (
"Year" real,
"Movie" text,
"Record Held" text,
"Studio(s)" text,
"Nett Gross" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total count of net gross in 1957?
| SELECT COUNT("Nett Gross") FROM table_52672 WHERE "Year" = '1957' | wikisql |
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_kc21.MED_AMOUT) FROM t_kc21 WHERE t_kc21.PERSON_ID = '02992018' AND t_kc21.CLINIC_TYPE = '门诊' | css |
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
... | SELECT DATE(p.CreationDate) FROM Users AS u INNER JOIN Posts AS p ON p.OwnerUserId = u.Id WHERE u.Id IN (2, 3, 66, 121, 1409, 2000, 2926) GROUP BY DATE(p.CreationDate) ORDER BY DATE(p.CreationDate) DESC | sede |
CREATE TABLE address (
phone VARCHAR,
postal_code VARCHAR,
address VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the phone number and postal code of the address 1031 Daugavpils Parkway?
| SELECT phone, postal_code FROM address WHERE address = '1031 Daugavpils Parkway' | 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 INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.short_title = "Attach pedicle graft NEC" | mimicsql_data |
CREATE TABLE table_204_593 (
id number,
"year" text,
"chairperson" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many total chairpersons have their been in this municipality ?
| SELECT COUNT("chairperson") FROM table_204_593 | squall |
CREATE TABLE table_44943 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name all Pick that has a Round of 7, and a School/Club Team of arizona st.?
| SELECT COUNT("Pick") FROM table_44943 WHERE "Round" = '7' AND "School/Club Team" = 'arizona st.' | wikisql |
CREATE TABLE table_42207 (
"Name" text,
"Innings" real,
"Runs Scored" real,
"Balls Faced" real,
"Average" real,
"S.R." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of balls faced associated with a strike rate over 48.28, 3 inni... | SELECT SUM("Balls Faced") FROM table_42207 WHERE "S.R." > '48.28' AND "Innings" = '3' AND "Average" < '5' | wikisql |
CREATE TABLE table_24466191_1 (
races INTEGER,
flaps INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most races for flaps larger than 2.0
| SELECT MAX(races) FROM table_24466191_1 WHERE flaps > 2.0 | sql_create_context |
CREATE TABLE table_77916 (
"Year" real,
"Network" text,
"Play-by-play" text,
"Colour commentator(s)" text,
"Studio host" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who did the play-by-play with studio host Ward Cornell and color commentator Bob ... | SELECT "Play-by-play" FROM table_77916 WHERE "Studio host" = 'ward cornell' AND "Colour commentator(s)" = 'bob goldham' | wikisql |
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE college (
cname text,
state text,
enr number
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT T2.pname FROM tryout AS T1 JOIN player AS T2 ON T1.pid = T2.pid WHERE T1.cname = (SELECT cname FROM college ORDER BY enr DESC LIMIT 1) | spider |
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 FROM t_kc22 WHERE t_kc22.MED_CLINIC_ID IN (SELECT gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_NM = '蒋新蕾' AND gwyjzb.MED_SER_ORG_NO = '0734262' AND gwyjzb.IN_HOSP_DATE BETWEEN '2010-12-29' AND '2012-06-26' UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHER... | css |
CREATE TABLE table_203_721 (
id number,
"school" text,
"location" text,
"control" text,
"type" text,
"enrollment" number,
"founded" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the difference in enrollment between the top 2 schoo... | SELECT ABS((SELECT "enrollment" FROM table_203_721 WHERE id = 1) - (SELECT "enrollment" FROM table_203_721 WHERE id = 2)) | squall |
CREATE TABLE table_37423 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Position has a Pick smaller than 152, and a Round smaller than 3?
| SELECT "Position" FROM table_37423 WHERE "Pick" < '152' AND "Round" < '3' | wikisql |
CREATE TABLE table_54441 (
"Party" text,
"Results 2004" text,
"CSA 5/14/09" text,
"Viavoice 5/15/09" text,
"Ifop- La Croix 5/15/09" text,
"Ipsos 5/16/09" text,
"OpinionWay 5/18/09" text,
"CSA 5/20/09" text,
"Ipsos 5/25/09" text,
"TNS-Sofres 5/26/09" text,
"OpinionWay 5/28/09"... | SELECT "OpinionWay 5/18/09" FROM table_54441 WHERE "Ipsos 5/16/09" = '11%' | wikisql |
CREATE TABLE table_75416 (
"Model" text,
"Engine" text,
"Displacement" text,
"Valvetrain" text,
"Fuel system" text,
"Max. power at rpm" text,
"Max. torque at rpm" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Valvetrain has a fuel syst... | SELECT "Valvetrain" FROM table_75416 WHERE "Fuel system" = 'petrol engines' | wikisql |
CREATE TABLE furniture (
Furniture_ID int,
Name text,
Num_of_Component int,
Market_Rate real
)
CREATE TABLE manufacturer (
Manufacturer_ID int,
Open_Year real,
Name text,
Num_of_Factories int,
Num_of_Shops int
)
CREATE TABLE furniture_manufacte (
Manufacturer_ID int,
Furnit... | SELECT Name, Market_Rate FROM furniture WHERE NOT Furniture_ID IN (SELECT Furniture_ID FROM furniture_manufacte) ORDER BY Market_Rate DESC | nvbench |
CREATE TABLE table_35086 (
"Pos." real,
"Mark" text,
"Athlete" text,
"Nationality" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which venue is with Ukraine?
| SELECT "Venue" FROM table_35086 WHERE "Nationality" = 'ukraine' | 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 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 = '32152549' AND jybgb.BGRQ BETWEEN '2015-03-23' AND '2021-... | css |
CREATE TABLE table_40522 (
"Year" text,
"Team" text,
"GP/GS" text,
"Goals" text,
"Assists" text,
"Total Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the assists for the Team of Florida and the total points of 75?
| SELECT "Assists" FROM table_40522 WHERE "Team" = 'florida' AND "Total Points" = '75' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.