answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT score FROM table_17344582_11 WHERE high_assists = "B. Shaw (5)"
List the all the scores where the high assis is b. shaw (5)
CREATE TABLE table_17344582_11 (score VARCHAR, high_assists VARCHAR)
SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = "voluptatem" AND T1.date_problem_reported > "1995"
List the ids of the problems from the product "voluptatem" that are reported after 1995?
CREATE TABLE problems (problem_id VARCHAR, product_id VARCHAR, date_problem_reported VARCHAR); CREATE TABLE product (product_id VARCHAR, product_name VARCHAR)
SELECT "Status" FROM table_72918 WHERE "Area km 2" = '304.06'
What is the status(es) of the place with an area of 304.06 km2?
CREATE TABLE table_72918 ( "Official Name" text, "Status" text, "Area km 2" text, "Population" real, "Census Ranking" text )
SELECT high_assists FROM table_17344582_11 WHERE high_rebounds = "K. McHale (10)"
List of high assists with high rebounds for k. mchale (10)
CREATE TABLE table_17344582_11 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = "rem" EXCEPT SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON...
Find the first and last name of the staff members who reported problems from the product "rem" but not "aut"?
CREATE TABLE product (product_name VARCHAR, product_id VARCHAR); CREATE TABLE staff (staff_first_name VARCHAR, staff_last_name VARCHAR, staff_id VARCHAR); CREATE TABLE problems (product_id VARCHAR, reported_by_staff_id VARCHAR)
SELECT average_ratings FROM table_name_38 WHERE episodes > 9 AND japanese_title = "ホタルノヒカリ"
What is average ratings for Japanese title of , with episodes larger than 9?
CREATE TABLE table_name_38 ( average_ratings VARCHAR, episodes VARCHAR, japanese_title VARCHAR )
SELECT location_attendance FROM table_17344582_11 WHERE series = "1-1"
List all location attendance for series 1-1.
CREATE TABLE table_17344582_11 (location_attendance VARCHAR, series VARCHAR)
SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = "Lacey" AND T3.staff_last_name = "Bosco" INTERSECT SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.pr...
Find the products which have problems reported by both Lacey Bosco and Kenton Champlin?
CREATE TABLE product (product_name VARCHAR, product_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (product_id VARCHAR, reported_by_staff_id VARCHAR)
SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-82318')) AND intakeoutput.cellpath LIKE '%output%' AND D...
what was the name of the output, which patient 027-82318 had first during a day before?
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9cod...
SELECT date FROM table_17340355_7 WHERE team = "Indiana"
What day(s) did the team play indiana?
CREATE TABLE table_17340355_7 (date VARCHAR, team VARCHAR)
SELECT COUNT(*) FROM branch WHERE membership_amount > (SELECT AVG(membership_amount) FROM branch)
How many branches where have more than average number of memberships are there?
CREATE TABLE branch (membership_amount INTEGER)
SELECT COUNT("Population (2011)") FROM table_22728 WHERE "Change (%)" = '4.5'
When 4.5 is the percentage of change how many population counts were made for 2011?
CREATE TABLE table_22728 ( "Name" text, "Population (2011)" real, "Population (2006)" real, "Change (%)" text, "Land area (km\u00b2)" text, "Population density (per km\u00b2)" text )
SELECT high_assists FROM table_17340355_7 WHERE date = "January 2"
Who had the high assist total on january 2?
CREATE TABLE table_17340355_7 (high_assists VARCHAR, date VARCHAR)
SELECT name, address_road, city FROM branch ORDER BY open_year
Show name, address road, and city for all branches sorted by open year.
CREATE TABLE branch (name VARCHAR, address_road VARCHAR, city VARCHAR, open_year VARCHAR)
SELECT "seat" FROM table_204_659 ORDER BY id DESC LIMIT 1
what is the name of the last seat ?
CREATE TABLE table_204_659 ( id number, "seat" text, "state" text, "majority" number, "member" text, "party" text )
SELECT film_title_used_in_nomination FROM table_17350255_1 WHERE original_title = "Bābǎi zhuàngshì (八百壯士)"
What was the title used in nomination in the original Bābǎi Zhuàngshì (八百壯士)?
CREATE TABLE table_17350255_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3
What are names for top three branches with most number of membership?
CREATE TABLE branch (name VARCHAR, membership_amount VARCHAR)
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", u.Id AS "user_link", DisplayName, WebsiteUrl, Reputation FROM Users AS u INNER JOIN Comments AS c ON c.UserId = u.Id INNER JOIN Posts AS p ON p.Id = c.PostId INNER JOIN PostTags AS pt ON p.Id = pt.PostId INNER JOIN Tags AS t ON t.Id = pt.TagId WHERE (UPPER(Tag...
Top Moroccan Dev in stack (Java, React, Spring).
CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostsWit...
SELECT year__ceremony_ FROM table_17350255_1 WHERE original_title = "Chūnqiū cháshì (春秋茶室)"
What was the year when Chūnqiū Cháshì (春秋茶室) was submitted?
CREATE TABLE table_17350255_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
SELECT DISTINCT city FROM branch WHERE membership_amount >= 100
Show all distinct city where branches with at least 100 memberships are located.
CREATE TABLE branch (city VARCHAR, membership_amount VARCHAR)
SELECT directed_by FROM table_name_52 WHERE written_by = "dan serafin" AND original_airdate = "july 23, 2008"
Who directed the episode written by Dan Serafin and aired on July 23, 2008?
CREATE TABLE table_name_52 ( directed_by VARCHAR, written_by VARCHAR, original_airdate VARCHAR )
SELECT year__ceremony_ FROM table_17350255_1 WHERE film_title_used_in_nomination = "Old Mo's Second Spring"
Old Mo's Second Spring was the film title used in nomination in what year?
CREATE TABLE table_17350255_1 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT open_year FROM branch GROUP BY open_year HAVING COUNT(*) >= 2
List all open years when at least two shops are opened.
CREATE TABLE branch (open_year VARCHAR)
SELECT DISTINCT course.department, course.name, course.number FROM program_course INNER JOIN course ON program_course.course_id = course.course_id WHERE course.department = 'NEAREAST'
List CS major NEAREAST requirements .
CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE comment_instructor ( instructor_id int...
SELECT year__ceremony_ FROM table_17350255_1 WHERE result = "Not Nominated" AND film_title_used_in_nomination = "My Mother's Teahouse"
What was the year when My Mother's Teahouse was not nominated?
CREATE TABLE table_17350255_1 (year__ceremony_ VARCHAR, result VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT MIN(membership_amount), MAX(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London'
Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.
CREATE TABLE branch (membership_amount INTEGER, open_year VARCHAR, city VARCHAR)
SELECT "Callsign" FROM table_36233 WHERE "Webcast" = 'listen live' AND "Frequency" < '1210' AND "Brand" = 'newsradio 740 ktrh'
Which Callsign includes a frequency under 1210, Newsradio 740 KTRH, and webcasts with listen live?
CREATE TABLE table_36233 ( "Frequency" real, "Callsign" text, "Brand" text, "City of License" text, "Website" text, "Webcast" text )
SELECT title FROM table_173475_1 WHERE release = 2006
What titles were released in 2006?
CREATE TABLE table_173475_1 (title VARCHAR, release VARCHAR)
SELECT city, COUNT(*) FROM branch WHERE open_year < 2010 GROUP BY city
Show the city and the number of branches opened before 2010 for each city.
CREATE TABLE branch (city VARCHAR, open_year INTEGER)
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT transfers.hadm_id FROM transfers WHERE transfers.wardid = 45 AND STRFTIME('%y', transfers.intime) <= '2100')
the number of patients in ward 45 until 2100?
CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE chartevents ( row_id number, subject_i...
SELECT release FROM table_173475_1 WHERE title = "Axis & Allies: D-Day"
What year(s) was axis & allies: d-day released?
CREATE TABLE table_173475_1 (release VARCHAR, title VARCHAR)
SELECT COUNT(DISTINCT LEVEL) FROM member
How many different levels do members have?
CREATE TABLE member (LEVEL VARCHAR)
SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE ...
what is the top five most frequently prescribed drugs that were prescribed to patients within 2 months after being diagnosed with cytomegaloviral disease in this year?
CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location...
SELECT game FROM table_17355408_12 WHERE date = "May 25"
What game was on May 25?
CREATE TABLE table_17355408_12 (game VARCHAR, date VARCHAR)
SELECT card_number, name, hometown FROM member ORDER BY LEVEL DESC
Show card number, name, and hometown for all members in a descending order of level.
CREATE TABLE member (card_number VARCHAR, name VARCHAR, hometown VARCHAR, LEVEL VARCHAR)
SELECT MAX("Drawn") FROM table_36757 WHERE "Games" < '6'
What are the highest number of games drawn for games numbered under 6?
CREATE TABLE table_36757 ( "Games" real, "Drawn" real, "Lost" real, "Points difference" text, "Points" real )
SELECT COUNT(game) FROM table_17355408_12 WHERE record = "2-3"
What game was the record 2-3?
CREATE TABLE table_17355408_12 (game VARCHAR, record VARCHAR)
SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY COUNT(*) DESC LIMIT 1
Show the membership level with most number of members.
CREATE TABLE member (LEVEL VARCHAR)
SELECT COUNT(*) = 0 FROM course, program_course WHERE course.credits <> 17 AND course.department = 'EECS' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id
Are the upper-level classes all 17 credits ?
CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varchar, test_id varchar ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TAB...
SELECT high_rebounds FROM table_17355408_9 WHERE team = "Sacramento"
Who had the high rebounds when the team played Sacramento?
CREATE TABLE table_17355408_9 (high_rebounds VARCHAR, team VARCHAR)
SELECT T3.name, T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year
Show all member names and registered branch names sorted by register year.
CREATE TABLE member (name VARCHAR, member_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, member_id VARCHAR, register_year VARCHAR); CREATE TABLE branch (name VARCHAR, branch_id VARCHAR)
SELECT date_to, COUNT(date_to) FROM Customer_Address_History AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id JOIN Addresses AS T3 ON T1.address_id = T3.address_id
Show the number of customer address history in each day and bin date to by weekday with a bar chart.
CREATE TABLE Customers ( customer_id INTEGER, payment_method_code VARCHAR(15), customer_number VARCHAR(20), customer_name VARCHAR(80), customer_address VARCHAR(255), customer_phone VARCHAR(80), customer_email VARCHAR(80) ) CREATE TABLE Contacts ( contact_id INTEGER, customer_id INTE...
SELECT high_points FROM table_17355408_9 WHERE date = "April 8"
Who had the high points on April 8?
CREATE TABLE table_17355408_9 (high_points VARCHAR, date VARCHAR)
SELECT T2.name, COUNT(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id
Show all branch names with the number of members in each branch registered after 2015.
CREATE TABLE branch (name VARCHAR, branch_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, register_year INTEGER)
SELECT game FROM table_30049462_8 WHERE score = "L 111–126"
Name the game for l 111 126
CREATE TABLE table_30049462_8 ( game VARCHAR, score VARCHAR )
SELECT high_assists FROM table_17355408_9 WHERE game = 80
Who had the high assists in game 80?
CREATE TABLE table_17355408_9 (high_assists VARCHAR, game VARCHAR)
SELECT name FROM member WHERE NOT member_id IN (SELECT member_id FROM membership_register_branch)
Show member names without any registered branch.
CREATE TABLE member (name VARCHAR, member_id VARCHAR); CREATE TABLE membership_register_branch (name VARCHAR, member_id VARCHAR)
SELECT opponent FROM table_name_34 WHERE attendance = "62,657"
Who was the opponent at the game attended by 62,657?
CREATE TABLE table_name_34 ( opponent VARCHAR, attendance VARCHAR )
SELECT high_points FROM table_17355408_5 WHERE date = "December 29"
Name the highh points for december 29
CREATE TABLE table_17355408_5 (high_points VARCHAR, date VARCHAR)
SELECT name, city FROM branch WHERE NOT branch_id IN (SELECT branch_id FROM membership_register_branch)
List the branch name and city without any registered members.
CREATE TABLE membership_register_branch (name VARCHAR, city VARCHAR, branch_id VARCHAR); CREATE TABLE branch (name VARCHAR, city VARCHAR, branch_id VARCHAR)
SELECT MIN(series__number) FROM table_12564633_1 WHERE season__number = 18
What is the series number for Season #18?
CREATE TABLE table_12564633_1 ( series__number INTEGER, season__number VARCHAR )
SELECT high_assists FROM table_17355408_5 WHERE game = 29
Name the high assists for 29 game
CREATE TABLE table_17355408_5 (high_assists VARCHAR, game VARCHAR)
SELECT T2.name, T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year = 2016 GROUP BY T2.branch_id ORDER BY COUNT(*) DESC LIMIT 1
What is the name and open year for the branch with most number of memberships registered in 2016?
CREATE TABLE membership_register_branch (branch_id VARCHAR, register_year VARCHAR); CREATE TABLE branch (name VARCHAR, open_year VARCHAR, branch_id VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "29" AND lab.itemid = "50995"
what is the number of patients whose days of hospital stay is greater than 29 and item id is 50995?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, ...
SELECT high_points FROM table_17355408_5 WHERE location_attendance = "Pepsi Center 18,611"
Name the high points for pepsi center 18,611
CREATE TABLE table_17355408_5 (high_points VARCHAR, location_attendance VARCHAR)
SELECT T2.name, T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T1.register_year = 2016
Show the member name and hometown who registered a branch in 2016.
CREATE TABLE member (name VARCHAR, hometown VARCHAR, member_id VARCHAR); CREATE TABLE membership_register_branch (member_id VARCHAR, register_year VARCHAR)
SELECT "Animal" FROM table_41592 WHERE "AP duration (ms)" = '1.0' AND "Conduction speed (m/s)" = '7–30'
Which animal has an AP duration of 1.0 and a conduction speed of 7 30?
CREATE TABLE table_41592 ( "Animal" text, "Cell type" text, "Resting potential (mV)" text, "AP increase (mV)" text, "AP duration (ms)" text, "Conduction speed (m/s)" text )
SELECT date FROM table_17355408_4 WHERE team = "Chicago"
Name the date for chicago
CREATE TABLE table_17355408_4 (date VARCHAR, team VARCHAR)
SELECT city FROM branch WHERE open_year = 2001 AND membership_amount > 100
Show all city with a branch opened in 2001 and a branch with more than 100 membership.
CREATE TABLE branch (city VARCHAR, open_year VARCHAR, membership_amount VARCHAR)
SELECT score FROM table_name_72 WHERE place = "t9" AND player = "laura diaz"
What was Laura Diaz's score for place t9?
CREATE TABLE table_name_72 ( score VARCHAR, place VARCHAR, player VARCHAR )
SELECT record FROM table_17355408_4 WHERE team = "New Orleans"
Name the record for new orleans
CREATE TABLE table_17355408_4 (record VARCHAR, team VARCHAR)
SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount > 100
Show all cities without a branch having more than 100 memberships.
CREATE TABLE branch (city VARCHAR, membership_amount INTEGER)
SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.drug = "LR"
What is the drug type of LR?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) 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 ) C...
SELECT high_assists FROM table_17355408_4 WHERE high_points = "Chauncey Billups , Carmelo Anthony (18)"
Name the high assists for chauncey billups , carmelo anthony (18)
CREATE TABLE table_17355408_4 (high_assists VARCHAR, high_points VARCHAR)
SELECT SUM(total_pounds) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T2.city = 'London' AND T1.year = 2018
What is the sum of total pounds of purchase in year 2018 for all branches in London?
CREATE TABLE purchase (branch_id VARCHAR, year VARCHAR); CREATE TABLE branch (branch_id VARCHAR, city VARCHAR)
SELECT MAX(year) FROM table_2201724_1
What is Fred Stolle's final year of competing in a championship?
CREATE TABLE table_2201724_1 ( year INTEGER )
SELECT score FROM table_17355408_7 WHERE team = "@ Orlando"
What was the final score for @ Orlando?
CREATE TABLE table_17355408_7 (score VARCHAR, team VARCHAR)
SELECT COUNT(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 6
What is the total number of purchases for members with level 6?
CREATE TABLE member (member_id VARCHAR, level VARCHAR); CREATE TABLE purchase (member_id VARCHAR)
SELECT COUNT(*) = 0 FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.has_exams = 'N' AND program_course.category LIKE '%ULCS%'
Do all upper-level classes have exams ?
CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_proje...
SELECT date FROM table_17355408_7 WHERE high_assists = "Chauncey Billups (6)"
Chauncey Billups (6) had a high assist on what date?
CREATE TABLE table_17355408_7 (date VARCHAR, high_assists VARCHAR)
SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Louisville , Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member ...
Find the name of branches where have some members whose hometown is in Louisville, Kentucky and some in Hiram, Georgia.
CREATE TABLE member (member_id VARCHAR, Hometown VARCHAR); CREATE TABLE branch (name VARCHAR, branch_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, member_id VARCHAR)
SELECT COUNT(*) > 0 FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 83499) AND DATETIME(labevents.charttime) >= DATETIME(CURRENT_TIME(), '-1 year')
has patient 83499 gone through any lab test since 1 year ago?
CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, ...
SELECT high_points FROM table_17355408_7 WHERE team = "@ Chicago"
@ Chicago had a high points of what?
CREATE TABLE table_17355408_7 (high_points VARCHAR, team VARCHAR)
SELECT card_number FROM member WHERE Hometown LIKE "%Kentucky%"
list the card number of all members whose hometown address includes word "Kentucky".
CREATE TABLE member (card_number VARCHAR, Hometown VARCHAR)
SELECT Destruction_Authorised_by_Employee_ID, COUNT(*) FROM Documents_to_be_Destroyed GROUP BY Destruction_Authorised_by_Employee_ID
Return a scatter chart on what are the id of each employee and the number of document destruction authorised by that employee?
CREATE TABLE Ref_Document_Types ( Document_Type_Code CHAR(15), Document_Type_Name VARCHAR(255), Document_Type_Description VARCHAR(255) ) CREATE TABLE Employees ( Employee_ID INTEGER, Role_Code CHAR(15), Employee_Name VARCHAR(255), Gender_MFU CHAR(1), Date_of_Birth DATETIME, Other_De...
SELECT record FROM table_17355408_7 WHERE high_assists = "Carmelo Anthony (11)"
High assists belonging to Carmelo Anthony (11) have a record of what?
CREATE TABLE table_17355408_7 (record VARCHAR, high_assists VARCHAR)
SELECT COUNT(*) FROM STUDENT
Find the number of students in total.
CREATE TABLE STUDENT (Id VARCHAR)
SELECT "Date" FROM table_22647 WHERE "Opponent" = 'New England Patriots'
What is the date when the opponent is the New England Patriots?
CREATE TABLE table_22647 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Dolphins points" real, "Opponents" real, "Record" text, "Attendance" real )
SELECT high_assists FROM table_17355628_10 WHERE date = "April 8"
Name the high assists for april 8
CREATE TABLE table_17355628_10 (high_assists VARCHAR, date VARCHAR)
SELECT COUNT(*) FROM VOTING_RECORD
Find the number of voting records in total.
CREATE TABLE VOTING_RECORD (Id VARCHAR)
SELECT year FROM table_name_69 WHERE hungarian_top_40_album_charts = "3"
What year had the Hungarian top 40 album charts of 3?
CREATE TABLE table_name_69 ( year VARCHAR, hungarian_top_40_album_charts VARCHAR )
SELECT score FROM table_17355628_10 WHERE team = "Charlotte"
Name the score for charlotte
CREATE TABLE table_17355628_10 (score VARCHAR, team VARCHAR)
SELECT COUNT(DISTINCT President_Vote) FROM VOTING_RECORD
Find the distinct number of president votes.
CREATE TABLE VOTING_RECORD (President_Vote VARCHAR)
SELECT COUNT("Canadian Viewers (millions)") FROM table_3359 WHERE "Directed by" = 'Yannick Bisson'
If the director is Yannick Bisson, what was the Canadian amount of viewers?
CREATE TABLE table_3359 ( "Total" real, "#" real, "Title" text, "Directed by" text, "Written by" text, "Canadian air date" text, "UK air date" text, "Canadian Viewers (millions)" text )
SELECT location_attendance FROM table_17355628_10 WHERE high_assists = "Chucky Atkins , Russell Westbrook (4)"
Name the location attendance for chucky atkins , russell westbrook (4)
CREATE TABLE table_17355628_10 (location_attendance VARCHAR, high_assists VARCHAR)
SELECT MAX(Age) FROM STUDENT
Find the maximum age of all the students.
CREATE TABLE STUDENT (Age INTEGER)
SELECT MAX(withdrawn) FROM table_20391799_1 WHERE ltsr_no = 37
Name the most withdrawn for 37 lstr no.
CREATE TABLE table_20391799_1 ( withdrawn INTEGER, ltsr_no VARCHAR )
SELECT MAX(series__number) FROM table_17355579_1 WHERE directed_by = "Richard Thorpe" AND written_by = "Dee Johnson"
Name the series number directed by richard thorpe written by dee johnson
CREATE TABLE table_17355579_1 (series__number INTEGER, directed_by VARCHAR, written_by VARCHAR)
SELECT LName FROM STUDENT WHERE Major = 50
Find the last names of students with major 50.
CREATE TABLE STUDENT (LName VARCHAR, Major VARCHAR)
SELECT MAX(top_25) FROM table_name_17 WHERE top_10 > 9 AND events < 29
What is the highest top-25 with more than 9 top-10 but less than 29 events?
CREATE TABLE table_name_17 ( top_25 INTEGER, top_10 VARCHAR, events VARCHAR )
SELECT team FROM table_17355716_5 WHERE date = "November 17"
Name the team where the date is november 17
CREATE TABLE table_17355716_5 (team VARCHAR, date VARCHAR)
SELECT Fname FROM STUDENT WHERE Age > 22
Find the first names of students with age above 22.
CREATE TABLE STUDENT (Fname VARCHAR, Age INTEGER)
SELECT free AS polite FROM table_name_13 WHERE genitive_1 = * = ku
Which Free polite has a Genitive 1 of *=ku?
CREATE TABLE table_name_13 ( free VARCHAR, ku VARCHAR, genitive_1 VARCHAR )
SELECT team FROM table_17355716_5 WHERE date = "November 5"
Name the team for november 5
CREATE TABLE table_17355716_5 (team VARCHAR, date VARCHAR)
SELECT Major FROM STUDENT WHERE Sex = "M"
What are the majors of male (sex is M) students?
CREATE TABLE STUDENT (Major VARCHAR, Sex VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND date_day.day_number = 24 AND date_day.month_number = 5 AN...
please give me the flights from BOSTON to PITTSBURGH on thursday of next week
CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service...
SELECT MAX(series__number) FROM table_17356106_1 WHERE directed_by = "Laura Innes" AND season__number < 7.0
What is the maximum series number what is smaller than season 7.0 and directed by Laura Innes?
CREATE TABLE table_17356106_1 (series__number INTEGER, directed_by VARCHAR, season__number VARCHAR)
SELECT AVG(Age) FROM STUDENT WHERE Sex = "F"
What is the average age of female (sex is F) students?
CREATE TABLE STUDENT (Age INTEGER, Sex VARCHAR)
SELECT MIN("Not Outs") FROM table_10915 WHERE "Innings" > '25'
What is the lowest number of Not Outs when there were more than 25 innings?
CREATE TABLE table_10915 ( "Matches" real, "Innings" real, "Not Outs" real, "Runs" real, "Average" real )
SELECT MAX(series__number) FROM table_17356106_1 WHERE directed_by = "Arthur Albert"
If Arthur Albert is the director, what is the maximum series number?
CREATE TABLE table_17356106_1 (series__number INTEGER, directed_by VARCHAR)