answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT county FROM table_name_68 WHERE ihsaa_class = "aaa" AND enrollment < 799
|
CREATE TABLE table_name_68 (county VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR)
|
Which County has an IHSAA Class of aaa, and an Enrollment smaller than 799?
|
SELECT location FROM table_name_34 WHERE mascot = "tigers"
|
CREATE TABLE table_name_34 (location VARCHAR, mascot VARCHAR)
|
Which Location has a Mascot of tigers?
|
SELECT MAX(overall) FROM table_name_77 WHERE executive_appointments = 28 AND background < 37
|
CREATE TABLE table_name_77 (overall INTEGER, executive_appointments VARCHAR, background VARCHAR)
|
What's the most overall when the executive appointments were 28 and the background was smaller than 37?
|
SELECT record FROM table_name_77 WHERE score = "21-16"
|
CREATE TABLE table_name_77 (record VARCHAR, score VARCHAR)
|
What was the record at the game with a score of 21-16?
|
SELECT opponent FROM table_name_91 WHERE week > 4 AND score = "42-28"
|
CREATE TABLE table_name_91 (opponent VARCHAR, week VARCHAR, score VARCHAR)
|
Who was the opponent at the game with a score of 42-28 after week 4?
|
SELECT result FROM table_name_12 WHERE opponent = "at dallas cowboys"
|
CREATE TABLE table_name_12 (result VARCHAR, opponent VARCHAR)
|
what is the result when the opponent is at dallas cowboys?
|
SELECT SUM(enrollment) FROM table_name_79 WHERE year_joined = 1958 AND location = "clarksville"
|
CREATE TABLE table_name_79 (enrollment INTEGER, year_joined VARCHAR, location VARCHAR)
|
what is the enrollement for the year joined 1958 in clarksville?
|
SELECT _number___county FROM table_name_13 WHERE ihsaa_class = "aaa" AND enrollment > 611 AND mascot = "dragons"
|
CREATE TABLE table_name_13 (_number___county VARCHAR, mascot VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR)
|
what is the #/county that is ihsaa class aaa, has enrollment higher than 611 and the dragons is the mascot?
|
SELECT country_of_release FROM table_name_98 WHERE year_of_release = 1977
|
CREATE TABLE table_name_98 (country_of_release VARCHAR, year_of_release VARCHAR)
|
Where was the title released in 1977?
|
SELECT MAX(year_of_release) FROM table_name_40 WHERE label = "mca"
|
CREATE TABLE table_name_40 (year_of_release INTEGER, label VARCHAR)
|
What was the last year MCA had a Release?
|
SELECT MIN(pick) FROM table_name_60 WHERE team = "buffalo bills"
|
CREATE TABLE table_name_60 (pick INTEGER, team VARCHAR)
|
What is the lowest pick for the Buffalo Bills?
|
SELECT player FROM table_name_61 WHERE team = "boston patriots"
|
CREATE TABLE table_name_61 (player VARCHAR, team VARCHAR)
|
Which player played for the Boston Patriots?
|
SELECT SUM(attendance) FROM table_name_10 WHERE result = "2–4" AND visitor = "brynäs if"
|
CREATE TABLE table_name_10 (attendance INTEGER, result VARCHAR, visitor VARCHAR)
|
How much Attendance has a Result of 2–4, and a Visitor of brynäs if?
|
SELECT result FROM table_name_37 WHERE round > 17
|
CREATE TABLE table_name_37 (result VARCHAR, round INTEGER)
|
Which Result has a Round larger than 17?
|
SELECT MIN(electorate) FROM table_name_57 WHERE political_party = "conservative" AND constituency = "south west devon" AND "conservative" > 2 AND name = "plymstock radford"
|
CREATE TABLE table_name_57 (electorate INTEGER, name VARCHAR, political_party VARCHAR, constituency VARCHAR)
|
What is the smallest electorate for the Conservative party in South West Devon constituency, with over 2 conservatives and a name of Plymstock Radford?
|
SELECT event FROM table_name_66 WHERE year > 2007 AND position = "88th"
|
CREATE TABLE table_name_66 (event VARCHAR, year VARCHAR, position VARCHAR)
|
What event was in a year later than 2007 and in the 88th position?
|
SELECT notes FROM table_name_36 WHERE year = 2005
|
CREATE TABLE table_name_36 (notes VARCHAR, year VARCHAR)
|
What are the notes for 2005?
|
SELECT owner FROM table_name_78 WHERE call_sign = "cklf-fm"
|
CREATE TABLE table_name_78 (owner VARCHAR, call_sign VARCHAR)
|
Who is the owner of CKLF-FM?
|
SELECT frequency FROM table_name_78 WHERE format = "first nations community"
|
CREATE TABLE table_name_78 (frequency VARCHAR, format VARCHAR)
|
What frequency is First Nations Community?
|
SELECT format FROM table_name_84 WHERE branding = "cbc radio 2"
|
CREATE TABLE table_name_84 (format VARCHAR, branding VARCHAR)
|
What format is CBC Radio 2?
|
SELECT owner FROM table_name_72 WHERE call_sign = "cksb-8-fm"
|
CREATE TABLE table_name_72 (owner VARCHAR, call_sign VARCHAR)
|
Who owns CKSB-8-FM?
|
SELECT format FROM table_name_44 WHERE branding = "première chaîne"
|
CREATE TABLE table_name_44 (format VARCHAR, branding VARCHAR)
|
What format is Première Chaîne?
|
SELECT MAX(year) FROM table_name_92 WHERE championship = "olympics" AND event = "men's eight" AND nation = "canada" AND result = "silver"
|
CREATE TABLE table_name_92 (year INTEGER, result VARCHAR, nation VARCHAR, championship VARCHAR, event VARCHAR)
|
What year was olympics, Canada and the Men's Eight Event ended with a silver medal?
|
SELECT event FROM table_name_2 WHERE year = 2006
|
CREATE TABLE table_name_2 (event VARCHAR, year VARCHAR)
|
What event was in 2006?
|
SELECT championship FROM table_name_99 WHERE nation = "usa" AND year > 1994 AND result = "5th"
|
CREATE TABLE table_name_99 (championship VARCHAR, result VARCHAR, nation VARCHAR, year VARCHAR)
|
What championship was in the USA after 1994, and resulted in 5th place?
|
SELECT MIN(year) FROM table_name_65 WHERE nation = "canada" AND result = "silver" AND championship = "olympics" AND event = "men's coxless pair"
|
CREATE TABLE table_name_65 (year INTEGER, event VARCHAR, championship VARCHAR, nation VARCHAR, result VARCHAR)
|
What year did Canada get a silver in the olympics in the Men's Coxless Pair event?
|
SELECT location FROM table_name_98 WHERE school = "lacrosse"
|
CREATE TABLE table_name_98 (location VARCHAR, school VARCHAR)
|
Where is the lacrosse school located?
|
SELECT ihsaa_class FROM table_name_32 WHERE mascot = "tigers"
|
CREATE TABLE table_name_32 (ihsaa_class VARCHAR, mascot VARCHAR)
|
Which IHSAA Class has a Mascot of tigers?
|
SELECT location FROM table_name_62 WHERE enrollment > 543
|
CREATE TABLE table_name_62 (location VARCHAR, enrollment INTEGER)
|
Which Location has an Enrollment larger than 543?
|
SELECT county FROM table_name_16 WHERE enrollment = 297
|
CREATE TABLE table_name_16 (county VARCHAR, enrollment VARCHAR)
|
Which County has an Enrollment of 297?
|
SELECT school FROM table_name_52 WHERE enrollment > 264 AND county = "46 la porte"
|
CREATE TABLE table_name_52 (school VARCHAR, enrollment VARCHAR, county VARCHAR)
|
Which School has an Enrollment larger than 264, and a County of 46 la porte?
|
SELECT MIN(silver) FROM table_name_90 WHERE gold > 1 AND bronze > 6
|
CREATE TABLE table_name_90 (silver INTEGER, gold VARCHAR, bronze VARCHAR)
|
What is the number of silver medals when there are more than 1 gold, and more than 6 bronze?
|
SELECT MAX(total) FROM table_name_32 WHERE silver > 1 AND nation = "yugoslavia"
|
CREATE TABLE table_name_32 (total INTEGER, silver VARCHAR, nation VARCHAR)
|
What is the total when the Yugoslavia number of silver won is more than 1?
|
SELECT SUM(attendance) FROM table_name_16 WHERE week < 1
|
CREATE TABLE table_name_16 (attendance INTEGER, week INTEGER)
|
What is the total attendance before week 1?
|
SELECT release_date FROM table_name_81 WHERE title = "sniffles and the bookworm"
|
CREATE TABLE table_name_81 (release_date VARCHAR, title VARCHAR)
|
When was sniffles and the bookworm released?
|
SELECT release_date FROM table_name_54 WHERE series = "mm" AND title = "land of the midnight fun"
|
CREATE TABLE table_name_54 (release_date VARCHAR, series VARCHAR, title VARCHAR)
|
When was land of the midnight fun in the mm series released?
|
SELECT series FROM table_name_53 WHERE release_date = "1939-07-15" AND production_num = "8863"
|
CREATE TABLE table_name_53 (series VARCHAR, release_date VARCHAR, production_num VARCHAR)
|
Which series had a release on 1939-07-15 with the 8863 production number?
|
SELECT director FROM table_name_2 WHERE title = "hamateur night"
|
CREATE TABLE table_name_2 (director VARCHAR, title VARCHAR)
|
Who directed hamateur night?
|
SELECT release_date FROM table_name_29 WHERE production_num = "9105"
|
CREATE TABLE table_name_29 (release_date VARCHAR, production_num VARCHAR)
|
When was Production Number 9105 released?
|
SELECT class FROM table_name_8 WHERE frequency = "90.1 fm"
|
CREATE TABLE table_name_8 (class VARCHAR, frequency VARCHAR)
|
What Class has a Frequency of 90.1 FM?
|
SELECT recnet FROM table_name_51 WHERE frequency = "91.1 fm"
|
CREATE TABLE table_name_51 (recnet VARCHAR, frequency VARCHAR)
|
What is listed for the RECNet that also has a Frequency of 91.1 FM?
|
SELECT class FROM table_name_42 WHERE identifier = "cbfx-fm-2"
|
CREATE TABLE table_name_42 (class VARCHAR, identifier VARCHAR)
|
What Class has the Identifier fo CBFX-FM-2?
|
SELECT recnet FROM table_name_51 WHERE class = "b" AND city_of_license = "rouyn-noranda"
|
CREATE TABLE table_name_51 (recnet VARCHAR, class VARCHAR, city_of_license VARCHAR)
|
What is the RECNet with a Class of B and the City of License of Rouyn-Noranda?
|
SELECT class FROM table_name_21 WHERE identifier = "cbfx-fm-6"
|
CREATE TABLE table_name_21 (class VARCHAR, identifier VARCHAR)
|
What Class has the Identifier of CBFX-FM-6?
|
SELECT frequency FROM table_name_53 WHERE identifier = "cbfx-fm-6"
|
CREATE TABLE table_name_53 (frequency VARCHAR, identifier VARCHAR)
|
What Frequency has the Identifier of CBFX-FM-6?
|
SELECT COUNT(gold) FROM table_name_23 WHERE silver < 1 AND nation = "belgium"
|
CREATE TABLE table_name_23 (gold VARCHAR, silver VARCHAR, nation VARCHAR)
|
What is the total number of gold with less than 1 silver, from Belgium?
|
SELECT AVG(lost) FROM table_name_89 WHERE points < 15 AND name = "sc forst" AND drawn < 0
|
CREATE TABLE table_name_89 (lost INTEGER, drawn VARCHAR, points VARCHAR, name VARCHAR)
|
Which Lost has Points smaller than 15, and a Name of sc forst, and Drawn smaller than 0?
|
SELECT SUM(position) FROM table_name_78 WHERE lost = 8 AND played > 14
|
CREATE TABLE table_name_78 (position INTEGER, lost VARCHAR, played VARCHAR)
|
How much Position has a Lost of 8, and a Played larger than 14?
|
SELECT SUM(drawn) FROM table_name_80 WHERE lost > 8 AND points < 7
|
CREATE TABLE table_name_80 (drawn INTEGER, lost VARCHAR, points VARCHAR)
|
Which Drawn has a Lost larger than 8, and Points smaller than 7?
|
SELECT COUNT(drawn) FROM table_name_13 WHERE name = "erc lechbruck" AND points < 17
|
CREATE TABLE table_name_13 (drawn VARCHAR, name VARCHAR, points VARCHAR)
|
How much Drawn has a Name of erc lechbruck, and Points smaller than 17?
|
SELECT town FROM table_name_81 WHERE municipality = "molėtai district municipality" AND population__2001_ < 470 AND population_rank = 187
|
CREATE TABLE table_name_81 (town VARCHAR, population_rank VARCHAR, municipality VARCHAR, population__2001_ VARCHAR)
|
What town is from the molėtai district municipality and has a population rank of 187 and a population less than 470 in 2001?
|
SELECT county FROM table_name_78 WHERE population_rank = 205
|
CREATE TABLE table_name_78 (county VARCHAR, population_rank VARCHAR)
|
What county is the town with a rank of 205 located in?
|
SELECT MIN(draw) FROM table_name_95 WHERE percentage = "5.02%"
|
CREATE TABLE table_name_95 (draw INTEGER, percentage VARCHAR)
|
What is the fewest draws for percentages of 5.02%?
|
SELECT position FROM table_name_28 WHERE team = "denver broncos"
|
CREATE TABLE table_name_28 (position VARCHAR, team VARCHAR)
|
What is the position of the player from the denver broncos?
|
SELECT AVG(pick) FROM table_name_12 WHERE team = "kansas city chiefs"
|
CREATE TABLE table_name_12 (pick INTEGER, team VARCHAR)
|
What is the average pick of the kansas city chiefs?
|
SELECT pick FROM table_name_70 WHERE college = "wiley"
|
CREATE TABLE table_name_70 (pick VARCHAR, college VARCHAR)
|
What is the pick of wiley college?
|
SELECT attendance FROM table_name_53 WHERE home_team = "alfreton town"
|
CREATE TABLE table_name_53 (attendance VARCHAR, home_team VARCHAR)
|
What was the attendance for the game with alfreton town as the home team?
|
SELECT score FROM table_name_92 WHERE away_team = "stafford rangers"
|
CREATE TABLE table_name_92 (score VARCHAR, away_team VARCHAR)
|
What was the score of the game where stafford rangers was the away team?
|
SELECT home_team FROM table_name_29 WHERE tie_no = "1"
|
CREATE TABLE table_name_29 (home_team VARCHAR, tie_no VARCHAR)
|
Who was the home team that has a tie no of 1?
|
SELECT tie_no FROM table_name_28 WHERE away_team = "southport"
|
CREATE TABLE table_name_28 (tie_no VARCHAR, away_team VARCHAR)
|
What is the tie no that has southport as the away team?
|
SELECT attendance FROM table_name_53 WHERE home_team = "king's lynn"
|
CREATE TABLE table_name_53 (attendance VARCHAR, home_team VARCHAR)
|
What was the attendance for the game that had the king's lynn as the home team?
|
SELECT score FROM table_name_56 WHERE tie_no = "1"
|
CREATE TABLE table_name_56 (score VARCHAR, tie_no VARCHAR)
|
What was the score for the game with a tie no of 1?
|
SELECT COUNT(game) FROM table_name_53 WHERE date = "december 21"
|
CREATE TABLE table_name_53 (game VARCHAR, date VARCHAR)
|
What is the game number on December 21?
|
SELECT game FROM table_name_71 WHERE record = "19-15"
|
CREATE TABLE table_name_71 (game VARCHAR, record VARCHAR)
|
What is the Game with a Record of 19-15?
|
SELECT date FROM table_name_59 WHERE game > 31 AND opponent = "detroit"
|
CREATE TABLE table_name_59 (date VARCHAR, game VARCHAR, opponent VARCHAR)
|
What is the Date of the game against Detroit in game 31 or after?
|
SELECT year_s__won FROM table_name_42 WHERE total = 289
|
CREATE TABLE table_name_42 (year_s__won VARCHAR, total VARCHAR)
|
During which years did the golfer with the total of 289 win?
|
SELECT to_par FROM table_name_84 WHERE finish = "t56"
|
CREATE TABLE table_name_84 (to_par VARCHAR, finish VARCHAR)
|
What was the To par for the player who finished t56?
|
SELECT country FROM table_name_53 WHERE total = 294
|
CREATE TABLE table_name_53 (country VARCHAR, total VARCHAR)
|
Which county did the player with a total of 294 represent?
|
SELECT MIN(total) FROM table_name_72 WHERE country = "united states" AND player = "phil mickelson"
|
CREATE TABLE table_name_72 (total INTEGER, country VARCHAR, player VARCHAR)
|
What was the total for united states player phil mickelson?
|
SELECT MIN(lane) FROM table_name_52 WHERE rank < 4 AND time < 24.42
|
CREATE TABLE table_name_52 (lane INTEGER, rank VARCHAR, time VARCHAR)
|
With a less than 4 rank, and a time less than 24.42 what is the smallest lane?
|
SELECT AVG(time) FROM table_name_8 WHERE nationality = "united states" AND lane < 5
|
CREATE TABLE table_name_8 (time INTEGER, nationality VARCHAR, lane VARCHAR)
|
The swimmer from the United States in a lane less than 5, had what as the average time?
|
SELECT nationality FROM table_name_3 WHERE lane < 2
|
CREATE TABLE table_name_3 (nationality VARCHAR, lane INTEGER)
|
What nationality is the swimmer that is in the lane that is less than 2?
|
SELECT MAX(losses) FROM table_name_15 WHERE draws < 0
|
CREATE TABLE table_name_15 (losses INTEGER, draws INTEGER)
|
Which Losses have Draws smaller than 0?
|
SELECT MAX(losses) FROM table_name_28 WHERE draws > 0
|
CREATE TABLE table_name_28 (losses INTEGER, draws INTEGER)
|
Which Losses have Draws larger than 0?
|
SELECT SUM(against) FROM table_name_66 WHERE losses < 7 AND wimmera_fl = "horsham"
|
CREATE TABLE table_name_66 (against INTEGER, losses VARCHAR, wimmera_fl VARCHAR)
|
How much Against has Losses smaller than 7, and a Wimmera FL of horsham?
|
SELECT SUM(draws) FROM table_name_83 WHERE wins > 7 AND wimmera_fl = "nhill" AND losses > 8
|
CREATE TABLE table_name_83 (draws INTEGER, losses VARCHAR, wins VARCHAR, wimmera_fl VARCHAR)
|
How many Draws have Wins larger than 7, and a Wimmera FL of nhill, and Losses larger than 8?
|
SELECT outcome FROM table_name_52 WHERE score = "3-6, 2-6"
|
CREATE TABLE table_name_52 (outcome VARCHAR, score VARCHAR)
|
What was the outcome of the match with a score of 3-6, 2-6?
|
SELECT tournament FROM table_name_70 WHERE opponent = "magnus larsson"
|
CREATE TABLE table_name_70 (tournament VARCHAR, opponent VARCHAR)
|
What was the tournament that had byron black playing against magnus larsson?
|
SELECT tournament FROM table_name_35 WHERE score = "6-7, 4-6"
|
CREATE TABLE table_name_35 (tournament VARCHAR, score VARCHAR)
|
What tournament had a game with a score of 6-7, 4-6?
|
SELECT result FROM table_name_76 WHERE round < 7 AND opponent = "melbourne storm"
|
CREATE TABLE table_name_76 (result VARCHAR, round VARCHAR, opponent VARCHAR)
|
what is the result when the round is less than 7 and the opponent is melbourne storm?
|
SELECT venue FROM table_name_58 WHERE result = "loss" AND opponent = "st george-illawarra dragons"
|
CREATE TABLE table_name_58 (venue VARCHAR, result VARCHAR, opponent VARCHAR)
|
what is the venue when the result is loss and the opponent is st george-illawarra dragons?
|
SELECT silver FROM table_name_15 WHERE year = 1982
|
CREATE TABLE table_name_15 (silver VARCHAR, year VARCHAR)
|
Who won silver in 1982?
|
SELECT time FROM table_name_7 WHERE rank = 1
|
CREATE TABLE table_name_7 (time VARCHAR, rank VARCHAR)
|
What is the Time of the Rowers in Rank 1?
|
SELECT time FROM table_name_36 WHERE country = "belgium"
|
CREATE TABLE table_name_36 (time VARCHAR, country VARCHAR)
|
What is the Time of the Rowers from Belgium?
|
SELECT time FROM table_name_56 WHERE lane = 7
|
CREATE TABLE table_name_56 (time VARCHAR, lane VARCHAR)
|
What time does lane 7 have?
|
SELECT employed FROM table_name_74 WHERE position_held = "mathematics & prefect master"
|
CREATE TABLE table_name_74 (employed VARCHAR, position_held VARCHAR)
|
What are the years employed shown for mathematics & prefect master?
|
SELECT citation FROM table_name_6 WHERE employed = "1970–1996"
|
CREATE TABLE table_name_6 (citation VARCHAR, employed VARCHAR)
|
What citation is shown for the employed years of 1970–1996?
|
SELECT name FROM table_name_48 WHERE employed = "1970–2005"
|
CREATE TABLE table_name_48 (name VARCHAR, employed VARCHAR)
|
What is the name of the person employed 1970–2005?
|
SELECT time FROM table_name_28 WHERE rank < 4 AND country = "finland"
|
CREATE TABLE table_name_28 (time VARCHAR, rank VARCHAR, country VARCHAR)
|
What is the Time of the Rowers from Finland with a Rank of less than 4?
|
SELECT SUM(rank) FROM table_name_56 WHERE time = "7:30.92"
|
CREATE TABLE table_name_56 (rank INTEGER, time VARCHAR)
|
What is the Rank of the Rowers with a Time of 7:30.92?
|
SELECT notes FROM table_name_16 WHERE country = "finland"
|
CREATE TABLE table_name_16 (notes VARCHAR, country VARCHAR)
|
What are the Notes of the Country of finland?
|
SELECT opponent FROM table_name_31 WHERE week = 12
|
CREATE TABLE table_name_31 (opponent VARCHAR, week VARCHAR)
|
Who were the opponents for week 12?
|
SELECT polling_institute FROM table_name_1 WHERE lead = "6%"
|
CREATE TABLE table_name_1 (polling_institute VARCHAR, lead VARCHAR)
|
Which polling institute showed a lead of 6%?
|
SELECT date_s__released FROM table_name_76 WHERE democratic_alternative = "1%" AND labour = "34%"
|
CREATE TABLE table_name_76 (date_s__released VARCHAR, democratic_alternative VARCHAR, labour VARCHAR)
|
Which date released had a Democratic Alternative value of 1% and Labour of 34%?
|
SELECT nationalist FROM table_name_8 WHERE undecided__no_answer = "29.2%"
|
CREATE TABLE table_name_8 (nationalist VARCHAR, undecided__no_answer VARCHAR)
|
What is the Nationalist share of the poll for the response in which Undecided/No Answer received 29.2%?
|
SELECT democratic_alternative FROM table_name_31 WHERE polling_institute = "malta today"
|
CREATE TABLE table_name_31 (democratic_alternative VARCHAR, polling_institute VARCHAR)
|
What is the value of the Democratic Alternative for the poll released by Malta Today?
|
SELECT polling_institute FROM table_name_46 WHERE lead = "12%" AND labour = "40.2%"
|
CREATE TABLE table_name_46 (polling_institute VARCHAR, lead VARCHAR, labour VARCHAR)
|
Which polling institute showed a lead of 12% and a Labour share of the poll at 40.2%?
|
SELECT MIN(week) FROM table_name_75 WHERE opponent = "minnesota vikings"
|
CREATE TABLE table_name_75 (week INTEGER, opponent VARCHAR)
|
What is the lowest week that has Minnesota Vikings as the opponent?
|
SELECT opponent FROM table_name_40 WHERE date = "december 6, 1964"
|
CREATE TABLE table_name_40 (opponent VARCHAR, date VARCHAR)
|
What opponent has December 6, 1964 as the date?
|
SELECT attendance FROM table_name_72 WHERE week < 3 AND date = "september 18, 1965"
|
CREATE TABLE table_name_72 (attendance VARCHAR, week VARCHAR, date VARCHAR)
|
What was the attendance of the game on September 18, 1965 before week 3?
|
Subsets and Splits
SQL Console for knowrohit07/know_sql
Finds questions in the dataset that contain the word 'god', providing a basic filtered view without much analytical insight.