answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT decision FROM table_27537518_7 WHERE score = "1-7"
Who got the decision in the game, when the final score was 1-7?
CREATE TABLE table_27537518_7 (decision VARCHAR, score VARCHAR)
SELECT "Special edition" FROM table_73749 WHERE "English version" = 'Nick Stewart'
what is the special edition where the english version is nick stewart?
CREATE TABLE table_73749 ( "Character" text, "English version" text, "Laserdisc edition" text, "Buena Vista edition" text, "Special edition" text )
SELECT COUNT(attendance) FROM table_name_67 WHERE away_team = "middlesbrough"
How many people attended the Away team of middlesbrough?
CREATE TABLE table_name_67 (attendance VARCHAR, away_team VARCHAR)
SELECT date FROM table_27537518_7 WHERE first_star = "M. Grabovski"
What date was M. Grabovski the first start of the game?
CREATE TABLE table_27537518_7 (date VARCHAR, first_star VARCHAR)
SELECT "name" FROM table_204_160 ORDER BY "time" DESC LIMIT 1
who had the slowest time in the race ?
CREATE TABLE table_204_160 ( id number, "rank" number, "name" text, "nationality" text, "time" text, "notes" text )
SELECT score FROM table_name_98 WHERE away_team = "middlesbrough"
Which Score has an Away team of middlesbrough?
CREATE TABLE table_name_98 (score VARCHAR, away_team VARCHAR)
SELECT record FROM table_27537518_9 WHERE opponent = "Carolina Hurricanes"
What was the record for the game where the opponent was the Carolina Hurricanes?
CREATE TABLE table_27537518_9 (record VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_48 WHERE date = "september 11"
Name the score for september 11
CREATE TABLE table_name_48 ( score VARCHAR, date VARCHAR )
SELECT years_as_tallest FROM table_name_81 WHERE street_address = "01.0 10 light street"
WHAT IS THE YEARS AS TALLEST WITH 01.0 10 light street?
CREATE TABLE table_name_81 (years_as_tallest VARCHAR, street_address VARCHAR)
SELECT date FROM table_27537518_9 WHERE record = "27-28-11"
On which date was the record of 27-28-11 set?
CREATE TABLE table_27537518_9 (date VARCHAR, record VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "DIVORCED" AND lab.label = "Chloride"
how many divorcee patients had a lab test for chloride?
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, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE 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 SUM(floors) FROM table_name_57 WHERE street_address = "01.0 10 light street"
WHAT IS THE FLOOR NUMBERS WITH 01.0 10 light street?
CREATE TABLE table_name_57 (floors INTEGER, street_address VARCHAR)
SELECT decision FROM table_27537518_9 WHERE record = "29-28-12"
Who made the decision on the game where the record was 29-28-12?
CREATE TABLE table_27537518_9 (decision VARCHAR, record VARCHAR)
SELECT COUNT("Bronze") FROM table_45938 WHERE "Silver" > '0' AND "Gold" > '3' AND "Rank" = '1'
What is the total number of Bronze, when Silver is greater than 0, when Gold is greater than 3, and when Rank is 1?
CREATE TABLE table_45938 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT years_as_tallest FROM table_name_10 WHERE floors < 24 AND street_address = "05.0 210 north charles street"
WHAT IS THE YEAR'S TALLEST VALUE WITH FLOORS LESS THAN 24, AND 05.0 210 north charles street?
CREATE TABLE table_name_10 (years_as_tallest VARCHAR, floors VARCHAR, street_address VARCHAR)
SELECT decision FROM table_27537518_9 WHERE record = "27-28-11"
Who made the decision on the game where the record was 27-28-11?
CREATE TABLE table_27537518_9 (decision VARCHAR, record VARCHAR)
SELECT "High rebounds" FROM table_50276 WHERE "High points" = 'chris bosh (34)'
Which High rebounds have High points of chris bosh (34)?
CREATE TABLE table_50276 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT name FROM table_name_63 WHERE street_address = "01.0 10 light street"
WHAT IS THE NAME WITH 01.0 10 light street?
CREATE TABLE table_name_63 (name VARCHAR, street_address VARCHAR)
SELECT score FROM table_27539272_4 WHERE game = 5
Name the score for game 5
CREATE TABLE table_27539272_4 (score VARCHAR, game VARCHAR)
SELECT year, COUNT(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' GROUP BY T1.year ORDER BY year DESC
What is the number of wins the team Boston Red Stockings got in the postseasons each year in history Show the tendency, I want to list X in desc order.
CREATE TABLE manager_award_vote ( award_id TEXT, year INTEGER, league_id TEXT, player_id TEXT, points_won INTEGER, points_max INTEGER, votes_first INTEGER ) CREATE TABLE player_award_vote ( award_id TEXT, year INTEGER, league_id TEXT, player_id TEXT, points_won NUMERIC, points_max INTEGER, votes_first NUMERIC ) CREATE TABLE all_star ( player_id TEXT, year INTEGER, game_num INTEGER, game_id TEXT, team_id TEXT, league_id TEXT, gp NUMERIC, starting_pos NUMERIC ) CREATE TABLE batting ( player_id TEXT, year INTEGER, stint INTEGER, team_id TEXT, league_id TEXT, g INTEGER, ab NUMERIC, r NUMERIC, h NUMERIC, double NUMERIC, triple NUMERIC, hr NUMERIC, rbi NUMERIC, sb NUMERIC, cs NUMERIC, bb NUMERIC, so NUMERIC, ibb NUMERIC, hbp NUMERIC, sh NUMERIC, sf NUMERIC, g_idp NUMERIC ) CREATE TABLE pitching_postseason ( player_id TEXT, year INTEGER, round TEXT, team_id TEXT, league_id TEXT, w INTEGER, l INTEGER, g INTEGER, gs INTEGER, cg INTEGER, sho INTEGER, sv INTEGER, ipouts INTEGER, h INTEGER, er INTEGER, hr INTEGER, bb INTEGER, so INTEGER, baopp TEXT, era NUMERIC, ibb NUMERIC, wp NUMERIC, hbp NUMERIC, bk NUMERIC, bfp NUMERIC, gf INTEGER, r INTEGER, sh NUMERIC, sf NUMERIC, g_idp NUMERIC ) CREATE TABLE college ( college_id TEXT, name_full TEXT, city TEXT, state TEXT, country TEXT ) CREATE TABLE batting_postseason ( year INTEGER, round TEXT, player_id TEXT, team_id TEXT, league_id TEXT, g INTEGER, ab INTEGER, r INTEGER, h INTEGER, double INTEGER, triple INTEGER, hr INTEGER, rbi INTEGER, sb INTEGER, cs NUMERIC, bb INTEGER, so INTEGER, ibb NUMERIC, hbp NUMERIC, sh NUMERIC, sf NUMERIC, g_idp NUMERIC ) CREATE TABLE manager_award ( player_id TEXT, award_id TEXT, year INTEGER, league_id TEXT, tie TEXT, notes NUMERIC ) CREATE TABLE team_half ( year INTEGER, league_id TEXT, team_id TEXT, half INTEGER, div_id TEXT, div_win TEXT, rank INTEGER, g INTEGER, w INTEGER, l INTEGER ) CREATE TABLE postseason ( year INTEGER, round TEXT, team_id_winner TEXT, league_id_winner TEXT, team_id_loser TEXT, league_id_loser TEXT, wins INTEGER, losses INTEGER, ties INTEGER ) CREATE TABLE team ( year INTEGER, league_id TEXT, team_id TEXT, franchise_id TEXT, div_id TEXT, rank INTEGER, g INTEGER, ghome NUMERIC, w INTEGER, l INTEGER, div_win TEXT, wc_win TEXT, lg_win TEXT, ws_win TEXT, r INTEGER, ab INTEGER, h INTEGER, double INTEGER, triple INTEGER, hr INTEGER, bb INTEGER, so NUMERIC, sb NUMERIC, cs NUMERIC, hbp NUMERIC, sf NUMERIC, ra INTEGER, er INTEGER, era NUMERIC, cg INTEGER, sho INTEGER, sv INTEGER, ipouts INTEGER, ha INTEGER, hra INTEGER, bba INTEGER, soa INTEGER, e INTEGER, dp NUMERIC, fp NUMERIC, name TEXT, park TEXT, attendance NUMERIC, bpf INTEGER, ppf INTEGER, team_id_br TEXT, team_id_lahman45 TEXT, team_id_retro TEXT ) CREATE TABLE fielding ( player_id TEXT, year INTEGER, stint INTEGER, team_id TEXT, league_id TEXT, pos TEXT, g INTEGER, gs NUMERIC, inn_outs NUMERIC, po NUMERIC, a NUMERIC, e NUMERIC, dp NUMERIC, pb NUMERIC, wp NUMERIC, sb NUMERIC, cs NUMERIC, zr NUMERIC ) CREATE TABLE fielding_postseason ( player_id TEXT, year INTEGER, team_id TEXT, league_id TEXT, round TEXT, pos TEXT, g INTEGER, gs NUMERIC, inn_outs NUMERIC, po INTEGER, a INTEGER, e INTEGER, dp INTEGER, tp INTEGER, pb NUMERIC, sb NUMERIC, cs NUMERIC ) CREATE TABLE appearances ( year INTEGER, team_id TEXT, league_id TEXT, player_id TEXT, g_all NUMERIC, gs NUMERIC, g_batting INTEGER, g_defense NUMERIC, g_p INTEGER, g_c INTEGER, g_1b INTEGER, g_2b INTEGER, g_3b INTEGER, g_ss INTEGER, g_lf INTEGER, g_cf INTEGER, g_rf INTEGER, g_of INTEGER, g_dh NUMERIC, g_ph NUMERIC, g_pr NUMERIC ) CREATE TABLE manager_half ( player_id TEXT, year INTEGER, team_id TEXT, league_id TEXT, inseason INTEGER, half INTEGER, g INTEGER, w INTEGER, l INTEGER, rank INTEGER ) CREATE TABLE team_franchise ( franchise_id TEXT, franchise_name TEXT, active TEXT, na_assoc TEXT ) CREATE TABLE hall_of_fame ( player_id TEXT, yearid INTEGER, votedby TEXT, ballots NUMERIC, needed NUMERIC, votes NUMERIC, inducted TEXT, category TEXT, needed_note TEXT ) CREATE TABLE park ( park_id TEXT, park_name TEXT, park_alias TEXT, city TEXT, state TEXT, country TEXT ) CREATE TABLE salary ( year INTEGER, team_id TEXT, league_id TEXT, player_id TEXT, salary INTEGER ) CREATE TABLE pitching ( player_id TEXT, year INTEGER, stint INTEGER, team_id TEXT, league_id TEXT, w INTEGER, l INTEGER, g INTEGER, gs INTEGER, cg INTEGER, sho INTEGER, sv INTEGER, ipouts NUMERIC, h INTEGER, er INTEGER, hr INTEGER, bb INTEGER, so INTEGER, baopp NUMERIC, era NUMERIC, ibb NUMERIC, wp NUMERIC, hbp NUMERIC, bk INTEGER, bfp NUMERIC, gf NUMERIC, r INTEGER, sh NUMERIC, sf NUMERIC, g_idp NUMERIC ) CREATE TABLE manager ( player_id TEXT, year INTEGER, team_id TEXT, league_id TEXT, inseason INTEGER, g INTEGER, w INTEGER, l INTEGER, rank NUMERIC, plyr_mgr TEXT ) CREATE TABLE player ( player_id TEXT, birth_year NUMERIC, birth_month NUMERIC, birth_day NUMERIC, birth_country TEXT, birth_state TEXT, birth_city TEXT, death_year NUMERIC, death_month NUMERIC, death_day NUMERIC, death_country TEXT, death_state TEXT, death_city TEXT, name_first TEXT, name_last TEXT, name_given TEXT, weight NUMERIC, height NUMERIC, bats TEXT, throws TEXT, debut TEXT, final_game TEXT, retro_id TEXT, bbref_id TEXT ) CREATE TABLE player_college ( player_id TEXT, college_id TEXT, year INTEGER ) CREATE TABLE player_award ( player_id TEXT, award_id TEXT, year INTEGER, league_id TEXT, tie TEXT, notes TEXT ) CREATE TABLE fielding_outfield ( player_id TEXT, year INTEGER, stint INTEGER, glf NUMERIC, gcf NUMERIC, grf NUMERIC ) CREATE TABLE home_game ( year INTEGER, league_id TEXT, team_id TEXT, park_id TEXT, span_first TEXT, span_last TEXT, games INTEGER, openings INTEGER, attendance INTEGER )
SELECT name FROM table_name_20 WHERE height = "m (ft 1in)"
What is the Name of the Player with a Height of m (ft 1in)?
CREATE TABLE table_name_20 (name VARCHAR, height VARCHAR)
SELECT MAX(points) FROM table_27539272_4 WHERE record = "1-3-1"
Name the most points for 1-3-1 record
CREATE TABLE table_27539272_4 (points INTEGER, record VARCHAR)
SELECT "NGC number" FROM table_55302 WHERE "Right ascension ( J2000 )" = '08h11m13.6s'
I want the NGC number for right ascension of 08h11m13.6s
CREATE TABLE table_55302 ( "NGC number" real, "Object type" text, "Constellation" text, "Right ascension ( J2000 )" text, "Declination ( J2000 )" text, "Apparent magnitude" real )
SELECT weight FROM table_name_43 WHERE name = "tatyana gubina"
What is Tatyana Gubina's Weight?
CREATE TABLE table_name_43 (weight VARCHAR, name VARCHAR)
SELECT record FROM table_27539272_4 WHERE location_attendance = "Prudential Center - 12,880"
Name the record for prudential center - 12,880
CREATE TABLE table_27539272_4 (record VARCHAR, location_attendance VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.long_title = "Other drugs and medicinal substances causing adverse effects in therapeutic use"
provide the number of patients whose admission type is emergency and diagnoses long title is other drugs and medicinal substances causing adverse effects in therapeutic use?
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, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear 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 ) 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 )
SELECT pos FROM table_name_86 WHERE name = "alyona klimenko"
What is Alyona Klimenko's Pos.?
CREATE TABLE table_name_86 (pos VARCHAR, name VARCHAR)
SELECT COUNT(record) FROM table_27539272_4 WHERE location_attendance = "HP Pavilion - 17,562"
Name the number of record for hp pavilion - 17,562
CREATE TABLE table_27539272_4 (record VARCHAR, location_attendance VARCHAR)
SELECT "Examples" FROM table_1763 WHERE "Australian" = 'et'
which examples are pronounced et in australian
CREATE TABLE table_1763 ( "Ending" text, "American" text, "British" text, "Australian" text, "Examples" text )
SELECT third_place FROM table_name_23 WHERE total > 2 AND rank < 2
How many third places has a total greater than 2 and a rank less than 2?
CREATE TABLE table_name_23 (third_place VARCHAR, total VARCHAR, rank VARCHAR)
SELECT COUNT(october) FROM table_27537870_3 WHERE score = "6-1"
On how many days in October was the score 6-1?
CREATE TABLE table_27537870_3 (october VARCHAR, score VARCHAR)
SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-37411') AND patient.unitdischargetime IS NULL) AND NOT vitalperiodic.sao2 IS NULL ORDER BY vitalperiodic.observationtime DESC LIMIT 1
when did patient 012-37411 last have a sao2 measured on the current icu visit?
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time )
SELECT r_bacon FROM table_name_98 WHERE county = "passaic"
What is the number for R Bacon in Passaic County?
CREATE TABLE table_name_98 (r_bacon VARCHAR, county VARCHAR)
SELECT location_attendance FROM table_27537870_3 WHERE record = "3-5-1"
What is the location and what was the attendance on those days when the score was 3-5-1?
CREATE TABLE table_27537870_3 (location_attendance VARCHAR, record VARCHAR)
SELECT ROW_NUMBER() OVER (ORDER BY b.Date DESC), b.UserId AS "user_link", b.Date AS got_gold_python, u.Reputation AS rep FROM Users AS u, Badges AS b WHERE b.Name = 'python' AND b.Class = 1 AND u.Id = b.UserId GROUP BY b.Date, b.UserId, u.Reputation
Python gold badgers ordered by date.
CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) 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, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDate time, ApprovalModeratorId number, DeactivationDate time, DeactivationModeratorId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) 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 Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE PostTypes ( Id number, Name text ) 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 )
SELECT d_shulman FROM table_name_9 WHERE c_abate = "728 (43%)"
What is the number for D. Shulman if C. Abate has 728 (43%)
CREATE TABLE table_name_9 (d_shulman VARCHAR, c_abate VARCHAR)
SELECT COUNT(location_attendance) FROM table_27537870_3 WHERE record = "2-5-1"
How many times was the sabres record 2-5-1?
CREATE TABLE table_27537870_3 (location_attendance VARCHAR, record VARCHAR)
SELECT "Date" FROM table_51888 WHERE "Away team score" = '16.13 (109)'
Which Date has an Away team score of 16.13 (109)?
CREATE TABLE table_51888 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT county FROM table_name_4 WHERE c_abate = "728 (43%)"
Which county has 728 (43%) listed under C. Abate?
CREATE TABLE table_name_4 (county VARCHAR, c_abate VARCHAR)
SELECT location_attendance FROM table_27539272_7 WHERE game = 41
What was the location and attendance for game 41?
CREATE TABLE table_27539272_7 (location_attendance VARCHAR, game VARCHAR)
SELECT game FROM table_name_1 WHERE date = "may 29"
What game was played on May 29?
CREATE TABLE table_name_1 ( game VARCHAR, date VARCHAR )
SELECT d_shulman FROM table_name_12 WHERE county = "warren"
What are the numbers for D. Shulman in Warren County?
CREATE TABLE table_name_12 (d_shulman VARCHAR, county VARCHAR)
SELECT MAX(january) FROM table_27539272_7 WHERE record = "10-29-2"
On what day of January was the record 10-29-2?
CREATE TABLE table_27539272_7 (january INTEGER, record VARCHAR)
SELECT category FROM table_name_33 WHERE year > 2004
What category has a year after 2004?
CREATE TABLE table_name_33 ( category VARCHAR, year INTEGER )
SELECT county FROM table_name_51 WHERE precincts = "90/90"
Which County has Precincts of 90/90?
CREATE TABLE table_name_51 (county VARCHAR, precincts VARCHAR)
SELECT MAX(points) FROM table_27539272_7 WHERE score = "1-2"
What are the most points scored in a game where the score was 1-2?
CREATE TABLE table_27539272_7 (points INTEGER, score VARCHAR)
SELECT tournament FROM table_name_43 WHERE score = "3–6 6–4 4–6"
Which Tournament has a Score of 3 6 6 4 4 6?
CREATE TABLE table_name_43 ( tournament VARCHAR, score VARCHAR )
SELECT county FROM table_name_92 WHERE r_bacon = "438 (4%)"
Which county has 438 (4%) listed under R. Bacon?
CREATE TABLE table_name_92 (county VARCHAR, r_bacon VARCHAR)
SELECT MAX(january) FROM table_27539272_7 WHERE record = "15-29-3"
On what day in January was the record 15-29-3?
CREATE TABLE table_27539272_7 (january INTEGER, record VARCHAR)
SELECT "Callsign" FROM table_26387 WHERE "Power kW" = '25kW'
What is the callsign when power kw is 25kw?
CREATE TABLE table_26387 ( "Branding" text, "Callsign" text, "Frequency" text, "Power kW" text, "Coverage" text )
SELECT format FROM table_name_57 WHERE album = "pacific ocean blue" AND year = 1991
What is the format of the album Pacific Ocean Blue in 1991?
CREATE TABLE table_name_57 (format VARCHAR, album VARCHAR, year VARCHAR)
SELECT opponent FROM table_27539535_5 WHERE record = "5-18-5"
Against what team did the Islanders have a 5-18-5 record?
CREATE TABLE table_27539535_5 (opponent VARCHAR, record VARCHAR)
SELECT MIN(founded) FROM table_2439728_1 WHERE school = "Lawrence Academy at Groton"
when was lawrence academy at groton established?
CREATE TABLE table_2439728_1 ( founded INTEGER, school VARCHAR )
SELECT artist FROM table_name_38 WHERE catalog__number = "zk 34354"
Who is the artist with catalog number ZK 34354?
CREATE TABLE table_name_38 (artist VARCHAR, catalog__number VARCHAR)
SELECT opponent FROM table_27539535_5 WHERE score = "5-4"
Against what opponent did the game end 5-4?
CREATE TABLE table_27539535_5 (opponent VARCHAR, score VARCHAR)
SELECT winner FROM table_name_33 WHERE circuit = "june 8"
What is Winner, when Circuit is June 8?
CREATE TABLE table_name_33 ( winner VARCHAR, circuit VARCHAR )
SELECT height FROM table_name_19 WHERE name = "james stanton"
How tall is player James Stanton?
CREATE TABLE table_name_19 (height VARCHAR, name VARCHAR)
SELECT COUNT(december) FROM table_27539535_5 WHERE record = "9-19-6"
How many games were played against a team with a 9-19-6 record against the Islanders?
CREATE TABLE table_27539535_5 (december VARCHAR, record VARCHAR)
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.credits = 11 AND program_course.category LIKE 'ULCS'
Which of the upper-level classes being offered are 11 credits ?
CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) 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 varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) 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 int, respected int, participation int, heavy_reading int, tough_grader int, hilarious int, would_take_again int, good_lecture int, no_skip int ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) 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 ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_projects varchar, has_exams varchar, num_reviews int, clarity_score int, easiness_score int, helpfulness_score int ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_project varchar, has_final_exam varchar, textbook varchar, class_address varchar, allow_audit varchar )
SELECT name FROM table_name_58 WHERE club = "sydney university lions"
Which player is on the roster for the Sydney University Lions?
CREATE TABLE table_name_58 (name VARCHAR, club VARCHAR)
SELECT COUNT(opponent) FROM table_27539808_3 WHERE october = 9
How many games did they play on october 9?
CREATE TABLE table_27539808_3 (opponent VARCHAR, october VARCHAR)
SELECT "Opponent" FROM table_45699 WHERE "Surface" = 'clay' AND "Date" = 'november 22, 2009'
Who is the opponent on November 22, 2009, clay surface?
CREATE TABLE table_45699 ( "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text )
SELECT height FROM table_name_63 WHERE name = "james stanton"
What is the height of player James Stanton?
CREATE TABLE table_name_63 (height VARCHAR, name VARCHAR)
SELECT MIN(points) FROM table_27539808_5 WHERE game = 32
What is the lowest number of points for game 32?
CREATE TABLE table_27539808_5 (points INTEGER, game VARCHAR)
SELECT "Seats" FROM table_67723 WHERE "Year" > '1993' AND "% votes" = '38.72'
After 1993, what is the Seats with a % votes of 38.72?
CREATE TABLE table_67723 ( "Year" real, "Designation" text, "% votes" real, "Seats" text, "% seats" real )
SELECT MAX(draft) FROM table_name_89 WHERE round > 2 AND nationality = "united states" AND pick < 113
What is the highest draft after round 2, is from the United States and has picked less than 113?
CREATE TABLE table_name_89 (draft INTEGER, pick VARCHAR, round VARCHAR, nationality VARCHAR)
SELECT location_attendance FROM table_27539808_5 WHERE december = 1
What is the location and attendance total from the game on December 1?
CREATE TABLE table_27539808_5 (location_attendance VARCHAR, december VARCHAR)
SELECT MAX(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.insurance = "Private"
calculate the maximum age of patients who are female and have private insurance.
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 ) 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 text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT AVG(draft) FROM table_name_45 WHERE pick > 42 AND player = "grant eakin" AND round > 8
What is the average draft with a pick larger than 42, and player Grant Eakin after round 8?
CREATE TABLE table_name_45 (draft INTEGER, round VARCHAR, pick VARCHAR, player VARCHAR)
SELECT directed_by FROM table_27547668_3 WHERE viewers = 899000
Who directed the episode with 899000 viewers?
CREATE TABLE table_27547668_3 (directed_by VARCHAR, viewers VARCHAR)
SELECT highest FROM table_237757_10 WHERE average = 10295
What was the entry for highest when average is 10295?
CREATE TABLE table_237757_10 ( highest VARCHAR, average VARCHAR )
SELECT venue FROM table_name_9 WHERE competition = "2000 afc asian cup qualification"
What venue was the 2000 AFC Asian Cup qualification held at?
CREATE TABLE table_name_9 (venue VARCHAR, competition VARCHAR)
SELECT MIN(_number) FROM table_27547668_3
What is the smallest numbered episode in the series listed?
CREATE TABLE table_27547668_3 (_number INTEGER)
SELECT MAX("Round1") FROM table_3137 WHERE "Total points" = '132'
How many points did the team who had 132 total points have in round 1?
CREATE TABLE table_3137 ( "Rank" real, "Team" text, "Round1" real, "Round2" real, "Round3" real, "Round4" real, "Total points" real )
SELECT MIN(goals) FROM table_name_40 WHERE matches < 29
What were the lowest goals when the matches were smaller than 29?
CREATE TABLE table_name_40 (goals INTEGER, matches INTEGER)
SELECT viewers FROM table_27547668_3 WHERE _number = 13
How many people watched episode number 13?
CREATE TABLE table_27547668_3 (viewers VARCHAR, _number VARCHAR)
SELECT "Category" FROM table_24571 WHERE "Train No." = '16609/16610'
What is the category for trains numbered 16609/16610?
CREATE TABLE table_24571 ( "Train No." text, "Train Name" text, "Destination" text, "Category" text, "Frequency" text )
SELECT MIN(matches) FROM table_name_42 WHERE goals > 36
What is the lowest match for goals larger than 36?
CREATE TABLE table_name_42 (matches INTEGER, goals INTEGER)
SELECT no FROM table_27547668_3 WHERE written_by = "Greg Nelson" AND directed_by = "Keith Samples"
What episode number in the season was written by Greg nelson and directed by Keith samples?
CREATE TABLE table_27547668_3 (no VARCHAR, written_by VARCHAR, directed_by VARCHAR)
SELECT "Finish" FROM table_28176 WHERE "Vote" = '4-4'
Name the finish for 4-4
CREATE TABLE table_28176 ( "Episode" real, "Reward" text, "Leader Battle" text, "Immunity" text, "Individual Immunity" text, "Eliminated" text, "Vote" text, "Finish" text )
SELECT SUM(sno) FROM table_name_53 WHERE completion_schedule = "2013"
For the 2013 completion schedule, what is the total S.no.?
CREATE TABLE table_name_53 (sno INTEGER, completion_schedule VARCHAR)
SELECT title FROM table_27547668_2 WHERE prod_code = 102
What is the title of the episode with production code 102?
CREATE TABLE table_27547668_2 (title VARCHAR, prod_code VARCHAR)
SELECT builder FROM table_name_84 WHERE completed < 1890 AND launched = "9 june 1888"
Which builder completed before 1890 and launched on 9 june 1888?
CREATE TABLE table_name_84 ( builder VARCHAR, completed VARCHAR, launched VARCHAR )
SELECT completion_schedule FROM table_name_96 WHERE state = "himachal pradesh" AND total_capacity__mw_ = 800
What is the completion schedule for himachal pradesh state with a total capacity (MW) of 800?
CREATE TABLE table_name_96 (completion_schedule VARCHAR, state VARCHAR, total_capacity__mw_ VARCHAR)
SELECT original_airdate FROM table_27547668_2 WHERE _number = 6
What is the original air date of # 6?
CREATE TABLE table_27547668_2 (original_airdate VARCHAR, _number VARCHAR)
SELECT notes FROM table_name_41 WHERE competition = "all-africa games" AND year < 2007
What were the notes of the All-Africa Games before 2007?
CREATE TABLE table_name_41 ( notes VARCHAR, competition VARCHAR, year VARCHAR )
SELECT MIN(sno) FROM table_name_9 WHERE state = "jammu & kashmir" AND completion_schedule = "2016"
When the completion schedule is 2016 for the state of jammu & kashmir, what is the smallest S.no.?
CREATE TABLE table_name_9 (sno INTEGER, state VARCHAR, completion_schedule VARCHAR)
SELECT original_airdate FROM table_27547668_2 WHERE viewers = 908000
What is the original air date of the episode with 908000 viewers?
CREATE TABLE table_27547668_2 (original_airdate VARCHAR, viewers VARCHAR)
SELECT T2.Name, T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID
Show the names of trains and locations of railways they are in.
CREATE TABLE train ( Name VARCHAR, Railway_ID VARCHAR ) CREATE TABLE railway ( Location VARCHAR, Railway_ID VARCHAR )
SELECT 2009 FROM table_name_32 WHERE 2012 = "a" AND 2011 = "1r" AND tournament = "shanghai masters"
What is the 2009 value of the shanghai masters, which was A in 2012 and 1r in 2011?
CREATE TABLE table_name_32 (tournament VARCHAR)
SELECT COUNT(season) AS premiere FROM table_27553627_2 WHERE viewers__in_millions_ = "15.27"
How many season premieres had 15.27 million viewers?
CREATE TABLE table_27553627_2 (season VARCHAR, viewers__in_millions_ VARCHAR)
SELECT method FROM table_name_83 WHERE opponent = "dale hartt"
What was the method of resolution for the fight against dale hartt?
CREATE TABLE table_name_83 ( method VARCHAR, opponent VARCHAR )
SELECT 2011 FROM table_name_34 WHERE 2008 = "a" AND 2012 = "a" AND 2009 = "a" AND tournament = "paris masters"
What is the 2011 value of the paris masters, which had A in 2008, A in 2012, A in 2009?
CREATE TABLE table_name_34 (tournament VARCHAR)
SELECT season AS finale FROM table_27553627_2 WHERE rank = "20th"
When was the season finale that ranked 20th?
CREATE TABLE table_27553627_2 (season VARCHAR, rank VARCHAR)
SELECT DISTINCT airport_service.miles_distant FROM airport_service, city WHERE city.city_code = airport_service.city_code AND city.city_name = 'SAN FRANCISCO'
how far is the airport from SAN FRANCISCO
CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) 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_miles int, pressurized varchar ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, departure_time int, departure_airline text, departure_flight_number int, stop_time int ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE fare ( fare_id int, from_airport varchar, to_airport varchar, fare_basis_code text, fare_airline text, restriction_code text, one_direction_cost int, round_trip_cost int, round_trip_required varchar ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE airport ( airport_code varchar, airport_name text, airport_location text, state_code varchar, country_name varchar, time_zone_code varchar, minimum_connect_time int ) CREATE TABLE flight ( aircraft_code_sequence text, airline_code varchar, airline_flight text, arrival_time int, connections int, departure_time int, dual_carrier text, flight_days text, flight_id int, flight_number int, from_airport varchar, meal_code text, stops int, time_elapsed int, to_airport varchar ) CREATE TABLE fare_basis ( fare_basis_code text, booking_class text, class_type text, premium text, economy text, discounted text, night text, season text, basis_days text ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar )
SELECT 2012 FROM table_name_45 WHERE tournament = "hamburg masters"
What is the 2012 of the hamburg masters?
CREATE TABLE table_name_45 (tournament VARCHAR)
SELECT tv_season FROM table_27553627_2 WHERE viewers__in_millions_ = "14.54"
What tv season year had 14.54 million viewers?
CREATE TABLE table_27553627_2 (tv_season VARCHAR, viewers__in_millions_ VARCHAR)
SELECT MIN(clubs) FROM table_name_88 WHERE place > 5 AND all_around > 9.7
What are the lowest clubs that have a place greater than 5, with an all around greater than 9.7?
CREATE TABLE table_name_88 ( clubs INTEGER, place VARCHAR, all_around VARCHAR )
SELECT 2008 FROM table_name_30 WHERE tournament = "hamburg masters"
What is the 2008 value of the hamburg masters?
CREATE TABLE table_name_30 (tournament VARCHAR)
SELECT MAX(episodes) FROM table_27553627_2 WHERE viewers__in_millions_ = "14.41"
What episode number had 14.41 million viewers?
CREATE TABLE table_27553627_2 (episodes INTEGER, viewers__in_millions_ VARCHAR)