context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_name_74 (
winning_team VARCHAR,
year VARCHAR
) | What was the winning team in 2013? | SELECT winning_team FROM table_name_74 WHERE year = 2013 | sql_create_context |
CREATE TABLE table_name_51 (
competition VARCHAR,
venue VARCHAR
) | Which competition took place at Stade Fernand Fournier, Arles? | SELECT competition FROM table_name_51 WHERE venue = "stade fernand fournier, arles" | sql_create_context |
CREATE TABLE table_37264 (
"School" text,
"Location" text,
"Mascot" text,
"# / County" text,
"Year joined" real,
"Previous conference" text,
"Year left" real,
"New conference" text
) | What is the most current year with a previous conference of Mid-Indiana in Converse? | SELECT MAX("Year joined") FROM table_37264 WHERE "Previous conference" = 'mid-indiana' AND "Location" = 'converse' | wikisql |
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE ReviewTaskResults (
Id number,
... | Recently closed questions for a single user. | SELECT Id AS "post_link", ClosedDate, Score FROM Posts WHERE OwnerUserId = '##UserId:int##' AND NOT ClosedDate IS NULL ORDER BY ClosedDate DESC | sede |
CREATE TABLE postseason (
year INTEGER,
round TEXT,
team_id_winner TEXT,
league_id_winner TEXT,
team_id_loser TEXT,
league_id_loser TEXT,
wins INTEGER,
losses INTEGER,
ties INTEGER
)
CREATE TABLE fielding_outfield (
player_id TEXT,
year INTEGER,
stint INTEGER,
glf NU... | Can you draw the trend of avg(attendance) over the year?, and sort x axis from high to low order. | SELECT year, AVG(attendance) FROM home_game ORDER BY year DESC | nvbench |
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... | what is the number of asian patients who had open reduction of femur fracture with internal rotation? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "ASIAN" AND procedures.short_title = "Open reduc-int fix femur" | mimicsql_data |
CREATE TABLE list (
lastname text,
firstname text,
grade number,
classroom number
)
CREATE TABLE teachers (
lastname text,
firstname text,
classroom number
) | How many students are there? | SELECT COUNT(*) FROM list | spider |
CREATE TABLE table_26757 (
"Player" text,
"Group Legs won" real,
"Play-Off Legs won" real,
"Winners Group Legs won" real,
"Winners Play-Off Legs won" real,
"Final position money won*" text,
"Total money won" text
) | How many group legs were won with player Mark Dudbridge? | SELECT "Winners Group Legs won" FROM table_26757 WHERE "Player" = 'Mark Dudbridge' | wikisql |
CREATE TABLE table_name_78 (
date VARCHAR,
venue VARCHAR,
name VARCHAR
) | What is Date, when Venue is 'Taunton', and when Name is 'SC Ganguly'? | SELECT date FROM table_name_78 WHERE venue = "taunton" AND name = "sc ganguly" | sql_create_context |
CREATE TABLE table_78310 (
"Team" text,
"Outgoing manager" text,
"Date of departure" text,
"Replaced by" text,
"Date of Appointment" text
) | When was the appointment date for the manager replaced by Lucien Favre? | SELECT "Date of Appointment" FROM table_78310 WHERE "Replaced by" = 'lucien favre' | wikisql |
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 hz_info (
KH text,
KLX number... | 查一下从2001-08-28到2006-01-01这期间,患者窦碧玉去9175260这个医疗机构看过几次门诊 | SELECT COUNT(*) FROM person_info JOIN hz_info JOIN txmzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX WHERE person_info.XM = '窦碧玉' AND txmzjzjlb.JZKSRQ BETWEEN '2001-08-28' AND '2006-01-01' AND txmzjzjlb.YLJGDM = '9175260' UNI... | css |
CREATE TABLE table_28866 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) | who were the 'candidate' of South Carolina 6? | SELECT "Candidates" FROM table_28866 WHERE "District" = 'South Carolina 6' | wikisql |
CREATE TABLE table_27143 (
"Player" text,
"Minutes" real,
"Field Goals" real,
"Rebounds" real,
"Assists" real,
"Steals" real,
"Blocks" real,
"Points" real
) | How many assists did the player who had 863 minutes have? | SELECT MIN("Assists") FROM table_27143 WHERE "Minutes" = '863' | wikisql |
CREATE TABLE table_4782 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) | What is the IATA code for the city with ICAO code of RCMQ? | SELECT "IATA" FROM table_4782 WHERE "ICAO" = 'rcmq' | wikisql |
CREATE TABLE table_name_56 (
round_4 INTEGER,
score VARCHAR,
year VARCHAR
) | What is the highest score in round 4 and total of 284 in a year more recent than 1998? | SELECT MAX(round_4) FROM table_name_56 WHERE score = 284 AND year > 1998 | sql_create_context |
CREATE TABLE table_name_13 (
country VARCHAR,
score VARCHAR
) | What is Country, when Score is 71-74-70=215? | SELECT country FROM table_name_13 WHERE score = 71 - 74 - 70 = 215 | sql_create_context |
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 ... | 二零一八年二月三日到二零二零年十二月九日,去医疗机构6269787的新生儿门诊就诊的人有多少 | SELECT COUNT(*) FROM mzjzjlb JOIN hz_info_mzjzjlb JOIN hz_info ON hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzjzjlb.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzjzjlb.mzjzjlb_id = mzjzjlb.mzjzjlb_id AND hz_info_mzjzjlb.YLJGDM = hz_info.YLJGDM WHERE hz_info.YLJGDM = '62... | css |
CREATE TABLE airport (
Airport_ID int,
Airport_Name text,
Total_Passengers real,
%_Change_2007 text,
International_Passengers real,
Domestic_Passengers real,
Transit_Passengers real,
Aircraft_Movements real,
Freight_Metric_Tonnes real
)
CREATE TABLE pilot (
Pilot_Id int(11),
... | List the number of the description of all aircrafts, and could you display from low to high by the total number? | SELECT Description, COUNT(Description) FROM aircraft GROUP BY Description ORDER BY COUNT(Description) | nvbench |
CREATE TABLE phone (
company_name text,
hardware_model_name text,
accreditation_type text,
accreditation_level text,
date text,
chip_model text,
screen_mode text
)
CREATE TABLE chip_model (
model_name text,
launch_year number,
ram_mib number,
rom_mib number,
slots text,
... | List the hardware model name and company name for all the phones that were launched in year 2002 or have RAM size greater than 32. | SELECT T2.hardware_model_name, T2.company_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.model_name = T2.chip_model WHERE T1.launch_year = 2002 OR T1.ram_mib > 32 | spider |
CREATE TABLE CLASS (
CLASS_CODE varchar(5),
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int
)
CREATE TABLE COURSE (
CRS_CODE varchar(10),
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8)
)
CREATE... | Bar chart of sum crs credit from each dept code, rank in ascending by the y-axis please. | SELECT DEPT_CODE, SUM(CRS_CREDIT) FROM COURSE GROUP BY DEPT_CODE ORDER BY SUM(CRS_CREDIT) | nvbench |
CREATE TABLE table_46157 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Round" text
) | Which Venue has an Opposing Team of manchester united, and a Round of 5th round replay? | SELECT "Venue" FROM table_46157 WHERE "Opposing Team" = 'manchester united' AND "Round" = '5th round replay' | wikisql |
CREATE TABLE table_test_15 (
"id" int,
"anemia" bool,
"cell_therapy" bool,
"hiv_infection" bool,
"hemoglobin_a1c_hba1c" float,
"body_weight" float,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"active_hepatitis" bool,
"chronic_inflammatory_disease" bool,
"platelet_c... | creatinine clearance < 30 ml / minute. | SELECT * FROM table_test_15 WHERE creatinine_clearance_cl < 30 | criteria2sql |
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... | 编号为43827517的患者被门诊诊断为胃炎,看看检测指标983873的结果定量及其单位 | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN hz_info_mzjzjlb ON hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM... | css |
CREATE TABLE table_16690 (
"Rd." real,
"Grand Prix" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Constructor" text,
"Report" text
) | What is the make of the car that won the brazilian grand prix? | SELECT "Constructor" FROM table_16690 WHERE "Grand Prix" = 'Brazilian Grand Prix' | wikisql |
CREATE TABLE Lessons (
lesson_id INTEGER,
customer_id INTEGER,
lesson_status_code VARCHAR(15),
staff_id INTEGER,
vehicle_id INTEGER,
lesson_date DATETIME,
lesson_time VARCHAR(10),
price DOUBLE
)
CREATE TABLE Addresses (
address_id INTEGER,
line_1_number_building VARCHAR(80),
... | For each customer status code, how many customers are classified that way Visualize by bar chart, list by the total number in asc. | SELECT customer_status_code, COUNT(*) FROM Customers GROUP BY customer_status_code ORDER BY COUNT(*) | nvbench |
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
) | Show different nominees and the number of musicals they have been nominated. Plot them as bar chart. | SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee | nvbench |
CREATE TABLE table_16385 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original air date" text,
"Production code" text
) | give the least number of times an episode was shown from 1997-1998 | SELECT MIN("No. in season") FROM table_16385 | wikisql |
CREATE TABLE table_name_28 (
ave__no INTEGER,
name VARCHAR
) | Which AVE-No has a Name of livigno alps? | SELECT MIN(ave__no) FROM table_name_28 WHERE name = "livigno alps" | sql_create_context |
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Coun... | Visualize a bar chart about the distribution of meter_600 and meter_100 , and I want to sort by the Y-axis from high to low. | SELECT meter_600, meter_100 FROM swimmer ORDER BY meter_100 DESC | nvbench |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE admissions (
... | what is the name of a procedure that patient 58730 has been given for two or more times until 30 months ago? | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, COUNT(procedures_icd.charttime) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 587... | mimic_iii |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemics... | today, has patient 016-19343's systemicmean been ever less than 95.0? | SELECT COUNT(*) > 0 FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-19343')) AND vitalperiodic.systemicmean < 95.0 AND NOT vitalperi... | eicu |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number... | what was the name of the medicine that was prescribed to patient 005-11182 during the same hospital visit after receiving the ddavp injection procedure since 16 months ago? | SELECT t2.drugname FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid =... | eicu |
CREATE TABLE table_44742 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | What is Bob Gilder in Place T3's To par? | SELECT "To par" FROM table_44742 WHERE "Place" = 't3' AND "Player" = 'bob gilder' | wikisql |
CREATE TABLE mzjzjlb_jybgb (
YLJGDM_MZJZJLB text,
BGDH number,
YLJGDM number
)
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 n... | 在门诊就诊65477459453中,中医诊断名是什么?对应的编码呢 | SELECT mzjzjlb.MZZYZDZZBM, mzjzjlb.MZZYZDZZMC FROM mzjzjlb WHERE mzjzjlb.JZLSH = '65477459453' | css |
CREATE TABLE table_17802778_1 (
average_speed__mph_ VARCHAR,
race_time VARCHAR
) | What was the average speed (mph) for the racer who finished in 1:45:00? | SELECT average_speed__mph_ FROM table_17802778_1 WHERE race_time = "1:45:00" | sql_create_context |
CREATE TABLE table_69935 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Time" text,
"Location" text
) | Which record has 4:14 as the time? | SELECT "Record" FROM table_69935 WHERE "Time" = '4:14' | wikisql |
CREATE TABLE table_name_7 (
tournament VARCHAR,
score VARCHAR
) | Which tournament had a score of 7 5, 2 6, 7 6? | SELECT tournament FROM table_name_7 WHERE score = "7–5, 2–6, 7–6" | 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... | 医院3560417中患者58973613门诊诊断名称中不包含低钾血症的门诊诊断记录共是哪几条? | SELECT * FROM hz_info JOIN mzjzjlb JOIN person_info_hz_info JOIN person_info ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND person_info_hz_info.YLJGDM = hz_info.YLJGDM AND person_info_hz_i... | css |
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_... | leave flight from BOSTON to ATLANTA leave BOSTON approximately 1pm | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ((flight.departure_time <= 1330 AND flight.departure_time >= 1230) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND flight... | atis |
CREATE TABLE person_info (
RYBH text,
XBDM number,
XBMC text,
XM text,
CSRQ time,
CSD text,
MZDM text,
MZMC text,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
XLDM text,
XLMC text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE hz_info (
KH text,
KLX number... | 自2015.6.29日起,至2017.12.17日止,把患者93103311这段时间被开出的所有检验报告单中的标本采集部位给一一列出来 | (SELECT jybgb.BBCJBW 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 = '93103311' AND jybgb.BGRQ BETWEEN '2015-06-29' AND '2017-12-17') U... | css |
CREATE TABLE table_32221 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What was the largest crowd of a game where Collingwood was the away team? | SELECT MAX("Crowd") FROM table_32221 WHERE "Away team" = 'collingwood' | wikisql |
CREATE TABLE table_24466191_1 (
races VARCHAR,
position VARCHAR
) | Name the total number of races for 15th position | SELECT COUNT(races) FROM table_24466191_1 WHERE position = "15th" | sql_create_context |
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,
... | 列出在04年11月22日到10年5月4日内患者柳清昶被开出的所有检验报告单的科室号码是什么?科室名称叫什么? | SELECT jybgb.KSBM, jybgb.KSMC 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 = '柳... | css |
CREATE TABLE table_name_19 (
points_classification VARCHAR,
stage VARCHAR,
trofeo_super_team VARCHAR,
intergiro_classification VARCHAR,
mountains_classification VARCHAR
) | What is the points classification when the Intergiro classification is Sven Krau , and the mountains classification is koldo gil, Trofeo Super Team is Liquigas-Bianchi, and stage is 9? | SELECT points_classification FROM table_name_19 WHERE intergiro_classification = "sven krauß" AND mountains_classification = "koldo gil" AND trofeo_super_team = "liquigas-bianchi" AND stage = "9" | sql_create_context |
CREATE TABLE table_name_24 (
competition VARCHAR,
date VARCHAR
) | What is Competition, when Date is '28 March 2001'? | SELECT competition FROM table_name_24 WHERE date = "28 march 2001" | sql_create_context |
CREATE TABLE table_name_93 (
season_3 VARCHAR,
season_7 VARCHAR
) | Which Season 3 has a Season 7 of jim treliving? | SELECT season_3 FROM table_name_93 WHERE season_7 = "jim treliving" | sql_create_context |
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE airline (
airline_code varc... | list all direct flights from BOSTON to DENVER | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER... | atis |
CREATE TABLE table_203_157 (
id number,
"year" number,
"film" text,
"role" text,
"language" text,
"notes" text
) | how many total films has she starred in ? | SELECT COUNT("film") FROM table_203_157 | squall |
CREATE TABLE review (
a_id integer,
u_id integer,
i_id integer,
rating integer,
rank integer
)
CREATE TABLE trust (
source_u_id integer,
target_u_id integer,
trust integer
)
CREATE TABLE useracct (
u_id integer,
name varchar(128)
)
CREATE TABLE item (
i_id integer,
tit... | Find each target user's name and average trust score Visualize by bar chart, and sort by the x-axis from high to low. | SELECT name, AVG(trust) FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id GROUP BY T2.target_u_id ORDER BY name DESC | nvbench |
CREATE TABLE table_name_73 (
engine VARCHAR,
points VARCHAR,
entrant VARCHAR
) | What is the Motor that has a Focuses bigger than 62, and a Participant of rebaque? | SELECT engine FROM table_name_73 WHERE points > 62 AND entrant = "rebaque" | sql_create_context |
CREATE TABLE table_2566 (
"Fuel - Liquid, US Gallons" text,
"GGE" text,
"GGE %" text,
"BTU/Gal" real,
"kWh/Gal" text,
"HP -hr/Gal" text,
"Cal/litre" text
) | What's the BTU/Gal of the fuel whose kWh/Gal is 24.04? | SELECT "BTU/Gal" FROM table_2566 WHERE "kWh/Gal" = '24.04' | wikisql |
CREATE TABLE table_name_48 (
nationality VARCHAR,
position VARCHAR
) | What is the nationality of the SG position? | SELECT nationality FROM table_name_48 WHERE position = "sg" | sql_create_context |
CREATE TABLE table_21982 (
"Season" text,
"Division North" text,
"Division South" text,
"Division East" text,
"Division West" text,
"Division Southwest" text
) | what is the division north when division south was ko uf and division southwest was ilinden velmej | SELECT "Division North" FROM table_21982 WHERE "Division South" = 'Kožuf' AND "Division Southwest" = 'Ilinden Velmej' | wikisql |
CREATE TABLE table_name_88 (
aircraft VARCHAR,
seating VARCHAR
) | Which aircraft has 148/9 seating? | SELECT aircraft FROM table_name_88 WHERE seating = "148/9" | sql_create_context |
CREATE TABLE table_20177 (
"Week" real,
"Date" text,
"Result" text,
"Record" text,
"Opponent" text,
"Points For" real,
"Points Against" real,
"First Downs" real,
"Attendance" real
) | Name the number of points for october 11 | SELECT MAX("Points For") FROM table_20177 WHERE "Date" = 'October 11' | wikisql |
CREATE TABLE table_name_63 (
transfer_window VARCHAR,
name VARCHAR,
transfer_fee VARCHAR,
moving_to VARCHAR
) | What is the transfer window with n/a as the Transfer fee, free agent for the Moving to, and Joe Sagar as the name? | SELECT transfer_window FROM table_name_63 WHERE transfer_fee = "n/a" AND moving_to = "free agent" AND name = "joe sagar" | sql_create_context |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
h... | how many patients were diagnosed with s/p cabg < 7 days within the same month during this year after having been previously diagnosed with stroke? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 's/p cabg < 7 days' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start ... | eicu |
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... | 查一下患者81795336之前有哪些门诊诊疗记录 | SELECT mzjzjlb.JZZDBM, mzjzjlb.JZZDSM FROM hz_info JOIN mzjzjlb JOIN person_info_hz_info JOIN person_info ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND person_info_hz_info.YLJGDM = hz_inf... | css |
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | Give me the comparison about the sum of Team_ID over the ACC_Road , and group by attribute ACC_Road, show from low to high by the Y. | SELECT ACC_Road, SUM(Team_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY SUM(Team_ID) | nvbench |
CREATE TABLE cite (
cited int,
citing int
)
CREATE TABLE writes (
aid int,
pid int
)
CREATE TABLE journal (
homepage varchar,
jid int,
name varchar
)
CREATE TABLE domain_author (
aid int,
did int
)
CREATE TABLE publication (
abstract varchar,
cid int,
citation_num int... | return me the keywords, which have been contained by more than 100 papers in PVLDB . | SELECT keyword.keyword FROM journal, keyword, publication, publication_keyword WHERE journal.name = 'PVLDB' AND publication_keyword.kid = keyword.kid AND publication.jid = journal.jid AND publication.pid = publication_keyword.pid GROUP BY keyword.keyword HAVING COUNT(DISTINCT (publication.title)) > 100 | academic |
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,
... | 以往患者77965758进行过哪些治疗? | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_ID = '77965758' AND t_kc22.MED_INV_ITEM_TYPE = '治疗费' UNION SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_ID = t_kc22.MED... | css |
CREATE TABLE table_19223 (
"Institution" text,
"Location" text,
"Established" real,
"Gained university status" real,
"Vice-chancellor" text,
"Total Number of Students" real,
"Research Funding (\u00a3,000)" real
) | What is the largest number of students? | SELECT MAX("Total Number of Students") FROM table_19223 | wikisql |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABL... | when did patient 15209 first receive a sputum test in their current hospital visit? | SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15209 AND admissions.dischtime IS NULL) AND microbiologyevents.spec_type_desc = 'sputum' ORDER BY microbiologyevents.charttime LIMIT 1 | mimic_iii |
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... | For all employees who have the letters D or S in their first name, give me the comparison about the sum of manager_id over the job_id , and group by attribute job_id by a bar chart, sort by the x-axis in asc. | SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID | nvbench |
CREATE TABLE lapTimes (
raceId INTEGER,
driverId INTEGER,
lap INTEGER,
position INTEGER,
time TEXT,
milliseconds INTEGER
)
CREATE TABLE constructorResults (
constructorResultsId INTEGER,
raceId INTEGER,
constructorId INTEGER,
points REAL,
status TEXT
)
CREATE TABLE pitStops... | How many races are held in each year after 2014? Show me a bar chart, and rank bar in descending order please. | SELECT year, COUNT(year) FROM races AS T1 JOIN results AS T2 ON T1.raceId = T2.raceId WHERE T1.year > 2014 GROUP BY year ORDER BY year DESC | nvbench |
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,... | count the number of patients whose primary disease is ruq pain and year of death is less than or equal to 2164? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "RUQ PAIN" AND demographic.dod_year <= "2164.0" | mimicsql_data |
CREATE TABLE table_28436909_4 (
nickname VARCHAR,
letters VARCHAR
) | When are the letters what is the nickname? | SELECT nickname FROM table_28436909_4 WHERE letters = "ΚΑΘ" | 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... | Are there courses that would be useful to take before taking PAT 280 ? | SELECT DISTINCT advisory_requirement FROM course WHERE department = 'PAT' AND number = 280 | advising |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | 从2011年6月26日到2014年8月15日之间医院7543247的出院诊断疾病结果与入院诊断疾病结果次数不同的有几次? | SELECT (SELECT COUNT(*) FROM t_kc21 WHERE MED_SER_ORG_NO = '7543247' AND IN_HOSP_DATE BETWEEN '2011-06-26' AND '2014-08-15') - (SELECT COUNT(*) FROM t_kc21 WHERE MED_SER_ORG_NO = '7543247' AND IN_HOSP_DATE BETWEEN '2011-06-26' AND '2014-08-15' AND IN_DIAG_DIS_CD = OUT_DIAG_DIS_CD) | css |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time... | The nth question (including deleted posts). | WITH ordered AS (SELECT ROW_NUMBER() OVER (ORDER BY CreationDate) AS rownumber, Id, CreationDate, DeletionDate, Score, Tags FROM Posts AS q WHERE PostTypeId = 1) SELECT rownumber, Id, Id AS "post_link", CreationDate, DeletionDate, Score, Tags FROM ordered WHERE rownumber = '##num##' | sede |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime t... | how many hours have passed since patient 006-195316 had the last hct lab test during their current hospital encounter? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', lab.labresulttime)) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-195316' AND patient.hos... | eicu |
CREATE TABLE table_17771 (
"Day: (see Irregularities )" text,
"Sunday S\u014dl (Sun)" text,
"Monday Luna (Moon)" text,
"Tuesday Mars (Mars)" text,
"Wednesday Mercurius (Mercury)" text,
"Thursday Iuppiter (Jupiter)" text,
"Friday Venus (Venus)" text,
"Saturday Saturnus ( Saturn)" text
) | what's the saturday saturnus ( saturn) with wednesday mercurius (mercury) being mercuridi | SELECT "Saturday Saturnus ( Saturn)" FROM table_17771 WHERE "Wednesday Mercurius (Mercury)" = 'Mercuridi' | wikisql |
CREATE TABLE table_73065 (
"Parliament" text,
"Name" text,
"Period in office" text,
"Birth and death years" text,
"General election contested" real,
"Constituency contested" text,
"Political party" text
) | What period were conscituency contested is aljunied grc? | SELECT "Period in office" FROM table_73065 WHERE "Constituency contested" = 'Aljunied GRC' | wikisql |
CREATE TABLE table_62224 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | Who was the away team on 31 January 1987 when the home team was Wimbledon? | SELECT "Away team" FROM table_62224 WHERE "Date" = '31 january 1987' AND "Home team" = 'wimbledon' | wikisql |
CREATE TABLE table_name_32 (
score VARCHAR,
game VARCHAR
) | What was the score of Game 13? | SELECT score FROM table_name_32 WHERE game = "13" | sql_create_context |
CREATE TABLE table_name_36 (
rank INTEGER,
tally VARCHAR
) | Which Rank has a Tally of 4-0? | SELECT AVG(rank) FROM table_name_36 WHERE tally = "4-0" | sql_create_context |
CREATE TABLE table_9521 (
"Name" text,
"Nationality" text,
"Position [F ]" text,
"Date from [G ]" text,
"Date to [H ]" text,
"Appearances" real,
"Goals" real,
"Club source [I ]" text
) | What is Name, when Goals is '80', and when Club Source [I ] is '71 [ dead link ]'? | SELECT "Name" FROM table_9521 WHERE "Goals" = '80' AND "Club source [I ]" = '71 [ dead link ]' | wikisql |
CREATE TABLE table_name_97 (
erp_w INTEGER,
frequency_mhz VARCHAR
) | What is the highest ERP W of an 89.1 frequency translator? | SELECT MAX(erp_w) FROM table_name_97 WHERE frequency_mhz = 89.1 | sql_create_context |
CREATE TABLE table_43046 (
"Volume" text,
"Series" text,
"Title" text,
"Cover" text,
"Published" text,
"ISBN" text
) | What is the number of the volume that has an ISBN of 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)? | SELECT "Volume" FROM table_43046 WHERE "ISBN" = '978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)' | wikisql |
CREATE TABLE table_1137704_2 (
round INTEGER,
grand_prix VARCHAR
) | whatthe minimum round where grand prix is german grand prix | SELECT MIN(round) FROM table_1137704_2 WHERE grand_prix = "German grand_prix" | sql_create_context |
CREATE TABLE table_name_27 (
total INTEGER,
year_s__won VARCHAR
) | What is the average total in 1969? | SELECT AVG(total) FROM table_name_27 WHERE year_s__won = "1969" | sql_create_context |
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_fli... | does AA have a flight from PITTSBURGH to ATLANTA | SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ((flight.airline_code = 'AA') AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND flight.to_airport = AIRPORT_SE... | atis |
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 swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_40... | Bar chart x axis nationality y axis how many nationality | SELECT Nationality, COUNT(Nationality) FROM swimmer GROUP BY Nationality | nvbench |
CREATE TABLE table_70982 (
"Sydney" text,
"Gold Coast" text,
"Adelaide" text,
"Melbourne" text,
"Perth" text
) | Which Perth has Gold Coast yes, Sydney yes, Melbourne yes, and Adelaide yes? | SELECT "Perth" FROM table_70982 WHERE "Gold Coast" = 'yes' AND "Sydney" = 'yes' AND "Melbourne" = 'yes' AND "Adelaide" = 'yes' | wikisql |
CREATE TABLE table_name_12 (
peak_position VARCHAR,
date VARCHAR
) | What was the Peak Position on July 11, 2001? | SELECT peak_position FROM table_name_12 WHERE date = "july 11, 2001" | sql_create_context |
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Votes (
Id number,
... | Questions tagged only [Excel] that should have [VBA] & [Excel-VBA] tags too!. | SELECT Id AS "post_link", CreationDate, LastActivityDate, Score, ViewCount, Tags, Body FROM Posts AS p WHERE Tags = '<access>' AND UPPER(Body) LIKE '%dao%' AND DeletionDate IS NULL AND ClosedDate IS NULL AND PostTypeId = 1 ORDER BY CreationDate DESC | sede |
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational... | Is there any section after 10:00 for AAS 202 ? | SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.start_time > '10:00' AND course.course_id = course_offering.course_id AND course.department = 'AAS' AND course.number = 202 AND semester.semester = 'WN' AND s... | advising |
CREATE TABLE table_11580 (
"Series" text,
"Monday" text,
"Tuesday" text,
"Wednesday" text,
"Thursday" text,
"Friday" text,
"Saturday" text,
"Sunday" text
) | In what series did Alice Levine Jamie East give a presentation on Saturday? | SELECT "Series" FROM table_11580 WHERE "Saturday" = 'alice levine jamie east' | wikisql |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE cost (
row_id... | what was the minimum platelet count value for patient 65786. | SELECT MIN(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 65786) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'platelet count') | mimic_iii |
CREATE TABLE table_name_30 (
opponents_in_the_final VARCHAR,
date VARCHAR
) | Who are the opponents in the February 19, 1996 final? | SELECT opponents_in_the_final FROM table_name_30 WHERE date = "february 19, 1996" | sql_create_context |
CREATE TABLE table_name_7 (
song_title VARCHAR,
length VARCHAR
) | What Song has a Length of 2:50? | SELECT song_title FROM table_name_7 WHERE length = "2:50" | sql_create_context |
CREATE TABLE table_64045 (
"Title" text,
"Author" text,
"First Issue" text,
"Last Issue" text,
"Completed?" text
) | What is the title that was first published in August 2010? | SELECT "Title" FROM table_64045 WHERE "First Issue" = 'august 2010' | wikisql |
CREATE TABLE table_41021 (
"City of license" text,
"Identifier" text,
"Frequency" text,
"Power" text,
"Class" text,
"RECNet" text
) | Which class has a frequency of 91.9 fm? | SELECT "Class" FROM table_41021 WHERE "Frequency" = '91.9 fm' | wikisql |
CREATE TABLE table_15260 (
"Rank" real,
"Team" text,
"Country" text,
"Value ($M)" real,
"Revenue ($M)" real
) | Name the highest revenue for schalke 04 with rank less than 10 | SELECT MAX("Revenue ($M)") FROM table_15260 WHERE "Team" = 'schalke 04' AND "Rank" < '10' | wikisql |
CREATE TABLE table_203_670 (
id number,
"pos" text,
"driver" text,
"entrant" text,
"constructor" text,
"time/retired" text,
"grid" number
) | what entrant has the most drivers ? | SELECT "entrant" FROM table_203_670 GROUP BY "entrant" ORDER BY COUNT("driver") DESC LIMIT 1 | squall |
CREATE TABLE table_30624 (
"Position" text,
"Player" text,
"Period" text,
"Teams" text,
"Consecutive starts" real,
"Playoffs" real,
"Total" real
) | What period(s) featured a left inside linebacker? | SELECT "Period" FROM table_30624 WHERE "Position" = 'Left inside linebacker' | wikisql |
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 ... | 67601614460的门诊主要诊断编码类型、编码列表、名称列表在住院就诊分别都是什么? | SELECT wdmzjzjlb.MZBMLX, wdmzjzjlb.MZZDBM, wdmzjzjlb.MZZDMC FROM wdmzjzjlb WHERE wdmzjzjlb.JZLSH = '67601614460' UNION SELECT bdmzjzjlb.MZBMLX, bdmzjzjlb.MZZDBM, bdmzjzjlb.MZZDMC FROM bdmzjzjlb WHERE bdmzjzjlb.JZLSH = '67601614460' | css |
CREATE TABLE table_202_82 (
id number,
"weapon name" text,
"caliber (mm)" text,
"range (max)" text,
"warhead" text
) | which three weapons have the highest caliber ? | SELECT "weapon name" FROM table_202_82 ORDER BY "caliber (mm)" DESC LIMIT 3 | squall |
CREATE TABLE table_2668387_18 (
district VARCHAR,
candidates VARCHAR
) | Name the district for john randolph (dr) | SELECT district FROM table_2668387_18 WHERE candidates = "John Randolph (DR)" | sql_create_context |
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Descr... | TOP 100 Most Altruistic Users. | SELECT Users.DisplayName, Users.Reputation AS "currentrep", COUNT(Votes.Id) AS "bountiesoffered", SUM(Votes.BountyAmount) AS "totalbountyrepoffered", 'http://scifi.stackexchange.com/users/' + CAST(Users.Id AS TEXT(30)) + '/?tab=bounties' AS "viewprofile" FROM Votes INNER JOIN Users ON Votes.UserId = Users.Id INNER JOIN... | sede |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.