instruction
stringlengths
12
317
input
stringlengths
38
973
response
stringlengths
25
526
Name the operator with berths more than 1 and depth of 12.5-15.5
CREATE TABLE table_name_81 ( operator VARCHAR, berths VARCHAR, depth__m_ VARCHAR )
SELECT operator FROM table_name_81 WHERE berths > 1 AND depth__m_ = "12.5-15.5"
What Home team had an Attendance of 2,776?
CREATE TABLE table_name_12 ( home_team VARCHAR, attendance VARCHAR )
SELECT home_team FROM table_name_12 WHERE attendance = "2,776"
Name the lead with left bloc of 8.4%
CREATE TABLE table_name_25 ( lead VARCHAR, left_bloc VARCHAR )
SELECT lead FROM table_name_25 WHERE left_bloc = "8.4%"
which building is the oldest on the bw campus .
CREATE TABLE table_204_240 ( id number, "name" text, "current use" text, "completed" text, "namesake" text, "info" text )
SELECT "name" FROM table_204_240 ORDER BY "completed" LIMIT 1
What are the ids and names of the architects who built at least 3 bridges ?
CREATE TABLE architect ( id VARCHAR, name VARCHAR ) CREATE TABLE bridge ( architect_id VARCHAR )
SELECT T1.id, T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING COUNT(*) >= 3
What are the title that have 19.48 million u.s. viewers?
CREATE TABLE table_1130632_1 ( title VARCHAR, us_viewers__million_ VARCHAR )
SELECT title FROM table_1130632_1 WHERE us_viewers__million_ = "19.48"
What is the type of Kuang-Hsing?
CREATE TABLE table_name_71 ( type VARCHAR, name__wade_giles_ VARCHAR )
SELECT type FROM table_name_71 WHERE name__wade_giles_ = "kuang-hsing"
On what grounds did the away team of the Toronto Rebels play?
CREATE TABLE table_name_5 ( ground VARCHAR, away VARCHAR )
SELECT ground FROM table_name_5 WHERE away = "toronto rebels"
Which member has Cook as the electorate?
CREATE TABLE table_name_16 ( member VARCHAR, electorate VARCHAR )
SELECT member FROM table_name_16 WHERE electorate = "cook"
how many tracks are listed in this table ?
CREATE TABLE table_204_184 ( id number, "#" number, "title" text, "producer(s)" text, "featured guest(s)" text, "length" text )
SELECT COUNT("title") FROM table_204_184
How many places have an Artist of august , and a Draw smaller than 6?
CREATE TABLE table_64729 ( "Draw" real, "Artist" text, "Song" text, "Points" real, "Place" real )
SELECT COUNT("Place") FROM table_64729 WHERE "Artist" = 'augustė' AND "Draw" < '6'
Which television service has italian for its language?
CREATE TABLE table_name_46 ( television_service VARCHAR, language VARCHAR )
SELECT television_service FROM table_name_46 WHERE language = "italian"
How many people were in the crowd when North Melbourne was the home team?
CREATE TABLE table_name_3 ( crowd VARCHAR, home_team VARCHAR )
SELECT crowd FROM table_name_3 WHERE home_team = "north melbourne"
what is the date for the first game played in the meadowlands ?
CREATE TABLE table_204_443 ( id number, "week" number, "date" text, "opponent" text, "result" text, "game site" text, "attendance" number, "bye" text )
SELECT "date" FROM table_204_443 WHERE "game site" = 'the meadowlands' ORDER BY "date" LIMIT 1
what is the round when the pick # is less than 236 and the position is offensive guard?
CREATE TABLE table_name_64 ( round INTEGER, pick__number VARCHAR, position VARCHAR )
SELECT AVG(round) FROM table_name_64 WHERE pick__number < 236 AND position = "offensive guard"
What Chassis has g Tyres before 1987?
CREATE TABLE table_71124 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Tyres" text, "Points" real )
SELECT "Chassis" FROM table_71124 WHERE "Tyres" = 'g' AND "Year" < '1987'
How many runs were ranked 4?
CREATE TABLE table_7696 ( "Rank" text, "Runs" text, "Player" text, "Average" text, "Season" text )
SELECT "Runs" FROM table_7696 WHERE "Rank" = '4'
In what Round was Pick 138?
CREATE TABLE table_39413 ( "Round" real, "Pick" real, "Player" text, "Nationality" text, "College" text )
SELECT SUM("Round") FROM table_39413 WHERE "Pick" = '138'
In what season was the final placing NC and the team SL Formula Racing?
CREATE TABLE table_25421463_1 ( season VARCHAR, final_placing VARCHAR, team_name VARCHAR )
SELECT season FROM table_25421463_1 WHERE final_placing = "NC†" AND team_name = "SL Formula Racing"
What competition has 17-1 as the result?
CREATE TABLE table_40974 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
SELECT "Competition" FROM table_40974 WHERE "Result" = '17-1'
what is the report where the location is kyalami?
CREATE TABLE table_16748 ( "Rnd" real, "Race" text, "Date" text, "Location" text, "Pole Position" text, "Fastest Lap" text, "Race Winner" text, "Constructor" text, "Report" text )
SELECT "Report" FROM table_16748 WHERE "Location" = 'Kyalami'
Which Team has a Qualification of entry to the 2004 chinese super league, and a 2002 Position smaller than 6, and a 2003 Position smaller than 9, and a Total Position larger than 3.5?
CREATE TABLE table_65384 ( "Team" text, "2002 Position" real, "2003 Position" real, "Total Position" real, "Qualification" text )
SELECT "Team" FROM table_65384 WHERE "Qualification" = 'entry to the 2004 chinese super league' AND "2002 Position" < '6' AND "2003 Position" < '9' AND "Total Position" > '3.5'
How many Wins have a Top-10 smaller than 6, and Cuts made larger than 7, and a Top-5 of 0?
CREATE TABLE table_name_57 ( wins VARCHAR, top_5 VARCHAR, top_10 VARCHAR, cuts_made VARCHAR )
SELECT COUNT(wins) FROM table_name_57 WHERE top_10 < 6 AND cuts_made > 7 AND top_5 = 0
Which tournament has a Runner(s)-up of Gary McCord?
CREATE TABLE table_name_47 ( tournament VARCHAR, runner_s__up VARCHAR )
SELECT tournament FROM table_name_47 WHERE runner_s__up = "gary mccord"
What was the title when there were 14.39 million viewers?
CREATE TABLE table_15717093_1 ( title VARCHAR, us_viewers__millions_ VARCHAR )
SELECT title FROM table_15717093_1 WHERE us_viewers__millions_ = "14.39"
What is the team whose driver Jeff Simmons?
CREATE TABLE table_17319931_1 ( team VARCHAR, driver VARCHAR )
SELECT team FROM table_17319931_1 WHERE driver = "Jeff Simmons"
How many laps did the grid 1 engine have?
CREATE TABLE table_name_96 ( laps INTEGER, time_retired VARCHAR, grid VARCHAR )
SELECT SUM(laps) FROM table_name_96 WHERE time_retired = "engine" AND grid = 1
What language does Raj Kamal speak?
CREATE TABLE table_name_62 ( language VARCHAR, music_director VARCHAR )
SELECT language FROM table_name_62 WHERE music_director = "raj kamal"
What country is Tiger Woods from?
CREATE TABLE table_name_22 ( country VARCHAR, player VARCHAR )
SELECT country FROM table_name_22 WHERE player = "tiger woods"
What rounds did Gordini participate in?
CREATE TABLE table_name_74 ( rounds VARCHAR, constructor VARCHAR )
SELECT rounds FROM table_name_74 WHERE constructor = "gordini"
What is the Date with a Result of 8 2, and a Score with 6 2?
CREATE TABLE table_11174 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
SELECT "Date" FROM table_11174 WHERE "Result" = '8–2' AND "Score" = '6–2'
Which Number has a Home Club of broomstones, and a Year End smaller than 1999?
CREATE TABLE table_name_79 ( number INTEGER, home_club VARCHAR, year_end VARCHAR )
SELECT MIN(number) FROM table_name_79 WHERE home_club = "broomstones" AND year_end < 1999
How many viewers tuned in for season 2?
CREATE TABLE table_22347090_4 ( us_viewers__million_ VARCHAR, no_in_season VARCHAR )
SELECT us_viewers__million_ FROM table_22347090_4 WHERE no_in_season = 2
What is the place of player john cook?
CREATE TABLE table_name_73 ( place VARCHAR, player VARCHAR )
SELECT place FROM table_name_73 WHERE player = "john cook"
What is the average top-25 value for majors that have more than 0 wins?
CREATE TABLE table_51787 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real )
SELECT AVG("Top-25") FROM table_51787 WHERE "Wins" > '0'
Name the flagship station for cedric maxwell and year of 1995-96
CREATE TABLE table_36446 ( "Year" text, "Flagship Station" text, "Play-by-play" text, "Color commentator(s)" text, "Studio host" text )
SELECT "Flagship Station" FROM table_36446 WHERE "Color commentator(s)" = 'cedric maxwell' AND "Year" = '1995-96'
What is the qualifying end date when the qualifying start date is qualifying start date?
CREATE TABLE table_26464 ( "Confederation" text, "Teams started" text, "Teams that have secured qualification" text, "Teams that can still qualify" text, "Teams that have been eliminated" text, "Remaining places in finals" text, "Total places in finals" text, "Qualifying start date" text, "Qualifying end date" text )
SELECT "Qualifying end date" FROM table_26464 WHERE "Qualifying start date" = 'Qualifying start date'
what is the top ranked location ?
CREATE TABLE table_204_562 ( id number, "no." number, "date" text, "location" text, "surface" text, "opponent in final" text, "score" text )
SELECT "location" FROM table_204_562 WHERE "no." = 1
WHAT SCHOOL DOES HA'SEAN CLINTON-DIX BELONG TO?
CREATE TABLE table_11677691_2 ( school VARCHAR, player VARCHAR )
SELECT school FROM table_11677691_2 WHERE player = "Ha'Sean Clinton-Dix"
Which Wins have a Goal Difference larger than 0, and Goals against larger than 40, and a Position smaller than 6, and a Club of sd indauchu?
CREATE TABLE table_78557 ( "Position" real, "Club" text, "Played" real, "Points" real, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real )
SELECT MIN("Wins") FROM table_78557 WHERE "Goal Difference" > '0' AND "Goals against" > '40' AND "Position" < '6' AND "Club" = 'sd indauchu'
Who had the fastest lap when the winning driver was kristian ghedina?
CREATE TABLE table_26920192_5 ( fastest_lap VARCHAR, winning_driver VARCHAR )
SELECT fastest_lap FROM table_26920192_5 WHERE winning_driver = "Kristian Ghedina"
What kind of Week 4 has a Week 9 of all housemates?
CREATE TABLE table_59962 ( "Week 1" text, "Week 2" text, "Week 3" text, "Week 4" text, "Week 5" text, "Week 6" text, "Week 7" text, "Week 8" text, "Week 9" text, "Week 10 FINAL" text )
SELECT "Week 4" FROM table_59962 WHERE "Week 9" = 'all housemates'
Return a histogram on how many entrepreneurs correspond to each investor?, sort by the X in ascending.
CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, Date_of_Birth text ) CREATE TABLE entrepreneur ( Entrepreneur_ID int, People_ID int, Company text, Money_Requested real, Investor text )
SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor ORDER BY Investor
On what date does Essendon play as the away team?
CREATE TABLE table_74677 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Date" FROM table_74677 WHERE "Away team" = 'essendon'
What kind of Sanskrit has a Kannada of uttara ?
CREATE TABLE table_35105 ( "Sanskrit \u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d" text, "Tamil \u0ba4\u0bae\u0bbf\u0bb4\u0bcd" text, "Telugu \u0c24\u0c46\u0c32\u0c41\u0c17\u0c41" text, "Kannada \u0c95\u0ca8\u0ccd\u0ca8\u0ca1" text, "Malayalam \u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02" text, "Mongolian" text )
SELECT "Sanskrit \u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d" FROM table_35105 WHERE "Kannada \u0c95\u0ca8\u0ccd\u0ca8\u0ca1" = 'uttara ಉತ್ತರಾ'
between car plates of 80-84 what is the population in 1000 in year 1931?
CREATE TABLE table_57094 ( "car plates (since 1937)" text, "Voivodeship Separate city" text, "Capital" text, "Area in 1000km\u00b2 (1930)" text, "Population in 1000 (1931)" text )
SELECT "Population in 1000 (1931)" FROM table_57094 WHERE "car plates (since 1937)" = '80-84'
What was the result of the game in Stuttgart, West Germany and a goal number of less than 9?
CREATE TABLE table_name_12 ( result VARCHAR, venue VARCHAR, goal VARCHAR )
SELECT result FROM table_name_12 WHERE venue = "stuttgart, west germany" AND goal < 9
What year was the result did not qualify?
CREATE TABLE table_59413 ( "Year" text, "Result" text, "Matches" text, "Wins" text, "Draws" text, "Losses" text )
SELECT "Year" FROM table_59413 WHERE "Result" = 'did not qualify'
Which codes have subdivision names (BE) (BGN) of Homyel'skaya Voblasts'?
CREATE TABLE table_30888 ( "Code" text, "Subdivision name ( be ) (BGN/PCGN)" text, "Subdivision name ( be ) (GOST)" text, "Subdivision name ( ru ) (BGN/PCGN)" text, "Subdivision name ( ru ) (GOST)" text, "Subdivision category" text )
SELECT "Code" FROM table_30888 WHERE "Subdivision name ( be ) (BGN/PCGN)" = 'Homyel''skaya voblasts'
When did the season start that ended with the top record of Lindenwood (20 0 0)?
CREATE TABLE table_22383603_1 ( start__reg_season_ VARCHAR, top_record VARCHAR )
SELECT start__reg_season_ FROM table_22383603_1 WHERE top_record = "Lindenwood (20–0–0)"
What field did the Home Team score 5.10 (40)?
CREATE TABLE table_11268 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Date" text )
SELECT "Venue" FROM table_11268 WHERE "Home team score" = '5.10 (40)'
When did Geelong play as the home team?
CREATE TABLE table_name_89 ( date VARCHAR, home_team VARCHAR )
SELECT date FROM table_name_89 WHERE home_team = "geelong"
If the NFL team is the Minnesota Vikings, what is the position?
CREATE TABLE table_2508633_8 ( position VARCHAR, nfl_team VARCHAR )
SELECT position FROM table_2508633_8 WHERE nfl_team = "Minnesota Vikings"
Which tournament in 2013 had a 2010 finish of 1R?
CREATE TABLE table_54887 ( "Tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text )
SELECT "2013" FROM table_54887 WHERE "2006" = 'a' AND "2010" = '1r'
What is the Theme of Christie Paquet after 2004 with an Issue Price of $34.95?
CREATE TABLE table_name_54 ( theme VARCHAR, year VARCHAR, artist VARCHAR, issue_price VARCHAR )
SELECT theme FROM table_name_54 WHERE artist = "christie paquet" AND issue_price = "$34.95" AND year > 2004
What is Headquarter, when Newspaper/Magazine is Al-Ayyam?
CREATE TABLE table_76719 ( "Newspaper/Magazine" text, "Type" text, "Language" text, "Headquarter" text, "Status" text )
SELECT "Headquarter" FROM table_76719 WHERE "Newspaper/Magazine" = 'al-ayyam'
What is the score of the match on November 15, 2011?
CREATE TABLE table_name_44 ( score VARCHAR, date VARCHAR )
SELECT score FROM table_name_44 WHERE date = "november 15, 2011"
What is the average attendance for matches where the home team was vida?
CREATE TABLE table_name_2 ( attendance INTEGER, home VARCHAR )
SELECT AVG(attendance) FROM table_name_2 WHERE home = "vida"
What was the lowest attendance at a week 15 game?
CREATE TABLE table_41737 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real )
SELECT MIN("Attendance") FROM table_41737 WHERE "Week" = '15'
Find the first names of professors who are not playing Canoeing or Kayaking.
CREATE TABLE faculty ( lname VARCHAR, rank VARCHAR ) CREATE TABLE Faculty ( lname VARCHAR, facID VARCHAR ) CREATE TABLE activity ( activity_name VARCHAR ) CREATE TABLE Faculty_participates_in ( facID VARCHAR, actid VARCHAR )
SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'
Can you tell me the highest Points that has the Played smaller than 30?
CREATE TABLE table_name_67 ( points INTEGER, played INTEGER )
SELECT MAX(points) FROM table_name_67 WHERE played < 30
What is the population of the parish that has an area of 304.06?
CREATE TABLE table_61535 ( "Official Name" text, "Status" text, "Area km 2" real, "Population" real, "Census Ranking" text )
SELECT SUM("Population") FROM table_61535 WHERE "Area km 2" = '304.06'
What is the average Pick for the Pasco, Wa school?
CREATE TABLE table_37583 ( "Pick" real, "Player" text, "Team" text, "Position" text, "School" text )
SELECT AVG("Pick") FROM table_37583 WHERE "School" = 'pasco, wa'
Which Champion has a Coeff of 1.000?
CREATE TABLE table_52977 ( "Season" text, "UEFA Season" text, "Coeff" text, "Ranking" real, "Champions" text, "Runner-up" text, "3rd place" text, "Cup winner" text, "Cup runner-up" text )
SELECT "Champions" FROM table_52977 WHERE "Coeff" = '1.000'
Who won Women's doubles when Zen Yaqiong won Women's singles?
CREATE TABLE table_71772 ( "Year" real, "Men's singles" text, "Women's singles" text, "Men's doubles" text, "Women's doubles" text, "Mixed doubles" text )
SELECT "Women's doubles" FROM table_71772 WHERE "Women's singles" = 'zen yaqiong'
For all storms with at least 1 death, show me the name and the total number of deaths with a bar chart, order by the bar in descending.
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, Number_Deaths FROM storm WHERE Number_Deaths >= 1 ORDER BY Name DESC
Which team plays at Lake Oval?
CREATE TABLE table_55949 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Home team" FROM table_55949 WHERE "Venue" = 'lake oval'
What is the to par for the score 72-69-68=209?
CREATE TABLE table_name_11 ( to_par VARCHAR, score VARCHAR )
SELECT to_par FROM table_name_11 WHERE score = 72 - 69 - 68 = 209
What was the season record when the location attendance was Air Canada Centre 19,800?
CREATE TABLE table_name_26 ( record VARCHAR, location_attendance VARCHAR )
SELECT record FROM table_name_26 WHERE location_attendance = "air canada centre 19,800"
What was the airport with primary carrier of US Airways with a 2 ranking and more than 51,000 passengers?
CREATE TABLE table_40492 ( "Rank" real, "City" text, "Airport" text, "Passengers" real, "Carriers" text )
SELECT "Airport" FROM table_40492 WHERE "Passengers" > '51,000' AND "Carriers" = 'us airways' AND "Rank" = '2'
screening egfr < 60 ml / min / 1.73 m2
CREATE TABLE table_train_169 ( "id" int, "leukocytes" int, "hemoglobin_a1c_hba1c" float, "urine_albumin_excretion" int, "estimated_glomerular_filtration_rate_egfr" int, "glucola_beverage_gct" int, "age" float, "NOUSE" float )
SELECT * FROM table_train_169 WHERE estimated_glomerular_filtration_rate_egfr < 60
what is the earliest date for the album that had a catalog number of 3645, was formatted as a cd and was under the luaka bop label?
CREATE TABLE table_name_2 ( date INTEGER, label VARCHAR, catalog VARCHAR, format VARCHAR )
SELECT MIN(date) FROM table_name_2 WHERE catalog = "3645" AND format = "cd" AND label = "luaka bop"
Which classrooms are used by grade 4?
CREATE TABLE list ( classroom VARCHAR, grade VARCHAR )
SELECT DISTINCT classroom FROM list WHERE grade = 4
Which club plays soccer in the nwsl?
CREATE TABLE table_name_61 ( club VARCHAR, sport VARCHAR, league VARCHAR )
SELECT club FROM table_name_61 WHERE sport = "soccer" AND league = "nwsl"
What is the 2nd round with a score of 3 - 3, and a team 1 fc gueugnon (d2)?
CREATE TABLE table_name_86 ( score VARCHAR, team_1 VARCHAR )
SELECT 2 AS nd_round FROM table_name_86 WHERE score = "3 - 3" AND team_1 = "fc gueugnon (d2)"
What is the highest number of severe tropical cyclones when there are 10 tropical cyclones and 14 tropical lows?
CREATE TABLE table_name_78 ( Severe INTEGER, tropical_cyclones VARCHAR, tropical_lows VARCHAR )
SELECT MAX(Severe) AS tropical_cyclones FROM table_name_78 WHERE tropical_cyclones = 10 AND tropical_lows = 14
Who was the host of the premiere on November 10, 2007?
CREATE TABLE table_7052 ( "Country" text, "Host" text, "Channel" text, "Premiere" text, "Jackpot" text )
SELECT "Host" FROM table_7052 WHERE "Premiere" = 'november 10, 2007'
Find those years for all exhibitions with ticket prices lower than 15, group by year, and count year.
CREATE TABLE exhibition_record ( Exhibition_ID int, Date text, Attendance int ) CREATE TABLE artist ( Artist_ID int, Name text, Country text, Year_Join int, Age int ) CREATE TABLE exhibition ( Exhibition_ID int, Year int, Theme text, Artist_ID int, Ticket_Price real )
SELECT Year, COUNT(Year) FROM exhibition WHERE Ticket_Price < 15 GROUP BY Year
Tell me the class with rank of 89th
CREATE TABLE table_name_12 ( class VARCHAR, rank VARCHAR )
SELECT class FROM table_name_12 WHERE rank = "89th"
how many games were played in september 1978 ?
CREATE TABLE table_204_565 ( id number, "game" number, "date" text, "opponent" text, "venue" text, "result" text, "attendance" number, "goalscorers" text )
SELECT COUNT(*) FROM table_204_565 WHERE "date" = 9 AND "date" = 1978
what is the name when the constituency number is 150?
CREATE TABLE table_63371 ( "Constituency number" text, "Name" text, "Reserved for ( SC / ST /None)" text, "District" text, "Number of electorates (2009)" real )
SELECT "Name" FROM table_63371 WHERE "Constituency number" = '150'
Which teachers teach in classroom 110? Give me their first names.
CREATE TABLE list ( lastname text, firstname text, grade number, classroom number ) CREATE TABLE teachers ( lastname text, firstname text, classroom number )
SELECT firstname FROM teachers WHERE classroom = 110
What is the total number of enrollment of schools that do not have any goalie player?
CREATE TABLE tryout ( enr INTEGER, cName VARCHAR, pPos VARCHAR ) CREATE TABLE college ( enr INTEGER, cName VARCHAR, pPos VARCHAR )
SELECT SUM(enr) FROM college WHERE NOT cName IN (SELECT cName FROM tryout WHERE pPos = "goalie")
Where was the game held when the away team scored 10.12 (72)?
CREATE TABLE table_33148 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Venue" FROM table_33148 WHERE "Away team score" = '10.12 (72)'
Group by the local authorities and count the number of local authorities, and then group by services, could you rank by the Y in desc?
CREATE TABLE train ( id int, train_number int, name text, origin text, destination text, time text, interval text ) CREATE TABLE weekly_weather ( station_id int, day_of_week text, high_temperature int, low_temperature int, precipitation real, wind_speed_mph int ) CREATE TABLE route ( train_id int, station_id int ) CREATE TABLE station ( id int, network_name text, services text, local_authority text )
SELECT services, COUNT(services) FROM station GROUP BY local_authority, services ORDER BY COUNT(services) DESC
Who is the club that has 30 points?
CREATE TABLE table_808 ( "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 "Club" FROM table_808 WHERE "Points" = '30'
What is the country of Craig Stadler?
CREATE TABLE table_name_65 ( country VARCHAR, player VARCHAR )
SELECT country FROM table_name_65 WHERE player = "craig stadler"
What average gold has China (chn) as the nation with a bronze greater than 1?
CREATE TABLE table_61298 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT AVG("Gold") FROM table_61298 WHERE "Nation" = 'china (chn)' AND "Bronze" > '1'
What's the nationality of Cardinal-Bishop of Albano?
CREATE TABLE table_name_32 ( nationality VARCHAR, cardinalatial_order_and_title VARCHAR )
SELECT nationality FROM table_name_32 WHERE cardinalatial_order_and_title = "cardinal-bishop of albano"
What is the 2012 population for the state whose capital is Santa Fe?
CREATE TABLE table_14518 ( "State" text, "Abbr." text, "Capital" text, "Largest city" text, "Statehood" text, "Population est. (2012)" real, "House seat(s)" real )
SELECT "Population est. (2012)" FROM table_14518 WHERE "Capital" = 'santa fe'
What is Date, when Score is '0-2', and when Opponents is 'Bayer Leverkusen'?
CREATE TABLE table_name_4 ( date VARCHAR, score VARCHAR, opponents VARCHAR )
SELECT date FROM table_name_4 WHERE score = "0-2" AND opponents = "bayer leverkusen"
Score of 4 6, 6 4, 6 4 included which tournament?
CREATE TABLE table_5133 ( "Date" text, "Tournament" text, "Surface" text, "Opponent in the Final" text, "Score" text )
SELECT "Tournament" FROM table_5133 WHERE "Score" = '4–6, 6–4, 6–4'
how many teams did the comets win 2 matches against ?
CREATE TABLE table_204_334 ( id number, "opposition" text, "matches" number, "won" number, "drawn" number, "lost" number, "for" number, "against" number, "win%" text )
SELECT COUNT("opposition") FROM table_204_334 WHERE "won" = 2
What day was the total smaller than 19 at Venue of anz stadium?
CREATE TABLE table_name_42 ( date VARCHAR, total VARCHAR, venue VARCHAR )
SELECT date FROM table_name_42 WHERE total < 19 AND venue = "anz stadium"
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 COUNT("Number (map)") FROM table_33847 WHERE "Area in km\u00b2" > '13.5' AND "Population Canada 2011 Census" = '134,038'
How many schools did Derrick Green attend?
CREATE TABLE table_17075 ( "Player" text, "Position" text, "School" text, "Hometown" text, "College" text )
SELECT COUNT("School") FROM table_17075 WHERE "Player" = 'Derrick Green'
How much does number 26 weigh?
CREATE TABLE table_name_31 ( weight VARCHAR, number VARCHAR )
SELECT weight FROM table_name_31 WHERE number = "26"
What was the result for james o'h. patterson when first elected in 1904?
CREATE TABLE table_name_40 ( result VARCHAR, first_elected VARCHAR, incumbent VARCHAR )
SELECT result FROM table_name_40 WHERE first_elected = "1904" AND incumbent = "james o'h. patterson"
What is the categorization in 2010 when it was A in 2008 and 20011 while being QF in 2012?
CREATE TABLE table_55481 ( "Tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text )
SELECT "2010" FROM table_55481 WHERE "2008" = 'a' AND "2011" = 'a' AND "2012" = 'qf'
What was the pick number for the kicker in round 8?
CREATE TABLE table_name_7 ( pick VARCHAR, round VARCHAR, position VARCHAR )
SELECT COUNT(pick) FROM table_name_7 WHERE round = "round 8" AND position = "kicker"