question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which county has the mascot of Bruins?
CREATE TABLE table_name_81 (county VARCHAR, mascot VARCHAR)
SELECT county FROM table_name_81 WHERE mascot = "bruins"
Which school joined in 1971 and left in 1975?
CREATE TABLE table_name_15 (school VARCHAR, year_joined VARCHAR, year_left VARCHAR)
SELECT school FROM table_name_15 WHERE year_joined = "1971" AND year_left = "1975"
Which IHSAA class A school are the Cavaliers from?
CREATE TABLE table_name_38 (county VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR)
SELECT county FROM table_name_38 WHERE ihsaa_class = "a" AND mascot = "cavaliers"
Which county do the Trojans come from?
CREATE TABLE table_name_87 (county VARCHAR, mascot VARCHAR)
SELECT county FROM table_name_87 WHERE mascot = "trojans"
What is the average ranking for a react of 0.17300000000000001 and less than 5 lanes?
CREATE TABLE table_name_78 (rank INTEGER, react VARCHAR, lane VARCHAR)
SELECT AVG(rank) FROM table_name_78 WHERE react = 0.17300000000000001 AND lane < 5
What was the 4th day in the year before 2012 that the finish is 33rd?
CREATE TABLE table_name_52 (year VARCHAR, finish_position VARCHAR)
SELECT 4 AS th_day FROM table_name_52 WHERE year < 2012 AND finish_position = "33rd"
What is the sum of gold medals won by teams that won 5 total medals and fewer than 2 bronze medals?
CREATE TABLE table_name_23 (gold INTEGER, total VARCHAR, bronze VARCHAR)
SELECT SUM(gold) FROM table_name_23 WHERE total = 5 AND bronze < 2
What is the sum of gold medals won by teams that won fewer than 3 silver medals, more than 1 total medal, and rank 10?
CREATE TABLE table_name_51 (gold INTEGER, total VARCHAR, silver VARCHAR, rank VARCHAR)
SELECT SUM(gold) FROM table_name_51 WHERE silver < 3 AND rank = "10" AND total > 1
What nation won fewer than 14 total medals, 1 silver medal, and rank 5?
CREATE TABLE table_name_62 (nation VARCHAR, rank VARCHAR, total VARCHAR, silver VARCHAR)
SELECT nation FROM table_name_62 WHERE total < 14 AND silver = 1 AND rank = "5"
Which IHSAA Football Class has an IHSAA Class of aa, and an Enrollment of 475?
CREATE TABLE table_name_14 (ihsaa_football_class VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR)
SELECT ihsaa_football_class FROM table_name_14 WHERE ihsaa_class = "aa" AND enrollment = 475
Which School has a Location of peru?
CREATE TABLE table_name_37 (school VARCHAR, location VARCHAR)
SELECT school FROM table_name_37 WHERE location = "peru"
Which Mascot has an IHSAA Class of aaa, and a Location of russiaville?
CREATE TABLE table_name_53 (mascot VARCHAR, ihsaa_class VARCHAR, location VARCHAR)
SELECT mascot FROM table_name_53 WHERE ihsaa_class = "aaa" AND location = "russiaville"
Which IHSAA Class has a School of taylor?
CREATE TABLE table_name_51 (ihsaa_class VARCHAR, school VARCHAR)
SELECT ihsaa_class FROM table_name_51 WHERE school = "taylor"
what is the date when the opponent is leeds united?
CREATE TABLE table_name_80 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_80 WHERE opponent = "leeds united"
what is the date when scorers is parkinson?
CREATE TABLE table_name_23 (date VARCHAR, scorers VARCHAR)
SELECT date FROM table_name_23 WHERE scorers = "parkinson"
who is the opponent on 31 jul?
CREATE TABLE table_name_43 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_43 WHERE date = "31 jul"
what is the result when the opponent is blackburn rovers?
CREATE TABLE table_name_39 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_39 WHERE opponent = "blackburn rovers"
What was the result on week 6?
CREATE TABLE table_name_42 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_42 WHERE week = 6
What is the sum on week against the Tampa Bay Buccaneers with less than 60,320 in attendance?
CREATE TABLE table_name_41 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
SELECT SUM(week) FROM table_name_41 WHERE opponent = "tampa bay buccaneers" AND attendance < 60 OFFSET 320
What is the highest week with a w 33-14 result?
CREATE TABLE table_name_38 (week INTEGER, result VARCHAR)
SELECT MAX(week) FROM table_name_38 WHERE result = "w 33-14"
What percentage of users were using Netscape during the period in which 21.67% were using Firefox?
CREATE TABLE table_name_45 (netscape VARCHAR, firefox VARCHAR)
SELECT netscape FROM table_name_45 WHERE firefox = "21.67%"
What percentage of users were using Safari during the period in which 2.33% were using Opera?
CREATE TABLE table_name_3 (safari VARCHAR, opera VARCHAR)
SELECT safari FROM table_name_3 WHERE opera = "2.33%"
What percentage of users were using Netscape during the period in which 63.67% were using Internet Explorer?
CREATE TABLE table_name_54 (netscape VARCHAR, internet_explorer VARCHAR)
SELECT netscape FROM table_name_54 WHERE internet_explorer = "63.67%"
What percentage of users were using Firefox during the period in which *0.77% were using Netscape?
CREATE TABLE table_name_8 (firefox VARCHAR, netscape VARCHAR)
SELECT firefox FROM table_name_8 WHERE netscape = "*0.77%"
What percentage of users were using other Mozilla browsers during the period in which 2.29% were using Opera?
CREATE TABLE table_name_97 (other_mozilla VARCHAR, opera VARCHAR)
SELECT other_mozilla FROM table_name_97 WHERE opera = "2.29%"
What percentage of users were using Opera during the period in which 63.67% were using Internet Explorer?
CREATE TABLE table_name_59 (opera VARCHAR, internet_explorer VARCHAR)
SELECT opera FROM table_name_59 WHERE internet_explorer = "63.67%"
Which Country has Entities of emsa?
CREATE TABLE table_name_57 (country VARCHAR, entities VARCHAR)
SELECT country FROM table_name_57 WHERE entities = "emsa"
Which Power (MW) has a Voltage (kV) of 500, and a Country of argentina?
CREATE TABLE table_name_26 (power__mw_ INTEGER, voltage__kv_ VARCHAR, country VARCHAR)
SELECT AVG(power__mw_) FROM table_name_26 WHERE voltage__kv_ = 500 AND country = "argentina"
How much Voltage (kV) has a Country of argentina, and a Power (MW) larger than 30, and a Supply point of yacyretá?
CREATE TABLE table_name_44 (voltage__kv_ VARCHAR, supply_point VARCHAR, country VARCHAR, power__mw_ VARCHAR)
SELECT COUNT(voltage__kv_) FROM table_name_44 WHERE country = "argentina" AND power__mw_ > 30 AND supply_point = "yacyretá"
What is the lowest number for the english word Aquarius?
CREATE TABLE table_name_32 (number INTEGER, western_name VARCHAR)
SELECT MIN(number) FROM table_name_32 WHERE western_name = "aquarius"
What is the Sanskrit for the Greek word λέων?
CREATE TABLE table_name_98 (sanskrit VARCHAR, greek VARCHAR)
SELECT sanskrit FROM table_name_98 WHERE greek = "λέων"
What date has wrexham as the home team?
CREATE TABLE table_name_69 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_69 WHERE home_team = "wrexham"
What away team has 7 as the tie no.?
CREATE TABLE table_name_38 (away_team VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_name_38 WHERE tie_no = "7"
What away team has wrexham as the home team?
CREATE TABLE table_name_44 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_44 WHERE home_team = "wrexham"
What home team has 6 as the tie no.?
CREATE TABLE table_name_82 (home_team VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_82 WHERE tie_no = "6"
What was the kickoff time for the December 14, 2003 game?
CREATE TABLE table_name_82 (kickoff_time VARCHAR, date VARCHAR)
SELECT kickoff_time FROM table_name_82 WHERE date = "december 14, 2003"
What is Zimbabwe's rank?
CREATE TABLE table_name_33 (rank VARCHAR, nationality VARCHAR)
SELECT rank FROM table_name_33 WHERE nationality = "zimbabwe"
What is Meagen Nay's rank with a lane greater than 5?
CREATE TABLE table_name_85 (rank INTEGER, name VARCHAR, lane VARCHAR)
SELECT SUM(rank) FROM table_name_85 WHERE name = "meagen nay" AND lane > 5
What is the debut year for the player with fewer than 54 games, fewer than 8 goals and 1989 at club?
CREATE TABLE table_name_6 (debut_year INTEGER, goals VARCHAR, games VARCHAR, years_at_club VARCHAR)
SELECT AVG(debut_year) FROM table_name_6 WHERE games < 54 AND years_at_club = "1989" AND goals < 8
What are the years for the player with fewer than 62 goals, debut year of 1981 and 28 games?
CREATE TABLE table_name_61 (years_at_club VARCHAR, games VARCHAR, goals VARCHAR, debut_year VARCHAR)
SELECT years_at_club FROM table_name_61 WHERE goals < 62 AND debut_year = 1981 AND games = 28
What is the debut year of Mark Eaves?
CREATE TABLE table_name_10 (debut_year INTEGER, player VARCHAR)
SELECT MIN(debut_year) FROM table_name_10 WHERE player = "mark eaves"
Which Player has a Total of 9, and an Opposition of offaly?
CREATE TABLE table_name_5 (player VARCHAR, total VARCHAR, opposition VARCHAR)
SELECT player FROM table_name_5 WHERE total = 9 AND opposition = "offaly"
Which County has an Opposition of offaly?
CREATE TABLE table_name_64 (county VARCHAR, opposition VARCHAR)
SELECT county FROM table_name_64 WHERE opposition = "offaly"
Which Player has a Total smaller than 11, and a Tally of 0-9?
CREATE TABLE table_name_21 (player VARCHAR, total VARCHAR, tally VARCHAR)
SELECT player FROM table_name_21 WHERE total < 11 AND tally = "0-9"
What country has todd hamilton as the player?
CREATE TABLE table_name_90 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_90 WHERE player = "todd hamilton"
What country has david toms as the player?
CREATE TABLE table_name_43 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_43 WHERE player = "david toms"
Which date was a rest day?
CREATE TABLE table_name_81 (date VARCHAR, course VARCHAR)
SELECT date FROM table_name_81 WHERE course = "rest day"
What is the location for 2012?
CREATE TABLE table_name_13 (location VARCHAR, year VARCHAR)
SELECT location FROM table_name_13 WHERE year = 2012
What are the rounds for champion New Zealand (130 points)?
CREATE TABLE table_name_1 (rounds INTEGER, champion VARCHAR)
SELECT AVG(rounds) FROM table_name_1 WHERE champion = "new zealand (130 points)"
For which season is Tim Mikkelson player of the year?
CREATE TABLE table_name_87 (season VARCHAR, player_of_the_year VARCHAR)
SELECT season FROM table_name_87 WHERE player_of_the_year = "tim mikkelson"
What company collaborated in SBI-087 for rheumatoid arthritis?
CREATE TABLE table_name_7 (collaboration VARCHAR, name VARCHAR, indication VARCHAR)
SELECT collaboration FROM table_name_7 WHERE name = "sbi-087" AND indication = "rheumatoid arthritis"
What company collaborated in non-hodgkin lymphoma?
CREATE TABLE table_name_63 (collaboration VARCHAR, indication VARCHAR)
SELECT collaboration FROM table_name_63 WHERE indication = "non-hodgkin lymphoma"
What company collaborated in pre-clinical autoimmune disease and inflammation?
CREATE TABLE table_name_99 (collaboration VARCHAR, status VARCHAR, indication VARCHAR)
SELECT collaboration FROM table_name_99 WHERE status = "pre-clinical" AND indication = "autoimmune disease and inflammation"
Which study included autoimmune disease and inflammation?
CREATE TABLE table_name_41 (name VARCHAR, indication VARCHAR)
SELECT name FROM table_name_41 WHERE indication = "autoimmune disease and inflammation"
What did the phase 2b status target?
CREATE TABLE table_name_50 (indication VARCHAR, status VARCHAR)
SELECT indication FROM table_name_50 WHERE status = "phase 2b"
What company collaborated with non-hodgkin lymphoma?
CREATE TABLE table_name_5 (collaboration VARCHAR, indication VARCHAR)
SELECT collaboration FROM table_name_5 WHERE indication = "non-hodgkin lymphoma"
what is the average water sqmi with a population (2010) more than 47 in the Brenna Township with Longitude less than -97.171507
CREATE TABLE table_name_8 (water__sqmi_ INTEGER, longitude VARCHAR, pop__2010_ VARCHAR, township VARCHAR)
SELECT AVG(water__sqmi_) FROM table_name_8 WHERE pop__2010_ > 47 AND township = "brenna" AND longitude < -97.171507
what is the latitude for the berlin township with a geo id less than 3801706260
CREATE TABLE table_name_62 (latitude VARCHAR, township VARCHAR, geo_id VARCHAR)
SELECT COUNT(latitude) FROM table_name_62 WHERE township = "berlin" AND geo_id < 3801706260
what is the highest ANSI code with a latitude more than 47.623288 and a geo id more than 3805508060 with land (sqmi) more than 35.66 and a longitude less than -102.054248
CREATE TABLE table_name_98 (ansi_code INTEGER, longitude VARCHAR, land___sqmi__ VARCHAR, latitude VARCHAR, geo_id VARCHAR)
SELECT MAX(ansi_code) FROM table_name_98 WHERE latitude > 47.623288 AND geo_id > 3805508060 AND land___sqmi__ > 35.66 AND longitude < -102.054248
what is the lowest latitude for the land sqmi less than 32.696 and a water sqmi less than 0
CREATE TABLE table_name_97 (latitude INTEGER, land___sqmi__ VARCHAR, water__sqmi_ VARCHAR)
SELECT MIN(latitude) FROM table_name_97 WHERE land___sqmi__ < 32.696 AND water__sqmi_ < 0
What's the sum of Quantity for the Class of 1928 of CI-30?
CREATE TABLE table_name_1 (quantity INTEGER, class_from_1928 VARCHAR)
SELECT SUM(quantity) FROM table_name_1 WHERE class_from_1928 = "ci-30"
What Class to 1928 has the Quantity smaller than 440 and Seats of 29/29?
CREATE TABLE table_name_16 (class_to_1928 VARCHAR, quantity VARCHAR, seats VARCHAR)
SELECT class_to_1928 FROM table_name_16 WHERE quantity < 440 AND seats = "29/29"
What is the best fit (all data) when the parameter shows fluctuation amplitude at 8h −1 mpc?
CREATE TABLE table_name_18 (best_fit__all_data_ VARCHAR, parameter VARCHAR)
SELECT best_fit__all_data_ FROM table_name_18 WHERE parameter = "fluctuation amplitude at 8h −1 mpc"
What is the best fit (WMAP, extra parameter)when the best fit (all data) is .0224 ± .0009?
CREATE TABLE table_name_92 (best_fit__wmap VARCHAR, _extra_parameter_ VARCHAR, best_fit__all_data_ VARCHAR)
SELECT best_fit__wmap, _extra_parameter_ FROM table_name_92 WHERE best_fit__all_data_ = ".0224 ± .0009"
What is the parameter when the best fit (WMAP only) is .9 ± .1, and symbol is a?
CREATE TABLE table_name_94 (parameter VARCHAR, best_fit__wmap_only_ VARCHAR, symbol VARCHAR)
SELECT parameter FROM table_name_94 WHERE best_fit__wmap_only_ = ".9 ± .1" AND symbol = "a"
What is the highest heat for more than 3 lanes and a time of 2:09.12?
CREATE TABLE table_name_23 (heat INTEGER, lane VARCHAR, time VARCHAR)
SELECT MAX(heat) FROM table_name_23 WHERE lane > 3 AND time = "2:09.12"
What is Russia's time with a heat higher than 3?
CREATE TABLE table_name_21 (time VARCHAR, nationality VARCHAR, heat VARCHAR)
SELECT time FROM table_name_21 WHERE nationality = "russia" AND heat > 3
What is Hungary's time with a heat higher than 2 and two lanes?
CREATE TABLE table_name_45 (time VARCHAR, lane VARCHAR, heat VARCHAR, nationality VARCHAR)
SELECT time FROM table_name_45 WHERE heat > 2 AND nationality = "hungary" AND lane = 2
When the name is badnawar, and the reserved for (sc / st /none) of none what is the constituency number?
CREATE TABLE table_name_86 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
SELECT constituency_number FROM table_name_86 WHERE reserved_for___sc___st__none_ = "none" AND name = "badnawar"
What is the number of electorates when the name is badnawar?
CREATE TABLE table_name_61 (number_of_electorates__2009_ VARCHAR, name VARCHAR)
SELECT number_of_electorates__2009_ FROM table_name_61 WHERE name = "badnawar"
What is the average number of electorates (2009) when the district is indore?
CREATE TABLE table_name_58 (number_of_electorates__2009_ INTEGER, district VARCHAR)
SELECT AVG(number_of_electorates__2009_) FROM table_name_58 WHERE district = "indore"
What is the name when the reserved is (sc / st /none) of st, with a constituency number 196?
CREATE TABLE table_name_77 (name VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
SELECT name FROM table_name_77 WHERE reserved_for___sc___st__none_ = "st" AND constituency_number = "196"
What is the nationality for rank 27?
CREATE TABLE table_name_79 (nationality VARCHAR, rank VARCHAR)
SELECT nationality FROM table_name_79 WHERE rank = 27
What is the sum rating with more than 1 comp for mark miller?
CREATE TABLE table_name_78 (rating VARCHAR, player VARCHAR, comp VARCHAR)
SELECT COUNT(rating) FROM table_name_78 WHERE player = "mark miller" AND comp > 1
What is the games average with less than 3.8 in rating and less than 9 yards?
CREATE TABLE table_name_70 (games INTEGER, rating VARCHAR, yards VARCHAR)
SELECT AVG(games) FROM table_name_70 WHERE rating < 3.8 AND yards < 9
What is the average rating for john kidd with more than 0 yards?
CREATE TABLE table_name_51 (rating INTEGER, player VARCHAR, yards VARCHAR)
SELECT AVG(rating) FROM table_name_51 WHERE player = "john kidd" AND yards > 0
Which Share of seats has a European election (UK) of 2009?
CREATE TABLE table_name_79 (share_of_seats VARCHAR, european_election__uk_ VARCHAR)
SELECT share_of_seats FROM table_name_79 WHERE european_election__uk_ = 2009
Which European election (UK) has a Share of votes of 19%?
CREATE TABLE table_name_41 (european_election__uk_ VARCHAR, share_of_votes VARCHAR)
SELECT european_election__uk_ FROM table_name_41 WHERE share_of_votes = "19%"
What is the fewest bronzes for ranks of 3 with totals under 2?
CREATE TABLE table_name_58 (bronze INTEGER, rank VARCHAR, total VARCHAR)
SELECT MIN(bronze) FROM table_name_58 WHERE rank = "3" AND total < 2
Which rank is Austria?
CREATE TABLE table_name_42 (rank VARCHAR, nation VARCHAR)
SELECT rank FROM table_name_42 WHERE nation = "austria"
What is the sum of bronzes for countries with 1 gold and under 1 silver?
CREATE TABLE table_name_19 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
SELECT SUM(bronze) FROM table_name_19 WHERE gold = 1 AND silver < 1
What is the total number of totals for nations with 1 silver and more than 1 bronze?
CREATE TABLE table_name_4 (total VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT COUNT(total) FROM table_name_4 WHERE bronze > 1 AND silver = 1
What is the Nationality of the athlete in 1999 Fort-de-France in the Triple Jump?
CREATE TABLE table_name_12 (nationality VARCHAR, games VARCHAR, event VARCHAR)
SELECT nationality FROM table_name_12 WHERE games = "1999 fort-de-france" AND event = "triple jump"
What is the Date of the athlete in the shot put Event?
CREATE TABLE table_name_19 (date VARCHAR, event VARCHAR)
SELECT date FROM table_name_19 WHERE event = "shot put"
What District has a Member with a First Election date of 1985?
CREATE TABLE table_name_43 (district VARCHAR, position VARCHAR, first_election VARCHAR)
SELECT district FROM table_name_43 WHERE position = "member" AND first_election = "1985"
What Party is Member Alicia Hughes from?
CREATE TABLE table_name_95 (party VARCHAR, position VARCHAR, name VARCHAR)
SELECT party FROM table_name_95 WHERE position = "member" AND name = "alicia hughes"
What Position does First Elected in 2003 William D. Euille hold ?
CREATE TABLE table_name_42 (position VARCHAR, first_election VARCHAR, name VARCHAR)
SELECT position FROM table_name_42 WHERE first_election = "2003" AND name = "william d. euille"
What is Kerry J. Donley's First Election date?
CREATE TABLE table_name_23 (first_election VARCHAR, name VARCHAR)
SELECT first_election FROM table_name_23 WHERE name = "kerry j. donley"
What is Kerry J. Donley's Party?
CREATE TABLE table_name_48 (party VARCHAR, name VARCHAR)
SELECT party FROM table_name_48 WHERE name = "kerry j. donley"
What is the Position of the person with a First Election of 1988 as Vice Mayor 2009?
CREATE TABLE table_name_64 (position VARCHAR, first_election VARCHAR)
SELECT position FROM table_name_64 WHERE first_election = "1988 as vice mayor 2009"
What are the final points a 0 total and 22 draws?
CREATE TABLE table_name_60 (final_points VARCHAR, total VARCHAR, draw VARCHAR)
SELECT final_points FROM table_name_60 WHERE total = "0" AND draw = 22
Who received 6,131 televotes?
CREATE TABLE table_name_1 (televote_points VARCHAR, televotes VARCHAR)
SELECT televote_points FROM table_name_1 WHERE televotes = "6,131"
What are televotes for 1 draw?
CREATE TABLE table_name_74 (televotes VARCHAR, draw VARCHAR)
SELECT televotes FROM table_name_74 WHERE draw = 1
What is the draw for the artist Ketil Stokkan which has less than 44 points?
CREATE TABLE table_name_89 (draw INTEGER, artist VARCHAR, points VARCHAR)
SELECT MIN(draw) FROM table_name_89 WHERE artist = "ketil stokkan" AND points < 44
Which artist speaks croatian?
CREATE TABLE table_name_32 (artist VARCHAR, language VARCHAR)
SELECT artist FROM table_name_32 WHERE language = "croatian"
Which Score has High points of douglas (15)?
CREATE TABLE table_name_90 (score VARCHAR, high_points VARCHAR)
SELECT score FROM table_name_90 WHERE high_points = "douglas (15)"
Which High assists have a Game larger than 21, and a Record of 18-6?
CREATE TABLE table_name_21 (high_assists VARCHAR, game VARCHAR, record VARCHAR)
SELECT high_assists FROM table_name_21 WHERE game > 21 AND record = "18-6"
Which Record has a Location of madison square garden?
CREATE TABLE table_name_8 (record VARCHAR, location VARCHAR)
SELECT record FROM table_name_8 WHERE location = "madison square garden"
Which 2012 has a 2009 smaller than 3.38?
CREATE TABLE table_name_33 (Id VARCHAR)
SELECT AVG(2012) FROM table_name_33 WHERE 2009 < 3.38
Which 2009 has a 2012 larger than 9,265?
CREATE TABLE table_name_61 (Id VARCHAR)
SELECT MAX(2009) FROM table_name_61 WHERE 2012 > 9 OFFSET 265