answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT COUNT(record) FROM table_14966537_1 WHERE opponent = "Chicago Bears" | How many games were played against the Chicago Bears? | CREATE TABLE table_14966537_1 (record VARCHAR, opponent VARCHAR) |
SELECT weekly_rank FROM table_11753080_2 WHERE _number = 4 | What is the weekly rank where the number is 4? | CREATE TABLE table_11753080_2 (
weekly_rank VARCHAR,
_number VARCHAR
) |
SELECT SUM(gold) FROM table_name_73 WHERE bronze = 0 AND total < 1 | When the Total is less than 1, and Bronze is 0, how many Gold medals are there? | CREATE TABLE table_name_73 (gold INTEGER, bronze VARCHAR, total VARCHAR) |
SELECT result FROM table_14966537_1 WHERE opponent = "Chicago Bears" | What is the result of the game against the Chicago Bears? | CREATE TABLE table_14966537_1 (result VARCHAR, opponent VARCHAR) |
SELECT "Median income" FROM table_72617 WHERE "Age band" = 'Under 20' | Name the median income for age band being under 20 | CREATE TABLE table_72617 (
"Age band" text,
"Median income" text,
"Mean income" text,
"Median income (men)" text,
"Mean income (men)" text,
"Median income (women)" text,
"Mean income (women)" text
) |
SELECT COUNT(rank) FROM table_name_63 WHERE nation = "germany" AND total > 2 | What is the Rank of the Nation of Germany when the Total is more than 2? | CREATE TABLE table_name_63 (rank VARCHAR, nation VARCHAR, total VARCHAR) |
SELECT result FROM table_14966537_1 WHERE date = "October 4, 1970" | What was the final score of the game on October 4, 1970? | CREATE TABLE table_14966537_1 (result VARCHAR, date VARCHAR) |
SELECT movie.title FROM actor AS ACTOR_0, actor AS ACTOR_1, cast AS CAST_0, cast AS CAST_1, movie WHERE ACTOR_0.name = 'Benedict Cumberbatch' AND ACTOR_1.name = 'Keira Knightley' AND CAST_0.aid = ACTOR_0.aid AND CAST_1.aid = ACTOR_1.aid AND movie.mid = CAST_0.msid AND movie.mid = CAST_1.msid | Find all movies featuring ' Benedict Cumberbatch ' and ' Keira Knightley | CREATE TABLE written_by (
id int,
msid int,
wid int
)
CREATE TABLE keyword (
id int,
keyword text
)
CREATE TABLE cast (
id int,
msid int,
aid int,
role text
)
CREATE TABLE actor (
aid int,
gender text,
name text,
nationality text,
birth_city text,
birth_yea... |
SELECT MIN(bodyweight) FROM table_name_35 WHERE snatch > 117.5 | Which weightlifter with a snatch larger than 117.5 had the lowest bodyweight? | CREATE TABLE table_name_35 (bodyweight INTEGER, snatch INTEGER) |
SELECT opponent FROM table_14966537_1 WHERE date = "October 25, 1970" | Who was the team's opponent of October 25, 1970? | CREATE TABLE table_14966537_1 (opponent VARCHAR, date VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" | how many patients whose marital status is married and ethnicity is american indian/alaska native? | 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(total__kg_) FROM table_name_43 WHERE bodyweight < 136.16 AND clean_ & _jerk > 135 | Which weightlifter, who had a bodyweight of less than 136.16 and a clean and jerk larger than 135, had the highest Total? | CREATE TABLE table_name_43 (total__kg_ INTEGER, bodyweight VARCHAR, clean_ VARCHAR, _jerk VARCHAR) |
SELECT recopa_sudamericana_1998 FROM table_14962316_9 WHERE team = "Flamengo" | Did Flamengo play in the Recopa Sudamericana in 1998 | CREATE TABLE table_14962316_9 (recopa_sudamericana_1998 VARCHAR, team VARCHAR) |
SELECT part_2 FROM table_name_44 WHERE part_4 = "december 9, 2007" | When is Part 2, when Part 4 is on December 9, 2007? | CREATE TABLE table_name_44 (
part_2 VARCHAR,
part_4 VARCHAR
) |
SELECT MAX(total__kg_) FROM table_name_82 WHERE bodyweight > 136.16 | Of weightlifters who weighed more than 136.16, who had the highest Total? | CREATE TABLE table_name_82 (total__kg_ INTEGER, bodyweight INTEGER) |
SELECT copa_mercosur_1998 FROM table_14962316_9 WHERE team = "Cruzeiro" | What were Cruzeiro results in the Copa Mercosur in 1998 | CREATE TABLE table_14962316_9 (copa_mercosur_1998 VARCHAR, team VARCHAR) |
SELECT partner FROM table_name_23 WHERE year = "asian games" | What is the Partner during the Asian Games Year? | CREATE TABLE table_name_23 (
partner VARCHAR,
year VARCHAR
) |
SELECT AVG(clean_) & _jerk FROM table_name_94 WHERE bodyweight = 87.5 AND snatch < 95 | What was the average clean and jerk of all weightlifters who had a bodyweight smaller than 87.5 and a snatch of less than 95? | CREATE TABLE table_name_94 (_jerk VARCHAR, clean_ INTEGER, bodyweight VARCHAR, snatch VARCHAR) |
SELECT COUNT(location) FROM table_14976504_2 WHERE institution = "California Lutheran University" | Where is California Lutheran University located? | CREATE TABLE table_14976504_2 (location VARCHAR, institution VARCHAR) |
SELECT County, COUNT(County) FROM appellations GROUP BY County ORDER BY COUNT(County) DESC | List the number of counties of all appellations in a bar chart, and list by the Y-axis in descending. | CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TE... |
SELECT COUNT(clean_) & _jerk FROM table_name_8 WHERE total__kg_ = 200 AND snatch > 95 | What is the sum of the weight that all weightlifters managed to clean and jerk, among weightlifters who had a snatch of more than 95 and a Total of more than 200? | CREATE TABLE table_name_8 (_jerk VARCHAR, clean_ VARCHAR, total__kg_ VARCHAR, snatch VARCHAR) |
SELECT new_classification FROM table_14976504_2 WHERE institution = "University of Arizona" | What is the new classification for the University of Arizona Western in the Collegiate Lacrosse League? | CREATE TABLE table_14976504_2 (new_classification VARCHAR, institution VARCHAR) |
SELECT away_team AS score FROM table_name_5 WHERE away_team = "south melbourne" | What was South Melbourne's score when they played as the away team? | CREATE TABLE table_name_5 (
away_team VARCHAR
) |
SELECT kilometer_no__rizal_park_basis_ FROM table_name_92 WHERE kilometer_no__layac_basis_ = "25" | What kilometer (Rizal Park-basis) has a kilometer of 25? | CREATE TABLE table_name_92 (kilometer_no__rizal_park_basis_ VARCHAR, kilometer_no__layac_basis_ VARCHAR) |
SELECT new_conference FROM table_14976504_2 WHERE institution = "California State University, Hayward" | What is California State University, Hayward's new conference for Western Collegiate Lacrosse? | CREATE TABLE table_14976504_2 (new_conference VARCHAR, institution VARCHAR) |
SELECT AVG(pick__number) FROM table_name_11 WHERE league_from = "quebec major junior hockey league" AND player = "samuel carrier" | What is the average pick # from the Quebec Major Junior Hockey League player Samuel Carrier? | CREATE TABLE table_name_11 (
pick__number INTEGER,
league_from VARCHAR,
player VARCHAR
) |
SELECT barangay FROM table_name_66 WHERE exit = "sisiman toll barrier" | Which Barangay has an exit of Sisiman toll barrier? | CREATE TABLE table_name_66 (barangay VARCHAR, exit VARCHAR) |
SELECT new_conference FROM table_14976504_2 WHERE team_nickname = "Toreros" | Which new conference is the Toreros Western Collegiate Lacrosse team playing in? | CREATE TABLE table_14976504_2 (new_conference VARCHAR, team_nickname VARCHAR) |
SELECT MIN("Goal(s)") FROM table_30450 WHERE "Club(s)" = 'Ipswich Town' | How many goals did the player from Ipswich town score? | CREATE TABLE table_30450 (
"Player" text,
"Cap(s)" real,
"Goal(s)" real,
"International Debut" text,
"Club(s)" text
) |
SELECT kilometer_no__layac_basis_ FROM table_name_29 WHERE barangay = "general lim (capot)" | What kilometer (Layac-basis) has a Barangay of general lim (capot)? | CREATE TABLE table_name_29 (kilometer_no__layac_basis_ VARCHAR, barangay VARCHAR) |
SELECT result FROM table_14981555_3 WHERE venue = "Ascot (UK)" | In Ascot (UK), what was the result? | CREATE TABLE table_14981555_3 (result VARCHAR, venue VARCHAR) |
SELECT SUM("laps") FROM table_203_366 WHERE "team" IN ('ecurie savin-calberson', 'dana chevrolet inc') | what was the total number of laps for ecurie savin calberson and dana chevrolet inc. . ? | CREATE TABLE table_203_366 (
id number,
"pos" number,
"class" text,
"no" number,
"team" text,
"drivers" text,
"chassis" text,
"engine" text,
"laps" number
) |
SELECT municipality FROM table_name_42 WHERE barangay = "poblacion" | In which municipality is Barangay Poblacion? | CREATE TABLE table_name_42 (municipality VARCHAR, barangay VARCHAR) |
SELECT COUNT(jockey) FROM table_14981555_3 WHERE date = "17 Feb 2007" | How many different jockeys ran on 17 Feb 2007? | CREATE TABLE table_14981555_3 (jockey VARCHAR, date VARCHAR) |
SELECT title FROM table_10715317_2 WHERE directed_by = "Peter Markle" AND written_by = "Jerry Stahl" | What is the title of the episode directed by Peter Markle and written by Jerry Stahl? | CREATE TABLE table_10715317_2 (
title VARCHAR,
directed_by VARCHAR,
written_by VARCHAR
) |
SELECT exit FROM table_name_57 WHERE kilometer_no__rizal_park_basis_ = "164" | What is the exit at kilometer (Rizal Park-basis) 164? | CREATE TABLE table_name_57 (exit VARCHAR, kilometer_no__rizal_park_basis_ VARCHAR) |
SELECT venue FROM table_14981555_3 WHERE date = "10 Mar 2007" | How many venues were used on 10 Mar 2007? | CREATE TABLE table_14981555_3 (venue VARCHAR, date VARCHAR) |
SELECT demographic.gender, prescriptions.drug FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "2560" | what is gender and drug name of subject id 2560? | 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 competition FROM table_name_27 WHERE date = "23 february 1929" | What is the competition on 23 February 1929? | CREATE TABLE table_name_27 (competition VARCHAR, date VARCHAR) |
SELECT COUNT(jockey) FROM table_14981555_3 WHERE race = "Sir Rupert Clarke Stakes" | How many jockeys are listed running at the Sir Rupert Clarke Stakes? | CREATE TABLE table_14981555_3 (jockey VARCHAR, race VARCHAR) |
SELECT "Road Team" FROM table_77454 WHERE "Home Team" = 'rochester' AND "Game" = 'game 2' | Which Road Team has a Home Team of rochester, and a Game of game 2? | CREATE TABLE table_77454 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
) |
SELECT club_province FROM table_name_93 WHERE position = "wing" AND caps < 24 AND player = "sireli bobo" | What is the club/province of Sireli Bobo, who plays wing and has less than 24 caps? | CREATE TABLE table_name_93 (club_province VARCHAR, player VARCHAR, position VARCHAR, caps VARCHAR) |
SELECT COUNT(venue) FROM table_14981555_3 WHERE race = "Australia Stakes" | How many venues had a race called the Australia Stakes? | CREATE TABLE table_14981555_3 (venue VARCHAR, race VARCHAR) |
SELECT Tags, Title, AcceptedAnswerId, CreationDate, 'http://dba.stackexchange.com/questions/' + CAST(Id AS TEXT) AS URL FROM Posts WHERE Tags LIKE '%' + '##mainTag:string##' + '-%' AND NOT Tags LIKE '%<' + '##mainTag:string##' + '>%' ORDER BY CreationDate DESC | Questions with version-specific tag lacking the generic tag. Find questions that lack the generic tag while having a version-specific one. Suitable for retaggers :) | CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostFeedback (
Id number,
PostId numb... |
SELECT COUNT(caps) FROM table_name_40 WHERE position = "flanker" AND player = "aca ratuva" | What is the total number of Caps Aca Ratuva, a flanker, has? | CREATE TABLE table_name_40 (caps VARCHAR, position VARCHAR, player VARCHAR) |
SELECT venue FROM table_14981555_1 WHERE distance = "1400 m" | Where was the 1400 m held? | CREATE TABLE table_14981555_1 (venue VARCHAR, distance VARCHAR) |
SELECT MAX(league) AS Cup FROM table_name_95 WHERE fa_cup > 2 | What's the highest League Cup with an FA Cup thats larger than 2? | CREATE TABLE table_name_95 (
league INTEGER,
fa_cup INTEGER
) |
SELECT date_of_birth__age_ FROM table_name_45 WHERE player = "kameli ratuvou" | What is the date of birth of Kameli Ratuvou? | CREATE TABLE table_name_45 (date_of_birth__age_ VARCHAR, player VARCHAR) |
SELECT group FROM table_14981555_1 WHERE race = "3yo Hcp Restricted Maiden" | What is the group name when 3yo hcp restricted maiden was raced? | CREATE TABLE table_14981555_1 (group VARCHAR, race VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Thoracentesis" AND lab."CATEGORY" = "Hematology" | How many patients' procedure long title is thoracentesis and lab test category is hematology? | 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 date_of_birth__age_ FROM table_name_49 WHERE player = "henry qiodravu" | What is the date of birth of Henry Qiodravu? | CREATE TABLE table_name_49 (date_of_birth__age_ VARCHAR, player VARCHAR) |
SELECT date FROM table_14981555_1 WHERE weight__kg_ = "55" | When did the 55 kg participant race? | CREATE TABLE table_14981555_1 (date VARCHAR, weight__kg_ VARCHAR) |
SELECT Location, COUNT(Location) FROM station GROUP BY Location ORDER BY COUNT(Location) DESC | How many locations? Draw a bar chart, order by the Y from high to low. | CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
Main_Services text,
Number_of_Platforms int
)
CREATE TABLE train_station (
Train_ID int,
Station_ID int
)
CREATE TABLE train (
Train_ID ... |
SELECT MIN(total) FROM table_name_89 WHERE gold < 3 | What is the lowest medal total with less than 3 gold medals? | CREATE TABLE table_name_89 (total INTEGER, gold INTEGER) |
SELECT COUNT(week) FROM table_14984050_1 WHERE attendance = 50073 | Name the number of weeks for 50073 attendance | CREATE TABLE table_14984050_1 (week VARCHAR, attendance VARCHAR) |
SELECT Date_Payment_Made, SUM(Amount_Payment) FROM Payments ORDER BY Date_Payment_Made | Give me a bar chart that bins the payment date into the Year interval and then shows the total amount of each payment, and then sort the bars in ascending order of date. | CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment_Method_Code VARCHAR(255),
Date_Payment_Made DATE,
Amount_Payment INTEGER
)
CREATE TABLE Claims (
Claim_ID INTEGER,
Policy_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,... |
SELECT MIN(laps) FROM table_name_32 WHERE start = "21" | What's the lowest amount of laps with a start of 21? | CREATE TABLE table_name_32 (laps INTEGER, start VARCHAR) |
SELECT result FROM table_14984050_1 WHERE game_site = "Milwaukee County Stadium" | Name the result for milwaukee county stadium | CREATE TABLE table_14984050_1 (result VARCHAR, game_site VARCHAR) |
SELECT "Tie no" FROM table_63323 WHERE "Away team" = 'mansfield town' | What's the tie number when the away team was Mansfield Town? | CREATE TABLE table_63323 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) |
SELECT start FROM table_name_20 WHERE qual = "84.300" | What was the start of the competitor with a qualifying time of 84.300? | CREATE TABLE table_name_20 (start VARCHAR, qual VARCHAR) |
SELECT record FROM table_14984078_1 WHERE game_site = "Cleveland Municipal Stadium" | What was the record when the game was played at Cleveland Municipal Stadium? | CREATE TABLE table_14984078_1 (record VARCHAR, game_site VARCHAR) |
SELECT Date_of_Birth, Height FROM people ORDER BY Height DESC | Show me about the distribution of Date_of_Birth and Height in a bar chart, could you list by the Y-axis in descending? | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... |
SELECT year FROM table_name_38 WHERE laps > 200 | In what year were there more laps than 200 in a race? | CREATE TABLE table_name_38 (year VARCHAR, laps INTEGER) |
SELECT date FROM table_14984078_1 WHERE week = 13 | What was the game date in week 13? | CREATE TABLE table_14984078_1 (date VARCHAR, week VARCHAR) |
SELECT "Team" FROM table_5820 WHERE "Players" = 'amanda coetzer and marcos ondruska' | Players of amanda coetzer and marcos ondruska is what team? | CREATE TABLE table_5820 (
"Placing" real,
"Team" text,
"Players" text,
"Seeding" text,
"Playoffs W-L" text,
"Matches W-L" text
) |
SELECT current_version FROM table_name_38 WHERE license = "gpl v2" AND name = "project64" | what is the current version of the project64 with gpl v2 license? | CREATE TABLE table_name_38 (current_version VARCHAR, license VARCHAR, name VARCHAR) |
SELECT game_site FROM table_14984078_1 WHERE opponent = "Detroit Lions" | Where did the team play the Detroit Lions? | CREATE TABLE table_14984078_1 (game_site VARCHAR, opponent VARCHAR) |
SELECT T1.Name, AVG(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name ORDER BY AVG(T2.Speed) | Show the names of countries and the average speed of roller coasters from each country with a bar chart, display by the y-axis in asc. | CREATE TABLE country (
Country_ID int,
Name text,
Population int,
Area int,
Languages text
)
CREATE TABLE roller_coaster (
Roller_Coaster_ID int,
Name text,
Park text,
Country_ID int,
Length real,
Height real,
Speed text,
Opened text,
Status text
) |
SELECT current_version FROM table_name_97 WHERE license = "gpl v2" AND name = "mupen64plus" | what is the current version of the name mupen64plus with gpl v2 license? | CREATE TABLE table_name_97 (current_version VARCHAR, license VARCHAR, name VARCHAR) |
SELECT week FROM table_14984078_1 WHERE date = "December 2, 1962" | What week of the season did the date December 2, 1962 fall on? | CREATE TABLE table_14984078_1 (week VARCHAR, date VARCHAR) |
SELECT HIRE_DATE, SALARY FROM employees ORDER BY HIRE_DATE DESC | Can you draw the trend of salary over the hire date?, list from high to low by the x-axis. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
... |
SELECT current_version FROM table_name_77 WHERE license = "gpl v3" | what is the current version with license gpl v3? | CREATE TABLE table_name_77 (current_version VARCHAR, license VARCHAR) |
SELECT result FROM table_14984039_1 WHERE date = "October 14, 1956" | what is the result for October 14, 1956? | CREATE TABLE table_14984039_1 (result VARCHAR, date VARCHAR) |
SELECT venue FROM table_name_43 WHERE opponent = "staines town" | Name the venue for staines town | CREATE TABLE table_name_43 (
venue VARCHAR,
opponent VARCHAR
) |
SELECT leading_man FROM table_name_1 WHERE year < 1932 AND director = "archie mayo" | What leading man earlier than 1932 was directed by archie mayo? | CREATE TABLE table_name_1 (leading_man VARCHAR, year VARCHAR, director VARCHAR) |
SELECT game_site FROM table_14984103_1 WHERE week = 6 | Name the game site for week 6 | CREATE TABLE table_14984103_1 (game_site VARCHAR, week VARCHAR) |
SELECT "Player" FROM table_65137 WHERE "Balls" = '50' | Which player had 50 balls? | CREATE TABLE table_65137 (
"Rank" real,
"Player" text,
"Team" text,
"Runs" text,
"Balls" real,
"Year" real,
"Against" text
) |
SELECT SUM(year) FROM table_name_56 WHERE role = "nan taylor, alias of nan ellis, aka mrs. andrews" AND director = "william keighley" | What year was the role nan taylor, alias of nan ellis, aka mrs. andrews and directed by William keighley? | CREATE TABLE table_name_56 (year INTEGER, role VARCHAR, director VARCHAR) |
SELECT COUNT(week) FROM table_14984103_1 WHERE opponent = "San Francisco 49ers" | Name the number of weeks for san francisco 49ers | CREATE TABLE table_14984103_1 (week VARCHAR, opponent VARCHAR) |
SELECT AVG(points) FROM table_name_68 WHERE year < 1955 | What is the average Points for a year before 1955? | CREATE TABLE table_name_68 (
points INTEGER,
year INTEGER
) |
SELECT MAX(year) FROM table_name_65 WHERE role = "joan gordon, aka francine la rue" | What is the latest year for the role of joan gordon, aka francine la rue? | CREATE TABLE table_name_65 (year INTEGER, role VARCHAR) |
SELECT MAX(attendance) FROM table_14984103_1 WHERE game_site = "Los Angeles Memorial Coliseum" | Name the most attendance for game site for los angeles memorial coliseum | CREATE TABLE table_14984103_1 (attendance INTEGER, game_site VARCHAR) |
SELECT COUNT(*) FROM (SELECT "location" FROM table_203_565 GROUP BY "location" HAVING COUNT(*) >= 2) | how many locations were used at least twice ? | CREATE TABLE table_203_565 (
id number,
"wrestlers" text,
"times" number,
"date" text,
"location" text,
"notes" text
) |
SELECT film FROM table_name_91 WHERE leading_man = "adolphe menjou" AND year = 1939 | What film has a leading man of adolphe menjou in 1939? | CREATE TABLE table_name_91 (film VARCHAR, leading_man VARCHAR, year VARCHAR) |
SELECT result FROM table_14984126_1 WHERE record = "0–1" | what's the result with record being 0–1 | CREATE TABLE table_14984126_1 (result VARCHAR, record VARCHAR) |
SELECT AGE FROM Users GROUP BY AGE | GroupBy vs Distinct Query Plan. | CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body te... |
SELECT film FROM table_name_54 WHERE director = "william a. wellman" AND year > 1931 AND leading_man = "george brent" AND role = "joan gordon, aka francine la rue" | What film was the director william a. wellman, later than 1931 with a leading man of george brent, and a Role of joan gordon, aka francine la rue? | CREATE TABLE table_name_54 (film VARCHAR, role VARCHAR, leading_man VARCHAR, director VARCHAR, year VARCHAR) |
SELECT game_site FROM table_14984126_1 WHERE result = "L 24–34" | what's the game site with result being l 24–34 | CREATE TABLE table_14984126_1 (game_site VARCHAR, result VARCHAR) |
SELECT COUNT("Seventh") FROM table_72845 WHERE "Sixth" = 'Interpol' | When Interpol is in 6th, who is in 7th? | CREATE TABLE table_72845 (
"Poll Year" text,
"Winner" text,
"Second" text,
"Third" text,
"Fourth" text,
"Fifth" text,
"Sixth" text,
"Seventh" text,
"Eighth" text,
"Ninth" text,
"Tenth" text
) |
SELECT director FROM table_name_14 WHERE year = 1935 AND role = "shelby barret wyatt" | What director directed the role of shelby barret wyatt in 1935? | CREATE TABLE table_name_14 (director VARCHAR, year VARCHAR, role VARCHAR) |
SELECT COUNT(result) FROM table_14984126_1 WHERE date = "October 25, 1964" | how many result with date being october 25, 1964 | CREATE TABLE table_14984126_1 (result VARCHAR, date VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND demographic.diagnosis = "ABDOMINAL ABSCESS" | what is the number of office admitted patients who have abdominal abscess primary disease? | 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 weekly_rank___number_ FROM table_name_53 WHERE share = 9 AND viewers__m_ = 9.42 | What is the weekly rank for a share of 9 and 9.42 million viewers? | CREATE TABLE table_name_53 (weekly_rank___number_ VARCHAR, share VARCHAR, viewers__m_ VARCHAR) |
SELECT COUNT(opponent) FROM table_14984126_1 WHERE date = "October 25, 1964" | how many opponent with date being october 25, 1964 | CREATE TABLE table_14984126_1 (opponent VARCHAR, date VARCHAR) |
SELECT "Trainer" FROM table_46917 WHERE "Winner" = 'mckaymackenna' | Who was the trainer when Mckaymackenna won? | CREATE TABLE table_46917 (
"Year" real,
"Winner" text,
"Jockey" text,
"Trainer" text,
"Owner" text
) |
SELECT SUM(rating) FROM table_name_33 WHERE weekly_rank___number_ = "10" AND share < 11 | What is the sum of all ratings at a weekly rank of 10 and a share less than 11? | CREATE TABLE table_name_33 (rating INTEGER, weekly_rank___number_ VARCHAR, share VARCHAR) |
SELECT population__2010_census_ FROM table_14986292_1 WHERE population_2000_census = 920599 | Name the population 2010 census for population 2000 census of 920599 | CREATE TABLE table_14986292_1 (population__2010_census_ VARCHAR, population_2000_census VARCHAR) |
SELECT "season" FROM table_204_428 WHERE "east superleague" = "bo'ness united" ORDER BY "season" DESC LIMIT 1 | when was the last year bo ` ness united made the roll of honor for east superleague ? | CREATE TABLE table_204_428 (
id number,
"season" text,
"east superleague" text,
"east premier league" text,
"east region south division" text,
"east region central division" text,
"east region north division" text
) |
SELECT MAX(viewers__m_) FROM table_name_47 WHERE rating > 9.4 | What is the highest number of viewers for a rating greater than 9.4? | CREATE TABLE table_name_47 (viewers__m_ INTEGER, rating INTEGER) |
SELECT COUNT(population_2000_census) FROM table_14986292_1 WHERE administrative_division = "Mesquita" | Name the total number of population 2000 census for mesquita | CREATE TABLE table_14986292_1 (population_2000_census VARCHAR, administrative_division VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.