instruction
stringlengths 5
766
| input
stringlengths 38
5.51k
| response
stringlengths 4
3.91k
|
---|---|---|
Which Team Name has Poles of 0, and a Final Placing of 29th? | CREATE TABLE table_37155 (
"Season" real,
"Series" text,
"Team Name" text,
"Races" text,
"Wins" text,
"Poles" text,
"F/Laps" text,
"Podiums" text,
"Points" text,
"Final Placing" text
) | SELECT "Team Name" FROM table_37155 WHERE "Poles" = '0' AND "Final Placing" = '29th' |
What is the venue of North Melbourne? | CREATE TABLE table_57473 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_57473 WHERE "Home team" = 'north melbourne' |
What is the loan club with bbc sport as the start source and ended in 3 February? | CREATE TABLE table_name_41 (
loan_club VARCHAR,
start_source VARCHAR,
ended VARCHAR
) | SELECT loan_club FROM table_name_41 WHERE start_source = "bbc sport" AND ended = "3 february" |
How many times are listed for 31 May for the rider ranked 5? | CREATE TABLE table_25220821_4 (
mon_31_may VARCHAR,
rank VARCHAR
) | SELECT COUNT(mon_31_may) FROM table_25220821_4 WHERE rank = 5 |
Which Years in Orlando has a Position of center, and a School/Club Team of louisiana state? | CREATE TABLE table_name_41 (
years_in_orlando VARCHAR,
position VARCHAR,
school_club_team VARCHAR
) | SELECT years_in_orlando FROM table_name_41 WHERE position = "center" AND school_club_team = "louisiana state" |
what is the date of the last game on this chart ? | CREATE TABLE table_203_344 (
id number,
"#" number,
"date" text,
"opponent" text,
"score" text,
"win" text,
"loss" text,
"save" text,
"attendance" number,
"record" text,
"other info" text
) | SELECT "date" FROM table_203_344 ORDER BY id DESC LIMIT 1 |
Can you tell me the Venue that has the Position in 2005 of 8? | CREATE TABLE table_77063 (
"Team" text,
"Location" text,
"Venue" text,
"Capacity" real,
"Position in 2005" text
) | SELECT "Venue" FROM table_77063 WHERE "Position in 2005" = '8' |
How many degrees were conferred in 'San Jose State University' in 2000? | CREATE TABLE degrees (
Id VARCHAR
)
CREATE TABLE campuses (
Id VARCHAR
) | SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.Id = t2.campus WHERE t1.campus = "San Jose State University" AND t2.year = 2000 |
what was the date the last person on the list left office ? | CREATE TABLE table_204_668 (
id number,
"#" number,
"menteri besar" text,
"took office" text,
"left office" text,
"party" text
) | SELECT "left office" FROM table_204_668 ORDER BY id DESC LIMIT 1 |
Name the most population for seychelles and rank less than 13 | CREATE TABLE table_name_8 (
population INTEGER,
country_territory_entity VARCHAR,
rank VARCHAR
) | SELECT MAX(population) FROM table_name_8 WHERE country_territory_entity = "seychelles" AND rank < 13 |
What is the season year where the rank is 39? | CREATE TABLE table_15941 (
"Season" real,
"Timeslot ( ET )" text,
"Season premiere" text,
"Season finale" text,
"TV season" text,
"Rank" text,
"Viewers (millions)" text
) | SELECT "TV season" FROM table_15941 WHERE "Rank" = '39' |
how many winners are there ? | CREATE TABLE table_204_724 (
id number,
"outcome" text,
"no." number,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents in the final" text,
"score in the final" text
) | SELECT COUNT(*) FROM table_204_724 WHERE "outcome" = 'winner' |
What is the sum of the drawn values for teams with 2 losses? | CREATE TABLE table_name_45 (
drawn INTEGER,
lost VARCHAR
) | SELECT SUM(drawn) FROM table_name_45 WHERE lost = 2 |
What was Laurel's division record? | CREATE TABLE table_67113 (
"School" text,
"Team" text,
"Division Record" text,
"Overall Record" text,
"Season Outcome" text
) | SELECT "Division Record" FROM table_67113 WHERE "School" = 'laurel' |
What's the model of the processor with a 5.5 w TDP? | CREATE TABLE table_26580 (
"Processor" text,
"Brand name" text,
"Model (list)" text,
"Cores" real,
"L2 Cache" text,
"Socket" text,
"TDP" text
) | SELECT "Model (list)" FROM table_26580 WHERE "TDP" = '5.5 W' |
What is High Rebounds, when High Assists is 'Jason Kidd (13)'? | CREATE TABLE table_77159 (
"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_77159 WHERE "High assists" = 'jason kidd (13)' |
What place had 14:11.15 as the performance? | CREATE TABLE table_name_33 (
place VARCHAR,
performance VARCHAR
) | SELECT place FROM table_name_33 WHERE performance = "14:11.15" |
Name the republican steve sauerberg for august 12, 2008 | CREATE TABLE table_21037 (
"Poll Source" text,
"Dates administered" text,
"Democrat: Dick Durbin" text,
"Republican: Steve Sauerberg" text,
"Lead Margin" real
) | SELECT "Republican: Steve Sauerberg" FROM table_21037 WHERE "Dates administered" = 'August 12, 2008' |
what is 2005 when 2003 is A, 2007 is 2r and 2012 is 3r? | CREATE TABLE table_name_49 (
Id VARCHAR
) | SELECT 2005 FROM table_name_49 WHERE 2003 = "a" AND 2007 = "2r" AND 2012 = "3r" |
What was Anders Forsbrand's score when the TO par is +4? | CREATE TABLE table_79169 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Score" FROM table_79169 WHERE "To par" = '+4' AND "Player" = 'anders forsbrand' |
Which Game has a Score of 122 125? | CREATE TABLE table_name_74 (
game VARCHAR,
score VARCHAR
) | SELECT game FROM table_name_74 WHERE score = "122–125" |
Which Format has a Date of 14 october 2008, and a Label of eagle eye media? | CREATE TABLE table_60538 (
"Country" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue number(s)" text
) | SELECT "Format" FROM table_60538 WHERE "Date" = '14 october 2008' AND "Label" = 'eagle eye media' |
Justin Wilson has what has his best time? | CREATE TABLE table_name_99 (
best VARCHAR,
name VARCHAR
) | SELECT best FROM table_name_99 WHERE name = "justin wilson" |
Which team was the visitor on January 10? | CREATE TABLE table_77554 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | SELECT "Visitor" FROM table_77554 WHERE "Date" = 'january 10' |
What was the average attendance when marathon was the away team? | CREATE TABLE table_name_6 (
attendance INTEGER,
away VARCHAR
) | SELECT AVG(attendance) FROM table_name_6 WHERE away = "marathon" |
WHAT DATE HAD A GAME SMALLER THAN 58, AND FROM BOSTON? | CREATE TABLE table_51165 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Date" FROM table_51165 WHERE "Game" < '58' AND "Team" = 'boston' |
Which Name has a Number of electorates (2009) greater than 188,799? | CREATE TABLE table_14189 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
) | SELECT "Name" FROM table_14189 WHERE "Number of electorates (2009)" > '188,799' |
how many other episodes were written by john zinman other than reunion ? | CREATE TABLE table_203_306 (
id number,
"no." number,
"title" text,
"directed by" text,
"written by" text,
"original air date" text
) | SELECT COUNT("title") FROM table_203_306 WHERE "written by" = 'john zinman' AND "title" <> '"reunion"' |
Name the Opponent in the final on july 4, 2005? | CREATE TABLE table_61457 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Opponent in the final" FROM table_61457 WHERE "Date" = 'july 4, 2005' |
Which Score has a Place of t2? | CREATE TABLE table_name_95 (
score VARCHAR,
place VARCHAR
) | SELECT score FROM table_name_95 WHERE place = "t2" |
How many different circuits had Gary Gibson has the Lites 1 race two winning team? | CREATE TABLE table_26638600_3 (
lites_2_race_one_winning_team VARCHAR,
lites_1_race_two_winning_team VARCHAR
) | SELECT COUNT(lites_2_race_one_winning_team) FROM table_26638600_3 WHERE lites_1_race_two_winning_team = "Gary Gibson" |
What was the percentage in 2006 whose natives is Polish? | CREATE TABLE table_2328113_1 (
percentage__2006_ VARCHAR,
mother_tongue VARCHAR
) | SELECT percentage__2006_ FROM table_2328113_1 WHERE mother_tongue = "Polish" |
WHAT IS THE ABBR WITH VOTES OF 11.2% IN 2011? | CREATE TABLE table_49040 (
"Name (English)" text,
"Name (German)" text,
"Abbr." text,
"Ideology" text,
"Position" text,
"Votes (2011)" text,
"Seats in Hamburgische B\u00fcrgerschaft" real
) | SELECT "Abbr." FROM table_49040 WHERE "Votes (2011)" = '11.2%' |
What years did Troy Hudson play for the Jazz? | CREATE TABLE table_name_29 (
years_for_jazz VARCHAR,
player VARCHAR
) | SELECT years_for_jazz FROM table_name_29 WHERE player = "troy hudson" |
What is the home country of the player who placed t5 and had a score of 69-71=140? | CREATE TABLE table_name_23 (
country VARCHAR,
place VARCHAR,
score VARCHAR
) | SELECT country FROM table_name_23 WHERE place = "t5" AND score = 69 - 71 = 140 |
What is the least total number of medals when the bronze medals is 1, and Czech Republic (CZE) is the nation? | CREATE TABLE table_name_46 (
total INTEGER,
bronze VARCHAR,
nation VARCHAR
) | SELECT MIN(total) FROM table_name_46 WHERE bronze = 1 AND nation = "czech republic (cze)" |
Who has the high assists when April 26 is the date? | CREATE TABLE table_23285761_11 (
high_assists VARCHAR,
date VARCHAR
) | SELECT high_assists FROM table_23285761_11 WHERE date = "April 26" |
What was the score for the away team southport? | CREATE TABLE table_name_13 (
score VARCHAR,
away_team VARCHAR
) | SELECT score FROM table_name_13 WHERE away_team = "southport" |
How many millions of views in the country watched 'Line of Departure'? | CREATE TABLE table_16469 (
"No. in season" real,
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (million)" text
) | SELECT "U.S. viewers (million)" FROM table_16469 WHERE "Title" = 'Line of Departure' |
What is the time/s of team Triumph in those races in which Triumph ranked higher than 4? | CREATE TABLE table_31826 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) | SELECT "Time" FROM table_31826 WHERE "Team" = 'triumph' AND "Rank" < '4' |
which Surface has Opponents in the final of mark edmondson sherwood stewart, and a Tournament of dallas , u.s.? | CREATE TABLE table_61328 (
"Outcome" text,
"Date" real,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
) | SELECT "Surface" FROM table_61328 WHERE "Opponents in the final" = 'mark edmondson sherwood stewart' AND "Tournament" = 'dallas , u.s.' |
What was the genre of Queen (an artist from the United Kingdom)? | CREATE TABLE table_15675 (
"Artist" text,
"Country of origin" text,
"Period active" text,
"Release-year of first charted record" real,
"Genre" text,
"Claimed sales" text
) | SELECT "Genre" FROM table_15675 WHERE "Country of origin" = 'united kingdom' AND "Artist" = 'queen' |
What is the Memory for a Number 32 with a Clock of 2.26ghz? | CREATE TABLE table_name_68 (
memory VARCHAR,
clock VARCHAR,
number VARCHAR
) | SELECT memory FROM table_name_68 WHERE clock = "2.26ghz" AND number = 32 |
WHICH Outcome IS ON 18 july 1993? | CREATE TABLE table_36288 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Outcome" FROM table_36288 WHERE "Date" = '18 july 1993' |
What is the fewest number of points for clubs with less than 2 draws and more than 8 matches played? | CREATE TABLE table_name_38 (
points INTEGER,
drawn VARCHAR,
played VARCHAR
) | SELECT MIN(points) FROM table_name_38 WHERE drawn < 2 AND played > 8 |
What shows for Chen Yanqing (CHN) when Doha, Qatar is ? | CREATE TABLE table_65306 (
"World record" text,
"Snatch" text,
"Chen Yanqing ( CHN )" text,
"111kg" text,
"Doha , Qatar" text
) | SELECT "Chen Yanqing ( CHN )" FROM table_65306 WHERE "Doha , Qatar" = '—' |
What Week 4 has a Week 2 of samantha speer? | CREATE TABLE table_12982 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
) | SELECT "Week 4" FROM table_12982 WHERE "Week 2" = 'samantha speer' |
Who is the youngest male? | CREATE TABLE Person (
name VARCHAR,
gender VARCHAR,
age INTEGER
)
CREATE TABLE person (
name VARCHAR,
gender VARCHAR,
age INTEGER
) | SELECT name FROM Person WHERE gender = 'male' AND age = (SELECT MIN(age) FROM Person WHERE gender = 'male') |
What was the team score when Tim Duncan (12) got the high rebounds? | CREATE TABLE table_27715173_10 (
score VARCHAR,
high_rebounds VARCHAR
) | SELECT score FROM table_27715173_10 WHERE high_rebounds = "Tim Duncan (12)" |
What is the highest selection number for the saskatchewan roughriders team? | CREATE TABLE table_16400 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT MAX("Pick #") FROM table_16400 WHERE "CFL Team" = 'Saskatchewan Roughriders' |
On which date was the score 0 - 0? | CREATE TABLE table_75946 (
"Round" text,
"Date" text,
"Home team" text,
"Score" text,
"Away team" text
) | SELECT "Date" FROM table_75946 WHERE "Score" = '0 - 0' |
What is the number of years that Kim was nominated at the Sitges Film Festival? | CREATE TABLE table_name_78 (
year VARCHAR,
group VARCHAR
) | SELECT COUNT(year) FROM table_name_78 WHERE group = "sitges film festival" |
What was the date of the premiere that had a 20.9 rating? | CREATE TABLE table_name_38 (
premiere VARCHAR,
rating VARCHAR
) | SELECT premiere FROM table_name_38 WHERE rating = "20.9" |
How many themes are there where the order # is 9? | CREATE TABLE table_28505 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) | SELECT COUNT("Theme") FROM table_28505 WHERE "Order #" = '9' |
How many episodes had 11.47 million viewers? | CREATE TABLE table_27046 (
"Episode" real,
"First Air Date" text,
"Rating (18\u201349)" text,
"Share (18\u201349)" real,
"Viewers (millions)" text,
"Rank (timeslot)" text,
"Rank (night)" text
) | SELECT COUNT("Episode") FROM table_27046 WHERE "Viewers (millions)" = '11.47' |
What was the sum of the population in 2010 for the division of japeri with an area of 82.9 squared km? | CREATE TABLE table_name_16 (
population__2010_census_ INTEGER,
administrative_division VARCHAR,
area__km²_ VARCHAR
) | SELECT SUM(population__2010_census_) FROM table_name_16 WHERE administrative_division = "japeri" AND area__km²_ < 82.9 |
When 3t7461 is the production code who is the director? | CREATE TABLE table_22785 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. air date" text,
"Production code" text,
"U.S. viewers (million)" text
) | SELECT "Directed by" FROM table_22785 WHERE "Production code" = '3T7461' |
What is the frequency of the processor with an sSpec number of sl3bn(kc0)sl3e9(kc0)? | CREATE TABLE table_name_79 (
frequency VARCHAR,
sspec_number VARCHAR
) | SELECT frequency FROM table_name_79 WHERE sspec_number = "sl3bn(kc0)sl3e9(kc0)" |
Return the name and number of reservations made for each of the rooms. | CREATE TABLE Rooms (
roomName VARCHAR,
RoomId VARCHAR
)
CREATE TABLE Reservations (
Room VARCHAR
) | SELECT T2.roomName, COUNT(*), T1.Room FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room |
What is the average year with an average start smaller than 6.3 and fewer than 0 wins? | CREATE TABLE table_36915 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" real,
"Avg. Finish" real,
"Winnings" text,
"Position" text
) | SELECT AVG("Year") FROM table_36915 WHERE "Avg. Start" < '6.3' AND "Wins" < '0' |
what's the builder where withdrawn is 1954 1958 | CREATE TABLE table_344 (
"Number Range" text,
"Introduced" text,
"Builder" text,
"Engine" text,
"Weight (long tons)" text,
"Seats" text,
"Withdrawn" text,
"Notes" text
) | SELECT "Builder" FROM table_344 WHERE "Withdrawn" = '1954–1958' |
What is ASTC Member, when State is Arkansas, when AAM Member is No, and when AAM Accredited is Yes? | CREATE TABLE table_name_39 (
astc_member VARCHAR,
aam_accredited VARCHAR,
state VARCHAR,
aam_member VARCHAR
) | SELECT astc_member FROM table_name_39 WHERE state = "arkansas" AND aam_member = "no" AND aam_accredited = "yes" |
Who is 1.92 m tall and a current club member of Montepaschi Siena | CREATE TABLE table_name_43 (
player VARCHAR,
height VARCHAR,
current_club VARCHAR
) | SELECT player FROM table_name_43 WHERE height = 1.92 AND current_club = "montepaschi siena" |
What is Date, when Label is Jugoton? | CREATE TABLE table_47955 (
"Date" text,
"Region" text,
"Label" text,
"Catalogue" text,
"Format" text
) | SELECT "Date" FROM table_47955 WHERE "Label" = 'jugoton' |
List the name for storms and the number of affected regions for each storm, order bars from high to low order. | CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Number_Deaths int
)
CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_city_affected real
)
CREATE TABLE region (
Region_id int,
Region_code text,
Region_name text
) | SELECT Name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.Storm_ID = T2.Storm_ID GROUP BY T1.Storm_ID ORDER BY Name DESC |
What is the greatest rank for Fifth third center? | CREATE TABLE table_name_27 (
rank INTEGER,
name VARCHAR
) | SELECT MAX(rank) FROM table_name_27 WHERE name = "fifth third center" |
How many events did nigel mansell drive the fastest and a mclaren - honda win? | CREATE TABLE table_1139087_2 (
grand_prix VARCHAR,
constructor VARCHAR,
fastest_lap VARCHAR
) | SELECT COUNT(grand_prix) FROM table_1139087_2 WHERE constructor = "McLaren - Honda" AND fastest_lap = "Nigel Mansell" |
In which county is the swann covered bridge located? | CREATE TABLE table_name_4 (
county VARCHAR,
name VARCHAR
) | SELECT county FROM table_name_4 WHERE name = "swann covered bridge" |
which team came in after the titans in the miway t20 challenge ? | CREATE TABLE table_204_642 (
id number,
"team" text,
"domestic tournament" text,
"position" text,
"appearance" text,
"qualified" text
) | SELECT "team" FROM table_204_642 WHERE "appearance" > (SELECT "appearance" FROM table_204_642 WHERE "team" = 'titans' AND "domestic tournament" = '2011-12 miway t20 challenge') AND "domestic tournament" = '2011-12 miway t20 challenge' ORDER BY "appearance" LIMIT 1 |
Which date was the show aired on the RTL Televizija network? | CREATE TABLE table_name_90 (
date_aired VARCHAR,
network VARCHAR
) | SELECT date_aired FROM table_name_90 WHERE network = "rtl televizija" |
what was the last single kitty wells released ? | CREATE TABLE table_204_500 (
id number,
"year" number,
"title" text,
"peak chart positions\nus country" number,
"peak chart positions\nus" number,
"album" text
) | SELECT "title" FROM table_204_500 ORDER BY id DESC LIMIT 1 |
how many dioceses were established before 1978 ? | CREATE TABLE table_204_10 (
id number,
"ecclesiastical jurisdictions" text,
"latin name" text,
"type" text,
"rite" text,
"ecclesiastical province" text,
"established" text,
"area (km2)" number
) | SELECT COUNT("ecclesiastical jurisdictions") FROM table_204_10 WHERE "established" < 1978 |
How many speak german? | CREATE TABLE table_name_50 (
number VARCHAR,
language VARCHAR
) | SELECT number FROM table_name_50 WHERE language = "german" |
What is the result week 1? | CREATE TABLE table_12454 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
) | SELECT "Result" FROM table_12454 WHERE "Week" = '1' |
Which brigade has a population of 190? | CREATE TABLE table_8268 (
"Name" text,
"Date" text,
"Defending forces" text,
"Brigade" text,
"Population" text
) | SELECT "Brigade" FROM table_8268 WHERE "Population" = '190' |
What is the home team where the San Jose state is the visiting team? | CREATE TABLE table_29067 (
"Date" text,
"Time" text,
"Visiting team" text,
"Home team" text,
"Site" text,
"Broadcast" text,
"Result" text,
"Attendance" real
) | SELECT "Home team" FROM table_29067 WHERE "Visiting team" = 'San Jose State' |
In the system where Sunday is ny yitru kizhamai, what is Saturday? | CREATE TABLE table_1277350_3 (
saturday_shani__saturn_ VARCHAR,
sunday_surya__the_sun_ VARCHAR
) | SELECT saturday_shani__saturn_ FROM table_1277350_3 WHERE sunday_surya__the_sun_ = "ஞாயிற்று கிழமை Nyāyitru kizhamai" |
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 "Country" FROM table_48770 WHERE "Place" = 't4' AND "Player" = 'scott simpson' |
Which driver has the highest point total after winning $133,386? | CREATE TABLE table_name_28 (
points INTEGER,
winnings VARCHAR
) | SELECT MAX(points) FROM table_name_28 WHERE winnings = "$133,386" |
Which Goal Difference has 28 Points, and a Club of cd cartagena, more than 15 losses? | CREATE TABLE table_name_77 (
goal_difference INTEGER,
losses VARCHAR,
points VARCHAR,
club VARCHAR
) | SELECT MAX(goal_difference) FROM table_name_77 WHERE points = 28 AND club = "cd cartagena" AND losses > 15 |
What was the result of the game that had 56,500 in attendance? | CREATE TABLE table_59320 (
"Date" text,
"Time" text,
"Opponent#" text,
"Rank #" text,
"Result" text,
"Attendance" text
) | SELECT "Result" FROM table_59320 WHERE "Attendance" = '56,500' |
Return a bar chart on what are the different ship flags, and how many ships have each?, order in asc by the bar. | 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 Flag, COUNT(*) FROM Ship GROUP BY Flag ORDER BY Flag |
What campuses are located in Chico? | CREATE TABLE csu_fees (
campus number,
year number,
campusfee number
)
CREATE TABLE degrees (
year number,
campus number,
degrees number
)
CREATE TABLE discipline_enrollments (
campus number,
discipline number,
year number,
undergraduate number,
graduate number
)
CREATE TABLE campuses (
id number,
campus text,
location text,
county text,
year number
)
CREATE TABLE faculty (
campus number,
year number,
faculty number
)
CREATE TABLE enrollments (
campus number,
year number,
totalenrollment_ay number,
fte_ay number
) | SELECT campus FROM campuses WHERE location = "Chico" |
What is the RTM build of the Windows Home Server 2011? | CREATE TABLE table_32473 (
"Name" text,
"Release date" text,
"RTM build" text,
"Current version" text,
"Status support" text,
"License" text,
"Based on (kernel)" text,
"Supported architectures" text,
"OS type" text
) | SELECT "RTM build" FROM table_32473 WHERE "Name" = 'windows home server 2011' |
Who were the semi finalists when the runner-up was Alexandra Fusai Wiltrud Probst? | CREATE TABLE table_43263 (
"Week of" text,
"Tier" text,
"Winner" text,
"Runner-up" text,
"Semi finalists" text
) | SELECT "Semi finalists" FROM table_43263 WHERE "Runner-up" = 'alexandra fusai wiltrud probst' |
Who was the opponent at the game attended by 62,657? | CREATE TABLE table_name_34 (
opponent VARCHAR,
attendance VARCHAR
) | SELECT opponent FROM table_name_34 WHERE attendance = "62,657" |
How many poles were there in 1996? | CREATE TABLE table_2508 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
) | SELECT MIN("Poles") FROM table_2508 WHERE "Year" = '1996' |
September 23, 1973 landed on which week of the season? | CREATE TABLE table_70568 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT "Week" FROM table_70568 WHERE "Date" = 'september 23, 1973' |
What was the away team's score against Hawthorn? | CREATE TABLE table_33284 (
"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_33284 WHERE "Away team" = 'hawthorn' |
Which engine has more than 1 point after 1981? | CREATE TABLE table_name_71 (
engine VARCHAR,
points VARCHAR,
year VARCHAR
) | SELECT engine FROM table_name_71 WHERE points > 1 AND year > 1981 |
is a 2 credit full house the same as a 5 credit three of a kind ? | 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 (SELECT "2 credits" FROM table_203_564 WHERE "hand" = 'full house') = (SELECT "5 credits" FROM table_203_564 WHERE "hand" = 'three of a kind') |
What was the province if the electorate was Collingwood? | CREATE TABLE table_29647 (
"Member" text,
"Electorate" text,
"Province" text,
"MPs term" text,
"Election date" text
) | SELECT "Province" FROM table_29647 WHERE "Electorate" = 'Collingwood' |
What is the score on september 20? | CREATE TABLE table_name_6 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_6 WHERE date = "september 20" |
What is the rank of Manuel Cortina Mart nez? | CREATE TABLE table_name_46 (
rank VARCHAR,
athletes VARCHAR
) | SELECT rank FROM table_name_46 WHERE athletes = "manuel cortina martínez" |
Can you tell me the highest Gold that has the Bronze larger than 3, and the Total smaller than 24? | CREATE TABLE table_47068 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Gold") FROM table_47068 WHERE "Bronze" > '3' AND "Total" < '24' |
Name the most 3 credits | CREATE TABLE table_148535_2 (
Id VARCHAR
) | SELECT MIN(3 AS _credits) FROM table_148535_2 |
Which Segment C has a Segment B of fish food? | CREATE TABLE table_name_54 (
segment_c VARCHAR,
segment_b VARCHAR
) | SELECT segment_c FROM table_name_54 WHERE segment_b = "fish food" |
Show all book categories and the number of books in each category with a bar chart. | CREATE TABLE book_club (
book_club_id int,
Year int,
Author_or_Editor text,
Book_Title text,
Publisher text,
Category text,
Result text
)
CREATE TABLE culture_company (
Company_name text,
Type text,
Incorporated_in text,
Group_Equity_Shareholding real,
book_club_id text,
movie_id text
)
CREATE TABLE movie (
movie_id int,
Title text,
Year int,
Director text,
Budget_million real,
Gross_worldwide int
) | SELECT Category, COUNT(*) FROM book_club GROUP BY Category |
Tell me the 3rd component for bp azeo of 62.1 | CREATE TABLE table_32096 (
"2nd component" text,
"b.p. 2nd comp. (\u02daC)" real,
"3rd component" text,
"b.p. 3rd comp. (\u02daC)" text,
"b.p. azeo. (\u02daC)" text,
"% wt 1st" text,
"% wt 2nd" text,
"% wt 3rd" text
) | SELECT "3rd component" FROM table_32096 WHERE "b.p. azeo. (\u02daC)" = '62.1' |
Name the most withdrawn for 37 lstr no. | CREATE TABLE table_20391799_1 (
withdrawn INTEGER,
ltsr_no VARCHAR
) | SELECT MAX(withdrawn) FROM table_20391799_1 WHERE ltsr_no = 37 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.