answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT date FROM table_name_85 WHERE outcome = "runner-up" AND surface = "carpet"
Which Date had an Outcome of runner-up, and a Surface of carpet?
CREATE TABLE table_name_85 (date VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT venue FROM table_name_99 WHERE club = "west bromwich albion"
Which Venue has a Club of west bromwich albion?
CREATE TABLE table_name_99 ( venue VARCHAR, club VARCHAR )
SELECT score FROM table_27756164_2 WHERE high_points = "Danny Granger (30)"
What was the score of the game in which Danny Granger (30) did the high points?
CREATE TABLE table_27756164_2 (score VARCHAR, high_points VARCHAR)
SELECT surface FROM table_name_57 WHERE opponent = "fernanda hermenegildo monika kochanova"
Which Surface had an Opponent of fernanda hermenegildo monika kochanova?
CREATE TABLE table_name_57 (surface VARCHAR, opponent VARCHAR)
SELECT COUNT(DISTINCT "date") FROM table_203_138 WHERE "competition" <> 'friendly'
how many competitions were not friendly ?
CREATE TABLE table_203_138 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "score" text, "result" text, "competition" text )
SELECT high_points FROM table_27756014_6 WHERE team = "Houston"
Who scored the most points when the Bucks played against Houston?
CREATE TABLE table_27756014_6 (high_points VARCHAR, team VARCHAR)
SELECT opponent_number FROM table_name_19 WHERE attendance = "42,000"
Who was the opponent in the game that was attended by 42,000 people?
CREATE TABLE table_name_19 (opponent_number VARCHAR, attendance VARCHAR)
SELECT "No" FROM table_26227 WHERE "Height (m)" = '1.96'
Name the number for 1.96 height
CREATE TABLE table_26227 ( "No" real, "Player" text, "Height (m)" text, "Height (f)" text, "Position" text, "Year born" real, "Current Club" text )
SELECT date FROM table_27756014_6 WHERE game = 22
What date was game number 22 on?
CREATE TABLE table_27756014_6 (date VARCHAR, game VARCHAR)
SELECT opponent_number FROM table_name_93 WHERE attendance = "48,000"
Who was the opponent in the game that was attended by 48,000 people?
CREATE TABLE table_name_93 (opponent_number VARCHAR, attendance VARCHAR)
SELECT "Religion" FROM table_30291 WHERE "Growth rate" = '1.56%'
Name the religion that has a growth rate of 1.56%
CREATE TABLE table_30291 ( "Religion" text, "Births" real, "Conversions" text, "New adherents per year" real, "Growth rate" text )
SELECT COUNT(high_points) FROM table_27756014_6 WHERE date = "December 10"
How many people scored the most points during the game on December 10?
CREATE TABLE table_27756014_6 (high_points VARCHAR, date VARCHAR)
SELECT date FROM table_name_88 WHERE opponent_number = "michigan"
On what day(s) did the Gophers play against Michigan?
CREATE TABLE table_name_88 (date VARCHAR, opponent_number VARCHAR)
SELECT MIN(total) FROM table_name_32 WHERE nation = "italy" AND silver < 0
What is the lowest Total for Italy with less than 0 silver?
CREATE TABLE table_name_32 ( total INTEGER, nation VARCHAR, silver VARCHAR )
SELECT location_attendance FROM table_27756164_8 WHERE team = "Chicago"
When the team is chicago what is the location attendence?
CREATE TABLE table_27756164_8 (location_attendance VARCHAR, team VARCHAR)
SELECT result FROM table_name_47 WHERE attendance = "16,000"
What was the result of the game that was attended by 16,000 people?
CREATE TABLE table_name_47 (result VARCHAR, attendance VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BLADDER CANCER/SDA" AND demographic.dod_year <= "2173.0"
Tell me the number of patients with bladder cancer/sda primary disease who died in or before 2173.
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 ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(score) FROM table_27756164_8 WHERE team = "Orlando"
What is the score when the team is Orlando?
CREATE TABLE table_27756164_8 (score VARCHAR, team VARCHAR)
SELECT season FROM table_name_18 WHERE agg = "4–1" AND opponent = "rapid wien"
Which Season has an Agg of 4–1, and an Opponent of rapid wien?
CREATE TABLE table_name_18 (season VARCHAR, agg VARCHAR, opponent VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "50915"
provide the number of patients whose item id is 50915?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) 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 ( 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 )
SELECT score FROM table_27756572_10 WHERE date = "March 26"
What was the score in the game on March 26?
CREATE TABLE table_27756572_10 (score VARCHAR, date VARCHAR)
SELECT home FROM table_name_15 WHERE opponent = "brøndby"
Which Home has an Opponent of brøndby?
CREATE TABLE table_name_15 (home VARCHAR, opponent VARCHAR)
SELECT COUNT("Hole") FROM table_7279 WHERE "Player" = 'vijay singh'
How many holes does Player Vijay Singh have?
CREATE TABLE table_7279 ( "Place" text, "Player" text, "Country" text, "To par" text, "Hole" real )
SELECT record FROM table_27756572_10 WHERE team = "Philadelphia"
What was the record when the Clippers played Philadelphia?
CREATE TABLE table_27756572_10 (record VARCHAR, team VARCHAR)
SELECT away FROM table_name_7 WHERE opponent = "slavia prague"
Which Away has an Opponent of slavia prague?
CREATE TABLE table_name_7 (away VARCHAR, opponent VARCHAR)
SELECT runner_up FROM table_name_49 WHERE year < 2008 AND champion = "josé acasuso"
Which Runner-up has a Year smaller than 2008, and a Champion of jos acasuso?
CREATE TABLE table_name_49 ( runner_up VARCHAR, year VARCHAR, champion VARCHAR )
SELECT location_attendance FROM table_27756474_2 WHERE game = 5
What location and attendance were there for game 5?
CREATE TABLE table_27756474_2 (location_attendance VARCHAR, game VARCHAR)
SELECT away FROM table_name_93 WHERE competition = "uefa cup" AND opponent = "anderlecht"
Which Away has a Competition of uefa cup, and an Opponent of anderlecht?
CREATE TABLE table_name_93 (away VARCHAR, competition VARCHAR, opponent VARCHAR)
SELECT "Time/Retired" FROM table_51465 WHERE "Grid" = '9'
What's the time for someone on grid 9?
CREATE TABLE table_51465 ( "Driver" text, "Constructor" text, "Laps" text, "Time/Retired" text, "Grid" text )
SELECT game FROM table_27756474_2 WHERE high_points = "Rudy Gay (12)"
Which game did rudy gay (12) have the highest points?
CREATE TABLE table_27756474_2 (game VARCHAR, high_points VARCHAR)
SELECT away FROM table_name_84 WHERE home = "2–2"
Which Away has a Home of 2–2?
CREATE TABLE table_name_84 (away VARCHAR, home VARCHAR)
SELECT final_placing FROM table_name_17 WHERE season = 2009
What was the 2009 final placing?
CREATE TABLE table_name_17 ( final_placing VARCHAR, season VARCHAR )
SELECT COUNT(high_assists) FROM table_27756474_2 WHERE team = "Caja Laboral"
How many high assists where there for the team of caja laboral?
CREATE TABLE table_27756474_2 (high_assists VARCHAR, team VARCHAR)
SELECT away FROM table_name_69 WHERE season = "2001–02" AND opponent = "dinaburg"
Which Away has a Season of 2001–02, and an Opponent of dinaburg?
CREATE TABLE table_name_69 (away VARCHAR, season VARCHAR, opponent VARCHAR)
SELECT bsu_head_coach FROM table_name_76 WHERE opponent = "louisville" AND year > 1994
Who is the BSU head coach of the tournament after 1994 with louisville as the opponent?
CREATE TABLE table_name_76 ( bsu_head_coach VARCHAR, opponent VARCHAR, year VARCHAR )
SELECT game FROM table_27756474_2 WHERE high_rebounds = "Marc Gasol (10)"
Which game did marc gasol (10) have the high rebounds?
CREATE TABLE table_27756474_2 (game VARCHAR, high_rebounds VARCHAR)
SELECT COUNT(grid) FROM table_name_35 WHERE bike = "suzuki gsx-r1000 k7" AND time = "+13.283"
What is the total number for grid with a Suzuki GSX-R1000 K7 for +13.283?
CREATE TABLE table_name_35 (grid VARCHAR, bike VARCHAR, time VARCHAR)
SELECT "Name" FROM table_71497 WHERE "Direction" = 'toyohashi east' AND "Length (km)" = '24.7'
What line is 24.7 km and head towards Toyohashi East?
CREATE TABLE table_71497 ( "Direction" text, "Name" text, "Japanese" text, "Terminals" text, "Length (km)" real )
SELECT high_assists FROM table_27756474_2 WHERE date = "October 6"
Who had the high assists on october 6?
CREATE TABLE table_27756474_2 (high_assists VARCHAR, date VARCHAR)
SELECT time FROM table_name_55 WHERE grid < 6 AND rider = "noriyuki haga"
What was the time for a grid less than 6 for Noriyuki Haga?
CREATE TABLE table_name_55 (time VARCHAR, grid VARCHAR, rider VARCHAR)
SELECT Budget_Type_Code, COUNT(*) FROM Documents_with_Expenses GROUP BY Budget_Type_Code ORDER BY Budget_Type_Code
Give me a bar chart for the total number of each budget type code, I want to sort x axis in asc order.
CREATE TABLE Ref_Budget_Codes ( Budget_Type_Code CHAR(15), Budget_Type_Description VARCHAR(255) ) CREATE TABLE Statements ( Statement_ID INTEGER, Statement_Details VARCHAR(255) ) CREATE TABLE Documents_with_Expenses ( Document_ID INTEGER, Budget_Type_Code CHAR(15), Document_Details VARCHAR(255) ) CREATE TABLE Projects ( Project_ID INTEGER, Project_Details VARCHAR(255) ) CREATE TABLE Accounts ( Account_ID INTEGER, Statement_ID INTEGER, Account_Details VARCHAR(255) ) CREATE TABLE Documents ( Document_ID INTEGER, Document_Type_Code CHAR(15), Project_ID INTEGER, Document_Date DATETIME, Document_Name VARCHAR(255), Document_Description VARCHAR(255), Other_Details VARCHAR(255) ) CREATE TABLE Ref_Document_Types ( Document_Type_Code CHAR(15), Document_Type_Name VARCHAR(255), Document_Type_Description VARCHAR(255) )
SELECT COUNT(high_assists) FROM table_27756474_6 WHERE location_attendance = "FedExForum 11,283"
Name the total number of high assists for fedexforum 11,283
CREATE TABLE table_27756474_6 (high_assists VARCHAR, location_attendance VARCHAR)
SELECT time FROM table_name_31 WHERE grid > 6 AND bike = "honda cbr1000rr" AND laps < 23
What was the time for a grid more than 6 in less than 23 laps with a Honda CBR1000RR?
CREATE TABLE table_name_31 (time VARCHAR, laps VARCHAR, grid VARCHAR, bike VARCHAR)
SELECT Id AS "post_link", Score, ClosedDate FROM Posts AS P WHERE P.Id IN (SELECT PostId FROM Comments WHERE Text LIKE '%on ELL%' OR Text LIKE '%on English Language Learners%') AND PostTypeId = 1 ORDER BY Id
Comments telling people to migrate to ELL.
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 Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment 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 VoteTypes ( Id number, Name text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE CloseReasonTypes ( 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 PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId 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 ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) 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 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 )
SELECT MIN(game) FROM table_27756474_6 WHERE location_attendance = "US Airways Center 16,470"
Name the most game for us airways center 16,470
CREATE TABLE table_27756474_6 (game INTEGER, location_attendance VARCHAR)
SELECT SUM(laps) FROM table_name_74 WHERE rider = "karl muggeridge" AND grid < 16
What is the sum of laps for Karl Muggeridge on a grid less than 16?
CREATE TABLE table_name_74 (laps INTEGER, rider VARCHAR, grid VARCHAR)
SELECT SUM("Championship") FROM table_76412 WHERE "League Cup" > '1' AND "Name" = 'james henry'
What is the total championships of James Henry that has a league cup more than 1?
CREATE TABLE table_76412 ( "Name" text, "Championship" real, "FA Cup" real, "League Cup" real, "Total" real )
SELECT high_points FROM table_27756572_6 WHERE team = "Detroit"
Who and what were the high points player for the game against Detroit?
CREATE TABLE table_27756572_6 (high_points VARCHAR, team VARCHAR)
SELECT album FROM table_name_20 WHERE lifetime_achievement_award = "paul mcguinness"
Which album awarded Paul McGuinness a Lifetime Achievement Award?
CREATE TABLE table_name_20 (album VARCHAR, lifetime_achievement_award VARCHAR)
SELECT Posts.Id AS "post_link", Comments.Text FROM Comments, Posts WHERE Text LIKE '%which%jurisdiction%' AND Comments.PostId = Posts.Id AND Posts.PostTypeId = 1
Comments asking for a jurisdiction on a question.
CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description 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 PostTypes ( Id number, Name text ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, 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 ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) 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 Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment 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 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 PostTags ( PostId number, TagId number ) CREATE TABLE PostHistoryTypes ( 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 ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) 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 ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE CloseReasonTypes ( 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 PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text )
SELECT COUNT(game_site) FROM table_27764201_2 WHERE opponent = "Rhein Fire"
How many times did the Centurions play the Rhein Fire?
CREATE TABLE table_27764201_2 (game_site VARCHAR, opponent VARCHAR)
SELECT pop_act FROM table_name_58 WHERE album = "all that you can't leave behind"
Which act's album has a name of All That You Can't Leave Behind?
CREATE TABLE table_name_58 (pop_act VARCHAR, album VARCHAR)
SELECT "HDD Capacity" FROM table_11562 WHERE "# FDD" > '0' AND "FDD Capacity (each)" = '710kb'
Tell me the HDD capacity for # FDD larger than 0 when FDD capacity is 710kb
CREATE TABLE table_11562 ( "HP Model" text, "Command Set" text, "# FDD" real, "FDD Type" text, "Sides" text, "FDD Capacity (each)" text, "# HDD" real, "HDD Capacity" text )
SELECT game_site FROM table_27764201_2 WHERE opponent = "Hamburg Sea Devils"
Where did the Centurions play the Hamburg Sea Devils?
CREATE TABLE table_27764201_2 (game_site VARCHAR, opponent VARCHAR)
SELECT year FROM table_name_56 WHERE band = "snow patrol" AND lifetime_achievement_award = "aslan"
In what year did Aslan receive a Lifetime Achievement Award and Snow Patrol perform?
CREATE TABLE table_name_56 (year VARCHAR, band VARCHAR, lifetime_achievement_award VARCHAR)
SELECT minister FROM party WHERE took_office > 1961 OR took_office < 1959
Show the minister who took office after 1961 or before 1959.
CREATE TABLE party ( minister VARCHAR, took_office VARCHAR )
SELECT kickoff FROM table_27764201_2 WHERE opponent = "Frankfurt Galaxy"
What time was the kickoff against the Frankfurt Galaxy?
CREATE TABLE table_27764201_2 (kickoff VARCHAR, opponent VARCHAR)
SELECT lifetime_achievement_award FROM table_name_38 WHERE band = "snow patrol" AND female = "juliet turner"
Who won the Lifetime Achievement Award when Snow Patrol performed and Juliet Turner presented?
CREATE TABLE table_name_38 (lifetime_achievement_award VARCHAR, band VARCHAR, female VARCHAR)
SELECT MIN("Earnings ( $ )") FROM table_39494 WHERE "Wins" < '72' AND "Rank" > '3'
What's the smallest amount of earnings when the wins are less than 72 and the rank is more than 3?
CREATE TABLE table_39494 ( "Rank" real, "Player" text, "Country" text, "Earnings ( $ )" real, "Wins" real )
SELECT COUNT(catches) FROM table_27770426_1 WHERE no = 46
How many total catches did the player with no. 46 have?
CREATE TABLE table_27770426_1 (catches VARCHAR, no VARCHAR)
SELECT band FROM table_name_80 WHERE female = "samantha mumba"
What band performed when Samantha Mumba presented?
CREATE TABLE table_name_80 (band VARCHAR, female VARCHAR)
SELECT subject_name, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*)
Find the number of courses for each subject in a bar chart, and list by the Y in asc please.
CREATE TABLE Students ( student_id INTEGER, date_of_registration DATETIME, date_of_latest_logon DATETIME, login_name VARCHAR(40), password VARCHAR(10), personal_name VARCHAR(40), middle_name VARCHAR(40), family_name VARCHAR(40) ) CREATE TABLE Course_Authors_and_Tutors ( author_id INTEGER, author_tutor_ATB VARCHAR(3), login_name VARCHAR(40), password VARCHAR(40), personal_name VARCHAR(80), middle_name VARCHAR(80), family_name VARCHAR(80), gender_mf VARCHAR(1), address_line_1 VARCHAR(80) ) CREATE TABLE Courses ( course_id INTEGER, author_id INTEGER, subject_id INTEGER, course_name VARCHAR(120), course_description VARCHAR(255) ) CREATE TABLE Student_Course_Enrolment ( registration_id INTEGER, student_id INTEGER, course_id INTEGER, date_of_enrolment DATETIME, date_of_completion DATETIME ) CREATE TABLE Subjects ( subject_id INTEGER, subject_name VARCHAR(120) ) CREATE TABLE Student_Tests_Taken ( registration_id INTEGER, date_test_taken DATETIME, test_result VARCHAR(255) )
SELECT manner_of_departure FROM table_27782699_3 WHERE replaced_by = "Jakob Michelsen"
How did the manager who was replaced by Jakob Michelsen depart?
CREATE TABLE table_27782699_3 (manner_of_departure VARCHAR, replaced_by VARCHAR)
SELECT MIN(draws) FROM table_name_86 WHERE season > 1919 AND wins > 0
What is the lowest Draws for a season later than 1919 with more than 0 wins?
CREATE TABLE table_name_86 (draws INTEGER, season VARCHAR, wins VARCHAR)
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', labevents.charttime)) FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hematocrit') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 739 AND admissions.dischtime IS NULL) ORDER BY labevents.charttime DESC LIMIT 1
how many days has passed since patient 739 last received a lab test for hematocrit in this hospital encounter?
CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) 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 microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text )
SELECT position_in_table FROM table_27782699_3 WHERE team = "AB"
What was the AB team's position in table?
CREATE TABLE table_27782699_3 (position_in_table VARCHAR, team VARCHAR)
SELECT SUM(draws) FROM table_name_67 WHERE season > 1964
What is the sum of Draws for a season later than 1964?
CREATE TABLE table_name_67 (draws INTEGER, season INTEGER)
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE course_offering.friday = 'N' AND course.department = 'FIN' AND semester.semester = 'WN' AND semester.year = 2016
Are there any FIN classes besides on Friday ?
CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) 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 comment_instructor ( instructor_id int, student_id int, score int, comment_text 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 offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE area ( course_id int, area 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 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 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 date_of_appointment FROM table_27782699_3 WHERE replaced_by = "Kim Fogh"
On what date did Kim Fogh replace the previous manager?
CREATE TABLE table_27782699_3 (date_of_appointment VARCHAR, replaced_by VARCHAR)
SELECT SUM(wins) FROM table_name_46 WHERE draws = 0 AND season = 1964
What is the sum of Wins when draws shows 0 in 1964?
CREATE TABLE table_name_46 (wins INTEGER, draws VARCHAR, season VARCHAR)
SELECT "Home team" FROM table_10156 WHERE "Away team score" = '4.9 (33)'
Which home team has an away team score of 4.9 (33)?
CREATE TABLE table_10156 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT date_of_vacancy FROM table_27782699_3 WHERE outgoing_manager = "Thomas Thomasberg"
What was the vacancy date for Thomas Thomasberg?
CREATE TABLE table_27782699_3 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
SELECT MAX(draws) FROM table_name_63 WHERE season > 1926 AND wins < 0
What is the highest Draws for a season later than 1926 with less than 0 wins?
CREATE TABLE table_name_63 (draws INTEGER, season VARCHAR, wins VARCHAR)
SELECT MIN(average) FROM table_name_98 WHERE yards > 167 AND team = "at tb" AND week > 7
Which Average has Yards larger than 167, and a Team of at tb, and a Week larger than 7?
CREATE TABLE table_name_98 ( average INTEGER, week VARCHAR, yards VARCHAR, team VARCHAR )
SELECT outgoing_manager FROM table_27782699_3 WHERE replaced_by = "Thomas Thomasberg"
Which manager was replaced by Thomas Thomasberg?
CREATE TABLE table_27782699_3 (outgoing_manager VARCHAR, replaced_by VARCHAR)
SELECT MAX(draws) FROM table_name_45 WHERE losses < 18 AND team = "north melbourne" AND season > 1926
What is the highest Draws with less than 18 losses for north melbourne later than 1926?
CREATE TABLE table_name_45 (draws INTEGER, season VARCHAR, losses VARCHAR, team VARCHAR)
SELECT "Standard" FROM table_44967 WHERE "Pollutant" = 'o 3' AND "Averaging Time" = '8-hour'
what is the standard when the pollutant is o 3 and averaging time is 8-hour?
CREATE TABLE table_44967 ( "Pollutant" text, "Type" text, "Standard" text, "Averaging Time" text, "Regulatory Citation" text )
SELECT MAX(total_dismissals) FROM table_27771406_1 WHERE club = "Guyana"
How many total dismissals did the player for Guyana have?
CREATE TABLE table_27771406_1 (total_dismissals INTEGER, club VARCHAR)
SELECT weeks_3_4 FROM table_name_11 WHERE name = "zach"
what week had a player named zach
CREATE TABLE table_name_11 (weeks_3_4 VARCHAR, name VARCHAR)
SELECT opponent FROM table_name_52 WHERE date = "1991-10-13"
Which Opponent was played on 1991-10-13?
CREATE TABLE table_name_52 ( opponent VARCHAR, date VARCHAR )
SELECT club FROM table_27771406_1 WHERE tests = 2
The player for what club had 2 tests?
CREATE TABLE table_27771406_1 (club VARCHAR, tests VARCHAR)
SELECT MAX(shts) FROM table_name_23 WHERE club = "san jose earthquakes" AND mins > 2700
What is the largest number for SHTS for the San Jose earthquakes with MINS larger than 2700?
CREATE TABLE table_name_23 (shts INTEGER, club VARCHAR, mins VARCHAR)
SELECT "subjunctive" FROM table_42914 WHERE "inverse subjunctive" = 'måchadns'
What subjunctive also has an inverse subjunctive of m chadns?
CREATE TABLE table_42914 ( "m\u00e5cha" text, "indicative" text, "imperative" text, "subjunctive" text, "inverse subjunctive" text )
SELECT MAX(stumpings) FROM table_27771406_1
What is the most amount of stumpings any player had?
CREATE TABLE table_27771406_1 (stumpings INTEGER)
SELECT SUM(rank) FROM table_name_30 WHERE goalkeeper = "pat onstad"
What is the sum of Rank when Pat Onstad was the goalkeeper?
CREATE TABLE table_name_30 (rank INTEGER, goalkeeper VARCHAR)
SELECT COUNT("name") FROM table_204_850
how many locomotives make the list of the largest locomotives ?
CREATE TABLE table_204_850 ( id number, "name" text, "railway" text, "series" text, "maker" text, "dates" text, "drive" text, "wheel arrangement" text, "weight" text, "power" text, "notes" text )
SELECT club FROM table_27771406_1 WHERE player = "Cyril Christiani"
What club did Cyril Christiani play for?
CREATE TABLE table_27771406_1 (club VARCHAR, player VARCHAR)
SELECT club FROM table_name_98 WHERE shts = 132
What is the club for the 132 SHTS?
CREATE TABLE table_name_98 (club VARCHAR, shts VARCHAR)
SELECT "Team 2" FROM table_69241 WHERE "2nd leg" = '3-2'
What team 2 had a second leg of 3-2?
CREATE TABLE table_69241 ( "Team 1" text, "Agg." text, "Team 2" text, "1st leg" text, "2nd leg" text )
SELECT MIN(catches) FROM table_27771406_1 WHERE player = "Clifford McWatt"
How many catches did Clifford McWatt have?
CREATE TABLE table_27771406_1 (catches INTEGER, player VARCHAR)
SELECT MAX(mins) FROM table_name_87 WHERE club = "san jose earthquakes" AND shts < 166
What is the largest MINS for the San Jose Earthquakes with a SHTS less than 166?
CREATE TABLE table_name_87 (mins INTEGER, club VARCHAR, shts VARCHAR)
SELECT SUM("Attendance") FROM table_10700 WHERE "Score" = '98–111'
How many people were in attendance for the game with a score of 98 111?
CREATE TABLE table_10700 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" real, "Record" text )
SELECT points__margin_ FROM table_27786562_1 WHERE top_tens = 24 AND owner = "David Pearson"
Name the points for top tens being 24 and ownder david pearson
CREATE TABLE table_27786562_1 (points__margin_ VARCHAR, top_tens VARCHAR, owner VARCHAR)
SELECT date FROM table_name_98 WHERE surface = "clay" AND opponent_in_the_final = "andrés gómez javier sánchez"
When has a Surface of clay, and an Opponent in the final of andrés gómez javier sánchez?
CREATE TABLE table_name_98 (date VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT "Loss" FROM table_80455 WHERE "Attendance" > '49,688' AND "Record" = '11-8'
Which loss has an attendance greater than 49,688 and 11-8 as the record?
CREATE TABLE table_80455 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text )
SELECT starts FROM table_27786562_1 WHERE driver = "Bobby Labonte"
Name the starts for bobby labonte
CREATE TABLE table_27786562_1 (starts VARCHAR, driver VARCHAR)
SELECT tournament FROM table_name_19 WHERE partner = "karel nováček"
Which Tournament has a Partner of karel nováček?
CREATE TABLE table_name_19 (tournament VARCHAR, partner VARCHAR)
SELECT position FROM table_11677691_1 WHERE hometown = "Jersey City, New Jersey"
What position did the player from Jersey City, New Jersey play?
CREATE TABLE table_11677691_1 ( position VARCHAR, hometown VARCHAR )
SELECT poles FROM table_27786562_1 WHERE season = 2006
Name the poles for season 2006
CREATE TABLE table_27786562_1 (poles VARCHAR, season VARCHAR)
SELECT tournament FROM table_name_13 WHERE date = 1993 AND score_in_the_final = "6–2, 2–6, 7–5"
Which Tournament is in 1993 with a Score in the final of 6–2, 2–6, 7–5?
CREATE TABLE table_name_13 (tournament VARCHAR, date VARCHAR, score_in_the_final VARCHAR)