answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT award FROM table_name_18 WHERE year = 1992 | What award is featured in 1992? | CREATE TABLE table_name_18 (award VARCHAR, year VARCHAR) |
SELECT opponent FROM table_14945112_1 WHERE date = "November 12, 1978" | Who were all of the opponents when the date was November 12, 1978? | CREATE TABLE table_14945112_1 (opponent VARCHAR, date VARCHAR) |
SELECT MAX("Game") FROM table_35236 WHERE "Opponent" = 'new york rangers' AND "Points" > '55' | What's the highest game against the New York Rangers with more than 55 points? | CREATE TABLE table_35236 (
"Game" real,
"January" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) |
SELECT award FROM table_name_85 WHERE year < 1998 AND type = "won" AND category = "best sound" AND title = "the exorcist" | What award was won in the best sound category for the exorcist before 1998? | CREATE TABLE table_name_85 (award VARCHAR, title VARCHAR, category VARCHAR, year VARCHAR, type VARCHAR) |
SELECT COUNT(attendance) FROM table_14945112_1 WHERE date = "October 1, 1978" | What is the total number of values for attendance for the date October 1, 1978? | CREATE TABLE table_14945112_1 (attendance VARCHAR, date VARCHAR) |
SELECT last_performance FROM table_name_46 WHERE status = "past replacement" | What is the date of the Last Performance of Billy Elliot with a Cast Status of past replacement? | CREATE TABLE table_name_46 (
last_performance VARCHAR,
status VARCHAR
) |
SELECT 1953 FROM table_name_25 WHERE richmond_[staten_is] = "1,019" | What was the candidate that got 1,019 votes for staten island? | CREATE TABLE table_name_25 (richmond_ VARCHAR, staten_is VARCHAR) |
SELECT MAX(attendance) FROM table_14945608_1 | What was the highest attendance? | CREATE TABLE table_14945608_1 (attendance INTEGER) |
SELECT LName, COUNT(LName) FROM Student WHERE Sex = "F" GROUP BY LName ORDER BY Age DESC | A bar chart for what are the number of the last names of female students, ordered by age descending? | CREATE TABLE Department (
DNO INTEGER,
Division VARCHAR(2),
DName VARCHAR(25),
Room VARCHAR(5),
Building VARCHAR(13),
DPhone INTEGER
)
CREATE TABLE Enrolled_in (
StuID INTEGER,
CID VARCHAR(7),
Grade VARCHAR(2)
)
CREATE TABLE Course (
CID VARCHAR(7),
CName VARCHAR(40),
C... |
SELECT opponent FROM table_name_28 WHERE date = "august 29" | What was the opposing team for the game on August 29? | CREATE TABLE table_name_28 (opponent VARCHAR, date VARCHAR) |
SELECT date FROM table_14945608_1 WHERE opponent = "New York Jets" | What date did the Colts play New York Jets? | CREATE TABLE table_14945608_1 (date VARCHAR, opponent VARCHAR) |
SELECT COUNT(results) FROM table_1805191_34 WHERE incumbent = "Mike McIntyre" | How many times was Mike McIntyre elected? | CREATE TABLE table_1805191_34 (
results VARCHAR,
incumbent VARCHAR
) |
SELECT player FROM table_name_68 WHERE tries = "11" | which player has 11 tries? | CREATE TABLE table_name_68 (player VARCHAR, tries VARCHAR) |
SELECT COUNT(result) FROM table_14945608_1 WHERE attendance = 60225 | How many games had the attendance of 60225? | CREATE TABLE table_14945608_1 (result VARCHAR, attendance VARCHAR) |
SELECT "Tournament" FROM table_41300 WHERE "Date" = '13 november 2000' | What is the name of the tournament played 13 November 2000? | CREATE TABLE table_41300 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Opponent in the final" text,
"Score" text
) |
SELECT player FROM table_name_45 WHERE conv = "14" | which player has a conv of 14? | CREATE TABLE table_name_45 (player VARCHAR, conv VARCHAR) |
SELECT result FROM table_14954150_1 WHERE date = "October 6, 1974" | What was the result of the game on October 6, 1974? | CREATE TABLE table_14954150_1 (result VARCHAR, date VARCHAR) |
SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(SALARY) | For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, visualize a bar chart about the distribution of hire_date and the average of salary bin hire_date by weekday, display by the total number from low to high. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE T... |
SELECT conv FROM table_name_19 WHERE span = "1992-2000" | on the span of 1992-2000, what was the conv ? | CREATE TABLE table_name_19 (conv VARCHAR, span VARCHAR) |
SELECT record FROM table_14954150_1 WHERE date = "September 22, 1974" | What was the record on September 22, 1974? | CREATE TABLE table_14954150_1 (record VARCHAR, date VARCHAR) |
SELECT "Region" FROM table_52169 WHERE "Year" < '2008' AND "Name" = 'best 1200' | Name the region before 2008 when name of best 1200 | CREATE TABLE table_52169 (
"Region" text,
"Year" real,
"Name" text,
"Format(s)" text,
"Label" text
) |
SELECT MAX(points) FROM table_name_32 WHERE artist = "martine foubert" AND place > 2 | What is the high point toal for martine foubert placing below 2? | CREATE TABLE table_name_32 (points INTEGER, artist VARCHAR, place VARCHAR) |
SELECT bhofen_number1__rk_ FROM table_14948647_1 WHERE bhofen_number2__rk_ = "231.2 (8)" | What was the Bhofen #1 score and rank for the player whose Bhofen #2 score and rank was 231.2 (8)? | CREATE TABLE table_14948647_1 (bhofen_number1__rk_ VARCHAR, bhofen_number2__rk_ VARCHAR) |
SELECT (SELECT "year identified" FROM table_203_589 WHERE id = 3 + 1) - (SELECT "year identified" FROM table_203_589 WHERE id = 3) | how long after the third prion characterization would it take for another to be characterized ? | CREATE TABLE table_203_589 (
id number,
"protein" text,
"natural host" text,
"normal function" text,
"prion state" text,
"prion phenotype" text,
"year identified" number
) |
SELECT away_team AS score FROM table_name_64 WHERE away_team = "melbourne" | How much did the away team Melbourne score? | CREATE TABLE table_name_64 (away_team VARCHAR) |
SELECT bhofen_number2__rk_ FROM table_14948647_1 WHERE ga_pa__rk_ = "233.4 (16)" | What was the Bhofen #2 score and rank for the player whose GA-PA score and rank was 233.4 (16)? | CREATE TABLE table_14948647_1 (bhofen_number2__rk_ VARCHAR, ga_pa__rk_ 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 = 'CINCINNATI' AND date_day.day_number = 27 AND date_day.month_number = 8 AN... | find flight from MEMPHIS to CINCINNATI on sunday | CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
... |
SELECT MAX(crowd) FROM table_name_5 WHERE home_team = "richmond" | What is the highest crowd number for the home team Richmond? | CREATE TABLE table_name_5 (crowd INTEGER, home_team VARCHAR) |
SELECT bhofen_number2__rk_ FROM table_14948647_1 WHERE ga_pa__rk_ = "227.5 (19)" | What was the Bhofen #2 score and rank for the player whose GA-PA score and rank was 227.5 (19)? | CREATE TABLE table_14948647_1 (bhofen_number2__rk_ VARCHAR, ga_pa__rk_ VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND procedures.short_title = "Aortocor bypas-3 cor art" | how many patients whose ethnicity is american indian/alaska native and procedure short title is aortocor bypas-3 cor art? | 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 t... |
SELECT home_team FROM table_name_76 WHERE venue = "glenferrie oval" | What home team played at Glenferrie Oval? | CREATE TABLE table_name_76 (home_team VARCHAR, venue VARCHAR) |
SELECT total_points FROM table_14948647_1 WHERE oberstdorf__rk_ = "252.6 (11)" | How many points in total were scored by the player whose Oberstdork score and rank were 252.6 (11)? | CREATE TABLE table_14948647_1 (total_points VARCHAR, oberstdorf__rk_ VARCHAR) |
SELECT country FROM table_name_3 WHERE rank = 6 | what is the country for rank 6? | CREATE TABLE table_name_3 (
country VARCHAR,
rank VARCHAR
) |
SELECT away_team AS score FROM table_name_51 WHERE away_team = "st kilda" | How much did the away team St Kilda score? | CREATE TABLE table_name_51 (away_team VARCHAR) |
SELECT MAX(week) FROM table_14958620_1 WHERE attendance = 74303 | On which week was the attendance 74303? | CREATE TABLE table_14958620_1 (week INTEGER, attendance VARCHAR) |
SELECT COUNT(goals_conceded) FROM table_name_13 WHERE played > 18 | What are the number of goals conceded that has a played greater than 18? | CREATE TABLE table_name_13 (
goals_conceded VARCHAR,
played INTEGER
) |
SELECT crowd FROM table_name_28 WHERE away_team = "st kilda" | Which Crowd has an Away team of st kilda? | CREATE TABLE table_name_28 (crowd VARCHAR, away_team VARCHAR) |
SELECT date FROM table_14958620_1 WHERE game_site = "Tiger Stadium" | On which date was the game played at Tiger Stadium? | CREATE TABLE table_14958620_1 (date VARCHAR, game_site VARCHAR) |
SELECT "chip" FROM table_204_416 WHERE "flash size" = (SELECT MAX("flash size") FROM table_204_416) | which two chips have the most flash size ? | CREATE TABLE table_204_416 (
id number,
"chip" text,
"flash size" text,
"eeprom" number,
"sram" number,
"frequency\n[mhz]" number,
"package" text
) |
SELECT stadium FROM table_name_8 WHERE final_score = "26–21" | What stadium has a final score of 26–21? | CREATE TABLE table_name_8 (stadium VARCHAR, final_score VARCHAR) |
SELECT result FROM table_14959246_2 WHERE opponent = "Dallas Cowboys" | What was the final score of the game against the Dallas Cowboys? | CREATE TABLE table_14959246_2 (result VARCHAR, opponent VARCHAR) |
SELECT "Points" FROM table_71847 WHERE "Chassis" = 'lancia d50' AND "Year" = '1954' | What is the Point of Chassis of Lancia d50 in 1954 | CREATE TABLE table_71847 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" text
) |
SELECT final_score FROM table_name_94 WHERE stadium = "texas stadium" AND visiting_team = "new orleans saints" | When the new orleans saints were visiting texas stadium, what was the final score? | CREATE TABLE table_name_94 (final_score VARCHAR, stadium VARCHAR, visiting_team VARCHAR) |
SELECT attendance FROM table_14959246_2 WHERE date = "December 10, 1972" | What was the attendance at the game played on December 10, 1972? | CREATE TABLE table_14959246_2 (attendance VARCHAR, date VARCHAR) |
SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 28343) AND prescriptions.route = 'po' ORDER BY prescriptions.startdate LIMIT 1 | what was the first medication that patient 28343 was prescribed via po route? | CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
... |
SELECT final_score FROM table_name_43 WHERE stadium = "texas stadium" AND date = "september 17" | What was the final score at texas stadium on September 17? | CREATE TABLE table_name_43 (final_score VARCHAR, stadium VARCHAR, date VARCHAR) |
SELECT COUNT(french_voice_actor) FROM table_14960574_6 WHERE spanish_voice_actor = "Javier Romano" | Name the french actor with javier romano | CREATE TABLE table_14960574_6 (french_voice_actor VARCHAR, spanish_voice_actor VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "M" AND procedures.short_title = "Sm-to-sm bowel anastom" | provide the number of patients whose gender is m and procedure short title is sm-to-sm bowel anastom? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... |
SELECT final_score FROM table_name_9 WHERE visiting_team = "indianapolis colts" AND stadium = "giants stadium" | What was the final score for the game at giants stadium when the indianapolis colts were the visiting team? | CREATE TABLE table_name_9 (final_score VARCHAR, visiting_team VARCHAR, stadium VARCHAR) |
SELECT german_voice_actor FROM table_14960574_6 WHERE french_voice_actor = "Alain Dorval" | Name the german voice actor for alain dorval | CREATE TABLE table_14960574_6 (german_voice_actor VARCHAR, french_voice_actor VARCHAR) |
SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.city_code = "NYC" AND T2.Election_Cycle = "Spring" | Find the average age of students who live in the city with code 'NYC' and have secretary votes in the spring election cycle. | CREATE TABLE VOTING_RECORD (
Election_Cycle VARCHAR
)
CREATE TABLE STUDENT (
Age INTEGER,
StuID VARCHAR,
city_code VARCHAR
) |
SELECT investment_earnings FROM table_name_82 WHERE state_ & _federal = "8,549,565" | What were the investment earnings in the year that State and Federal taxes were $8,549,565? | CREATE TABLE table_name_82 (investment_earnings VARCHAR, state_ VARCHAR, _federal VARCHAR) |
SELECT german_voice_actor FROM table_14960574_6 WHERE spanish_voice_actor = "Rafael Torres" | Name the german voice actor for rafael torres | CREATE TABLE table_14960574_6 (german_voice_actor VARCHAR, spanish_voice_actor VARCHAR) |
SELECT MIN("Score") FROM table_79778 WHERE "Place" = 't5' AND "Player" = 'bob tway' | What is the lowest score that Bob Tway get when he placed t5? | CREATE TABLE table_79778 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) |
SELECT investment_earnings FROM table_name_26 WHERE state_ & _federal = "13,999,169" | What were the investment earnings in the year that State and Federal taxes were $13,999,169? | CREATE TABLE table_name_26 (investment_earnings VARCHAR, state_ VARCHAR, _federal VARCHAR) |
SELECT character FROM table_14960574_6 WHERE french_voice_actor = "Sophie Arthuys" | Name the character for sophie arthuys | CREATE TABLE table_14960574_6 (character VARCHAR, french_voice_actor VARCHAR) |
SELECT COUNT(*), Classroom FROM list GROUP BY Classroom | Return a scatter on how many students does one classroom have? | CREATE TABLE teachers (
LastName TEXT,
FirstName TEXT,
Classroom INTEGER
)
CREATE TABLE list (
LastName TEXT,
FirstName TEXT,
Grade INTEGER,
Classroom INTEGER
) |
SELECT investment_earnings FROM table_name_3 WHERE year > 2001 AND other_local_sources = "$2,670,060" | What were the investment earnings in a year when other local sources were $2,670,060 after 2001? | CREATE TABLE table_name_3 (investment_earnings VARCHAR, year VARCHAR, other_local_sources VARCHAR) |
SELECT italian_voice_actor FROM table_14960574_6 WHERE german_voice_actor = "Dirk Fenselau" | Name the italian voice actor for dirk fenselau | CREATE TABLE table_14960574_6 (italian_voice_actor VARCHAR, german_voice_actor VARCHAR) |
SELECT time FROM table_name_45 WHERE heat > 2 AND nationality = "hungary" AND lane = 2 | What is Hungary's time with a heat higher than 2 and two lanes? | CREATE TABLE table_name_45 (
time VARCHAR,
lane VARCHAR,
heat VARCHAR,
nationality VARCHAR
) |
SELECT investment_earnings FROM table_name_23 WHERE total_revenue = "21,779,618" | What were the investment earnings in a year when total revenue was $21,779,618? | CREATE TABLE table_name_23 (investment_earnings VARCHAR, total_revenue VARCHAR) |
SELECT fa_cup FROM table_14962287_1 WHERE total = "565 (7)" | which fa cups had a total of 565 (7)? | CREATE TABLE table_14962287_1 (fa_cup VARCHAR, total VARCHAR) |
SELECT role_name, role_description FROM roles WHERE role_code = "MG" | What are the name and description for role code 'MG'? | CREATE TABLE document_locations (
document_id number,
location_code text,
date_in_location_from time,
date_in_locaton_to time
)
CREATE TABLE roles (
role_code text,
role_name text,
role_description text
)
CREATE TABLE all_documents (
document_id number,
date_stored time,
docume... |
SELECT property_taxes FROM table_name_33 WHERE year > 2002 AND total_revenue = "$40,891,700" | What were property taxes in a year when total revenue was $40,891,700 after 2002? | CREATE TABLE table_name_33 (property_taxes VARCHAR, year VARCHAR, total_revenue VARCHAR) |
SELECT years FROM table_14962287_1 WHERE other_a = "8 (1)" | which years had other a of 8 (1)? | CREATE TABLE table_14962287_1 (years VARCHAR, other_a VARCHAR) |
SELECT born_state, AVG(age) FROM head GROUP BY born_state ORDER BY AVG(age) DESC | Show the average age of heads of departments born in each state with a bar chart, and could you display y-axis in descending order? | CREATE TABLE head (
head_ID int,
name text,
born_state text,
age real
)
CREATE TABLE management (
department_ID int,
head_ID int,
temporary_acting text
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num... |
SELECT rank FROM table_name_28 WHERE season = 1 | What rank for season 1? | CREATE TABLE table_name_28 (rank VARCHAR, season VARCHAR) |
SELECT name FROM table_14962287_2 WHERE league = 142 | What name is associated with League 142? | CREATE TABLE table_14962287_2 (name VARCHAR, league VARCHAR) |
SELECT SUM("Total") FROM table_45396 WHERE "Year(s) won" = '1994, 1997' | Total for 1994, 1997 years won? | CREATE TABLE table_45396 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) |
SELECT week FROM table_name_66 WHERE attendance = "27,262" | What week had an attendance of 27,262? | CREATE TABLE table_name_66 (week VARCHAR, attendance VARCHAR) |
SELECT COUNT(other_a) FROM table_14962287_2 WHERE name = "Tommy Johnson Category:Articles with hCards" | How many values of Other A correspond to Tommy Johnson Category:Articles with hCards? | CREATE TABLE table_14962287_2 (other_a VARCHAR, name VARCHAR) |
SELECT COUNT("PL G") FROM table_8288 WHERE "CL G" < '7' AND "CL Apps" < '7' AND "FA YC" = '0' AND "Player" = 'pennant' | What is the total PL G of player pennant, who has less than 7 CL G, less than 7 CL apps, and a FA YC of 0? | CREATE TABLE table_8288 (
"Player" text,
"PL Apps" real,
"PL G" real,
"CL Apps" real,
"CL G" real,
"FAC / LC Apps" real,
"FAC / LC G" real,
"Total Apps" real,
"Total G" real,
"FA YC" real,
"UEFA YC" real
) |
SELECT opponent FROM table_name_7 WHERE attendance = "20,456" | What opponent has an attendance of 20,456? | CREATE TABLE table_name_7 (opponent VARCHAR, attendance VARCHAR) |
SELECT COUNT(league) FROM table_14962287_2 WHERE name = "Billy Meredith Category:Articles with hCards" | How many different Leagues are associated with Billy Meredith Category:Articles with hCards? | CREATE TABLE table_14962287_2 (league VARCHAR, name VARCHAR) |
SELECT MAX("Car.") FROM table_56183 WHERE "Yards" > '155' | What is the highest Car with more than 155 yards? | CREATE TABLE table_56183 (
"Player" text,
"Car." real,
"Yards" real,
"Avg." real,
"TD's" real,
"Long" real
) |
SELECT record FROM table_name_40 WHERE date = "march 27" | What was the record on March 27? | CREATE TABLE table_name_40 (record VARCHAR, date VARCHAR) |
SELECT COUNT(years) FROM table_14962287_2 WHERE fa_cup = 5 | How many separate values for Years are associated with FA Cup of 5? | CREATE TABLE table_14962287_2 (years VARCHAR, fa_cup 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, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PHILADELPHIA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'B... | show me the flights from PHILADELPHIA to BALTIMORE | 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 airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
dire... |
SELECT record FROM table_name_68 WHERE date = "march 22" | What was the record on March 22? | CREATE TABLE table_name_68 (record VARCHAR, date VARCHAR) |
SELECT years FROM table_14962287_2 WHERE total = "139" | What years have a total of 139? | CREATE TABLE table_14962287_2 (years VARCHAR, total VARCHAR) |
SELECT CRS_CODE, COUNT(*) FROM CLASS GROUP BY CRS_CODE ORDER BY COUNT(*) DESC | Draw a bar chart for how many sections does each course have?, display in descending by the y-axis. | CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5)
)
CREATE TABLE EMPLOYEE (
EMP_NUM int,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
E... |
SELECT record FROM table_name_44 WHERE date = "april 1" | What was the record on April 1? | CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR) |
SELECT COUNT(gdp_millions_of_usd__2009_) FROM table_1496582_1 WHERE country___territory = "Indonesia" | What was the GDP (in millions USD) of Indonesia in 2009? | CREATE TABLE table_1496582_1 (gdp_millions_of_usd__2009_ VARCHAR, country___territory VARCHAR) |
SELECT iata FROM table_name_14 WHERE icao = "slk" | Which IATA has a ICAO of slk? | CREATE TABLE table_name_14 (
iata VARCHAR,
icao VARCHAR
) |
SELECT MIN(crowd) FROM table_name_65 WHERE away_team = "carlton" | What was the lowest crowd size when Carlton was the away team. | CREATE TABLE table_name_65 (crowd INTEGER, away_team VARCHAR) |
SELECT MAX(gdp_millions_of_usd__2009_) FROM table_1496582_1 WHERE country___territory = "Hong Kong" | What was the GDP (in millions USD) of Hong Kong in 2009? | CREATE TABLE table_1496582_1 (gdp_millions_of_usd__2009_ INTEGER, country___territory VARCHAR) |
SELECT "Liberal ticket" FROM table_42138 WHERE "Socialist Workers ticket" = 'judith white' | What is the liberal ticket that has judith white as the socialist workers? | CREATE TABLE table_42138 (
"Office" text,
"Republican ticket" text,
"Democratic ticket" text,
"Conservative ticket" text,
"Liberal ticket" text,
"Socialist Labor ticket" text,
"Socialist Workers ticket" text
) |
SELECT home_team FROM table_name_5 WHERE away_team = "footscray" | Who played as the home team when Footscray was the away team? | CREATE TABLE table_name_5 (home_team VARCHAR, away_team VARCHAR) |
SELECT height FROM table_14966667_19 WHERE name = "Braxton Kelley" | How tall is Braxton Kelley? | CREATE TABLE table_14966667_19 (height VARCHAR, name VARCHAR) |
SELECT AVG(works_number) FROM table_name_57 WHERE builder = "vulcan foundry" AND name = "snowdon ranger" | What is the average work number of Snowdon Ranger with the builder Vulcan Foundry? | CREATE TABLE table_name_57 (
works_number INTEGER,
builder VARCHAR,
name VARCHAR
) |
SELECT COUNT(crowd) FROM table_name_62 WHERE home_team = "hawthorn" | What size was the crowd when Hawthorn was the home team? | CREATE TABLE table_name_62 (crowd VARCHAR, home_team VARCHAR) |
SELECT COUNT(class) FROM table_14966667_19 WHERE name = "Braxton Kelley" | what class is Braxton Kelley in? | CREATE TABLE table_14966667_19 (class VARCHAR, name VARCHAR) |
SELECT booking_end_date, COUNT(booking_end_date) FROM Apartment_Bookings GROUP BY booking_end_date ORDER BY booking_end_date | How many apartment bookings in each day? Show me a line chart grouping by booking end date, and I want to sort by the x axis in asc. | CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(50),
building_phone VARCHAR(80)
)
CREATE TABLE View_Unit_Status (
apt_id INTEG... |
SELECT MIN(gold) FROM table_name_25 WHERE rank > 1 AND nation = "italy" AND silver > 0 | What is the lowest number of Gold the Nation of Italy had when it ranked other than 1, and had more than 0 Silver? | CREATE TABLE table_name_25 (gold INTEGER, silver VARCHAR, rank VARCHAR, nation VARCHAR) |
SELECT COUNT(hometown) FROM table_14966667_19 WHERE position = "FS" | how many hometowns use the position of fs? | CREATE TABLE table_14966667_19 (hometown VARCHAR, position VARCHAR) |
SELECT MIN(demographic.age) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.dob_year > "2175" | what is minimum age of patients whose admission type is urgent and year of birth is greater than 2175? | 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,... |
SELECT SUM(gold) FROM table_name_76 WHERE rank < 5 AND bronze > 1 | How many Golds did the country with a Rank better than 5 and more Bronze than 1 receive? | CREATE TABLE table_name_76 (gold INTEGER, rank VARCHAR, bronze VARCHAR) |
SELECT name FROM table_14966667_19 WHERE number = "98" | who is number 98? | CREATE TABLE table_14966667_19 (name VARCHAR, number VARCHAR) |
SELECT loss FROM table_name_62 WHERE date = "september 16" | What's the loss for September 16? | CREATE TABLE table_name_62 (
loss VARCHAR,
date VARCHAR
) |
SELECT MIN(bronze) FROM table_name_27 WHERE total < 1 | When the Total is less than 1, how many Bronze medals are won? | CREATE TABLE table_name_27 (bronze INTEGER, total INTEGER) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.