answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT silver_medals FROM table_name_57 WHERE gold_medals = 2 AND total_medals > 2
CREATE TABLE table_name_57 (silver_medals VARCHAR, gold_medals VARCHAR, total_medals VARCHAR)
How many silvers for a school with 2 golds and over 2 total?
SELECT COUNT(gold_medals) FROM table_name_43 WHERE total_medals < 1
CREATE TABLE table_name_43 (gold_medals VARCHAR, total_medals INTEGER)
How many gold medals for the school with less than 1 total?
SELECT entrant FROM table_name_76 WHERE year = 1967
CREATE TABLE table_name_76 (entrant VARCHAR, year VARCHAR)
What is the entrant for 1967?
SELECT entrant FROM table_name_11 WHERE year > 1963 AND chassis = "eagle mk1"
CREATE TABLE table_name_11 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)
What ist he entrant later than 1963 with an eagle MK1 chassis?
SELECT entrant FROM table_name_65 WHERE pts = "0"
CREATE TABLE table_name_65 (entrant VARCHAR, pts VARCHAR)
What is the entrant that has 0 points?
SELECT MIN(year) FROM table_name_33 WHERE pts = "16"
CREATE TABLE table_name_33 (year INTEGER, pts VARCHAR)
What is the earliest year with 16 points?
SELECT venue FROM table_name_60 WHERE margin < 66 AND opponent = "north queensland cowboys"
CREATE TABLE table_name_60 (venue VARCHAR, margin VARCHAR, opponent VARCHAR)
Name the venue for margin less than 66 and opponent of north queensland cowboys
SELECT SUM(year) FROM table_name_93 WHERE opponent = "penrith panthers"
CREATE TABLE table_name_93 (year INTEGER, opponent VARCHAR)
Name the sum of year for penrith panthers opponent
SELECT opponent FROM table_name_52 WHERE venue = "mt smart stadium" AND year = 1996
CREATE TABLE table_name_52 (opponent VARCHAR, venue VARCHAR, year VARCHAR)
Name the opponent for 1996 at the mt smart stadium venue
SELECT AVG(year) FROM table_name_95 WHERE margin = 46
CREATE TABLE table_name_95 (year INTEGER, margin VARCHAR)
Name the average year for 46 margin
SELECT margin FROM table_name_89 WHERE year = 2002
CREATE TABLE table_name_89 (margin VARCHAR, year VARCHAR)
Name the margin for 2002
SELECT affiliation FROM table_name_54 WHERE enrollment > 502
CREATE TABLE table_name_54 (affiliation VARCHAR, enrollment INTEGER)
Which Affiliation has an Enrollement larger than 502?
SELECT school FROM table_name_76 WHERE enrollment < 301
CREATE TABLE table_name_76 (school VARCHAR, enrollment INTEGER)
What School has an Enrollement smaller than 301?
SELECT grades FROM table_name_36 WHERE enrollment > 443 AND student_body = "co-ed"
CREATE TABLE table_name_36 (grades VARCHAR, enrollment VARCHAR, student_body VARCHAR)
Which Grades has an Enrollment larger htan 443 with a Student body of Co-ed?
SELECT student_body FROM table_name_27 WHERE affiliation = "roman catholic" AND enrollment = 502
CREATE TABLE table_name_27 (student_body VARCHAR, affiliation VARCHAR, enrollment VARCHAR)
What's the Student Body with an Affiliation of Roman Catholic and has an Enrollment of 502?
SELECT AVG(year) FROM table_name_67 WHERE final_position___tour = 54 AND final_position___vuelta > 55
CREATE TABLE table_name_67 (year INTEGER, final_position___tour VARCHAR, final_position___vuelta VARCHAR)
What is the average year that has a final Tour position of 54 and a final Vuelta position over 55?
SELECT final_position___vuelta FROM table_name_26 WHERE final_position___giro > 39 AND final_position___tour = 90
CREATE TABLE table_name_26 (final_position___vuelta VARCHAR, final_position___giro VARCHAR, final_position___tour VARCHAR)
What is the final Vuelta position associated with a final Giro position over 39 and a final Tour position of 90?
SELECT COUNT(final_position___giro) FROM table_name_45 WHERE year = 1971 AND final_position___tour > 50
CREATE TABLE table_name_45 (final_position___giro VARCHAR, year VARCHAR, final_position___tour VARCHAR)
How many Giro positions are associated with the year 1971 and Tour final positions over 50?
SELECT SUM(laps) FROM table_name_94 WHERE rider = "alex baldolini"
CREATE TABLE table_name_94 (laps INTEGER, rider VARCHAR)
How many laps did the rider Alex Baldolini take?
SELECT COUNT(laps) FROM table_name_85 WHERE time_retired = "+7.213" AND grid > 7
CREATE TABLE table_name_85 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)
How many laps were completed in the time of +7.213 with a grid number larger than 7?
SELECT COUNT(laps) FROM table_name_22 WHERE manufacturer = "ktm" AND time_retired = "+3.578" AND grid > 4
CREATE TABLE table_name_22 (laps VARCHAR, grid VARCHAR, manufacturer VARCHAR, time_retired VARCHAR)
What is total number of laps for bikes manufactured by KTM with a time of +3.578 and a grid number larger than 4?
SELECT surface FROM table_name_91 WHERE date = "may 10, 2009"
CREATE TABLE table_name_91 (surface VARCHAR, date VARCHAR)
What was the surface for the May 10, 2009 tournament?
SELECT co_drivers FROM table_name_44 WHERE laps < 282 AND tyres = "p"
CREATE TABLE table_name_44 (co_drivers VARCHAR, laps VARCHAR, tyres VARCHAR)
Which co-driver has fewer than 282 laps and type P tyres?
SELECT class FROM table_name_24 WHERE tyres = "g" AND year > 1988
CREATE TABLE table_name_24 (class VARCHAR, tyres VARCHAR, year VARCHAR)
Which class more recent than 1988 has G tyres?
SELECT MAX(caps) FROM table_name_54 WHERE player = "bruce djite"
CREATE TABLE table_name_54 (caps INTEGER, player VARCHAR)
What is the greatest number of caps for Bruce Djite?
SELECT goals FROM table_name_54 WHERE player = "eugene galeković"
CREATE TABLE table_name_54 (goals VARCHAR, player VARCHAR)
How many goals were scored by Eugene Galeković?
SELECT goals FROM table_name_45 WHERE caps > 16
CREATE TABLE table_name_45 (goals VARCHAR, caps INTEGER)
How many goals were scored by players with more than 16 caps?
SELECT MAX(rank) FROM table_name_75 WHERE nationality = "netherlands"
CREATE TABLE table_name_75 (rank INTEGER, nationality VARCHAR)
What is the highest place of a swimmer from the Netherlands?
SELECT authority FROM table_name_64 WHERE roll < 254 AND decile = "8" AND area = "te akau"
CREATE TABLE table_name_64 (authority VARCHAR, area VARCHAR, roll VARCHAR, decile VARCHAR)
Name the authority for te akau with roll less than 254 and decile of 8
SELECT name FROM table_name_63 WHERE decile = "6" AND roll = 93
CREATE TABLE table_name_63 (name VARCHAR, decile VARCHAR, roll VARCHAR)
Tell me the name with decile of 6 and roll of 93
SELECT result FROM table_name_44 WHERE date = "january 26, 2006"
CREATE TABLE table_name_44 (result VARCHAR, date VARCHAR)
What is the result of the match on January 26, 2006?
SELECT bluetooth FROM table_name_5 WHERE launch_year > 2004 AND rom___mib__ = 128 AND wifi = "802.11b"
CREATE TABLE table_name_5 (bluetooth VARCHAR, wifi VARCHAR, launch_year VARCHAR, rom___mib__ VARCHAR)
What was the status of Bluetooth for the model that launched after 2004 with a ROM (MiB) of 128 and a Wifi of 802.11b?
SELECT ram___mib__ FROM table_name_71 WHERE model = "x30 mid-range"
CREATE TABLE table_name_71 (ram___mib__ VARCHAR, model VARCHAR)
What is the RAM (MiB) value for the X30 Mid-Range model?
SELECT SUM(points) FROM table_name_14 WHERE games > 68 AND tied = "4" AND goals_against > 272
CREATE TABLE table_name_14 (points INTEGER, goals_against VARCHAR, games VARCHAR, tied VARCHAR)
How many points did the team with more than 68 games, 4 ties, and more than 272 goals against have?
SELECT event FROM table_name_42 WHERE time = "45.74"
CREATE TABLE table_name_42 (event VARCHAR, time VARCHAR)
Which event had the time 45.74?
SELECT time FROM table_name_3 WHERE date = "december 15, 2010"
CREATE TABLE table_name_3 (time VARCHAR, date VARCHAR)
What was the time of December 15, 2010?
SELECT notes FROM table_name_89 WHERE time = "45.74"
CREATE TABLE table_name_89 (notes VARCHAR, time VARCHAR)
What were the notes for the time 45.74?
SELECT player FROM table_name_61 WHERE tries = 23
CREATE TABLE table_name_61 (player VARCHAR, tries VARCHAR)
What Player has 23 Tries?
SELECT goals FROM table_name_89 WHERE player = "matt cook"
CREATE TABLE table_name_89 (goals VARCHAR, player VARCHAR)
How many Goals did Matt Cook have?
SELECT player FROM table_name_32 WHERE position = "full back" AND apps = 0
CREATE TABLE table_name_32 (player VARCHAR, position VARCHAR, apps VARCHAR)
What Full Back Player has 0 Apps?
SELECT position FROM table_name_38 WHERE goals = "0" AND tries < 1 AND player = "matt james"
CREATE TABLE table_name_38 (position VARCHAR, player VARCHAR, goals VARCHAR, tries VARCHAR)
With 0 Goals and less than 1 Tries, what is Matt James position?
SELECT MIN(round) FROM table_name_91 WHERE school = "university of southern california"
CREATE TABLE table_name_91 (round INTEGER, school VARCHAR)
What is the earliest round drafted for a University of Southern California player?
SELECT COUNT(round) FROM table_name_24 WHERE position = "1b" AND signed = "no cardinals - 1969 june"
CREATE TABLE table_name_24 (round VARCHAR, position VARCHAR, signed VARCHAR)
What round drafted was the 1b and a Signed of no cardinals - 1969 june?
SELECT event FROM table_name_60 WHERE opponent = "akihiro gono" AND method = "decision"
CREATE TABLE table_name_60 (event VARCHAR, opponent VARCHAR, method VARCHAR)
Which event has an Opponent of akihiro gono, and a Method of decision?
SELECT location FROM table_name_84 WHERE opponent = "masanori suda"
CREATE TABLE table_name_84 (location VARCHAR, opponent VARCHAR)
Which location has an Opponent of masanori suda?
SELECT opponent FROM table_name_46 WHERE time = "1:34"
CREATE TABLE table_name_46 (opponent VARCHAR, time VARCHAR)
Which opponent has a Time of 1:34?
SELECT event FROM table_name_52 WHERE res = "loss" AND opponent = "maurice smith"
CREATE TABLE table_name_52 (event VARCHAR, res VARCHAR, opponent VARCHAR)
Which event resulted in loss with an Opponent of maurice smith?
SELECT gold FROM table_name_97 WHERE bronze = "↓ 1" AND sport = "cycling"
CREATE TABLE table_name_97 (gold VARCHAR, bronze VARCHAR, sport VARCHAR)
What is the winner of gold that also has ↓ 1 in the sport of cycling?
SELECT MAX(year) FROM table_name_91 WHERE team = "gulf racing middle east"
CREATE TABLE table_name_91 (year INTEGER, team VARCHAR)
What is the most recent year that Gulf Racing Middle East won?
SELECT class FROM table_name_58 WHERE co_drivers = "emanuele pirro jj lehto"
CREATE TABLE table_name_58 (class VARCHAR, co_drivers VARCHAR)
What is the class of the co-driver emanuele pirro jj lehto?
SELECT pos FROM table_name_95 WHERE team = "arena motorsports international"
CREATE TABLE table_name_95 (pos VARCHAR, team VARCHAR)
What was the final position of Arena Motorsports International?
SELECT co_drivers FROM table_name_24 WHERE year = 1992
CREATE TABLE table_name_24 (co_drivers VARCHAR, year VARCHAR)
Who was the Co-Driver of the winner of 1992's race?
SELECT score_in_the_final FROM table_name_38 WHERE outcome = "runner-up" AND surface = "hard (i)"
CREATE TABLE table_name_38 (score_in_the_final VARCHAR, outcome VARCHAR, surface VARCHAR)
What is the score in the final with runner-up as the outcome and hard (i) as the surface?
SELECT 1 AS st_leg FROM table_name_3 WHERE team_1 = "us mbila nzambi"
CREATE TABLE table_name_3 (team_1 VARCHAR)
What is the 1st leg score when US Mbila Nzambi is team 1?
SELECT opponent FROM table_name_16 WHERE date = "may 20"
CREATE TABLE table_name_16 (opponent VARCHAR, date VARCHAR)
Who was the opponent on May 20?
SELECT loss FROM table_name_85 WHERE date = "may 25"
CREATE TABLE table_name_85 (loss VARCHAR, date VARCHAR)
Who took the loss on May 25?
SELECT record FROM table_name_74 WHERE score = "2-3"
CREATE TABLE table_name_74 (record VARCHAR, score VARCHAR)
What was the record after the game that ended in a 2-3 loss?
SELECT date FROM table_name_25 WHERE loss = "politte (0-2)"
CREATE TABLE table_name_25 (date VARCHAR, loss VARCHAR)
What was the date of the game that had a loss of Politte (0-2)?
SELECT opponent FROM table_name_93 WHERE loss = "hendrickson (0-1)"
CREATE TABLE table_name_93 (opponent VARCHAR, loss VARCHAR)
Who was the opponent at the game that had a loss of Hendrickson (0-1)?
SELECT MIN(attendance) FROM table_name_7 WHERE record = "7-15"
CREATE TABLE table_name_7 (attendance INTEGER, record VARCHAR)
What was the smallest attendance at a game when the record was 7-15?
SELECT AVG(attendance) FROM table_name_71 WHERE record = "6-13"
CREATE TABLE table_name_71 (attendance INTEGER, record VARCHAR)
What was the average attendance at a game when the record was 6-13?
SELECT SUM(yield), _neutrons_per_fission FROM table_name_77 WHERE decay_constant__s_−1__ < 0.301 AND half_life__s_ = 22.72 AND group > 2
CREATE TABLE table_name_77 (_neutrons_per_fission VARCHAR, yield INTEGER, group VARCHAR, decay_constant__s_−1__ VARCHAR, half_life__s_ VARCHAR)
What is the yield, neutrons per fission of the group with decay constants less than 0.301, a half-life of 22.72, and a group number larger than 2?
SELECT MAX(overall) FROM table_name_38 WHERE round = 3 AND pick__number > 10
CREATE TABLE table_name_38 (overall INTEGER, round VARCHAR, pick__number VARCHAR)
With Round 3 and Pick # over 10, what is the higher Overall number?
SELECT MAX(round) FROM table_name_18 WHERE college = "nebraska" AND overall < 190
CREATE TABLE table_name_18 (round INTEGER, college VARCHAR, overall VARCHAR)
What is the highest round for College of Nebraska if the Overall is under 190?
SELECT college FROM table_name_34 WHERE pick__number = 1 AND overall > 1 AND round = 7
CREATE TABLE table_name_34 (college VARCHAR, round VARCHAR, pick__number VARCHAR, overall VARCHAR)
Which college has a Pick # 1, Overall more than one, and Round is 7?
SELECT SUM(attendance) FROM table_name_43 WHERE date = "21 august 2004"
CREATE TABLE table_name_43 (attendance INTEGER, date VARCHAR)
What was the attendance on 21 August 2004?
SELECT AVG(rank) FROM table_name_76 WHERE time > 53.38
CREATE TABLE table_name_76 (rank INTEGER, time INTEGER)
What is the average rank of an athlete that holds a time higher than 53.38?
SELECT MAX(lane) FROM table_name_43 WHERE time = 52.84
CREATE TABLE table_name_43 (lane INTEGER, time VARCHAR)
What lane did the swimmer with a time of 52.84 have?
SELECT MAX(lane) FROM table_name_57 WHERE rank = 3
CREATE TABLE table_name_57 (lane INTEGER, rank VARCHAR)
What lane did the rank 3 swimmer use?
SELECT opponent FROM table_name_3 WHERE date = "july 15"
CREATE TABLE table_name_3 (opponent VARCHAR, date VARCHAR)
Which opponent played on July 15?
SELECT place FROM table_name_94 WHERE player = "jimmy demaret"
CREATE TABLE table_name_94 (place VARCHAR, player VARCHAR)
Where has Jimmy Demaret as a player?
SELECT COUNT(money___) AS $__ FROM table_name_94 WHERE country = "united states" AND player = "byron nelson"
CREATE TABLE table_name_94 (money___ VARCHAR, country VARCHAR, player VARCHAR)
How much does it cost for United States and Byron nelson?
SELECT country FROM table_name_11 WHERE place = "t8" AND player = "byron nelson"
CREATE TABLE table_name_11 (country VARCHAR, place VARCHAR, player VARCHAR)
Which Country has a Place of t8 and byron nelson?
SELECT AVG(pop_¹) FROM table_name_75 WHERE region = "chūgoku" AND prefecture = "okayama"
CREATE TABLE table_name_75 (pop_¹ INTEGER, region VARCHAR, prefecture VARCHAR)
Name the average pop for chūgoku and prefecture of okayama
SELECT MAX(pop_¹) FROM table_name_11 WHERE prefecture = "tottori"
CREATE TABLE table_name_11 (pop_¹ INTEGER, prefecture VARCHAR)
Name the highest pop for tottori
SELECT SUM(pop_¹) FROM table_name_13 WHERE prefecture = "shizuoka"
CREATE TABLE table_name_13 (pop_¹ INTEGER, prefecture VARCHAR)
Name the sum of pop for shizuoka
SELECT COUNT(pop_¹) FROM table_name_10 WHERE prefecture = "ibaraki"
CREATE TABLE table_name_10 (pop_¹ VARCHAR, prefecture VARCHAR)
Name the total number of pop for ibaraki
SELECT mascot FROM table_name_16 WHERE location = "mishawaka"
CREATE TABLE table_name_16 (mascot VARCHAR, location VARCHAR)
Who is the mascot for Mishawaka?
SELECT previous_conference FROM table_name_67 WHERE school = "penn"
CREATE TABLE table_name_67 (previous_conference VARCHAR, school VARCHAR)
Which previous conference is associated with Penn school?
SELECT location FROM table_name_97 WHERE county = "71 st. joseph" AND school = "south bend washington"
CREATE TABLE table_name_97 (location VARCHAR, county VARCHAR, school VARCHAR)
Which location is in 71 St. Joseph county with South Bend Washington school?
SELECT mascot FROM table_name_8 WHERE school = "south bend clay"
CREATE TABLE table_name_8 (mascot VARCHAR, school VARCHAR)
What is the mascot for South Bend Clay?
SELECT street_address FROM table_name_13 WHERE architect = "edmund woolley and andrew hamilton"
CREATE TABLE table_name_13 (street_address VARCHAR, architect VARCHAR)
What was the address of the building with architects Edmund Woolley and Andrew Hamilton?
SELECT years_as_tallest FROM table_name_78 WHERE name = "tenth presbyterian church"
CREATE TABLE table_name_78 (years_as_tallest VARCHAR, name VARCHAR)
How many years as tallest building was the Tenth Presbyterian Church?
SELECT years_as_tallest FROM table_name_6 WHERE name = "independence hall"
CREATE TABLE table_name_6 (years_as_tallest VARCHAR, name VARCHAR)
How many years as tallest building was Independence Hall?
SELECT height_ft__m_ FROM table_name_69 WHERE name = "tenth presbyterian church"
CREATE TABLE table_name_69 (height_ft__m_ VARCHAR, name VARCHAR)
What is the height of the Tenth Presbyterian Church?
SELECT record FROM table_name_63 WHERE loss = "plesac (1-5)"
CREATE TABLE table_name_63 (record VARCHAR, loss VARCHAR)
For the Loss of Plesac (1-5), what is the Record?
SELECT record FROM table_name_18 WHERE loss = "plesac (1-5)"
CREATE TABLE table_name_18 (record VARCHAR, loss VARCHAR)
For the Loss of Plesac (1-5), what is the Record?
SELECT entrant FROM table_name_98 WHERE year < 1990 AND chassis = "eurobrun er189"
CREATE TABLE table_name_98 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)
Name the entrant for year less than 1990 and chassis of eurobrun er189
SELECT engine FROM table_name_57 WHERE year < 1990 AND chassis = "eurobrun er189"
CREATE TABLE table_name_57 (engine VARCHAR, year VARCHAR, chassis VARCHAR)
Name the engine for years before 1990 and chassis of eurobrun er189
SELECT MIN(touchdowns) FROM table_name_79 WHERE receptions = 51 AND games_started < 16
CREATE TABLE table_name_79 (touchdowns INTEGER, receptions VARCHAR, games_started VARCHAR)
With games started smaller than 16 plus receptions of 51, what is the smallest amount of touchdowns listed?
SELECT MAX(games_played) FROM table_name_9 WHERE receptions = 6 AND games_started = 10 AND fumbles < 3
CREATE TABLE table_name_9 (games_played INTEGER, fumbles VARCHAR, receptions VARCHAR, games_started VARCHAR)
What are the highest number of games played that had game starts of 10, receptions of 6 and fumbles smaller than 3?
SELECT date FROM table_name_66 WHERE casualties = "1 wia" AND circumstances = "ied" AND location = "15km nw of pol-e khomri"
CREATE TABLE table_name_66 (date VARCHAR, location VARCHAR, casualties VARCHAR, circumstances VARCHAR)
When was the location 15km NW of Pol-E Khomri, the circumstaances IED and the casualties of 1 WIA?
SELECT date FROM table_name_17 WHERE location = "pol-e khomri"
CREATE TABLE table_name_17 (date VARCHAR, location VARCHAR)
When was the incident in Pol-E Khomri?
SELECT nature_of_incident FROM table_name_99 WHERE location = "imam sahib area, kunduz province"
CREATE TABLE table_name_99 (nature_of_incident VARCHAR, location VARCHAR)
What was the incident in imam sahib area, kunduz province?
SELECT gender FROM table_name_14 WHERE romanized_name = "kim yoon-yeong"
CREATE TABLE table_name_14 (gender VARCHAR, romanized_name VARCHAR)
What gender has Romanized name and kim yoon-yeong?
SELECT MIN(year) FROM table_name_97 WHERE team = "baltimore ravens" AND games < 15
CREATE TABLE table_name_97 (year INTEGER, team VARCHAR, games VARCHAR)
What year did Willis McGahee play fewer than 15 games with the Baltimore Ravens?
SELECT MIN(games) FROM table_name_81 WHERE year > 2013
CREATE TABLE table_name_81 (games INTEGER, year INTEGER)
After the 2013 season, what was the fewest number of games that Willis McGahee played in a single season?
SELECT result FROM table_name_32 WHERE competition = "2006 fifa world cup qualifier" AND venue = "warner park sporting complex, bassaterre"
CREATE TABLE table_name_32 (result VARCHAR, competition VARCHAR, venue VARCHAR)
What is the result when the competition was the 2006 fifa world cup qualifier, and a Venue of warner park sporting complex, bassaterre?
SELECT venue FROM table_name_98 WHERE competition = "friendly" AND result = "2–3"
CREATE TABLE table_name_98 (venue VARCHAR, competition VARCHAR, result VARCHAR)
What is the name of the venue when the competition was friendly, with a Result of 2–3?
SELECT venue FROM table_name_21 WHERE score = "5–0" AND competition = "2007 caribbean cup qualifier"
CREATE TABLE table_name_21 (venue VARCHAR, score VARCHAR, competition VARCHAR)
What is the name of the venue when the score was 5–0, and a Competition of 2007 caribbean cup qualifier?