answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT name FROM physician WHERE POSITION LIKE '%senior%' | Find the name of physicians whose position title contains the word 'senior'. | CREATE TABLE physician (name VARCHAR, POSITION VARCHAR) |
SELECT SUM(year) FROM table_name_11 WHERE player_name = "mark barron" | I want the sum of year for mark barron | CREATE TABLE table_name_11 (
year INTEGER,
player_name VARCHAR
) |
SELECT home_team FROM table_16388545_1 WHERE away_team = "Carlton" | When the away team was Carlton, who was the home team? | CREATE TABLE table_16388545_1 (home_team VARCHAR, away_team VARCHAR) |
SELECT patient FROM undergoes ORDER BY dateundergoes LIMIT 1 | Find the patient who has the most recent undergoing treatment? | CREATE TABLE undergoes (patient VARCHAR, dateundergoes VARCHAR) |
SELECT SUM(founded) FROM table_name_18 WHERE stadium = "hiram bithorn stadium" AND club = "atlético de san juan fc" | What year was the team Club of atl tico de san juan fc who plays at hiram bithorn stadium founded. | CREATE TABLE table_name_18 (
founded INTEGER,
stadium VARCHAR,
club VARCHAR
) |
SELECT average FROM table_16390001_2 WHERE swimsuit = "8.266" | What was the average for contestants with a swimsuit score of 8.266? | CREATE TABLE table_16390001_2 (average VARCHAR, swimsuit VARCHAR) |
SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN patient AS T2 ON T1.patient = T2.SSN JOIN stay AS T3 ON T1.Stay = T3.StayID WHERE T3.room = 111 | Find the names of all patients who have an undergoing treatment and are staying in room 111. | CREATE TABLE undergoes (patient VARCHAR, Stay VARCHAR); CREATE TABLE stay (StayID VARCHAR, room VARCHAR); CREATE TABLE patient (name VARCHAR, SSN VARCHAR) |
SELECT "Away team" FROM table_32245 WHERE "Home team" = 'carlton' | What was the away team that faced Carlton? | CREATE TABLE table_32245 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT interview FROM table_16390001_2 WHERE average = "9.090" | What are the interview scores for contestants whose average is 9.090? | CREATE TABLE table_16390001_2 (interview VARCHAR, average VARCHAR) |
SELECT DISTINCT name FROM nurse ORDER BY name | List the names of all distinct nurses ordered by alphabetical order? | CREATE TABLE nurse (name VARCHAR) |
SELECT MAX("Goals") FROM table_48215 WHERE "Points" = '13' AND "Assists" = '10' AND "Club" = 'eisbären berlin' | What is the highest number of goals Eisb ren Berlin had along with 13 points and 10 assists? | CREATE TABLE table_48215 (
"Player" text,
"Club" text,
"Games" real,
"Goals" real,
"Assists" real,
"Points" real
) |
SELECT average FROM table_16390001_2 WHERE country = "Pennsylvania" | What are the average scores of contestants whose home state is Pennsylvania? | CREATE TABLE table_16390001_2 (average VARCHAR, country VARCHAR) |
SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN nurse AS T2 ON T1.AssistingNurse = T2.EmployeeID | Find the names of nurses who are nursing an undergoing treatment. | CREATE TABLE undergoes (AssistingNurse VARCHAR); CREATE TABLE nurse (name VARCHAR, EmployeeID VARCHAR) |
SELECT MIN("Rank") FROM table_64376 WHERE "Show" = 'alcatraz' AND "Number of Viewers" > '1,229,000' | Which Rank has a Show of alcatraz, and a Number of Viewers larger than 1,229,000? | CREATE TABLE table_64376 (
"Rank" real,
"Show" text,
"Episode" text,
"Number of Viewers" real,
"Date" text
) |
SELECT evening_gown FROM table_16390001_2 WHERE average = "9.266" | What are the evening gown scores of contestants whose average is 9.266? | CREATE TABLE table_16390001_2 (evening_gown VARCHAR, average VARCHAR) |
SELECT DISTINCT name FROM medication ORDER BY name | List the names of all distinct medications, ordered in an alphabetical order. | CREATE TABLE medication (name VARCHAR) |
SELECT "Format" FROM table_60538 WHERE "Date" = '14 october 2008' AND "Label" = 'eagle eye media' | Which Format has a Date of 14 october 2008, and a Label of eagle eye media? | CREATE TABLE table_60538 (
"Country" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue number(s)" text
) |
SELECT average FROM table_16390001_2 WHERE interview = "8.011" | What are the average scores of contestants whose interview score is 8.011? | CREATE TABLE table_16390001_2 (average VARCHAR, interview VARCHAR) |
SELECT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician ORDER BY T2.dose DESC LIMIT 1 | What are the names of the physician who prescribed the highest dose? | CREATE TABLE prescribes (physician VARCHAR, dose VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR) |
SELECT name FROM table_name_41 WHERE indication = "autoimmune disease and inflammation" | Which study included autoimmune disease and inflammation? | CREATE TABLE table_name_41 (
name VARCHAR,
indication VARCHAR
) |
SELECT home_team AS score FROM table_16388506_1 WHERE home_team = "Richmond" | What are the home team scores when richmond is the home team? | CREATE TABLE table_16388506_1 (home_team VARCHAR) |
SELECT physician, department FROM affiliated_with WHERE primaryaffiliation = 1 | List the physicians' employee ids together with their primary affiliation departments' ids. | CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR, primaryaffiliation VARCHAR) |
SELECT title FROM table_name_54 WHERE year = 1971 | What title was released in 1971? | CREATE TABLE table_name_54 (
title VARCHAR,
year VARCHAR
) |
SELECT home_team AS score FROM table_16388506_1 WHERE away_team = "Fremantle" | What are the home team scores when fremantle is the away team? | CREATE TABLE table_16388506_1 (home_team VARCHAR, away_team VARCHAR) |
SELECT DISTINCT T2.name FROM affiliated_with AS T1 JOIN department AS T2 ON T1.department = T2.departmentid WHERE PrimaryAffiliation = 1 | List the names of departments where some physicians are primarily affiliated with. | CREATE TABLE affiliated_with (department VARCHAR); CREATE TABLE department (name VARCHAR, departmentid VARCHAR) |
SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-38131')) AND medication.drugname = 'gabapentin 100 mg po c... | what was the last gabapentin 100 mg po caps prescription time for patient 016-38131 in this month. | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... |
SELECT MAX(crowd) FROM table_16388506_1 WHERE home_team = "Essendon" | What is the largest crowd when essendon is the home team? | CREATE TABLE table_16388506_1 (crowd INTEGER, home_team VARCHAR) |
SELECT nurse FROM on_call WHERE blockfloor = 1 AND blockcode = 1 | What nurses are on call with block floor 1 and block code 1? Tell me their names. | CREATE TABLE on_call (nurse VARCHAR, blockfloor VARCHAR, blockcode VARCHAR) |
SELECT club FROM table_13564637_5 WHERE points = "30" | Who is the club that has 30 points? | CREATE TABLE table_13564637_5 (
club VARCHAR,
points VARCHAR
) |
SELECT away_team FROM table_16388506_1 WHERE ground = "Subiaco Oval" | Who are the away teams when subiaco oval was the grounds? | CREATE TABLE table_16388506_1 (away_team VARCHAR, ground VARCHAR) |
SELECT MAX(cost), MIN(cost), AVG(cost) FROM procedures | What are the highest cost, lowest cost and average cost of procedures? | CREATE TABLE procedures (cost INTEGER) |
SELECT AVG("Frequency MHz") FROM table_47008 WHERE "ERP W" = '62' | Average frequency with ERP W of 62? | CREATE TABLE table_47008 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" text,
"FCC info" text
) |
SELECT home_team FROM table_16388478_4 WHERE away_team = "Carlton" | Who was the home team when the away team is Carlton? | CREATE TABLE table_16388478_4 (home_team VARCHAR, away_team VARCHAR) |
SELECT name, cost FROM procedures ORDER BY cost DESC | List the name and cost of all procedures sorted by the cost from the highest to the lowest. | CREATE TABLE procedures (name VARCHAR, cost VARCHAR) |
SELECT DATEADD(month, DATEDIFF(month, 0, CreationDate), 0) AS "month", COUNT(*) AS "# Users Added", COUNT(IIF(u.Reputation >= 50, 1, NULL)) AS "# Users Added (current rep >= 50)" FROM Users AS u GROUP BY DATEADD(month, DATEDIFF(month, 0, CreationDate), 0) ORDER BY DATEADD(month, DATEDIFF(month, 0, CreationDate), 0) | Total users added, by month, with reputation at least 50. | CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number... |
SELECT home_team AS score FROM table_16388478_4 WHERE home_team = "Fremantle" | What is the home team score where the home team is Fremantle? | CREATE TABLE table_16388478_4 (home_team VARCHAR) |
SELECT name FROM procedures ORDER BY cost LIMIT 3 | Find the three most expensive procedures. | CREATE TABLE procedures (name VARCHAR, cost VARCHAR) |
SELECT diagnoses.short_title FROM diagnoses WHERE diagnoses.icd9_code = "E8120" | give the description of diagnoses icd9 code e8120. | 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 away_team AS score FROM table_16388478_4 WHERE crowd = 5391 | What was the away team score for the game with a crowd of 5391? | CREATE TABLE table_16388478_4 (away_team VARCHAR, crowd VARCHAR) |
SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T3.cost > 5000 | Find the physicians who are trained in a procedure that costs more than 5000. | CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR); CREATE TABLE procedures (code VARCHAR, cost INTEGER) |
SELECT COUNT(DISTINCT patient.patienthealthsystemstayid) FROM patient WHERE patient.uniquepid = '006-50368' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | how many times patient 006-50368 the last year visited the hospital. | 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... |
SELECT date FROM table_16388478_4 WHERE home_team = "Adelaide" | What date was Adelaide the home team? | CREATE TABLE table_16388478_4 (date VARCHAR, home_team VARCHAR) |
SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment ORDER BY T3.cost DESC LIMIT 1 | Find the physician who was trained in the most expensive procedure? | CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR); CREATE TABLE procedures (code VARCHAR, cost VARCHAR) |
SELECT microbiologyevents.spec_type_desc FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 52456) AND DATETIME(microbiologyevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') ORDER BY microbiology... | what were the specimen tests that patient 52456 first had in the last month? | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
... |
SELECT COUNT(location) FROM table_16403890_1 WHERE institution = "Elon University" | How many locations does Elon University have? | CREATE TABLE table_16403890_1 (location VARCHAR, institution VARCHAR) |
SELECT AVG(T3.cost) FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen" | What is the average cost of procedures that physician John Wen was trained in? | CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (cost INTEGER, code VARCHAR); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR) |
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 26156 ORDER BY admissions.admittime DESC LIMIT 1 | when did patient 26156 come for the last time to the hospital? | 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 d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE transfers (
r... |
SELECT MIN(enrollment) FROM table_16403890_1 WHERE affiliation = "Private/Catholic" | Private/Catholic school's minimum enrollment is? | CREATE TABLE table_16403890_1 (enrollment INTEGER, affiliation VARCHAR) |
SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen" | Find the names of procedures which physician John Wen was trained in. | CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR) |
SELECT COUNT("competition") FROM table_203_189 WHERE "notes" <> 10000 | how many competitions did jifar participate in before joining the 10000m ? | CREATE TABLE table_203_189 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
) |
SELECT institution FROM table_16403890_1 WHERE team_nickname = "Colonials" | Which school has the mascot of the Colonials? | CREATE TABLE table_16403890_1 (institution VARCHAR, team_nickname VARCHAR) |
SELECT name FROM procedures WHERE cost > 1000 UNION SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen" | Find all procedures which cost more than 1000 or which physician John Wen was trained in. | CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (name VARCHAR, cost INTEGER); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR) |
SELECT "Term ended" FROM table_50091 WHERE "Branch" = 'u.s. marine corps' | When did the term end for the U.S. Marine Corps? | CREATE TABLE table_50091 (
"Name" text,
"Branch" text,
"Term began" text,
"Term ended" text,
"Time in office" text
) |
SELECT socket FROM table_16400024_1 WHERE sspec_number = "SL3F7(kC0)SL3FJ(kC0)" | What is the socket location for sSPEC number sl3f7(kc0)sl3fj(kc0)? | CREATE TABLE table_16400024_1 (socket VARCHAR, sspec_number VARCHAR) |
SELECT name FROM procedures WHERE cost > 1000 EXCEPT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen" | Find the names of all procedures which cost more than 1000 but which physician John Wen was not trained in? | CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (name VARCHAR, cost INTEGER); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR) |
SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor | What are the investors of entrepreneurs and the corresponding number of entrepreneurs invested by each investor. Visualize by pie chart. | CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
) |
SELECT release_date FROM table_16400024_1 WHERE part_number_s_ = "80525PY500512BX80525U500512BX80525U500512E" | What is the release date of part 80525py500512bx80525u500512bx80525u500512e? | CREATE TABLE table_16400024_1 (release_date VARCHAR, part_number_s_ VARCHAR) |
SELECT name FROM procedures WHERE cost < 5000 INTERSECT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen" | Find the names of all procedures such that the cost is less than 5000 and physician John Wen was trained in. | CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (name VARCHAR, cost INTEGER); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR) |
SELECT score FROM table_name_2 WHERE couple = "jason & edyta" AND style = "freestyle" | Which Score has a Couple comprised of jason & edyta, and a Style of freestyle? | CREATE TABLE table_name_2 (
score VARCHAR,
couple VARCHAR,
style VARCHAR
) |
SELECT COUNT(release_price___usd__) FROM table_16400024_1 WHERE model_number = "Pentium III 550" | How many release prices are there for the Pentium iii 550? | CREATE TABLE table_16400024_1 (release_price___usd__ VARCHAR, model_number VARCHAR) |
SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' INTERSECT SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.departmen... | Find the name of physicians who are affiliated with both Surgery and Psychiatry departments. | CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR); CREATE TABLE department (DepartmentID VARCHAR, name VARCHAR); CREATE TABLE physician (name VARCHAR, EmployeeID VARCHAR) |
SELECT destroyed_by_employee_id FROM documents_to_be_destroyed UNION SELECT destruction_authorised_by_employee_id FROM documents_to_be_destroyed | Show the ids of all employees who have either destroyed a document or made an authorization to do this. | CREATE TABLE roles (
role_code text,
role_name text,
role_description text
)
CREATE TABLE documents_to_be_destroyed (
document_id number,
destruction_authorised_by_employee_id number,
destroyed_by_employee_id number,
planned_destruction_date time,
actual_destruction_date time,
other... |
SELECT model_number FROM table_16400024_1 WHERE release_price___usd__ = "$496" | What is the model number with a release price of $496? | CREATE TABLE table_16400024_1 (model_number VARCHAR, release_price___usd__ VARCHAR) |
SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' OR T3.name = 'Psychiatry' | Find the name of physicians who are affiliated with Surgery or Psychiatry department. | CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR); CREATE TABLE department (DepartmentID VARCHAR, name VARCHAR); CREATE TABLE physician (name VARCHAR, EmployeeID VARCHAR) |
SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, 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_i... | what are the five most commonly given laboratory tests for patients who previously had a partial pancreatect nec within the same month? | 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... |
SELECT l2_cache FROM table_16400024_1 WHERE release_price___usd__ = "$669" | What is the l2 cache for the model with a release price of $669? | CREATE TABLE table_16400024_1 (l2_cache VARCHAR, release_price___usd__ VARCHAR) |
SELECT name FROM patient EXCEPT SELECT T1.name FROM patient AS T1 JOIN Prescribes AS T2 ON T2.Patient = T1.SSN JOIN Medication AS T3 ON T2.Medication = T3.Code WHERE T3.name = 'Procrastin-X' | Find the names of patients who are not using the medication of Procrastin-X. | CREATE TABLE Prescribes (Patient VARCHAR, Medication VARCHAR); CREATE TABLE Medication (Code VARCHAR, name VARCHAR); CREATE TABLE patient (name VARCHAR, SSN VARCHAR); CREATE TABLE patient (name VARCHAR) |
SELECT pick__number FROM table_2850912_1 WHERE college_junior_club_team = "Regina Pats (WHL)" | What daft pick number is the player coming from Regina Pats (WHL)? | CREATE TABLE table_2850912_1 (
pick__number VARCHAR,
college_junior_club_team VARCHAR
) |
SELECT date FROM table_1639689_2 WHERE week = 2 | What day(s) did they play on week 2? | CREATE TABLE table_1639689_2 (date VARCHAR, week VARCHAR) |
SELECT COUNT(*) FROM patient WHERE NOT SSN IN (SELECT T1.patient FROM Prescribes AS T1 JOIN Medication AS T2 ON T1.Medication = T2.Code WHERE T2.name = 'Procrastin-X') | Find the number of patients who are not using the medication of Procrastin-X. | CREATE TABLE Prescribes (patient VARCHAR, Medication VARCHAR); CREATE TABLE patient (SSN VARCHAR); CREATE TABLE Medication (Code VARCHAR, name VARCHAR) |
SELECT rank FROM table_name_2 WHERE tenure = "2011" | What is the Rank of the Character with Tenure of 2011? | CREATE TABLE table_name_2 (
rank VARCHAR,
tenure VARCHAR
) |
SELECT kickoff FROM table_1639689_2 WHERE date = "Monday, May 13" | What was the kickoff time on monday, may 13? | CREATE TABLE table_1639689_2 (kickoff VARCHAR, date VARCHAR) |
SELECT COUNT(*) FROM appointment | How many appointments are there? | CREATE TABLE appointment (Id VARCHAR) |
SELECT COUNT("Date") FROM table_31453 WHERE "Game" = '2' | in how many dates the game was 2 | CREATE TABLE table_31453 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT MAX(no_in_season) FROM table_16390576_3 WHERE directed_by = "Jamie Babbit" | what is the latest episode in season 2 directed by jamie babbit? | CREATE TABLE table_16390576_3 (no_in_season INTEGER, directed_by VARCHAR) |
SELECT DISTINCT T1.name FROM nurse AS T1 JOIN on_call AS T2 ON T1.EmployeeID = T2.nurse | Find the names of nurses who are on call. | CREATE TABLE on_call (nurse VARCHAR); CREATE TABLE nurse (name VARCHAR, EmployeeID VARCHAR) |
SELECT MAX("Year commissioned") FROM table_76085 WHERE "Gross head (metres)" = '60' AND "Average annual output (million KWh)" < '59' | What is the Year commissioned of the power station with a Gross head of 60 metres and Average annual output of less than 59 million KWh? | CREATE TABLE table_76085 (
"Name" text,
"Year commissioned" real,
"Gross head (metres)" real,
"Installed capacity (megawatts)" real,
"Average annual output (million KWh)" real
) |
SELECT original_air_date FROM table_16390576_3 WHERE production_code = "08-02-214" | what are the air dates for episodes with the production code 08-02-214 | CREATE TABLE table_16390576_3 (original_air_date VARCHAR, production_code VARCHAR) |
SELECT COUNT(*) FROM ship | How many ships are there? | CREATE TABLE ship (Id VARCHAR) |
SELECT opponent FROM table_name_7 WHERE season = "2010/11" | Which opponent has a Season of 2010/11? | CREATE TABLE table_name_7 (
opponent VARCHAR,
season VARCHAR
) |
SELECT title FROM table_16390576_3 WHERE no_in_series = 28 | what is the title of episode 28 | CREATE TABLE table_16390576_3 (title VARCHAR, no_in_series VARCHAR) |
SELECT Name FROM ship ORDER BY Tonnage | List the name of ships in ascending order of tonnage. | CREATE TABLE ship (Name VARCHAR, Tonnage VARCHAR) |
SELECT AVG("Wins") FROM table_61970 WHERE "Byes" < '2' | What's the average number of wins for those with less than 2 byes? | CREATE TABLE table_61970 (
"Golden Rivers" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) |
SELECT dpi FROM table_16409745_1 WHERE dimensions__mm_ = "280 x 95 x 40" | What is the dpi of a scanner with the mm dimensions 280 x 95 x 40? | CREATE TABLE table_16409745_1 (dpi VARCHAR, dimensions__mm_ VARCHAR) |
SELECT TYPE, Nationality FROM ship | What are the type and nationality of ships? | CREATE TABLE ship (TYPE VARCHAR, Nationality VARCHAR) |
SELECT MIN(demographic.age) FROM demographic WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT; MYOMECTOMY/SDA" AND demographic.dod_year < "2138.0" | Calculate the minimum age of patients who had coronary artery disease or a coronary artery bypass graft had myomectomy/sda as their primary disease and died before the year 2138 | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... |
SELECT MAX(pages_per_minute__color_) FROM table_16409745_1 WHERE product = "Xerox Travel Scanner 100" | What is the maximum pages per minute for the Xerox Travel Scanner 100? | CREATE TABLE table_16409745_1 (pages_per_minute__color_ INTEGER, product VARCHAR) |
SELECT Name FROM ship WHERE Nationality <> "United States" | List the name of ships whose nationality is not "United States". | CREATE TABLE ship (Name VARCHAR, Nationality VARCHAR) |
SELECT Name, Age FROM editor | What are the names and ages of editors? Show me a bar chart. | CREATE TABLE journal_committee (
Editor_ID int,
Journal_ID int,
Work_Type text
)
CREATE TABLE journal (
Journal_ID int,
Date text,
Theme text,
Sales int
)
CREATE TABLE editor (
Editor_ID int,
Name text,
Age real
) |
SELECT interface FROM table_16409745_1 WHERE pages_per_minute__color_ = 36 | What interface is used on the scanner that has a 36 pages per minute? | CREATE TABLE table_16409745_1 (interface VARCHAR, pages_per_minute__color_ VARCHAR) |
SELECT Name FROM ship WHERE Nationality = "United States" OR Nationality = "United Kingdom" | Show the name of ships whose nationality is either United States or United Kingdom. | CREATE TABLE ship (Name VARCHAR, Nationality VARCHAR) |
SELECT pName, HS FROM Player WHERE HS < 1500 | Show me the proportion on what are the names and number of hours spent training for each player who trains for less than 1500 hours? | CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
) |
SELECT dimensions__mm_ FROM table_16409745_1 WHERE product = "Plustek MobileOffice D28 Corporate" | What are the mm dimensions of the Plustek Mobileoffice D28 Corporate? | CREATE TABLE table_16409745_1 (dimensions__mm_ VARCHAR, product VARCHAR) |
SELECT Name FROM ship ORDER BY Tonnage DESC LIMIT 1 | What is the name of the ship with the largest tonnage? | CREATE TABLE ship (Name VARCHAR, Tonnage VARCHAR) |
SELECT Founder, COUNT(Founder) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY COUNT(Founder) DESC | For those records from the products and each product's manufacturer, show me about the distribution of founder and the amount of founder , and group by attribute founder in a bar chart, and list total number in desc order please. | 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
) |
SELECT dimensions__mm_ FROM table_16409745_1 WHERE product = "Fujitsu fi-6130 A4 Series Scanner" | What are the mm dimensions for the Fujitsu fi-6130 a4 Series Scanner? | CREATE TABLE table_16409745_1 (dimensions__mm_ VARCHAR, product VARCHAR) |
SELECT TYPE, COUNT(*) FROM ship GROUP BY TYPE | Show different types of ships and the number of ships of each type. | CREATE TABLE ship (TYPE VARCHAR) |
SELECT "Date" FROM table_11261 WHERE "Record" = '73-82' | with a record of 73-82 what was the date? | CREATE TABLE table_11261 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) |
SELECT dpi FROM table_16409745_1 WHERE max_page_size = "216mm x 355mm" | What is the dpi for the scanner with a max page size of 216mm x 355mm? | CREATE TABLE table_16409745_1 (dpi VARCHAR, max_page_size VARCHAR) |
SELECT TYPE FROM ship GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 | Please show the most common type of ships. | CREATE TABLE ship (TYPE VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.