answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT attendance FROM table_name_14 WHERE record = "49-61"
What was the attendance at the game when the record was 49-61?
CREATE TABLE table_name_14 (attendance VARCHAR, record VARCHAR)
SELECT COUNT(walker__percentage) FROM table_21046399_3 WHERE county = "Kenosha"
How many figures are given for Walker's percentage in Kenosha county?
CREATE TABLE table_21046399_3 (walker__percentage VARCHAR, county VARCHAR)
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course_offering.friday = 'N' AND course.course_id = course_offering.course_id AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'FA' ...
What upper level classes next semester will not have to meet on Fridays ?
CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varchar, test_id varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, ...
SELECT date FROM table_name_24 WHERE opponent = "detroit tigers" AND attendance = "38,639"
On what date was there a game in which the opponent was the Detroit Tigers, and the attendance was 38,639?
CREATE TABLE table_name_24 (date VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT walker__percentage FROM table_21046399_3 WHERE county = "Calumet"
What percentage did Walker win in Calumet county?
CREATE TABLE table_21046399_3 (walker__percentage VARCHAR, county VARCHAR)
SELECT SUM("Elevation (m)") FROM table_65639 WHERE "Prominence (m)" = '2,876' AND "Col (m)" > '0'
Which Elevation (m) has a Prominence (m) of 2,876, and a Col (m) larger than 0?
CREATE TABLE table_65639 ( "Peak" text, "Country" text, "Elevation (m)" real, "Prominence (m)" real, "Col (m)" real )
SELECT software FROM table_name_78 WHERE cost___usd__ = "free" AND latest_stable_date__version_ = "1.1"
What is the free sotware with the latest stable date version of 1.1?
CREATE TABLE table_name_78 (software VARCHAR, cost___usd__ VARCHAR, latest_stable_date__version_ VARCHAR)
SELECT COUNT(won_by) FROM table_21046399_3 WHERE county = "Milwaukee"
How many total figures are given for Milwaukee county?
CREATE TABLE table_21046399_3 (won_by VARCHAR, county VARCHAR)
SELECT length FROM table_name_38 WHERE numbers = "2600-2825 (223 buses)"
For numbers of 2600-2825 (223 buses), what is the length?
CREATE TABLE table_name_38 ( length VARCHAR, numbers VARCHAR )
SELECT software FROM table_name_87 WHERE latest_stable_date__version_ = "0.6.1"
Name the software with the latest stable date of 0.6.1
CREATE TABLE table_name_87 (software VARCHAR, latest_stable_date__version_ VARCHAR)
SELECT result FROM table_21058823_1 WHERE record = "3-2-1"
What did they do in the game when their record was 3-2-1?
CREATE TABLE table_21058823_1 (result VARCHAR, record VARCHAR)
SELECT home FROM table_name_23 WHERE record = "36–21–8"
Who was the home team when the record was 36 21 8?
CREATE TABLE table_name_23 ( home VARCHAR, record VARCHAR )
SELECT cost___usd__ FROM table_name_48 WHERE latest_stable_date__version_ = "online"
Name the cost for latest stable date of online
CREATE TABLE table_name_48 (cost___usd__ VARCHAR, latest_stable_date__version_ VARCHAR)
SELECT result FROM table_21058823_1 WHERE opponent = "Villanova"
What did they do against Villanova?
CREATE TABLE table_21058823_1 (result VARCHAR, opponent VARCHAR)
SELECT gtype, COUNT(*) FROM Video_games GROUP BY gtype
Show all video game types and the number of video games in each type.
CREATE TABLE Video_games ( gtype VARCHAR )
SELECT birth_place FROM table_name_83 WHERE monarchs_served = "george v" AND entered_office = "23 october 1922"
What is the birth place of the prime minister who served George V and entered office on 23 October 1922?
CREATE TABLE table_name_83 (birth_place VARCHAR, monarchs_served VARCHAR, entered_office VARCHAR)
SELECT result FROM table_21058823_1 WHERE opponent = "Memphis"
What did they do against Memphis?
CREATE TABLE table_21058823_1 (result VARCHAR, opponent VARCHAR)
SELECT MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "DIVORCED" AND demographic.diagnosis = "POSTERIOR COMMUNICATING ANEURYSM/SDA"
calculate the minimum age of divorcee patients who had posterior communicating aneurysm/sda as 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 political_party FROM table_name_5 WHERE monarchs_served = "george v" AND birth_place = "manchester"
To which political party did the prime minister who served under George V and was born in Manchester belong?
CREATE TABLE table_name_5 (political_party VARCHAR, monarchs_served VARCHAR, birth_place VARCHAR)
SELECT COUNT(date) FROM table_21058823_1 WHERE record = "0-2-0"
How many games did they play when their record 0-2-0?
CREATE TABLE table_21058823_1 (date VARCHAR, record VARCHAR)
SELECT * FROM sys.databases AS db
Cross-posts from Stack Overflow to Code Review.
CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, ...
SELECT left_office FROM table_name_49 WHERE entered_office = "7 december 1916"
What date did the prime minister who entered office on 7 December 1916 leave office?
CREATE TABLE table_name_49 (left_office VARCHAR, entered_office VARCHAR)
SELECT au_air_date FROM table_21055055_2 WHERE viewers__m_ = "2.267"
When did the episode seen by is 2.267 million people get aired?
CREATE TABLE table_21055055_2 (au_air_date VARCHAR, viewers__m_ VARCHAR)
SELECT result FROM table_1341586_14 WHERE incumbent = "Terry L. Bruce"
How did the election end for Terry L. Bruce?
CREATE TABLE table_1341586_14 ( result VARCHAR, incumbent VARCHAR )
SELECT monarchs_served FROM table_name_18 WHERE name = "stanley baldwin (1st ministry)"
What monarch(s) did Stanley Baldwin (1st ministry) serve?
CREATE TABLE table_name_18 (monarchs_served VARCHAR, name VARCHAR)
SELECT episode FROM table_2105721_1 WHERE run_time = "24:44"
Name the episode for run time in 24:44
CREATE TABLE table_2105721_1 (episode VARCHAR, run_time VARCHAR)
SELECT t2.drug FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 66015 AND procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_proce...
what is the drug that patient 66015 was prescribed with within the same hospital visit after the closed bronchial biopsy a month before?
CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time...
SELECT date FROM table_name_60 WHERE game_site = "rich stadium"
What is the date of the game played at rich stadium?
CREATE TABLE table_name_60 (date VARCHAR, game_site VARCHAR)
SELECT COUNT(episode) FROM table_2105721_1 WHERE run_time = "24:11"
Name the total episode for runtime of 24:11
CREATE TABLE table_2105721_1 (episode VARCHAR, run_time VARCHAR)
SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-9128')) AND microlab.culturesite = 'other' AND STRFTIME('%y-%...
when was the last test of patient 031-9128's microbiology other until 11/2105?
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TA...
SELECT college FROM table_name_38 WHERE player = "chito victolero"
What college has Chito Victolero?
CREATE TABLE table_name_38 (college VARCHAR, player VARCHAR)
SELECT opponent FROM table_21063459_1 WHERE record = "3-1, #16"
Who did the team play against when a record of 3-1, #16 was achieved?
CREATE TABLE table_21063459_1 (opponent VARCHAR, record VARCHAR)
SELECT COUNT(*) FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.number = 421 AND instructor.name LIKE '%Alan Gosman%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offerin...
How many classes has Prof. Alan Gosman taken for 421 ?
CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varch...
SELECT college FROM table_name_43 WHERE player = "jojo manalo"
What college has Jojo Manalo?
CREATE TABLE table_name_43 (college VARCHAR, player VARCHAR)
SELECT result FROM table_21063459_1 WHERE opponent = "Mississippi State"
What was the result of the game against Mississippi State?
CREATE TABLE table_21063459_1 (result VARCHAR, opponent VARCHAR)
SELECT * FROM table_train_82 WHERE hypertension = 1 OR (systolic_blood_pressure_sbp > 170 OR diastolic_blood_pressure_dbp > 100)
uncontrolled hypertension ( systolic bp > 170 or diastolic bp > 100 ) .
CREATE TABLE table_train_82 ( "id" int, "mini_mental_state_examination_mmse" int, "systolic_blood_pressure_sbp" int, "diastolic_blood_pressure_dbp" int, "body_mass_index_bmi" float, "hypertension" bool, "age" float, "NOUSE" float )
SELECT COUNT(pick) FROM table_name_52 WHERE college = "perpetual help" AND pba_team = "coca-cola tigers"
What is the pick number for the College of Perpetual help with the Coca-Cola Tigers as a PBA team?
CREATE TABLE table_name_52 (pick VARCHAR, college VARCHAR, pba_team VARCHAR)
SELECT opponent FROM table_21063459_1 WHERE result = "Loss"
Who did the team play against in the game that resulted with a loss?
CREATE TABLE table_21063459_1 (opponent VARCHAR, result VARCHAR)
SELECT "Player" FROM table_73573 WHERE "Height (m)" = '1.85'
Name the player that is 1.85 m
CREATE TABLE table_73573 ( "No" real, "Player" text, "Height (m)" text, "Height (f)" text, "Position" text, "Year born" real, "Current Club" text )
SELECT score FROM table_name_50 WHERE date = "may 5"
What is the score of the game on May 5?
CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR)
SELECT game FROM table_21058836_1 WHERE opponent = "Santa Clara"
What game did the Bruins play Santa Clara?
CREATE TABLE table_21058836_1 (game VARCHAR, opponent VARCHAR)
SELECT COUNT(*) > 0 FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 445 AND instructor.name LIKE '%Erkut Ozbay%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_ins...
In next semester does Prof. Erkut Ozbay teach 445 ?
CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, good_feedback int, tough_tests int, heavy_papers int, cares_for_students int, heavy_assignments ...
SELECT record FROM table_name_1 WHERE attendance = "18,084"
What is the record of the game with 18,084 in attendance?
CREATE TABLE table_name_1 (record VARCHAR, attendance VARCHAR)
SELECT opponents FROM table_21058836_1 WHERE opponent = "Santa Clara"
Santa Clara was played how many times?
CREATE TABLE table_21058836_1 (opponents VARCHAR, opponent VARCHAR)
SELECT COUNT("Station Type") FROM table_26014 WHERE "Callsign" = 'DXCC-TV'
When dxcc-tv is the call sign how many station types are there?
CREATE TABLE table_26014 ( "Branding" text, "Callsign" text, "Ch. #" text, "Power kW" text, "Station Type" text, "Location (Transmitter site)" text )
SELECT record FROM table_name_36 WHERE date = "may 30"
What is the record of the game on May 30?
CREATE TABLE table_name_36 (record VARCHAR, date VARCHAR)
SELECT result FROM table_21058836_1 WHERE opponents = 26
The game the Bruins scored 26 ,what was the result?
CREATE TABLE table_21058836_1 (result VARCHAR, opponents VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "HYPERTENSION;RULE OUT CORONARY ARTERY DISEASE\CARDIAC CATH" AND demographic.dod_year <= "2154.0"
Show me the number of patients suffering from hypertension but not coronary artery disease or cardiac catheterization as their primary disease who died on or before 2154.
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, ...
SELECT third_place FROM table_name_34 WHERE tournament = "zurich"
Who won third place in the Zurich Tournament?
CREATE TABLE table_name_34 (third_place VARCHAR, tournament VARCHAR)
SELECT record FROM table_21058836_1 WHERE game = 9
What was the record for game 9?
CREATE TABLE table_21058836_1 (record VARCHAR, game VARCHAR)
SELECT "Home" FROM table_38418 WHERE "Visitor" = 'montreal canadiens' AND "Record" = '0-3'
What team did the Montreal Canadiens visit when the record was 0-3?
CREATE TABLE table_38418 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text )
SELECT winner FROM table_name_79 WHERE score = "7–6 (7–3) , 2–6, [10–6]"
Who was the winner with a score of 7–6 (7–3) , 2–6, [10–6]?
CREATE TABLE table_name_79 (winner VARCHAR, score VARCHAR)
SELECT opponent FROM table_21062353_1 WHERE game = 4
Who were the opponents of the Wildcats in game 4?
CREATE TABLE table_21062353_1 (opponent VARCHAR, game VARCHAR)
SELECT "Life expectancy males" FROM table_29505 WHERE "IMR*" = '64'
What is the life expectancy of men with an IMR of 64?
CREATE TABLE table_29505 ( "Period" text, "Live births per year" text, "Deaths per year" text, "Natural change per year" text, "CBR*" text, "CDR*" text, "NC*" text, "TFR*" text, "IMR*" real, "Life expectancy total" text, "Life expectancy males" text, "Life expectancy fema...
SELECT tournament FROM table_name_23 WHERE winner = "thomas enqvist"
Which tournament did Thomas Enqvist win?
CREATE TABLE table_name_23 (tournament VARCHAR, winner VARCHAR)
SELECT opponent FROM table_21062353_1 WHERE game = 8
Who were the the opponents of the Wildcats for game 8 of the season?
CREATE TABLE table_21062353_1 (opponent VARCHAR, game VARCHAR)
SELECT record FROM table_name_61 WHERE game < 76
Can you tell me the Record that has the Game smaller than 76?
CREATE TABLE table_name_61 ( record VARCHAR, game INTEGER )
SELECT tournament FROM table_name_59 WHERE runner_up = "tim henman"
Which tournament was Tim Henman the runner-up in?
CREATE TABLE table_name_59 (tournament VARCHAR, runner_up VARCHAR)
SELECT record FROM table_21062353_1 WHERE opponent = "Florida"
What was the record of the Wildcats after playing Florida?
CREATE TABLE table_21062353_1 (record VARCHAR, opponent VARCHAR)
SELECT SUM(year_left) FROM table_name_13 WHERE location = "howe"
How much Year Left has a Location of howe?
CREATE TABLE table_name_13 ( year_left INTEGER, location VARCHAR )
SELECT venue FROM table_name_40 WHERE runs = "153"
What is the venue where 153 runs were scored?
CREATE TABLE table_name_40 (venue VARCHAR, runs VARCHAR)
SELECT COUNT(wildcats_points) FROM table_21062353_1 WHERE game = 11
How many times did the Wildcats play a game 11 regardless of points scored?
CREATE TABLE table_21062353_1 (wildcats_points VARCHAR, game VARCHAR)
SELECT "Dates administered" FROM table_43584 WHERE "Republican: John Kennedy" = '45%' AND "Democrat: Mary Landrieu" = '38%'
On what date was the poll showing John Kennedy with 45% and Mary Landrieu with 38%?
CREATE TABLE table_43584 ( "Poll Source" text, "Dates administered" text, "Democrat: Mary Landrieu" text, "Republican: John Kennedy" text, "Lead Margin" real )
SELECT partnerships FROM table_name_17 WHERE versus = "namibia" AND runs = "166*"
What is the partnership in the game with 166* runs and an opponent of Namibia?
CREATE TABLE table_name_17 (partnerships VARCHAR, versus VARCHAR, runs VARCHAR)
SELECT COUNT(black_knights_points) FROM table_21091145_1 WHERE game = 3
Name the number of black knights points for 3 game
CREATE TABLE table_21091145_1 (black_knights_points VARCHAR, game VARCHAR)
SELECT team FROM table_17327458_1 WHERE date_of_appointment = "12 June"
What team appointed a manager on 12 June?
CREATE TABLE table_17327458_1 ( team VARCHAR, date_of_appointment VARCHAR )
SELECT date FROM table_name_66 WHERE versus = "south africa" AND wicket = "2nd"
What is the date of the game against South Africa and 2nd wickets?
CREATE TABLE table_name_66 (date VARCHAR, versus VARCHAR, wicket VARCHAR)
SELECT opponents FROM table_21091145_1 WHERE game = 5
Name the opponents for game 5
CREATE TABLE table_21091145_1 (opponents VARCHAR, game VARCHAR)
SELECT date FROM table_name_38 WHERE time = "17:37" AND set_4 = "25–15"
What is the Date with a Time of 17:37, and the Set 4 is 25 15?
CREATE TABLE table_name_38 ( date VARCHAR, time VARCHAR, set_4 VARCHAR )
SELECT away_team FROM table_name_79 WHERE date = "11 june 1966" AND home_team = "carlton"
Who was the Away team that played at Carlton on 11 June 1966?
CREATE TABLE table_name_79 (away_team VARCHAR, date VARCHAR, home_team VARCHAR)
SELECT result FROM table_21091145_1 WHERE black_knights_points = 19
Name the result for 19 black knights points
CREATE TABLE table_21091145_1 (result VARCHAR, black_knights_points VARCHAR)
SELECT "b\nscientific" FROM table_203_185 WHERE "season" = (SELECT "season" FROM table_203_185 WHERE "b\nscientific" = 'spinning a tale') - 2
which scientific challenge came two years before spinning a tale ?
CREATE TABLE table_203_185 ( id number, "season" text, "a\ntechnical" text, "b\nscientific" text, "c\nfine arts" text, "d\nimprovisational" text, "e\nstructural" text, "rising stars!\u00ae" text, "po\nprojectoutreach\u00ae" text, "university level" text )
SELECT MIN(crowd) FROM table_name_93 WHERE home_team = "carlton"
What was the smallest crowd at a home game of carlton?
CREATE TABLE table_name_93 (crowd INTEGER, home_team VARCHAR)
SELECT opponent FROM table_21091145_1 WHERE black_knights_points = 27
Name the opponent for black knights points 27
CREATE TABLE table_21091145_1 (opponent VARCHAR, black_knights_points VARCHAR)
SELECT "Venue" FROM table_37686 WHERE "Guest" = 'fk ibar'
What venue was the match against the guest team, FK ibar, played at?
CREATE TABLE table_37686 ( "Venue" text, "Home" text, "Guest" text, "Score" text, "Attendance" real )
SELECT title FROM table_name_43 WHERE year = "n.m."
What's the title for year n.m.?
CREATE TABLE table_name_43 (title VARCHAR, year VARCHAR)
SELECT date FROM table_21091157_1 WHERE game = 8
Name the date for game 8
CREATE TABLE table_21091157_1 (date VARCHAR, game VARCHAR)
SELECT v.Id, p.Id FROM Votes AS v, Posts AS p WHERE v.PostId = p.Id AND v.VoteTypeId = 1
Tinkering with votes and posts.
CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE Po...
SELECT language FROM table_name_87 WHERE translator = "ritah meltser and amatsyah porat"
What is the language for translators ritah meltser and amatsyah porat?
CREATE TABLE table_name_87 (language VARCHAR, translator VARCHAR)
SELECT COUNT(date) FROM table_21091157_1 WHERE record = "1-0"
Name the number of date for 1-0 record
CREATE TABLE table_21091157_1 (date VARCHAR, record VARCHAR)
SELECT outcome FROM table_name_77 WHERE score = "7–5, 6–3" AND date = "27 july 2003"
On 27 July 2003 what was the outcome of the game that resulted in a score of 7 5, 6 3?
CREATE TABLE table_name_77 ( outcome VARCHAR, score VARCHAR, date VARCHAR )
SELECT MIN(pages) FROM table_name_39 WHERE title = "al-jiniral fi matahatihi"
What's the fewest number of pages for the title al-jiniral fi matahatihi?
CREATE TABLE table_name_39 (pages INTEGER, title VARCHAR)
SELECT game FROM table_21091157_1 WHERE record = "1-0"
Name the game for record 1-0
CREATE TABLE table_21091157_1 (game VARCHAR, record VARCHAR)
SELECT mountains_classification FROM table_name_48 WHERE points_classification = "not awarded"
Which Mountains classification has Points classification of not awarded?
CREATE TABLE table_name_48 ( mountains_classification VARCHAR, points_classification VARCHAR )
SELECT date FROM table_name_99 WHERE name = "zouave"
What is the date for Zouave?
CREATE TABLE table_name_99 (date VARCHAR, name VARCHAR)
SELECT MAX(game) FROM table_21091157_1
Name the most game
CREATE TABLE table_21091157_1 (game INTEGER)
SELECT bulletins_to_all_contacts FROM table_name_69 WHERE creator = "gg network"
Were there Bulletins to all contacts of the license created by GG Network?
CREATE TABLE table_name_69 ( bulletins_to_all_contacts VARCHAR, creator VARCHAR )
SELECT date FROM table_name_39 WHERE name = "granville"
What is the date for the name of Granville?
CREATE TABLE table_name_39 (date VARCHAR, name VARCHAR)
SELECT MAX(game) FROM table_21091162_1 WHERE record = "3-4-0"
How many games have a record of 3-4-0?
CREATE TABLE table_21091162_1 (game INTEGER, record VARCHAR)
SELECT incumbent FROM table_1341586_39 WHERE candidates = "Bud Shuster (R) Unopposed"
who is the incumbent with candidates being bud shuster (r) unopposed
CREATE TABLE table_1341586_39 ( incumbent VARCHAR, candidates VARCHAR )
SELECT name FROM table_name_84 WHERE date = "17 march 1943" AND sunk_by = "u-305"
What is the name of the ship sunk by U-305 on 17 March 1943?
CREATE TABLE table_name_84 (name VARCHAR, date VARCHAR, sunk_by VARCHAR)
SELECT COUNT(date) FROM table_21091162_1 WHERE opponent = "Boston College"
How many dates have boston college as the opponent?
CREATE TABLE table_21091162_1 (date VARCHAR, opponent VARCHAR)
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT microbiologyevents.hadm_id FROM microbiologyevents WHERE microbiologyevents.spec_type_desc = 'blood (toxo)' AND DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year'))
calculate the number of patients who were tested for blood (toxo) microbiology in this year.
CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime ...
SELECT date FROM table_name_4 WHERE visitor = "jazz" AND leading_scorer = "mehmet okur (22)"
Which date's visitor was jazz, when the leading scorer was Mehmet Okur (22)?
CREATE TABLE table_name_4 (date VARCHAR, visitor VARCHAR, leading_scorer VARCHAR)
SELECT MAX(game) FROM table_21091162_1 WHERE opponent = "Air Force"
How many games have Air Force as the opponent?
CREATE TABLE table_21091162_1 (game INTEGER, opponent VARCHAR)
SELECT "Opponent" FROM table_14136 WHERE "TV Time" = 'bye'
Which opponent had a bye for the TV Time?
CREATE TABLE table_14136 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "TV Time" text, "Attendance" text )
SELECT club FROM table_name_27 WHERE european_cup = "fiba european champion's cup" AND national_cup = "italian cup"
What Club has Fiba European Champion's Cup and an Italian Cup?
CREATE TABLE table_name_27 (club VARCHAR, european_cup VARCHAR, national_cup VARCHAR)
SELECT COUNT(record) FROM table_21091162_1 WHERE black_knights_points = 17
How many records have black knights points as 17?
CREATE TABLE table_21091162_1 (record VARCHAR, black_knights_points VARCHAR)
SELECT MAX("First elected") FROM table_681 WHERE "Incumbent" = 'Sherrod Brown'
When was the incumbent Sherrod Brown first elected?
CREATE TABLE table_681 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text, "Candidates" text )
SELECT european_cup FROM table_name_24 WHERE national_league = "israeli premier league"
What European Cup is in Israeli Premier League?
CREATE TABLE table_name_24 (european_cup VARCHAR, national_league VARCHAR)