context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_30074 (
"Week" real,
"Date" text,
"Kickoff" text,
"Opponent" text,
"Final score" text,
"Team record" text,
"Game site" text,
"Attendance" real
) | what was the achievement for the rival at scottish claymores | SELECT "Team record" FROM table_30074 WHERE "Opponent" = 'at Scottish Claymores' | wikisql |
CREATE TABLE table_11964047_9 (
leading_scorer VARCHAR,
home VARCHAR
) | what's the leading scorer where home is sacramento kings | SELECT leading_scorer FROM table_11964047_9 WHERE home = "Sacramento Kings" | 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... | 30567808患者的身高和体重情况是啥样的? | SELECT wdmzjzjlb.SG, wdmzjzjlb.TZ FROM hz_info JOIN wdmzjzjlb ON hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX WHERE hz_info.RYBH = '30567808' UNION SELECT bdmzjzjlb.SG, bdmzjzjlb.TZ FROM hz_info JOIN bdmzjzjlb ON hz_info.YLJGDM = bdmzjzjlb.YLJGDM AND hz_info.KH = bdmzj... | css |
CREATE TABLE table_name_81 (
hometown_highschool VARCHAR,
weight VARCHAR,
name VARCHAR
) | What was the hometown/high school of 170 pound player tyler wilson? | SELECT hometown_highschool FROM table_name_81 WHERE weight = 170 AND name = "tyler wilson" | sql_create_context |
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImage... | Average Reputation by Join Date (Month). | SELECT YEAR(CreationDate) AS cYear, MONTH(CreationDate) AS cMonth, AVG(Reputation) AS avgRep FROM Users GROUP BY YEAR(CreationDate), MONTH(CreationDate) ORDER BY 1, 2 | sede |
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,
... | 列出为49528446这个病人开药品438415-0的几家医院 | SELECT t_kc21.MED_SER_ORG_NO FROM t_kc21 WHERE t_kc21.PERSON_ID = '49528446' AND t_kc21.MED_CLINIC_ID IN (SELECT t_kc21_t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.SOC_SRT_DIRE_CD = '438415-0') | css |
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... | 在2009-10-09之前,患者吴映秋有多少门诊就诊的检验报告单?看一下门诊就诊的流水号 | SELECT mzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN mzjzjlb 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 person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND pers... | css |
CREATE TABLE table_64009 (
"Serial No." real,
"District" text,
"Headquartered City" text,
"City Population (2009)" real,
"City Area(km 2 )" real
) | What was the lowest city population for the district of rajanpur district with a area of 6 km squared and a serial number less than 29? | SELECT MIN("City Population (2009)") FROM table_64009 WHERE "City Area(km 2 )" = '6' AND "District" = 'rajanpur district' AND "Serial No." < '29' | wikisql |
CREATE TABLE table_name_73 (
poles INTEGER,
series VARCHAR,
season VARCHAR
) | What is the sum of poles of the firestone indy lights series before the 2009 season? | SELECT SUM(poles) FROM table_name_73 WHERE series = "firestone indy lights series" AND season < 2009 | sql_create_context |
CREATE TABLE table_27191 (
"#" real,
"Episode" text,
"Air Date" text,
"Timeslot (EST)" text,
"Rating" text,
"Share" real,
"18-49 (Rating/Share)" text,
"Viewers (m)" text,
"Weekly Rank (#)" real
) | How many episodes aired on October 17, 2007? | SELECT COUNT("Episode") FROM table_27191 WHERE "Air Date" = 'October 17, 2007' | wikisql |
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
... | My Comments Order By Score(Votes No). | SELECT * FROM Comments WHERE UserId = 1600305 ORDER BY Score DESC | sede |
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDa... | Top 50 Mobile Developers from Gujarat. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%kochi%' AND (LOWER(AboutMe) LIKE '%android%') ORDER BY Reputation DESC LIMIT 50 | sede |
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... | what is the number of times that intracranial/cerebral perfusion pressure monitoring - subarachnoid bolt is performed this year? | SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'intracranial/cerebral perfusion pressure monitoring - subarachnoid bolt' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | eicu |
CREATE TABLE table_16970 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
) | Who wrote 'Stop Being all Funky'? | SELECT "Written by" FROM table_16970 WHERE "Title" = 'Stop Being All Funky' | wikisql |
CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment_Method_Code VARCHAR(255),
Date_Payment_Made DATE,
Amount_Payment INTEGER
)
CREATE TABLE Customers (
Customer_ID INTEGER,
Customer_Details VARCHAR(255)
)
CREATE TABLE Customer_Policies (
Policy_ID INTEGER,
Cu... | For all the claims whose claimed amount is larger than the average, bin the settlement date into the day of week interval and count them for visualizing a bar chart. | SELECT Date_Claim_Settled, COUNT(Date_Claim_Settled) FROM Claims WHERE Amount_Claimed > (SELECT AVG(Amount_Claimed) FROM Claims) | nvbench |
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime t... | how much does patient 13473's change of arterial bp mean last measured on the last intensive care unit visit compared to the first value measured on the last intensive care unit visit? | SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 13473) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents... | mimic_iii |
CREATE TABLE table_name_56 (
median_household_income VARCHAR,
per_capita_income VARCHAR
) | What is the median household income when the per capita is $21,585? | SELECT median_household_income FROM table_name_56 WHERE per_capita_income = "$21,585" | sql_create_context |
CREATE TABLE table_46653 (
"Draw" real,
"Song" text,
"Performer" text,
"Televotes" real,
"Rank" real
) | Name the lowest Televotes which has monika sokolovska and a Rank larger than 15? | SELECT MIN("Televotes") FROM table_46653 WHERE "Performer" = 'monika sokolovska' AND "Rank" > '15' | wikisql |
CREATE TABLE table_name_24 (
decision VARCHAR,
date VARCHAR
) | What is the decision of the game on January 13? | SELECT decision FROM table_name_24 WHERE date = "january 13" | sql_create_context |
CREATE TABLE table_name_9 (
report VARCHAR,
round VARCHAR
) | What is the report for round 9? | SELECT report FROM table_name_9 WHERE round = 9 | sql_create_context |
CREATE TABLE table_name_85 (
to_par VARCHAR,
score VARCHAR
) | What To par has a Score of 71-73-71-71=286? | SELECT to_par FROM table_name_85 WHERE score = 71 - 73 - 71 - 71 = 286 | sql_create_context |
CREATE TABLE table_34684 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
) | Which position is round 7? | SELECT "Position" FROM table_34684 WHERE "Round" = '7' | wikisql |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... | provide the number of patients whose admission type is urgent and diagnoses icd9 code is 7756? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "URGENT" AND diagnoses.icd9_code = "7756" | mimicsql_data |
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_fl... | list flights from SAN JOSE to HOUSTON next sunday | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'HOUSTON' AND date_day.day_number = 27 AND date_day.month_number = 8 AND d... | atis |
CREATE TABLE Events (
Event_ID INTEGER,
Service_ID INTEGER,
Event_Details VARCHAR(255)
)
CREATE TABLE Participants_in_Events (
Event_ID INTEGER,
Participant_ID INTEGER
)
CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15)
)
CREATE TABLE Participants (
Participant_ID... | List all the participant ids and their details using a bar chart, rank in desc by the Participant_ID please. | SELECT Participant_Details, Participant_ID FROM Participants ORDER BY Participant_ID DESC | nvbench |
CREATE TABLE table_name_13 (
type VARCHAR,
date VARCHAR
) | What was the course type on 22 May? | SELECT type FROM table_name_13 WHERE date = "22 may" | sql_create_context |
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
Pos... | Compare post counts for 2 tags. | SELECT COUNT(PostId) AS c, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId AND Posts.CreationDate < '2017-01-01' AND Posts.CreationDate > '2016-01-01' AND TagName IN ('4d', 'java', 'c#', 'php', 'cobol', 'ms-access', '4d-database') GROUP BY TagName | sede |
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
s... | what are the changes in calculated total co2 of patient 27172 last measured on the current hospital visit compared to the first value measured on the current hospital visit? | SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 27172 AND admissions.dischtime IS NULL) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'calculated total co2') ORDER BY labeven... | mimic_iii |
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | Give me the comparison about the average of Team_ID over the ACC_Road , and group by attribute ACC_Road by a bar chart, and list Y from high to low order please. | SELECT ACC_Road, AVG(Team_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY AVG(Team_ID) DESC | nvbench |
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE time_interval (
period text,
begin_time int... | cheapest fare from MEMPHIS to SEATTLE | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'MEMPHIS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city... | atis |
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_tests int,
heavy_papers int,
cares_for_students int,
heavy_assignments ... | Out of all the 400 -level courses , which of them do n't have labs ? | SELECT DISTINCT name, number FROM course WHERE department = 'EECS' AND has_lab = 'N' AND number < 400 + 100 AND number >= 400 | advising |
CREATE TABLE table_name_86 (
qual VARCHAR,
laps VARCHAR,
rank VARCHAR
) | What is the qual with 200 laps and a rank of 27? | SELECT qual FROM table_name_86 WHERE laps = 200 AND rank = "27" | sql_create_context |
CREATE TABLE table_name_50 (
quantity_rebuilt INTEGER,
class VARCHAR
) | What the least quantity having a T2A class? | SELECT MIN(quantity_rebuilt) FROM table_name_50 WHERE class = "t2a" | sql_create_context |
CREATE TABLE table_45850 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | For the game played at the Boston Garden with a score of 118-110, what is the opposing team's record? | SELECT "Record" FROM table_45850 WHERE "Location" = 'boston garden' AND "Score" = '118-110' | wikisql |
CREATE TABLE fgwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | 在2001年4月23日到2010年8月18日这段时间在医院7841691的科室中医疗费的总数少于2085.24元有多少次? | SELECT COUNT(*) FROM (SELECT gwyjzb.MED_ORG_DEPT_CD FROM gwyjzb JOIN t_kc24 ON gwyjzb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gwyjzb.MED_SER_ORG_NO = '7841691' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2001-04-23' AND '2010-08-18' GROUP BY gwyjzb.MED_ORG_DEPT_CD HAVING SUM(t_kc24.MED_AMOUT) < 2085.24 UNION SELECT fgwyjzb.... | css |
CREATE TABLE airlines (
alid integer,
name text,
iata varchar(2),
icao varchar(3),
callsign text,
country text,
active varchar(2)
)
CREATE TABLE routes (
rid integer,
dst_apid integer,
dst_ap varchar(4),
src_apid bigint,
src_ap varchar(4),
alid bigint,
airline va... | What are the countries of all airlines whose names start with Orbit, and count them by a bar chart, sort bars in desc order. | SELECT country, COUNT(country) FROM airlines WHERE name LIKE 'Orbit%' GROUP BY country ORDER BY country DESC | nvbench |
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
... | Get all answers containing 'help me'. | SELECT Id AS "post_link", Body, Score FROM Posts WHERE PostTypeId = 2 AND (Body LIKE '%please help me%') | sede |
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,
... | 在04年4月20日到05年7月29日这段时间里,病患70347742所有检验结果指标记录的检测人为杨玛丽的检验指标流水号是多少啊? | 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 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... | count the number of patients whose age is less than 61 and days of hospital stay is greater than 23? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "61" AND demographic.days_stay > "23" | mimicsql_data |
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChang... | Posts whose only tag is <general-physics+>. | SELECT Id AS "post_link", Tags, CreationDate, ClosedDate FROM Posts WHERE Tags LIKE '<general-physics+>' | sede |
CREATE TABLE table_8063 (
"Rank" text,
"Margin" text,
"Opponent" text,
"Venue" text,
"Season" text
) | What is the Margin that has a Venue of bellerive oval , hobart, and a Season of 2002/03? | SELECT "Margin" FROM table_8063 WHERE "Venue" = 'bellerive oval , hobart' AND "Season" = '2002/03' | wikisql |
CREATE TABLE table_28116528_1 (
title VARCHAR,
production_code VARCHAR
) | What episode title had a production code of 3x6306? | SELECT title FROM table_28116528_1 WHERE production_code = "3X6306" | sql_create_context |
CREATE TABLE table_name_70 (
earnings___ INTEGER,
wins INTEGER
) | How many earnings have Wins larger than 3? | SELECT SUM(earnings___) AS $__ FROM table_name_70 WHERE wins > 3 | sql_create_context |
CREATE TABLE table_33475 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What was the away team's score when home team Carlton scored 15.16 (106)? | SELECT "Away team score" FROM table_33475 WHERE "Home team score" = '15.16 (106)' AND "Home team" = 'carlton' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,
... | 经过门诊诊断确诊为疾病J15.862的那个编号为93176419的患者的检测指标694263的结果定量及其单位分别是多少? | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW 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 = jy... | 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... | 这个编号为45204934476的患者个人账户在医疗就诊期间支出占医疗费总额的比例占多少? | SELECT (SELECT t_kc24.PER_ACC_PAY FROM t_kc24 JOIN t_kc21_t_kc24 JOIN t_kc21 ON t_kc21_t_kc24.MED_SAFE_PAY_ID = t_kc24.MED_SAFE_PAY_ID AND t_kc21_t_kc24.MED_CLINIC_ID = t_kc21.MED_CLINIC_ID WHERE t_kc21.MED_CLINIC_ID = '45204934476') / (SELECT t_kc24.MED_AMOUT FROM t_kc24 WHERE t_kc21_t_kc24.MED_CLINIC_ID = '4520493447... | css |
CREATE TABLE table_name_11 (
week VARCHAR,
opponent VARCHAR
) | Which Week has an Opponent of at seattle seahawks? | SELECT week FROM table_name_11 WHERE opponent = "at seattle seahawks" | sql_create_context |
CREATE TABLE table_47444 (
"Series Sorted" text,
"Title" text,
"Doctor" text,
"Featuring" text,
"Released" text
) | who is the featuring when the doctor is the 6th and the series sorted is 6y/ak? | SELECT "Featuring" FROM table_47444 WHERE "Doctor" = '6th' AND "Series Sorted" = '6y/ak' | wikisql |
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
econ... | show me the flights to DAL | SELECT DISTINCT flight.flight_id FROM airport, airport_service, city, flight WHERE airport.airport_code = 'DAL' AND city.city_code = airport_service.city_code AND flight.from_airport = airport_service.airport_code AND flight.to_airport = airport.airport_code | atis |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE patients (
row_id number,
subject_id num... | count the number of patients who this year had an intake of d5 normal saline. | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT icustays.hadm_id FROM icustays WHERE icustays.icustay_id IN (SELECT inputevents_cv.icustay_id FROM inputevents_cv WHERE inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'd5 normal saline' A... | mimic_iii |
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location... | calculate the number of patients who received a lab test of magnesium, urine in this year. | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'magnesium, urine') AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(),... | mimic_iii |
CREATE TABLE table_3681 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (million)" text
) | When did the episode written by Abe Sylvia originally air? | SELECT "Original air date" FROM table_3681 WHERE "Written by" = 'Abe Sylvia' | 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 weekly_weather (
station_id int,
day_of_week text... | Return a histogram on what is the average high temperature for each day of week?, show x axis in asc order please. | SELECT day_of_week, AVG(high_temperature) FROM weekly_weather GROUP BY day_of_week ORDER BY day_of_week | nvbench |
CREATE TABLE table_34058 (
"Date" text,
"Label" text,
"Region" text,
"Format" text,
"Catalog" text
) | What Label has a Catalog number of 885 572-7 in 7' single Format? | SELECT "Label" FROM table_34058 WHERE "Format" = '7" single' AND "Catalog" = '885 572-7' | wikisql |
CREATE TABLE table_26657 (
"District" text,
"Vacator" text,
"Reason for Vacancy" text,
"Successor" text,
"Date of successors taking office" text
) | When rudolph kleberg (d) is the successor what is the date of successors taking office? | SELECT "Date of successors taking office" FROM table_26657 WHERE "Successor" = 'Rudolph Kleberg (D)' | wikisql |
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 procedures (
... | what is the diagnoses short title and diagnoses long title of diagnoses icd9 code 4239? | SELECT diagnoses.short_title, diagnoses.long_title FROM diagnoses WHERE diagnoses.icd9_code = "4239" | mimicsql_data |
CREATE TABLE table_14342210_12 (
touchdowns INTEGER,
player VARCHAR
) | How many touchdowns did Redden score? | SELECT MIN(touchdowns) FROM table_14342210_12 WHERE player = "Redden" | sql_create_context |
CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
)
CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE trip (
id INTEGER,
d... | What are the number of the dates with a maximum temperature higher than 85? | SELECT date, COUNT(date) FROM weather WHERE max_temperature_f > 85 | nvbench |
CREATE TABLE table_14010 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | How many bronze medals did the nation have that had less than 3 silver, 5 gold and ranked better than 31? | SELECT SUM("Bronze") FROM table_14010 WHERE "Silver" < '3' AND "Rank" < '31' AND "Gold" = '5' | wikisql |
CREATE TABLE table_62561 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Location" text
) | What method was there in round 1 when the location was Aruba? | SELECT "Method" FROM table_62561 WHERE "Round" = '1' AND "Location" = 'aruba' | wikisql |
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE l... | tell me what are the top four most common output events? | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT outputevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM outputevents GROUP BY outputevents.itemid) AS t1 WHERE t1.c1 <= 4) | mimic_iii |
CREATE TABLE table_583 (
"No" real,
"Player" text,
"Height" text,
"Position" text,
"Year born" real,
"Current Club" text
) | What position was played by the player who was 2.12 meters tall? | SELECT "Position" FROM table_583 WHERE "Height" = '2.12' | wikisql |
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... | what is the daily average value of patient 3267's weight until 07/2104? | SELECT AVG(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3267)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit... | mimic_iii |
CREATE TABLE Research_Staff (
staff_id INTEGER,
employer_organisation_id INTEGER,
staff_details VARCHAR(255)
)
CREATE TABLE Staff_Roles (
role_code VARCHAR(10),
role_description VARCHAR(255)
)
CREATE TABLE Projects (
project_id INTEGER,
organisation_id INTEGER,
project_details VARCHAR(... | Scatter chart. how many staff does each project has? List the project id and the number in an ascending order. | SELECT T1.project_id, COUNT(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY COUNT(*) | nvbench |
CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(50),
building_phone VARCHAR(80)
)
CREATE TABLE View_Unit_Status (
apt_id INTEG... | A bar chart for what are the number of the facility codes of the apartments with more than four bedrooms? | SELECT facility_code, COUNT(facility_code) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4 GROUP BY facility_code | nvbench |
CREATE TABLE table_65212 (
"Date" text,
"Location" text,
"Lineup" text,
"Assist/pass" text,
"Score" text,
"Result" text,
"Competition" text
) | Which assist/pass is in Ferreiras? | SELECT "Assist/pass" FROM table_65212 WHERE "Location" = 'ferreiras' | wikisql |
CREATE TABLE address (
address_id SMALLINT UNSIGNED,
address VARCHAR(50),
address2 VARCHAR(50),
district VARCHAR(20),
city_id SMALLINT UNSIGNED,
postal_code VARCHAR(10),
phone VARCHAR(20),
last_update TIMESTAMP
)
CREATE TABLE language (
language_id TINYINT UNSIGNED,
name CHAR(20... | A line chart for what are the number of the payment dates for any payments that have an amount greater than 10 or were handled by a staff member with the first name Elsa?, and show by the payment_date in descending. | SELECT payment_date, COUNT(payment_date) FROM payment WHERE amount > 10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = 'Elsa' GROUP BY payment_date ORDER BY payment_date DESC | nvbench |
CREATE TABLE table_name_34 (
school_club_team VARCHAR,
player VARCHAR
) | What school did Paul Dawkins play for? | SELECT school_club_team FROM table_name_34 WHERE player = "paul dawkins" | sql_create_context |
CREATE TABLE table_name_2 (
rd__number INTEGER,
player VARCHAR,
pick__number VARCHAR
) | What's the average Rd number for dane jackson with a pick number over 44? | SELECT AVG(rd__number) FROM table_name_2 WHERE player = "dane jackson" AND pick__number > 44 | sql_create_context |
CREATE TABLE table_name_56 (
date VARCHAR,
competition VARCHAR,
venue VARCHAR
) | What date has a competition of 2012 afc challenge cup, and dasarath rangasala stadium, kathmandu as the venue? | SELECT date FROM table_name_56 WHERE competition = "2012 afc challenge cup" AND venue = "dasarath rangasala stadium, kathmandu" | sql_create_context |
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_tests int,
heavy_papers int,
cares_for_students int,
heavy_assignments ... | Are there any courses taught by Prof. Nicholas Gaudio ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Nicholas Gaudio%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id... | advising |
CREATE TABLE table_24925 (
"Name" text,
"Position" text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Home Team" text
) | If the name is Timo Higgins, what is the total date of birth amount? | SELECT COUNT("Date of Birth") FROM table_24925 WHERE "Name" = 'Timo Higgins' | wikisql |
CREATE TABLE table_name_10 (
record VARCHAR,
save VARCHAR
) | What was the record the day David Weathers (15) had a save? | SELECT record FROM table_name_10 WHERE save = "david weathers (15)" | sql_create_context |
CREATE TABLE table_28210383_1 (
original_air_date VARCHAR,
prod_code VARCHAR
) | What was the orginal air date for episodes with production code 2acx12? | SELECT original_air_date FROM table_28210383_1 WHERE prod_code = "2ACX12" | sql_create_context |
CREATE TABLE table_17506 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
) | Who won the Men's Doubles when Guo Xin won the Women's Singles? | SELECT "Mens doubles" FROM table_17506 WHERE "Womens singles" = 'Guo Xin' | wikisql |
CREATE TABLE table_20350118_1 (
total INTEGER,
county VARCHAR
) | How many people voted in Cabarrus county? | SELECT MIN(total) FROM table_20350118_1 WHERE county = "Cabarrus" | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... | count the number of patients whose diagnoses short title is ventricular fibrillation and drug route is replace? | 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 = "Ventricular fibrillation" AND prescriptions.route = "REPLACE" | mimicsql_data |
CREATE TABLE table_38680 (
"Position" text,
"Number" real,
"Name" text,
"Height" text,
"Weight" text,
"Class" text,
"Hometown" text,
"Games\u2191" real
) | What is Ashton Cobb's class in Game 2? | SELECT "Class" FROM table_38680 WHERE "Games\u2191" = '2' AND "Name" = 'ashton cobb' | wikisql |
CREATE TABLE customers (
customer_details VARCHAR
) | List the names of all the customers in alphabetical order. | SELECT customer_details FROM customers ORDER BY customer_details | sql_create_context |
CREATE TABLE table_name_75 (
prom__m_ INTEGER,
peak VARCHAR,
height__m_ VARCHAR,
class VARCHAR
) | What is the average prom (m) when the height (m) is more than 733, the class is Hewitt, and the peak is Kirk Fell East Top? | SELECT AVG(prom__m_) FROM table_name_75 WHERE height__m_ > 733 AND class = "hewitt" AND peak = "kirk fell east top" | sql_create_context |
CREATE TABLE table_2419754_1 (
institution VARCHAR,
nickname VARCHAR
) | What university team is referred to as the tigers? | SELECT institution FROM table_2419754_1 WHERE nickname = "Tigers" | sql_create_context |
CREATE TABLE table_79761 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
) | What dates contained matches at the venue Bourda? | SELECT "Date" FROM table_79761 WHERE "Venue" = 'bourda' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,
... | 编号为04835754334的门诊就诊的那些患者的卡号以及卡类型是啥 | SELECT wdmzjzjlb.KH, wdmzjzjlb.KLX FROM wdmzjzjlb WHERE wdmzjzjlb.JZLSH = '04835754334' UNION SELECT bdmzjzjlb.KH, bdmzjzjlb.KLX FROM bdmzjzjlb WHERE bdmzjzjlb.JZLSH = '04835754334' | css |
CREATE TABLE table_name_88 (
time VARCHAR,
nationality VARCHAR,
heat VARCHAR,
lane VARCHAR
) | What is the Time of the swimmer from Chinese Taipei in Heat 3? | SELECT time FROM table_name_88 WHERE heat = 3 AND lane > 3 AND nationality = "chinese taipei" | sql_create_context |
CREATE TABLE table_43881 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | What is Score, when Place is 'T8', and when Player is 'Orville Moody'? | SELECT "Score" FROM table_43881 WHERE "Place" = 't8' AND "Player" = 'orville moody' | wikisql |
CREATE TABLE table_name_89 (
grid INTEGER,
rider VARCHAR
) | What is the highest grid that has gregorio lavilla as the rider? | SELECT MAX(grid) FROM table_name_89 WHERE rider = "gregorio lavilla" | sql_create_context |
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Votes (
Id number,
PostId number,... | [ALPHA] [Favoritism - High Favorite <-> Score Correlation]. | SELECT p.Title AS "post_title", p.Tags AS "tags", p.Score AS "score", p.FavoriteCount AS "favorite", ('site://users/' + CAST(u1.Id AS TEXT) + '|' + u1.DisplayName) AS "poster", (SELECT MAX(v.CreationDate) FROM Votes AS v WHERE v.VoteTypeId = 5 AND v.PostId = p.Id) AS "last_favorite" FROM Posts AS p INNER JOIN Users AS ... | sede |
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,
... | 戚阳曜患者在8055901医院入院诊断疾病名称不包含胃溃疡的医疗就诊记录编号是多少? | SELECT gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_NM = '戚阳曜' AND gwyjzb.MED_SER_ORG_NO = '8055901' AND NOT gwyjzb.IN_DIAG_DIS_NM LIKE '%胃溃疡%' UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '戚阳曜' AND fgwyjzb.MED_SER_ORG_NO = '8055901' AND NOT fgwyjzb.IN_DIAG_DIS_NM LIKE '%胃溃疡%' | css |
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,
... | 从04年7月19日开始到2019年1月14日结束姜玉石患者被开出布洛芬片(糖衣)药物的总次数的数量有几次? | SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 JOIN t_kc21_t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc22.MED_CLINIC_ID AND t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID WHERE t_kc21.PERSON_NM = '姜玉石' AND t_kc22.STA_DATE BETWEEN '2004-07-19' AND '2019-01-14' AND t_kc22.SOC_SRT_DIRE_NM = '布洛芬片(糖衣)' | css |
CREATE TABLE table_26018 (
"#" real,
"Title" text,
"Original airdate" text,
"Timeslot" text,
"Viewers (millions)" text,
"Nightly rank" real,
"Weekly rank" real
) | When did 'The Intervention' originally air? | SELECT "Original airdate" FROM table_26018 WHERE "Title" = 'The Intervention' | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | find the number of patients whose lab test named total protein, urine had lab test result as delta. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.flag = "delta" AND lab.label = "Total Protein, Urine" | mimicsql_data |
CREATE TABLE table_29920800_1 (
directed_by VARCHAR,
us_viewers__million_ VARCHAR
) | Who directed the episode that was watched by 2.97 million U.S. viewers? | SELECT directed_by FROM table_29920800_1 WHERE us_viewers__million_ = "2.97" | sql_create_context |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | what is the number of patients with newborn primary disease who had pleural lab test? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "NEWBORN" AND lab.fluid = "Pleural" | mimicsql_data |
CREATE TABLE table_name_84 (
wins INTEGER,
points VARCHAR,
year VARCHAR,
class VARCHAR,
team VARCHAR
) | What is the average wins in 250cc class for Bultaco with 8 points later than 1966? | SELECT AVG(wins) FROM table_name_84 WHERE class = "250cc" AND team = "bultaco" AND year > 1966 AND points = 8 | sql_create_context |
CREATE TABLE resultsdata15 (
sample_pk number,
commod text,
commtype text,
lab text,
pestcode text,
testclass text,
concen number,
lod number,
conunit text,
confmethod text,
confmethod2 text,
annotate text,
quantitate text,
mean text,
extract text,
determi... | Name some imported commodities that are not found in the US. | SELECT commod FROM sampledata15 WHERE origin = 2 AND NOT commod IN (SELECT commod FROM sampledata15 WHERE origin = 1) | pesticide |
CREATE TABLE table_15405904_1 (
drawn INTEGER,
lost VARCHAR
) | When there is a lost of 2 what is the mumber drawn? | SELECT MAX(drawn) FROM table_15405904_1 WHERE lost = 2 | sql_create_context |
CREATE TABLE table_13556 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
) | What county has a Median family income of $37,667? | SELECT "County" FROM table_13556 WHERE "Median family income" = '$37,667' | wikisql |
CREATE TABLE table_17631 (
"State" text,
"Preliminaries" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Average" text
) | What is the interview score for the state of Virginia? | SELECT "Interview" FROM table_17631 WHERE "State" = 'Virginia' | wikisql |
CREATE TABLE table_34686 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
) | What is Darryl Fedorak's highest round? | SELECT MAX("Round") FROM table_34686 WHERE "Player" = 'darryl fedorak' | wikisql |
CREATE TABLE table_1341423_22 (
district VARCHAR,
incumbent VARCHAR
) | How many districts have Bart Stupak as the incumbent? | SELECT COUNT(district) FROM table_1341423_22 WHERE incumbent = "Bart Stupak" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.