answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT result FROM table_25030512_24 WHERE incumbent = "Barney Frank"
Name the result for barney frank
CREATE TABLE table_25030512_24 (result VARCHAR, incumbent VARCHAR)
SELECT college FROM table_name_22 WHERE player = "paul seiler"
what college has paul seiler as a player?
CREATE TABLE table_name_22 ( college VARCHAR, player VARCHAR )
SELECT us_viewers__in_millions_ FROM table_23958944_6 WHERE production_number = 520
Name the viewers for 520
CREATE TABLE table_23958944_6 (us_viewers__in_millions_ VARCHAR, production_number VARCHAR)
SELECT candidates FROM table_25030512_24 WHERE first_elected = "1976"
Name the candidates for first elected being 1976
CREATE TABLE table_25030512_24 (candidates VARCHAR, first_elected VARCHAR)
SELECT issue_price__bu_ AS "_clarification_needed_" FROM table_name_57 WHERE mintage__proof_ = "29,586"
What's listed as the Issue Price (BU) [Clarification Needed] with a Mintage (Proof) of 29,586?
CREATE TABLE table_name_57 ( issue_price__bu_ VARCHAR, _clarification_needed_ VARCHAR, mintage__proof_ VARCHAR )
SELECT COUNT(written_by) FROM table_23958944_2 WHERE no_by_series = 8
How many different writers have written the episode with series number 8?
CREATE TABLE table_23958944_2 (written_by VARCHAR, no_by_series VARCHAR)
SELECT COUNT(district) FROM table_25030512_24 WHERE first_elected = "1998"
Name the total number of districts for first elected being 1998
CREATE TABLE table_25030512_24 (district VARCHAR, first_elected VARCHAR)
SELECT COUNT(no_in_season) FROM table_19995378_1 WHERE us_viewers__millions_ = "8.69"
How many episodes with different series numbers were seen by 8.69 people in the US?
CREATE TABLE table_19995378_1 ( no_in_season VARCHAR, us_viewers__millions_ VARCHAR )
SELECT title FROM table_23958944_2 WHERE production_number = 103
What's the title of the episode with production number 103?
CREATE TABLE table_23958944_2 (title VARCHAR, production_number VARCHAR)
SELECT result FROM table_25030512_24 WHERE first_elected = "1998"
Name the result for 1998
CREATE TABLE table_25030512_24 (result VARCHAR, first_elected VARCHAR)
SELECT COUNT(bronze) FROM table_name_88 WHERE gold > 0 AND total < 1
How much Bronze has a Gold larger than 0, and a Total smaller than 1?
CREATE TABLE table_name_88 ( bronze VARCHAR, gold VARCHAR, total VARCHAR )
SELECT name FROM table_23963781_2 WHERE goals = 1 AND position = "FW"
who has the 1 goal and the position is fw?
CREATE TABLE table_23963781_2 (name VARCHAR, goals VARCHAR, position VARCHAR)
SELECT candidates FROM table_25030512_24 WHERE first_elected = "1998"
Name the candidates for 1998
CREATE TABLE table_25030512_24 (candidates VARCHAR, first_elected VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.long_title = "Radical neck dissection, unilateral"
calculate the total number of patients who had radical neck dissection, unilateral
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 ) 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 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 COUNT(release_date) FROM table_23981741_1 WHERE year = 1988 AND additional_rock_band_3_features = "None"
How many release dates are there for year of 1988 and additional rock band 3 features is none?
CREATE TABLE table_23981741_1 (release_date VARCHAR, year VARCHAR, additional_rock_band_3_features VARCHAR)
SELECT driver_s_ FROM table_2503102_1 WHERE engine = "Chevrolet" AND car_sponsor_s_ = "GoDaddy.com"
Who is the driver of the Chevrolet engine that is sponsored by godaddy.com?
CREATE TABLE table_2503102_1 (driver_s_ VARCHAR, engine VARCHAR, car_sponsor_s_ VARCHAR)
SELECT Country, COUNT(*) FROM people GROUP BY Country
Show all countries and the number of people from each country in a pie chart.
CREATE TABLE people ( People_ID int, Name text, Country text, Is_Male text, Age int ) CREATE TABLE wedding ( Church_ID int, Male_ID int, Female_ID int, Year int ) CREATE TABLE church ( Church_ID int, Name text, Organized_by text, Open_Date int, Continuation_of text )
SELECT nationality FROM table_23963781_1 WHERE minutes = 0 AND position = "MF" AND athletica_career = "2009"
What is the nationality associated with 0 minutes, position of MF, and an Athletica career of 2009?
CREATE TABLE table_23963781_1 (nationality VARCHAR, athletica_career VARCHAR, minutes VARCHAR, position VARCHAR)
SELECT engine FROM table_2503102_1 WHERE car_sponsor_s_ = "Fuzzy's Ultra Premium Vodka"
What engine does the Fuzzy's Ultra Premium Vodka sponsored car use?
CREATE TABLE table_2503102_1 (engine VARCHAR, car_sponsor_s_ VARCHAR)
SELECT publication.title FROM domain, domain_publication, publication WHERE domain.did = domain_publication.did AND domain.name = 'Databases' AND publication.pid = domain_publication.pid ORDER BY publication.citation_num DESC LIMIT 1
return me the paper in Databases area with the most citations .
CREATE TABLE domain_keyword ( did int, kid int ) CREATE TABLE cite ( cited int, citing int ) CREATE TABLE publication ( abstract varchar, cid int, citation_num int, jid int, pid int, reference_num int, title varchar, year int ) CREATE TABLE domain ( did int, name varchar ) CREATE TABLE writes ( aid int, pid int ) CREATE TABLE author ( aid int, homepage varchar, name varchar, oid int ) CREATE TABLE organization ( continent varchar, homepage varchar, name varchar, oid int ) CREATE TABLE domain_author ( aid int, did int ) CREATE TABLE domain_journal ( did int, jid int ) CREATE TABLE domain_conference ( cid int, did int ) CREATE TABLE publication_keyword ( kid int, pid int ) CREATE TABLE conference ( cid int, homepage varchar, name varchar ) CREATE TABLE journal ( homepage varchar, jid int, name varchar ) CREATE TABLE domain_publication ( did int, pid int ) CREATE TABLE keyword ( keyword varchar, kid int )
SELECT position FROM table_23963781_3 WHERE nationality = "United States" AND minutes = 30
What is the position of the player who is from the United States and has 30 minutes?
CREATE TABLE table_23963781_3 (position VARCHAR, nationality VARCHAR, minutes VARCHAR)
SELECT engine FROM table_2503102_1 WHERE team = "Ed Carpenter Racing"
What engine doe the Ed Carpenter Racing team use?
CREATE TABLE table_2503102_1 (engine VARCHAR, team VARCHAR)
SELECT name FROM member WHERE NOT member_id IN (SELECT member_id FROM member_attendance)
List the names of members who did not attend any performance.
CREATE TABLE member ( member_id text, name text, nationality text, role text ) CREATE TABLE performance ( performance_id number, date text, host text, location text, attendance number ) CREATE TABLE member_attendance ( member_id number, performance_id number, num_of_pieces number )
SELECT MAX(goals) FROM table_23963781_3
What is the most amount of goals any of the players had?
CREATE TABLE table_23963781_3 (goals INTEGER)
SELECT team FROM table_2503102_1 WHERE car_sponsor_s_ = "HydroxyCut"
What team is sponsored by hydroxycut?
CREATE TABLE table_2503102_1 (team VARCHAR, car_sponsor_s_ VARCHAR)
SELECT MIN("Total") FROM table_13456 WHERE "Bronze" = '1' AND "Nation" = 'czech republic (cze)'
What is the least total number of medals when the bronze medals is 1, and Czech Republic (CZE) is the nation?
CREATE TABLE table_13456 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT song_title FROM table_23981771_1 WHERE artist = "Dixie Chicks"
What is the song for Dixie Chicks?
CREATE TABLE table_23981771_1 (song_title VARCHAR, artist VARCHAR)
SELECT COUNT(below_50_percentage_of_median_income) FROM table_25042332_16 WHERE below_40_percentage_of_median_income = "10.4%"
What percentage of the population is below 50% of the median income in the region where 10.4% of the population earns below 40% of the median income?
CREATE TABLE table_25042332_16 (below_50_percentage_of_median_income VARCHAR, below_40_percentage_of_median_income VARCHAR)
SELECT DATE(p.CreationDate) AS PostDate, COUNT(p.Id) AS Posts, (SELECT COUNT(b.Id) / 100 FROM Badges AS b WHERE b.UserId = u.Id AND b.Date <= DATE(p.CreationDate)) AS BadgesEarned FROM Posts AS p, Users AS u WHERE u.Id = @UserId AND p.OwnerUserId = u.Id GROUP BY DATE(p.CreationDate), u.Id ORDER BY DATE(p.CreationDate)
Posts per day versus total badges earned.
CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) 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 PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, 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 FlagTypes ( Id number, Name text, Description text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PostTags ( PostId number, TagId 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 PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment 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 ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) 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 PostTypes ( Id number, Name text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId 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 PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time )
SELECT title FROM table_23981882_1 WHERE no_in_season = 7
What is the episode title for number 7 in the season?
CREATE TABLE table_23981882_1 (title VARCHAR, no_in_season VARCHAR)
SELECT MIN(median_income___intl) AS $__ FROM table_25042332_16 WHERE below_60_percentage_of_median_income = "24.4%"
What is the median income for the region where 24.4% pf people make below 60% of the median income?
CREATE TABLE table_25042332_16 (median_income___intl INTEGER, below_60_percentage_of_median_income VARCHAR)
SELECT COUNT("Round") FROM table_32303 WHERE "Overall" > '17' AND "Position" = 'quarterback'
How many rounds have an Overall larger than 17, and a Position of quarterback?
CREATE TABLE table_32303 ( "Round" real, "Overall" real, "Player" text, "Position" text, "College" text )
SELECT special FROM table_23982399_12 WHERE challenger = "Dominique Bouchet"
What is the special when the challenger is dominique bouchet?
CREATE TABLE table_23982399_12 (special VARCHAR, challenger VARCHAR)
SELECT MIN(median_income___intl) AS $__ FROM table_25042332_16 WHERE region = "Maule"
What is the median income of Maule?
CREATE TABLE table_25042332_16 (median_income___intl INTEGER, region VARCHAR)
SELECT email_address, phone_number FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM complaints)
What are the emails and phone numbers of custoemrs who have never filed a complaint?
CREATE TABLE complaints ( complaint_id number, product_id number, customer_id number, complaint_outcome_code text, complaint_status_code text, complaint_type_code text, date_complaint_raised time, date_complaint_closed time, staff_id number ) CREATE TABLE customers ( customer_id number, customer_type_code text, address_line_1 text, address_line_2 text, town_city text, state text, email_address text, phone_number text ) CREATE TABLE staff ( staff_id number, gender text, first_name text, last_name text, email_address text, phone_number text ) CREATE TABLE products ( product_id number, parent_product_id number, product_category_code text, date_product_first_available time, date_product_discontinued time, product_name text, product_description text, product_price number )
SELECT winner FROM table_23982399_12 WHERE iron_chef = "Hiroyuki Sakai"
Who was the winner when the iron chef is hiroyuki sakai?
CREATE TABLE table_23982399_12 (winner VARCHAR, iron_chef VARCHAR)
SELECT region FROM table_25042332_16 WHERE below_50_percentage_of_median_income = "17.4%"
In what region does 17.4% of the population make below 50% of the median income?
CREATE TABLE table_25042332_16 (region VARCHAR, below_50_percentage_of_median_income VARCHAR)
SELECT "Surface" FROM table_66438 WHERE "Score" = '7-5, 5-7, 6-3'
Which Surface has a score of 7-5, 5-7, 6-3?
CREATE TABLE table_66438 ( "Date" text, "Tournament" text, "Surface" text, "Partnering" text, "Opponents in the final" text, "Score" text )
SELECT challenger FROM table_23982399_12 WHERE winner = "Kimio Nonaga"
Who was the challenger when winner was kimio nonaga?
CREATE TABLE table_23982399_12 (challenger VARCHAR, winner VARCHAR)
SELECT region FROM table_25042332_16 WHERE below_50_percentage_of_median_income = "18.6%"
In what region do 18.6% of the people make less than 50% of the median income?
CREATE TABLE table_25042332_16 (region VARCHAR, below_50_percentage_of_median_income VARCHAR)
SELECT "Round" FROM table_64276 WHERE "Record" = '1-0'
Which round did the bout that led to a 1-0 record end in?
CREATE TABLE table_64276 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text )
SELECT MAX(overall_episode__number) FROM table_23982399_1 WHERE original_airdate = "November 21, 1993"
What episode number originally aired on November 21, 1993?
CREATE TABLE table_23982399_1 (overall_episode__number INTEGER, original_airdate VARCHAR)
SELECT MIN(gdp__ppp__per_capita__2008_) FROM table_25042332_33 WHERE combined_gross_enrollment_ratio__2009_ = "89.0"
What is the gdp per capita in 2008 for the region that had a combined gross enrollment ration of 89.0?
CREATE TABLE table_25042332_33 (gdp__ppp__per_capita__2008_ INTEGER, combined_gross_enrollment_ratio__2009_ VARCHAR)
SELECT "Points" FROM table_27260 WHERE "Position" = '8th'
what were his points when he was in 8th position?
CREATE TABLE table_27260 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "F.L." real, "Podiums" real, "Points" text, "Position" text )
SELECT challenger FROM table_23982399_1 WHERE overall_episode__number = 5
Who was the challenger on Episode 5?
CREATE TABLE table_23982399_1 (challenger VARCHAR, overall_episode__number VARCHAR)
SELECT region FROM table_25042332_33 WHERE life_expectancy_at_birth__2001_2002_ = "77.9"
Which region had a life expectancy at birth of 77.9 from 2001-2002?
CREATE TABLE table_25042332_33 (region VARCHAR, life_expectancy_at_birth__2001_2002_ VARCHAR)
SELECT T1.service_type_description FROM ref_service_types AS T1 JOIN services AS T2 ON T1.service_type_code = T2.service_type_code WHERE T2.product_price > 100
Give me the descriptions of the service types that cost more than 100.
CREATE TABLE products ( product_id text, product_name text, product_price number, product_description text, other_product_service_details text ) CREATE TABLE customers ( customer_id text, address_id number, customer_name text, customer_phone text, customer_email_address text, other_details text ) CREATE TABLE bookings ( booking_id number, customer_id number, workshop_group_id text, status_code text, store_id number, order_date time, planned_delivery_date time, actual_delivery_date time, other_order_details text ) CREATE TABLE bookings_services ( order_id number, product_id number ) CREATE TABLE performers_in_bookings ( order_id number, performer_id number ) CREATE TABLE clients ( client_id number, address_id number, customer_email_address text, customer_name text, customer_phone text, other_details text ) CREATE TABLE drama_workshop_groups ( workshop_group_id number, address_id number, currency_code text, marketing_region_code text, store_name text, store_phone text, store_email_address text, other_details text ) CREATE TABLE stores ( store_id text, address_id number, marketing_region_code text, store_name text, store_phone text, store_email_address text, other_details text ) CREATE TABLE services ( service_id number, service_type_code text, workshop_group_id number, product_description text, product_name text, product_price number, other_product_service_details text ) CREATE TABLE addresses ( address_id text, line_1 text, line_2 text, city_town text, state_county text, other_details text ) CREATE TABLE marketing_regions ( marketing_region_code text, marketing_region_name text, marketing_region_descriptrion text, other_details text ) CREATE TABLE performers ( performer_id number, address_id number, customer_name text, customer_phone text, customer_email_address text, other_details text ) CREATE TABLE order_items ( order_item_id number, order_id number, product_id number, order_quantity text, other_item_details text ) CREATE TABLE ref_payment_methods ( payment_method_code text, payment_method_description text ) CREATE TABLE invoices ( invoice_id number, order_id number, payment_method_code text, product_id number, order_quantity text, other_item_details text, order_item_id number ) CREATE TABLE ref_service_types ( service_type_code text, parent_service_type_code text, service_type_description text ) CREATE TABLE invoice_items ( invoice_item_id number, invoice_id number, order_id number, order_item_id number, product_id number, order_quantity number, other_item_details text ) CREATE TABLE customer_orders ( order_id number, customer_id number, store_id number, order_date time, planned_delivery_date time, actual_delivery_date time, other_order_details text )
SELECT qualifying_end_date FROM table_23995075_2 WHERE "qualifying_start_date" = "qualifying_start_date"
What is the qualifying end date when the qualifying start date is qualifying start date?
CREATE TABLE table_23995075_2 (qualifying_end_date VARCHAR)
SELECT MAX(gdp__ppp__per_capita__2008_) FROM table_25042332_33 WHERE combined_gross_enrollment_ratio__2009_ = "86.6"
What is the gdp per capita in 2008 for the region with a combined gross enrollment ratio of 86.6 in 2009?
CREATE TABLE table_25042332_33 (gdp__ppp__per_capita__2008_ INTEGER, combined_gross_enrollment_ratio__2009_ VARCHAR)
SELECT "Incumbent" FROM table_18140 WHERE "District" = 'Florida 9'
Who is the incumbent of Florida 9?
CREATE TABLE table_18140 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text, "Candidates" text )
SELECT teams_that_can_still_qualify FROM table_23995075_2 WHERE teams_that_have_secured_qualification = "0" AND teams_started = "52"
How many teams can still qualify when there are 0 teams that have secured qualification and 52 teams started?
CREATE TABLE table_23995075_2 (teams_that_can_still_qualify VARCHAR, teams_that_have_secured_qualification VARCHAR, teams_started VARCHAR)
SELECT COUNT(combined_gross_enrollment_ratio__2009_) FROM table_25042332_33 WHERE hdi = "0.896"
How many regions had an hdi of 0.896?
CREATE TABLE table_25042332_33 (combined_gross_enrollment_ratio__2009_ VARCHAR, hdi VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "V4511" AND lab.fluid = "Other Body Fluid"
provide the number of patients whose diagnoses icd9 code is v4511 and lab test fluid is other body fluid?
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 ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT teams_that_have_been_eliminated FROM table_23995075_2 WHERE teams_started = "11"
How many teams eliminated when 11 teams started?
CREATE TABLE table_23995075_2 (teams_that_have_been_eliminated VARCHAR, teams_started VARCHAR)
SELECT COUNT(hdi) FROM table_25042332_33 WHERE life_expectancy_at_birth__2001_2002_ = "75.9"
How many regions had a life expectancy at birth in 2001-2002 of 75.9?
CREATE TABLE table_25042332_33 (hdi VARCHAR, life_expectancy_at_birth__2001_2002_ VARCHAR)
SELECT record FROM table_name_85 WHERE score = "11-10"
What was the record when the score was 11-10?
CREATE TABLE table_name_85 ( record VARCHAR, score VARCHAR )
SELECT confederation FROM table_23995075_2 WHERE remaining_places_in_finals = "4"
What is the confederation when there are 4 places remaining in the finals?
CREATE TABLE table_23995075_2 (confederation VARCHAR, remaining_places_in_finals VARCHAR)
SELECT season FROM table_25058269_1 WHERE runner_up = "Lase-R/Riga"
In which season is the runner-up Lase-R/Riga?
CREATE TABLE table_25058269_1 (season VARCHAR, runner_up VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Medicaid" AND procedures.long_title = "Transplant from live non-related donor"
find the number of medicaid patients who had transplant from live non-related donor.
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid 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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(qualifying_start_date) FROM table_23995075_2 WHERE confederation = "CONCACAF"
How many qualifying start dates for the Concacaf confederation?
CREATE TABLE table_23995075_2 (qualifying_start_date VARCHAR, confederation VARCHAR)
SELECT runner_up FROM table_25058269_1 WHERE season = "2007–08"
In season 2007–08 who is the runner-up?
CREATE TABLE table_25058269_1 (runner_up VARCHAR, season VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Malig neo bladder NEC" AND lab.fluid = "Joint Fluid"
how many patients have a diagnosis of malignant neoplastic bladder nec along with joint fluid lab test done?
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 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 lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT remaining_places_in_finals FROM table_23995075_2 WHERE teams_that_can_still_qualify = "1" AND teams_that_have_secured_qualification = "0"
How many remaining places in finals when 1 team can still qualify and 0 teams have secured qualification?
CREATE TABLE table_23995075_2 (remaining_places_in_finals VARCHAR, teams_that_can_still_qualify VARCHAR, teams_that_have_secured_qualification VARCHAR)
SELECT runner_up FROM table_25058269_1 WHERE season = "2011–12"
Who is the runner-up for season 2011–12?
CREATE TABLE table_25058269_1 (runner_up VARCHAR, season VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "NEWBORN" AND demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN"
give the number of patients of hispanic/latino-puerto rican ethnicity who were admitted as newborn.
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 ) 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 )
SELECT COUNT(3) AS :2600 FROM table_23987362_2 WHERE world_record = "Championship record"
How many of 3:26.00 have a championship record?
CREATE TABLE table_23987362_2 (world_record VARCHAR)
SELECT 3 AS rd_place FROM table_25058269_1 WHERE season = "2005–06"
In season 2005–06, who is 3rd place?
CREATE TABLE table_25058269_1 (season VARCHAR)
SELECT MIN("position") FROM table_204_445
what was the top position in which he finished ?
CREATE TABLE table_204_445 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text )
SELECT COUNT(3) AS :2600 FROM table_23987362_2 WHERE hicham_el_guerrouj___mar__ = "Hudson de Souza ( BRA )"
How many of 3:26.00 when hicham el guerrouj ( mar ) is hudson de souza ( bra )?
CREATE TABLE table_23987362_2 (hicham_el_guerrouj___mar__ VARCHAR)
SELECT MIN(pick__number) FROM table_25085059_1 WHERE college = "Kentucky"
What draft pick number did Kentucky get?
CREATE TABLE table_25085059_1 (pick__number INTEGER, college VARCHAR)
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Views, AccountId, Age, UpVotes, DownVotes FROM Users WHERE LOWER(Location) LIKE LOWER('%Germany%') AND Reputation >= 578 ORDER BY Reputation
Rank in Germany based on reputation.
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 PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description 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 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 VoteTypes ( Id number, Name text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE ReviewTaskStates ( 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 Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) 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 PostTypes ( Id number, Name text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PostHistoryTypes ( Id number, Name 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 CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE PostTags ( PostId number, TagId 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 ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description 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 )
SELECT world_record FROM table_23988726_2 WHERE "saif_saaeed_shaheen___qat__" = "saif_saaeed_shaheen___qat__"
When saif saaeed shaheen (qat) is the saif saaeed shaheen ( qat ) what is the world record?
CREATE TABLE table_23988726_2 (world_record VARCHAR)
SELECT position FROM table_25085059_1 WHERE pick__number = 6
What position was the number 6 draft pick?
CREATE TABLE table_25085059_1 (position VARCHAR, pick__number VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Diaphragmatic hernia without mention of obstruction or gangrene" AND lab.fluid = "Urine"
what is the number of patients with a diagnoses of diaphragmatic hernia without mention of obstruction or gangrene who had urine lab test?
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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) 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 3 AS _september_2004 FROM table_23988726_2 WHERE saif_saaeed_shaheen___qat__ = "Daniel Lincoln ( USA )"
When daniel lincoln ( usa ) is the saif saaeed shaheen ( qat ) What is the date for September 3rd, 2004?
CREATE TABLE table_23988726_2 (saif_saaeed_shaheen___qat__ VARCHAR)
SELECT cfl_team FROM table_25085059_1 WHERE position = "OL" AND college = "North Dakota"
What CFL team obtained a draft pick from North Dakota who plays OL position?
CREATE TABLE table_25085059_1 (cfl_team VARCHAR, position VARCHAR, college VARCHAR)
SELECT COUNT("Location Attendance") FROM table_17287 WHERE "Score" = '98–90'
How many times is the score 98 90?
CREATE TABLE table_17287 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT 3 AS _september_2004 FROM table_23988726_2 WHERE "saif_saaeed_shaheen___qat__" = "saif_saaeed_shaheen___qat__"
When saif saaeed shaheen ( qat ) is the saif saaeed shaheen ( qat ) what is the date on September 3rd, 2004?
CREATE TABLE table_23988726_2 (Id VARCHAR)
SELECT college FROM table_25085059_1 WHERE cfl_team = "Toronto Argonauts"
What college did the Toronto Argonauts draft pick come from?
CREATE TABLE table_25085059_1 (college VARCHAR, cfl_team VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND date_day.day_number = 21 AND date_day.month_number = 2 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PITTSBURGH' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
show the flights from PITTSBURGH to SAN FRANCISCO again on monday
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 airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE flight_fare ( flight_id int, fare_id 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 food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) 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 compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) 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 code_description ( code varchar, description text ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) 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 airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) 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 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 equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar )
SELECT COUNT(1) AS :5328 FROM table_24001246_2 WHERE world_record = "African record"
If the world record is the African record, what is the 1:53.28 total number?
CREATE TABLE table_24001246_2 (world_record VARCHAR)
SELECT player FROM table_25085059_1 WHERE pick__number = 1
What player was the number 1 draft pick?
CREATE TABLE table_25085059_1 (player VARCHAR, pick__number VARCHAR)
SELECT gdp_2012_millions_of_euro FROM table_name_51 WHERE population_in_millions < 1.3 AND gdp__nominal__per_capita_2012_euro = "20,700(p)"
What is GDP 2012 Millions of Euro, when Population in Millions is less than 1.3, and when GDP (Nominal) Per Capita 2012 Euro is 20,700(p)?
CREATE TABLE table_name_51 ( gdp_2012_millions_of_euro VARCHAR, population_in_millions VARCHAR, gdp__nominal__per_capita_2012_euro VARCHAR )
SELECT directed_by FROM table_2400842_1 WHERE prod__number = 109
Who directed the epsiode with production number 109?
CREATE TABLE table_2400842_1 (directed_by VARCHAR, prod__number VARCHAR)
SELECT cfl_team FROM table_25085059_1 WHERE college = "North Dakota"
What CFL team got their draft pick from North Dakota?
CREATE TABLE table_25085059_1 (cfl_team VARCHAR, college VARCHAR)
SELECT "Winning driver" FROM table_6340 WHERE "Date" = '18 may'
Who is Winning driver on 18 may?
CREATE TABLE table_6340 ( "Name" text, "Circuit" text, "Date" text, "Winning driver" text, "Winning constructor" text, "Report" text )
SELECT MIN(finish) FROM table_24004949_1 WHERE driver = "Larry Dickson"
Name the least finish for larry dickson
CREATE TABLE table_24004949_1 (finish INTEGER, driver VARCHAR)
SELECT player FROM table_2508633_3 WHERE college = "Tennessee"
Which player went to college at Tennessee?
CREATE TABLE table_2508633_3 (player VARCHAR, college VARCHAR)
SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND fare.one_direction_cost = (SELECT MIN(FAREalias1.one_direction_cost) FROM airport_service AS AIRPORT_SERVICEalias2, airport_service AS AIRPORT_SERVICEalias3, city AS CITYalias2, city AS CITYalias3, fare AS FAREalias1, flight AS FLIGHTalias1, flight_fare AS FLIGHT_FAREalias1 WHERE CITYalias2.city_code = AIRPORT_SERVICEalias2.city_code AND CITYalias2.city_name = 'BOSTON' AND CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'DENVER' AND FAREalias1.round_trip_required = 'NO' AND FLIGHT_FAREalias1.fare_id = FAREalias1.fare_id AND FLIGHTalias1.flight_id = FLIGHT_FAREalias1.flight_id AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias2.airport_code AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias3.airport_code) AND fare.round_trip_required = 'NO' AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
find me the cheapest one way fare i can get from BOSTON to DENVER
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 code_description ( code varchar, description text ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) 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 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 city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE 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 airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) 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 equipment_sequence ( aircraft_code_sequence varchar, aircraft_code 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 state ( state_code text, state_name text, country_name text ) 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 flight_fare ( flight_id int, fare_id int ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE days ( days_code varchar, day_name varchar )
SELECT 26 AS _august_2005 FROM table_24011830_2 WHERE world_record = "Asian record"
Name the 26 august 2005 asian record
CREATE TABLE table_24011830_2 (world_record VARCHAR)
SELECT player FROM table_2508633_3 WHERE nfl_team = "Kansas City Chiefs"
Who was drafted by the Kansas City Chiefs?
CREATE TABLE table_2508633_3 (player VARCHAR, nfl_team VARCHAR)
SELECT * FROM table_train_214 WHERE lead_ecg = 1 OR (qt_interval = 1 OR (gender = 'male' AND qtc > 450) OR (gender = 'female' AND qtc > 470))
mean triplicate 12 _ lead ecg demonstrating qt interval ( corrected ) ( qtc ) > 450 msec in male and > 470 msec in female at the screening visit
CREATE TABLE table_train_214 ( "id" int, "gender" string, "lead_ecg" bool, "systolic_blood_pressure_sbp" int, "qt_interval" bool, "urine_dipstick_protein" int, "stroke" bool, "transient_ischemic_attack" bool, "qtc" int, "long_qt_syndrome" bool, "cardiovascular_disease" bool, "estimated_glomerular_filtration_rate_egfr" int, "screening" bool, "diastolic_blood_pressure_dbp" int, "urine_protein" int, "body_mass_index_bmi" float, "myocardial_infarction" bool, "creatinine_ratio" int, "age" float, "NOUSE" float )
SELECT COUNT(kenenisa_bekele___eth__) FROM table_24011830_2 WHERE world_record = "African record"
Name the total number of kenesia for african record
CREATE TABLE table_24011830_2 (kenenisa_bekele___eth__ VARCHAR, world_record VARCHAR)
SELECT player FROM table_2508633_3 WHERE nfl_team = "Baltimore Colts"
Who was drafted by the Baltimore Colts?
CREATE TABLE table_2508633_3 (player VARCHAR, nfl_team VARCHAR)
SELECT class FROM table_name_67 WHERE pos = "4th" AND year < 2006
Name the class for 4th position with year before 2006
CREATE TABLE table_name_67 ( class VARCHAR, pos VARCHAR, year VARCHAR )
SELECT COUNT(3 AS rd_runner_up) FROM table_24014744_1 WHERE putri_pariwisata_indonesia = "Albertina Fransisca Mailoa"
List the number of runners up when albertina fransisca mailoa won the putri pariwisata contest?
CREATE TABLE table_24014744_1 (putri_pariwisata_indonesia VARCHAR)
SELECT position FROM table_2508633_8 WHERE nfl_team = "Minnesota Vikings"
If the NFL team is the Minnesota Vikings, what is the position?
CREATE TABLE table_2508633_8 (position VARCHAR, nfl_team VARCHAR)
SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY COUNT(*) DESC LIMIT 1
Retrieve the country that has published the most papers.
CREATE TABLE inst ( instid number, name text, country text ) CREATE TABLE papers ( paperid number, title text ) CREATE TABLE authorship ( authid number, instid number, paperid number, authorder number ) CREATE TABLE authors ( authid number, lname text, fname text )
SELECT 1 AS st_runner_up FROM table_24014744_1 WHERE putri_pariwisata_indonesia = "Albertina Fransisca Mailoa"
Who won 2nd place when albertina fransisca mailoa was the winner of the putri pariwisata contest?
CREATE TABLE table_24014744_1 (putri_pariwisata_indonesia VARCHAR)
SELECT pick__number FROM table_2508633_8 WHERE player = "Gary Kubiak"
What is the pick number if the player is Gary Kubiak?
CREATE TABLE table_2508633_8 (pick__number VARCHAR, player VARCHAR)