answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT AVG(attendance) FROM table_name_2 WHERE opponent = "pittsburgh steelers" AND opponents > 0
CREATE TABLE table_name_2 (attendance INTEGER, opponent VARCHAR, opponents VARCHAR)
What is the average attendance for games against the Pittsburgh Steelers when the opponents scored more than 0 points?
SELECT team FROM table_name_8 WHERE position = "offensive guard" AND pick < 154
CREATE TABLE table_name_8 (team VARCHAR, position VARCHAR, pick VARCHAR)
Who is the team that has a pick less than 154 and an offensive guard position?
SELECT SUM(attendance) FROM table_name_94 WHERE game = 24
CREATE TABLE table_name_94 (attendance INTEGER, game VARCHAR)
What is the Attendance of Game 24?
SELECT venue FROM table_name_91 WHERE score_f_a = "1–2" AND game = 41
CREATE TABLE table_name_91 (venue VARCHAR, score_f_a VARCHAR, game VARCHAR)
What is the Venue of Game 41 with a Score F–A of 1–2?
SELECT opponents_in_the_final FROM table_name_30 WHERE date = "february 19, 1996"
CREATE TABLE table_name_30 (opponents_in_the_final VARCHAR, date VARCHAR)
Who are the opponents in the February 19, 1996 final?
SELECT score_in_the_final FROM table_name_24 WHERE date = "march 22, 1993"
CREATE TABLE table_name_24 (score_in_the_final VARCHAR, date VARCHAR)
What was the final score on March 22, 1993?
SELECT outcome FROM table_name_57 WHERE date = "june 9, 1997"
CREATE TABLE table_name_57 (outcome VARCHAR, date VARCHAR)
What is the outcome on June 9, 1997?
SELECT school FROM table_name_50 WHERE ihsaa_class = "aaa" AND mascot = "tiger cubs"
CREATE TABLE table_name_50 (school VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR)
What school has an IHSAA Class of aaa, and their mascot is Tiger Cubs?
SELECT ihsaa_football_class FROM table_name_16 WHERE county = "67 putnam" AND school = "greencastle"
CREATE TABLE table_name_16 (ihsaa_football_class VARCHAR, county VARCHAR, school VARCHAR)
What is the IHSAA Football Class for county 67 putnam at Greencastle?
SELECT school FROM table_name_27 WHERE enrollment > 533 AND ihsaa_football_class = "aa"
CREATE TABLE table_name_27 (school VARCHAR, enrollment VARCHAR, ihsaa_football_class VARCHAR)
What school has more than 533 enrolled and is an IHSAA Football Class of aa?
SELECT location FROM table_name_1 WHERE ihsaa_class = "aaa" AND enrollment > 590
CREATE TABLE table_name_1 (location VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR)
Where is the IHSAA Class of aaa school with more than 590 enrolled?
SELECT location FROM table_name_4 WHERE days_held = "111"
CREATE TABLE table_name_4 (location VARCHAR, days_held VARCHAR)
Which location has 111 as the days held?
SELECT days_held FROM table_name_2 WHERE reign = "1" AND wrestlers = "eden black"
CREATE TABLE table_name_2 (days_held VARCHAR, reign VARCHAR, wrestlers VARCHAR)
What days held has 1 as the reign with eden black as the wrestlers?
SELECT wrestlers FROM table_name_71 WHERE event = "summer brawl 2006"
CREATE TABLE table_name_71 (wrestlers VARCHAR, event VARCHAR)
What wrestlers have summer brawl 2006 as the event?
SELECT AVG(points) FROM table_name_87 WHERE laps > 154
CREATE TABLE table_name_87 (points INTEGER, laps INTEGER)
What is the average amount of points larger than 154 laps?
SELECT home_team FROM table_name_68 WHERE away_team = "crystal palace"
CREATE TABLE table_name_68 (home_team VARCHAR, away_team VARCHAR)
What home team played against Crystal Palace?
SELECT MIN(win__percentage) FROM table_name_39 WHERE record = "0-2" AND apps > 2
CREATE TABLE table_name_39 (win__percentage INTEGER, record VARCHAR, apps VARCHAR)
What is the lowest win % with a 0-2 record and more than 2 apps?
SELECT MIN(apps) FROM table_name_33 WHERE rank = 3 AND win__percentage < 0
CREATE TABLE table_name_33 (apps INTEGER, rank VARCHAR, win__percentage VARCHAR)
What is the lowest apps for rank 3 and 0% wins?
SELECT artist FROM table_name_87 WHERE peak_position < 2 AND sales > 200 OFFSET 000
CREATE TABLE table_name_87 (artist VARCHAR, peak_position VARCHAR, sales VARCHAR)
What artist had a peak position under 2, and more than 200,000 in sales?
SELECT points FROM table_name_39 WHERE place < 2
CREATE TABLE table_name_39 (points VARCHAR, place INTEGER)
Which points has place smaller than 2?
SELECT size FROM table_name_61 WHERE year_joined < 1974 AND ihsaa_class = "aa" AND _number___county = "89 wayne" AND school = "centerville"
CREATE TABLE table_name_61 (size VARCHAR, school VARCHAR, _number___county VARCHAR, year_joined VARCHAR, ihsaa_class VARCHAR)
What's the size of Centerville in 89 Wayne county with an IHSAA class of AA in the year before 1974?
SELECT year_joined FROM table_name_66 WHERE school = "hagerstown"
CREATE TABLE table_name_66 (year_joined VARCHAR, school VARCHAR)
What's the year that Hagerstown joined?
SELECT _number___county FROM table_name_8 WHERE location = "fountain city"
CREATE TABLE table_name_8 (_number___county VARCHAR, location VARCHAR)
What county is Fountain City?
SELECT previous_conference FROM table_name_88 WHERE size > 287 AND location = "fountain city"
CREATE TABLE table_name_88 (previous_conference VARCHAR, size VARCHAR, location VARCHAR)
What's the previous conference of Fountain City with a size more than 287?
SELECT social_democratic FROM table_name_94 WHERE date_released = "october 10, 1999"
CREATE TABLE table_name_94 (social_democratic VARCHAR, date_released VARCHAR)
What is the social democrat released on October 10, 1999?
SELECT green_communist FROM table_name_82 WHERE lead = "15.5%"
CREATE TABLE table_name_82 (green_communist VARCHAR, lead VARCHAR)
What is the green-communist with a 15.5% lead?
SELECT left_bloc FROM table_name_33 WHERE socialist = "49.0%"
CREATE TABLE table_name_33 (left_bloc VARCHAR, socialist VARCHAR)
What is the left bloc with a 49.0% socialist?
SELECT polling_institute FROM table_name_81 WHERE social_democratic = "30.7%"
CREATE TABLE table_name_81 (polling_institute VARCHAR, social_democratic VARCHAR)
Which polling institute has a 30.7% for social democratic?
SELECT week FROM table_name_7 WHERE result = "w 31-21"
CREATE TABLE table_name_7 (week VARCHAR, result VARCHAR)
What is the week with w 31-21 result?
SELECT AVG(attendance) FROM table_name_74 WHERE week = 7
CREATE TABLE table_name_74 (attendance INTEGER, week VARCHAR)
In week 7, what was the average attendance?
SELECT opponent FROM table_name_28 WHERE date = "september 10, 1979"
CREATE TABLE table_name_28 (opponent VARCHAR, date VARCHAR)
Who was the opponent on september 10, 1979?
SELECT date_of_release FROM table_name_16 WHERE title = "twenty"
CREATE TABLE table_name_16 (date_of_release VARCHAR, title VARCHAR)
When was twenty released?
SELECT date_of_release FROM table_name_15 WHERE title = "god & guns"
CREATE TABLE table_name_15 (date_of_release VARCHAR, title VARCHAR)
On what date was god & guns released?
SELECT billboard_peak FROM table_name_93 WHERE label = "sanctuary" AND date_of_release = "september 12, 2000"
CREATE TABLE table_name_93 (billboard_peak VARCHAR, label VARCHAR, date_of_release VARCHAR)
What was the Billboard peak for the album released on September 12, 2000 by sanctuary?
SELECT billboard_peak FROM table_name_52 WHERE title = "god & guns"
CREATE TABLE table_name_52 (billboard_peak VARCHAR, title VARCHAR)
Where did god & guns peak on the Billboard?
SELECT billboard_peak FROM table_name_95 WHERE label = "mca" AND date_of_release = "february 2, 1976"
CREATE TABLE table_name_95 (billboard_peak VARCHAR, label VARCHAR, date_of_release VARCHAR)
What was the Billboard peak for the album released on February 2, 1976 by MCA?
SELECT venue FROM table_name_31 WHERE status = "tour match" AND against > 0 AND opposing_team = "eastern province"
CREATE TABLE table_name_31 (venue VARCHAR, opposing_team VARCHAR, status VARCHAR, against VARCHAR)
What venue was the tour match against eastern province played at with more than 0 against?
SELECT status FROM table_name_20 WHERE against > 22
CREATE TABLE table_name_20 (status VARCHAR, against INTEGER)
What is the status of the game where there was more than 22 against?
SELECT game FROM table_name_41 WHERE opponents = "14"
CREATE TABLE table_name_41 (game VARCHAR, opponents VARCHAR)
In which game did the opponents score 14 points?
SELECT streak FROM table_name_18 WHERE date = "dec. 12"
CREATE TABLE table_name_18 (streak VARCHAR, date VARCHAR)
What was the streak after the game on Dec. 12?
SELECT amt_30__desktop_ FROM table_name_76 WHERE feature = "vlan settings for intel amt network interfaces"
CREATE TABLE table_name_76 (amt_30__desktop_ VARCHAR, feature VARCHAR)
What's the AMT 3.0 when it has a feature of Vlan Settings for Intel AMT Network Interfaces?
SELECT SUM(silver) FROM table_name_5 WHERE bronze = 0 AND rank < 2
CREATE TABLE table_name_5 (silver INTEGER, bronze VARCHAR, rank VARCHAR)
What is the number of silver when bronze is 0, and rank is less than 2?
SELECT AVG(silver) FROM table_name_64 WHERE total = 1 AND gold = 1
CREATE TABLE table_name_64 (silver INTEGER, total VARCHAR, gold VARCHAR)
What is the silver when the Total is 1, and Gold is 1?
SELECT COUNT(silver) FROM table_name_35 WHERE total < 1
CREATE TABLE table_name_35 (silver VARCHAR, total INTEGER)
What is the number of silver when the total is less than 1?
SELECT MAX(silver) FROM table_name_92 WHERE rank < 1
CREATE TABLE table_name_92 (silver INTEGER, rank INTEGER)
What is the largest silver number when the rank is smaller than 1?
SELECT AVG(bronze) FROM table_name_58 WHERE total < 1
CREATE TABLE table_name_58 (bronze INTEGER, total INTEGER)
What is the number of bronze when the total is smaller than 1?
SELECT MAX(bronze) FROM table_name_69 WHERE silver > 0 AND rank > 3
CREATE TABLE table_name_69 (bronze INTEGER, silver VARCHAR, rank VARCHAR)
What is the highest number of bronze when silver is larger than 0, rank is larger than 3?
SELECT MIN(silver) FROM table_name_73 WHERE rank = "12" AND bronze > 0
CREATE TABLE table_name_73 (silver INTEGER, rank VARCHAR, bronze VARCHAR)
What is the lowest number of silvers for countries in rank 12 with more than 0 bronze?
SELECT MAX(silver) FROM table_name_43 WHERE rank = "5" AND total > 6
CREATE TABLE table_name_43 (silver INTEGER, rank VARCHAR, total VARCHAR)
What is the most number of silvers for teams in rank 5 with more than 6 total medals?
SELECT MIN(gold) FROM table_name_59 WHERE total = 3 AND silver < 2
CREATE TABLE table_name_59 (gold INTEGER, total VARCHAR, silver VARCHAR)
What is the fewest number of golds for teams with a total of 3 and fewer than 2 silvers?
SELECT COUNT(wins) FROM table_name_60 WHERE percentage_wins = "52.11%" AND flags < 8
CREATE TABLE table_name_60 (wins VARCHAR, percentage_wins VARCHAR, flags VARCHAR)
What's the number of wins when the flags were less than 8 and 52.11% of wins?
SELECT MAX(flags) FROM table_name_90 WHERE wins = 473 AND losses < 633
CREATE TABLE table_name_90 (flags INTEGER, wins VARCHAR, losses VARCHAR)
What's the most flags that had 473 wins and less than 633 losses?
SELECT wins FROM table_name_77 WHERE flags > 6 AND draws > 10 AND club = "south warrnambool"
CREATE TABLE table_name_77 (wins VARCHAR, club VARCHAR, flags VARCHAR, draws VARCHAR)
How many wins did South Warrnambool have that had more than 6 flags and a draw greater than 10?
SELECT AVG(losses) FROM table_name_8 WHERE club = "warrnambool" AND draws < 19
CREATE TABLE table_name_8 (losses INTEGER, club VARCHAR, draws VARCHAR)
What are the losses of Warrnambool with a draw less than 19?
SELECT location FROM table_name_63 WHERE rank_final = "10"
CREATE TABLE table_name_63 (location VARCHAR, rank_final VARCHAR)
What is the Location of the Competition with a Rank-Final of 10?
SELECT SUM(gold) FROM table_name_61 WHERE silver = 2 AND nation = "bulgaria (bul)" AND rank < 18
CREATE TABLE table_name_61 (gold INTEGER, rank VARCHAR, silver VARCHAR, nation VARCHAR)
How many gold medals for Bulgaria (BUL) with 2 silvers and a less than 18 rank?
SELECT MAX(bronze) FROM table_name_35 WHERE rank > 6 AND nation = "great britain (gbr)" AND silver > 1
CREATE TABLE table_name_35 (bronze INTEGER, silver VARCHAR, rank VARCHAR, nation VARCHAR)
What's the most bronze medals for Great Britain (GBR) with more than 1 silver and ranked more than 6?
SELECT COUNT(silver) FROM table_name_29 WHERE bronze = 2 AND gold < 2
CREATE TABLE table_name_29 (silver VARCHAR, bronze VARCHAR, gold VARCHAR)
What's the total silver medals having less than 2 gold and 2 bronze?
SELECT name FROM table_name_72 WHERE championship > 2 AND total > 4 AND fa_cup > 0
CREATE TABLE table_name_72 (name VARCHAR, fa_cup VARCHAR, championship VARCHAR, total VARCHAR)
Which Name has a Championship larger than 2, and a Total larger than 4, and an FA Cup larger than 0?
SELECT video FROM table_name_1 WHERE channel < 35.66 AND programming = "nhk world"
CREATE TABLE table_name_1 (video VARCHAR, channel VARCHAR, programming VARCHAR)
Which Video has a Channel smaller than 35.66, and a Programming of nhk world?
SELECT video FROM table_name_53 WHERE psip_short_name = "rt"
CREATE TABLE table_name_53 (video VARCHAR, psip_short_name VARCHAR)
Which Video has a PSIP Short Name of rt?
SELECT programming FROM table_name_14 WHERE channel = 35.4
CREATE TABLE table_name_14 (programming VARCHAR, channel VARCHAR)
Which Programming has a Channel of 35.4?
SELECT COUNT(vuelta_wins) FROM table_name_31 WHERE country = "ireland" AND points > 4
CREATE TABLE table_name_31 (vuelta_wins VARCHAR, country VARCHAR, points VARCHAR)
How many times is the country ireland and points more than 4?
SELECT format FROM table_name_24 WHERE catalog = "mhcp-66"
CREATE TABLE table_name_24 (format VARCHAR, catalog VARCHAR)
What is the format for the MHCP-66 Catalog?
SELECT catalog FROM table_name_21 WHERE date = "august 20, 1965"
CREATE TABLE table_name_21 (catalog VARCHAR, date VARCHAR)
What Catalog came out on August 20, 1965?
SELECT catalog FROM table_name_62 WHERE format = "lp" AND label = "simply vinyl"
CREATE TABLE table_name_62 (catalog VARCHAR, format VARCHAR, label VARCHAR)
What is the catalog with an LP Format and under the Simply Vinyl label?
SELECT date FROM table_name_77 WHERE format = "cd" AND label = "columbia/legacy" AND country = "uk"
CREATE TABLE table_name_77 (date VARCHAR, country VARCHAR, format VARCHAR, label VARCHAR)
What date had a CD format, under Columbia/Legacy from the UK?
SELECT country FROM table_name_20 WHERE format = "lp" AND catalog = "s 31503"
CREATE TABLE table_name_20 (country VARCHAR, format VARCHAR, catalog VARCHAR)
What country has an LP format, catalog s 31503?
SELECT format FROM table_name_96 WHERE catalog = "cl 2372"
CREATE TABLE table_name_96 (format VARCHAR, catalog VARCHAR)
What is the format for Catalog CL 2372?
SELECT event FROM table_name_61 WHERE tournament = "european championships" AND year = 2006
CREATE TABLE table_name_61 (event VARCHAR, tournament VARCHAR, year VARCHAR)
What event has european championships as the tournament, with 2006 as the year?
SELECT AVG(year) FROM table_name_64 WHERE tournament = "international meeting & national championships"
CREATE TABLE table_name_64 (year INTEGER, tournament VARCHAR)
What average year has international meeting & national championships as the tournament?
SELECT MIN(year) FROM table_name_52 WHERE tournament = "hypo-meeting" AND points = "8002"
CREATE TABLE table_name_52 (year INTEGER, tournament VARCHAR, points VARCHAR)
What is the lowest year that has hypo-meeting as the tournament, with 8002 as the points?
SELECT opponent FROM table_name_58 WHERE time = "4:17"
CREATE TABLE table_name_58 (opponent VARCHAR, time VARCHAR)
Who was the opponent in the match that lasted 4:17?
SELECT location FROM table_name_21 WHERE round < 3 AND method = "submission (triangle choke)"
CREATE TABLE table_name_21 (location VARCHAR, round VARCHAR, method VARCHAR)
Where was the match that lasted less than 3 rounds and was won by submission (triangle choke)?
SELECT event FROM table_name_55 WHERE opponent = "carlos alexandre pereira"
CREATE TABLE table_name_55 (event VARCHAR, opponent VARCHAR)
Which event had Carlos Alexandre Pereira as opponent?
SELECT location FROM table_name_44 WHERE res = "win" AND time = "4:16"
CREATE TABLE table_name_44 (location VARCHAR, res VARCHAR, time VARCHAR)
Where was the match that resulted in a win in 4:16 held?
SELECT COUNT(population) FROM table_name_1 WHERE median_family_income = "$50,553"
CREATE TABLE table_name_1 (population VARCHAR, median_family_income VARCHAR)
What's the population that has a median family income of $50,553?
SELECT MAX(rank) FROM table_name_58 WHERE country = "egypt"
CREATE TABLE table_name_58 (rank INTEGER, country VARCHAR)
What is the highest rank for the team of egypt?
SELECT athlete FROM table_name_50 WHERE notes = "q" AND country = "egypt"
CREATE TABLE table_name_50 (athlete VARCHAR, notes VARCHAR, country VARCHAR)
Who was the athlete from egypt with q in the notes?
SELECT 2 AS fm__mhz_ FROM table_name_91 WHERE service_area = "sw ireland"
CREATE TABLE table_name_91 (service_area VARCHAR)
What is the 2FM for SW Ireland?
SELECT event FROM table_name_18 WHERE medal = "gold" AND name = "duncan white"
CREATE TABLE table_name_18 (event VARCHAR, medal VARCHAR, name VARCHAR)
Name Event of Medal of gold and a Name of duncan white?
SELECT event FROM table_name_60 WHERE games = "1950 auckland" AND medal = "bronze"
CREATE TABLE table_name_60 (event VARCHAR, games VARCHAR, medal VARCHAR)
Name the Event of the Games of 1950 auckland and a Medal of bronze?
SELECT medal FROM table_name_14 WHERE name = "alex obeyesekera"
CREATE TABLE table_name_14 (medal VARCHAR, name VARCHAR)
Which Medal has a Name of alex obeyesekera?
SELECT event FROM table_name_69 WHERE medal = "gold" AND name = "barney henricus"
CREATE TABLE table_name_69 (event VARCHAR, medal VARCHAR, name VARCHAR)
Which Event has a Medal of gold and a Name of barney henricus?
SELECT event FROM table_name_93 WHERE name = "sudesh peiris"
CREATE TABLE table_name_93 (event VARCHAR, name VARCHAR)
Name the Event of sudesh peiris?
SELECT AVG(year) FROM table_name_59 WHERE developer_s_ = "bioware"
CREATE TABLE table_name_59 (year INTEGER, developer_s_ VARCHAR)
What year was the developer(s) Bioware?
SELECT genre FROM table_name_9 WHERE year > 2009 AND platform_s_ = "playstation 3"
CREATE TABLE table_name_9 (genre VARCHAR, year VARCHAR, platform_s_ VARCHAR)
What is the genre for 2009 on Playstation 3?
SELECT result FROM table_name_87 WHERE recipients_and_nominees = "outstanding achievement in drama" AND year = 1995
CREATE TABLE table_name_87 (result VARCHAR, recipients_and_nominees VARCHAR, year VARCHAR)
Which result has a recipients and nominees of outstanding achievement in drama with 1995 as the year?
SELECT recipients_and_nominees FROM table_name_93 WHERE category = "outstanding achievement in drama" AND year = 1994
CREATE TABLE table_name_93 (recipients_and_nominees VARCHAR, category VARCHAR, year VARCHAR)
What recipients and nominees have outstanding achievement in drama as the category with 1994 as the year?
SELECT result FROM table_name_48 WHERE role_episode = "outstanding achievement in drama" AND year < 1995
CREATE TABLE table_name_48 (result VARCHAR, role_episode VARCHAR, year VARCHAR)
What result has outstanding achievement in drama, as the role/episode with a year prior to 1995?
SELECT AVG(total) FROM table_name_37 WHERE gymnast = "danny pinheiro rodrigues ( fra )" AND position < 7
CREATE TABLE table_name_37 (total INTEGER, gymnast VARCHAR, position VARCHAR)
What is the total for Danny Pinheiro Rodrigues ( fra ), in a Position smaller than 7?
SELECT COUNT(total) FROM table_name_87 WHERE gymnast = "chen yibing ( chn )" AND b_score < 9.225
CREATE TABLE table_name_87 (total VARCHAR, gymnast VARCHAR, b_score VARCHAR)
What is the total for Chen Yibing ( chn ), when his B Score was smaller than 9.225?
SELECT COUNT(a_score) FROM table_name_54 WHERE b_score > 9.05 AND total < 16.525
CREATE TABLE table_name_54 (a_score VARCHAR, b_score VARCHAR, total VARCHAR)
What is the A Score when the B Score is more than 9.05, and the total is less than 16.525?
SELECT COUNT(position) FROM table_name_58 WHERE gymnast = "oleksandr vorobiov ( ukr )" AND total > 16.25
CREATE TABLE table_name_58 (position VARCHAR, gymnast VARCHAR, total VARCHAR)
What is the position for Oleksandr Vorobiov ( ukr ), when the total was larger than 16.25?
SELECT SUM(total) FROM table_name_40 WHERE gymnast = "robert stanescu ( rou )" AND b_score > 8.75
CREATE TABLE table_name_40 (total INTEGER, gymnast VARCHAR, b_score VARCHAR)
What is the total for Robert Stanescu ( rou ), when the B Score is larger than 8.75?
SELECT notes FROM table_name_75 WHERE country = "poland"
CREATE TABLE table_name_75 (notes VARCHAR, country VARCHAR)
Poland has what notes?
SELECT rank FROM table_name_85 WHERE country = "croatia"
CREATE TABLE table_name_85 (rank VARCHAR, country VARCHAR)
What is Croatia's rank?
SELECT rowers FROM table_name_32 WHERE rank = 5
CREATE TABLE table_name_32 (rowers VARCHAR, rank VARCHAR)
When rank is 5, what is the rowers?
SELECT AVG(rank) FROM table_name_33 WHERE country = "denmark"
CREATE TABLE table_name_33 (rank INTEGER, country VARCHAR)
What is the average rank for Denmark?
SELECT term_end FROM table_name_6 WHERE party = "kadima" AND term_start = "18 january 2006"
CREATE TABLE table_name_6 (term_end VARCHAR, party VARCHAR, term_start VARCHAR)
What is the end of the term for Kadima that started on 18 January 2006?