answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT MIN(against) FROM table_name_21 WHERE draws < 0 | What is the smallest number against when the draws are less than 0? | CREATE TABLE table_name_21 (
against INTEGER,
draws INTEGER
) |
SELECT MIN(total) FROM table_name_85 WHERE bronze > 0 AND nation = "france (fra)" | What is the lowest total when the Bronze metals are larger than 0 and the nation is France (fra)? | CREATE TABLE table_name_85 (total INTEGER, bronze VARCHAR, nation VARCHAR) |
SELECT COUNT(club) FROM table_18018248_2 WHERE points = 29 | How many clubs had 29 points? | CREATE TABLE table_18018248_2 (club VARCHAR, points VARCHAR) |
SELECT company, rank FROM company ORDER BY sales_billion DESC | List the company name and rank for all companies in the decreasing order of their sales. | CREATE TABLE gas_station (
station_id number,
open_year number,
location text,
manager_name text,
vice_manager_name text,
representative_name text
)
CREATE TABLE station_company (
station_id number,
company_id number,
rank_of_the_year number
)
CREATE TABLE company (
company_id ... |
SELECT MAX(silver) FROM table_name_86 WHERE bronze = 1 AND gold = 1 | What is the highest silver medal count when there is 1 Bronze medal and 1 Gold medal? | CREATE TABLE table_name_86 (silver INTEGER, bronze VARCHAR, gold VARCHAR) |
SELECT club FROM table_18018248_2 WHERE draws = 9 | Which clubs had draws of 9? | CREATE TABLE table_18018248_2 (club VARCHAR, draws VARCHAR) |
SELECT "Indoor" FROM table_23074 WHERE "Wing" = 'NJ' | What is the indoor number for the NJ wing/ | CREATE TABLE table_23074 (
"Region" text,
"Wing" text,
"Inspection" real,
"Standard" real,
"Indoor" real,
"Outdoor" real,
"Written" real,
"Panel Quiz" real,
"Mile Run" real,
"Points" real,
"Overall" text
) |
SELECT COUNT(total) FROM table_name_61 WHERE bronze < 1 AND silver < 1 AND gold < 1 | What is the total number of medals when the Bronze, Silver, and Gold medals are smaller than 1? | CREATE TABLE table_name_61 (total VARCHAR, gold VARCHAR, bronze VARCHAR, silver VARCHAR) |
SELECT COUNT(draws) FROM table_18018248_2 WHERE goals_conceded = 45 | How many draws were there when the conceded goals was numbered at 45? | CREATE TABLE table_18018248_2 (draws VARCHAR, goals_conceded VARCHAR) |
SELECT MIN(tdp__w_) FROM table_269920_3 WHERE model = "7130N" | What's the TDP for the 7130N model? | CREATE TABLE table_269920_3 (
tdp__w_ INTEGER,
model VARCHAR
) |
SELECT SUM(bronze) FROM table_name_62 WHERE gold > 0 AND silver < 1 AND total < 1 | What is the sum of the Bronze medals when the Gold medals are larger than 0, Silver medals are smaller than 1, and the total is smaller than 1? | CREATE TABLE table_name_62 (bronze INTEGER, total VARCHAR, gold VARCHAR, silver VARCHAR) |
SELECT MIN(games_played) FROM table_18018248_2 WHERE loses = 21 | What is the least amount of games played with 21 losses? | CREATE TABLE table_18018248_2 (games_played INTEGER, loses VARCHAR) |
SELECT venue FROM table_name_41 WHERE home_team = "footscray" | Where did Footscray play as the home team? | CREATE TABLE table_name_41 (
venue VARCHAR,
home_team VARCHAR
) |
SELECT result FROM table_name_94 WHERE date = "11 august 2010" | what is the result for 11 august 2010? | CREATE TABLE table_name_94 (result VARCHAR, date VARCHAR) |
SELECT MIN(games_played) FROM table_18018214_3 | How many games did each team played? | CREATE TABLE table_18018214_3 (games_played INTEGER) |
SELECT COUNT(*) FROM table_203_137 WHERE "title" = 'can-i-bus' | how many times did a can i bus album reach the top 10 on the us charts ? | CREATE TABLE table_203_137 (
id number,
"title" text,
"album details" text,
"peak chart positions\nus" number,
"peak chart positions\nus r&b" number,
"certifications" text
) |
SELECT result FROM table_name_73 WHERE competition = "friendly" AND date = "8 october 2009" | what is the result when the competition is friendly on 8 october 2009? | CREATE TABLE table_name_73 (result VARCHAR, competition VARCHAR, date VARCHAR) |
SELECT MAX(points) FROM table_18018214_3 WHERE goals_scored = 47 | HOw many points where there when the number of goals scored was 47? | CREATE TABLE table_18018214_3 (points INTEGER, goals_scored VARCHAR) |
SELECT "Independent Regional Force" FROM table_28762 WHERE "Alliance" = '(R) Iván Norambuena ( UDI )' | What is the independent regional force when alliance is (r) iv n norambuena ( udi )? | CREATE TABLE table_28762 (
"Dist." real,
"Democratic Coalition" text,
"Alliance" text,
"Together We Can Do More" text,
"Independent Regional Force" text,
"Independents" text
) |
SELECT french_abbr FROM table_name_23 WHERE group_name = "european progressive democrats" | For the group name European Progressive Democrats what is the French abbr? | CREATE TABLE table_name_23 (french_abbr VARCHAR, group_name VARCHAR) |
SELECT goals_scored FROM table_18018214_3 WHERE club = "FM (LOSC) Vilnius" | How many goals were scored by club team fm (losc) vilnius | CREATE TABLE table_18018214_3 (goals_scored VARCHAR, club VARCHAR) |
SELECT ungegn FROM table_name_70 WHERE word_form = "ត្រីទស" | what's the ungen for ? | CREATE TABLE table_name_70 (
ungegn VARCHAR,
word_form VARCHAR
) |
SELECT livery FROM table_name_32 WHERE description = "20t tanker" AND date > 1941 | Which Livery has a Description of 20t tanker, with a date later than 1941? | CREATE TABLE table_name_32 (livery VARCHAR, description VARCHAR, date VARCHAR) |
SELECT MAX(loses) FROM table_18018214_3 WHERE club = "Ekranas-2 Panevėžys" | How many losses occurred when the club team was ekranas-2 panevėžys | CREATE TABLE table_18018214_3 (loses INTEGER, club VARCHAR) |
SELECT t1.drug FROM (SELECT prescriptions.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM prescriptions WHERE DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-1 year') GROUP BY prescriptions.drug) AS t1 WHERE t1.c1 <= 4 | what were the four most frequently prescribed medications since 1 year ago? | 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 patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE i... |
SELECT description FROM table_name_49 WHERE livery = "black" AND date < 1897 AND number_ & _name = "scottish tar distillers no. 78" | What's the Description for Scottish Tar Distillers No. 78, that's Livery is black, and a date prior to 1897? | CREATE TABLE table_name_49 (description VARCHAR, livery VARCHAR, date VARCHAR, number_ VARCHAR, _name VARCHAR) |
SELECT MAX(wins) FROM table_18018214_3 | What was the highest number of wins for any team? | CREATE TABLE table_18018214_3 (wins INTEGER) |
SELECT COUNT("Against") FROM table_61570 WHERE "Date" = '27/02/2005' | What is the total number of Against, when Date is '27/02/2005'? | CREATE TABLE table_61570 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) |
SELECT score FROM table_name_23 WHERE home = "washington" AND visitor = "florida" | What was the score of the game that Washington played at home against Florida? | CREATE TABLE table_name_23 (score VARCHAR, home VARCHAR, visitor VARCHAR) |
SELECT ncaat_record FROM table_18025024_7 WHERE date = "June 22" | What is the June 22 ncaat baseball record for Fresno State Bulldogs? | CREATE TABLE table_18025024_7 (ncaat_record VARCHAR, date VARCHAR) |
SELECT Status, AVG(Population) FROM city GROUP BY Status ORDER BY AVG(Population) | A bar chart about what are the statuses and average populations of each city?, I want to sort by the the average of population in ascending. | CREATE TABLE farm (
Farm_ID int,
Year int,
Total_Horses real,
Working_Horses real,
Total_Cattle real,
Oxen real,
Bulls real,
Cows real,
Pigs real,
Sheep_and_Goats real
)
CREATE TABLE city (
City_ID int,
Official_Name text,
Status text,
Area_km_2 real,
Populat... |
SELECT driver FROM table_name_12 WHERE constructor = "brm" AND laps > 30 | What driver has BRM as a constructor and had more than 30 laps? | CREATE TABLE table_name_12 (driver VARCHAR, constructor VARCHAR, laps VARCHAR) |
SELECT save FROM table_18025024_7 WHERE score = "7-6" | How many saves were in the Georgia game, versus the Bulldogs, with a score of 7-6? | CREATE TABLE table_18025024_7 (save VARCHAR, score VARCHAR) |
SELECT "year" FROM table_204_357 WHERE id = 1 | what is the first year listed ? | CREATE TABLE table_204_357 (
id number,
"year" number,
"div." text,
"pos." text,
"cup" text,
"top scorer (league)" text,
"score" number
) |
SELECT COUNT(lost) FROM table_name_66 WHERE period = "12 november 2012 – 27 november 2012" AND managed > 2 | How many lost when the number managed is over 2 and the period is from 12 november 2012 – 27 november 2012? | CREATE TABLE table_name_66 (lost VARCHAR, period VARCHAR, managed VARCHAR) |
SELECT ncaat_record FROM table_18025024_7 WHERE date = "June 21" | What is the June 21 ncaat baseball record for Fresno State Bulldogs? | CREATE TABLE table_18025024_7 (ncaat_record VARCHAR, date VARCHAR) |
SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Code DESC | For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the sum of code , and group by attribute name, list Y in desc order. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) |
SELECT AVG(attendance) FROM table_name_10 WHERE season < 1986 AND margin = 6 AND score = "13.16 (94) – 13.10 (88)" | What is the average attendnace for seasons before 1986, a margin of 6, and a Score of 13.16 (94) – 13.10 (88)? | CREATE TABLE table_name_10 (attendance INTEGER, score VARCHAR, season VARCHAR, margin VARCHAR) |
SELECT COUNT(2008 AS _suruga_bank_championship) FROM table_18027411_1 WHERE team___competition = "Estudiantes de La Plata" | how many times did estudiantes de la plata participate in 2008 suruga bank championship | CREATE TABLE table_18027411_1 (team___competition VARCHAR) |
SELECT v.VoteTypeId, COUNT(*) FROM Votes AS v WHERE v.UserId = '##UserID##' GROUP BY v.VoteTypeId | Get all of my Votes. | CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
Dup... |
SELECT MIN(season) FROM table_name_46 WHERE venue = "waverley park" AND score = "15.12 (102) – 9.14 (68)" AND margin > 34 | When is the earliest season at waverley park, a Score of 15.12 (102) – 9.14 (68), and a Margin larger than 34? | CREATE TABLE table_name_46 (season INTEGER, margin VARCHAR, venue VARCHAR, score VARCHAR) |
SELECT date FROM table_18042031_16 WHERE against = "Morocco" | What date was the match against Morocco played? | CREATE TABLE table_18042031_16 (date VARCHAR, against VARCHAR) |
SELECT hometown_school FROM table_name_40 WHERE position = "of" AND player = "mike white" | What is the hometown of Mike White? | CREATE TABLE table_name_40 (
hometown_school VARCHAR,
position VARCHAR,
player VARCHAR
) |
SELECT COUNT(season) FROM table_name_30 WHERE premier = "essendon" AND score = "15.12 (102) – 9.14 (68)" | How many seasons feature essendon, and a Score of 15.12 (102) – 9.14 (68)? | CREATE TABLE table_name_30 (season VARCHAR, premier VARCHAR, score VARCHAR) |
SELECT against FROM table_18042031_16 WHERE date = "21–23 September 2007" | What country did Gil play against on 21–23 september 2007? | CREATE TABLE table_18042031_16 (against VARCHAR, date VARCHAR) |
SELECT "Loss" FROM table_15609 WHERE "Date" = 'may 20' | Who did they lose to on May 20? | CREATE TABLE table_15609 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) |
SELECT date FROM table_name_85 WHERE venue = "mcg" | What was the date of the game at MCG? | CREATE TABLE table_name_85 (date VARCHAR, venue VARCHAR) |
SELECT partnering FROM table_18042031_16 WHERE date = "10–12 July 2009" | Who was Gil's partner on 10–12 july 2009 | CREATE TABLE table_18042031_16 (partnering VARCHAR, date VARCHAR) |
SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'arterial catheterization') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 24547) AND... | what was patient 24547's first arterial catheterization procedure time during a year before? | 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 prescriptions (
row_id number,
subject_id number,
h... |
SELECT date FROM table_name_18 WHERE home_team = "geelong" | What was the date of the game where Geelong was the home team? | CREATE TABLE table_name_18 (date VARCHAR, home_team VARCHAR) |
SELECT state__class_ FROM table_1802760_3 WHERE date_of_successors_formal_installation = "December 3, 1858" | Where was the successor formally installed on December 3, 1858? | CREATE TABLE table_1802760_3 (state__class_ VARCHAR, date_of_successors_formal_installation VARCHAR) |
SELECT account_id, account_details FROM accounts | What are the ids and details of all accounts? | CREATE TABLE ref_budget_codes (
budget_type_code text,
budget_type_description text
)
CREATE TABLE documents_with_expenses (
document_id number,
budget_type_code text,
document_details text
)
CREATE TABLE projects (
project_id number,
project_details text
)
CREATE TABLE ref_document_types... |
SELECT COUNT(crowd) FROM table_name_21 WHERE away_team = "footscray" | What was the crowd size for the game where Footscray was the away team? | CREATE TABLE table_name_21 (crowd VARCHAR, away_team VARCHAR) |
SELECT reason_for_change FROM table_1802760_3 WHERE date_of_successors_formal_installation = "February 14, 1859" | Why did the change happen in the state where the formal installation happen on February 14, 1859? | CREATE TABLE table_1802760_3 (reason_for_change VARCHAR, date_of_successors_formal_installation VARCHAR) |
SELECT "Engine" FROM table_50549 WHERE "Team" = 'tasman motorsports' | What engine does the Tasman Motorsports team have? | CREATE TABLE table_50549 (
"Team" text,
"Chassis" text,
"Engine" text,
"Tire" text,
"Sponsor" text
) |
SELECT SUM(round) FROM table_name_65 WHERE nationality = "sweden" AND overall = 199 | What is the total round with an overall of 199 with sweden? | CREATE TABLE table_name_65 (round INTEGER, nationality VARCHAR, overall VARCHAR) |
SELECT vacator FROM table_1802522_4 WHERE district = "Tennessee 1st" | Name the vacator for tennessee 1st | CREATE TABLE table_1802522_4 (vacator VARCHAR, district VARCHAR) |
SELECT "Year" FROM table_74767 WHERE "Slogan" = 'the wild side of soccer!' | What year has the wild side of soccer! as the slogan? | CREATE TABLE table_74767 (
"Year" text,
"League" text,
"Reg. Season" text,
"Finish" text,
"Owner(s)" text,
"Attendance Average" real,
"Slogan" text
) |
SELECT overall FROM table_name_12 WHERE nationality = "canada" AND round = 2 | What is the total for Canada during round 2? | CREATE TABLE table_name_12 (overall VARCHAR, nationality VARCHAR, round VARCHAR) |
SELECT iata_code FROM table_18047346_4 WHERE passengers = "15,505,566" | If the passengers are 15,505,566, what is the iata code? | CREATE TABLE table_18047346_4 (iata_code VARCHAR, passengers VARCHAR) |
SELECT COUNT("Details") FROM table_24186 WHERE "Station" = 'Emlyn Road' | Name the number of details for emlyn road | CREATE TABLE table_24186 (
"Station" text,
"Line" text,
"Planned" real,
"Cancelled" real,
"Proposal" text,
"Details" text
) |
SELECT club_team FROM table_name_1 WHERE round = 4 AND overall = 119 | Which team scores 119 in round 4? | CREATE TABLE table_name_1 (club_team VARCHAR, round VARCHAR, overall VARCHAR) |
SELECT airport_name FROM table_18047346_4 WHERE location = "Chicago, Illinois" | If the location is Chicago, Illinois, what is the airport name? | CREATE TABLE table_18047346_4 (airport_name VARCHAR, location VARCHAR) |
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%Ahmedabad%' OR UPPER(Location) LIKE '%Ahmedabad%' OR Location LIKE '%Ahmedabad%' AND Reputation >= 1000 ORDER BY Reputation DESC | Top 10 users Ahmedabad India. | CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CR... |
SELECT attendance FROM table_name_22 WHERE visitor = "anaheim" | What was the attendance at the Kings game when Anaheim was the visiting team? | CREATE TABLE table_name_22 (attendance VARCHAR, visitor VARCHAR) |
SELECT _percentage_chg_2009_10 FROM table_18047346_4 WHERE passengers = "15,505,566" | If the amount of passengers is 15,505,566, what is the %/chg. for 2009/10? | CREATE TABLE table_18047346_4 (_percentage_chg_2009_10 VARCHAR, passengers VARCHAR) |
SELECT COUNT(Posts.Id) AS "questions_posted" FROM Posts LEFT JOIN PostHistory AS PH ON PH.PostId = Posts.Id WHERE Posts.PostTypeId = 1 AND STR_POSITION(Posts.Tags, @tag) > 0 AND NOT Posts.ClosedDate IS NULL AND PH.PostHistoryTypeId = @offtopic | Questions tagged with [tag] that were closed. | CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
... |
SELECT score FROM table_name_27 WHERE record = "8–11–1" | What was the score of the Kings game when they had a record of 8–11–1? | CREATE TABLE table_name_27 (score VARCHAR, record VARCHAR) |
SELECT alma_mater FROM table_18042409_1 WHERE player = "Steve Hoar" | What university did Steve Hoar attend. | CREATE TABLE table_18042409_1 (alma_mater VARCHAR, player VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.diagnosis = "TRANSIENT ISCHEMIC ATTACK" | find .the number of patients who are female and were diagnosed with transient ischemic attack? | 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 te... |
SELECT high_points FROM table_name_2 WHERE team = "charlotte" | Name the high points for charlotte | CREATE TABLE table_name_2 (high_points VARCHAR, team VARCHAR) |
SELECT player FROM table_18042409_1 WHERE alma_mater = "Wilfrid Laurier University" | List the plats that attended Wilfrid Laurier University. | CREATE TABLE table_18042409_1 (player VARCHAR, alma_mater VARCHAR) |
SELECT penalty FROM table_name_89 WHERE time = "29:17" | What was a penalty given for at time 29:17? | CREATE TABLE table_name_89 (
penalty VARCHAR,
time VARCHAR
) |
SELECT team FROM table_name_68 WHERE date = "february 12" | Name the team on february 12 | CREATE TABLE table_name_68 (team VARCHAR, date VARCHAR) |
SELECT international_competition FROM table_18042409_1 WHERE national_lacrosse_league = "Toronto Rock" | List all the international lacrosse league competitions for Toronto Rock. | CREATE TABLE table_18042409_1 (international_competition VARCHAR, national_lacrosse_league VARCHAR) |
SELECT COUNT("film") FROM table_204_57 | how many movies did madhurima take part in total ? | CREATE TABLE table_204_57 (
id number,
"year" number,
"film" text,
"role" text,
"language" text,
"notes" text
) |
SELECT location_attendance FROM table_name_17 WHERE game > 54 AND date = "february 25" | Name the location attendance for game more than 54 on february 25 | CREATE TABLE table_name_17 (location_attendance VARCHAR, game VARCHAR, date VARCHAR) |
SELECT player FROM table_18042409_1 WHERE national_lacrosse_league = "Toronto Rock" | List all of the NLL Toronto Rock players. | CREATE TABLE table_18042409_1 (player VARCHAR, national_lacrosse_league VARCHAR) |
SELECT COUNT(DISTINCT instructor.instructor_id) FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.department = 'PHYSED' AND course.number = 336 AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.off... | Who are the professors teaching PHYSED 336 in the Summer 2020 semester ? | CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semes... |
SELECT record FROM table_name_67 WHERE date = "february 27" | Name the record for february 27 | CREATE TABLE table_name_67 (record VARCHAR, date VARCHAR) |
SELECT rank FROM table_18047346_5 WHERE iata_code = "JFK" | What rank is the airport whose IATA Code is JFK? | CREATE TABLE table_18047346_5 (rank VARCHAR, iata_code VARCHAR) |
SELECT "Second party" FROM table_59695 WHERE "Second member" = 'charles robert colvile' AND "First party" = 'conservative' AND "First member" = 'william mundy' | Which of the second parties has second member Charles Robert Colvile, a conservative first party, and first member William Mundy? | CREATE TABLE table_59695 (
"Election" text,
"First member" text,
"First party" text,
"Second member" text,
"Second party" text
) |
SELECT team FROM table_name_16 WHERE game = 48 | Name the team for 48 game | CREATE TABLE table_name_16 (team VARCHAR, game VARCHAR) |
SELECT airport_name FROM table_18047346_5 WHERE iata_code = "ORD" | Which airport has an IATA Code of ORD? | CREATE TABLE table_18047346_5 (airport_name VARCHAR, iata_code VARCHAR) |
SELECT SUM(points) FROM table_name_47 WHERE year < 1963 | What is the total points before 1963? | CREATE TABLE table_name_47 (
points INTEGER,
year INTEGER
) |
SELECT AVG(share) FROM table_name_29 WHERE RANK(timeslot) > 3 AND viewers__m_ < 4.87 | What's the average of shows that had a timeslot rank greater that 3 but still had a smaller viewership less than 4.87? | CREATE TABLE table_name_29 (share INTEGER, viewers__m_ VARCHAR, timeslot VARCHAR) |
SELECT tonnes FROM table_18047346_5 WHERE airport_name = "Louisville International Airport" | Louisville International Airport had how many tonnes of cargo in 2011? | CREATE TABLE table_18047346_5 (tonnes VARCHAR, airport_name 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 (((flight.airline_code = 'CO') OR flight.airline_code = 'DL') OR (flight.airline_code = 'TW')) AND ((CITY_1.city_code = AIRPORT_SERVICE_1.city_co... | what are the flights from CLEVELAND to INDIANAPOLIS on wednesday may twelfth on either TW DL or CO | CREATE TABLE days (
days_code varchar,
day_name 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,
departur... |
SELECT division FROM table_name_90 WHERE conference = "afc" AND wins = 10 AND appearances > 18 | Which division in the AFC Conference had a total of 10 wins and appeared more than 18 times? | CREATE TABLE table_name_90 (division VARCHAR, appearances VARCHAR, conference VARCHAR, wins VARCHAR) |
SELECT tonnes FROM table_18047346_5 WHERE iata_code = "IND" | How many tonnes of cargo did the airport have with the IATA Code IND? | CREATE TABLE table_18047346_5 (tonnes VARCHAR, iata_code VARCHAR) |
SELECT "Name" FROM table_34534 WHERE "Borough" = 'anchorage' AND "Type" = 'natural history' | In what Borough is the Anchorage museum of Natural History? | CREATE TABLE table_34534 (
"Name" text,
"Town/City" text,
"Borough" text,
"Region" text,
"Type" text
) |
SELECT MIN(wins) FROM table_name_19 WHERE division = "east" AND losses = 8 AND appearances < 18 | How many losses did the East Division have who appeared 18 times and lost 8? | CREATE TABLE table_name_19 (wins INTEGER, appearances VARCHAR, division VARCHAR, losses VARCHAR) |
SELECT incumbent FROM table_1805191_10 WHERE party = "Democratic" AND district = "Florida 11" | Who is the incumbent democratic party in district florida 11? | CREATE TABLE table_1805191_10 (incumbent VARCHAR, party VARCHAR, district VARCHAR) |
SELECT SUM("Roll") FROM table_68052 WHERE "Area" = 'raetihi' AND "Name" = 'orautoha school' AND "Decile" < '8' | What is the roll number of Orautoha school in Raetihi, which has a decile smaller than 8? | CREATE TABLE table_68052 (
"Name" text,
"Years" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
) |
SELECT losses FROM table_name_95 WHERE appearances < 16 | How many losses did the division who appeared less than 16 times have? | CREATE TABLE table_name_95 (losses VARCHAR, appearances INTEGER) |
SELECT district FROM table_1805191_10 WHERE first_elected = 2000 | In which district is the first elected 2000? | CREATE TABLE table_1805191_10 (district VARCHAR, first_elected VARCHAR) |
SELECT time_retired FROM table_name_41 WHERE grid = "4" | What was the time/retired of the car that started in grid 4? | CREATE TABLE table_name_41 (
time_retired VARCHAR,
grid VARCHAR
) |
SELECT SUM(total) FROM table_name_68 WHERE silver = "1" AND nation = "spain" | How many medals for spain with 1 silver? | CREATE TABLE table_name_68 (total INTEGER, silver VARCHAR, nation VARCHAR) |
SELECT first_elected FROM table_1805191_10 WHERE district = "Florida 19" | When is the first elected in the Florida 19 district? | CREATE TABLE table_1805191_10 (first_elected VARCHAR, district VARCHAR) |
SELECT "CFL Team" FROM table_16396 WHERE "College" = 'Simon Fraser' | What CFL teams are part of Simon Fraser college? | CREATE TABLE table_16396 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.