answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT away_team AS score FROM table_name_39 WHERE away_team = "melbourne" | What is the visiting team of Melbourne's score? | CREATE TABLE table_name_39 (away_team VARCHAR) |
SELECT COUNT(no_in_series) FROM table_18734298_1 WHERE directed_by = "Rob Renzetti" | How many series were directed by Rob Renzetti? | CREATE TABLE table_18734298_1 (no_in_series VARCHAR, directed_by VARCHAR) |
SELECT tries_against FROM table_12792876_4 WHERE points = "87" | Name the tries against for 87 points | CREATE TABLE table_12792876_4 (
tries_against VARCHAR,
points VARCHAR
) |
SELECT AVG(crowd) FROM table_name_78 WHERE home_team = "fitzroy" | What is the average crowd size of Fitzroy's home team? | CREATE TABLE table_name_78 (crowd INTEGER, home_team VARCHAR) |
SELECT written_by FROM table_18734298_1 WHERE no_in_series = 14 | Who wrote the series number 14? | CREATE TABLE table_18734298_1 (written_by VARCHAR, no_in_series VARCHAR) |
SELECT COUNT("Player") FROM table_15879 WHERE "School/Club Team" = 'La Salle' | How many players were with the school or club team La Salle? | CREATE TABLE table_15879 (
"Player" text,
"No." text,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
) |
SELECT MIN(build_date) FROM table_name_48 WHERE disposal = "scrapped 1941" | Which railway had the earliest build date and a disposal of "Scrapped 1941?" | CREATE TABLE table_name_48 (build_date INTEGER, disposal VARCHAR) |
SELECT COUNT(winnings) FROM table_1875157_1 WHERE starts = 32 | Did this driver have any winnings the season he had 32 starts | CREATE TABLE table_1875157_1 (winnings VARCHAR, starts VARCHAR) |
SELECT color_description FROM ref_colors | List the description of all the colors. | CREATE TABLE ref_characteristic_types (
characteristic_type_code text,
characteristic_type_description text
)
CREATE TABLE ref_product_categories (
product_category_code text,
product_category_description text,
unit_of_measure text
)
CREATE TABLE ref_colors (
color_code text,
color_descrip... |
SELECT railway FROM table_name_68 WHERE build_date = 1911 AND loco_name = "pyramus" | Which railway had a loco name of Pyramus and a build date of 1911? | CREATE TABLE table_name_68 (railway VARCHAR, build_date VARCHAR, loco_name VARCHAR) |
SELECT winnings FROM table_1875157_1 WHERE position = "33rd" | How many wins in the season he finished 33rd | CREATE TABLE table_1875157_1 (winnings VARCHAR, position VARCHAR) |
SELECT MIN(points) FROM table_name_7 WHERE entrant = "officine alfieri maserati" | Name the lowest points for officine alfieri maserati | CREATE TABLE table_name_7 (
points INTEGER,
entrant VARCHAR
) |
SELECT build_date FROM table_name_13 WHERE wheels = "0-6-2 t" | What was the build date of the railway(s) with 0-6-2 t wheels? | CREATE TABLE table_name_13 (build_date VARCHAR, wheels VARCHAR) |
SELECT MIN(top_10) FROM table_1875157_1 | What is the lowest number of top 10 finishes | CREATE TABLE table_1875157_1 (top_10 INTEGER) |
SELECT "Position" FROM table_38337 WHERE "Pick" > '256' AND "Player" = 'terry jones' | What was the position of terry jones whose pick number was after 256? | CREATE TABLE table_38337 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School" text
) |
SELECT disbanded FROM table_name_73 WHERE league = "ahl" | Which disbanded is in the ahl league? | CREATE TABLE table_name_73 (disbanded VARCHAR, league VARCHAR) |
SELECT MAX(poles) FROM table_1875157_1 WHERE year = 2000 | How many poles in the year 2000 | CREATE TABLE table_1875157_1 (poles INTEGER, year VARCHAR) |
SELECT "Super G" FROM table_78831 WHERE "Career" = '1980–1996' | What Super G has a Career of 1980 1996? | CREATE TABLE table_78831 (
"Country" text,
"Career" text,
"Victories" real,
"Super G" text,
"Giant Slalom" text,
"Slalom" text,
"Combined" text,
"Parallel" text
) |
SELECT championships FROM table_name_1 WHERE established > 2005 | Which championship was established after 2005? | CREATE TABLE table_name_1 (championships VARCHAR, established INTEGER) |
SELECT avg_finish FROM table_1875157_2 WHERE winnings = "$1,400" | What is the average finish for winnings of $1,400? | CREATE TABLE table_1875157_2 (avg_finish VARCHAR, winnings VARCHAR) |
SELECT "Directed by" FROM table_19473 WHERE "Original air date" = 'November18,1995' | who directed with original air date being november18,1995 | CREATE TABLE table_19473 (
"No. in series" real,
"Title" text,
"Written by" text,
"Directed by" text,
"Original air date" text,
"TV broadcast" text
) |
SELECT year FROM table_name_62 WHERE player = "j.r. reid" | Which year had J.R. Reid as a player? | CREATE TABLE table_name_62 (year VARCHAR, player VARCHAR) |
SELECT MAX(starts) FROM table_1875157_2 WHERE avg_finish = "16.5" | What is the maximum starts that result in an average finish of 16.5? | CREATE TABLE table_1875157_2 (starts INTEGER, avg_finish 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, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIMORE' AND flight.arrival_time = 1900 AND flight.to_airport = AIRPORT_SERVICE_1.airpo... | what are the flights from ATLANTA to BALTIMORE which arrive in BALTIMORE at 1900 o'clock pm | CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_... |
SELECT hometown FROM table_name_11 WHERE player = "dajuan wagner" | Which hometown is the played Dajuan Wagner from? | CREATE TABLE table_name_11 (hometown VARCHAR, player VARCHAR) |
SELECT MIN(starts) FROM table_1875157_2 WHERE winnings = "$690,321" | How many starts were there when the winnings are $690,321? | CREATE TABLE table_1875157_2 (starts INTEGER, winnings VARCHAR) |
SELECT MIN(rank) FROM table_name_73 WHERE candidate_name = "aliyya qadi" AND votes < 1421 | What rank is aliyya qadi with less than 1421 votes? | CREATE TABLE table_name_73 (
rank INTEGER,
candidate_name VARCHAR,
votes VARCHAR
) |
SELECT crowd FROM table_name_29 WHERE home_team = "carlton" | When the home team was carlton how many people were in the crowd? | CREATE TABLE table_name_29 (crowd VARCHAR, home_team VARCHAR) |
SELECT other_mozilla FROM table_1876262_10 WHERE safari = "3.76%" | If Safari is 3.76%, what is the other Mozilla amount? | CREATE TABLE table_1876262_10 (other_mozilla VARCHAR, safari VARCHAR) |
SELECT nfl_team FROM table_16729063_1 WHERE college = "Mississippi" | What team has draft picks from Mississippi? | CREATE TABLE table_16729063_1 (
nfl_team VARCHAR,
college VARCHAR
) |
SELECT away_team FROM table_name_95 WHERE crowd > 23 OFFSET 000 | Which away team had a crowd of over 23,000 people? | CREATE TABLE table_name_95 (away_team VARCHAR, crowd INTEGER) |
SELECT other_mozilla FROM table_1876262_10 WHERE firefox = "30.45%" | If Firefox is 30.45%, what is the other Mozilla amount? | CREATE TABLE table_1876262_10 (other_mozilla VARCHAR, firefox VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "MESENTERIC ISCHEMIA" AND demographic.dob_year < "2180" | give me the number of patients whose primary disease is mesenteric ischemia and year of birth is less than 2180? | 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 (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (... |
SELECT home_team FROM table_name_39 WHERE venue = "western oval" | What's the home team for the western oval venue? | CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR) |
SELECT safari FROM table_1876262_10 WHERE internet_explorer = "47.22%" | If Internet Explorer is 47.22%, what is the Safari total? | CREATE TABLE table_1876262_10 (safari VARCHAR, internet_explorer VARCHAR) |
SELECT "Video" FROM table_64145 WHERE "Channel" < '35.66' AND "Programming" = 'nhk world' | Which Video has a Channel smaller than 35.66, and a Programming of nhk world? | CREATE TABLE table_64145 (
"Channel" real,
"Video" text,
"Aspect" text,
"PSIP Short Name" text,
"Programming" text
) |
SELECT home_team AS score FROM table_name_28 WHERE venue = "junction oval" | What's the home team for the junction oval venue? | CREATE TABLE table_name_28 (home_team VARCHAR, venue VARCHAR) |
SELECT COUNT(other_mozilla) FROM table_1876262_10 WHERE period = "September 2009" | For period September 2009, what is the other Mozilla total number? | CREATE TABLE table_1876262_10 (other_mozilla VARCHAR, period VARCHAR) |
SELECT country FROM table_name_96 WHERE builder = "palmers shipbuilding and iron company" | What is the country of Palmers Shipbuilding and Iron Company? | CREATE TABLE table_name_96 (
country VARCHAR,
builder VARCHAR
) |
SELECT result FROM table_name_5 WHERE opponent = "fenerbahçe" | What was the result when the opponent was fenerbahçe? | CREATE TABLE table_name_5 (result VARCHAR, opponent VARCHAR) |
SELECT COUNT(production_code) FROM table_1876825_2 WHERE written_by = "David Richardson" AND directed_by = "Todd Holland" | Name the total number of production code by david richardson and todd holland | CREATE TABLE table_1876825_2 (production_code VARCHAR, written_by VARCHAR, directed_by VARCHAR) |
SELECT cName, MIN(enr) FROM College GROUP BY state ORDER BY cName DESC | What is the name of the school that has the smallest enrollment in each state?, and show from high to low by the X-axis. | CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
) |
SELECT apparent_magnitude FROM table_name_14 WHERE ngc_number = "6027d" | what is the apparent magnitude of NGC number 6027d? | CREATE TABLE table_name_14 (apparent_magnitude VARCHAR, ngc_number VARCHAR) |
SELECT COUNT(no_in_series) FROM table_1876825_2 WHERE original_air_date = "March 19, 2000" | Name the total number of series for march 19, 2000 | CREATE TABLE table_1876825_2 (no_in_series VARCHAR, original_air_date VARCHAR) |
SELECT competition FROM table_name_48 WHERE date = "august 25, 2007" | Name the competition that was on august 25, 2007 | CREATE TABLE table_name_48 (
competition VARCHAR,
date VARCHAR
) |
SELECT visitor FROM table_name_77 WHERE home = "grizzlies" AND date = "13 november 2007" | What is the visiting team of the game with the home team Grizzlies on 13 November 2007? | CREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR, date VARCHAR) |
SELECT no_in_series FROM table_1876825_3 WHERE original_air_date = "February 25, 2001" | What episode number in the series originally aired on February 25, 2001? | CREATE TABLE table_1876825_3 (no_in_series VARCHAR, original_air_date VARCHAR) |
SELECT score FROM table_name_45 WHERE country = "united states" AND to_par = 8 | Can you tell me the Score that has the Country of united states, and the To par of 8? | CREATE TABLE table_name_45 (
score VARCHAR,
country VARCHAR,
to_par VARCHAR
) |
SELECT date FROM table_name_98 WHERE home = "mavericks" | What is the date of the game when the Mavericks were the home team? | CREATE TABLE table_name_98 (date VARCHAR, home VARCHAR) |
SELECT title FROM table_1876825_3 WHERE production_code = "06-00-218" | What is the name of the episode with the production code of 06-00-218? | CREATE TABLE table_1876825_3 (title VARCHAR, production_code VARCHAR) |
SELECT "Surface" FROM table_58668 WHERE "Tournament" = 'sunderland , united kingdom' | What is Surface, when Tournament is 'Sunderland , United Kingdom'? | CREATE TABLE table_58668 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) |
SELECT MIN(year_made) FROM table_name_86 WHERE wheel_arrangement = "0-4-2t" | Which of the lowest years had a Wheel arrangement that was 0-4-2t? | CREATE TABLE table_name_86 (year_made INTEGER, wheel_arrangement VARCHAR) |
SELECT production_code FROM table_1876825_3 WHERE no_in_series = 26 | What is the production code for episode 26 in the series? | CREATE TABLE table_1876825_3 (production_code VARCHAR, no_in_series VARCHAR) |
SELECT q.Id AS "post_link", a.Id AS "post_link" FROM Posts AS a LEFT JOIN Posts AS q ON a.PostTypeId = 2 AND q.PostTypeId = 1 AND q.AcceptedAnswerId = a.Id WHERE a.Score = 0 | Why are certain questions redirecting to tag wikis?. | CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description... |
SELECT AVG(year_made) FROM table_name_85 WHERE iwcr_no = "5" AND year_withdrawn > 1926 | What is the mean Year when the IWCR number was 5 and the Year withdrawn was bigger than 1926? | CREATE TABLE table_name_85 (year_made INTEGER, iwcr_no VARCHAR, year_withdrawn VARCHAR) |
SELECT production_code FROM table_1876825_3 WHERE no_in_season = 6 | What is the production code for episode 6 in the season? | CREATE TABLE table_1876825_3 (production_code VARCHAR, no_in_season VARCHAR) |
SELECT SUM(position) FROM table_name_97 WHERE against = 32 AND difference = "18" AND drawn > 4 | Which Position has an Against of 32, and a Difference of 18, and a Drawn larger than 4? | CREATE TABLE table_name_97 (
position INTEGER,
drawn VARCHAR,
against VARCHAR,
difference VARCHAR
) |
SELECT sr_no FROM table_name_87 WHERE wheel_arrangement = "0-6-0t" AND year_made > 1874 AND year_withdrawn = 1963 | Which SR number had a wheel arrangement of 0-6-0t, the year made was more recent than 1874, and the year withdrawn was 1963? | CREATE TABLE table_name_87 (sr_no VARCHAR, year_withdrawn VARCHAR, wheel_arrangement VARCHAR, year_made VARCHAR) |
SELECT title FROM table_1876825_8 WHERE no_in_season = 2 | what is the title no in season 2? | CREATE TABLE table_1876825_8 (title VARCHAR, no_in_season VARCHAR) |
SELECT player FROM table_12962773_2 WHERE height = "2.01" | What player is 2.01 m tall? | CREATE TABLE table_12962773_2 (
player VARCHAR,
height VARCHAR
) |
SELECT COUNT(year_made) FROM table_name_18 WHERE wheel_arrangement = "0-4-0t" | What is the sum number of years where the wheel arrangement of 0-4-0t? | CREATE TABLE table_name_18 (year_made VARCHAR, wheel_arrangement VARCHAR) |
SELECT date_of_vacancy FROM table_18788823_5 WHERE outgoing_manager = "Micky Adams" | What date did Micky Adams vacate his position? | CREATE TABLE table_18788823_5 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR) |
SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = "San Francisco State University" AND t1.year = 2000 | What is the campus fee of 'San Francisco State University' in year 2000? | CREATE TABLE csu_fees (
campusfee VARCHAR,
campus VARCHAR,
year VARCHAR
)
CREATE TABLE campuses (
id VARCHAR,
campus VARCHAR
) |
SELECT MAX(week) FROM table_name_63 WHERE attendance = "63,001" | What was the latest week of a game that had an attendance of 63,001? | CREATE TABLE table_name_63 (week INTEGER, attendance VARCHAR) |
SELECT position_in_table FROM table_18788823_5 WHERE date_of_vacancy = "4 November 2008" | Which vacancy happened on 4 November 2008? | CREATE TABLE table_18788823_5 (position_in_table VARCHAR, date_of_vacancy VARCHAR) |
SELECT "FCC info" FROM table_77339 WHERE "State" = 'indiana' AND "City of license" = 'west lafayette' | What is the FCC info for the radio station in West Lafayette, Indiana? | CREATE TABLE table_77339 (
"Call sign" text,
"Frequency" text,
"City of license" text,
"State" text,
"FCC info" text
) |
SELECT COUNT(total) FROM table_name_76 WHERE nation = "austria" AND rank > 4 | What is the total medals Austria and those with larger than rank 4 have? | CREATE TABLE table_name_76 (total VARCHAR, nation VARCHAR, rank VARCHAR) |
SELECT COUNT(position_in_table) FROM table_18788823_5 WHERE outgoing_manager = "Keith Downing" | How many times did Keith Downing depart a position? | CREATE TABLE table_18788823_5 (position_in_table VARCHAR, outgoing_manager VARCHAR) |
SELECT champion_score FROM table_15161170_1 WHERE division = "division 2 Men" | When the division is Division 2 men what is the champion score? | CREATE TABLE table_15161170_1 (
champion_score VARCHAR,
division VARCHAR
) |
SELECT MAX(gold) FROM table_name_96 WHERE rank < 6 AND silver = 1 AND total > 4 | What is the most gold medals that a team ranked higher than 6, have 1 silver medal, and more than 4 total medals have? | CREATE TABLE table_name_96 (gold INTEGER, total VARCHAR, rank VARCHAR, silver VARCHAR) |
SELECT team FROM table_18788823_5 WHERE date_of_appointment = "23 December 2008" | Which team appointed a person on 23 December 2008? | CREATE TABLE table_18788823_5 (team VARCHAR, date_of_appointment VARCHAR) |
SELECT COUNT("Original air date") FROM table_25829 WHERE "Episode #" = '12' | How many original air dates did episode 12 have?h | CREATE TABLE table_25829 (
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Viewers (in millions)" text
) |
SELECT country FROM table_name_76 WHERE opened = 2002 AND model = "spinning coaster" AND park = "disney's animal kingdom" | Which country has a rollercoaster that opened in 2002, is a spinning coaster, and is located in Disney's Animal Kingdom? | CREATE TABLE table_name_76 (country VARCHAR, park VARCHAR, opened VARCHAR, model VARCHAR) |
SELECT date_of_appointment FROM table_18788823_5 WHERE team = "Milton Keynes Dons" | What date did the Milton Keynes Dons appoint? | CREATE TABLE table_18788823_5 (date_of_appointment VARCHAR, team VARCHAR) |
SELECT player FROM table_name_58 WHERE position = "g" AND team = "washington capitols" | What is the name of the player with position of G and the team was the Washington Capitols? | CREATE TABLE table_name_58 (
player VARCHAR,
position VARCHAR,
team VARCHAR
) |
SELECT name FROM table_name_98 WHERE opened = 2000 AND park = "brighton pier" | What is the name of the roller coaster that opened in 2000 in Brighton Pier? | CREATE TABLE table_name_98 (name VARCHAR, opened VARCHAR, park VARCHAR) |
SELECT position_in_table FROM table_18788823_5 WHERE date_of_vacancy = "16 February 2009" | Which vacancy occurred on 16 February 2009? | CREATE TABLE table_18788823_5 (position_in_table VARCHAR, date_of_vacancy VARCHAR) |
SELECT "Points for" FROM table_41686 WHERE "Club" = 'cambrian welfare rfc' | How many pints does the Cambrian Welfare RFC have? | CREATE TABLE table_41686 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries For" text,
"Tries Against" text,
"Try Bonus" text,
"Losing Bonus" text,
"Points" text
) |
SELECT COUNT(attendance) FROM table_name_85 WHERE date = "may 6" | How many attended on may 6? | CREATE TABLE table_name_85 (attendance VARCHAR, date VARCHAR) |
SELECT title FROM table_1876825_5 WHERE production_code = "06-02-407" | What is title of episode 06-02-407? | CREATE TABLE table_1876825_5 (title VARCHAR, production_code VARCHAR) |
SELECT AVG(total) FROM table_name_82 WHERE tournament < 0 | Name the average total for tournament less than 0 | CREATE TABLE table_name_82 (
total INTEGER,
tournament INTEGER
) |
SELECT opponent FROM table_name_67 WHERE score = "3-17" | Who did they lose to 3-17? | CREATE TABLE table_name_67 (opponent VARCHAR, score VARCHAR) |
SELECT title FROM table_1876825_5 WHERE production_code = "06-02-406" | What is title of episode 06-02-406? | CREATE TABLE table_1876825_5 (title VARCHAR, production_code VARCHAR) |
SELECT DISTINCT COUNT(DISTINCT writes.paperid) FROM author, keyphrase, paperkeyphrase, writes WHERE author.authorname = 'Ed Desmond' AND keyphrase.keyphrasename = 'Semantic Parsing' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND writes.authorid = author.authorid AND writes.paperid = paperkeyphrase.paperid | How many paper has Ed Desmond written about Semantic Parsing ? | CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE journal (
journalid int,
journalname va... |
SELECT venue FROM table_name_56 WHERE home_team = "richmond" | What venue did Richmond play at as the home team? | CREATE TABLE table_name_56 (venue VARCHAR, home_team VARCHAR) |
SELECT title FROM table_1876825_5 WHERE original_air_date = "March 2, 2003" | What is title of episode aired on March 2, 2003? | CREATE TABLE table_1876825_5 (title VARCHAR, original_air_date VARCHAR) |
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 17667 AND admissions.dischtime IS NULL) AND transfers.careunit = 'micu' ORDER BY transfers.intime DESC LIMIT 1 | how many hours have it been since the last time that patient 17667 stayed in careunit micu during their current hospital visit? | CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_procedures (
row_id number,
... |
SELECT home_team FROM table_name_73 WHERE away_team = "footscray" | What home team played against Footscray as the away team? | CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR) |
SELECT written_by FROM table_1876825_5 WHERE no_in_series = 74 | Who wrote episode 74? | CREATE TABLE table_1876825_5 (written_by VARCHAR, no_in_series VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Medicaid" AND procedures.icd9_code = "403" | give me the number of medicaid patients who had procedure icd9 code 403. | 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 attendance FROM table_name_84 WHERE away_team = "boreham wood" | what was the attendance when the away team was boreham wood? | CREATE TABLE table_name_84 (attendance VARCHAR, away_team VARCHAR) |
SELECT position_in_table FROM table_18784280_3 WHERE team = "Watford" | Which position in the table is the team watford? | CREATE TABLE table_18784280_3 (position_in_table VARCHAR, team VARCHAR) |
SELECT "Record" FROM table_1502 WHERE "Opponent" = 'Phoenix Cardinals' | What record was reached when the Eagles played the Phoenix Cardinals? | CREATE TABLE table_1502 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Eagles points" real,
"Opponents" real,
"Record" text,
"Attendance" real
) |
SELECT SUM(tie_no) FROM table_name_82 WHERE away_team = "solihull moors" | what is the tie no when the away team is solihull moors? | CREATE TABLE table_name_82 (tie_no INTEGER, away_team VARCHAR) |
SELECT COUNT(no_in_series) FROM table_1876825_7 WHERE production_code = "06-04-621" | Name the number of number in series for production code of 06-04-621 | CREATE TABLE table_1876825_7 (no_in_series VARCHAR, production_code VARCHAR) |
SELECT july FROM table_name_23 WHERE annual_precipitation = "514mm (20.2in)" | What is the July temperature where the annual precipitation is 514mm (20.2in)? | CREATE TABLE table_name_23 (
july VARCHAR,
annual_precipitation VARCHAR
) |
SELECT away_team FROM table_name_30 WHERE tie_no > 13 AND home_team = "team bath" | who is the away team when the tie no is more than 13 and the home team is team bath? | CREATE TABLE table_name_30 (away_team VARCHAR, tie_no VARCHAR, home_team VARCHAR) |
SELECT COUNT(written_by) FROM table_1876825_7 WHERE original_air_date = "May 8, 2005" | Name the total number of written by for original air date for may 8, 2005 | CREATE TABLE table_1876825_7 (written_by VARCHAR, original_air_date VARCHAR) |
SELECT "Leading Scorer" FROM table_76222 WHERE "Series" = 'wnba finals' | Who is the leading scorer of the wnba finals series? | CREATE TABLE table_76222 (
"Date" text,
"Opponent" text,
"Score" text,
"Leading Scorer" text,
"Attendance" text,
"Series" text
) |
SELECT AVG(pick__number) FROM table_name_50 WHERE college = "simon fraser" | What is the Pick # of the player from Simon Fraser College? | CREATE TABLE table_name_50 (pick__number INTEGER, college VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.