answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT score FROM table_23486853_7 WHERE date = "February 9" | What scores happened on February 9? | CREATE TABLE table_23486853_7 (
score VARCHAR,
date 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 T1.name, T1.area, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed > 60 INTERSECT SELECT T1.name, T1.area, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed < 55 | What are the country names, area and population which has both roller coasters with speed higher | CREATE TABLE country (name VARCHAR, area VARCHAR, population VARCHAR, Country_ID VARCHAR); CREATE TABLE roller_coaster (Country_ID VARCHAR, speed INTEGER) |
SELECT "Windows builders" FROM table_25529 WHERE "Name" = 'Apache Gump' | Name the windows builders for apache gump | CREATE TABLE table_25529 (
"Name" text,
"Platform" text,
"License" text,
"Windows builders" text,
"Java builders" text,
"Other builders" text,
"SCM system" text,
"Notification" text,
"IDE Integration" text,
"Other Integration" text
) |
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(DISTINCT rank) FROM captain | How many different captain ranks are there? | CREATE TABLE captain (rank VARCHAR) |
SELECT "stadium" FROM table_203_420 WHERE "capacity" > (SELECT "capacity" FROM table_203_420 WHERE "stadium" = 'ballymena showgrounds') AND "capacity" < (SELECT "capacity" FROM table_203_420 WHERE "stadium" = 'windsor park') | which stadium can hold more people than ballymena showgrounds , but less than windsor park ? | CREATE TABLE table_203_420 (
id number,
"#" number,
"stadium" text,
"capacity" number,
"city" text,
"home team" text
) |
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(*), rank FROM captain GROUP BY rank | How many captains are in each rank? | CREATE TABLE captain (rank VARCHAR) |
SELECT college FROM table_name_90 WHERE round > 4 AND overall < 237 AND name = "ted cottrell" | Which college's round is more than 4, when the overall is less than 237 and Ted Cottrell was the name? | CREATE TABLE table_name_90 (
college VARCHAR,
name VARCHAR,
round VARCHAR,
overall 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 COUNT(*), rank FROM captain WHERE age < 50 GROUP BY rank | How many captains with younger than 50 are in each rank? | CREATE TABLE captain (rank VARCHAR, age INTEGER) |
SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = "Blackville" | What city is the headquarter of the store Blackville? | CREATE TABLE district (
district_id number,
district_name text,
headquartered_city text,
city_population number,
city_area number
)
CREATE TABLE product (
product_id number,
product text,
dimensions text,
dpi number,
pages_per_minute_color number,
max_page_size text,
int... |
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 name FROM captain ORDER BY age DESC | Sort all captain names by their ages from old to young. | CREATE TABLE captain (name VARCHAR, age VARCHAR) |
SELECT allergy.allergyname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '003-17096')) AND DATETIME(allergy.allergytime, 'start of year') = DATETIM... | what is the name of the allergy which patient 003-17096 has in 12/this year? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugsto... |
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 name, CLASS, rank FROM captain | Find the name, class and rank of all captains. | CREATE TABLE captain (name VARCHAR, CLASS VARCHAR, rank 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 = "3761" | How many of the patients with icd9 code 3761 have an unspecified death status? | 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 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 rank FROM captain GROUP BY rank ORDER BY COUNT(*) DESC LIMIT 1 | Which rank is the most common among captains? | CREATE TABLE captain (rank VARCHAR) |
SELECT T1.Code, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Name | For those records from the products and each product's manufacturer, what is the relationship between code and manufacturer , and group by attribute name? | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) |
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 CLASS FROM captain GROUP BY CLASS HAVING COUNT(*) > 2 | Which classes have more than two captains? | CREATE TABLE captain (CLASS VARCHAR) |
SELECT place FROM table_name_21 WHERE money___$__ = 350 | What place did the player that took won $350 finish in? | CREATE TABLE table_name_21 (
place VARCHAR,
money___$__ 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 name FROM captain WHERE rank = 'Midshipman' OR rank = 'Lieutenant' | Find the name of captains whose rank are either Midshipman or Lieutenant. | CREATE TABLE captain (name VARCHAR, rank VARCHAR) |
SELECT result FROM table_name_68 WHERE date = "july 16, 2000" | Tell me the result of july 16, 2000 | CREATE TABLE table_name_68 (
result VARCHAR,
date 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 AVG(age), MIN(age), CLASS FROM captain GROUP BY CLASS | What are the average and minimum age of captains in different class? | CREATE TABLE captain (CLASS VARCHAR, age INTEGER) |
SELECT name FROM table_name_53 WHERE games = 105 | Which Name has Games of 105? | CREATE TABLE table_name_53 (
name VARCHAR,
games 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 rank FROM captain WHERE CLASS = 'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS = 'Armed schooner' | Find the captain rank that has some captains in both Cutter and Armed schooner classes. | CREATE TABLE captain (rank VARCHAR, CLASS VARCHAR) |
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%arad%romania%' ORDER BY Reputation DESC LIMIT 300 | Top 300 users from Romania. | 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 CloseReasonTypes (
Id number,
Name text,
Description... |
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 rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS = 'Third-rate ship of the line' | Find the captain rank that has no captain in Third-rate ship of the line class. | CREATE TABLE captain (rank VARCHAR, CLASS VARCHAR) |
SELECT "Top-10" FROM table_35859 WHERE "Top-5" < '1' | Name the top-10 with top-5 less than 1 | CREATE TABLE table_35859 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) |
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 name FROM captain ORDER BY age LIMIT 1 | What is the name of the youngest captain? | CREATE TABLE captain (name VARCHAR, age VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND diagnoses.icd9_code = "52809" | give me the number of patients whose admission location is emergency room admit and diagnoses icd9 code is 52809? | 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 COUNT(results) FROM table_1805191_10 WHERE incumbent = "Dave Weldon" | What are the results of incumbent dave weldon? | CREATE TABLE table_1805191_10 (results VARCHAR, incumbent VARCHAR) |
SELECT name, TYPE, flag FROM ship ORDER BY built_year DESC LIMIT 1 | Find the name, type, and flag of the ship that is built in the most recent year. | CREATE TABLE ship (name VARCHAR, TYPE VARCHAR, flag VARCHAR, built_year VARCHAR) |
SELECT Name, Number_Deaths FROM storm WHERE Number_Deaths >= 1 | For all storms with at least 1 death, compare the number of deaths by name. | CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Number_Deaths int
)
CREATE TABLE region (
Region_id int,
Region_code text,
Region_name text
)
CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_cit... |
SELECT COUNT(district) FROM table_1805191_33 WHERE incumbent = "Charles Rangel" | How many districts have the incumbent, Charles Rangel? | CREATE TABLE table_1805191_33 (district VARCHAR, incumbent VARCHAR) |
SELECT COUNT(*), flag FROM ship GROUP BY flag | Group by ships by flag, and return number of ships that have each flag. | CREATE TABLE ship (flag VARCHAR) |
SELECT "Motor" FROM table_41253 WHERE "Class" = 'bs 1910' | Which motor's class was bs 1910? | CREATE TABLE table_41253 (
"Class" text,
"Quantity" real,
"Manufacturer" text,
"Motor" text,
"Seats" real
) |
SELECT party FROM table_1805191_33 WHERE district = "New York 26" | What is the party affiliation of New York 26? | CREATE TABLE table_1805191_33 (party VARCHAR, district VARCHAR) |
SELECT flag FROM ship GROUP BY flag ORDER BY COUNT(*) DESC LIMIT 1 | Which flag is most widely used among all ships? | CREATE TABLE ship (flag VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "4610" AND prescriptions.drug_type = "ADDITIVE" | provide the number of patients whose procedure icd9 code is 4610 and drug type is additive? | 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 COUNT(party) FROM table_1805191_39 WHERE district = "Pennsylvania 1" | In the district of Pennsylvania 1, what is the total number of political parties? | CREATE TABLE table_1805191_39 (party VARCHAR, district VARCHAR) |
SELECT name FROM ship ORDER BY built_year, CLASS | List all ship names in the order of built year and class. | CREATE TABLE ship (name VARCHAR, built_year VARCHAR, CLASS VARCHAR) |
SELECT "Highest rank" FROM table_58735 WHERE "Name" = 'takatōriki' | What rank is Takat riki? | CREATE TABLE table_58735 (
"Name" text,
"Total" real,
"First" text,
"Last" text,
"Highest rank" text
) |
SELECT MIN(first_elected) FROM table_1805191_39 WHERE incumbent = "Tim Holden" | What year was Tim Holden first elected? | CREATE TABLE table_1805191_39 (first_elected INTEGER, incumbent VARCHAR) |
SELECT TYPE FROM ship WHERE flag = 'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag = 'Malta' | Find the ship type that are used by both ships with Panama and Malta flags. | CREATE TABLE ship (TYPE VARCHAR, flag VARCHAR) |
SELECT safari FROM table_name_96 WHERE firefox = "30.82%" | What percentage of users were using Safari during the period in which 30.82% were using Firefox? | CREATE TABLE table_name_96 (
safari VARCHAR,
firefox VARCHAR
) |
SELECT COUNT(party) FROM table_1805191_39 WHERE first_elected = 1994 | How many parties were first elected in 1994? | CREATE TABLE table_1805191_39 (party VARCHAR, first_elected VARCHAR) |
SELECT built_year FROM ship GROUP BY built_year ORDER BY COUNT(*) DESC LIMIT 1 | In which year were most of ships built? | CREATE TABLE ship (built_year VARCHAR) |
SELECT "Driver" FROM table_25942 WHERE "Location" = 'Estoril Circuit' | Who is every driver for the location of Estoril Circuit? | CREATE TABLE table_25942 (
"SF Round" real,
"Country" text,
"Location" text,
"Date" text,
"Driver" text,
"Race 1(pts)" real,
"Race 2(pts)" real,
"Race Total(pts)" real
) |
SELECT COUNT(results) FROM table_1805191_39 WHERE district = "Pennsylvania 11" | In district Pennsylvania 11, what was the total numbers of results? | CREATE TABLE table_1805191_39 (results VARCHAR, district VARCHAR) |
SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING COUNT(*) > 1 | Find the name of the ships that have more than one captain. | CREATE TABLE captain (ship_id VARCHAR); CREATE TABLE ship (name VARCHAR, ship_id VARCHAR) |
SELECT All_Neutral, All_Games_Percent FROM basketball_match ORDER BY All_Games_Percent DESC | Create a bar chart showing all_games_percent across all neutral, sort by the y axis from high to low. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... |
SELECT COUNT(first_elected) FROM table_1805191_2 WHERE incumbent = "Spencer Bachus" | During what year was Representative Spencer Bachus first elected? | CREATE TABLE table_1805191_2 (first_elected VARCHAR, incumbent VARCHAR) |
SELECT name, CLASS FROM ship WHERE NOT ship_id IN (SELECT ship_id FROM captain) | what are the names and classes of the ships that do not have any captain yet? | CREATE TABLE ship (name VARCHAR, CLASS VARCHAR, ship_id VARCHAR); CREATE TABLE captain (name VARCHAR, CLASS VARCHAR, ship_id VARCHAR) |
SELECT t3.diagnosisname FROM (SELECT t2.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'cellulitis - abdomen/pelvis' AND STRFTIM... | what are the three most frequently given diagnoses for patients who have been diagnosed with cellulitis - abdomen/pelvis before in the same month, since 2105? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
pa... |
SELECT party FROM table_1805191_2 WHERE incumbent = "Robert Cramer" | What is the party affiliation of the incumbent Robert Cramer? | CREATE TABLE table_1805191_2 (party VARCHAR, incumbent VARCHAR) |
SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age LIMIT 1 | Find the name of the ship that is steered by the youngest captain. | CREATE TABLE ship (name VARCHAR, ship_id VARCHAR); CREATE TABLE captain (ship_id VARCHAR, age VARCHAR) |
SELECT MAX("Caps") FROM table_71177 WHERE "Player" = 'bruce djite' | What is the greatest number of caps for Bruce Djite? | CREATE TABLE table_71177 (
"Player" text,
"Country" text,
"Caps" real,
"Goals" text,
"Years Active" text,
"Years at Club" text
) |
SELECT incumbent FROM table_1805191_48 WHERE district = "Washington 1" | Who is the incumbent in the Washington 1 district? | CREATE TABLE table_1805191_48 (incumbent VARCHAR, district VARCHAR) |
SELECT name, flag FROM ship WHERE NOT ship_id IN (SELECT ship_id FROM captain WHERE rank = 'Midshipman') | Find the name and flag of ships that are not steered by any captain with Midshipman rank. | CREATE TABLE captain (name VARCHAR, flag VARCHAR, ship_id VARCHAR, rank VARCHAR); CREATE TABLE ship (name VARCHAR, flag VARCHAR, ship_id VARCHAR, rank VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" | how many patients whose admission type is emergency and ethnicity is american indian/alaska native? | 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 COUNT(first_elected) FROM table_1805191_48 WHERE district = "Washington 4" | How many categories of first elected are in Washington 4 district? | CREATE TABLE table_1805191_48 (first_elected VARCHAR, district VARCHAR) |
SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Midshipman' INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant' | Find the name of the ships that are steered by both a captain with Midshipman rank and a captain with Lieutenant rank. | CREATE TABLE ship (name VARCHAR, ship_id VARCHAR); CREATE TABLE captain (ship_id VARCHAR, rank VARCHAR) |
SELECT "Promoted to league" FROM table_26411 WHERE "Relegated to league" = 'Coventry' | Who was promoted to the league when Coventry was relegated to the league? | CREATE TABLE table_26411 (
"Season" text,
"Name" text,
"Teams" real,
"Relegated to league" text,
"Promoted to league" text,
"Promoted from league" text,
"Relegated from league" text
) |
SELECT results FROM table_1805191_48 WHERE first_elected = 2000 | What was the result in the election where the date of first elected was 2000? | CREATE TABLE table_1805191_48 (results VARCHAR, first_elected VARCHAR) |
SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1 | What is id of the city that hosted events in the most recent year? | CREATE TABLE hosting_city (host_city VARCHAR, YEAR VARCHAR) |
SELECT "NFL Club" FROM table_59758 WHERE "Player" = 'sam tidmore' AND "Pick" = '81' | Which NFL Club has a Player of sam tidmore, and a Pick of 81? | CREATE TABLE table_59758 (
"Player" text,
"Draft" text,
"Round" real,
"Pick" real,
"Position" text,
"NFL Club" text
) |
SELECT title FROM table_18054886_1 WHERE viewers__millions_ = "3.7" AND directed_by = "David Kendall" | Which title, directed by David Kendall, had 3.7 million viewers? | CREATE TABLE table_18054886_1 (title VARCHAR, viewers__millions_ VARCHAR, directed_by VARCHAR) |
SELECT match_id FROM MATCH WHERE competition = "1994 FIFA World Cup qualification" | Find the match ids of the cities that hosted competition "1994 FIFA World Cup qualification"? | CREATE TABLE MATCH (match_id VARCHAR, competition VARCHAR) |
SELECT "Date" FROM table_43572 WHERE "Opponent" = 'lyoto machida' | when is the opponent lyoto machida? | CREATE TABLE table_43572 (
"Result" text,
"TUF Competitor" text,
"Opponent" text,
"Method" text,
"Event" text,
"Date" text
) |
SELECT COUNT(first_elected) FROM table_1805191_6 WHERE incumbent = "Diane Watson" | How many people were first elected with an incument of diane watson? | CREATE TABLE table_1805191_6 (first_elected VARCHAR, incumbent VARCHAR) |
SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year > 2010 | Find the cities which were once a host city after 2010? | CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR, year INTEGER) |
SELECT "Music" FROM table_38756 WHERE "Style" = 'jive' | Which music is jive? | CREATE TABLE table_38756 (
"Couple" text,
"Score" text,
"Style" text,
"Music" text,
"Result" text
) |
SELECT party FROM table_1805191_6 WHERE incumbent = "Hilda Solis" | What party did hilda solis represent? | CREATE TABLE table_1805191_6 (party VARCHAR, incumbent VARCHAR) |
SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY T2.host_city ORDER BY COUNT(*) DESC LIMIT 1 | Which city has hosted the most events? | CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR) |
SELECT frequency FROM table_name_79 WHERE sspec_number = "sl3bn(kc0)sl3e9(kc0)" | What is the frequency of the processor with an sSpec number of sl3bn(kc0)sl3e9(kc0)? | CREATE TABLE table_name_79 (
frequency VARCHAR,
sspec_number VARCHAR
) |
SELECT results FROM table_1805191_6 WHERE incumbent = "Grace Napolitano" | What were the result(s) of the election featuring grace napolitano as the incumbent? | CREATE TABLE table_1805191_6 (results VARCHAR, incumbent VARCHAR) |
SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = "Nanjing ( Jiangsu )" AND T3.competition = "1994 FIFA World Cup qualification" | What is the venue of the competition "1994 FIFA World Cup qualification" hosted by "Nanjing ( Jiangsu )"? | CREATE TABLE city (city_id VARCHAR, city VARCHAR); CREATE TABLE MATCH (venue VARCHAR, match_id VARCHAR, competition VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR, match_id VARCHAR) |
SELECT "All bills cosponsored" FROM table_22638 WHERE "Bills originally cosponsored" = '113' | How many bill cosponsored during those years where bills originally cosponsored is 113? | CREATE TABLE table_22638 (
"Years covered" text,
"All bills sponsored" real,
"All amendments sponsored" real,
"All bills cosponsored" real,
"All amendments cosponsored" real,
"Bills originally cosponsored" real,
"Amendments originally cosponsored" real
) |
SELECT MIN(standard_order) FROM table_1805919_1 WHERE transcription__based_on_pinyin_ = "She Jiang" | Which place in the order is the Pinyin transcription She Jiang? | CREATE TABLE table_1805919_1 (standard_order INTEGER, transcription__based_on_pinyin_ VARCHAR) |
SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = "Shanghai" | Give me the temperature of Shanghai in January. | CREATE TABLE city (city_id VARCHAR, city VARCHAR); CREATE TABLE temperature (Jan VARCHAR, city_id VARCHAR) |
SELECT Country, COUNT(Country) FROM artist GROUP BY Country ORDER BY COUNT(Country) DESC | What is the number of countries in the artist table?, and I want to rank how many country in descending order. | CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int... |
SELECT MAX(standard_order) FROM table_1805919_1 WHERE english_translation = "A Lament for Ying" | What is the place of "A Lament for Ying"? | CREATE TABLE table_1805919_1 (standard_order INTEGER, english_translation VARCHAR) |
SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T1.city = "Taizhou ( Zhejiang )" | What is the host year of city "Taizhou ( Zhejiang )"? | CREATE TABLE city (city_id VARCHAR, city VARCHAR); CREATE TABLE hosting_city (year VARCHAR, host_city VARCHAR) |
SELECT year_signed FROM table_name_82 WHERE year_separated = "1987" AND chinese_name = "蘇永康" | What was the signed year for the Chinese name who separated in 1987? | CREATE TABLE table_name_82 (
year_signed VARCHAR,
year_separated VARCHAR,
chinese_name VARCHAR
) |
SELECT COUNT(traditional_chinese) FROM table_1805919_1 WHERE english_translation = "Crossing the River" | How many traditional Chinese for the translation of "Crossing the River"? | CREATE TABLE table_1805919_1 (traditional_chinese VARCHAR, english_translation VARCHAR) |
SELECT city FROM city ORDER BY regional_population DESC LIMIT 3 | Which three cities have the largest regional population? | CREATE TABLE city (city VARCHAR, regional_population VARCHAR) |
SELECT explanation FROM table_2026548_1 WHERE vice_president = "Alben W. Barkley" | Name the explanation for alben w. barkley | CREATE TABLE table_2026548_1 (
explanation VARCHAR,
vice_president VARCHAR
) |
SELECT MAX(standard_order) FROM table_1805919_1 WHERE transcription__based_on_pinyin_ = "Xi Wangri" | What is the place of the Pinyin transcription Xi Wangri? | CREATE TABLE table_1805919_1 (standard_order INTEGER, transcription__based_on_pinyin_ VARCHAR) |
SELECT city, GDP FROM city ORDER BY GDP LIMIT 1 | Which city has the lowest GDP? Please list the city name and its GDP. | CREATE TABLE city (city VARCHAR, GDP VARCHAR) |
SELECT "component" FROM table_204_451 WHERE id = (SELECT id FROM table_204_451 WHERE "component" = 'bluetooth') + 1 | what component comes after bluetooth ? | CREATE TABLE table_204_451 (
id number,
"component" text,
"model 01" text,
"model 01+" text,
"model 02" text,
"model e2" text,
"model 2+ (pre-production)" text,
"model 03 (china copy)" text
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.