instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_204_539 (
id number,
"date" text,
"name" text,
"moving from" text,
"moving to" text,
"fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the most fee charged ?
| SELECT MAX("fee") FROM table_204_539 | squall |
CREATE TABLE table_62094 (
"Chassis code" text,
"Years" text,
"Model" text,
"Engine" text,
"Power" text,
"Torque" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Chassis code has a 200d model and a Power of ps (kw; hp) @ 4200?
| SELECT "Chassis code" FROM table_62094 WHERE "Power" = 'ps (kw; hp) @ 4200' AND "Model" = '200d' | wikisql |
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs 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 table_name_90 (
tourism_competitiveness__2011___ttci_ VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the tourism competitiveness in 2011 of venezuela?
| SELECT tourism_competitiveness__2011___ttci_ FROM table_name_90 WHERE country = "venezuela" | sql_create_context |
CREATE TABLE table_9938 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner" text,
"Finalist" text,
"Semifinalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Week, when the Finalist is Carlos Moy (5)?
| SELECT "Week" FROM table_9938 WHERE "Finalist" = 'carlos moyá (5)' | wikisql |
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 demographic.admission_type, procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "18372" | mimicsql_data |
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate re... | SELECT People_ID, Height FROM people | nvbench |
CREATE TABLE table_67714 (
"Status" text,
"Name" text,
"First Performance" text,
"Last Performance" text,
"Style" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the style for Giuseppe Bausilio?
| SELECT "Style" FROM table_67714 WHERE "Name" = 'giuseppe bausilio' | 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,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "47" AND prescriptions.route = "BOTH EYES" | mimicsql_data |
CREATE TABLE table_204_7 (
id number,
"#" number,
"date" text,
"film" text,
"gross" text,
"top ten places" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- did frozen or c sese quien pueda make more money during their respective two week periods ?... | SELECT "film" FROM table_204_7 WHERE "film" IN ('frozen', 'casese quien pueda') ORDER BY "gross" DESC LIMIT 1 | squall |
CREATE TABLE table_name_37 (
rank INTEGER,
total VARCHAR,
bronze VARCHAR,
silver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which of the largest ranks has a bronze number less than 1, a silver of 1, and a total that is more than 1?
| SELECT MAX(rank) FROM table_name_37 WHERE bronze < 1 AND silver = 1 AND total > 1 | sql_create_context |
CREATE TABLE table_name_25 (
result VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Result of the game with an Attendance of 64,104?
| SELECT result FROM table_name_25 WHERE attendance = "64,104" | sql_create_context |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | SELECT mzjzjlb.JZZDBM, mzjzjlb.JZZDSM FROM mzjzjlb WHERE mzjzjlb.JZLSH = '91671154792' | css |
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Tit... | SELECT COUNT(*) FROM (SELECT COUNT(Id) AS c FROM Posts WHERE PostTypeId = 2 GROUP BY OwnerUserId HAVING COUNT(Id) > 100) AS temp | sede |
CREATE TABLE table_26616 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Final Score" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When tiger-cats is the opponent what is the location?
| SELECT "Location" FROM table_26616 WHERE "Opponent" = 'Tiger-Cats' | wikisql |
CREATE TABLE table_26615633_1 (
jewel VARCHAR,
media_debut VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the jewel power when the media debut is ep 17?
| SELECT jewel AS Power FROM table_26615633_1 WHERE media_debut = "EP 17" | sql_create_context |
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)... | 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 = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSB... | atis |
CREATE TABLE table_55025 (
"Peak" text,
"Height (m)" real,
"Prom. (m)" real,
"Class" text,
"Parent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average height for hewitt class, with prom less than 86, and a Peak of gragareth?
| SELECT AVG("Height (m)") FROM table_55025 WHERE "Class" = 'hewitt' AND "Prom. (m)" < '86' AND "Peak" = 'gragareth' | wikisql |
CREATE TABLE Products (
product_id INTEGER,
parent_product_id INTEGER,
production_type_code VARCHAR(15),
unit_price DECIMAL(19,4),
product_name VARCHAR(80),
product_color VARCHAR(20),
product_size VARCHAR(20)
)
CREATE TABLE Customers (
customer_id INTEGER,
customer_first_name VARCHA... | SELECT date_account_opened, COUNT(date_account_opened) FROM Accounts GROUP BY other_account_details ORDER BY date_account_opened | nvbench |
CREATE TABLE table_name_66 (
points_won INTEGER,
total_matches VARCHAR,
total_w_l_h VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the lowest Points won that has the Total matches of 4, and the Total W-L-H of 4-0-0?
| SELECT MIN(points_won) FROM table_name_66 WHERE total_matches = 4 AND total_w_l_h = "4-0-0" | sql_create_context |
CREATE TABLE table_20397 (
"N\u00b0" real,
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"DAR" text,
"HDTV" text,
"PPV" text,
"Package/Option" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the tota... | SELECT COUNT("DAR") FROM table_20397 WHERE "Television service" = 'Disney Channel' AND "N\u00b0" = '613' | wikisql |
CREATE TABLE table_39678 (
"Year" text,
"Title" text,
"Role" text,
"Language" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the role in 2001?
| SELECT "Role" FROM table_39678 WHERE "Year" = '2001' | wikisql |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellv... | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '033-32465' AND patient.hospitalid <> (SELECT DISTINCT patient.hospitalid FROM patient WHERE patient.uniquepid = '033-32465' AND patient.hospitaldischargetime IS NULL)) AND tr... | eicu |
CREATE TABLE table_25459 (
"#" real,
"Date" text,
"Visitor" text,
"Score" text,
"Arena Attendance" text,
"High Points" text,
"High Rebounds" text,
"High Assists" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the ... | SELECT "Record" FROM table_25459 WHERE "Date" = 'March 16' | wikisql |
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 (SELECT COUNT(*) 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 p... | css |
CREATE TABLE table_79189 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the away team for Tie #19?
| SELECT "Away team" FROM table_79189 WHERE "Tie no" = '19' | wikisql |
CREATE TABLE table_name_34 (
margin VARCHAR,
championship VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the margin for the Masters Tournament (2) championship?
| SELECT margin FROM table_name_34 WHERE championship = "masters tournament (2)" | sql_create_context |
CREATE TABLE table_64886 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest rank for Josefin Lillhage?
| SELECT MAX("Rank") FROM table_64886 WHERE "Name" = 'josefin lillhage' | wikisql |
CREATE TABLE table_52884 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average grid for johnny dumfries with less than 8 laps?
| SELECT AVG("Grid") FROM table_52884 WHERE "Driver" = 'johnny dumfries' AND "Laps" < '8' | wikisql |
CREATE TABLE table_13557843_3 (
high_assists VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had the high assists against charlotte?
| SELECT high_assists FROM table_13557843_3 WHERE team = "Charlotte" | sql_create_context |
CREATE TABLE table_name_6 (
wrestler VARCHAR,
elimination VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Wrestler has an Elimination of 7?
| SELECT wrestler FROM table_name_6 WHERE elimination = "7" | sql_create_context |
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
... | SELECT Id AS "user_link", Accounts, Reputation, LastAccessDate FROM (SELECT ROW_NUMBER() OVER (PARTITION BY EmailHash ORDER BY u1.Reputation DESC) AS Rank, u1.Id, u1.Reputation, u1.EmailHash, u1.LastAccessDate, (SELECT COUNT(*) FROM Users AS u2 WHERE u2.EmailHash = u1.EmailHash) AS Accounts FROM Users AS u1 WHERE NOT u... | sede |
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following questions for the... | SELECT T1.Price, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code | nvbench |
CREATE TABLE table_72564 (
"Rank" text,
"Common of" text,
"Population" real,
"Area (km 2 )" text,
"Density (inhabitants/km 2 )" text,
"Altitude (mslm)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the 9th ranked common?
| SELECT "Common of" FROM table_72564 WHERE "Rank" = '9th' | wikisql |
CREATE TABLE transactions (
transaction_id number,
investor_id number,
transaction_type_code text,
date_of_transaction time,
amount_of_transaction number,
share_count text,
other_details text
)
CREATE TABLE ref_transaction_types (
transaction_type_code text,
transaction_type_descrip... | SELECT T2.lot_id, AVG(amount_of_transaction) FROM transactions AS T1 JOIN transactions_lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id | spider |
CREATE TABLE table_57063 (
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Constructor for ... | SELECT "Constructor" FROM table_57063 WHERE "Fastest Lap" = 'derek warwick' | wikisql |
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course_prerequisite (
pre_course_id ... | SELECT DISTINCT course.department, course.name, course.number FROM course, program, program_course WHERE program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND program.name LIKE '%CS-LSA%' AND program.program_id = program_course.program_id | advising |
CREATE TABLE table_name_67 (
fcc_info VARCHAR,
call_sign VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the FCC info for call sign of kpcc
| SELECT fcc_info FROM table_name_67 WHERE call_sign = "kpcc" | sql_create_context |
CREATE TABLE table_name_9 (
pts INTEGER,
coach VARCHAR,
loss VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest percent of Bruce Arena when he loses more than 11 games?
| SELECT MAX(pts) FROM table_name_9 WHERE coach = "bruce arena" AND loss > 11 | sql_create_context |
CREATE TABLE table_57978 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What i... | SELECT "Date" FROM table_57978 WHERE "Game" = '59' | wikisql |
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number int,
from_airport varchar,
meal_code text,
stops int,... | 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 = 'SALT LAKE CITY' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name =... | atis |
CREATE TABLE table_27882867_9 (
date VARCHAR,
high_assists VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game when g. rivers (5) had the high assists?
| SELECT date FROM table_27882867_9 WHERE high_assists = "G. Rivers (5)" | sql_create_context |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | SELECT wdmzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN wdmzjzjlb 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 WHERE person_info.XM = '钱艳芳' AND NOT wdmzjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ >= '2015-09-2... | css |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code te... | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures ... | mimic_iii |
CREATE TABLE table_name_93 (
laps INTEGER,
grid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the most laps when grid is 16?
| SELECT MAX(laps) FROM table_name_93 WHERE grid = 16 | sql_create_context |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM 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.IN_DIAG_DIS_NM = '精神发育迟滞' | css |
CREATE TABLE table_name_75 (
method VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the method used when the opponent was Tyson Griffin?
| SELECT method FROM table_name_75 WHERE opponent = "tyson griffin" | sql_create_context |
CREATE TABLE table_name_27 (
rank_number VARCHAR,
opponent_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the rank # for opponent AT Baylor?
| SELECT rank_number FROM table_name_27 WHERE opponent_number = "at baylor" | sql_create_context |
CREATE TABLE table_18968 (
"Series #" real,
"Season #" real,
"Title" text,
"Story by" text,
"Teleplay by" text,
"Directed by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote the sorry of the episode directe... | SELECT "Story by" FROM table_18968 WHERE "Directed by" = 'Dan Attias' | wikisql |
CREATE TABLE table_39497 (
"Season" text,
"Team" text,
"Wins" real,
"Losses" real,
"Draws" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of losses for a team with more than 0 wins?
| SELECT MIN("Losses") FROM table_39497 WHERE "Wins" > '0' | wikisql |
CREATE TABLE entrepreneur (
Company VARCHAR,
Money_Requested VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the companies of entrepreneurs in descending order of money requested.
| SELECT Company FROM entrepreneur ORDER BY Money_Requested DESC | sql_create_context |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | SELECT COUNT(*) FROM wdmzjzjlb WHERE wdmzjzjlb.YLJGDM = '9714739' AND wdmzjzjlb.RYDJSJ BETWEEN '2003-11-25' AND '2010-12-20' AND DATEDIFF(wdmzjzjlb.CYSJ, wdmzjzjlb.RYSJ) > 17 UNION SELECT COUNT(*) FROM bdmzjzjlb WHERE bdmzjzjlb.YLJGDM = '9714739' AND bdmzjzjlb.RYDJSJ BETWEEN '2003-11-25' AND '2010-12-20' AND DATEDIFF(b... | 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 COUNT(*) FROM (SELECT jybgb.KSBM FROM mzjzjlb JOIN jybgb ON mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE mzjzjlb.YLJGDM = '8585428' AND jybgb.BGRQ BETWEEN '2006-12-22' AND '2015-03-05' GROUP BY jybgb.KSBM HAVING COUNT(*) > 7) AS T | 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... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND prescriptions.drug = "Ambisome" | mimicsql_data |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE cost (
row_id number,
subject_id n... | SELECT COUNT(*) > 0 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 = 19412)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp mean'... | mimic_iii |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_... | SELECT COUNTRY_NAME, SUM(EMPLOYEE_ID) FROM employees AS T1 JOIN departments AS T2 ON T1.DEPARTMENT_ID = T2.DEPARTMENT_ID JOIN locations AS T3 ON T2.LOCATION_ID = T3.LOCATION_ID JOIN countries AS T4 ON T3.COUNTRY_ID = T4.COUNTRY_ID GROUP BY COUNTRY_NAME ORDER BY COUNTRY_NAME | nvbench |
CREATE TABLE table_10470082_6 (
title VARCHAR,
storyteller VARCHAR,
director VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the episode told by Kiki and directed by Will Dixon?
| SELECT title FROM table_10470082_6 WHERE storyteller = "Kiki" AND director = "Will Dixon" | sql_create_context |
CREATE TABLE table_57098 (
"Date" text,
"Venue" text,
"Opponent" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result on 29/09/07?
| SELECT "Result" FROM table_57098 WHERE "Date" = '29/09/07' | wikisql |
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,... | 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, state WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND date_day.day_number = 4 AND date_day.month_number = 8 ... | atis |
CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '喻星海' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC | css |
CREATE TABLE table_name_89 (
first_game VARCHAR,
lost INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the first game associated with over 4 losses?
| SELECT first_game FROM table_name_89 WHERE lost > 4 | 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.gender = "M" AND procedures.short_title = "Angio oth non-coronary" | mimicsql_data |
CREATE TABLE table_14842 (
"Minister" text,
"Party" text,
"Start date" text,
"End date" text,
"Prime Minister" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the start date with party of pd
| SELECT "Start date" FROM table_14842 WHERE "Party" = 'pd' | wikisql |
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.admission_type = "ELECTIVE" AND procedures.short_title = "Closed biopsy of tongue" | mimicsql_data |
CREATE TABLE table_name_93 (
goals INTEGER,
caps VARCHAR,
average VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the goal low with caps less than 38 and an average less than 1.083?
| SELECT MIN(goals) FROM table_name_93 WHERE caps < 38 AND average < 1.083 | 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 ReviewTaskResults (
Id number,
Review... | SELECT * FROM Posts WHERE PostTypeId = 1 AND Score >= 25 AND Tags LIKE ('%##param##%') | sede |
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE ... | 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 = 'OAKLAND' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHIN... | atis |
CREATE TABLE table_name_93 (
date VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of game 75?
| SELECT date FROM table_name_93 WHERE game = 75 | sql_create_context |
CREATE TABLE wdmzjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH number,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZD... | 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 table_25595107_1 (
loa__metres_ VARCHAR,
skipper VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the LOA (metres) for the yacht where the skipper was Jez Fanstone?
| SELECT loa__metres_ FROM table_25595107_1 WHERE skipper = "Jez Fanstone" | sql_create_context |
CREATE TABLE table_58889 (
"Circuit" text,
"City / State" text,
"Date" text,
"Winner" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Winner, when Date is '20 August'?
| SELECT "Winner" FROM table_58889 WHERE "Date" = '20 august' | wikisql |
CREATE TABLE table_14986292_1 (
population__2010_census_ VARCHAR,
population_2000_census VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the population 2010 census for population 2000 census of 920599
| SELECT population__2010_census_ FROM table_14986292_1 WHERE population_2000_census = 920599 | sql_create_context |
CREATE TABLE table_18730 (
"School" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Mascot" text,
"Division" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the locations with a panthers mascot?
| SELECT "Location" FROM table_18730 WHERE "Mascot" = 'Panthers' | 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 bdmzjzjlb (
HXPLC number,
HZX... | SELECT COUNT(*) FROM wdmzjzjlb WHERE wdmzjzjlb.JZKSBM = '07063' AND wdmzjzjlb.JZKSRQ BETWEEN '2008-11-04' AND '2016-02-25' UNION SELECT COUNT(*) FROM bdmzjzjlb WHERE bdmzjzjlb.JZKSBM = '07063' AND bdmzjzjlb.JZKSRQ BETWEEN '2008-11-04' AND '2016-02-25' | css |
CREATE TABLE artist (
artist_id number,
artist text,
age number,
famous_title text,
famous_release_date text
)
CREATE TABLE volume (
volume_id number,
volume_issue text,
issue_date text,
weeks_on_top number,
song text,
artist_id number
)
CREATE TABLE music_festival (
id... | SELECT T2.song FROM artist AS T1 JOIN volume AS T2 ON T1.artist_id = T2.artist_id WHERE T1.age >= 32 | spider |
CREATE TABLE table_name_90 (
last_season VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the last season that the Scottish Rocks played?
| SELECT last_season FROM table_name_90 WHERE team = "scottish rocks" | sql_create_context |
CREATE TABLE table_26957063_3 (
_percentage_identity_to_c7orf38 INTEGER,
common_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the % identity to C7orf38 of the animal whose common name is rat?
| SELECT MIN(_percentage_identity_to_c7orf38) FROM table_26957063_3 WHERE common_name = "Rat" | sql_create_context |
CREATE TABLE table_25177625_1 (
position VARCHAR,
weight VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many position did a player took while weighing 170?
| SELECT COUNT(position) FROM table_25177625_1 WHERE weight = 170 | sql_create_context |
CREATE TABLE table_21091127_1 (
opponent VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent has a record of 6-2?
| SELECT opponent FROM table_21091127_1 WHERE record = "6-2" | 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 ... | SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_co... | advising |
CREATE TABLE table_38279 (
"Name" text,
"Creator" text,
"Platform / OS" text,
"First public release" text,
"Latest stable release" text,
"Open source" text,
"Programming language used" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Fir... | SELECT "First public release" FROM table_38279 WHERE "Name" = 'rational software modeler' | wikisql |
CREATE TABLE table_name_5 (
round VARCHAR,
time VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Round has a Time of n/a, in rio de janeiro , brazil?
| SELECT round FROM table_name_5 WHERE time = "n/a" AND location = "rio de janeiro , brazil" | sql_create_context |
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area... | SELECT County, COUNT(County) FROM appellations AS T1 JOIN wine AS T2 ON T1.Appelation = T2.Appelation GROUP BY County ORDER BY COUNT(County) | nvbench |
CREATE TABLE table_40266 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Played has a Drawn of 5, and a Team of pa... | SELECT MAX("Played") FROM table_40266 WHERE "Drawn" = '5' AND "Team" = 'palmeiras' AND "Position" < '6' | wikisql |
CREATE TABLE table_204_548 (
id number,
"team" text,
"basic elements" number,
"tumbling" number,
"stunts" number,
"tosses" number,
"pyramids" number,
"deductions" number,
"total score" number,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT COUNT("team") FROM table_204_548 WHERE "pyramids" < (SELECT "pyramids" FROM table_204_548 WHERE "team" = 'adamson pep squad') | squall |
CREATE TABLE table_name_38 (
date VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Winning Score is 14 (68-68-67-71=274)?
| SELECT date FROM table_name_38 WHERE winning_score = −14(68 - 68 - 67 - 71 = 274) | sql_create_context |
CREATE TABLE table_1341598_10 (
district VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what district was the incumbent Michael Bilirakis?
| SELECT district FROM table_1341598_10 WHERE incumbent = "Michael Bilirakis" | sql_create_context |
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following questions for the... | SELECT Name, Code FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Code DESC | nvbench |
CREATE TABLE table_49074 (
"Year" real,
"Title" text,
"Producer" text,
"Narrator" text,
"Author" text,
"Citation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the author for harry potter and the deathly hallows?
| SELECT "Author" FROM table_49074 WHERE "Title" = 'harry potter and the deathly hallows' | wikisql |
CREATE TABLE table_train_100 (
"id" int,
"systolic_blood_pressure_sbp" int,
"stroke" bool,
"body_weight" float,
"diastolic_blood_pressure_dbp" int,
"rosen_modified_hachinski_ischemic_score" int,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer... | SELECT * FROM table_train_100 WHERE age >= 55 AND age <= 85 | criteria2sql |
CREATE TABLE bdmzjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH number,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZD... | SELECT wdmzjzjlb.MZBMLX, wdmzjzjlb.MZZDBM, wdmzjzjlb.MZZDMC FROM wdmzjzjlb WHERE wdmzjzjlb.JZLSH = '07789075441' UNION SELECT bdmzjzjlb.MZBMLX, bdmzjzjlb.MZZDBM, bdmzjzjlb.MZZDMC FROM bdmzjzjlb WHERE bdmzjzjlb.JZLSH = '07789075441' | css |
CREATE TABLE table_17770 (
"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
)
... | SELECT "Tuesday Mars (Mars)" FROM table_17770 WHERE "Day: (see Irregularities )" = 'Ancient Greek' | wikisql |
CREATE TABLE table_45095 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What i... | SELECT "Score" FROM table_45095 WHERE "Team" = 'washington' | wikisql |
CREATE TABLE table_13539 (
"Class" text,
"Wheel arrangement" text,
"Fleet number(s)" text,
"Manufacturer" text,
"Year made" text,
"Quantity made" text,
"Quantity preserved" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Quantity ... | SELECT "Quantity made" FROM table_13539 WHERE "Class" = 'f-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 demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Alzheimer's disease" AND prescriptions.drug_type = "BASE" | mimicsql_data |
CREATE TABLE table_name_34 (
event VARCHAR,
venue VARCHAR,
position VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Event has a Position of 1st, a Year of 1983, and a Venue of budapest?
| SELECT event FROM table_name_34 WHERE position = "1st" AND year = 1983 AND venue = "budapest" | sql_create_context |
CREATE TABLE table_70054 (
"County" text,
"Live births 2006" real,
"GFR 2006" real,
"TFR 2006" real,
"Whites as % of Pop." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In 2006, what is the highest number for Live births in the County of Cumbria th... | SELECT MAX("Live births 2006") FROM table_70054 WHERE "County" = 'cumbria' AND "TFR 2006" > '1.76' | 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 t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.QTY, t_kc22.UNIVALENT, t_kc22.AMOUNT 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_kc21.IN_HOSP_DATE BETWEEN '201... | css |
CREATE TABLE table_61651 (
"Tournament" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE 2008 WITH TOURNAMENT OF WIN-LO... | SELECT "2008" FROM table_61651 WHERE "Tournament" = 'win-loss' AND "2005" = 'a' | wikisql |
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following questions for the... | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Code DESC | nvbench |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.