answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT "Start" FROM table_80179 WHERE "Laps" = '676' | What is the start of the race with 676 laps? | CREATE TABLE table_80179 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" text
) |
SELECT AVG(silver) FROM table_name_62 WHERE bronze > 1 | What is the average number of silvers for nations with over 1 bronze medal? | CREATE TABLE table_name_62 (silver INTEGER, bronze INTEGER) |
SELECT MAX(season) FROM table_1816947_2 WHERE average_attendance_league = "2.572" | In which season was the average league attendance 2.572? | CREATE TABLE table_1816947_2 (season INTEGER, average_attendance_league VARCHAR) |
SELECT SUBSTRING(Comment, CHARINDEX('//', Comment) + 2, CHARINDEX('.com', Comment) - CHARINDEX('//', Comment) + 2) AS "sentto", COUNT(Id) AS "count" FROM PostHistory WHERE PostHistoryTypeId = 35 AND CreationDate >= DATEADD(dd, -365 * 2, GETDATE()) GROUP BY SUBSTRING(Comment, CHARINDEX('//', Comment) + 2, CHARINDEX('.co... | WHICH SITES were Questions MIGRATED TO? (Enter number of years to query). Produces a ranked count of questions migrated away from this site. Enter the number of years back to query in the prompt. | CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTask... |
SELECT interregnum_ended FROM table_name_37 WHERE count_palatine_of_saxony = "frederick augustus i, elector of saxony" | What is the Interregnum ended for Count Palatine of Saxony of frederick augustus i, elector of saxony? | CREATE TABLE table_name_37 (interregnum_ended VARCHAR, count_palatine_of_saxony VARCHAR) |
SELECT division___section FROM table_1816947_2 WHERE season = 2012 | In which division did they compete in 2012? | CREATE TABLE table_1816947_2 (division___section VARCHAR, season VARCHAR) |
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, COUNT(procedures_icd.charttime) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 259... | what was the name of the procedure that's been performed to patient 25965 two times until 40 months ago? | CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... |
SELECT interregnum_ended FROM table_name_69 WHERE count_palatine_of_saxony = "john george ii, elector of saxony" | What is the Interregnum ended for Count Palatine of Saxony of john george ii, elector of saxony? | CREATE TABLE table_name_69 (interregnum_ended VARCHAR, count_palatine_of_saxony VARCHAR) |
SELECT highest_attendance_away FROM table_1816947_2 WHERE average_attendance_home = "3.123" | When the home attendance is 3.123, what's the highest away attendance? | CREATE TABLE table_1816947_2 (highest_attendance_away VARCHAR, average_attendance_home VARCHAR) |
SELECT t3.labname FROM (SELECT t2.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 's/p hysterectomy - abdominal' AND DATETIME(diagnosis... | what are the five most common laboratory tests that a patient had within 2 months after being diagnosed with s/p hysterectomy - abdominal since 3 years ago? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime t... |
SELECT duration FROM table_name_53 WHERE count_palatine_of_the_rhine = "charles albert, elector of bavaria" | What is the duration for Count Palatine of the Rhine of charles albert, elector of bavaria? | CREATE TABLE table_name_53 (duration VARCHAR, count_palatine_of_the_rhine VARCHAR) |
SELECT division___section FROM table_1816947_2 WHERE average_attendance_home = "2.459" | Which division has an average home attendance of 2.459? | CREATE TABLE table_1816947_2 (division___section VARCHAR, average_attendance_home VARCHAR) |
SELECT "Challenge Winner" FROM table_9342 WHERE "Challenge Loser" = 'alexcy' | Which winner has a Challenge Loser of alexcy? | CREATE TABLE table_9342 (
"Episode" text,
"7 Deadly Sin" text,
"Challenge Winner" text,
"Challenge Loser" text,
"Voted In To 'El Duelo'" text,
"Eliminated" text
) |
SELECT count_palatine_of_the_rhine FROM table_name_65 WHERE interregnum_began = "2 april 1657 death of ferdinand iii" | What is the name of the Count Palatine of the Rhine with a Interregnum began of 2 april 1657 death of ferdinand iii? | CREATE TABLE table_name_65 (count_palatine_of_the_rhine VARCHAR, interregnum_began VARCHAR) |
SELECT COUNT(speed_rank) FROM table_181892_4 WHERE car_number = 92 | How many years was he car number 92? | CREATE TABLE table_181892_4 (speed_rank VARCHAR, car_number VARCHAR) |
SELECT MAX("No. in Series") FROM table_29376 WHERE "U.S. viewers (millions)" = '9.17' | What is the highest series number with 9.17 million US viewers? | CREATE TABLE table_29376 (
"No. in Series" real,
"No. in Season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) |
SELECT interregnum_ended FROM table_name_78 WHERE duration = "3 months, 6 days" | What is the Interregnum ended for the person with a Duration of 3 months, 6 days? | CREATE TABLE table_name_78 (interregnum_ended VARCHAR, duration VARCHAR) |
SELECT COUNT(year) FROM table_181892_4 WHERE chassis = "Lotus-Ford 38/7" | How many years was the chassis a lotus-ford 38/7? | CREATE TABLE table_181892_4 (year VARCHAR, chassis VARCHAR) |
SELECT won FROM table_14058433_5 WHERE points_for = "643" | what's the won with points for being 643 | CREATE TABLE table_14058433_5 (
won VARCHAR,
points_for VARCHAR
) |
SELECT crowd FROM table_name_53 WHERE home_team = "hawthorn" | What was the crowd size when the home team was Hawthorn? | CREATE TABLE table_name_53 (crowd VARCHAR, home_team VARCHAR) |
SELECT race_status FROM table_181892_4 WHERE chassis = "Lotus-Ford 38/1" | What was the race status(es) with the lotus-ford 38/1 chassis? | CREATE TABLE table_181892_4 (race_status VARCHAR, chassis VARCHAR) |
SELECT "Prohibition ticket" FROM table_40130 WHERE "Progressive ticket" = 'eugene m. travis' | What name ran for the Prohibition ticket when the Progressive ticket was Eugene M. Travis? | CREATE TABLE table_40130 (
"Office" text,
"Republican ticket" text,
"Democratic ticket" text,
"Socialist ticket" text,
"Prohibition ticket" text,
"Progressive ticket" text,
"Independence League ticket" text
) |
SELECT SUM(share) FROM table_name_25 WHERE timeslot = "8:30 p.m." AND air_date = "march 27, 2008" AND rank__overall_ > 65 | What is the total share with Timeslot of 8:30 p.m., anAir Date of march 27, 2008, and a Rank greater than 65? | CREATE TABLE table_name_25 (share INTEGER, rank__overall_ VARCHAR, timeslot VARCHAR, air_date VARCHAR) |
SELECT year FROM table_181892_4 WHERE race_status = "Piston" | What year(s) was the race status piston? | CREATE TABLE table_181892_4 (year VARCHAR, race_status VARCHAR) |
SELECT "Date successor seated" FROM table_24501 WHERE "Vacator" = 'James P. Buchanan (D)' | On what date was James P. Buchanan (d)'s successor seated? | CREATE TABLE table_24501 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
) |
SELECT COUNT(viewers__m_) FROM table_name_80 WHERE rank__night_ = "n/a" AND timeslot = "8:30 p.m." | What is the total number of Viewers with a Rank (Night) of n/a, and a Timeslot of 8:30 p.m.? | CREATE TABLE table_name_80 (viewers__m_ VARCHAR, rank__night_ VARCHAR, timeslot VARCHAR) |
SELECT MAX(laps_led) FROM table_181892_4 WHERE chassis = "Lotus-Ford 34/3" | What is the largest laps led with the lotus-ford 34/3 chassis? | CREATE TABLE table_181892_4 (laps_led INTEGER, chassis VARCHAR) |
SELECT republican AS :_steve_sauerberg FROM table_16751596_2 WHERE dates_administered = "September 15-September 18, 2008" | Name the republican steve sauerberg where dates administered september 15-september 18, 2008 | CREATE TABLE table_16751596_2 (
republican VARCHAR,
dates_administered VARCHAR
) |
SELECT COUNT(attendance) FROM table_name_11 WHERE decision = "mclean" AND home = "calgary" | How many people attended the game when Calgary was the home team and the decision was McLean? | CREATE TABLE table_name_11 (attendance VARCHAR, decision VARCHAR, home VARCHAR) |
SELECT MAX(population) FROM table_1818254_1 WHERE city = "Minneapolis" | What was the population of Minneapolis in 2012? | CREATE TABLE table_1818254_1 (population INTEGER, city VARCHAR) |
SELECT "Year" FROM table_80151 WHERE "Women's singles" = 'carolina marin' | What year did Carolina Marin win the Women's singles? | CREATE TABLE table_80151 (
"Year" text,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
) |
SELECT record FROM table_name_38 WHERE home = "los angeles" | What is the record of the game when Los Angeles was the home team? | CREATE TABLE table_name_38 (record VARCHAR, home VARCHAR) |
SELECT burglary FROM table_1818254_1 WHERE violent_crime = "974.7" | How many burglaries occurred in the city where the violent crime rate was 974.7? | CREATE TABLE table_1818254_1 (burglary VARCHAR, violent_crime VARCHAR) |
SELECT COUNT("member") FROM table_204_659 | how many members in total ? | CREATE TABLE table_204_659 (
id number,
"seat" text,
"state" text,
"majority" number,
"member" text,
"party" text
) |
SELECT record FROM table_name_39 WHERE score = "1 – 5" | What is the record of the game with a score of 1 – 5? | CREATE TABLE table_name_39 (record VARCHAR, score VARCHAR) |
SELECT violent_crime FROM table_1818254_1 WHERE robbery = "201.4" | What was the violent crime rate in the city where the robbery rate was 201.4? | CREATE TABLE table_1818254_1 (violent_crime VARCHAR, robbery VARCHAR) |
SELECT opponent FROM table_name_80 WHERE loss = "sanderson (9-8)" | Name the opponent with loss of sanderson (9-8) | CREATE TABLE table_name_80 (
opponent VARCHAR,
loss VARCHAR
) |
SELECT MIN(attendance) FROM table_name_97 WHERE home = "los angeles" | What is the least number of people to attend a game when Los Angeles was the home team? | CREATE TABLE table_name_97 (attendance INTEGER, home VARCHAR) |
SELECT COUNT(property_crime) FROM table_1818254_1 WHERE burglary = "224.8" | How many cities were there in 2012 where the rate of burglary was 224.8? | CREATE TABLE table_1818254_1 (property_crime VARCHAR, burglary VARCHAR) |
SELECT COUNT(*) FROM table_204_941 WHERE "score" < 100 OR "score" < 100 | in how many games did one of the teams score below 100 points ? | CREATE TABLE table_204_941 (
id number,
"#" number,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
) |
SELECT runner_up FROM table_name_96 WHERE tournament = "santiago" | who is the runner- up when the tournament is santiago? | CREATE TABLE table_name_96 (runner_up VARCHAR, tournament VARCHAR) |
SELECT value FROM table_1818471_1 WHERE mitchell = 676 | What is every value when Mitchell is 676? | CREATE TABLE table_1818471_1 (value VARCHAR, mitchell VARCHAR) |
SELECT COUNT("Television") FROM table_26292 WHERE "Matchup/Results" = 'Iowa State 14, Minnesota 13' | How many different items appear in the television column when the results where Iowa State 14, Minnesota 13? | CREATE TABLE table_26292 (
"Bowl Game" text,
"Date" text,
"Stadium" text,
"City" text,
"Television" text,
"Matchup/Results" text,
"Attendance" real,
"Payout (US$)" text
) |
SELECT score FROM table_name_54 WHERE runner_up = "richard krajicek" | what is the score when the runner-up is richard krajicek? | CREATE TABLE table_name_54 (score VARCHAR, runner_up VARCHAR) |
SELECT COUNT(afinsa) FROM table_1818471_1 WHERE value = "5P" | How many different numbers for Afinsa when value is 5p? | CREATE TABLE table_1818471_1 (afinsa VARCHAR, value VARCHAR) |
SELECT DISTINCT dataset.datasetid FROM dataset, paper, paperdataset, venue WHERE paperdataset.datasetid = dataset.datasetid AND paper.paperid = paperdataset.paperid AND venue.venueid = paper.venueid AND venue.venuename = 'ACL' | what datasets do papers at ACL use most ? | CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE venue (
venueid int,
venuename var... |
SELECT tournament FROM table_name_48 WHERE score = "7-6(0), 6-3" | what is the tournament when the score is 7-6(0), 6-3? | CREATE TABLE table_name_48 (tournament VARCHAR, score VARCHAR) |
SELECT scott FROM table_1818471_1 WHERE date = "(15.12)" | What is every entry for Scott when the date is (15.12)? | CREATE TABLE table_1818471_1 (scott VARCHAR, date VARCHAR) |
SELECT Name, Weight FROM people ORDER BY Weight | Draw a bar chart about the distribution of Name and Weight , display Y in ascending order. | 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 third_place FROM table_name_77 WHERE tournament = "delray beach" | who is third place when the tournament is delray beach? | CREATE TABLE table_name_77 (third_place VARCHAR, tournament VARCHAR) |
SELECT species FROM table_1818471_1 WHERE afinsa = 639 | What is every species when Afinsa is 639? | CREATE TABLE table_1818471_1 (species VARCHAR, afinsa VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND demographic.days_stay > "23" | give me the number of hispanic or latino ethnic background patients who were hospitalized for more than 23 days. | 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 score FROM table_name_63 WHERE competition = "continental qualifier" AND date = "february 23, 2003" | What was the score in the Continental Qualifier on February 23, 2003? | CREATE TABLE table_name_63 (score VARCHAR, competition VARCHAR, date VARCHAR) |
SELECT COUNT(order) FROM table_1818471_1 WHERE species = "Pavo cristatus" | How many orders when the species is Pavo Cristatus? | CREATE TABLE table_1818471_1 (order VARCHAR, species 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, fare, flight, flight_fare WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ORLANDO' AND fare.round_trip_required = 'NO' AND flight_fare.fare_id =... | flights between MILWAUKEE and ORLANDO one way | CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varc... |
SELECT score FROM table_name_72 WHERE competition = "world cup qualifier" | What was the score for the World Cup Qualifier? | CREATE TABLE table_name_72 (score VARCHAR, competition VARCHAR) |
SELECT constellation FROM table_1820752_1 WHERE distance___ly__ = "55.7" | If the distance is 55.7, what is the name of the constellation? | CREATE TABLE table_1820752_1 (constellation VARCHAR, distance___ly__ VARCHAR) |
SELECT UserId, UserDisplayName, COUNT(*) OVER (PARTITION BY UserId) AS No FROM (SELECT DISTINCT UserId, UserDisplayName FROM PostHistory WHERE NOT UserId IS NULL AND NOT UserDisplayName IS NULL) AS p ORDER BY No DESC, UserId | Users previous names based on their edit history. | CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,... |
SELECT result FROM table_name_61 WHERE date = "february 18, 2003" | What was the result on February 18, 2003? | CREATE TABLE table_name_61 (result VARCHAR, date VARCHAR) |
SELECT COUNT(distance___ly__) FROM table_1820752_1 WHERE spectral_type = "G1V" | If the spectral type is g1v, what is the total distance amount? | CREATE TABLE table_1820752_1 (distance___ly__ VARCHAR, spectral_type VARCHAR) |
SELECT MAX(demographic.age) FROM demographic WHERE demographic.insurance = "Private" AND demographic.discharge_location = "DISC-TRAN CANCER/CHLDRN H" | what is maximum age of patients whose insurance is private and discharge location is disc-tran cancer/chldrn h? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... |
SELECT commissioned FROM table_name_14 WHERE fate = "converted to laker, 1961; still in service" | When was the ship that had a fate of 'converted to laker, 1961; still in service' commissioned? | CREATE TABLE table_name_14 (commissioned VARCHAR, fate VARCHAR) |
SELECT COUNT(hd_designation) FROM table_1820752_1 WHERE arrival_date = "February 2070" | What is the hd designation for arrival date of February 2070? | CREATE TABLE table_1820752_1 (hd_designation VARCHAR, arrival_date VARCHAR) |
SELECT title FROM table_27250813_1 WHERE no_in_season = 16 | What is the title of the episode no. 16 by season? | CREATE TABLE table_27250813_1 (
title VARCHAR,
no_in_season VARCHAR
) |
SELECT final_decommission FROM table_name_94 WHERE original_name = "sachem" | When was the ship originally named sachem finally decommissioned? | CREATE TABLE table_name_94 (final_decommission VARCHAR, original_name VARCHAR) |
SELECT spectral_type FROM table_1820752_1 WHERE constellation = "Gemini" | If the constellation is Gemini, what is the spectral type? | CREATE TABLE table_1820752_1 (spectral_type VARCHAR, constellation VARCHAR) |
SELECT "Name" FROM table_59947 WHERE "Floors" > '34' | Which building has more than 34 floors? | CREATE TABLE table_59947 (
"Rank" text,
"Name" text,
"Height ft (m)" text,
"Floors" real,
"Year" real
) |
SELECT away_team AS score FROM table_name_69 WHERE home_team = "richmond" | What did the away team score in the game against Richmond? | CREATE TABLE table_name_69 (away_team VARCHAR, home_team VARCHAR) |
SELECT COUNT(signal_power___kw__) FROM table_1820752_1 WHERE arrival_date = "January 2059" | If the arrival date is January 2059, what is the total amount of signal power? | CREATE TABLE table_1820752_1 (signal_power___kw__ VARCHAR, arrival_date VARCHAR) |
SELECT "Date" FROM table_49245 WHERE "Opponent" = 'pablo andújar' | When was Pablo And jar the opponent? | CREATE TABLE table_49245 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) |
SELECT player FROM table_name_41 WHERE no_result = 0 AND tied > 0 | Which player has no 0 results and multiples ties? | CREATE TABLE table_name_41 (player VARCHAR, no_result VARCHAR, tied VARCHAR) |
SELECT constellation FROM table_1820752_1 WHERE spectral_type = "G1V" | If the spectral type is g1v, what is the constellation? | CREATE TABLE table_1820752_1 (constellation VARCHAR, spectral_type VARCHAR) |
SELECT "Playoffs" FROM table_67973 WHERE "Year" > '1975' AND "Record" = '13–11' | Year larger than 1975, and a Record of 13 11 is what playoffs? | CREATE TABLE table_67973 (
"Year" real,
"Record" text,
"Regular Season Finish" text,
"Playoffs" text,
"Avg. Attendance" real
) |
SELECT MIN(no_result) FROM table_name_80 WHERE lost > 5 AND _percentage_win_[a_] < 58.06 | What is the low no result with more than 5 loss and a win ration lesser than 58.06? | CREATE TABLE table_name_80 (no_result INTEGER, lost VARCHAR, _percentage_win_ VARCHAR, a_ VARCHAR) |
SELECT MAX(no) FROM table_18198579_2 WHERE tournament = "Evian Masters" | List the total numbers of Evian Masters tournaments. | CREATE TABLE table_18198579_2 (no INTEGER, tournament VARCHAR) |
SELECT * FROM table_train_253 WHERE pregnancy_or_lactation = 1 AND pre_eclampsia = 1 | pregnant female with pre _ eclampsia during current pregnancy. | CREATE TABLE table_train_253 (
"id" int,
"pregnancy_or_lactation" bool,
"pre_eclampsia" bool,
"acute_ischemia" bool,
"pre_gestational_hypertension" bool,
"diabetic" string,
"smoking" bool,
"coronary_artery_disease_cad" bool,
"NOUSE" float
) |
SELECT opponent FROM table_name_73 WHERE date = "may 12" | Name the opponent for may 12 | CREATE TABLE table_name_73 (opponent VARCHAR, date VARCHAR) |
SELECT original_air_date FROM table_18217753_1 WHERE season__number = 9 | What is the original air date of season 9? | CREATE TABLE table_18217753_1 (original_air_date VARCHAR, season__number VARCHAR) |
SELECT SUM("Year") FROM table_44280 WHERE "State" = 'orissa' AND "Name" = 'prof. priyambada mohanty hejmadi' | What is the sum of the years when the winner was prof. priyambada mohanty hejmadi from orissa? | CREATE TABLE table_44280 (
"Year" real,
"Name" text,
"Field" text,
"State" text,
"Country" text
) |
SELECT date FROM table_name_31 WHERE loss = "schilling (5–2)" | Name the date for Loss of schilling (5–2) | CREATE TABLE table_name_31 (date VARCHAR, loss VARCHAR) |
SELECT written_by FROM table_18217753_1 WHERE us_viewers__millions_ = "27.11" | Who were the writers when there were 27.11 million viewers? | CREATE TABLE table_18217753_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT "Region" FROM table_71461 WHERE "Catalog" = 'alca-272' | What region is the ALCA-272 Catalog? | CREATE TABLE table_71461 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) |
SELECT record FROM table_name_64 WHERE date = "may 31" | Name the record for may 31 | CREATE TABLE table_name_64 (record VARCHAR, date VARCHAR) |
SELECT COUNT(series__number) FROM table_18217753_1 WHERE us_viewers__millions_ = "23.93" | How many series had viewers totaling 23.93 million? | CREATE TABLE table_18217753_1 (series__number VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT Score, AVG(ViewCount) AS "average_views" FROM Posts GROUP BY Score ORDER BY Score DESC | Scores vs Views (whole site). | CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayNa... |
SELECT MAX(average) FROM table_name_84 WHERE interview = 8.46 | What was the highest average for the contestant having an interview score of 8.46? | CREATE TABLE table_name_84 (average INTEGER, interview VARCHAR) |
SELECT COUNT(original_air_date) FROM table_18217753_1 WHERE us_viewers__millions_ = "26.06" | How many original air dates totaled 26.06 million viewers? | CREATE TABLE table_18217753_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT MAX(founded) FROM table_24334261_1 WHERE team = "Worcester Tornadoes" | What is the maximum founded year of the Worcester Tornadoes? | CREATE TABLE table_24334261_1 (
founded INTEGER,
team VARCHAR
) |
SELECT date FROM table_name_45 WHERE time = "29.816" | What day had a time of 29.816? | CREATE TABLE table_name_45 (date VARCHAR, time VARCHAR) |
SELECT title FROM table_18217741_1 WHERE us_viewers__millions_ = "18.58" | What is the title when 18.58 u.s. viewers (millions) watched? | CREATE TABLE table_18217741_1 (title VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT score FROM table_11621915_1 WHERE date = "Oct 1" | what's the score with date oct 1 | CREATE TABLE table_11621915_1 (
score VARCHAR,
date VARCHAR
) |
SELECT car_make FROM table_name_7 WHERE record = "nascar camping world truck series" | What kind of car has the NASCAR Camping World Truck Series record? | CREATE TABLE table_name_7 (car_make VARCHAR, record VARCHAR) |
SELECT COUNT(digital_terrestrial_channel) FROM table_182410_10 WHERE channel = "channel 4" | How many digital terrestrial channels are there for channel 4? | CREATE TABLE table_182410_10 (digital_terrestrial_channel VARCHAR, channel VARCHAR) |
SELECT "Position" FROM table_70045 WHERE "Overall" < '106' AND "College" = 'virginia' | What position went lower than 106 from the College of Virginia? | CREATE TABLE table_70045 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) |
SELECT home FROM table_name_6 WHERE date = "april 6" | Was it a home game on the date of April 6? | CREATE TABLE table_name_6 (home VARCHAR, date VARCHAR) |
SELECT channel FROM table_182410_10 WHERE digital_terrestrial_channel = "10" | What is the channel that is on digital terrestrial channel 10? | CREATE TABLE table_182410_10 (channel VARCHAR, digital_terrestrial_channel VARCHAR) |
SELECT MIN(height__ft_) FROM table_name_24 WHERE city = "frankfurt" AND height__m_ = 257 AND floors < 55 | What is the smallest height (ft) of a building in Frankfurt with a height (m) of 257 and less than 55 floors? | CREATE TABLE table_name_24 (
height__ft_ INTEGER,
floors VARCHAR,
city VARCHAR,
height__m_ VARCHAR
) |
SELECT date FROM table_name_28 WHERE home = "dallas" | What was the date when the home team was Dallas? | CREATE TABLE table_name_28 (date VARCHAR, home VARCHAR) |
SELECT digital_terrestrial_channel FROM table_182410_10 WHERE channel = "ITV3" | What is the digital terrestria channel number for itv3? | CREATE TABLE table_182410_10 (digital_terrestrial_channel VARCHAR, channel VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Mv collision NOS-driver" | count the number of patients whose diagnoses short title is mv collision nos-driver? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.