instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
Which Venue is the one for the footscray Home team?
|
CREATE TABLE table_78357 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
|
SELECT "Venue" FROM table_78357 WHERE "Home team" = 'footscray'
|
Tell me the eastern #2 for western #2 of oakland
|
CREATE TABLE table_56898 (
"Week" real,
"EASTERN #1" text,
"Eastern #2" text,
"WESTERN #1" text,
"Western #2" text
)
|
SELECT "Eastern #2" FROM table_56898 WHERE "Western #2" = 'oakland'
|
Which Wins has Podiums of 0, and a Series of masters of formula 3?
|
CREATE TABLE table_name_40 (
wins VARCHAR,
podiums VARCHAR,
series VARCHAR
)
|
SELECT wins FROM table_name_40 WHERE podiums = "0" AND series = "masters of formula 3"
|
What is the sum of losses when wins is more than 6, club is camperdown and against is more than 1238?
|
CREATE TABLE table_name_6 (
losses INTEGER,
against VARCHAR,
wins VARCHAR,
club VARCHAR
)
|
SELECT SUM(losses) FROM table_name_6 WHERE wins > 6 AND club = "camperdown" AND against > 1238
|
What was the overall score when set 1 was 23 25?
|
CREATE TABLE table_40721 (
"Date" text,
"Time" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text,
"Report" text
)
|
SELECT "Score" FROM table_40721 WHERE "Set 1" = '23–25'
|
What was the first series in this list that Jack Orman wrote?
|
CREATE TABLE table_12564633_1 (
series__number INTEGER,
written_by VARCHAR
)
|
SELECT MIN(series__number) FROM table_12564633_1 WHERE written_by = "Jack Orman"
|
what's the grand finalist where winners is collingwood
|
CREATE TABLE table_16698 (
"Year" real,
"Winners" text,
"Grand Finalist" text,
"Scores" text,
"Venue" text,
"Crowd" real,
"Margin" real,
"Season Result" text
)
|
SELECT "Grand Finalist" FROM table_16698 WHERE "Winners" = 'Collingwood'
|
What was the highest grid value for riders with manufacturer of Aprilia and time of +1.660?
|
CREATE TABLE table_name_22 (
grid INTEGER,
manufacturer VARCHAR,
time_retired VARCHAR
)
|
SELECT MAX(grid) FROM table_name_22 WHERE manufacturer = "aprilia" AND time_retired = "+1.660"
|
Name the series ^ when the CPU clock is 1500 and the model is t-52r
|
CREATE TABLE table_55084 (
"Series ^" text,
"Model" text,
"CPU clock ( MHz )" text,
"CPU cores" real,
"TDP ( W )" text,
"L2 cache (KiB)" text,
"Radeon cores" real,
"DDR3 speed" real
)
|
SELECT "Series ^" FROM table_55084 WHERE "CPU clock ( MHz )" = '1500' AND "Model" = 't-52r'
|
Show different publishers together with the number of publications they have Plot them as bar chart, and could you list by the total number from high to low?
|
CREATE TABLE publication (
Publication_ID int,
Book_ID int,
Publisher text,
Publication_Date text,
Price real
)
CREATE TABLE book (
Book_ID int,
Title text,
Issues real,
Writer text
)
|
SELECT Publisher, COUNT(*) FROM publication GROUP BY Publisher ORDER BY COUNT(*) DESC
|
Name the distrct for thomas wilson
|
CREATE TABLE table_2668367_21 (
district VARCHAR,
incumbent VARCHAR
)
|
SELECT district FROM table_2668367_21 WHERE incumbent = "Thomas Wilson"
|
What year was Stephenson the builder?
|
CREATE TABLE table_name_93 (
built VARCHAR,
builder VARCHAR
)
|
SELECT built FROM table_name_93 WHERE builder = "stephenson"
|
What is the total of all to par with player Bob Rosburg?
|
CREATE TABLE table_76229 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" text
)
|
SELECT SUM("To par") FROM table_76229 WHERE "Player" = 'bob rosburg'
|
What was the Maple Leafs' record on game 52?
|
CREATE TABLE table_47775 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Record" text
)
|
SELECT "Record" FROM table_47775 WHERE "Game" = '52'
|
what year had the most candidates elected ?
|
CREATE TABLE table_203_330 (
id number,
"year of election" number,
"candidates elected" number,
"# of seats available" number,
"# of votes" number,
"% of popular vote" text
)
|
SELECT "year of election" FROM table_203_330 ORDER BY "candidates elected" DESC LIMIT 1
|
When was the game played at Moorabbin Oval?
|
CREATE TABLE table_name_59 (
date VARCHAR,
venue VARCHAR
)
|
SELECT date FROM table_name_59 WHERE venue = "moorabbin oval"
|
What is the sum of Long for derrick locke?
|
CREATE TABLE table_name_30 (
long INTEGER,
name VARCHAR
)
|
SELECT SUM(long) FROM table_name_30 WHERE name = "derrick locke"
|
What period has 0.25% as the other mozilla?
|
CREATE TABLE table_name_66 (
period VARCHAR,
other_mozilla VARCHAR
)
|
SELECT period FROM table_name_66 WHERE other_mozilla = "0.25%"
|
What was the pick # for a center picked before round 6?
|
CREATE TABLE table_name_87 (
pick__number VARCHAR,
position VARCHAR,
round VARCHAR
)
|
SELECT COUNT(pick__number) FROM table_name_87 WHERE position = "center" AND round < 6
|
A bar chart about the name and age for all male people who don't have a wedding, could you display by the x axis in ascending?
|
CREATE TABLE church (
Church_ID int,
Name text,
Organized_by text,
Open_Date int,
Continuation_of text
)
CREATE TABLE wedding (
Church_ID int,
Male_ID int,
Female_ID int,
Year int
)
CREATE TABLE people (
People_ID int,
Name text,
Country text,
Is_Male text,
Age int
)
|
SELECT Name, Age FROM people WHERE Is_Male = 'T' AND NOT People_ID IN (SELECT Male_ID FROM wedding) ORDER BY Name
|
What is the language for Strong Heart?
|
CREATE TABLE table_name_64 (
language VARCHAR,
title VARCHAR
)
|
SELECT language FROM table_name_64 WHERE title = "strong heart"
|
What is the sum of the Bronze medals when the Gold medals are larger than 0, Silver medals are smaller than 1, and the total is smaller than 1?
|
CREATE TABLE table_name_62 (
bronze INTEGER,
total VARCHAR,
gold VARCHAR,
silver VARCHAR
)
|
SELECT SUM(bronze) FROM table_name_62 WHERE gold > 0 AND silver < 1 AND total < 1
|
Where was the tournament where monica seles was the finalist who played on a hard surface?
|
CREATE TABLE table_9131 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner" text,
"Finalist" text,
"Semifinalists" text
)
|
SELECT "Tournament" FROM table_9131 WHERE "Surface" = 'hard' AND "Finalist" = 'monica seles'
|
Find the number of different airports which are the destinations of the American Airlines.
|
CREATE TABLE airlines (
alid VARCHAR,
name VARCHAR
)
CREATE TABLE routes (
alid VARCHAR
)
|
SELECT COUNT(DISTINCT dst_apid) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines'
|
What is the lowest rank with poland as the nationality and a time greater than 55.34?
|
CREATE TABLE table_15703 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" real
)
|
SELECT MIN("Rank") FROM table_15703 WHERE "Nationality" = 'poland' AND "Time" > '55.34'
|
what were the number of innings albert clapp had ?
|
CREATE TABLE table_204_154 (
id number,
"player" text,
"matches" number,
"innings" number,
"runs" number,
"average" number,
"100s" number,
"50s" number
)
|
SELECT "innings" FROM table_204_154 WHERE "player" = 'albert clapp'
|
When was set 3 of 18-25?
|
CREATE TABLE table_40013 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Set 4" text,
"Set 5" text,
"Total" text
)
|
SELECT "Date" FROM table_40013 WHERE "Set 3" = '18-25'
|
Which men's singles had a women's doubles team of irena ferencov / yweta trminkov ?
|
CREATE TABLE table_43145 (
"Year" real,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
)
|
SELECT "Men's singles" FROM table_43145 WHERE "Women's doubles" = 'irena ferencová / yweta trminková'
|
For those records from the products and each product's manufacturer, what is the relationship between code and revenue , and group by attribute founder?
|
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 T1.Code, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder
|
What is the season that has fewer than 5 total seasons and is in Ottawa, Ontario?
|
CREATE TABLE table_name_49 (
seasons VARCHAR,
total_seasons VARCHAR,
city VARCHAR
)
|
SELECT seasons FROM table_name_49 WHERE total_seasons < 5 AND city = "ottawa, ontario"
|
What is the lowest rank of Gatwick Airport?
|
CREATE TABLE table_72962 (
"Rank" real,
"Railway Station" text,
"Annual entry/exit (millions) 2011\u201312" text,
"Annual interchanges (millions) 2011\u201312" text,
"Total Passengers (millions) 2011\u201312" text,
"Location" text,
"Main Services" text,
"Number of Platforms" real
)
|
SELECT MIN("Rank") FROM table_72962 WHERE "Railway Station" = 'Gatwick Airport'
|
For team ascoli please mention all the appointment date.
|
CREATE TABLE table_27114708_2 (
date_of_appointment VARCHAR,
team VARCHAR
)
|
SELECT date_of_appointment FROM table_27114708_2 WHERE team = "Ascoli"
|
What is the fixed charge for the user with a unit/time range of i-2: peak (18:30-22:30)?
|
CREATE TABLE table_25479607_3 (
fixed_charge___rs__kwh_ VARCHAR,
unit__kwh__time_range VARCHAR
)
|
SELECT fixed_charge___rs__kwh_ FROM table_25479607_3 WHERE unit__kwh__time_range = "I-2: Peak (18:30-22:30)"
|
What is the week 8 Oct 26 standing with georgia tech (8-2) on week 12 Nov 23?
|
CREATE TABLE table_name_1 (
week_8_oct_26 VARCHAR,
week_12_nov_23 VARCHAR
)
|
SELECT week_8_oct_26 FROM table_name_1 WHERE week_12_nov_23 = "georgia tech (8-2)"
|
What's the average round for the OT position from tulane college with an overall over 38?
|
CREATE TABLE table_9931 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
|
SELECT AVG("Round") FROM table_9931 WHERE "Position" = 'ot' AND "College" = 'tulane' AND "Overall" > '38'
|
Which Events have a Player of tom kite, and Earnings ($) smaller than 760,405?
|
CREATE TABLE table_name_60 (
events INTEGER,
player VARCHAR,
earnings___$__ VARCHAR
)
|
SELECT AVG(events) FROM table_name_60 WHERE player = "tom kite" AND earnings___$__ < 760 OFFSET 405
|
Who held the Communications Rep position in 2011?
|
CREATE TABLE table_name_65 (
position VARCHAR
)
|
SELECT 2011 FROM table_name_65 WHERE position = "communications rep"
|
Which numerical entry corresponds to 'Episode 9'?
|
CREATE TABLE table_19808 (
"#" real,
"Episode" text,
"Writer" text,
"Director" text,
"Original air date" text,
"Viewing figure" text
)
|
SELECT COUNT("#") FROM table_19808 WHERE "Episode" = 'Episode 9'
|
What party did Beau Boulter represent?
|
CREATE TABLE table_18240 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
|
SELECT "Party" FROM table_18240 WHERE "Incumbent" = 'Beau Boulter'
|
how many games had an attendance of more than 30,000 ?
|
CREATE TABLE table_204_147 (
id number,
"#" number,
"date" text,
"opponent" text,
"score" text,
"win" text,
"loss" text,
"save" text,
"attendance" number,
"record" text
)
|
SELECT COUNT(*) FROM table_204_147 WHERE "attendance" > 30000
|
each four aces win is a multiple of what number ?
|
CREATE TABLE table_203_564 (
id number,
"hand" text,
"1 credit" number,
"2 credits" number,
"3 credits" number,
"4 credits" number,
"5 credits" number
)
|
SELECT "1 credit" FROM table_203_564 WHERE "hand" = 'four aces'
|
in how many years was the finish 7th ?
|
CREATE TABLE table_204_939 (
id number,
"year" number,
"chassis" text,
"engine" text,
"start" text,
"finish" text
)
|
SELECT COUNT("year") FROM table_204_939 WHERE "finish" = 7
|
What was the Against when the Opposing Team was sheffield wednesday?
|
CREATE TABLE table_name_24 (
against VARCHAR,
opposing_team VARCHAR
)
|
SELECT against FROM table_name_24 WHERE opposing_team = "sheffield wednesday"
|
What was the year when the diameter was 729 km?
|
CREATE TABLE table_46705 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter (km)" real,
"Year named" real,
"Name origin" text
)
|
SELECT "Year named" FROM table_46705 WHERE "Diameter (km)" = '729'
|
When has a Source of rasmussen reports?
|
CREATE TABLE table_42113 (
"Source" text,
"Date" text,
"Clinton" text,
"Obama" text,
"Undecided" text
)
|
SELECT "Date" FROM table_42113 WHERE "Source" = 'rasmussen reports'
|
What is the sum of Grid, when Time is '+16.687'?
|
CREATE TABLE table_59553 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
)
|
SELECT SUM("Grid") FROM table_59553 WHERE "Time" = '+16.687'
|
Name the points for 212 respect toward opponents
|
CREATE TABLE table_226619_12 (
points VARCHAR,
respect_toward_opponents VARCHAR
)
|
SELECT points FROM table_226619_12 WHERE respect_toward_opponents = 212
|
Which tournament had a 2009 result of 1R?
|
CREATE TABLE table_38173 (
"Tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
|
SELECT "Tournament" FROM table_38173 WHERE "2009" = '1r'
|
Which polling firm put T. Papadopoulos at 31%?
|
CREATE TABLE table_name_91 (
polling_firm VARCHAR,
t_papadopoulos VARCHAR
)
|
SELECT polling_firm FROM table_name_91 WHERE t_papadopoulos = "31%"
|
What is the average rank that has cia world factbook as the source and a year prior to 2005?
|
CREATE TABLE table_name_29 (
rank INTEGER,
source VARCHAR,
year VARCHAR
)
|
SELECT AVG(rank) FROM table_name_29 WHERE source = "cia world factbook" AND year < 2005
|
What was the attendance for the away team Solihull Moors?
|
CREATE TABLE table_79603 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
)
|
SELECT "Attendance" FROM table_79603 WHERE "Away team" = 'solihull moors'
|
Who were the candidates in the district where the incumbent was Nathaniel Macon?
|
CREATE TABLE table_2668367_14 (
candidates VARCHAR,
incumbent VARCHAR
)
|
SELECT candidates FROM table_2668367_14 WHERE incumbent = "Nathaniel Macon"
|
Which Game has a Series of bruins lead 3 1?
|
CREATE TABLE table_39182 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Series" text
)
|
SELECT SUM("Game") FROM table_39182 WHERE "Series" = 'bruins lead 3–1'
|
with year greater than 1988 what is the total number of points?
|
CREATE TABLE table_name_62 (
points VARCHAR,
year INTEGER
)
|
SELECT COUNT(points) FROM table_name_62 WHERE year > 1988
|
When 6 is the w what is the pa?
|
CREATE TABLE table_4214 (
"Skip (Club)" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real
)
|
SELECT "PA" FROM table_4214 WHERE "W" = '6'
|
Name the report for 2003
|
CREATE TABLE table_25208 (
"Year" text,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race time" text,
"Average speed (mph)" text,
"Report" text
)
|
SELECT "Report" FROM table_25208 WHERE "Year" = '2003'
|
Name the vessel type for dof subsea
|
CREATE TABLE table_3486 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Vessel Type" text,
"Vessel Operator" text,
"Narrated by" text,
"Original air date" real
)
|
SELECT "Vessel Type" FROM table_3486 WHERE "Vessel Operator" = 'DOF Subsea'
|
Opponent of @ atlanta flames had what game?
|
CREATE TABLE table_name_44 (
game VARCHAR,
opponent VARCHAR
)
|
SELECT game FROM table_name_44 WHERE opponent = "@ atlanta flames"
|
Which away game was played on 2008-07-18?
|
CREATE TABLE table_name_5 (
away VARCHAR,
date VARCHAR
)
|
SELECT away FROM table_name_5 WHERE date = "2008-07-18"
|
on what date did the bears win by a difference of 27 points ?
|
CREATE TABLE table_204_207 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number,
"bye" text
)
|
SELECT "date" FROM table_204_207 WHERE "result" = 'w' AND "result" - "result" = 27
|
What is the rank of Etihad Tower 5, with less than 62 floors?
|
CREATE TABLE table_36691 (
"Rank" real,
"Name" text,
"Height* m (ft)" text,
"Floors" real,
"Year* (est.)" text,
"City" text
)
|
SELECT MIN("Rank") FROM table_36691 WHERE "Floors" < '62' AND "Name" = 'etihad tower 5'
|
What september has 10.35 in November?
|
CREATE TABLE table_1383 (
"Year" real,
"January" text,
"February" text,
"March" text,
"April" text,
"May" text,
"June" text,
"July" text,
"August" text,
"September" text,
"October" text,
"November" text,
"December" text,
"Annual Additions(in millions)" text,
"Average Monthly Additions(in millions)" text
)
|
SELECT "September" FROM table_1383 WHERE "November" = '10.35'
|
How many different courses offered by Physics department?
|
CREATE TABLE course (
course_id VARCHAR,
dept_name VARCHAR
)
|
SELECT COUNT(DISTINCT course_id) FROM course WHERE dept_name = 'Physics'
|
Which Winner has a Country of norway, and a FIS Nordic World Ski Championships of 1924?
|
CREATE TABLE table_name_97 (
winner VARCHAR,
country VARCHAR,
fis_nordic_world_ski_championships VARCHAR
)
|
SELECT winner FROM table_name_97 WHERE country = "norway" AND fis_nordic_world_ski_championships = "1924"
|
On August 22, how many people came to the game?
|
CREATE TABLE table_67152 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
|
SELECT "Attendance" FROM table_67152 WHERE "Date" = 'august 22'
|
Which Proto-Oceanic has a Proto-Polynesian of *lima?
|
CREATE TABLE table_name_48 (
proto_oceanic VARCHAR,
proto_polynesian VARCHAR
)
|
SELECT proto_oceanic FROM table_name_48 WHERE proto_polynesian = "*lima"
|
What is the place of the Pinyin transcription Xi Wangri?
|
CREATE TABLE table_1805919_1 (
standard_order INTEGER,
transcription__based_on_pinyin_ VARCHAR
)
|
SELECT MAX(standard_order) FROM table_1805919_1 WHERE transcription__based_on_pinyin_ = "Xi Wangri"
|
What is the low silver medal total for nations with over 1 bronze ranked above 11?
|
CREATE TABLE table_name_80 (
silver INTEGER,
bronze VARCHAR,
rank VARCHAR
)
|
SELECT MIN(silver) FROM table_name_80 WHERE bronze > 1 AND rank < 11
|
For those records from the products and each product's manufacturer, show me about the distribution of name and the sum of revenue , and group by attribute name in a bar chart, I want to list by the Name in ascending please.
|
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 T2.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name
|
What percentage of other candidates did the county which voted 52.1% for Kerry vote for?
|
CREATE TABLE table_49639 (
"County" text,
"Kerry%" text,
"Kerry#" real,
"Bush%" text,
"Bush#" real,
"Others%" text,
"Others#" real,
"2000 result" text
)
|
SELECT MAX("Others#") FROM table_49639 WHERE "Kerry%" = '52.1%'
|
What is the round of the match at venue A with a result of 1-2 on 7 December 2004?
|
CREATE TABLE table_name_17 (
round VARCHAR,
date VARCHAR,
venue VARCHAR,
result VARCHAR
)
|
SELECT round FROM table_name_17 WHERE venue = "a" AND result = "1-2" AND date = "7 december 2004"
|
What is the date of the tournament with 5 strokes as the margin of victory?
|
CREATE TABLE table_11478 (
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text
)
|
SELECT "Date" FROM table_11478 WHERE "Margin of victory" = '5 strokes'
|
What team is 2 when 1 is Taipower and the result is 0-1?
|
CREATE TABLE table_name_90 (
team_2 VARCHAR,
team_1 VARCHAR,
result VARCHAR
)
|
SELECT team_2 FROM table_name_90 WHERE team_1 = "taipower" AND result = "0-1"
|
For those records from the products and each product's manufacturer, show me about the distribution of name and revenue , and group by attribute name in a bar chart, display in descending by the bars.
|
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 T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Name DESC
|
What is the Score for 09-oct-2006?
|
CREATE TABLE table_42549 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
|
SELECT "Score" FROM table_42549 WHERE "Date" = '09-oct-2006'
|
What are the countries of mountains with height bigger than 5000?
|
CREATE TABLE mountain (
mountain_id number,
name text,
height number,
prominence number,
range text,
country text
)
CREATE TABLE climber (
climber_id number,
name text,
country text,
time text,
points number,
mountain_id number
)
|
SELECT country FROM mountain WHERE height > 5000
|
What Career has a Super G of 5, and a Combined of 6?
|
CREATE TABLE table_name_61 (
career VARCHAR,
super_g VARCHAR,
combined VARCHAR
)
|
SELECT career FROM table_name_61 WHERE super_g = "5" AND combined = "6"
|
What is the production code for episode number 86 in the series?
|
CREATE TABLE table_2409041_5 (
production_code INTEGER,
no_in_series VARCHAR
)
|
SELECT MIN(production_code) FROM table_2409041_5 WHERE no_in_series = 86
|
How many golds were there in a game that has 17 bronze and a total of 31?
|
CREATE TABLE table_51492 (
"Games" text,
"Gold" text,
"Silver" text,
"Bronze" text,
"Total" text,
"Rank" text
)
|
SELECT "Gold" FROM table_51492 WHERE "Bronze" = '17' AND "Total" = '31'
|
What Week 5 has a Week 1 of mysti sherwood?
|
CREATE TABLE table_12981 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
)
|
SELECT "Week 5" FROM table_12981 WHERE "Week 1" = 'mysti sherwood'
|
What is the name of series episode 11-02's segment c?
|
CREATE TABLE table_15187735_11 (
segment_c VARCHAR,
series_ep VARCHAR
)
|
SELECT segment_c FROM table_15187735_11 WHERE series_ep = "11-02"
|
Who was the player for Japan when the to par was smaller than 7?
|
CREATE TABLE table_13139 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real
)
|
SELECT "Player" FROM table_13139 WHERE "To par" < '7' AND "Country" = 'japan'
|
What player has a score of 79?
|
CREATE TABLE table_name_53 (
player VARCHAR,
score VARCHAR
)
|
SELECT player FROM table_name_53 WHERE score = "79"
|
When was the game played in Zagreb?
|
CREATE TABLE table_4997 (
"Date" text,
"City" text,
"Opponent" text,
"Results\u00b9" text,
"Type of game" text
)
|
SELECT "Date" FROM table_4997 WHERE "City" = 'zagreb'
|
Show student ids who don't have any sports.
|
CREATE TABLE Sportsinfo (
StuID VARCHAR
)
CREATE TABLE Student (
StuID VARCHAR
)
|
SELECT StuID FROM Student EXCEPT SELECT StuID FROM Sportsinfo
|
What was CTE Racing-hvm's Best with a Qual 2 of 50.312?
|
CREATE TABLE table_33527 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" real
)
|
SELECT "Best" FROM table_33527 WHERE "Team" = 'cte racing-hvm' AND "Qual 2" = '50.312'
|
Which Away team score has a Home team of richmond?
|
CREATE TABLE table_56136 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
|
SELECT "Away team score" FROM table_56136 WHERE "Home team" = 'richmond'
|
Which Attendance that has a Venue of ryavallen?
|
CREATE TABLE table_44800 (
"Date" text,
"Venue" text,
"Opponents" text,
"Score" text,
"Comp" text,
"Attendance" text
)
|
SELECT "Attendance" FROM table_44800 WHERE "Venue" = 'ryavallen'
|
Who was the visiting team who played at the hubert h. humphrey metrodome stadium?
|
CREATE TABLE table_68754 (
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
)
|
SELECT "Visiting Team" FROM table_68754 WHERE "Stadium" = 'hubert h. humphrey metrodome'
|
what is the location when the score is w 105-99?
|
CREATE TABLE table_name_58 (
location VARCHAR,
score VARCHAR
)
|
SELECT location FROM table_name_58 WHERE score = "w 105-99"
|
Who had the high rebounds when the record was 14 7?
|
CREATE TABLE table_29843 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
|
SELECT "High rebounds" FROM table_29843 WHERE "Record" = '14–7'
|
Draw a bar chart for what are the different classes of races, and how many races correspond to each?
|
CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
)
CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
)
|
SELECT Class, COUNT(*) FROM race GROUP BY Class
|
What day did Yugoslavia play Luxembourg?
|
CREATE TABLE table_37550 (
"Date" text,
"City" text,
"Opponent" text,
"Results\u00b9" text,
"Type of game" text
)
|
SELECT "Date" FROM table_37550 WHERE "Opponent" = 'luxembourg'
|
If the name of the district is the Charyl Stockwell Academy, what is the county name?
|
CREATE TABLE table_25212 (
"District name" text,
"Dist. ID" real,
"ISD" text,
"County" text,
"Authorizing agency" text,
"Date opened" text,
"Services" text
)
|
SELECT "County" FROM table_25212 WHERE "District name" = 'Charyl Stockwell Academy'
|
who is the opponent when norway is against?
|
CREATE TABLE table_name_67 (
opponent VARCHAR,
against VARCHAR
)
|
SELECT opponent FROM table_name_67 WHERE against = "norway"
|
How many weeks was K.Maro at #1?
|
CREATE TABLE table_27441210_12 (
weeks_at__number1 INTEGER,
artist VARCHAR
)
|
SELECT MAX(weeks_at__number1) FROM table_27441210_12 WHERE artist = "K.Maro"
|
What is varricchio's status?
|
CREATE TABLE table_name_75 (
status VARCHAR,
authors VARCHAR
)
|
SELECT status FROM table_name_75 WHERE authors = "varricchio"
|
Who is the rider with a 399cc Kawasaki?
|
CREATE TABLE table_name_94 (
rider VARCHAR,
team VARCHAR
)
|
SELECT rider FROM table_name_94 WHERE team = "399cc kawasaki"
|
What was the winning score on May 3, 1998?
|
CREATE TABLE table_58327 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
|
SELECT "Winning score" FROM table_58327 WHERE "Date" = 'may 3, 1998'
|
What did st kilda score at home?
|
CREATE TABLE table_name_95 (
home_team VARCHAR
)
|
SELECT home_team AS score FROM table_name_95 WHERE home_team = "st kilda"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.