answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T2.Weeks_on_Top > 2 | Please show the date of ceremony of the volumes that last more than 2 weeks on top. | CREATE TABLE music_festival (Date_of_ceremony VARCHAR, Volume VARCHAR); CREATE TABLE volume (Volume_ID VARCHAR, Weeks_on_Top INTEGER) |
SELECT COUNT(overall) FROM table_name_26 WHERE position = "safety" AND round > 1 | What is the total of overall values with a safety position in a round greater than 1? | CREATE TABLE table_name_26 (
overall VARCHAR,
position VARCHAR,
round VARCHAR
) |
SELECT record FROM table_17972193_1 WHERE opponent = "at Los Angeles Raiders" | What was the game record when the opponent was 'at Los Angeles Raiders'? | CREATE TABLE table_17972193_1 (record VARCHAR, opponent VARCHAR) |
SELECT T2.Song FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T1.Result = "Nominated" | Please show the songs that have result "nominated" at music festivals. | CREATE TABLE volume (Song VARCHAR, Volume_ID VARCHAR); CREATE TABLE music_festival (Volume VARCHAR, Result VARCHAR) |
SELECT "Irish Points" FROM table_25477 WHERE "Record" = '23-1' | Name the irish points for 23-1 record | CREATE TABLE table_25477 (
"Date" text,
"Location" text,
"Opponent" text,
"Irish Points" real,
"Opp. Points" real,
"Record" text
) |
SELECT date FROM table_17972193_1 WHERE opponent = "at Los Angeles Rams" | When was the game played when the opponent was 'at Los Angeles Rams'? | CREATE TABLE table_17972193_1 (date VARCHAR, opponent VARCHAR) |
SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.Artist = "Gorgoroth" | What are the issue dates of volumes associated with the artist "Gorgoroth"? | CREATE TABLE artist (Artist_ID VARCHAR, Artist VARCHAR); CREATE TABLE volume (Issue_Date VARCHAR, Artist_ID VARCHAR) |
SELECT "Ethernet Ports" FROM table_43381 WHERE "Name" = 'u150' | What is the ethernet ports of the u150 appliance? | CREATE TABLE table_43381 (
"Name" text,
"Processor" text,
"Hard Drive" text,
"Ethernet Ports" text,
"Dimensions" text
) |
SELECT COUNT(attendance) FROM table_17972193_1 WHERE game_site = "Anaheim Stadium" | How many total number of attendance were there when the game was held in Anaheim Stadium? | CREATE TABLE table_17972193_1 (attendance VARCHAR, game_site VARCHAR) |
SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age >= 32 | What are the songs in volumes associated with the artist aged 32 or older? | CREATE TABLE volume (Song VARCHAR, Artist_ID VARCHAR); CREATE TABLE artist (Artist_ID VARCHAR, age VARCHAR) |
SELECT "Country" FROM table_48770 WHERE "Place" = 't4' AND "Player" = 'scott simpson' | What is the Country, when Place is 'T4', and when Player is 'Scott Simpson'? | CREATE TABLE table_48770 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) |
SELECT MIN(attendance) FROM table_17972193_1 WHERE game_site = "Arrowhead Stadium" | How many were in attendance when the game was held in Arrowhead Stadium? | CREATE TABLE table_17972193_1 (attendance INTEGER, game_site VARCHAR) |
SELECT AVG(T2.Weeks_on_Top) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 25 | What is the average weeks on top of volumes associated with the artist aged 25 or younger? | CREATE TABLE volume (Weeks_on_Top INTEGER, Artist_ID VARCHAR); CREATE TABLE artist (Artist_ID VARCHAR, age VARCHAR) |
SELECT MIN("Round") FROM table_75536 WHERE "Overall" = '247' AND "Pick #" < '41' | What is the lowest Round with Overall of 247 and pick less than 41? | CREATE TABLE table_75536 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) |
SELECT MAX(position) FROM table_18018214_1 WHERE draws = 7 | What is the highest position a team with 7 draws earned? | CREATE TABLE table_18018214_1 (position INTEGER, draws VARCHAR) |
SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 | What are the famous title of the artists associated with volumes with more than 2 weeks on top? | CREATE TABLE artist (Famous_Title VARCHAR, Artist_ID VARCHAR); CREATE TABLE volume (Artist_ID VARCHAR, Weeks_on_Top INTEGER) |
SELECT COUNT(DISTINCT t2.subject_id) FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_di... | how many patients died during the same month after having been diagnosed since 2101 with edema? | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose... |
SELECT original_air_date FROM table_18012738_1 WHERE ai___percentage_ = 83 | Name the original air date for ai% for 83 | CREATE TABLE table_18012738_1 (original_air_date VARCHAR, ai___percentage_ VARCHAR) |
SELECT Famous_Title, Age FROM artist ORDER BY Age DESC | Please list the age and famous title of artists in descending order of age. | CREATE TABLE artist (Famous_Title VARCHAR, Age VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" | How many married patients are American Indian/Alaska native? | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... |
SELECT story_no FROM table_18012738_1 WHERE written_by = "Paul Cornell" | Name the story number for paul cornell | CREATE TABLE table_18012738_1 (story_no VARCHAR, written_by VARCHAR) |
SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1 | What is the famous release date of the artist with the oldest age? | CREATE TABLE artist (Famous_Release_date VARCHAR, Age VARCHAR) |
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT procedures_icd.icd9_code FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 13837 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admit... | what is the first procedure that patient 13837 received when they came to the hospital first time? | CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,... |
SELECT COUNT(directed_by) FROM table_18012738_1 WHERE uk_viewers__million_ = "6.86" | Name the total number directed by for uk viewers being 6.86 | CREATE TABLE table_18012738_1 (directed_by VARCHAR, uk_viewers__million_ VARCHAR) |
SELECT Category, COUNT(*) FROM music_festival GROUP BY Category | Please show the categories of the music festivals and the count. | CREATE TABLE music_festival (Category VARCHAR) |
SELECT "Time ( ET )" FROM table_38501 WHERE "Week" = '5' | What time was the game during week 5? | CREATE TABLE table_38501 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Time ( ET )" text,
"Result" text,
"Record" text
) |
SELECT MIN(ai___percentage_) FROM table_18012738_1 | Name the least ai % | CREATE TABLE table_18012738_1 (ai___percentage_ INTEGER) |
SELECT RESULT FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1 | What is the most common result of the music festival? | CREATE TABLE music_festival (RESULT VARCHAR) |
SELECT COUNT(*) FROM table_204_266 WHERE "season" = 'summer' | tell me the number of summer olympics on the list . | CREATE TABLE table_204_266 (
id number,
"#" number,
"event year" number,
"season" text,
"flag bearer" text
) |
SELECT MAX(games_played) FROM table_18018214_4 | What is the highest number of games played? | CREATE TABLE table_18018214_4 (games_played INTEGER) |
SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*) > 1 | Please show the categories of the music festivals with count more than 1. | CREATE TABLE music_festival (Category VARCHAR) |
SELECT name, meter_100 FROM swimmer ORDER BY meter_100 DESC | Show me about the distribution of name and meter_100 in a bar chart, rank y axis in desc order please. | CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimme... |
SELECT COUNT(goals_conceded) FROM table_18018214_4 WHERE points = 31 | In the game with 31 points, how many goals were conceded? | CREATE TABLE table_18018214_4 (goals_conceded VARCHAR, points VARCHAR) |
SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1 | What is the song in the volume with the maximum weeks on top? | CREATE TABLE volume (Song VARCHAR, Weeks_on_Top VARCHAR) |
SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN DIEGO... | which airlines fly from TORONTO to SAN DIEGO and have a stopover in DENVER | CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE... |
SELECT COUNT(games_played) FROM table_18018214_4 WHERE points = 22 | How many games had 22 points? | CREATE TABLE table_18018214_4 (games_played VARCHAR, points VARCHAR) |
SELECT Famous_Title FROM artist WHERE NOT Artist_ID IN (SELECT Artist_ID FROM volume) | Find the famous titles of artists that do not have any volume. | CREATE TABLE volume (Famous_Title VARCHAR, Artist_ID VARCHAR); CREATE TABLE artist (Famous_Title VARCHAR, Artist_ID VARCHAR) |
SELECT AVG(number) FROM table_name_13 WHERE position = "forward" | What is the average Number, when Position is Forward? | CREATE TABLE table_name_13 (
number INTEGER,
position VARCHAR
) |
SELECT wins FROM table_18018248_2 WHERE goals_scored = 58 | How many wins had 58 goals scored? | CREATE TABLE table_18018248_2 (wins VARCHAR, goals_scored VARCHAR) |
SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top < 2 | Show the famous titles of the artists with both volumes that lasted more than 2 weeks on top and volumes that lasted less than 2 weeks on top. | CREATE TABLE artist (Famous_Title VARCHAR, Artist_ID VARCHAR); CREATE TABLE volume (Artist_ID VARCHAR, Weeks_on_Top INTEGER) |
SELECT T2.Name, COUNT(T2.Name) FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID GROUP BY T2.Name ORDER BY T2.Name DESC | Show the number of climbers for each mountain in a bar chart, and sort Name in descending order. | CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
)
CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
) |
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 Date_of_ceremony FROM music_festival WHERE Category = "Best Song" AND RESULT = "Awarded" | What are the date of ceremony of music festivals with category "Best Song" and result "Awarded"? | CREATE TABLE music_festival (Date_of_ceremony VARCHAR, Category VARCHAR, RESULT VARCHAR) |
SELECT "Class" FROM table_66624 WHERE "Identifier" = 'cbfx-fm-2' | What Class has the Identifier fo CBFX-FM-2? | CREATE TABLE table_66624 (
"City of license" text,
"Identifier" text,
"Frequency" text,
"Power" text,
"Class" text,
"RECNet" text
) |
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 Issue_Date FROM volume ORDER BY Weeks_on_Top LIMIT 1 | What is the issue date of the volume with the minimum weeks on top? | CREATE TABLE volume (Issue_Date VARCHAR, Weeks_on_Top VARCHAR) |
SELECT demographic.marital_status FROM demographic WHERE demographic.name = "Joseph Dillman" | what is marital status of subject name joseph dillman? | 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(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 RESULT, COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC | Please show the results of music festivals and the number of music festivals that have had each, ordered by this count. | CREATE TABLE music_festival (RESULT VARCHAR) |
SELECT COUNT("Number (map)") FROM table_33847 WHERE "Area in km\u00b2" > '13.5' AND "Population Canada 2011 Census" = '134,038' | How much #s have an Area in km larger than 13.5, and a Population Canada 2011 Census of 134,038? | CREATE TABLE table_33847 (
"Number (map)" real,
"Borough" text,
"Population Canada 2011 Census" real,
"Area in km\u00b2" real,
"Density per km\u00b2" real
) |
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 Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 23 | What are the issue dates of volumes associated with the artist aged 23 or younger? | CREATE TABLE volume (Artist_ID VARCHAR); CREATE TABLE artist (Artist_ID VARCHAR, age VARCHAR) |
SELECT COUNT("name") FROM table_204_105 WHERE "weight (lbs.)" > 200 | what is the number of players who weight over 200 pounds ? | CREATE TABLE table_204_105 (
id number,
"#" number,
"name" text,
"height" text,
"weight (lbs.)" number,
"position" text,
"class" text,
"hometown" text,
"previous team(s)" text
) |
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 roller_coaster | How many roller coasters are there? | CREATE TABLE roller_coaster (Id VARCHAR) |
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '013-33898' AND patient.unitdischargetime IS NULL | how many days has it been since patient 013-33898 was admitted into icu? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid numb... |
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 Name FROM roller_coaster ORDER BY LENGTH | List the names of roller coasters by ascending order of length. | CREATE TABLE roller_coaster (Name VARCHAR, LENGTH VARCHAR) |
SELECT AVG(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12775 AND admissions.dischtime IS NULL) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'urea nitrogen, urine') | so what's the average urea nitrogen, urine value of patient 12775 on this hospital encounter? | CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
va... |
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 LENGTH, Height FROM roller_coaster | What are the lengths and heights of roller coasters? | CREATE TABLE roller_coaster (LENGTH VARCHAR, Height VARCHAR) |
SELECT COUNT(silver) FROM table_name_44 WHERE nation = "united states" AND total > 1 | how many times is the nation listed as united states with the total more than 1? | CREATE TABLE table_name_44 (
silver VARCHAR,
nation VARCHAR,
total 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 Name FROM country WHERE Languages <> "German" | List the names of countries whose language is not "German". | CREATE TABLE country (Name VARCHAR, Languages VARCHAR) |
SELECT format FROM table_name_42 WHERE conference = "conference iii" | What format has conference iii as the conference? | CREATE TABLE table_name_42 (
format VARCHAR,
conference 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 Status FROM roller_coaster WHERE LENGTH > 3300 OR Height > 100 | Show the statuses of roller coasters longer than 3300 or higher than 100. | CREATE TABLE roller_coaster (Status VARCHAR, LENGTH VARCHAR, Height VARCHAR) |
SELECT MAX(erp_w) FROM table_name_3 WHERE call_sign = "w255bi" | Which ERP W is the highest one that has a Call sign of w255bi? | CREATE TABLE table_name_3 (
erp_w INTEGER,
call_sign 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 Speed FROM roller_coaster ORDER BY LENGTH DESC LIMIT 1 | What are the speeds of the longest roller coaster? | CREATE TABLE roller_coaster (Speed VARCHAR, LENGTH VARCHAR) |
SELECT SUM(UpVotes) AS upv, SUM(DownVotes) AS downv FROM Users ORDER BY upv DESC LIMIT 30 | Top 30 Users with most upvotes. Top 20 Users with most upvotes/day to their answers to
non-CW posts in the last 30 days | CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE T... |
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 AVG(Speed) FROM roller_coaster | What is the average speed of roller coasters? | CREATE TABLE roller_coaster (Speed INTEGER) |
SELECT latitude FROM table_16799784_3 WHERE longitude = "321.9E" | At a longitude of 321.9e, what is the latitude of the features found? | CREATE TABLE table_16799784_3 (
latitude VARCHAR,
longitude 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 Status, COUNT(*) FROM roller_coaster GROUP BY Status | Show the different statuses and the numbers of roller coasters for each status. | CREATE TABLE roller_coaster (Status VARCHAR) |
SELECT year FROM table_name_52 WHERE distance = "1,870.23 km" | In what year saw a total distance of 1,870.23 km? | CREATE TABLE table_name_52 (
year VARCHAR,
distance 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 Status FROM roller_coaster GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1 | Please show the most common status of roller coasters. | CREATE TABLE roller_coaster (Status VARCHAR) |
SELECT date FROM table_name_52 WHERE home_team = "wolverhampton wanderers" | When did the Wolverhampton Wanderers play at home? | CREATE TABLE table_name_52 (
date VARCHAR,
home_team 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 Status FROM roller_coaster GROUP BY Status HAVING COUNT(*) > 2 | List the status shared by more than two roller coaster. | CREATE TABLE roller_coaster (Status VARCHAR) |
SELECT MIN("Attendance") FROM table_933 WHERE "Record" = '4–6' | what is the minimum attendance with record being 4 6 | CREATE TABLE table_933 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Stadium" text,
"Record" text,
"Attendance" real
) |
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 Park FROM roller_coaster ORDER BY Speed DESC LIMIT 1 | Show the park of the roller coaster with the highest speed. | CREATE TABLE roller_coaster (Park VARCHAR, Speed VARCHAR) |
SELECT COUNT("Points") FROM table_63139 WHERE "Position" > '4' AND "Losses" > '5' AND "Conceded" = '15' AND "Scored" > '11' | How many Points have a Position larger than 4, and Losses larger than 5, and a Conceded of 15, and a Scored larger than 11? | CREATE TABLE table_63139 (
"Position" real,
"Team" text,
"Played" real,
"Wins" real,
"Draws P.K. Wins / P.K. Losses" text,
"Losses" real,
"Scored" real,
"Conceded" real,
"Points" real
) |
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 T2.Name, T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID | Show the names of roller coasters and names of country they are in. | CREATE TABLE country (Name VARCHAR, Country_ID VARCHAR); CREATE TABLE roller_coaster (Name VARCHAR, Country_ID VARCHAR) |
SELECT points FROM table_name_92 WHERE tries_against = "90" | When the tries against is 90 how many points are there? | CREATE TABLE table_name_92 (
points VARCHAR,
tries_against 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 T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name HAVING COUNT(*) > 1 | Show the names of countries that have more than one roller coaster. | CREATE TABLE roller_coaster (Country_ID VARCHAR); CREATE TABLE country (Name VARCHAR, Country_ID VARCHAR) |
SELECT "Time/Retired" FROM table_10665 WHERE "Grid" = '6' | What is the Time/Retired for Grid 6? | CREATE TABLE table_10665 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) |
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 T1.Name, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID ORDER BY T2.Height DESC LIMIT 1 | Show the name and population of the country that has the highest roller coaster. | CREATE TABLE roller_coaster (Country_ID VARCHAR, Height VARCHAR); CREATE TABLE country (Name VARCHAR, population VARCHAR, Country_ID VARCHAR) |
SELECT MIN("Length (km)") FROM table_37259 WHERE "Name" = 'north klondike highway' AND "Length (mi)" < '326' | What's the shortest length from north klondike highway that has a length less than 326? | CREATE TABLE table_37259 (
"Name" text,
"Number" real,
"From" text,
"Length (km)" real,
"Length (mi)" real
) |
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 T1.Name, AVG(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name | Show the names of countries and the average speed of roller coasters from each country. | CREATE TABLE roller_coaster (Speed INTEGER, Country_ID VARCHAR); CREATE TABLE country (Name VARCHAR, Country_ID VARCHAR) |
SELECT "Fractievoorzitter" FROM table_9582 WHERE "Lijsttrekker" = 'no elections' AND "Year" > '2005' | What is Fractievoorzitter, when Lijsttrekker is 'No Elections', and when Year is after 2005? | CREATE TABLE table_9582 (
"Year" real,
"Lijsttrekker" text,
"Fractievoorzitter" text,
"Cabinet" text,
"Chair" text
) |
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(*) FROM country WHERE NOT country_id IN (SELECT country_id FROM roller_coaster WHERE LENGTH > 3000) | How many countries do not have an roller coaster longer than 3000? | CREATE TABLE country (country_id VARCHAR, LENGTH INTEGER); CREATE TABLE roller_coaster (country_id VARCHAR, LENGTH INTEGER) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.