answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT SUM(amount), T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname | Find the total amount of loans offered by each bank branch. | CREATE TABLE loan (branch_id VARCHAR); CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR) |
SELECT COUNT(area__km_2__) FROM table_name_60 WHERE common_of = "collegno" AND population < 50137 | How much Area (km 2) has a Common of collegno, and a Population smaller than 50137? | CREATE TABLE table_name_60 (
area__km_2__ VARCHAR,
common_of VARCHAR,
population VARCHAR
) |
SELECT COUNT(no_stamps_in_sheet) FROM table_15635768_1 WHERE face_value = "37¢" AND printer = "Banknote Corporation of America" | How many stamps have a face value of 37¢ and were printed in the banknote corporation of america? | CREATE TABLE table_15635768_1 (no_stamps_in_sheet VARCHAR, face_value VARCHAR, printer VARCHAR) |
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING COUNT(*) > 1 | Find the name of customers who have more than one loan. | CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR) |
SELECT "7:00" FROM table_67978 WHERE "10:00" = 'dirty sexy money' | What 7:00 has a 10:00 of dirty sexy money? | CREATE TABLE table_67978 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text,
"10:30" text
) |
SELECT printer FROM table_15635768_1 WHERE place_of_issue = "Estes Park, Colorado" | Who was the printer of Estes Park, Colorado? | CREATE TABLE table_15635768_1 (printer VARCHAR, place_of_issue VARCHAR) |
SELECT T1.cust_name, T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING SUM(T2.amount) > 5000 | Find the name and account balance of the customers who have loans with a total amount of more than 5000. | CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR, cust_id VARCHAR) |
SELECT Id AS "post_link", * FROM Posts WHERE PostTypeId = 1 AND AcceptedAnswerId IS NULL AND ClosedDate IS NULL AND AnswerCount > 0 AND OwnerUserId = '##ownerid##' | Did I mark all my questions as accepted?. | CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CRE... |
SELECT printer FROM table_15635768_1 WHERE face_value = "39¢" | The stamp was 39¢, who was the printer? | CREATE TABLE table_15635768_1 (printer VARCHAR, face_value VARCHAR) |
SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname ORDER BY SUM(T2.amount) DESC LIMIT 1 | Find the name of bank branch that provided the greatest total amount of loans. | CREATE TABLE loan (branch_id VARCHAR, amount INTEGER); CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR) |
SELECT "Team" FROM table_21872 WHERE "Driver" = 'Milka Duno' | If the driver is Milka Duno, what is the name of the team? | CREATE TABLE table_21872 (
"Fin. Pos" real,
"Car No." real,
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Laps Led" real,
"Points" text
) |
SELECT attendance FROM table_15647838_3 WHERE location = "El Paso, TX" | What are values of attendance for the El Paso, TX location? | CREATE TABLE table_15647838_3 (attendance VARCHAR, location VARCHAR) |
SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 GROUP BY T2.bname ORDER BY SUM(T1.amount) DESC LIMIT 1 | Find the name of bank branch that provided the greatest total amount of loans to customers with credit score is less than 100. | CREATE TABLE loan (branch_id VARCHAR, cust_id VARCHAR, amount INTEGER); CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR); CREATE TABLE customer (cust_id VARCHAR, credit_score INTEGER) |
SELECT "Place" FROM table_8817 WHERE "Player" = 'dave barr' | In what place did Dave Barr score? | CREATE TABLE table_8817 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) |
SELECT COUNT(result) FROM table_15647838_3 WHERE attendance = "74,111" | How many values for result correspond to attendance of 74,111? | CREATE TABLE table_15647838_3 (result VARCHAR, attendance VARCHAR) |
SELECT DISTINCT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id | Find the name of bank branches that provided some loans. | CREATE TABLE loan (branch_id VARCHAR); CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR) |
SELECT AVG(laps) FROM table_name_87 WHERE grid > 2 AND time_retired = "accident" AND constructor = "ferrari" | What is the average laps for a grid larger than 2, for a ferrari that got in an accident? | CREATE TABLE table_name_87 (
laps INTEGER,
constructor VARCHAR,
grid VARCHAR,
time_retired VARCHAR
) |
SELECT COUNT(location) FROM table_15647838_3 WHERE stadium = "Sun Life stadium" | How many locations have the Sun Life Stadium? | CREATE TABLE table_15647838_3 (location VARCHAR, stadium VARCHAR) |
SELECT DISTINCT T1.cust_name, T1.credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id | Find the name and credit score of the customers who have some loans. | CREATE TABLE customer (cust_name VARCHAR, credit_score VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "COPD EXACERBATION" | how many patients are diagnosed with primary disease copd exacerbation? | 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 (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... |
SELECT MAX(season) FROM table_15647838_3 WHERE bowl_game = "1993 Independence Bowl" | What is the highest season for a bowl game of the 1993 Independence Bowl? | CREATE TABLE table_15647838_3 (season INTEGER, bowl_game VARCHAR) |
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE amount > 3000 | Find the the name of the customers who have a loan with amount more than 3000. | CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR) |
SELECT "Country" FROM table_40678 WHERE "Content" = 'tv locale' | What Country's Content is TV Locale? | CREATE TABLE table_40678 (
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
) |
SELECT MIN(_number) FROM table_15647838_3 WHERE location = "Atlanta, GA" AND opponent = "Georgia Bulldogs" | What is the lowest # in Atlanta, GA with the Georgia Bulldogs as an opponent? | CREATE TABLE table_15647838_3 (_number INTEGER, location VARCHAR, opponent VARCHAR) |
SELECT T1.bname, T1.city FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T2.loan_type = 'Business' | Find the city and name of bank branches that provide business loans. | CREATE TABLE bank (bname VARCHAR, city VARCHAR, branch_id VARCHAR); CREATE TABLE loan (branch_id VARCHAR, loan_type VARCHAR) |
SELECT "High rebounds" FROM table_29843 WHERE "Record" = '14–7' | Who had the high rebounds when the record was 14 7? | CREATE TABLE table_29843 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT COUNT(attendance) FROM table_15647838_3 WHERE bowl_game = "1986 Peach Bowl" | How many values for attendance correspond to the 1986 Peach Bowl? | CREATE TABLE table_15647838_3 (attendance VARCHAR, bowl_game VARCHAR) |
SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 | Find the names of bank branches that have provided a loan to any customer whose credit score is below 100. | CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR); CREATE TABLE customer (cust_id VARCHAR, credit_score INTEGER); CREATE TABLE loan (branch_id VARCHAR, cust_id VARCHAR) |
SELECT "Money ( \u00a3 )" FROM table_68355 WHERE "Player" = 'pádraig harrington' | Name the money for p draig harrington | CREATE TABLE table_68355 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" text
) |
SELECT interview_subject FROM table_1566848_7 WHERE date = "2-86" | Who was the interview subject in the 2-86 issue? | CREATE TABLE table_1566848_7 (interview_subject VARCHAR, date VARCHAR) |
SELECT SUM(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T1.state = 'New York' | Find the total amount of loans provided by bank branches in the state of New York. | CREATE TABLE bank (branch_id VARCHAR, state VARCHAR); CREATE TABLE loan (amount INTEGER, branch_id VARCHAR) |
SELECT "Date" FROM table_64405 WHERE "Record" = '19–16–8' | Which Date has a Record of 19 16 8? | CREATE TABLE table_64405 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text,
"Arena" text,
"Points" real
) |
SELECT COUNT(pictorials) FROM table_1566848_7 WHERE centerfold_model = "Rebekka Armstrong" | Who were all the pictorials when the centerfold model was Rebekka Armstrong? | CREATE TABLE table_1566848_7 (pictorials VARCHAR, centerfold_model VARCHAR) |
SELECT AVG(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan) | Find the average credit score of the customers who have some loan. | CREATE TABLE loan (credit_score INTEGER, cust_id VARCHAR); CREATE TABLE customer (credit_score INTEGER, cust_id VARCHAR) |
SELECT "Monday Mona/ M\u00e1ni" FROM table_66876 WHERE "Thursday Thunor / Thor" = 'tongersdei' | Which Monday Mona/Mani also had a Thursday Thunor/Thor of Tongersdei? | CREATE TABLE table_66876 (
"Sunday Sunna/S\u00f3l" text,
"Monday Mona/ M\u00e1ni" text,
"Tuesday Tiw/ Tyr" text,
"Wednesday Woden / Odin" text,
"Thursday Thunor / Thor" text,
"Friday Frige or Freya" text,
"Saturday Saturn" text
) |
SELECT pictorials FROM table_1566848_7 WHERE centerfold_model = "Ava Fabian" | Who were the pictorials when the centerfold model was Ava Fabian? | CREATE TABLE table_1566848_7 (pictorials VARCHAR, centerfold_model VARCHAR) |
SELECT AVG(credit_score) FROM customer WHERE NOT cust_id IN (SELECT cust_id FROM loan) | Find the average credit score of the customers who do not have any loan. | CREATE TABLE loan (credit_score INTEGER, cust_id VARCHAR); CREATE TABLE customer (credit_score INTEGER, cust_id VARCHAR) |
SELECT "Loss" FROM table_79725 WHERE "Date" = 'september 16' | What's the loss for September 16? | CREATE TABLE table_79725 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) |
SELECT COUNT(interview_subject) FROM table_1566848_7 WHERE centerfold_model = "Sherry Arnett" | Who was the interview subject when the centerfold model was Sherry Arnett? | CREATE TABLE table_1566848_7 (interview_subject VARCHAR, centerfold_model VARCHAR) |
SELECT COUNT(*) FROM ASSESSMENT_NOTES | How many assessment notes are there in total? | CREATE TABLE ASSESSMENT_NOTES (Id VARCHAR) |
SELECT COUNT(week) FROM table_14940519_1 WHERE game_site = "Memorial Stadium" AND opponent = "Buffalo Bills" | Name the number of week for game site being memorial stadium for buffalo bills | CREATE TABLE table_14940519_1 (
week VARCHAR,
game_site VARCHAR,
opponent VARCHAR
) |
SELECT cover_model FROM table_1566848_7 WHERE date = "7-86" | Who was the cover model in the 7-86 issue? | CREATE TABLE table_1566848_7 (cover_model VARCHAR, date VARCHAR) |
SELECT date_of_notes FROM Assessment_Notes | What are the dates of the assessment notes? | CREATE TABLE Assessment_Notes (date_of_notes VARCHAR) |
SELECT "2006-2007 season" FROM table_51904 WHERE "Club" = 'vitória de setúbal' | Where did the Vit ria de Set bal club place in the 2006-2007 season? | CREATE TABLE table_51904 (
"Club" text,
"Head Coach" text,
"City" text,
"Stadium" text,
"2006-2007 season" text
) |
SELECT COUNT(date) FROM table_1566848_7 WHERE pictorials = "Female s disk jockey" | What is the date of the issue where the pictorials is of Female s disk jockey? | CREATE TABLE table_1566848_7 (date VARCHAR, pictorials VARCHAR) |
SELECT COUNT(*) FROM ADDRESSES WHERE zip_postcode = "197" | How many addresses have zip code 197? | CREATE TABLE ADDRESSES (zip_postcode VARCHAR) |
SELECT Advisor, COUNT(*) FROM Student GROUP BY Advisor | How many students does each advisor have. Show scatter chart. | CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
... |
SELECT cover_model FROM table_1566852_3 WHERE centerfold_model = "Shallan Meiers" | WHO WAS THE COVER MODEL OF PLAYBOY WHERE THE CENTERFOLD MODEL WAS SHALLAN MEIERS? | CREATE TABLE table_1566852_3 (cover_model VARCHAR, centerfold_model VARCHAR) |
SELECT COUNT(DISTINCT incident_type_code) FROM Behavior_Incident | How many distinct incident type codes are there? | CREATE TABLE Behavior_Incident (incident_type_code VARCHAR) |
SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'gstr/ddnts nos w hmrhg')) AND DATETIME(cost.chargetime, 'start ... | tell me the maximum hospital cost if there is a gstr/ddnts nos w hmrhg this year? | CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type t... |
SELECT interview_subject FROM table_1566852_3 WHERE centerfold_model = "Nicole Narain" | IN THE ISSUE WHERE NICOLE NARAIN WAS THE CENTERFOLD MODEL, WHO WAS THE INTERVIEW SUBJECT? | CREATE TABLE table_1566852_3 (interview_subject VARCHAR, centerfold_model VARCHAR) |
SELECT DISTINCT detention_type_code FROM Detention | Return all distinct detention type codes. | CREATE TABLE Detention (detention_type_code VARCHAR) |
SELECT "Birth" FROM table_68311 WHERE "Marriage" = '24 may 1935' | Name the birth of the person married 24 may 1935 | CREATE TABLE table_68311 (
"Name" text,
"Birth" text,
"Marriage" text,
"Became Consort" text,
"Ceased to be Consort" text,
"Spouse" text
) |
SELECT COUNT(date) FROM table_1566852_3 WHERE interview_subject = "Harrison Ford" | IN HOW MANY ISSUES WAS HARRISON FORD THE INTERVIEW SUBJECT? | CREATE TABLE table_1566852_3 (date VARCHAR, interview_subject VARCHAR) |
SELECT date_incident_start, date_incident_end FROM Behavior_Incident WHERE incident_type_code = "NOISE" | What are the start and end dates for incidents with incident type code "NOISE"? | CREATE TABLE Behavior_Incident (date_incident_start VARCHAR, date_incident_end VARCHAR, incident_type_code VARCHAR) |
SELECT SUM(attendance) FROM table_name_52 WHERE score = "80-94" | How many attended during the game with a score of 80-94? | CREATE TABLE table_name_52 (
attendance INTEGER,
score VARCHAR
) |
SELECT 20 AS _questions FROM table_1566852_4 WHERE interview_subject = "Mike Piazza" | Who was featured in 20 questions when the subject of the interview was Mike Piazza? | CREATE TABLE table_1566852_4 (interview_subject VARCHAR) |
SELECT detention_summary FROM Detention | Return all detention summaries. | CREATE TABLE Detention (detention_summary VARCHAR) |
SELECT asset_make, COUNT(asset_make) FROM Assets GROUP BY asset_make ORDER BY asset_make | Draw a bar chart of asset make versus the number of asset make, and display in asc by the X. | CREATE TABLE Asset_Parts (
asset_id INTEGER,
part_id INTEGER
)
CREATE TABLE Skills (
skill_id INTEGER,
skill_code VARCHAR(20),
skill_description VARCHAR(255)
)
CREATE TABLE Fault_Log_Parts (
fault_log_entry_id INTEGER,
part_fault_id INTEGER,
fault_status VARCHAR(10)
)
CREATE TABLE Sta... |
SELECT 20 AS _questions FROM table_1566852_4 WHERE date = "4-03" | Who was featured in 20 questions on 4-03? | CREATE TABLE table_1566852_4 (date VARCHAR) |
SELECT cell_mobile_number, email_address FROM STUDENTS | Return the cell phone number and email address for all students. | CREATE TABLE STUDENTS (cell_mobile_number VARCHAR, email_address VARCHAR) |
SELECT SUM("Cup Apps") FROM table_32374 WHERE "League Apps" < '12' | How many cop apps in the season with fewer than 12 league apps? | CREATE TABLE table_32374 (
"Season" text,
"Team" text,
"League Apps" real,
"League Goals" real,
"Cup Apps" real,
"Cup Goals" real
) |
SELECT date FROM table_1566852_4 WHERE centerfold_model = "Luci Victoria" | On what deate was the centerfold featured Luci Victoria? | CREATE TABLE table_1566852_4 (date VARCHAR, centerfold_model VARCHAR) |
SELECT email_address FROM Students WHERE first_name = "Emma" AND last_name = "Rohan" | What is the email of the student with first name "Emma" and last name "Rohan"? | CREATE TABLE Students (email_address VARCHAR, first_name VARCHAR, last_name VARCHAR) |
SELECT competition FROM table_name_89 WHERE club = "villareal" | What competition has the club villareal? | CREATE TABLE table_name_89 (
competition VARCHAR,
club VARCHAR
) |
SELECT COUNT(centerfold_model) FROM table_1566852_4 WHERE cover_model = "Torrie Wilson" | How many centerfold models were there when the cover model was Torrie Wilson? | CREATE TABLE table_1566852_4 (centerfold_model VARCHAR, cover_model VARCHAR) |
SELECT COUNT(DISTINCT student_id) FROM Students_in_Detention | How many distinct students have been in detention? | CREATE TABLE Students_in_Detention (student_id VARCHAR) |
SELECT "first elected" FROM table_203_214 WHERE "member" = 'joe clark' | when was joe clark first elected ? | CREATE TABLE table_203_214 (
id number,
"member" text,
"party" text,
"electorate" text,
"state" text,
"first elected" text
) |
SELECT pictorials FROM table_1566850_9 WHERE date = "11-98" | What is the name of the pictorial in the 11-98 issue? | CREATE TABLE table_1566850_9 (pictorials VARCHAR, date VARCHAR) |
SELECT gender FROM TEACHERS WHERE last_name = "Medhurst" | What is the gender of the teacher with last name "Medhurst"? | CREATE TABLE TEACHERS (gender VARCHAR, last_name VARCHAR) |
SELECT Nationality, COUNT(Nationality) FROM ship GROUP BY Nationality ORDER BY COUNT(Nationality) DESC | Bar graph to show how many nationality from different nationality, list in desc by the total number. | CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
) |
SELECT COUNT(centerfold_model) FROM table_1566850_9 WHERE date = "9-98" | How many centerfolds were in the 9-98 issue? | CREATE TABLE table_1566850_9 (centerfold_model VARCHAR, date VARCHAR) |
SELECT incident_type_description FROM Ref_Incident_Type WHERE incident_type_code = "VIOLENCE" | What is the incident type description for the incident type with code "VIOLENCE"? | CREATE TABLE Ref_Incident_Type (incident_type_description VARCHAR, incident_type_code VARCHAR) |
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'quadriplegia-pa... | what are the top five frequent prescribed drugs that were prescribed to patients aged 20s in the same hospital encounter after they had been diagnosed with quadriplegia-partial until 2104? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
... |
SELECT interview_subject FROM table_1566850_9 WHERE date = "8-98" | Who was interviewed in the 8-98 issue? | CREATE TABLE table_1566850_9 (interview_subject VARCHAR, date VARCHAR) |
SELECT MAX(monthly_rental), MIN(monthly_rental) FROM Student_Addresses | Find the maximum and minimum monthly rental for all student addresses. | CREATE TABLE Student_Addresses (monthly_rental INTEGER) |
SELECT "Venue" FROM table_14524 WHERE "Date" = '11 october 2008' | In which venue did the competition on 11 October 2008 take place? | CREATE TABLE table_14524 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) |
SELECT 20 AS _questions FROM table_1566850_9 WHERE centerfold_model = "Marliece Andrada" | Who was asked 20 questions in the issue where the centerfold is Marliece Andrada? | CREATE TABLE table_1566850_9 (centerfold_model VARCHAR) |
SELECT first_name FROM Teachers WHERE email_address LIKE '%man%' | Find the first names of teachers whose email address contains the word "man". | CREATE TABLE Teachers (first_name VARCHAR, email_address VARCHAR) |
SELECT card_type_code, COUNT(*) FROM Customers_Cards GROUP BY card_type_code | Display a bar chart for what are the different card types, and how many cards are there of each? | CREATE TABLE Accounts (
account_id INTEGER,
customer_id INTEGER,
account_name VARCHAR(50),
other_account_details VARCHAR(255)
)
CREATE TABLE Customers_Cards (
card_id INTEGER,
customer_id INTEGER,
card_type_code VARCHAR(15),
card_number VARCHAR(80),
date_valid_from DATETIME,
dat... |
SELECT 20 AS _questions FROM table_1566850_9 WHERE cover_model = "Linda Brava" | Who was asked 20 questions in the issue where the cover model is Linda Brava? | CREATE TABLE table_1566850_9 (cover_model VARCHAR) |
SELECT * FROM Assessment_Notes ORDER BY date_of_notes | List all information about the assessment notes sorted by date in ascending order. | CREATE TABLE Assessment_Notes (date_of_notes VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "17" AND diagnoses.long_title = "Diabetes with renal manifestations, type I [juvenile type], not stated as uncontrolled" | count the number of patients whose days of hospital stay is greater than 17 and diagnoses long title is diabetes with renal manifestations, type i [juvenile type], not stated as uncontrolled? | 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 (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... |
SELECT COUNT(date) FROM table_1566852_6 WHERE centerfold_model = "Jillian Grace" | How many times was Jillian Grace the centerfold model? | CREATE TABLE table_1566852_6 (date VARCHAR, centerfold_model VARCHAR) |
SELECT city FROM Addresses ORDER BY city | List all cities of addresses in alphabetical order. | CREATE TABLE Addresses (city VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "45" AND demographic.days_stay > "20" | give me the number of patients less than 45 years who were hospitalized for more than 20 days. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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,
... |
SELECT interview_subject FROM table_1566852_6 WHERE cover_model = "Bai Ling" | What were the interview subjects on those occasions where Bai Ling was the cover model? | CREATE TABLE table_1566852_6 (interview_subject VARCHAR, cover_model VARCHAR) |
SELECT first_name, last_name FROM Teachers ORDER BY last_name | Find the first names and last names of teachers in alphabetical order of last name. | CREATE TABLE Teachers (first_name VARCHAR, last_name VARCHAR) |
SELECT venue FROM table_17356873_1 WHERE shirt_sponsor = "Mardan" | Which venue does Mardan sponsor? | CREATE TABLE table_17356873_1 (
venue VARCHAR,
shirt_sponsor VARCHAR
) |
SELECT COUNT(interview_subject) FROM table_1566852_6 WHERE centerfold_model = "Tamara Witmer" | How many total interview subjects wererthere when the centerfold model was Tamara Witmer? | CREATE TABLE table_1566852_6 (interview_subject VARCHAR, centerfold_model VARCHAR) |
SELECT * FROM Student_Addresses ORDER BY monthly_rental DESC | Find all information about student addresses, and sort by monthly rental in descending order. | CREATE TABLE Student_Addresses (monthly_rental VARCHAR) |
SELECT runner_up FROM table_16331144_1 WHERE season = "Five" | Who was the runner-up in season five? | CREATE TABLE table_16331144_1 (
runner_up VARCHAR,
season VARCHAR
) |
SELECT 20 AS _questions FROM table_1566852_6 WHERE centerfold_model = "Jillian Grace" | What's the subject of 20 questions in those issues where Jillian Grace is the centerfold model? | CREATE TABLE table_1566852_6 (centerfold_model VARCHAR) |
SELECT T1.student_id, T2.first_name FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1 | Find the id and first name of the student that has the most number of assessment notes? | CREATE TABLE Students (first_name VARCHAR, student_id VARCHAR); CREATE TABLE Assessment_Notes (student_id VARCHAR) |
SELECT "Transmission" FROM table_16484 WHERE "Turbo" = 'Yes (Mitsubishi TD04-16t )' | what's the transmission where turbo is yes (mitsubishi td04-16t ) | CREATE TABLE table_16484 (
"Trim" text,
"Engine" text,
"Turbo" text,
"Fuel Delivery" text,
"Power" text,
"Torque" text,
"Transmission" text,
"Performance" text
) |
SELECT cover_model FROM table_1566852_6 WHERE date = "4-05" | Who were the cover model(s) on the 4-05 issue? | CREATE TABLE table_1566852_6 (cover_model VARCHAR, date VARCHAR) |
SELECT T1.teacher_id, T2.first_name FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY COUNT(*) DESC LIMIT 3 | Find the ids and first names of the 3 teachers that have the most number of assessment notes? | CREATE TABLE Assessment_Notes (teacher_id VARCHAR); CREATE TABLE Teachers (first_name VARCHAR, teacher_id VARCHAR) |
SELECT MIN("Round") FROM table_35935 WHERE "Player" = 'ed smith' AND "Pick" > '19' | What is the lowest round of Ed Smith, who had a pick lower than 19? | CREATE TABLE table_35935 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
) |
SELECT date FROM table_1566852_5 WHERE interview_subject = "Oliver Stone" | Name the date for oliver stone | CREATE TABLE table_1566852_5 (date VARCHAR, interview_subject VARCHAR) |
SELECT T1.student_id, T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1 | Find the id and last name of the student that has the most behavior incidents? | CREATE TABLE Students (last_name VARCHAR, student_id VARCHAR); CREATE TABLE Behavior_Incident (student_id VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.