answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT MAX(year) FROM table_name_20 WHERE actress = "katharine hepburn"
When was the last year when Katharine Hepburn won?
CREATE TABLE table_name_20 (year INTEGER, actress VARCHAR)
SELECT licensee FROM table_1949746_1 WHERE city_of_license = "Portsmouth"
When portsmouth is the city of license who is the licensee?
CREATE TABLE table_1949746_1 (licensee VARCHAR, city_of_license VARCHAR)
SELECT name FROM table_1749567_2 WHERE number = 28
What was the name of race #28?
CREATE TABLE table_1749567_2 ( name VARCHAR, number VARCHAR )
SELECT winner FROM table_name_53 WHERE year = "2003"
who was the winner in 2003?
CREATE TABLE table_name_53 (winner VARCHAR, year VARCHAR)
SELECT format FROM table_1949746_1 WHERE frequency = "790 AM"
When 790 am is the frequency what is the format?
CREATE TABLE table_1949746_1 (format VARCHAR, frequency VARCHAR)
SELECT Work_Type, AVG(t1.Age) FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_ID = t2.journalist_ID GROUP BY t2.Work_Type ORDER BY AVG(t1.Age)
Find the average age of journalists working on different role type, show the result with a bar chart, sort y axis in ascending order.
CREATE TABLE event ( Event_ID int, Date text, Venue text, Name text, Event_Attendance int ) CREATE TABLE news_report ( journalist_ID int, Event_ID int, Work_Type text ) CREATE TABLE journalist ( journalist_ID int, Name text, Nationality text, Age text, Years_working...
SELECT venue FROM table_name_90 WHERE winner = "marie-laure taya"
where did marie-laure taya win?
CREATE TABLE table_name_90 (venue VARCHAR, winner VARCHAR)
SELECT licensee FROM table_1949746_1 WHERE frequency = "90.7 FM"
When 90.7 fm is the frequency who is the licensee?
CREATE TABLE table_1949746_1 (licensee VARCHAR, frequency VARCHAR)
SELECT copa_libertadores_1992 FROM table_name_59 WHERE supercopa_sudamericana_1992 = "round of 16" AND team = "grêmio"
Which Copa Libertadores 1992 has a Supercopa Sudamericana 1992 of round of 16, and a Team of gr mio?
CREATE TABLE table_name_59 ( copa_libertadores_1992 VARCHAR, supercopa_sudamericana_1992 VARCHAR, team VARCHAR )
SELECT venue FROM table_name_17 WHERE score = "285"
what venue saw a score of 285?
CREATE TABLE table_name_17 (venue VARCHAR, score VARCHAR)
SELECT COUNT(total_drivers) FROM table_19487922_2 WHERE country = "India"
How many drivers does India have/
CREATE TABLE table_19487922_2 (total_drivers VARCHAR, country VARCHAR)
SELECT "City" FROM table_6037 WHERE "Colony Name" = 'northeastern crescent colony'
Which City has a Colony Name of northeastern crescent colony?
CREATE TABLE table_6037 ( "City" text, "State" text, "School" text, "Colony Name" text, "Date Founded" text )
SELECT MAX(laps) FROM table_name_34 WHERE time_retired = "+ 2 laps" AND grid = 13
What is the largest laps for Time/Retired of + 2 laps, and a Grid of 13?
CREATE TABLE table_name_34 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT COUNT(championships) FROM table_19487922_2 WHERE country = "Pakistan"
How many championships does Pakistan have?
CREATE TABLE table_19487922_2 (championships VARCHAR, country VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.diagnosis = "BRADYCARDIA"
provide the number of patients whose gender is f and primary disease is bradycardia?
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...
SELECT constructor FROM table_name_42 WHERE laps > 0 AND grid = 5
What company constructed the car with more than 0 laps and shows 5 for grid?
CREATE TABLE table_name_42 (constructor VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT current_march_20, _2010 FROM table_19487922_2 WHERE country = "Denmark"
How many current drivers, as of March 20, 2010 does Denmark have?
CREATE TABLE table_19487922_2 (current_march_20 VARCHAR, _2010 VARCHAR, country VARCHAR)
SELECT Posts.Id AS "post_link", Posts.OwnerUserId AS "user_link", Score, ViewCount, Score * 1000 / ViewCount AS "Score per Thousand Views" FROM Posts WHERE Score >= 5 AND PostTypeId = 1 ORDER BY ViewCount LIMIT 1000
Hidden gems: Lowest viewed questions with score 5 or higher.
CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDa...
SELECT SUM(laps) FROM table_name_20 WHERE driver = "derek warwick"
What is the sum of laps for Derek Warwick?
CREATE TABLE table_name_20 (laps INTEGER, driver VARCHAR)
SELECT MIN(championships) FROM table_19487922_2
What in the minimum number of championships won by a nation?
CREATE TABLE table_19487922_2 (championships INTEGER)
SELECT LAST_DATE_OF_MONTH(p.CreationDate), AVG(CAST(p.Score AS FLOAT)) FROM Posts AS p WHERE (p.PostTypeId = 2) AND (p.CreationDate >= '##Date1?2010-01-01##') AND (p.CreationDate <= '##Date2?2021-01-01##') GROUP BY LAST_DATE_OF_MONTH(p.CreationDate) ORDER BY LAST_DATE_OF_MONTH(p.CreationDate)
Average score of answers per month.
CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE Votes ( Id num...
SELECT years_runner_up FROM table_name_91 WHERE runners_up > 1 AND club = "birmingham city"
What years runner-up is Birmingham city, with over 1 runners-up?
CREATE TABLE table_name_91 (years_runner_up VARCHAR, runners_up VARCHAR, club VARCHAR)
SELECT country FROM table_1949994_7 WHERE end_date = "June 25"
Where was the season that ended on June 25 located?
CREATE TABLE table_1949994_7 (country VARCHAR, end_date VARCHAR)
SELECT venue FROM table_name_99 WHERE date = "16 january 1996"
what is the venue when the date is 16 january 1996?
CREATE TABLE table_name_99 ( venue VARCHAR, date VARCHAR )
SELECT home_team AS score FROM table_name_2 WHERE away_team = "st kilda"
Which Home team score has an Away team of st kilda?
CREATE TABLE table_name_2 (home_team VARCHAR, away_team VARCHAR)
SELECT start_date FROM table_1949994_7 WHERE end_date = "July ?"
When did the season that end in July ? start?
CREATE TABLE table_1949994_7 (start_date VARCHAR, end_date VARCHAR)
SELECT COUNT("PF") FROM table_73871 WHERE "Skip" = 'Kelly Scott'
If the skip is Kelly Scott, what is the PF total number?
CREATE TABLE table_73871 ( "Locale" text, "Skip" text, "W" real, "L" real, "PF" real, "PA" real, "Ends Won" real, "Ends Lost" real, "Blank Ends" real, "Stolen Ends" real, "Shot Pct." real )
SELECT home_team FROM table_name_27 WHERE venue = "victoria park"
Which Home team has a Venue of victoria park?
CREATE TABLE table_name_27 (home_team VARCHAR, venue VARCHAR)
SELECT premiere_air_dates FROM table_1949994_7 WHERE format = "1 Team"
When did the season with 1 team format premiere?
CREATE TABLE table_1949994_7 (premiere_air_dates VARCHAR, format VARCHAR)
SELECT * FROM table_train_85 WHERE mini_mental_state_examination_mmse >= 15 AND mini_mental_state_examination_mmse <= 26
mini mental status exam ( mmse ) between 15 _ 26 ;
CREATE TABLE table_train_85 ( "id" int, "mini_mental_state_examination_mmse" int, "elevated_serum_phenylalanine" int, "elevated_creatinine" float, "renal_disease" bool, "geriatric_depression_scale_gds" int, "NOUSE" float )
SELECT player FROM table_name_90 WHERE position = "center" AND school_club_team = "washington state"
Who was the center from Washington State?
CREATE TABLE table_name_90 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT format FROM table_1949994_7 WHERE end_date = "June 25"
What's the format of the season that ended on June 25?
CREATE TABLE table_1949994_7 (format VARCHAR, end_date VARCHAR)
SELECT score FROM table_name_18 WHERE result = "third place" AND style = "cha-cha-cha"
Which Score has a Result of third place, and a Style of cha-cha-cha?
CREATE TABLE table_name_18 ( score VARCHAR, result VARCHAR, style VARCHAR )
SELECT school_club_team FROM table_name_34 WHERE player = "paul dawkins"
What school did Paul Dawkins play for?
CREATE TABLE table_name_34 (school_club_team VARCHAR, player VARCHAR)
SELECT premiere_air_dates FROM table_1949994_7 WHERE no = 3
What's season 3's premiere date?
CREATE TABLE table_1949994_7 (premiere_air_dates VARCHAR, no VARCHAR)
SELECT SUM(cost.cost) FROM cost WHERE cost.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 30733) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')
how much was the total hospital bill for patient 30733's stay in a year before?
CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id numbe...
SELECT place FROM table_name_93 WHERE building = "victoria hall"
Name the place with building of victoria hall
CREATE TABLE table_name_93 (place VARCHAR, building VARCHAR)
SELECT premiere_air_dates FROM table_1949994_7 WHERE country = "The Netherlands"
When did the season located in the Netherlands premier?
CREATE TABLE table_1949994_7 (premiere_air_dates VARCHAR, country VARCHAR)
SELECT "Season #" FROM table_72726 WHERE "Original air date" = 'September 17, 1955'
Which Season originally aired on September 17, 1955
CREATE TABLE table_72726 ( "Series #" real, "Season #" real, "Title" text, "Directed by:" text, "Written by:" text, "Original air date" text )
SELECT MIN(date) FROM table_name_37 WHERE building = "victoria hall"
Name the least date for the place which has a building of victoria hall
CREATE TABLE table_name_37 (date INTEGER, building VARCHAR)
SELECT us_viewers__millions_ FROM table_19501664_1 WHERE directed_by = "Tony Phelan"
Name the viewers for the episode directed by tony phelan
CREATE TABLE table_19501664_1 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
SELECT MIN("Money list rank") FROM table_73694 WHERE "Best finish" = 'T9'
What is the minimum money list rank for the players having a best finish of T9?
CREATE TABLE table_73694 ( "Player" text, "Starts" real, "Cuts made" real, "Best finish" text, "Money list rank" real, "Earnings ($)" real )
SELECT size FROM table_name_94 WHERE date > 2000
Name the size which is past 2000
CREATE TABLE table_name_94 (size VARCHAR, date INTEGER)
SELECT original_air_date FROM table_19501664_1 WHERE us_viewers__millions_ = "15.74"
Name the original air date for 15.74 viewers
CREATE TABLE table_19501664_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT position_in_table FROM table_18788823_5 WHERE date_of_vacancy = "4 November 2008"
Which vacancy happened on 4 November 2008?
CREATE TABLE table_18788823_5 ( position_in_table VARCHAR, date_of_vacancy VARCHAR )
SELECT country FROM table_name_2 WHERE place = "mänttä"
Name the country that has mänttä
CREATE TABLE table_name_2 (country VARCHAR, place VARCHAR)
SELECT title FROM table_19501664_1 WHERE us_viewers__millions_ = "18.29"
Name the title for us viewers being 18.29
CREATE TABLE table_19501664_1 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT nationality FROM table_name_98 WHERE time = "2:07.64"
What Nationality's time is 2:07.64?
CREATE TABLE table_name_98 ( nationality VARCHAR, time VARCHAR )
SELECT round FROM table_name_32 WHERE player = "nick gillis"
What round was Nick Gillis?
CREATE TABLE table_name_32 (round VARCHAR, player VARCHAR)
SELECT platforms FROM table_19495707_1 WHERE application = "CityEngine"
Name the platforms for cityengine
CREATE TABLE table_19495707_1 (platforms VARCHAR, application VARCHAR)
SELECT Score, Id AS "post_link", ViewCount, OwnerUserId AS "user_link", CreationDate FROM Posts WHERE PostTypeId = 1 AND ClosedDate IS NULL AND (Body LIKE '%<strong>Possible Duplicate:</strong>%' OR Body LIKE '%<strong>Possible Duplicates:</strong>%') ORDER BY CreationDate
Open questions with the Possible Duplicate bit.
CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswer...
SELECT distance__km_ FROM table_name_85 WHERE station = "funao"
What is the distance to funao?
CREATE TABLE table_name_85 (distance__km_ VARCHAR, station VARCHAR)
SELECT license FROM table_19495707_1 WHERE application = "E-on Vue"
Name the license for e-on vue
CREATE TABLE table_19495707_1 (license VARCHAR, application VARCHAR)
SELECT qual_2 FROM table_name_27 WHERE best = "1:27.642"
What is Qual 2, when Best is 1:27.642?
CREATE TABLE table_name_27 ( qual_2 VARCHAR, best VARCHAR )
SELECT station FROM table_name_91 WHERE rapid = "↑" AND distance__km_ > 3.4 AND japanese = "下鴨生"
What station has a Rapid of ↑, is 3.4 km away, and has a Japanese title of 下鴨生?
CREATE TABLE table_name_91 (station VARCHAR, japanese VARCHAR, rapid VARCHAR, distance__km_ VARCHAR)
SELECT COUNT(developed_by) FROM table_19495707_1 WHERE application = "Solid Edge"
Name the number of developed by for solid edge
CREATE TABLE table_19495707_1 (developed_by VARCHAR, application VARCHAR)
SELECT Answers.Id AS "post_link", Questions.Tags, Answers.Score FROM Posts AS Answers, Posts AS Questions, PostTags, Tags WHERE Answers.ParentId = Questions.Id AND Questions.Id = PostTags.PostId AND PostTags.TagId = Tags.Id AND Tags.TagName = '8' AND YEAR(Answers.CreationDate) >= 2015 ORDER BY Answers.Score DESC LIMIT ...
Drupal 8: Most popular answers 2015.
CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, U...
SELECT location FROM table_name_77 WHERE distance__km_ < 7.1 AND rapid = "●"
What location is less than 7.1 km away, and has a Rapid of ●?
CREATE TABLE table_name_77 (location VARCHAR, distance__km_ VARCHAR, rapid VARCHAR)
SELECT license FROM table_19495707_1 WHERE latest_release_date_and_version = "2009-05-25 v 7.61"
Name the license for 2009-05-25 v 7.61
CREATE TABLE table_19495707_1 (license VARCHAR, latest_release_date_and_version VARCHAR)
SELECT MAX("Trine Dehli Cleve") FROM table_30674
What is the largest number for trine dehli cleve?
CREATE TABLE table_30674 ( "Couple" text, "Style" text, "Music" text, "Trine Dehli Cleve" real, "Tor Fl\u00f8ysvik" real, "Karianne Gulliksen" real, "Christer Tornell" real, "Total" real )
SELECT father FROM table_name_89 WHERE spouse = "ottokar ii" AND birth = "1204"
What is the name of the father who was born in 1204 and married ottokar ii?
CREATE TABLE table_name_89 (father VARCHAR, spouse VARCHAR, birth VARCHAR)
SELECT COUNT(application) FROM table_19495707_1 WHERE mainly_used_for = "Modeling, Computer Aided Design, Animation"
Name the number of application for modeling, computer aided design, animation
CREATE TABLE table_19495707_1 (application VARCHAR, mainly_used_for VARCHAR)
SELECT original_air_date FROM table_name_58 WHERE no_in_series > 3
What the air dates for the episodes are episode 3 in the series?
CREATE TABLE table_name_58 ( original_air_date VARCHAR, no_in_series INTEGER )
SELECT birth FROM table_name_47 WHERE ceased_to_be_queen = "18 jun 1297"
What is the birth date of the woman who ceased to be Queen on 18 Jun 1297?
CREATE TABLE table_name_47 (birth VARCHAR, ceased_to_be_queen VARCHAR)
SELECT application FROM table_19495707_1 WHERE developed_by = "Caligari Corporation"
Name the application for caligari corporation
CREATE TABLE table_19495707_1 (application VARCHAR, developed_by VARCHAR)
SELECT winner FROM table_name_35 WHERE result = "90–86"
What team was the winner when the result was 90 86?
CREATE TABLE table_name_35 ( winner VARCHAR, result VARCHAR )
SELECT spouse FROM table_name_26 WHERE father = "leopold vi, duke of austria"
Leopold VI, Duke of Austria is the father-in-law of which person?
CREATE TABLE table_name_26 (spouse VARCHAR, father VARCHAR)
SELECT MIN(no) FROM table_1949994_8 WHERE start_date = "June 6"
What series number started production on June 6?
CREATE TABLE table_1949994_8 (no INTEGER, start_date VARCHAR)
SELECT winners FROM table_name_83 WHERE team = "halcones uv xalapa"
How many winners did Halcones uv xalapa have?
CREATE TABLE table_name_83 ( winners VARCHAR, team VARCHAR )
SELECT birth FROM table_name_94 WHERE death = "18 october 1335"
What is the birth date of the person who died on 18 October 1335?
CREATE TABLE table_name_94 (birth VARCHAR, death VARCHAR)
SELECT format FROM table_1949994_8 WHERE local_title = "Fort Boyard: Ultimate Challenge"
What was the production format for the series with the local title Fort Boyard: Ultimate Challenge?
CREATE TABLE table_1949994_8 (format VARCHAR, local_title VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.icd9_code = "8872"
what number of patients with procedure icd9 code 8872 had death status as 0?
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 demographic (...
SELECT marriage FROM table_name_59 WHERE death = "6 dec 1240"
When did the person who died on 6 Dec 1240 get married?
CREATE TABLE table_name_59 (marriage VARCHAR, death VARCHAR)
SELECT premiere_air_dates FROM table_1949994_8 WHERE start_date = "June 16"
What were the television air dates for the series that had a production start date of June 16?
CREATE TABLE table_1949994_8 (premiere_air_dates VARCHAR, start_date VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicaid" AND demographic.diagnosis = "ST ELEVATED MYOCARDIAL INFARCTION\CARDIAC CATH"
how many patients have medicaid insurance and diagnosed with st elevated myocardial infarction\cardiac cath?
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 prescription...
SELECT time_retired FROM table_name_38 WHERE grid < 19 AND manufacturer = "aprilia" AND laps < 21
What time/retired for a grid less than 19, under 21 laps, and made by aprilia?
CREATE TABLE table_name_38 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR, manufacturer VARCHAR)
SELECT MAX(no) FROM table_1949994_8 WHERE local_title = "Fort Boyard"
What series number had the local title of Fort Boyard?
CREATE TABLE table_1949994_8 (no INTEGER, local_title VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BRADYCARDIA" AND demographic.dod_year <= "2131.0"
count the number of patients whose primary disease is bradycardia and year of death is less than or equal to 2131?
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, ...
SELECT SUM(grid) FROM table_name_25 WHERE rider = "dirk heidolf"
What is the grid for dirk heidolf?
CREATE TABLE table_name_25 (grid INTEGER, rider VARCHAR)
SELECT MIN(episodes) FROM table_1949994_8
What was the minimum number of episodes in any of the series?
CREATE TABLE table_1949994_8 (episodes INTEGER)
SELECT "Game Title" FROM table_61654 WHERE "Metacritic" = '85/100' AND "Year Released" < '2010'
What game was released before 2010 with a Metacritic of 85/100?
CREATE TABLE table_61654 ( "Game Title" text, "Year Released" real, "Platform" text, "GameRankings" text, "Metacritic" text )
SELECT away_team FROM table_name_60 WHERE venue = "victoria park"
What away team plays at Victoria Park?
CREATE TABLE table_name_60 (away_team VARCHAR, venue VARCHAR)
SELECT week__number FROM table_19508635_1 WHERE theme = "The Beatles"
Name the week number for the beatles
CREATE TABLE table_19508635_1 (week__number VARCHAR, theme VARCHAR)
SELECT MAX("Pick") FROM table_79579 WHERE "Position" = 'defensive end'
What is the highest pick for the position of defensive end?
CREATE TABLE table_79579 ( "Pick" real, "Team" text, "Player" text, "Position" text, "College" text )
SELECT SUM(caps) FROM table_name_96 WHERE player = "stephen hoiles"
How many caps does stephen hoiles have?
CREATE TABLE table_name_96 (caps INTEGER, player VARCHAR)
SELECT result FROM table_19508635_1 WHERE theme = "1980s"
Name the result for 1980s
CREATE TABLE table_19508635_1 (result VARCHAR, theme VARCHAR)
SELECT "Chassis" FROM table_71423 WHERE "Points" < '6' AND "Year" = '1961'
In 1961, what was the Chassis when the points were lower than 6?
CREATE TABLE table_71423 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real )
SELECT date FROM table_name_19 WHERE home_team = "st kilda"
Which Date has a Home team of st kilda?
CREATE TABLE table_name_19 (date VARCHAR, home_team VARCHAR)
SELECT order__number FROM table_19508635_1 WHERE theme = "1960s"
Name the order number for 1960s
CREATE TABLE table_19508635_1 (order__number VARCHAR, theme 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 = 'DALLAS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_...
what 's the lowest round trip fare from DALLAS to BALTIMORE
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 dual_carrier...
SELECT venue FROM table_name_6 WHERE away_team = "footscray"
Which Venue has an Away team of footscray?
CREATE TABLE table_name_6 (venue VARCHAR, away_team VARCHAR)
SELECT result FROM table_19508635_1 WHERE original_artist = "Dolly Parton"
Name the result for dolly parton
CREATE TABLE table_19508635_1 (result VARCHAR, original_artist VARCHAR)
SELECT COUNT("GB") FROM table_27668 WHERE "ISO \u2116" = 'CN-65'
How many gb's have an iso number of cn-65?
CREATE TABLE table_27668 ( "GB" text, "ISO \u2116" text, "Province" text, "Chinese Name" text, "Capital" text, "Population\u00b9" real, "Density\u00b2" text, "Area\u00b3" real, "Abbreviation/Symbol" text )
SELECT crowd FROM table_name_86 WHERE home_team = "geelong"
Which Crowd has a Home team of geelong?
CREATE TABLE table_name_86 (crowd VARCHAR, home_team VARCHAR)
SELECT song_choice FROM table_19508635_1 WHERE original_artist = "Michael Jackson"
Name the song choice for michael jackson
CREATE TABLE table_19508635_1 (song_choice VARCHAR, original_artist VARCHAR)
SELECT "Tyre" FROM table_77969 WHERE "Fastest lap" = 'jim clark' AND "Circuit" = 'prince george'
What is the tyre for the circuit of Prince George, which had Jim Clark as the fastest lap?
CREATE TABLE table_77969 ( "Race" text, "Circuit" text, "Date" text, "Pole position" text, "Fastest lap" text, "Winning driver" text, "Constructor" text, "Tyre" text, "Report" text )
SELECT MAX(silver) FROM table_name_13 WHERE total = 3 AND bronze < 1
What is the most silver medals a team with 3 total medals and less than 1 bronze has?
CREATE TABLE table_name_13 (silver INTEGER, total VARCHAR, bronze VARCHAR)
SELECT MAX(series__number) FROM table_19517621_4
What is the largest series number?
CREATE TABLE table_19517621_4 (series__number INTEGER)
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', lab.labresulttime)) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-195316' AND patient.hos...
how many hours have elapsed since the last time patient 006-195316 was given a -lymphs lab test during their current hospital visit?
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime t...
SELECT MIN(silver) FROM table_name_68 WHERE gold < 0
What is the least amount of silver medals a team with less than 0 gold medals has?
CREATE TABLE table_name_68 (silver INTEGER, gold INTEGER)