instruction
stringlengths
12
317
input
stringlengths
38
973
response
stringlengths
25
526
What stadiums had an attendance of 8,256?
CREATE TABLE table_19343 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Ground" text, "Crowd" text, "Date" text, "Time" text, "Report" text )
SELECT "Ground" FROM table_19343 WHERE "Crowd" = '8,256'
What is the total number of population in the year 2005 where the population density 35.9 (/km 2)?
CREATE TABLE table_1480455_1 ( population__2005_ VARCHAR, population_density___km_2__ VARCHAR )
SELECT COUNT(population__2005_) FROM table_1480455_1 WHERE population_density___km_2__ = "35.9"
What is the average percent for the coach from 1905 and more than 7 losses?
CREATE TABLE table_name_97 ( pct INTEGER, years VARCHAR, lost VARCHAR )
SELECT AVG(pct) FROM table_name_97 WHERE years = "1905" AND lost > 7
For each team, how many technicians are there?
CREATE TABLE repair_assignment ( technician_id number, repair_id number, machine_id number ) CREATE TABLE technician ( technician_id number, name text, team text, starting_year number, age number ) CREATE TABLE repair ( repair_id number, name text, launch_date text, notes text ) CREATE TABLE machine ( machine_id number, making_year number, class text, team text, machine_series text, value_points number, quality_rank number )
SELECT team, COUNT(*) FROM technician GROUP BY team
according to the chart , which team is listed to have the first dodge ram ?
CREATE TABLE table_204_89 ( id number, "team" text, "truck(s)" text, "#" number, "driver(s)" text, "primary sponsor(s)" text, "listed owner(s)" text, "crew chief" text )
SELECT "team" FROM table_204_89 WHERE "truck(s)" = 'dodge ram' ORDER BY id LIMIT 1
Name the scores for chris ramsey and carol vorderman
CREATE TABLE table_23292220_17 ( scores VARCHAR, seans_team VARCHAR )
SELECT scores FROM table_23292220_17 WHERE seans_team = "Chris Ramsey and Carol Vorderman"
What is the name for 30 september 1943?
CREATE TABLE table_465 ( "Name" text, "Pennant" text, "Builder" text, "Laid Down" text, "Launched" text, "Commissioned" text, "Fate" text )
SELECT "Name" FROM table_465 WHERE "Launched" = '30 September 1943'
What province has a v valpara so region and an area of 927.2?
CREATE TABLE table_name_31 ( province VARCHAR, region VARCHAR, area VARCHAR )
SELECT province FROM table_name_31 WHERE region = "v valparaíso" AND area = 927.2
How many games were played on May 11?
CREATE TABLE table_22654073_13 ( game VARCHAR, date VARCHAR )
SELECT COUNT(game) FROM table_22654073_13 WHERE date = "May 11"
Name the number of date for 1-0 record
CREATE TABLE table_24111 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Black Knights points" real, "Opponents" real, "Record" text )
SELECT COUNT("Date") FROM table_24111 WHERE "Record" = '1-0'
What is the name of the mill located on Anawan Street with a reference number larger than 8?
CREATE TABLE table_64816 ( "Ref#" real, "Name" text, "Built" real, "Location" text, "Construction" text )
SELECT "Name" FROM table_64816 WHERE "Ref#" > '8' AND "Location" = 'anawan street'
What is the mintage (bu) with the artist Royal Canadian Mint Staff and has an issue price (proof) of $54.95?
CREATE TABLE table_11916083_1 ( mintage__bu_ VARCHAR, _clarification_needed_ VARCHAR, artist VARCHAR, issue_price__proof_ VARCHAR )
SELECT mintage__bu_ AS "_clarification_needed_" FROM table_11916083_1 WHERE artist = "Royal Canadian Mint Staff" AND issue_price__proof_ = "$54.95"
What was the latest round that Derek Pagel was selected with a pick higher than 50?
CREATE TABLE table_77984 ( "Player" text, "Position" text, "Round" real, "Pick" real, "NFL Club" text )
SELECT MAX("Round") FROM table_77984 WHERE "Pick" > '50' AND "Player" = 'derek pagel'
What is the average and maximum damage in millions for storms that had a max speed over 1000?
CREATE TABLE storm ( storm_id number, name text, dates_active text, max_speed number, damage_millions_usd number, number_deaths number ) CREATE TABLE region ( region_id number, region_code text, region_name text ) CREATE TABLE affected_region ( region_id number, storm_id number, number_city_affected number )
SELECT AVG(damage_millions_usd), MAX(damage_millions_usd) FROM storm WHERE max_speed > 1000
What is 2006 when 1997 is 6.8?
CREATE TABLE table_27146868_1 ( Id VARCHAR )
SELECT 2006 FROM table_27146868_1 WHERE 1997 = "6.8"
Which chassis has marlboro brm as the team?
CREATE TABLE table_name_89 ( chassis VARCHAR, team VARCHAR )
SELECT chassis FROM table_name_89 WHERE team = "marlboro brm"
how many games were played ?
CREATE TABLE table_203_67 ( id number, "place" number, "team" text, "played" number, "won" number, "draw" number, "lost" number, "goals\nscored" number, "goals\nconceded" number, "+/-" number, "points" number )
SELECT SUM("played") FROM table_203_67
How many marks did he get in 2005?
CREATE TABLE table_name_89 ( marks VARCHAR, season VARCHAR )
SELECT marks FROM table_name_89 WHERE season = "2005"
Give me a bar chart about the number of platforms in different locations, and I want to list from high to low by the total number please.
CREATE TABLE train ( Train_ID int, Name text, Time text, Service text ) CREATE TABLE station ( Station_ID int, Name text, Annual_entry_exit real, Annual_interchanges real, Total_Passengers real, Location text, Main_Services text, Number_of_Platforms int ) CREATE TABLE train_station ( Train_ID int, Station_ID int )
SELECT Location, SUM(Number_of_Platforms) FROM station GROUP BY Location ORDER BY SUM(Number_of_Platforms) DESC
What's the sum of draw for artist hari mata hari with less than 70 points?
CREATE TABLE table_11271 ( "Draw" real, "Artist" text, "Song" text, "Points" real, "Place" real )
SELECT SUM("Draw") FROM table_11271 WHERE "Artist" = 'hari mata hari' AND "Points" < '70'
Who was the producer for the film 'Strange Little Girls'?
CREATE TABLE table_15049 ( "Film" text, "Director(s)" text, "Producer(s)" text, "Writer(s)" text, "Recipient" text, "Date" text, "Award" text )
SELECT "Producer(s)" FROM table_15049 WHERE "Film" = 'strange little girls'
which monitoring department is listed the most ?
CREATE TABLE table_204_988 ( id number, "responsible minister(s)" text, "crown entities" text, "monitoring department(s)" text, "category / type" text, "empowering legislation" text )
SELECT "monitoring department(s)" FROM table_204_988 GROUP BY "monitoring department(s)" ORDER BY COUNT(*) DESC LIMIT 1
What school has a public nickname, founded after 1838 in Harrisonburg, Va?
CREATE TABLE table_46120 ( "School" text, "Location" text, "Founded" real, "Affiliation" text, "Nickname" text )
SELECT "Nickname" FROM table_46120 WHERE "Affiliation" = 'public' AND "Founded" > '1838' AND "Location" = 'harrisonburg, va'
What is the year for the genre of emo and artist is all-american rejects and song title is ' move along '?
CREATE TABLE table_26449 ( "Song title" text, "Artist" text, "Year" real, "Genre" text, "Single / Pack name" text, "Release date" text, "Family Friendly" text, "Additional Rock Band 3 Features" text )
SELECT MAX("Year") FROM table_26449 WHERE "Genre" = 'Emo' AND "Artist" = 'All-American Rejects' AND "Song title" = ' Move Along '
What shows for 2006 when 2000 is 1r, 1996 is A, and Tournament is Cincinnati Masters?
CREATE TABLE table_50783 ( "Tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text )
SELECT "2006" FROM table_50783 WHERE "2000" = '1r' AND "1996" = 'a' AND "Tournament" = 'cincinnati masters'
Who wrote the episode that got 5.95 million U.S. viewers?
CREATE TABLE table_74320 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (million)" text )
SELECT "Written by" FROM table_74320 WHERE "U.S. viewers (million)" = '5.95'
What was the result of Frank Langella?
CREATE TABLE table_76288 ( "Year" real, "Category" text, "President" text, "Nominee" text, "Film or Television Series or Miniseries" text, "Result" text )
SELECT "Result" FROM table_76288 WHERE "Nominee" = 'frank langella'
what's the grand prix with winning driver being jenson button
CREATE TABLE table_12161822_5 ( grand_prix VARCHAR, winning_driver VARCHAR )
SELECT grand_prix FROM table_12161822_5 WHERE winning_driver = "Jenson Button"
Which date has a Score of 4 6, 2 6?
CREATE TABLE table_55033 ( "Outcome" text, "Date" text, "Surface" text, "Opponent" text, "Score" text )
SELECT "Date" FROM table_55033 WHERE "Score" = '4–6, 2–6'
What was the result of the election in which the incumbent was first elected in 1984?
CREATE TABLE table_682 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text, "Candidates" text )
SELECT "Results" FROM table_682 WHERE "First elected" = '1984'
What is the l3 cache when the sspec number is sr0r2(l1)sr0t6(l1)?
CREATE TABLE table_13514 ( "Model number" text, "sSpec number" text, "Cores" text, "Frequency" text, "Turbo" text, "L2 cache" text, "L3 cache" text, "GPU model" text, "GPU frequency" text, "Socket" text, "I/O bus" text, "Release date" text, "Part number(s)" text, "Release price ( USD )" text )
SELECT "L3 cache" FROM table_13514 WHERE "sSpec number" = 'sr0r2(l1)sr0t6(l1)'
Who was the Producer/Director of Fear Beneath?
CREATE TABLE table_35328 ( "Year" real, "Film" text, "Role" text, "Producer/Director" text, "Notes" text )
SELECT "Producer/Director" FROM table_35328 WHERE "Film" = 'fear beneath'
What is the Lower index Kcal/ Nm 3 entry, for the row with entries of an Upper index Kcal/ Nm 3 smaller than 19,376, and a Lower index MJ/ Nm 3 of 74.54?
CREATE TABLE table_name_5 ( lower_index_kcal__nm_3 INTEGER, lower_index_mj__nm_3 VARCHAR, upper_index_kcal__nm_3 VARCHAR )
SELECT AVG(lower_index_kcal__nm_3) FROM table_name_5 WHERE lower_index_mj__nm_3 = 74.54 AND upper_index_kcal__nm_3 < 19 OFFSET 376
What is the location and attendance of the game when the score is 125-100?
CREATE TABLE table_48456 ( "Game" real, "Date" text, "Team" text, "Score" text, "Location Attendance" text, "Record" text )
SELECT "Location Attendance" FROM table_48456 WHERE "Score" = '125-100'
What is the maximum total when the To par is +3?
CREATE TABLE table_59095 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" text, "Finish" text )
SELECT MAX("Total") FROM table_59095 WHERE "To par" = '+3'
What is the highest Points in Position 2 with more than 3 Drawn games?
CREATE TABLE table_41933 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text )
SELECT MAX("Points") FROM table_41933 WHERE "Position" = '2' AND "Drawn" > '3'
What aired at 10:00 when Flashpoint aired at 9:30?
CREATE TABLE table_43208 ( "8:00" text, "8:30" text, "9:00" text, "9:30" text, "10:00" text )
SELECT "10:00" FROM table_43208 WHERE "9:30" = 'flashpoint'
What is the score on december 10?
CREATE TABLE table_name_98 ( score VARCHAR, date VARCHAR )
SELECT score FROM table_name_98 WHERE date = "december 10"
What is the highest Bronze with a Silver greater than 0 and a Gold of 7 and a total less than 29
CREATE TABLE table_7956 ( "Rank" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT MAX("Bronze") FROM table_7956 WHERE "Silver" > '0' AND "Gold" = '7' AND "Total" < '29'
Which Record has a Loss of o'connor (0-1)?
CREATE TABLE table_34890 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text )
SELECT "Record" FROM table_34890 WHERE "Loss" = 'o''connor (0-1)'
who raced the fastest ?
CREATE TABLE table_204_175 ( id number, "pos" text, "no." number, "driver" text, "team" text, "laps" number, "time/retired" text, "grid" number, "laps led" number, "points" number )
SELECT "driver" FROM table_204_175 ORDER BY "pos" LIMIT 1
Find the number of routes with destination airports in Italy.
CREATE TABLE routes ( dst_apid VARCHAR ) CREATE TABLE airports ( apid VARCHAR, country VARCHAR )
SELECT COUNT(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid WHERE T2.country = 'Italy'
What is the Away team at the Wolverhampton Wanderers Home game with a Score of 2 0?
CREATE TABLE table_60349 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text )
SELECT "Away team" FROM table_60349 WHERE "Score" = '2–0' AND "Home team" = 'wolverhampton wanderers'
How many total pounds were purchased in the year 2018 at all London branches?
CREATE TABLE purchase ( member_id number, branch_id text, year text, total_pounds number ) CREATE TABLE membership_register_branch ( member_id number, branch_id text, register_year text ) CREATE TABLE branch ( branch_id number, name text, open_year text, address_road text, city text, membership_amount text ) CREATE TABLE member ( member_id number, card_number text, name text, hometown text, level number )
SELECT SUM(total_pounds) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T2.city = 'London' AND T1.year = 2018
What was the surface on 23 October 2011?
CREATE TABLE table_name_97 ( surface VARCHAR, date VARCHAR )
SELECT surface FROM table_name_97 WHERE date = "23 october 2011"
What is the total number of byes that are associated with 1 draw, 5 wins, and fewer than 12 losses?
CREATE TABLE table_36426 ( "NTFA Div 1" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real )
SELECT SUM("Byes") FROM table_36426 WHERE "Draws" = '1' AND "Wins" = '5' AND "Losses" < '12'
Which Jushin Liger has a Gran Hamada of kendo kashin?
CREATE TABLE table_name_60 ( jushin_liger VARCHAR, gran_hamada VARCHAR )
SELECT jushin_liger FROM table_name_60 WHERE gran_hamada = "kendo kashin"
What is the production code for episode 96 in the series?
CREATE TABLE table_3993 ( "No. in series" text, "No. in season" text, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real )
SELECT MIN("Production code") FROM table_3993 WHERE "No. in series" = '96'
Which countries do not have a stadium that was opened after 2006?
CREATE TABLE stadium ( id number, name text, capacity number, city text, country text, opening_year number ) CREATE TABLE swimmer ( id number, name text, nationality text, meter_100 number, meter_200 text, meter_300 text, meter_400 text, meter_500 text, meter_600 text, meter_700 text, time text ) CREATE TABLE event ( id number, name text, stadium_id number, year text ) CREATE TABLE record ( id number, result text, swimmer_id number, event_id number )
SELECT country FROM stadium EXCEPT SELECT country FROM stadium WHERE opening_year > 2006
What is the lowest number of seats from the election with 27.0% of votes?
CREATE TABLE table_name_55 ( seats INTEGER, share_of_votes VARCHAR )
SELECT MIN(seats) FROM table_name_55 WHERE share_of_votes = "27.0%"
What is the spike for the club of d.c. in 2008?
CREATE TABLE table_66432 ( "Name" text, "Height" text, "Weight" text, "Spike" text, "2008 club" text )
SELECT "Spike" FROM table_66432 WHERE "2008 club" = 'd.c.'
What is the Place that has a Date of 22 august 2004?
CREATE TABLE table_name_92 ( place VARCHAR, date VARCHAR )
SELECT place FROM table_name_92 WHERE date = "22 august 2004"
in what years did ramon gonzalez come in first place ?
CREATE TABLE table_203_763 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text )
SELECT "year" FROM table_203_763 WHERE "position" = 1
What was the championship during the match with the opponent of richard fromberg?
CREATE TABLE table_9055 ( "Outcome" text, "Date" real, "Championship" text, "Surface" text, "Opponent" text, "Score" text )
SELECT "Championship" FROM table_9055 WHERE "Opponent" = 'richard fromberg'
What is the Name for 1997 99?
CREATE TABLE table_name_76 ( name VARCHAR, year VARCHAR )
SELECT name FROM table_name_76 WHERE year = "1997–99"
what is the date above 19 october 2013 ?
CREATE TABLE table_204_130 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "score" text, "result" text, "competition" text )
SELECT "date" FROM table_204_130 WHERE id = (SELECT id FROM table_204_130 WHERE "date" = '19 october 2013') - 1
modified hachinski less than or equal to 4
CREATE TABLE table_train_107 ( "id" int, "systolic_blood_pressure_sbp" int, "body_weight" float, "modified_hachinski_ischemia_scale" int, "diastolic_blood_pressure_dbp" int, "body_mass_index_bmi" float, "clinical_dementia_rating_cdr" float, "NOUSE" float )
SELECT * FROM table_train_107 WHERE modified_hachinski_ischemia_scale <= 4
What Site had an Attendance of 45,000?
CREATE TABLE table_name_20 ( site VARCHAR, attendance VARCHAR )
SELECT site FROM table_name_20 WHERE attendance = "45,000"
What is the name of the person that was appointed on 13 May 2009?
CREATE TABLE table_name_74 ( replaced_by VARCHAR, date_of_appointment VARCHAR )
SELECT replaced_by FROM table_name_74 WHERE date_of_appointment = "13 may 2009"
What position did the 5th place team after 1992 with over 346 laps finish in?
CREATE TABLE table_67857 ( "Year" real, "Team" text, "Co-Drivers" text, "Class" text, "Laps" real, "Pos." text, "Class Pos." text )
SELECT "Pos." FROM table_67857 WHERE "Class Pos." = '5th' AND "Year" > '1992' AND "Laps" > '346'
Tell me the horse when the faults are 9 and the total is 46.36
CREATE TABLE table_12013 ( "Rider" text, "Horse" text, "Faults" text, "Round 1 + 2A Points" text, "Total" real )
SELECT "Horse" FROM table_12013 WHERE "Faults" = '9' AND "Total" = '46.36'
What is the total number of To Par, when Player is 'Julius Boros', and when Total is greater than 295?
CREATE TABLE table_name_28 ( to_par VARCHAR, player VARCHAR, total VARCHAR )
SELECT COUNT(to_par) FROM table_name_28 WHERE player = "julius boros" AND total > 295
Name the sum of frequency will call sign of k259aw
CREATE TABLE table_name_67 ( frequency_mhz INTEGER, call_sign VARCHAR )
SELECT SUM(frequency_mhz) FROM table_name_67 WHERE call_sign = "k259aw"
What is the Purse listed for the Year of 1998?
CREATE TABLE table_name_10 ( purse VARCHAR, year VARCHAR )
SELECT purse FROM table_name_10 WHERE year = "1998"
What was Johnny Rutherford's fastest lap while Al Unser was the pole position?
CREATE TABLE table_10527215_3 ( fastest_lap VARCHAR, winning_driver VARCHAR, pole_position VARCHAR )
SELECT fastest_lap FROM table_10527215_3 WHERE winning_driver = "Johnny Rutherford" AND pole_position = "Al Unser"
male or female ages >= 3.5 years and <= 18 years on day of sepsis recognition
CREATE TABLE table_train_71 ( "id" int, "gender" string, "language" string, "intention_to_arterial_catheter" bool, "renal_disease" bool, "sepsis" bool, "allergy_to_hydroxyethyl_starch" bool, "age" float, "NOUSE" float )
SELECT * FROM table_train_71 WHERE (gender = 'male' OR gender = 'female') AND (age >= 3.5 AND age <= 18) AND sepsis = 1
What is the team's record when the NY rangers are at home with atlanta visting and lehtonen getting the decision?
CREATE TABLE table_name_25 ( record VARCHAR, home VARCHAR, decision VARCHAR, visitor VARCHAR )
SELECT record FROM table_name_25 WHERE decision = "lehtonen" AND visitor = "atlanta" AND home = "ny rangers"
WHAT IS THE AVERAGE WEEK WITH A DATE OF JULY 25?
CREATE TABLE table_name_5 ( week INTEGER, date VARCHAR )
SELECT AVG(week) FROM table_name_5 WHERE date = "july 25"
How much did the home team st kilda score?
CREATE TABLE table_name_76 ( home_team VARCHAR )
SELECT home_team AS score FROM table_name_76 WHERE home_team = "st kilda"
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and manufacturer , and group by attribute founder, show from low to high by the Y-axis.
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, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Manufacturer
What is the lowest score for a year before 2008 and had 3rd place?
CREATE TABLE table_45320 ( "Year" real, "Program Title" text, "Placement" text, "Score" real, "Class" text )
SELECT MIN("Score") FROM table_45320 WHERE "Year" < '2008' AND "Placement" = '3rd'
Visualize a scatter chart about the correlation between Clean_Jerk and Total .
CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, Birth_Date text, Birth_Place text ) CREATE TABLE body_builder ( Body_Builder_ID int, People_ID int, Snatch real, Clean_Jerk real, Total real )
SELECT Clean_Jerk, Total FROM body_builder
What position does Cody Ceci play?
CREATE TABLE table_11803648_21 ( position VARCHAR, player VARCHAR )
SELECT position FROM table_11803648_21 WHERE player = "Cody Ceci"
What is Location, when Round is '1', and when Opponent is 'Joe Slick'?
CREATE TABLE table_43631 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text )
SELECT "Location" FROM table_43631 WHERE "Round" = '1' AND "Opponent" = 'joe slick'
Who has the smallest crowd in the Venue of Arden Street Oval?
CREATE TABLE table_name_56 ( crowd INTEGER, venue VARCHAR )
SELECT MIN(crowd) FROM table_name_56 WHERE venue = "arden street oval"
What is the maximum t20 on green lane?
CREATE TABLE table_1176371_1 ( t20_matches INTEGER, name_of_ground VARCHAR )
SELECT MAX(t20_matches) FROM table_1176371_1 WHERE name_of_ground = "Green Lane"
What is the largest number of Games Played with Losses of 3, and more Wins than 5?
CREATE TABLE table_11772 ( "Team" text, "Games Played" real, "Wins" real, "Losses" real, "Ties" real, "Goals For" real, "Goals Against" real )
SELECT MAX("Games Played") FROM table_11772 WHERE "Losses" = '3' AND "Wins" > '5'
how many players are from cork ?
CREATE TABLE table_204_525 ( id number, "rank" number, "player" text, "county" text, "tally" text, "total" number, "opposition" text )
SELECT COUNT("player") FROM table_204_525 WHERE "county" = 'cork'
Which opponent had a bye for the TV Time?
CREATE TABLE table_name_96 ( opponent VARCHAR, tv_time VARCHAR )
SELECT opponent FROM table_name_96 WHERE tv_time = "bye"
What is the average total when gold is 0, bronze is 0, and silver is smaller than 1?
CREATE TABLE table_32849 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT AVG("Total") FROM table_32849 WHERE "Gold" = '0' AND "Bronze" = '0' AND "Silver" < '1'
What was Raymond Floyd's score?
CREATE TABLE table_8818 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
SELECT "Score" FROM table_8818 WHERE "Player" = 'raymond floyd'
What's the transit connection in Columbia City, Seattle?
CREATE TABLE table_25302 ( "Station" text, "Line(s)" text, "City/Neighborhood" text, "Year opened" real, "Transit Connections" text, "Park and ride?" text )
SELECT "Transit Connections" FROM table_25302 WHERE "City/Neighborhood" = 'Columbia City, Seattle'
How many different college/junior/club teams had player John Dzikowski?
CREATE TABLE table_4038 ( "Pick #" real, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text )
SELECT COUNT("College/junior/club team") FROM table_4038 WHERE "Player" = 'John Dzikowski'
What is the team that has forward-center as a position?
CREATE TABLE table_41539 ( "Player" text, "Nationality" text, "Position" text, "Years in Orlando" text, "School/Club Team" text )
SELECT "School/Club Team" FROM table_41539 WHERE "Position" = 'forward-center'
what's the naturalisation by marriage with regbeingtration of a minor child being 114
CREATE TABLE table_11214212_1 ( naturalisation_by_marriage VARCHAR, registration_of_a_minor_child VARCHAR )
SELECT naturalisation_by_marriage FROM table_11214212_1 WHERE registration_of_a_minor_child = 114
What is the depth of the quake that occurred at 19:48?
CREATE TABLE table_name_35 ( depth VARCHAR, time__utc_ VARCHAR )
SELECT depth FROM table_name_35 WHERE time__utc_ = "19:48"
Plot the total number by grouped by country as a bar graph
CREATE TABLE member ( Member_ID int, Name text, Country text, College_ID int ) CREATE TABLE college ( College_ID int, Name text, Leader_Name text, College_Location text ) CREATE TABLE round ( Round_ID int, Member_ID int, Decoration_Theme text, Rank_in_Round int )
SELECT Country, COUNT(*) FROM member GROUP BY Country
What team operates car 11?
CREATE TABLE table_name_28 ( team VARCHAR, car_no VARCHAR )
SELECT team FROM table_name_28 WHERE car_no = "11"
What college did Calvin McCarty play at?
CREATE TABLE table_100 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text )
SELECT "College" FROM table_100 WHERE "Player" = 'Calvin McCarty'
how many employees does vitol have ?
CREATE TABLE table_203_83 ( id number, "ranking" number, "company" text, "industry" text, "revenue (usd billions)" text, "fy" text, "capitalization (usd billions)" text, "employees" number, "listing" text, "headquarters" text, "ceo" text )
SELECT "employees" FROM table_203_83 WHERE "company" = 'vitol'
In what district was keith ellison the incumbent?
CREATE TABLE table_25030512_26 ( district VARCHAR, incumbent VARCHAR )
SELECT district FROM table_25030512_26 WHERE incumbent = "Keith Ellison"
A bar chart showing the sum of capacity of cinemas open for each year, could you sort in desc by the x-axis?
CREATE TABLE schedule ( Cinema_ID int, Film_ID int, Date text, Show_times_per_day int, Price float ) CREATE TABLE film ( Film_ID int, Rank_in_series int, Number_in_season int, Title text, Directed_by text, Original_air_date text, Production_code text ) CREATE TABLE cinema ( Cinema_ID int, Name text, Openning_year int, Capacity int, Location text )
SELECT Openning_year, SUM(Capacity) FROM cinema GROUP BY Openning_year ORDER BY Openning_year DESC
Who was the home team when the Tie no was 7?
CREATE TABLE table_name_60 ( home_team VARCHAR, tie_no VARCHAR )
SELECT home_team FROM table_name_60 WHERE tie_no = "7"
Give me a bar chart to show the theme and their sales of the journal which did not have any of the listed editors serving on the committee, rank in descending by the x axis.
CREATE TABLE editor ( Editor_ID int, Name text, Age real ) CREATE TABLE journal_committee ( Editor_ID int, Journal_ID int, Work_Type text ) CREATE TABLE journal ( Journal_ID int, Date text, Theme text, Sales int )
SELECT T1.Theme, T1.Sales FROM journal EXCEPT SELECT T1.Date, T1.Theme, T1.Sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.Journal_ID = T2.Journal_ID ORDER BY T1.Theme DESC
What is the year with a kurtis kraft 500a chassis?
CREATE TABLE table_71618 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real )
SELECT SUM("Year") FROM table_71618 WHERE "Chassis" = 'kurtis kraft 500a'
How many players had been drafted in front of Yves archambault
CREATE TABLE table_1473672_7 ( pick__number VARCHAR, player VARCHAR )
SELECT pick__number FROM table_1473672_7 WHERE player = "Yves Archambault"
how many games were played in total ?
CREATE TABLE table_204_418 ( id number, "date" text, "opponent" text, "score" text, "overall record" text, "scba record" text )
SELECT COUNT(*) FROM table_204_418
Who was the aggressive rider when the winner was luis le n s nchez?
CREATE TABLE table_27788 ( "Stage" real, "Winner" text, "General Classification" text, "Mountains Classification" text, "Sprint Classification" text, "Young Rider Classification" text, "Team Classification" text, "Aggressive Rider" text )
SELECT "Aggressive Rider" FROM table_27788 WHERE "Winner" = 'Luis León Sánchez'
What's the zodiac sign for the month with Thai name ?
CREATE TABLE table_20354_5 ( zodiac_sign VARCHAR, thai_name VARCHAR )
SELECT zodiac_sign FROM table_20354_5 WHERE thai_name = "มกราคม"
What is the points average when the tied is greater than 8, less than 82 games and the coach of Bryan Mclay Morris Lallo Gerry Moore , and greater than 322 goals?
CREATE TABLE table_name_13 ( points INTEGER, goals_against VARCHAR, coach VARCHAR, tied VARCHAR, games VARCHAR )
SELECT AVG(points) FROM table_name_13 WHERE tied > 8 AND games < 82 AND coach = "bryan mclay † morris lallo ‡ gerry moore ‡" AND goals_against > 322