answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT surface FROM table_22597626_2 WHERE partner = "Fleming" AND opponents_in_the_final = "Hewitt McMillan" | If the opponents in the final is Hewitt McMillan and the partner is Fleming, what is the surface? | CREATE TABLE table_22597626_2 (surface VARCHAR, partner VARCHAR, opponents_in_the_final VARCHAR) |
SELECT SUM("Bronze") FROM table_60198 WHERE "Rank" = '5' AND "Nation" = 'poland' AND "Gold" < '0' | what is the sum of bronze when the rank is 5, the nation is poland and gold is less than 0? | CREATE TABLE table_60198 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT high_rebounds FROM table_23286112_12 WHERE game = 2 | Who had the highest rebounds in game 2? | CREATE TABLE table_23286112_12 (high_rebounds VARCHAR, game VARCHAR) |
SELECT score_in_the_final FROM table_22597626_2 WHERE partner = "Woodforde" | What is the final score if the partner is Woodforde? | CREATE TABLE table_22597626_2 (score_in_the_final VARCHAR, partner VARCHAR) |
SELECT r.Score AS rRep, q.Score AS qRep, 'http://scifi.stackexchange.com/a/' + CAST(r.Id AS TEXT) + '/4918|' + q.Title AS link, q.Tags AS tags, COALESCE(r.LastEditDate, r.CreationDate) AS rDate FROM Posts AS r, Posts AS q WHERE q.Id = r.ParentId AND r.PostTypeId = 2 AND r.Score < -10 ORDER BY rRep | Answers with the lowest score. | CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
... |
SELECT date FROM table_23286112_12 WHERE series = "0-2" | What date was the series 0-2? | CREATE TABLE table_23286112_12 (date VARCHAR, series VARCHAR) |
SELECT MIN(year) FROM table_22597626_2 WHERE outcome = "Runner-up" AND championship = "US Open" | In the US Open championship and the outcome is runner-up, what is the minimum year? | CREATE TABLE table_22597626_2 (year INTEGER, outcome VARCHAR, championship VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "23" AND procedures.icd9_code = "3606" | what is the number of patients whose days of hospital stay is greater than 23 and procedure icd9 code is 3606? | CREATE TABLE procedures (
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
)
... |
SELECT series FROM table_23286112_12 WHERE date = "April 18" | Which series were played on April 18? | CREATE TABLE table_23286112_12 (series VARCHAR, date VARCHAR) |
SELECT surface FROM table_22597626_2 WHERE opponents_in_the_final = "Hewitt McMillan" | What is the surface made of if the opponent in the final is Hewitt McMillan? | CREATE TABLE table_22597626_2 (surface VARCHAR, opponents_in_the_final VARCHAR) |
SELECT 2009 FROM table_name_86 WHERE tournament = "french open" | What is the value in 2009 at the French Open? | CREATE TABLE table_name_86 (
tournament VARCHAR
) |
SELECT series FROM table_23286158_11 WHERE high_rebounds = "Marcus Camby (11)" | What series had high rebounds with Marcus Camby (11)? | CREATE TABLE table_23286158_11 (series VARCHAR, high_rebounds VARCHAR) |
SELECT surface FROM table_22597626_2 WHERE championship = "US Open" AND year = 1979 | What is the surface made of if the year is 1979 and the championship is US Open? | CREATE TABLE table_22597626_2 (surface VARCHAR, championship VARCHAR, year VARCHAR) |
SELECT "Teams" FROM table_13059 WHERE "Home" = '5-0' | What teams has a home of 5-0? | CREATE TABLE table_13059 (
"Season" text,
"League" text,
"Teams" text,
"Home" text,
"Away" text
) |
SELECT series FROM table_23286158_11 WHERE game = 5 | What was the series where the game was 5? | CREATE TABLE table_23286158_11 (series VARCHAR, game VARCHAR) |
SELECT ticket___office FROM table_22607062_1 WHERE secretary_of_state = "Orville Preston" | Name the ticket/office for orville preston | CREATE TABLE table_22607062_1 (ticket___office VARCHAR, secretary_of_state VARCHAR) |
SELECT FIRST_NAME, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY MANAGER_ID | For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a bar chart about the distribution of first_name and manager_id , and display in asc by the Y-axis please. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
CO... |
SELECT score FROM table_23286158_11 WHERE high_points = "Andre Miller (31)" | What is the score when high points were Andre Miller (31)? | CREATE TABLE table_23286158_11 (score VARCHAR, high_points VARCHAR) |
SELECT comptroller FROM table_22607062_1 WHERE ticket___office = "Republican" | Name the comptroller for republican | CREATE TABLE table_22607062_1 (comptroller VARCHAR, ticket___office VARCHAR) |
SELECT genre FROM table_name_14 WHERE game = "mass effect" | What is the genre of the Mass Effect game? | CREATE TABLE table_name_14 (
genre VARCHAR,
game VARCHAR
) |
SELECT score FROM table_23286158_11 WHERE game = 3 | What is the score in game 3? | CREATE TABLE table_23286158_11 (score VARCHAR, game VARCHAR) |
SELECT comptroller FROM table_22607062_1 WHERE ticket___office = "Prohibition" | Name the comptroller for office of prohibition | CREATE TABLE table_22607062_1 (comptroller VARCHAR, ticket___office VARCHAR) |
SELECT "representative" FROM table_204_145 WHERE "representative" IN ('sala burton', 'harold earthman') ORDER BY "date of death" LIMIT 1 | who died first : sala burton or harold earthman ? | CREATE TABLE table_204_145 (
id number,
"representative" text,
"state" text,
"district(s)" text,
"served" text,
"party" text,
"date of birth" text,
"date of death" text,
"age" text
) |
SELECT high_assists FROM table_23286158_10 WHERE high_rebounds = "Marcus Camby (15)" | When marcus camby (15) has the highest amount of rebounds who has the highest amount of assists? | CREATE TABLE table_23286158_10 (high_assists VARCHAR, high_rebounds VARCHAR) |
SELECT replaced_by FROM table_22640051_3 WHERE date_of_appointment = "8 July 2009" | Name the replaced by for 8 july 2009 | CREATE TABLE table_22640051_3 (replaced_by VARCHAR, date_of_appointment VARCHAR) |
SELECT Id AS "comment_link", Score FROM Comments WHERE UserId = @UserId | My comment score per comment. | CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
U... |
SELECT high_points FROM table_23286158_10 WHERE record = "48-30" | When 48-30 is the record who has the highest amount of points? | CREATE TABLE table_23286158_10 (high_points VARCHAR, record VARCHAR) |
SELECT COUNT(replaced_by) FROM table_22640051_3 WHERE date_of_appointment = "13 June 2009" | Name the total number of replaced by for 13 june 2009 | CREATE TABLE table_22640051_3 (replaced_by VARCHAR, date_of_appointment VARCHAR) |
SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 85027) AND STRFTIME('%y', procedures_icd.charttime) >= '2105' ORDER BY procedures_icd.charttime DESC LIMIT 1 | when has patient 85027 last received a procedure since 2105? | 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 labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
chart... |
SELECT COUNT(location_attendance) FROM table_23286158_10 WHERE high_assists = "Brandon Roy (6)" AND game = 78 | When 78 is the game and brandon roy (6) has the highest amount of assists how many locations/attendances are there? | CREATE TABLE table_23286158_10 (location_attendance VARCHAR, high_assists VARCHAR, game VARCHAR) |
SELECT date_of_vacancy FROM table_22640051_3 WHERE outgoing_manager = "Manuel Pellegrini" | Name the date of vacancy for manuel pellegrini | CREATE TABLE table_22640051_3 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR) |
SELECT "Date" FROM table_8037 WHERE "Record" = '9-14' | On what date did the Cavaliers have a record of 9-14? | CREATE TABLE table_8037 (
"Date" text,
"H/A/N" text,
"Opponent" text,
"Score" text,
"Record" text
) |
SELECT date FROM table_23286158_10 WHERE high_rebounds = "Marcus Camby (15)" | When marcus camby (15) has the highest amount of rebounds what is the date? | CREATE TABLE table_23286158_10 (date VARCHAR, high_rebounds VARCHAR) |
SELECT free_dance__fd_ FROM table_22644589_4 WHERE compulsory_dance__cd_ = "15.99" | What was the free dance score in the event where compulsory dance score was 15.99? | CREATE TABLE table_22644589_4 (free_dance__fd_ VARCHAR, compulsory_dance__cd_ VARCHAR) |
SELECT week_8_oct_26 FROM table_name_1 WHERE week_12_nov_23 = "georgia tech (8-2)" | What is the week 8 Oct 26 standing with georgia tech (8-2) on week 12 Nov 23? | CREATE TABLE table_name_1 (
week_8_oct_26 VARCHAR,
week_12_nov_23 VARCHAR
) |
SELECT date FROM table_23286158_7 WHERE team = "Cleveland" | When did the Portland Trail Blazers play against Cleveland? | CREATE TABLE table_23286158_7 (date VARCHAR, team VARCHAR) |
SELECT COUNT(original_dance__od_) FROM table_22644589_4 WHERE compulsory_dance__cd_ = "20.03" | How many original dance scores are listed in the event where the compulsory dance was 20.03? | CREATE TABLE table_22644589_4 (original_dance__od_ VARCHAR, compulsory_dance__cd_ VARCHAR) |
SELECT "score" FROM table_203_689 WHERE "date" = 'may 25' | what was the number of baskets houston scored on may 25th ? | CREATE TABLE table_203_689 (
id number,
"date" text,
"opponent" text,
"score" text,
"result" text,
"record" text
) |
SELECT COUNT(title) FROM table_23287683_1 WHERE directed_by = "Sarah Pia Anderson" | How many episodes were directed by Sarah Pia Anderson? | CREATE TABLE table_23287683_1 (title VARCHAR, directed_by VARCHAR) |
SELECT event FROM table_22644589_4 WHERE compulsory_dance__cd_ = "23.75" | In what even was the compulsory dance scored 23.75? | CREATE TABLE table_22644589_4 (event VARCHAR, compulsory_dance__cd_ VARCHAR) |
SELECT date_address_to, AVG(monthly_rental) FROM Student_Addresses GROUP BY other_details ORDER BY monthly_rental DESC | Visualize a bar chart about the distribution of date_address_to and the average of monthly_rental , and group by attribute other_details and bin date_address_to by time. | CREATE TABLE Behavior_Incident (
incident_id INTEGER,
incident_type_code VARCHAR(10),
student_id INTEGER,
date_incident_start DATETIME,
date_incident_end DATETIME,
incident_summary VARCHAR(255),
recommendations VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Teachers (
teach... |
SELECT season__number FROM table_23287683_1 WHERE production_code = "5M21" | List all season numbers with production codes of 5m21. | CREATE TABLE table_23287683_1 (season__number VARCHAR, production_code VARCHAR) |
SELECT event FROM table_22644589_4 WHERE compulsory_dance__cd_ = "28.12" | In what event was the compulsory dance score 28.12? | CREATE TABLE table_22644589_4 (event VARCHAR, compulsory_dance__cd_ VARCHAR) |
SELECT season FROM table_name_95 WHERE away_result = "1-2" | Away result of 1-2 has what season? | CREATE TABLE table_name_95 (
season VARCHAR,
away_result VARCHAR
) |
SELECT COUNT(title) FROM table_23287683_1 WHERE series__number = 95 | How many episodes had a series number of 95? | CREATE TABLE table_23287683_1 (title VARCHAR, series__number VARCHAR) |
SELECT year FROM table_22654139_3 WHERE reporters = "Lesley Visser and Robin Roberts" | What is every year when the reporters were Lesley Visser and Robin Roberts? | CREATE TABLE table_22654139_3 (year VARCHAR, reporters VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "6" AND procedures.long_title = "(Aorto)coronary bypass of two coronary arteries" | what is the number of patients whose days of hospital stay is greater than 6 and procedure long title is (aorto)coronary bypass of two coronary arteries? | 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(season__number) FROM table_23286722_1 WHERE production_code = "3M17" | Name the total number of season for production code 3m17 | CREATE TABLE table_23286722_1 (season__number VARCHAR, production_code VARCHAR) |
SELECT MAX(year) FROM table_22654139_3 WHERE reporters = "Lesley Visser and Robin Roberts" | What is the latest year with reporters Lesley Visser and Robin Roberts? | CREATE TABLE table_22654139_3 (year INTEGER, reporters VARCHAR) |
SELECT DATEADD(mm, (YEAR(Posts.CreationDate) - 1900) * 12 + MONTH(Posts.CreationDate) - 1, 0) AS Month, Tags.TagName, COUNT(*) AS Questions FROM Tags LEFT JOIN PostTags ON PostTags.TagId = Tags.Id LEFT JOIN Posts ON Posts.Id = PostTags.PostId LEFT JOIN PostTypes ON PostTypes.Id = Posts.PostTypeId WHERE Tags.TagName IN ... | Language Trends (# Questions per Tag per Month). | 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 PostHistoryTypes (
Id number,
Name te... |
SELECT directed_by FROM table_23286722_1 WHERE season__number = 2 | Name the directed by season # 2 | CREATE TABLE table_23286722_1 (directed_by VARCHAR, season__number VARCHAR) |
SELECT driver FROM table_2266762_1 WHERE team = "Richard Childress Racing" AND race_time = "2:58:22" | Who was the driver for the Richard Childress Racing team in the race with a time of 2:58:22? | CREATE TABLE table_2266762_1 (driver VARCHAR, team VARCHAR, race_time VARCHAR) |
SELECT score FROM table_name_53 WHERE runner_up = "goran ivanišević" AND tournament = "algarve" | what was the score when goran ivani evi was runner up and the tournament was in algarve? | CREATE TABLE table_name_53 (
score VARCHAR,
runner_up VARCHAR,
tournament VARCHAR
) |
SELECT MIN(series__number) FROM table_23286722_1 WHERE written_by = "David E. Kelley & Jill Goldsmith" | Name least series number for writers david e. kelley & jill goldsmith | CREATE TABLE table_23286722_1 (series__number INTEGER, written_by VARCHAR) |
SELECT COUNT(date) FROM table_2266762_1 WHERE average_speed__mph_ = "91.033" | On how many dates was the average speed of the race 91.033 MPH? | CREATE TABLE table_2266762_1 (date VARCHAR, average_speed__mph_ VARCHAR) |
SELECT COUNT(*) FROM bank | How many bank branches are there? | CREATE TABLE bank (
branch_id number,
bname text,
no_of_customers number,
city text,
state text
)
CREATE TABLE customer (
cust_id text,
cust_name text,
acc_type text,
acc_bal number,
no_of_loans number,
credit_score number,
branch_id number,
state text
)
CREATE TABL... |
SELECT COUNT(first_broadcast) FROM table_23292220_13 WHERE episode = "12x03" | How many episodes are numbered 12x03? | CREATE TABLE table_23292220_13 (first_broadcast VARCHAR, episode VARCHAR) |
SELECT driver FROM table_2266762_1 WHERE race_time = "3:04:09" | Who was the winning driver in the race that was 3:04:09 long? | CREATE TABLE table_2266762_1 (driver VARCHAR, race_time VARCHAR) |
SELECT demographic.expire_flag, demographic.admittime FROM demographic WHERE demographic.subject_id = "17570" | what is death status and admission time of subject id 17570? | 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 diagnoses (
... |
SELECT jons_team FROM table_23292220_13 WHERE seans_team = "Matthew Crosby and Kimberly Wyatt" | Who was on Jon's team when Sean's team had Matthew Crosby and Kimberly Wyatt? | CREATE TABLE table_23292220_13 (jons_team VARCHAR, seans_team VARCHAR) |
SELECT team FROM table_22669044_10 WHERE high_points = "Hakim Warrick (14)" | Who was the opponent in the game in which Hakim Warrick (14) did the most high points? | CREATE TABLE table_22669044_10 (team VARCHAR, high_points VARCHAR) |
SELECT SUM(production_number) FROM table_name_33 WHERE title = "from hare to heir" | What is the production number of From Hare to Heir? | CREATE TABLE table_name_33 (
production_number INTEGER,
title VARCHAR
) |
SELECT episode FROM table_23292220_13 WHERE seans_team = "Jack Dee and Stacey Solomon" | What was the episode that had Jack Dee and Stacey Solomon on Sean's team? | CREATE TABLE table_23292220_13 (episode VARCHAR, seans_team VARCHAR) |
SELECT record FROM table_22669044_10 WHERE high_rebounds = "Brad Miller (7)" | What's the record in the game in which Brad Miller (7) did the high rebounds? | CREATE TABLE table_22669044_10 (record VARCHAR, high_rebounds VARCHAR) |
SELECT "Party" FROM table_74010 WHERE "Incumbent" = 'John Randolph Redistricted from the 15th district' | Name the party for john randolph redistricted from the 15th district | CREATE TABLE table_74010 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) |
SELECT scores FROM table_23292220_13 WHERE seans_team = "Louie Spence and Joe Wilkinson" | What was the score in the episode that had Louie Spence and Joe Wilkinson on Sean's team? | CREATE TABLE table_23292220_13 (scores VARCHAR, seans_team VARCHAR) |
SELECT score FROM table_22669044_10 WHERE record = "31-29" | What's the score of the game with 31-29 record? | CREATE TABLE table_22669044_10 (score VARCHAR, record VARCHAR) |
SELECT result FROM table_name_88 WHERE date = "september 14, 2008" | What was the score of the game on September 14, 2008? | CREATE TABLE table_name_88 (
result VARCHAR,
date VARCHAR
) |
SELECT scores FROM table_23292220_13 WHERE seans_team = "Russell Kane and Louise Redknapp" | What was the score on the episode that had Russell Kane and Louise Redknapp on Sean's team? | CREATE TABLE table_23292220_13 (scores VARCHAR, seans_team VARCHAR) |
SELECT country FROM table_22667773_8 WHERE name = "Gerrard" | Name the country for gerrard | CREATE TABLE table_22667773_8 (country VARCHAR, name VARCHAR) |
SELECT date_claim_made, date_claim_settled FROM settlements | Tell me the the claim date and settlement date for each settlement case. | CREATE TABLE payments (
payment_id number,
settlement_id number,
payment_method_code text,
date_payment_made time,
amount_payment number
)
CREATE TABLE customer_policies (
policy_id number,
customer_id number,
policy_type_code text,
start_date time,
end_date time
)
CREATE TABLE... |
SELECT episode FROM table_23292220_3 WHERE seans_team = "Krishnan Guru-Murthy and Vic Reeves" | In which episode is Sean's team made up of Krishnan Guru-Murthy and Vic Reeves? | CREATE TABLE table_23292220_3 (episode VARCHAR, seans_team VARCHAR) |
SELECT COUnT AS eu FROM table_22667773_8 WHERE name = "Quinn" | Name the total number of eu for quinn | CREATE TABLE table_22667773_8 (COUnT VARCHAR, name VARCHAR) |
SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | For those employees who did not have any job in the past, return a bar chart about the distribution of hire_date and the sum of department_id bin hire_date by time. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varcha... |
SELECT first_broadcast FROM table_23292220_3 WHERE daves_team = "Dave Johns and Sally Lindsay" | What is the first broadcast date of the episode in which Dave's team is made up of Dave Johns and Sally Lindsay? | CREATE TABLE table_23292220_3 (first_broadcast VARCHAR, daves_team VARCHAR) |
SELECT team FROM table_22669044_8 WHERE score = "W 115–104 (OT)" | Name the team for w 115–104 (ot) | CREATE TABLE table_22669044_8 (team VARCHAR, score VARCHAR) |
SELECT "Team Name" FROM table_58761 WHERE "Schools" = 'goreville vienna' | What is the name of the team from goreville vienna school? | CREATE TABLE table_58761 (
"Team Name" text,
"Schools" text,
"Sports" text,
"Host" text,
"Nickname(s)" text,
"Colors" text,
"Enrollment (2013/14)" real
) |
SELECT first_broadcast FROM table_23292220_3 WHERE seans_team = "Peter Serafinowicz and Johnny Vegas" | What was the first broadcast date of the episode in which Sean's team is made up of Peter Serafinowicz and Johnny Vegas? | CREATE TABLE table_23292220_3 (first_broadcast VARCHAR, seans_team VARCHAR) |
SELECT COUNT(record) FROM table_22669044_8 WHERE location_attendance = "United Center 18,838" | Name the number of record for united center 18,838 | CREATE TABLE table_22669044_8 (record VARCHAR, location_attendance VARCHAR) |
SELECT t3.district_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.type = "City Mall" INTERSECT SELECT t3.district_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_... | Find the names of districts where have both city mall and village store type stores. | CREATE TABLE product (
product_id number,
product text,
dimensions text,
dpi number,
pages_per_minute_color number,
max_page_size text,
interface text
)
CREATE TABLE store (
store_id number,
store_name text,
type text,
area_size number,
number_of_product_category number,... |
SELECT COUNT(episode) FROM table_23292220_3 WHERE daves_team = "David Walliams and Louis Walsh" | In how many episodes was Dave's team made up of David Walliams and Louis Walsh? | CREATE TABLE table_23292220_3 (episode VARCHAR, daves_team VARCHAR) |
SELECT team FROM table_22669044_9 WHERE location_attendance = "United Center 22,147" | Name the team for united center 22,147 | CREATE TABLE table_22669044_9 (team VARCHAR, location_attendance VARCHAR) |
SELECT num.TagName AS Tag, ROW_NUMBER() OVER (ORDER BY rate.Rate DESC) AS TimePeriodRank, ROW_NUMBER() OVER (ORDER BY num.Num DESC) AS TotalRank, rate.Rate AS TimePeriodQuestions, num.Num AS QuestionsTotal FROM (SELECT COUNT(PostId) AS Rate, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id... | Most popular StackOverflow tags in time range. | CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABL... |
SELECT episode FROM table_23292220_4 WHERE daves_team = "Boy George and Lee Mack" | Which episode has boy george and lee mack on dave's team? | CREATE TABLE table_23292220_4 (episode VARCHAR, daves_team VARCHAR) |
SELECT high_rebounds FROM table_22669044_9 WHERE team = "New York" | Name the high rebounds for new york | CREATE TABLE table_22669044_9 (high_rebounds VARCHAR, team VARCHAR) |
SELECT "Title" FROM table_23052 WHERE "Written by" = 'Vanessa Bates' | What is the title of the episode written by Vanessa Bates? | CREATE TABLE table_23052 (
"Series #" real,
"Episode #" real,
"Title" text,
"Written by" text,
"Directed by" text,
"Viewers" real,
"Original airdate" text
) |
SELECT COUNT(daves_team) FROM table_23292220_4 WHERE first_broadcast = "27 October 2006" | How many daves team entries are there on 27 october 2006? | CREATE TABLE table_23292220_4 (daves_team VARCHAR, first_broadcast VARCHAR) |
SELECT COUNT(high_rebounds) FROM table_22669044_9 WHERE location_attendance = "United Center 19,335" | Name the number of high rebounds for united center 19,335 | CREATE TABLE table_22669044_9 (high_rebounds VARCHAR, location_attendance VARCHAR) |
SELECT home FROM table_name_31 WHERE season = "1948-49" | For the 1948-49 season, what was the At Home record? | CREATE TABLE table_name_31 (
home VARCHAR,
season VARCHAR
) |
SELECT episode FROM table_23292220_4 WHERE seans_team = "Ulrika Jonsson and Michael McIntyre" | Which episode has ulrika jonsson and michael mcintyre on sean's team? | CREATE TABLE table_23292220_4 (episode VARCHAR, seans_team VARCHAR) |
SELECT team FROM table_22669044_9 WHERE high_assists = "Kirk Hinrich , Derrick Rose , John Salmons (6)" | Name the team for kirk hinrich , derrick rose , john salmons (6) | CREATE TABLE table_22669044_9 (team VARCHAR, high_assists VARCHAR) |
SELECT "Date" FROM table_64403 WHERE "Attendance" > '16,186' AND "Points" < '52' AND "Record" = '21–16–9' | Which Date has an Attendance larger than 16,186, and Points smaller than 52, and a Record of 21 16 9? | CREATE TABLE table_64403 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text,
"Arena" text,
"Points" real
) |
SELECT scores FROM table_23292220_4 WHERE seans_team = "John Barrowman and Vic Reeves" | What was the score in the episode with john barrowman and vic reeves on sean's team? | CREATE TABLE table_23292220_4 (scores VARCHAR, seans_team VARCHAR) |
SELECT high_points FROM table_22669044_9 WHERE record = "31-27" | Name the high points 31-27 | CREATE TABLE table_22669044_9 (high_points VARCHAR, record VARCHAR) |
SELECT club FROM table_13564702_3 WHERE tries_for = "83" | Name the club when tries for is 83 | CREATE TABLE table_13564702_3 (
club VARCHAR,
tries_for VARCHAR
) |
SELECT first_broadcast FROM table_23292220_4 WHERE episode = "4x03" | What was the first broadcast date of episode 4x03? | CREATE TABLE table_23292220_4 (first_broadcast VARCHAR, episode VARCHAR) |
SELECT location FROM table_22670216_1 WHERE winning_driver = "Bill Vukovich II" | What is the location is the winning driver is Bill Vukovich II? | CREATE TABLE table_22670216_1 (location VARCHAR, winning_driver VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "AORTIC INSUFFICIENCY\RE-DO STERNOTOMY; AORTIC VALVE REPLACEMENT " AND demographic.admityear < "2182" | how many patients admitted before year 2182 had the primary disease aortic insufficiency\re-do sternotomy; aortic valve replacement? | 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 diagnoses (
... |
SELECT first_broadcast FROM table_23292220_5 WHERE jasons_team = "Trisha Goddard and Glenn Wool" | Name the first broadcast for trisha goddard and glenn wool | CREATE TABLE table_23292220_5 (first_broadcast VARCHAR, jasons_team VARCHAR) |
SELECT location FROM table_22670216_1 WHERE winning_driver = "Wally Dallenbach" AND track = "Wisconsin State Fair Park Speedway" | If the track is the Wisconsin State Fair Park Speedway and the winning driver is Wally Dallenbach, what was the location? | CREATE TABLE table_22670216_1 (location VARCHAR, winning_driver VARCHAR, track VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.