answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT constellation FROM table_177766_1 WHERE area__sqdeg_ = "245.375" | What is the name of this constellation with an area of 245.375 sq. deg.? | CREATE TABLE table_177766_1 (constellation VARCHAR, area__sqdeg_ VARCHAR) |
SELECT Tourist_Details FROM VISITORS | Show details of all visitors. | CREATE TABLE VISITORS (Tourist_Details VARCHAR) |
SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id = t2.form_id GROUP BY t2.form_id ORDER BY COUNT(*) DESC LIMIT 1 | Find the name of the most popular party form. | CREATE TABLE party_forms (
form_id VARCHAR
)
CREATE TABLE forms (
form_name VARCHAR,
form_id VARCHAR
) |
SELECT COUNT(per) AS centage FROM table_177766_1 WHERE rank = 51 | This constellation with a ranking of 51 has how many percentages on record? | CREATE TABLE table_177766_1 (per VARCHAR, rank VARCHAR) |
SELECT price_range FROM HOTELS WHERE star_rating_code = "5" | Show the price ranges of hotels with 5 star ratings. | CREATE TABLE HOTELS (price_range VARCHAR, star_rating_code VARCHAR) |
SELECT "Tail number" FROM table_42152 WHERE "Aircraft" = 'an-26' AND "Fatalities" = '25/25' | What tail number was on the an-26, with 25/25 fatalities? | CREATE TABLE table_42152 (
"Location" text,
"Aircraft" text,
"Tail number" text,
"Aircraft damage" text,
"Fatalities" text
) |
SELECT percentage FROM table_177766_1 WHERE area__sqdeg_ = "248.885" | What is the percentage of this constellation with an area of 248.885 sq. deg.? | CREATE TABLE table_177766_1 (percentage VARCHAR, area__sqdeg_ VARCHAR) |
SELECT AVG(price_range) FROM HOTELS WHERE star_rating_code = "5" AND pets_allowed_yn = 1 | Show the average price range of hotels that have 5 star ratings and allow pets. | CREATE TABLE HOTELS (price_range INTEGER, star_rating_code VARCHAR, pets_allowed_yn VARCHAR) |
SELECT "Tournament" FROM table_56433 WHERE "2000" = '3r' | what tournament has 2000 of 3r? | CREATE TABLE table_56433 (
"Tournament" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text... |
SELECT broadcast_date FROM table_1776943_1 WHERE viewers__in_millions_ = "6.4" AND archive = "16mm t/r" | Name the broadcast date for 6.4 million viewers for the archive of 16mm t/r | CREATE TABLE table_1776943_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR, archive VARCHAR) |
SELECT Address FROM LOCATIONS WHERE Location_Name = "UK Gallery" | What is the address of the location "UK Gallery"? | CREATE TABLE LOCATIONS (Address VARCHAR, Location_Name VARCHAR) |
SELECT "Time" FROM table_13944 WHERE "Rank" > '3' AND "Notes" = 'fd' AND "Athlete" = 'shin yeong-eun' | The Athlete Shin Yeong-eun with a rank larger than 3 and notes of FD had what time? | CREATE TABLE table_13944 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
) |
SELECT archive FROM table_1776943_1 WHERE run_time = "24:04" | Name the archive where run time 24:04 | CREATE TABLE table_1776943_1 (archive VARCHAR, run_time VARCHAR) |
SELECT Other_Details FROM LOCATIONS WHERE Location_Name = "UK Gallery" | What is the detail of the location UK Gallery? | CREATE TABLE LOCATIONS (Other_Details VARCHAR, Location_Name VARCHAR) |
SELECT Draft_Class, Draft_Pick_Number FROM match_season WHERE Position = "Defender" | Show the draft pick numbers and draft classes of players whose positions are defenders in a bar chart. | CREATE TABLE match_season (
Season real,
Player text,
Position text,
Country int,
Team int,
Draft_Pick_Number int,
Draft_Class text,
College text
)
CREATE TABLE player (
Player_ID int,
Player text,
Years_Played text,
Total_WL text,
Singles_WL text,
Doubles_WL tex... |
SELECT game_site FROM table_17781394_1 WHERE date = "November 1, 1964" | On November 1, 1964, where was the game site? | CREATE TABLE table_17781394_1 (game_site VARCHAR, date VARCHAR) |
SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE "%film%" | Which location names contain the word "film"? | CREATE TABLE LOCATIONS (Location_Name VARCHAR) |
SELECT "Runner-up" FROM table_7774 WHERE "City" = 'milwaukee' | Who is the runner-up from Milwaukee? | CREATE TABLE table_7774 (
"Date" text,
"Event" text,
"City" text,
"Oil Pattern" text,
"Winner (Title #)" text,
"Runner-up" text,
"Score" text
) |
SELECT attendance FROM table_17778417_1 WHERE week = 8 | How many people attended the Week 8 game when Denver played Buffalo? | CREATE TABLE table_17778417_1 (attendance VARCHAR, week VARCHAR) |
SELECT COUNT(DISTINCT Name) FROM PHOTOS | How many distinct names are associated with all the photos? | CREATE TABLE PHOTOS (Name VARCHAR) |
SELECT "Amount of trees, that require replacement" FROM table_72092 WHERE "District" = 'Motovilikhinsky' | What is the amount of trees, that require replacement when the district is motovilikhinsky? | CREATE TABLE table_72092 (
"District" text,
"Total amount of trees" real,
"Prevailing types, %" text,
"Amount of old trees" text,
"Amount of trees, that require replacement" text
) |
SELECT COUNT(record) FROM table_17778417_1 WHERE opponent = "Dallas Texans" | How many times did the Denver Broncos face the Dallas Texans this season? | CREATE TABLE table_17778417_1 (record VARCHAR, opponent VARCHAR) |
SELECT DISTINCT Visit_Date FROM VISITS | What are the distinct visit dates? | CREATE TABLE VISITS (Visit_Date VARCHAR) |
SELECT AVG(issue_price) FROM table_name_73 WHERE special_notes = "from toronto maple leafs gift set" AND mintage = "3527" | What is the average issue price with from Toronto maple leafs gift set, and a Mintage of 3527? | CREATE TABLE table_name_73 (
issue_price INTEGER,
special_notes VARCHAR,
mintage VARCHAR
) |
SELECT MAX(year) FROM table_17801022_1 WHERE race_time = "1:55:13" | What year was the winning race time 1:55:13? | CREATE TABLE table_17801022_1 (year INTEGER, race_time VARCHAR) |
SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus" | What are the names of the tourist attractions that can be accessed by bus? | CREATE TABLE TOURIST_ATTRACTIONS (Name VARCHAR, How_to_Get_There VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "F" AND procedures.short_title = "IV infusion clofarabine" | provide the number of patients whose gender is f and procedure short title is iv infusion clofarabine? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... |
SELECT race_time FROM table_17801022_1 WHERE average_speed__mph_ = "113.835" | For races with an average speed of 113.835 mph, what are the winning race times? | CREATE TABLE table_17801022_1 (race_time VARCHAR, average_speed__mph_ VARCHAR) |
SELECT Name, Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus" OR How_to_Get_There = "walk" | What are the names and opening hours of the tourist attractions that can be accessed by bus or walk? | CREATE TABLE TOURIST_ATTRACTIONS (Name VARCHAR, Opening_Hours VARCHAR, How_to_Get_There VARCHAR) |
SELECT assists FROM table_name_4 WHERE player = "steve walker" | How many assists did Steve Walker have? | CREATE TABLE table_name_4 (
assists VARCHAR,
player VARCHAR
) |
SELECT manufacturer FROM table_17801022_1 WHERE date = "November 2" | What manufacturer won the race on November 2? | CREATE TABLE table_17801022_1 (manufacturer VARCHAR, date VARCHAR) |
SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code = T2.star_rating_code WHERE T1.price_range > 10000 | What are the star rating descriptions of the hotels with price above 10000? | CREATE TABLE HOTELS (star_rating_code VARCHAR, price_range INTEGER); CREATE TABLE Ref_Hotel_Star_Ratings (star_rating_description VARCHAR, star_rating_code VARCHAR) |
SELECT invoice_number, COUNT(*) FROM Financial_Transactions GROUP BY invoice_number | Show the invoice number and the number of transactions for each invoice. Show the correlation. | CREATE TABLE Orders (
order_id INTEGER,
customer_id INTEGER,
date_order_placed DATETIME,
order_details VARCHAR(255)
)
CREATE TABLE Order_Items (
order_item_id INTEGER,
order_id INTEGER,
product_id INTEGER,
product_quantity VARCHAR(50),
other_order_item_details VARCHAR(255)
)
CREATE... |
SELECT date FROM table_17801022_1 WHERE driver = "Jamie McMurray" | What date did Jamie McMurray win the race? | CREATE TABLE table_17801022_1 (date VARCHAR, driver VARCHAR) |
SELECT T1.Museum_Details, T2.Opening_Hours FROM MUSEUMS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Museum_ID = T2.Tourist_Attraction_ID | What are the details and opening hours of the museums? | CREATE TABLE TOURIST_ATTRACTIONS (Opening_Hours VARCHAR, Tourist_Attraction_ID VARCHAR); CREATE TABLE MUSEUMS (Museum_Details VARCHAR, Museum_ID VARCHAR) |
SELECT MIN(round) FROM table_name_51 WHERE record = "5-3 (1)" | Which round has a record of 5-3 (1)? | CREATE TABLE table_name_51 (
round INTEGER,
record VARCHAR
) |
SELECT date FROM table_17801022_1 WHERE race_time = "1:55:13" | What was the date of the race with a winning time of 1:55:13? | CREATE TABLE table_17801022_1 (date VARCHAR, race_time VARCHAR) |
SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T1.Name = "game1" | What is the name of the tourist attraction that is associated with the photo "game1"? | CREATE TABLE TOURIST_ATTRACTIONS (Name VARCHAR, Tourist_Attraction_ID VARCHAR); CREATE TABLE PHOTOS (Tourist_Attraction_ID VARCHAR, Name VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.route = "IV DRIP" | how many patients had iv drip drug route? | 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 team FROM table_17802778_1 WHERE average_speed__mph_ = "138.14" | What team(s) enjoyed an average spped (mph) of 138.14? | CREATE TABLE table_17802778_1 (team VARCHAR, average_speed__mph_ VARCHAR) |
SELECT T1.Name, T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = "film festival" | What are the names and descriptions of the photos taken at the tourist attraction "film festival"? | CREATE TABLE TOURIST_ATTRACTIONS (Tourist_Attraction_ID VARCHAR, Name VARCHAR); CREATE TABLE PHOTOS (Name VARCHAR, Description VARCHAR, Tourist_Attraction_ID VARCHAR) |
SELECT "FSB" FROM table_21017 WHERE "Model number" = 'Atom Z540' | Name the fsb for atom z540 | CREATE TABLE table_21017 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"L2 cache" text,
"FSB" text,
"Mult." text,
"Voltage" text,
"TDP" text,
"Socket" text,
"Release date" text,
"Part number(s)" text,
"Release price ( USD )" text
) |
SELECT laps FROM table_17802778_1 WHERE year = 2001 | How many laps recorded in 2001? | CREATE TABLE table_17802778_1 (laps VARCHAR, year VARCHAR) |
SELECT T1.Royal_Family_Details, T2.How_to_Get_There FROM ROYAL_FAMILY AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Royal_Family_ID = T2.Tourist_Attraction_ID | What are the details and ways to get to tourist attractions related to royal family? | CREATE TABLE TOURIST_ATTRACTIONS (How_to_Get_There VARCHAR, Tourist_Attraction_ID VARCHAR); CREATE TABLE ROYAL_FAMILY (Royal_Family_Details VARCHAR, Royal_Family_ID VARCHAR) |
SELECT JOB_TITLE, COUNT(JOB_TITLE) FROM employees AS T1 JOIN jobs AS T2 ON T1.JOB_ID = T2.JOB_ID WHERE T1.DEPARTMENT_ID = 80 GROUP BY JOB_TITLE | Display the proportion of the job title for all those jobs in department 80 using a pie chart. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE... |
SELECT team FROM table_17802778_1 WHERE year = 2003 | What team(s) were in 2003? | CREATE TABLE table_17802778_1 (team VARCHAR, year VARCHAR) |
SELECT T1.Shop_Details FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = "walk" | What are the details of the shops that can be accessed by walk? | CREATE TABLE TOURIST_ATTRACTIONS (Tourist_Attraction_ID VARCHAR, How_to_Get_There VARCHAR); CREATE TABLE SHOPS (Shop_Details VARCHAR, Shop_ID VARCHAR) |
SELECT rounds FROM table_name_74 WHERE constructor = "gordini" | What rounds did Gordini participate in? | CREATE TABLE table_name_74 (
rounds VARCHAR,
constructor VARCHAR
) |
SELECT average_speed__mph_ FROM table_17802778_1 WHERE race_time = "1:45:00" | What was the average speed (mph) for the racer who finished in 1:45:00? | CREATE TABLE table_17802778_1 (average_speed__mph_ VARCHAR, race_time VARCHAR) |
SELECT T1.Name FROM STAFF AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = "US museum" | What is the name of the staff that is in charge of the attraction named "US museum"? | CREATE TABLE TOURIST_ATTRACTIONS (Tourist_Attraction_ID VARCHAR, Name VARCHAR); CREATE TABLE STAFF (Name VARCHAR, Tourist_Attraction_ID VARCHAR) |
SELECT apt_type_code, MAX(room_count), MIN(room_count) FROM Apartments GROUP BY apt_type_code | Show each apartment type code, and the maximum and minimum number of rooms for each type. | CREATE TABLE Apartments (
apt_type_code VARCHAR,
room_count INTEGER
) |
SELECT miles__km_ FROM table_17802778_1 WHERE race_time = "1:05:33" | How many total miles recorded for the racer who finished in 1:05:33? | CREATE TABLE table_17802778_1 (miles__km_ VARCHAR, race_time VARCHAR) |
SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = "walk" OR T2.How_to_Get_There = "bus" | What are the details of the markets that can be accessed by walk or bus? | CREATE TABLE Street_Markets (Market_Details VARCHAR, Market_ID VARCHAR); CREATE TABLE TOURIST_ATTRACTIONS (Tourist_Attraction_ID VARCHAR, How_to_Get_There VARCHAR) |
SELECT language_s_ FROM table_17155250_1 WHERE film_title_used_in_nomination = "FireDancer" | What languages were spoken in the film 'FireDancer'? | CREATE TABLE table_17155250_1 (
language_s_ VARCHAR,
film_title_used_in_nomination VARCHAR
) |
SELECT title FROM table_17810099_3 WHERE episode__number = "21a" | what was the title of the episode 21a? | CREATE TABLE table_17810099_3 (title VARCHAR, episode__number VARCHAR) |
SELECT T2.Visit_Date, T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = "Vincent" | What are the visit date and details of the visitor whose detail is 'Vincent'? | CREATE TABLE VISITORS (Tourist_ID VARCHAR, Tourist_Details VARCHAR); CREATE TABLE VISITS (Visit_Date VARCHAR, Visit_Details VARCHAR, Tourist_ID VARCHAR) |
SELECT COUNT("driver") FROM table_203_406 WHERE "rounds" = 'all' | how many drivers drove all the rounds ? | CREATE TABLE table_203_406 (
id number,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
) |
SELECT writer_s_ FROM table_17810099_3 WHERE episode__number = "14" | who wrote episode 14? | CREATE TABLE table_17810099_3 (writer_s_ VARCHAR, episode__number VARCHAR) |
SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID = T3.Tourist_ID WHERE T3.Tourist_Details = "Vincent" | Which tourist attractions does the visitor with detail 'Vincent' visit? | CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR, Tourist_ID VARCHAR); CREATE TABLE VISITORS (Tourist_ID VARCHAR, Tourist_Details VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Chronic pulmonary heart disease, unspecified" | what is the total number of patients who had unspecified chronic pulmonary heart disease? | 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(e_greenberg) FROM table_17820556_4 WHERE county = "Morris" | Who many votes did E. Greenberg receive in Morris County? | CREATE TABLE table_17820556_4 (e_greenberg VARCHAR, county VARCHAR) |
SELECT T1.Name, T3.Visit_Date FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Vincent" OR T2.Tourist_Details = "Vivian" | What are the names of the tourist attractions and the dates when the tourists named Vincent or Vivian visited there? | CREATE TABLE VISITORS (Tourist_ID VARCHAR, Tourist_Details VARCHAR); CREATE TABLE VISITS (Visit_Date VARCHAR, Tourist_Attraction_ID VARCHAR, Tourist_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR) |
SELECT first_name, last_name, salary FROM employees WHERE salary < 6000 | What are the full names and salaries for any employees earning less than 6000? | CREATE TABLE jobs (
job_id text,
job_title text,
min_salary number,
max_salary number
)
CREATE TABLE countries (
country_id text,
country_name text,
region_id number
)
CREATE TABLE regions (
region_id number,
region_name text
)
CREATE TABLE departments (
department_id number,
... |
SELECT precincts FROM table_17820556_4 WHERE g_hager = "19 (20%)" | How many precincts are in the county where G. Hager received 19 (20%) votes? | CREATE TABLE table_17820556_4 (precincts VARCHAR, g_hager VARCHAR) |
SELECT star_rating_code, AVG(price_range) FROM HOTELS GROUP BY star_rating_code | Show the average price of hotels for each star rating code. | CREATE TABLE HOTELS (star_rating_code VARCHAR, price_range INTEGER) |
SELECT position FROM table_name_78 WHERE player = "jani lajunen" | What is the position for Jani Lajunen? | CREATE TABLE table_name_78 (
position VARCHAR,
player VARCHAR
) |
SELECT COUNT(slope_length) FROM table_17814458_1 WHERE elevation_groundstation = 1966 | Name the slope length for 1966 groundstation | CREATE TABLE table_17814458_1 (slope_length VARCHAR, elevation_groundstation VARCHAR) |
SELECT pets_allowed_yn, AVG(price_range) FROM HOTELS GROUP BY pets_allowed_yn | Show the average price of hotels for different pet policy. | CREATE TABLE HOTELS (pets_allowed_yn VARCHAR, price_range INTEGER) |
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%pune%' OR UPPER(Location) LIKE '%PUNE' ORDER BY Reputation DESC LIMIT 500 | Top 50 users from Rajkot. | CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CRE... |
SELECT name_or_route FROM table_17814458_1 WHERE slope_length = 336 | Name the name or route for slope length being 336 | CREATE TABLE table_17814458_1 (name_or_route VARCHAR, slope_length VARCHAR) |
SELECT hotel_id, star_rating_code FROM HOTELS ORDER BY price_range | Show the id and star rating of each hotel, ordered by its price from low to high. | CREATE TABLE HOTELS (hotel_id VARCHAR, star_rating_code VARCHAR, price_range VARCHAR) |
SELECT MIN(losses) FROM table_name_75 WHERE season < 1920 AND draws > 0 | Which Losses is the lowest one that has a Season smaller than 1920, and Draws larger than 0? | CREATE TABLE table_name_75 (
losses INTEGER,
season VARCHAR,
draws VARCHAR
) |
SELECT MIN(slope_length) FROM table_17814458_1 WHERE type = "gondola" | Name the slope length for gondola | CREATE TABLE table_17814458_1 (slope_length INTEGER, type VARCHAR) |
SELECT other_hotel_details FROM HOTELS ORDER BY price_range DESC LIMIT 3 | Show the details of the top 3 most expensive hotels. | CREATE TABLE HOTELS (other_hotel_details VARCHAR, price_range VARCHAR) |
SELECT "Date" FROM table_52784 WHERE "Home" = 'ny rangers' | What date did NY Rangers play at home? | CREATE TABLE table_52784 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) |
SELECT MIN(capacity_in_persons_hour) FROM table_17814458_1 WHERE construction_year_s_ = "1983" | Name the least capacity for persons hour for 1983 | CREATE TABLE table_17814458_1 (capacity_in_persons_hour INTEGER, construction_year_s_ VARCHAR) |
SELECT other_hotel_details, star_rating_code FROM HOTELS ORDER BY price_range LIMIT 3 | Show the details and star ratings of the 3 least expensive hotels. | CREATE TABLE HOTELS (other_hotel_details VARCHAR, star_rating_code VARCHAR, price_range VARCHAR) |
SELECT team FROM table_11961582_10 WHERE date = "April 20" | Which team was played on April 20? | CREATE TABLE table_11961582_10 (
team VARCHAR,
date VARCHAR
) |
SELECT COUNT(new_entries_this_round) FROM table_17814838_1 WHERE round = "Fourth round Proper" | How many categories of new entries this round are there for the fourth round proper? | CREATE TABLE table_17814838_1 (new_entries_this_round VARCHAR, round VARCHAR) |
SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*) DESC LIMIT 1 | Show the transportation method most people choose to get to tourist attractions. | CREATE TABLE Tourist_Attractions (How_to_Get_There VARCHAR) |
SELECT block_a FROM table_name_93 WHERE toshizo = "shuji kondo" | Name the block A for shuji kondo | CREATE TABLE table_name_93 (
block_a VARCHAR,
toshizo VARCHAR
) |
SELECT COUNT(runner_up) FROM table_178242_7 WHERE international_destination = "Japan" | How many runner-ups were there when the show went to Japan? | CREATE TABLE table_178242_7 (runner_up VARCHAR, international_destination VARCHAR) |
SELECT T1.Attraction_Type_Description, T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code = T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT(*) DESC LIMIT 1 | Show the description and code of the attraction type most tourist attractions belong to. | CREATE TABLE Ref_Attraction_Types (Attraction_Type_Description VARCHAR, Attraction_Type_Code VARCHAR); CREATE TABLE Tourist_Attractions (Attraction_Type_Code VARCHAR) |
SELECT "Colors" FROM table_28737 WHERE "Location" = 'North Canton' | Name the colors for north canton | CREATE TABLE table_28737 (
"School" text,
"Nickname" text,
"Location" text,
"Colors" text,
"Join Date" real
) |
SELECT COUNT(winner) FROM table_178242_7 WHERE runner_up = "Regina" | How many won the prize when Regina was the runner-up? | CREATE TABLE table_178242_7 (winner VARCHAR, runner_up VARCHAR) |
SELECT How_to_Get_There, COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There | Show different ways to get to attractions and the number of attractions that can be accessed in the corresponding way. | CREATE TABLE Tourist_Attractions (How_to_Get_There VARCHAR) |
SELECT SUM("Events") FROM table_5000 WHERE "Rank" > '5' | the sum of Events that has a Rank larger than 5 is 3 | CREATE TABLE table_5000 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings ( $ )" real,
"Events" real,
"Wins" real
) |
SELECT season FROM table_178242_7 WHERE the_mole = "Milouska" | Which season is it when Milouska was the show's mole ? | CREATE TABLE table_178242_7 (season VARCHAR, the_mole VARCHAR) |
SELECT T1.Name, T2.Tourist_Attraction_ID, COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID | Show different tourist attractions' names, ids, and the corresponding number of visits. | CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR) |
SELECT "Team" FROM table_42106 WHERE "High rebounds" = 'antonio davis (8)' | What is the Team when antonio davis (8) had the high rebounds? | CREATE TABLE table_42106 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT actor_required FROM table_17827271_1 WHERE actor_in_original_production = "Robert Austin" | What were the requirements for the role played by Robert Austin in the original production? | CREATE TABLE table_17827271_1 (actor_required VARCHAR, actor_in_original_production VARCHAR) |
SELECT T1.Name, T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING COUNT(*) >= 2 | Show the names and ids of tourist attractions that are visited at least two times. | CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR) |
SELECT notes FROM table_1000181_1 WHERE current_slogan = "SOUTH AUSTRALIA" | Tell me what the notes are for South Australia | CREATE TABLE table_1000181_1 (
notes VARCHAR,
current_slogan VARCHAR
) |
SELECT actor_in_original_production FROM table_17827271_1 WHERE actor_required = "Female, older" | What actor played the "female, older" role in the original production? | CREATE TABLE table_17827271_1 (actor_in_original_production VARCHAR, actor_required VARCHAR) |
SELECT T1.Name, T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING COUNT(*) <= 1 | Show the names and ids of tourist attractions that are visited at most once. | CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR) |
SELECT Founder, AVG(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder DESC | For those records from the products and each product's manufacturer, return a bar chart about the distribution of founder and the average of price , and group by attribute founder, sort from high to low by the X-axis please. | 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 flatspin FROM table_17827271_1 WHERE actor_in_original_production = "Robert Austin" | What FlatSpin actor played the same role as Robert Austin? | CREATE TABLE table_17827271_1 (flatspin VARCHAR, actor_in_original_production VARCHAR) |
SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = "660 Shea Crescent" OR T2.How_to_Get_There = "walk" | What are the names of tourist attractions that can be reached by walk or is at address 660 Shea Crescent? | CREATE TABLE Tourist_Attractions (Name VARCHAR, Location_ID VARCHAR, How_to_Get_There VARCHAR); CREATE TABLE Locations (Location_ID VARCHAR, Address VARCHAR) |
SELECT "track" FROM table_204_630 WHERE "winner" = 'frank kimmel' ORDER BY "date" DESC LIMIT 1 | where was the last race listing frank kimmel held ? | CREATE TABLE table_204_630 (
id number,
"no" number,
"date" text,
"race" text,
"track" text,
"winner" text,
"reports" text
) |
SELECT COUNT(roleplay) FROM table_17827271_1 WHERE actor_required = "Male, younger" | How many RolePlay actors played the role requiring a "male, younger" actor? | CREATE TABLE table_17827271_1 (roleplay VARCHAR, actor_required VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.