instruction
stringlengths 5
766
| input
stringlengths 38
5.51k
| response
stringlengths 4
3.91k
|
---|---|---|
What event was in a year later than 2007 and in the 88th position?
|
CREATE TABLE table_66598 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text,
"Notes" text
)
|
SELECT "Event" FROM table_66598 WHERE "Year" > '2007' AND "Position" = '88th'
|
Give me a bar chart showing the total number of ships' classes that do not have a captain, show from low to high by the y-axis please.
|
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
|
SELECT Class, COUNT(Class) FROM Ship WHERE NOT Ship_ID IN (SELECT Ship_ID FROM captain) GROUP BY Class ORDER BY COUNT(Class)
|
What is the proportion of the number of schools in different counties?
|
CREATE TABLE endowment (
endowment_id int,
School_id int,
donator_name text,
amount real
)
CREATE TABLE School (
School_id text,
School_name text,
Location text,
Mascot text,
Enrollment int,
IHSAA_Class text,
IHSAA_Football_Class text,
County text
)
CREATE TABLE budget (
School_id int,
Year int,
Budgeted int,
total_budget_percent_budgeted real,
Invested int,
total_budget_percent_invested real,
Budget_invested_percent text
)
|
SELECT County, COUNT(*) FROM School GROUP BY County
|
When did the Score of 195 (-21) happen?
|
CREATE TABLE table_name_4 (
date VARCHAR,
score VARCHAR
)
|
SELECT date FROM table_name_4 WHERE score = "195 (-21)"
|
Which analog channel has a digital channel of 4.1?
|
CREATE TABLE table_name_31 (
analog_channel VARCHAR,
digital_channel VARCHAR
)
|
SELECT analog_channel FROM table_name_31 WHERE digital_channel = "4.1"
|
what's the thursday time with location being hawthorne
|
CREATE TABLE table_11019212_1 (
thursday VARCHAR,
location VARCHAR
)
|
SELECT thursday FROM table_11019212_1 WHERE location = "Hawthorne"
|
What was the result when incumbent Tom Steed was elected?
|
CREATE TABLE table_1342198_36 (
result VARCHAR,
incumbent VARCHAR
)
|
SELECT result FROM table_1342198_36 WHERE incumbent = "Tom Steed"
|
What year was the USS Cambridge laid down?
|
CREATE TABLE table_66047 (
"Hull Number" text,
"Name" text,
"Builder" text,
"Laid down" text,
"Launched" text,
"Completed" text
)
|
SELECT "Laid down" FROM table_66047 WHERE "Name" = 'uss cambridge'
|
Give me a bar chart for how many name of each name, and order by the names in ascending.
|
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 Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY Name
|
Find the number of male students (with sex M) from each city in a bar chart.
|
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
|
SELECT city_code, COUNT(*) FROM Student WHERE Sex = 'M' GROUP BY city_code
|
What year was the West Coast League established than the championships are greater than 0?
|
CREATE TABLE table_36871 (
"Club" text,
"Sport" text,
"League" text,
"Venue" text,
"Established" real,
"Championships" real
)
|
SELECT "Established" FROM table_36871 WHERE "Championships" > '0' AND "League" = 'west coast league'
|
what's the won with points against being 304
|
CREATE TABLE table_19040 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
)
|
SELECT "Won" FROM table_19040 WHERE "Points against" = '304'
|
What is the decision of the game with an attendance greater than 19,883?
|
CREATE TABLE table_name_49 (
decision VARCHAR,
attendance INTEGER
)
|
SELECT decision FROM table_name_49 WHERE attendance > 19 OFFSET 883
|
what is the earliest year when the author is reki kawahara?
|
CREATE TABLE table_name_42 (
year INTEGER,
author VARCHAR
)
|
SELECT MIN(year) FROM table_name_42 WHERE author = "reki kawahara"
|
Bronze of 0, and a Total of 1, and a Silver smaller than 1 what is the lowest gold?
|
CREATE TABLE table_name_35 (
gold INTEGER,
silver VARCHAR,
bronze VARCHAR,
total VARCHAR
)
|
SELECT MIN(gold) FROM table_name_35 WHERE bronze = 0 AND total = 1 AND silver < 1
|
What is the venue when Geelong is the away team?
|
CREATE TABLE table_74712 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
|
SELECT "Venue" FROM table_74712 WHERE "Away team" = 'geelong'
|
What is the average rating of viewers 18 to 49 where the total viewer count is 3.93 million and share less than 4?
|
CREATE TABLE table_51322 (
"Episode" text,
"Air Date" text,
"Timeslot (EST)" text,
"Season" real,
"Rating" real,
"Share" real,
"18\u201349" real,
"Viewers (m)" real,
"Rank (#)" text
)
|
SELECT AVG("18\u201349") FROM table_51322 WHERE "Viewers (m)" = '3.93' AND "Share" < '4'
|
What is Spandau 04 Player Jens Pohlmann's Pos.?
|
CREATE TABLE table_62457 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
)
|
SELECT "Pos." FROM table_62457 WHERE "Club" = 'spandau 04' AND "Name" = 'jens pohlmann'
|
What is the Length of retirement of the President with an Age at inauguration of 70years, 53days?
|
CREATE TABLE table_name_51 (
length_of_retirement VARCHAR,
age_at_inauguration VARCHAR
)
|
SELECT length_of_retirement FROM table_name_51 WHERE age_at_inauguration = "70years, 53days"
|
Tell me the HDD capacity for # FDD larger than 0 when FDD capacity is 710kb
|
CREATE TABLE table_11562 (
"HP Model" text,
"Command Set" text,
"# FDD" real,
"FDD Type" text,
"Sides" text,
"FDD Capacity (each)" text,
"# HDD" real,
"HDD Capacity" text
)
|
SELECT "HDD Capacity" FROM table_11562 WHERE "# FDD" > '0' AND "FDD Capacity (each)" = '710kb'
|
When the player gained below 1,405 yards and lost over 390 yards, what's the sum of the long yards?
|
CREATE TABLE table_name_59 (
long INTEGER,
loss VARCHAR,
gain VARCHAR
)
|
SELECT SUM(long) FROM table_name_59 WHERE loss > 390 AND gain < 1 OFFSET 405
|
What is the success rate for the year 2012?
|
CREATE TABLE table_name_52 (
success_rate VARCHAR,
year VARCHAR
)
|
SELECT success_rate FROM table_name_52 WHERE year = "2012"
|
Who is the incumbent first elected in 1944?
|
CREATE TABLE table_18480 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
|
SELECT "Incumbent" FROM table_18480 WHERE "First elected" = '1944'
|
What was the winning score of the Buy.com Siouxland Open?
|
CREATE TABLE table_70472 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
|
SELECT "Winning score" FROM table_70472 WHERE "Tournament" = 'buy.com siouxland open'
|
What's the airing date for the show with 62 episodes?
|
CREATE TABLE table_65811 (
"Airing date" text,
"English title (Chinese title)" text,
"Number of episodes" real,
"Genre" text,
"Official website" text
)
|
SELECT "Airing date" FROM table_65811 WHERE "Number of episodes" = '62'
|
What round has a position of F/C from Iowa College?
|
CREATE TABLE table_name_56 (
round VARCHAR,
position VARCHAR,
college VARCHAR
)
|
SELECT round FROM table_name_56 WHERE position = "f/c" AND college = "iowa"
|
What is the sum of households that makes a median household income of $44,718?
|
CREATE TABLE table_name_43 (
number_of_households INTEGER,
median_household_income VARCHAR
)
|
SELECT SUM(number_of_households) FROM table_name_43 WHERE median_household_income = "$44,718"
|
Who was the coach in 1953?
|
CREATE TABLE table_37980 (
"Year" text,
"Conference" text,
"Overall Record" text,
"Conference Record" text,
"Coach" text
)
|
SELECT "Coach" FROM table_37980 WHERE "Year" = '1953'
|
Return the publisher that has published the most books.
|
CREATE TABLE movie (
movie_id number,
title text,
year number,
director text,
budget_million number,
gross_worldwide number
)
CREATE TABLE culture_company (
company_name text,
type text,
incorporated_in text,
group_equity_shareholding number,
book_club_id text,
movie_id text
)
CREATE TABLE book_club (
book_club_id number,
year number,
author_or_editor text,
book_title text,
publisher text,
category text,
result text
)
|
SELECT publisher FROM book_club GROUP BY publisher ORDER BY COUNT(*) DESC LIMIT 1
|
What is the Date with a Opponent with wimbledon, and a Result of won 2-0?
|
CREATE TABLE table_77998 (
"Round" text,
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text
)
|
SELECT "Date" FROM table_77998 WHERE "Opponent" = 'wimbledon' AND "Result" = 'won 2-0'
|
how much more people were in attendance at the orlando lotusphere conference in 2001 than the one in 2004 ?
|
CREATE TABLE table_203_794 (
id number,
"year" number,
"location" text,
"attendance" number,
"theme phrase" text,
"top messages" text,
"host" text,
"opening general session guest(s)" text,
"closing general session guest(s)" text,
"sunday night reception" text,
"wednesday night party" text,
"cult shirt" text
)
|
SELECT (SELECT "attendance" FROM table_203_794 WHERE "year" = 2001) - (SELECT "attendance" FROM table_203_794 WHERE "year" = 2004)
|
Which Position has a Pick # smaller than 23, and a Player of garrett sutherland?
|
CREATE TABLE table_name_12 (
position VARCHAR,
pick__number VARCHAR,
player VARCHAR
)
|
SELECT position FROM table_name_12 WHERE pick__number < 23 AND player = "garrett sutherland"
|
List the name for storms and the number of affected regions for each storm with a pie chart.
|
CREATE TABLE region (
Region_id int,
Region_code text,
Region_name text
)
CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_city_affected real
)
CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Number_Deaths int
)
|
SELECT Name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.Storm_ID = T2.Storm_ID GROUP BY T1.Storm_ID
|
What is the largest number of points they had?
|
CREATE TABLE table_23308178_8 (
points INTEGER
)
|
SELECT MAX(points) FROM table_23308178_8
|
Who is born on 1982-01-29?
|
CREATE TABLE table_60243 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
)
|
SELECT "Name" FROM table_60243 WHERE "Date of Birth" = '1982-01-29'
|
Show the ids and names of festivals that have at least two nominations for artworks by a bar chart, display names in asc order.
|
CREATE TABLE nomination (
Artwork_ID int,
Festival_ID int,
Result text
)
CREATE TABLE artwork (
Artwork_ID int,
Type text,
Name text
)
CREATE TABLE festival_detail (
Festival_ID int,
Festival_Name text,
Chair_Name text,
Location text,
Year int,
Num_of_Audience int
)
|
SELECT T3.Festival_Name, T1.Festival_ID FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID ORDER BY T3.Festival_Name
|
what is the perfect of mass when the molecules is 1.74e14*?
|
CREATE TABLE table_name_58 (
percent_of_mass VARCHAR,
molecules VARCHAR
)
|
SELECT percent_of_mass FROM table_name_58 WHERE molecules = "1.74e14*"
|
how many commissioners served under calvin coolidge ?
|
CREATE TABLE table_203_559 (
id number,
"no." number,
"name" text,
"took office" text,
"left office" text,
"president served under" text,
"notable for" text
)
|
SELECT COUNT("name") FROM table_203_559 WHERE "president served under" = 'calvin coolidge'
|
Can you tell me the Record that has the Home of ny islanders?
|
CREATE TABLE table_name_26 (
record VARCHAR,
home VARCHAR
)
|
SELECT record FROM table_name_26 WHERE home = "ny islanders"
|
What are the average Laps on Grid 15?
|
CREATE TABLE table_50944 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
)
|
SELECT AVG("Laps") FROM table_50944 WHERE "Grid" = '15'
|
In what year saw a total distance of 1,870.23 km?
|
CREATE TABLE table_name_52 (
year VARCHAR,
distance VARCHAR
)
|
SELECT year FROM table_name_52 WHERE distance = "1,870.23 km"
|
What is the round for the Int. Adac-Preis Der Tourenwagen Von Sachsen-Anhalt?
|
CREATE TABLE table_name_92 (
round VARCHAR,
race VARCHAR
)
|
SELECT round FROM table_name_92 WHERE race = "int. adac-preis der tourenwagen von sachsen-anhalt"
|
What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with.
|
CREATE TABLE medicine_enzyme_interaction (
medicine_id VARCHAR
)
CREATE TABLE medicine (
id VARCHAR,
Name VARCHAR,
FDA_approved VARCHAR
)
|
SELECT T1.id, T1.Name, T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC
|
what is the away team score when the home team is essendon?
|
CREATE TABLE table_58498 (
"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_58498 WHERE "Home team" = 'essendon'
|
What is the lowest events that have 17 as the cuts made, with a top-25 less than 8?
|
CREATE TABLE table_name_14 (
events INTEGER,
cuts_made VARCHAR,
top_25 VARCHAR
)
|
SELECT MIN(events) FROM table_name_14 WHERE cuts_made = 17 AND top_25 < 8
|
What season features writer Michael Poryes?
|
CREATE TABLE table_72254 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
|
SELECT "Season #" FROM table_72254 WHERE "Written by" = 'Michael Poryes'
|
What was the final score for the match where Hereford United was the home team?
|
CREATE TABLE table_name_57 (
score VARCHAR,
home_team VARCHAR
)
|
SELECT score FROM table_name_57 WHERE home_team = "hereford united"
|
What is the average Jianshu higher than rank 2, with a Qiangshu smaller than 9.85?
|
CREATE TABLE table_name_29 (
jianshu INTEGER,
rank VARCHAR,
qiangshu VARCHAR
)
|
SELECT AVG(jianshu) FROM table_name_29 WHERE rank < 2 AND qiangshu < 9.85
|
What is the sum of number of wins that have earnings of more than ( )2,864,342 and money list rank of 3?
|
CREATE TABLE table_70144 (
"Year" text,
"Starts" real,
"Cuts made" real,
"Wins" real,
"Top 10" real,
"Top 25" real,
"Earnings (\u20ac)" real,
"Money list rank" real
)
|
SELECT SUM("Wins") FROM table_70144 WHERE "Earnings (\u20ac)" > '2,864,342' AND "Money list rank" = '3'
|
How many aircrafts do we have?
|
CREATE TABLE aircraft (
aid number,
name text,
distance number
)
CREATE TABLE flight (
flno number,
origin text,
destination text,
distance number,
departure_date time,
arrival_date time,
price number,
aid number
)
CREATE TABLE employee (
eid number,
name text,
salary number
)
CREATE TABLE certificate (
eid number,
aid number
)
|
SELECT COUNT(*) FROM aircraft
|
What was the purpose of the Quay test blast?
|
CREATE TABLE table_name_54 (
purpose VARCHAR,
name VARCHAR
)
|
SELECT purpose FROM table_name_54 WHERE name = "quay"
|
Where is bobby jones (a)?
|
CREATE TABLE table_50184 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" text
)
|
SELECT "Place" FROM table_50184 WHERE "Player" = 'bobby jones (a)'
|
Name the total number of points for for played
|
CREATE TABLE table_29400 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Points" text
)
|
SELECT COUNT("Points for") FROM table_29400 WHERE "Played" = 'Played'
|
Who directed the episode with the production code 176252?
|
CREATE TABLE table_19654 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
|
SELECT "Directed by" FROM table_19654 WHERE "Production code" = '176252'
|
What was the highest grid value for riders with manufacturer of Aprilia and time of +1.660?
|
CREATE TABLE table_40257 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
|
SELECT MAX("Grid") FROM table_40257 WHERE "Manufacturer" = 'aprilia' AND "Time/Retired" = '+1.660'
|
What engine was used by Curb Motorsports after 1982 that had 11 points?
|
CREATE TABLE table_70585 (
"Year" real,
"Team" text,
"Chassis" text,
"Engine" text,
"Rank" text,
"Points" real
)
|
SELECT "Engine" FROM table_70585 WHERE "Year" > '1982' AND "Points" = '11' AND "Team" = 'curb motorsports'
|
What is the D 50 when the D 41 is d 41?
|
CREATE TABLE table_name_84 (
d_50 VARCHAR,
d_41 VARCHAR
)
|
SELECT d_50 FROM table_name_84 WHERE d_41 = "d 41"
|
When the share of votes equals 21.8%, what's the sum of the total amount of seats?
|
CREATE TABLE table_name_61 (
total_seats INTEGER,
share_of_votes VARCHAR
)
|
SELECT SUM(total_seats) FROM table_name_61 WHERE share_of_votes = "21.8%"
|
What architecture type does the Ford Escort Wagon have?
|
CREATE TABLE table_name_73 (
architecture VARCHAR,
original_vehicle VARCHAR
)
|
SELECT architecture FROM table_name_73 WHERE original_vehicle = "ford escort wagon"
|
what is the circuit when the date is 4 june?
|
CREATE TABLE table_45417 (
"Race Title" text,
"Circuit" text,
"City / State" text,
"Date" text,
"Winner" text,
"Team" text
)
|
SELECT "Circuit" FROM table_45417 WHERE "Date" = '4 june'
|
Which team classification has malaysian team classification of mncf continental team?
|
CREATE TABLE table_2615 (
"Stage" real,
"Stage winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Malaysian rider classification" text,
"Team classification" text,
"Malaysian team classification" text
)
|
SELECT "Team classification" FROM table_2615 WHERE "Malaysian team classification" = 'MNCF Continental Team'
|
how many competitors competed in the semifinal 2 ?
|
CREATE TABLE table_204_547 (
id number,
"rank" number,
"lane" number,
"name" text,
"nationality" text,
"time" number,
"notes" text
)
|
SELECT COUNT("name") FROM table_204_547
|
In what tournament was the difference only 1 stroke and 54 holes with a 2 shot deficit?
|
CREATE TABLE table_26734 (
"Year" text,
"Championship" text,
"54 holes" text,
"Winning score" text,
"Margin" text,
"Runner(s)-up" text
)
|
SELECT "Championship" FROM table_26734 WHERE "Margin" = '1 stroke' AND "54 holes" = '2 shot deficit'
|
Who is the winning pitcher when attendance is 38109?
|
CREATE TABLE table_12125069_2 (
winning_pitcher VARCHAR,
attendance VARCHAR
)
|
SELECT winning_pitcher FROM table_12125069_2 WHERE attendance = 38109
|
What time contains the owner of maine chance farm?
|
CREATE TABLE table_name_55 (
time VARCHAR,
owner VARCHAR
)
|
SELECT time FROM table_name_55 WHERE owner = "maine chance farm"
|
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 SUM("Events") FROM table_5000 WHERE "Rank" > '5'
|
What township is 28.597 square miles of land?
|
CREATE TABLE table_22466 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" text,
"Water (sqmi)" text,
"Latitude" text,
"Longitude" text,
"GEO ID" real,
"ANSI code" real
)
|
SELECT "Township" FROM table_22466 WHERE "Land ( sqmi )" = '28.597'
|
Who was the opponent when the score was 6 4, 6 7 (2 7) , 7 5?
|
CREATE TABLE table_10684 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
|
SELECT "Opponent" FROM table_10684 WHERE "Score" = '6β4, 6β7 (2β7) , 7β5'
|
Which rule has The Event of n/a, The Result of loss, and The Location of winsford england?
|
CREATE TABLE table_name_2 (
rules VARCHAR,
location VARCHAR,
event VARCHAR,
result VARCHAR
)
|
SELECT rules FROM table_name_2 WHERE event = "n/a" AND result = "loss" AND location = "winsford england"
|
Name the team 1 for round 3
|
CREATE TABLE table_name_64 (
team_1 VARCHAR,
round VARCHAR
)
|
SELECT team_1 FROM table_name_64 WHERE round = "3"
|
What machine has 5 as the place?
|
CREATE TABLE table_40931 (
"Place" real,
"Rider" text,
"Country" text,
"Machine" text,
"Speed" text,
"Time" text,
"Points" real
)
|
SELECT "Machine" FROM table_40931 WHERE "Place" = '5'
|
How many times was the election joseph w. byrns, sr. (d) unopposed?
|
CREATE TABLE table_1342379_41 (
result VARCHAR,
candidates VARCHAR
)
|
SELECT COUNT(result) FROM table_1342379_41 WHERE candidates = "Joseph W. Byrns, Sr. (D) Unopposed"
|
what is the total number of attendance where the date is december 29?
|
CREATE TABLE table_17080868_6 (
location_attendance VARCHAR,
date VARCHAR
)
|
SELECT COUNT(location_attendance) FROM table_17080868_6 WHERE date = "December 29"
|
Who is the rookie goalkeeper Rob Scherr who played before week 6?
|
CREATE TABLE table_6044 (
"Month" text,
"Week" real,
"Offensive" text,
"Defensive" text,
"Goalkeeper" text,
"Rookie" text
)
|
SELECT "Rookie" FROM table_6044 WHERE "Goalkeeper" = 'rob scherr' AND "Week" < '6'
|
What is the save when Yankees are the opponents on July 25?
|
CREATE TABLE table_name_82 (
save VARCHAR,
opponent VARCHAR,
date VARCHAR
)
|
SELECT save FROM table_name_82 WHERE opponent = "yankees" AND date = "july 25"
|
How many trains leave from puri?
|
CREATE TABLE table_12095519_1 (
train_name VARCHAR,
origin VARCHAR
)
|
SELECT COUNT(train_name) FROM table_12095519_1 WHERE origin = "Puri"
|
Who was the High Assist in game 1?
|
CREATE TABLE table_17323042_11 (
high_assists VARCHAR,
game VARCHAR
)
|
SELECT high_assists FROM table_17323042_11 WHERE game = 1
|
On what date was the opponent the Miami Dolphins?
|
CREATE TABLE table_name_30 (
date VARCHAR,
opponent VARCHAR
)
|
SELECT date FROM table_name_30 WHERE opponent = "miami dolphins"
|
What company constructed the vehicle in the location not held in 1933?
|
CREATE TABLE table_name_99 (
constructor VARCHAR,
location VARCHAR,
year VARCHAR
)
|
SELECT constructor FROM table_name_99 WHERE location = "not held" AND year = "1933"
|
What is the home team in week 1?
|
CREATE TABLE table_name_61 (
home_team VARCHAR,
week VARCHAR
)
|
SELECT home_team FROM table_name_61 WHERE week = "1"
|
What is the year when the Winner was the new york jets, with a Result of 24 17, played at giants stadium?
|
CREATE TABLE table_74998 (
"Year" real,
"Date" text,
"Winner" text,
"Result" text,
"Loser" text,
"Location" text
)
|
SELECT SUM("Year") FROM table_74998 WHERE "Winner" = 'new york jets' AND "Result" = '24β17' AND "Location" = 'giants stadium'
|
Name the year for t-10th
|
CREATE TABLE table_23918 (
"Year" text,
"Head Coach" text,
"Regular Season Record (W-L)" text,
"NEC Record" text,
"Standing" text,
"NEC Tournament Record" text
)
|
SELECT "Year" FROM table_23918 WHERE "Standing" = 'T-10th'
|
What's the status on 16/12/1995?
|
CREATE TABLE table_name_35 (
status VARCHAR,
date VARCHAR
)
|
SELECT status FROM table_name_35 WHERE date = "16/12/1995"
|
what team played against zimbabwe in 1999?
|
CREATE TABLE table_name_11 (
team VARCHAR,
year VARCHAR,
versus VARCHAR
)
|
SELECT team FROM table_name_11 WHERE year = 1999 AND versus = "zimbabwe"
|
What was the score of the game on September 14, 2008?
|
CREATE TABLE table_name_88 (
result VARCHAR,
date VARCHAR
)
|
SELECT result FROM table_name_88 WHERE date = "september 14, 2008"
|
What is the imed/avicenna listed for a medical school offshore in saint kitts and nevis which was established before 2000 and will give you an MD?
|
CREATE TABLE table_63242 (
"Country/Territory" text,
"Established" real,
"Degree" text,
"Regional/Offshore" text,
"IMED/Avicenna Listed" text
)
|
SELECT "IMED/Avicenna Listed" FROM table_63242 WHERE "Regional/Offshore" = 'offshore' AND "Country/Territory" = 'saint kitts and nevis' AND "Degree" = 'md' AND "Established" < '2000'
|
What are the lowest lost has 111 as the goals against?
|
CREATE TABLE table_58693 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" text,
"Points 1" text
)
|
SELECT MIN("Lost") FROM table_58693 WHERE "Goals Against" = '111'
|
Show me the proportion on what are the names and number of hours spent training for each player who trains for less than 1500 hours?
|
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
)
|
SELECT pName, HS FROM Player WHERE HS < 1500
|
How many dorms are there?
|
CREATE TABLE dorm (
dormid number,
dorm_name text,
student_capacity number,
gender text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE has_amenity (
dormid number,
amenid number
)
CREATE TABLE dorm_amenity (
amenid number,
amenity_name text
)
CREATE TABLE lives_in (
stuid number,
dormid number,
room_number number
)
|
SELECT COUNT(*) FROM dorm
|
What kind of Social Sec Leeds has a Media Officer of jason james and a Treasurer of james davidson?
|
CREATE TABLE table_name_62 (
social_sec_leeds VARCHAR,
media_officer VARCHAR,
treasurer VARCHAR
)
|
SELECT social_sec_leeds FROM table_name_62 WHERE media_officer = "jason james" AND treasurer = "james davidson"
|
Which is the lowest round to have a pick of 12 and position of linebacker?
|
CREATE TABLE table_33995 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
|
SELECT MIN("Round") FROM table_33995 WHERE "Pick #" = '12' AND "Position" = 'linebacker'
|
What was the episode number for the episode viewed by 5.68 million viewers?
|
CREATE TABLE table_30166 (
"Series episode" real,
"Season episode" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (in million)" text
)
|
SELECT "Season episode" FROM table_30166 WHERE "U.S. viewers (in million)" = '5.68'
|
How many opponents were there at the game with 64,087 people in attendance?
|
CREATE TABLE table_11465521_2 (
opponent VARCHAR,
attendance VARCHAR
)
|
SELECT COUNT(opponent) FROM table_11465521_2 WHERE attendance = "64,087"
|
On what date of polling was the Polling Firm forum research with 7 green and less than 30 liberals?
|
CREATE TABLE table_name_2 (
date_of_polling VARCHAR,
liberal VARCHAR,
polling_firm VARCHAR,
green VARCHAR
)
|
SELECT date_of_polling FROM table_name_2 WHERE polling_firm = "forum research" AND green = 7 AND liberal < 30
|
When the percentage is 0.34900000000000003 with more than 13 solo blocks and less than 4713 total attempts, what is the greatest assists?
|
CREATE TABLE table_12687 (
"Season" text,
"GP/MP" text,
"Kills" real,
"K/Game" real,
"Errors" real,
"Total Attempts" real,
"Percentage" real,
"Assists" real,
"Service Aces" real,
"Digs" real,
"Solo Blocks" real,
"Block Assists" real,
"Total Blocks" real
)
|
SELECT MAX("Assists") FROM table_12687 WHERE "Percentage" < '0.34900000000000003' AND "Solo Blocks" > '13' AND "Total Attempts" < '4713'
|
Show the title and the lowest rating among all movies in a bar chart.
|
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
)
|
SELECT title, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY title
|
Nametheh school team for norman gonzales
|
CREATE TABLE table_1262 (
"Name" text,
"Position" text,
"Number" real,
"School/Club Team" text,
"Season" text,
"Acquisition via" text
)
|
SELECT "School/Club Team" FROM table_1262 WHERE "Name" = 'Norman Gonzales'
|
What opponent did they have a bye result against before week 14?
|
CREATE TABLE table_name_19 (
opponent VARCHAR,
result VARCHAR,
week VARCHAR
)
|
SELECT opponent FROM table_name_19 WHERE result = "bye" AND week < 14
|
what is the result when the competition is friendly on 8 october 2009?
|
CREATE TABLE table_53769 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
|
SELECT "Result" FROM table_53769 WHERE "Competition" = 'friendly' AND "Date" = '8 october 2009'
|
Who was the visitor on november 14 with leclaire recording the decision?
|
CREATE TABLE table_name_43 (
visitor VARCHAR,
decision VARCHAR,
date VARCHAR
)
|
SELECT visitor FROM table_name_43 WHERE decision = "leclaire" AND date = "november 14"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.