question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the average number of Tries for Nathan McAvoy?
CREATE TABLE table_name_60 (tries INTEGER, player VARCHAR)
SELECT AVG(tries) FROM table_name_60 WHERE player = "nathan mcavoy"
What is the average number of Tries with less than 28 Points for Mike Forshaw?
CREATE TABLE table_name_79 (tries INTEGER, player VARCHAR, points VARCHAR)
SELECT AVG(tries) FROM table_name_79 WHERE player = "mike forshaw" AND points < 28
What position did the player from the saskatchewan roughriders (via toronto) play?
CREATE TABLE table_name_31 (position VARCHAR, cfl_team VARCHAR)
SELECT position FROM table_name_31 WHERE cfl_team = "saskatchewan roughriders (via toronto)"
What numbered pick was dominic picard, ol, selected?
CREATE TABLE table_name_8 (pick__number VARCHAR, position VARCHAR, player VARCHAR)
SELECT pick__number FROM table_name_8 WHERE position = "ol" AND player = "dominic picard"
Name the date which has a home team of north melbourne
CREATE TABLE table_name_3 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_3 WHERE home_team = "north melbourne"
Name the away team for home team of fitzroy
CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_17 WHERE home_team = "fitzroy"
What was the score for the away team that played at Glenferrie Oval?
CREATE TABLE table_name_27 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_27 WHERE venue = "glenferrie oval"
When was the attendance at a venue bigger than 35,151?
CREATE TABLE table_name_36 (date VARCHAR, crowd INTEGER)
SELECT date FROM table_name_36 WHERE crowd > 35 OFFSET 151
Tell me the total number of Laps for Qual being larger than 142.81 with Grid of 12
CREATE TABLE table_name_68 (laps VARCHAR, qual VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_68 WHERE qual > 142.81 AND grid = 12
Tell me the total number of Qual Laps higher than 93 with a Rank of 32 with Grid less than 32
CREATE TABLE table_name_16 (qual VARCHAR, grid VARCHAR, laps VARCHAR, rank VARCHAR)
SELECT COUNT(qual) FROM table_name_16 WHERE laps > 93 AND rank = 32 AND grid < 32
Tell me the payload that has an In service for 2011
CREATE TABLE table_name_99 (payload__kg_ VARCHAR, in_service VARCHAR)
SELECT payload__kg_ FROM table_name_99 WHERE in_service = "2011"
Tell me the dimension that has a range of 8,000 – 10,000
CREATE TABLE table_name_57 (dimension__m_ VARCHAR, range__km_ VARCHAR)
SELECT dimension__m_ FROM table_name_57 WHERE range__km_ = "8,000 – 10,000"
Name the project which has a missle of agni-iii
CREATE TABLE table_name_92 (project VARCHAR, missile VARCHAR)
SELECT project FROM table_name_92 WHERE missile = "agni-iii"
Name the payload that has a weight of 12,000
CREATE TABLE table_name_35 (payload__kg_ VARCHAR, weight__kg_ VARCHAR)
SELECT payload__kg_ FROM table_name_35 WHERE weight__kg_ = "12,000"
Name the typ for project of igmdp and weight of 16,000
CREATE TABLE table_name_65 (type VARCHAR, project VARCHAR, weight__kg_ VARCHAR)
SELECT type FROM table_name_65 WHERE project = "igmdp" AND weight__kg_ = "16,000"
What is the record of the game with Andrew Bogut (21) as the leading scorer?
CREATE TABLE table_name_43 (record VARCHAR, leading_scorer VARCHAR)
SELECT record FROM table_name_43 WHERE leading_scorer = "andrew bogut (21)"
Who was the home team of the game on 26 February 2008?
CREATE TABLE table_name_5 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_5 WHERE date = "26 february 2008"
Who is the leading scorer of the game on 9 February 2008?
CREATE TABLE table_name_31 (leading_scorer VARCHAR, date VARCHAR)
SELECT leading_scorer FROM table_name_31 WHERE date = "9 february 2008"
Who is the leading scorer of the game on 13 February 2008?
CREATE TABLE table_name_52 (leading_scorer VARCHAR, date VARCHAR)
SELECT leading_scorer FROM table_name_52 WHERE date = "13 february 2008"
Who is the visitor team of the game with Andrew Bogut (21) as the leading scorer?
CREATE TABLE table_name_97 (visitor VARCHAR, leading_scorer VARCHAR)
SELECT visitor FROM table_name_97 WHERE leading_scorer = "andrew bogut (21)"
What is the lowest number of events a tournament with more tha 5 cuts and less than 13 top-25 has?
CREATE TABLE table_name_75 (events INTEGER, cuts_made VARCHAR, top_25 VARCHAR)
SELECT MIN(events) FROM table_name_75 WHERE cuts_made > 5 AND top_25 < 13
What is the highest top-10 a tournament with 16 cuts and less than 13 top-25 has?
CREATE TABLE table_name_81 (top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR)
SELECT MAX(top_10) FROM table_name_81 WHERE cuts_made = 16 AND top_25 < 13
What is the top-25 of the U.S. open, which has less than 7 events?
CREATE TABLE table_name_93 (top_25 INTEGER, tournament VARCHAR, events VARCHAR)
SELECT SUM(top_25) FROM table_name_93 WHERE tournament = "u.s. open" AND events < 7
How many events does the tournament with a top-10 of 2 and more than 5 cuts have?
CREATE TABLE table_name_77 (events INTEGER, top_10 VARCHAR, cuts_made VARCHAR)
SELECT SUM(events) FROM table_name_77 WHERE top_10 = 2 AND cuts_made > 5
What Pick number is Rich Burtness?
CREATE TABLE table_name_26 (pick INTEGER, name VARCHAR)
SELECT AVG(pick) FROM table_name_26 WHERE name = "rich burtness"
What position is Kentucky State sitting in?
CREATE TABLE table_name_77 (position VARCHAR, school VARCHAR)
SELECT position FROM table_name_77 WHERE school = "kentucky state"
What is the density (hab/ km²) when the altitude m is 1300?
CREATE TABLE table_name_61 (density__hab__km²__ VARCHAR, altitude_m VARCHAR)
SELECT density__hab__km²__ FROM table_name_61 WHERE altitude_m = "1300"
What is the Distance Medellín Downtown (km) when the municipalities Envigado?
CREATE TABLE table_name_86 (distance_medellín_downtown___km__ VARCHAR, municipalities VARCHAR)
SELECT distance_medellín_downtown___km__ FROM table_name_86 WHERE municipalities = "envigado"
What is the density (hab/ km²) when the extension km² is 380,64?
CREATE TABLE table_name_22 (density__hab__km²__ VARCHAR, extension_km² VARCHAR)
SELECT density__hab__km²__ FROM table_name_22 WHERE extension_km² = "380,64"
What is the population (hab) when the distance medellin downtown (km) is * dane?
CREATE TABLE table_name_10 (population__hab_ VARCHAR, distance_medellín_downtown___km__ VARCHAR)
SELECT population__hab_ FROM table_name_10 WHERE distance_medellín_downtown___km__ = "* dane"
What is the Density (hab/ km²) when the population (hab) is 58 414*?
CREATE TABLE table_name_53 (density__hab__km²__ VARCHAR, population__hab_ VARCHAR)
SELECT density__hab__km²__ FROM table_name_53 WHERE population__hab_ = "58 414*"
What is the altitude for the distance medellin downtown (km) is 42?
CREATE TABLE table_name_10 (altitude_m VARCHAR, distance_medellín_downtown___km__ VARCHAR)
SELECT altitude_m FROM table_name_10 WHERE distance_medellín_downtown___km__ = "42"
How many have SHT number 5?
CREATE TABLE table_name_49 (quantity INTEGER, sht_nos VARCHAR)
SELECT MAX(quantity) FROM table_name_49 WHERE sht_nos = "5"
What GWR is associated with 4?
CREATE TABLE table_name_56 (gwr_nos VARCHAR, quantity VARCHAR)
SELECT gwr_nos FROM table_name_56 WHERE quantity = 4
What was the score on march 11?
CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_50 WHERE date = "march 11"
What is the nationality of the C?
CREATE TABLE table_name_79 (nationality VARCHAR, position VARCHAR)
SELECT nationality FROM table_name_79 WHERE position = "c"
What team has a player from Santa Clara?
CREATE TABLE table_name_82 (team VARCHAR, college VARCHAR)
SELECT team FROM table_name_82 WHERE college = "santa clara"
What round did the College of Minnesota pick?
CREATE TABLE table_name_27 (round VARCHAR, college VARCHAR)
SELECT round FROM table_name_27 WHERE college = "minnesota"
What team had Pick 2?
CREATE TABLE table_name_27 (team VARCHAR, pick VARCHAR)
SELECT team FROM table_name_27 WHERE pick = "2"
What nationality is the player from the College of Cincinnati?
CREATE TABLE table_name_6 (nationality VARCHAR, college VARCHAR)
SELECT nationality FROM table_name_6 WHERE college = "cincinnati"
Which player went to the college of Western Washington?
CREATE TABLE table_name_84 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_84 WHERE college = "western washington"
How much money did the player ranked above 3 with under 28 events earn?
CREATE TABLE table_name_43 (earnings___ VARCHAR, events VARCHAR, rank VARCHAR)
SELECT COUNT(earnings___) AS $__ FROM table_name_43 WHERE events < 28 AND rank < 3
What is the low win total for players ranked below 4?
CREATE TABLE table_name_17 (wins INTEGER, rank INTEGER)
SELECT MIN(wins) FROM table_name_17 WHERE rank > 4
Which name has a percentage of 0.59%?
CREATE TABLE table_name_28 (name VARCHAR, percentage VARCHAR)
SELECT name FROM table_name_28 WHERE percentage = "0.59%"
What is the exact number of Total that has a percentage of precisely 12.03%?
CREATE TABLE table_name_24 (total VARCHAR, percentage VARCHAR)
SELECT COUNT(total) FROM table_name_24 WHERE percentage = "12.03%"
What was the result on 1990-11-04?
CREATE TABLE table_name_55 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_55 WHERE date = "1990-11-04"
Who was the opponent in week 3?
CREATE TABLE table_name_34 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_34 WHERE week = 3
Where was the game on 1990-11-18?
CREATE TABLE table_name_26 (game_site VARCHAR, date VARCHAR)
SELECT game_site FROM table_name_26 WHERE date = "1990-11-18"
What is the average number of laps for grid 8?
CREATE TABLE table_name_69 (laps INTEGER, grid VARCHAR)
SELECT AVG(laps) FROM table_name_69 WHERE grid = 8
Who built the car that has a Time/Retired of 1:34:12.912?
CREATE TABLE table_name_88 (constructor VARCHAR, time_retired VARCHAR)
SELECT constructor FROM table_name_88 WHERE time_retired = "1:34:12.912"
What is the rd number where the reg GP is 0 and the pick is 150?
CREATE TABLE table_name_24 (rd__number VARCHAR, reg_gp VARCHAR, pick__number VARCHAR)
SELECT COUNT(rd__number) FROM table_name_24 WHERE reg_gp = 0 AND pick__number = 150
Where Result is nominated and Organization is 54th the television academy drama awards, what is the award?
CREATE TABLE table_name_80 (award VARCHAR, result VARCHAR, organization VARCHAR)
SELECT award FROM table_name_80 WHERE result = "nominated" AND organization = "54th the television academy drama awards"
Where Work is veterinarian dolittle, what is the Organization?
CREATE TABLE table_name_82 (organization VARCHAR, work VARCHAR)
SELECT organization FROM table_name_82 WHERE work = "veterinarian dolittle"
Where Award is newcomer actress, what is the work?
CREATE TABLE table_name_19 (work VARCHAR, award VARCHAR)
SELECT work FROM table_name_19 WHERE award = "newcomer actress"
Where Award is best actress and Work is first kiss, what is the average Year?
CREATE TABLE table_name_58 (year INTEGER, award VARCHAR, work VARCHAR)
SELECT AVG(year) FROM table_name_58 WHERE award = "best actress" AND work = "first kiss"
What round did the maccabi haifa fc club have?
CREATE TABLE table_name_58 (round VARCHAR, club VARCHAR)
SELECT round FROM table_name_58 WHERE club = "maccabi haifa fc"
What competition did the maccabi haifa fc club play?
CREATE TABLE table_name_87 (competition VARCHAR, club VARCHAR)
SELECT competition FROM table_name_87 WHERE club = "maccabi haifa fc"
What is the record of the game on March 5?
CREATE TABLE table_name_57 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_57 WHERE date = "march 5"
What is the home team of the game with the Raptors as the visitor team?
CREATE TABLE table_name_66 (home VARCHAR, visitor VARCHAR)
SELECT home FROM table_name_66 WHERE visitor = "raptors"
What competition was at puskás ferenc stadium , budapest , hungary, and a Score of 1–0?
CREATE TABLE table_name_91 (competition VARCHAR, venue VARCHAR, score VARCHAR)
SELECT competition FROM table_name_91 WHERE venue = "puskás ferenc stadium , budapest , hungary" AND score = "1–0"
Name the object type with an NGC number more than 6638 and right ascensions being 18h25m37.8s
CREATE TABLE table_name_72 (object_type VARCHAR, ngc_number VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT object_type FROM table_name_72 WHERE ngc_number > 6638 AND right_ascension___j2000__ = "18h25m37.8s"
Tell me the constellation which has a right ascension of 18h17m41.1s
CREATE TABLE table_name_54 (constellation VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT constellation FROM table_name_54 WHERE right_ascension___j2000__ = "18h17m41.1s"
What is the total number of Since with a Goals larger than 6, and a Name with deco?
CREATE TABLE table_name_57 (since VARCHAR, goals VARCHAR, name VARCHAR)
SELECT COUNT(since) FROM table_name_57 WHERE goals > 6 AND name = "deco"
What is the average Ends with a Since of 2003, and a Name with márquez?
CREATE TABLE table_name_93 (ends INTEGER, since VARCHAR, name VARCHAR)
SELECT AVG(ends) FROM table_name_93 WHERE since = 2003 AND name = "márquez"
What is the sum of Ends with a Name of abidal, and has a Since larger than 2007?
CREATE TABLE table_name_58 (ends INTEGER, name VARCHAR, since VARCHAR)
SELECT SUM(ends) FROM table_name_58 WHERE name = "abidal" AND since > 2007
Which finish has a Record of 74-68?
CREATE TABLE table_name_35 (finish VARCHAR, record VARCHAR)
SELECT finish FROM table_name_35 WHERE record = "74-68"
What is the total of the year with a Team of johnson city yankees, and a Finish of 6th?
CREATE TABLE table_name_33 (year INTEGER, team VARCHAR, finish VARCHAR)
SELECT SUM(year) FROM table_name_33 WHERE team = "johnson city yankees" AND finish = "6th"
Which record has a Team of manchester yankees?
CREATE TABLE table_name_43 (record VARCHAR, team VARCHAR)
SELECT record FROM table_name_43 WHERE team = "manchester yankees"
Which organization has a Finish of 4th?
CREATE TABLE table_name_93 (organization VARCHAR, finish VARCHAR)
SELECT organization FROM table_name_93 WHERE finish = "4th"
Which year has an Organization of new york yankees, and a Team of johnson city yankees?
CREATE TABLE table_name_61 (year VARCHAR, organization VARCHAR, team VARCHAR)
SELECT year FROM table_name_61 WHERE organization = "new york yankees" AND team = "johnson city yankees"
Which constructor had a grid number bigger than 14, laps of more than 93, and rank higher than 25?
CREATE TABLE table_name_2 (constructor VARCHAR, rank VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT constructor FROM table_name_2 WHERE grid > 14 AND laps > 93 AND rank > 25
Which qual has rank of more than 28 and a grid number that is bigger than 23?
CREATE TABLE table_name_43 (qual VARCHAR, rank VARCHAR, grid VARCHAR)
SELECT qual FROM table_name_43 WHERE rank > 28 AND grid > 23
What is the total qual where the grid number is 24?
CREATE TABLE table_name_57 (qual INTEGER, grid VARCHAR)
SELECT SUM(qual) FROM table_name_57 WHERE grid = 24
What is the Suffix for the Group of Benzyl?
CREATE TABLE table_name_73 (suffix VARCHAR, group VARCHAR)
SELECT suffix FROM table_name_73 WHERE group = "benzyl"
Which Formula has a Prefix of alkyl-?
CREATE TABLE table_name_72 (formula VARCHAR, prefix VARCHAR)
SELECT formula FROM table_name_72 WHERE prefix = "alkyl-"
Who was the Home team when the Visitor was Florida, with a Decision of Ramo?
CREATE TABLE table_name_28 (home VARCHAR, decision VARCHAR, visitor VARCHAR)
SELECT home FROM table_name_28 WHERE decision = "ramo" AND visitor = "florida"
What was the Decision when the Visitor was Carolina?
CREATE TABLE table_name_53 (decision VARCHAR, visitor VARCHAR)
SELECT decision FROM table_name_53 WHERE visitor = "carolina"
Which away team was at windy hill?
CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_30 WHERE venue = "windy hill"
For the category of most popular star with a result of won for 2007, what was the award?
CREATE TABLE table_name_27 (award VARCHAR, year VARCHAR, result VARCHAR, category VARCHAR)
SELECT award FROM table_name_27 WHERE result = "won" AND category = "most popular star" AND year = 2007
What is the result for the king and I after 2006?
CREATE TABLE table_name_58 (result VARCHAR, year VARCHAR, nominated_work VARCHAR)
SELECT result FROM table_name_58 WHERE year > 2006 AND nominated_work = "the king and i"
What is the main color(s) for marlboro?
CREATE TABLE table_name_36 (main_colour_s_ VARCHAR, main_sponsor_s_ VARCHAR)
SELECT main_colour_s_ FROM table_name_36 WHERE main_sponsor_s_ = "marlboro"
What is the additional major sponsor(s) that has red as its main color after 1991?
CREATE TABLE table_name_91 (additional_major_sponsor_s_ VARCHAR, main_colour_s_ VARCHAR, year VARCHAR)
SELECT additional_major_sponsor_s_ FROM table_name_91 WHERE main_colour_s_ = "red" AND year > 1991
Who was the brother of Edward VIII?
CREATE TABLE table_name_41 (name VARCHAR, relationship_with_predecessor_s_ VARCHAR)
SELECT name FROM table_name_41 WHERE relationship_with_predecessor_s_ = "brother of edward viii"
How many laps are associated with a time of + 1:39.591?
CREATE TABLE table_name_37 (laps VARCHAR, time_retired VARCHAR)
SELECT laps FROM table_name_37 WHERE time_retired = "+ 1:39.591"
What is the average number of laps for a grid of 6?
CREATE TABLE table_name_31 (laps INTEGER, grid VARCHAR)
SELECT AVG(laps) FROM table_name_31 WHERE grid = 6
Name the data with a percent gain of 28.4%
CREATE TABLE table_name_41 (data VARCHAR, percent_gain VARCHAR)
SELECT data FROM table_name_41 WHERE percent_gain = "28.4%"
Which smallest swimsuit number's interview was less than 8.574 when the average number was bigger than 8.532?
CREATE TABLE table_name_87 (swimsuit INTEGER, interview VARCHAR, average VARCHAR)
SELECT MIN(swimsuit) FROM table_name_87 WHERE interview < 8.574 AND average > 8.532
Which smallest interview number had a swimsuit stat of less than 9.322, an evening gown score of more than 9.259, and an average number of 9.321?
CREATE TABLE table_name_71 (interview INTEGER, average VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR)
SELECT MIN(interview) FROM table_name_71 WHERE swimsuit < 9.322 AND evening_gown > 9.259 AND average = 9.321
What is the highest mean number for Texas when the swimsuit stat was more than 8.839?
CREATE TABLE table_name_45 (average INTEGER, state VARCHAR, swimsuit VARCHAR)
SELECT MAX(average) FROM table_name_45 WHERE state = "texas" AND swimsuit > 8.839
What is the mean evening gown number when the average is 8.686?
CREATE TABLE table_name_32 (evening_gown INTEGER, average VARCHAR)
SELECT AVG(evening_gown) FROM table_name_32 WHERE average = 8.686
What is the sum number of evening gown stats for New Jersey when the interview was less than 9.344?
CREATE TABLE table_name_80 (evening_gown VARCHAR, state VARCHAR, interview VARCHAR)
SELECT COUNT(evening_gown) FROM table_name_80 WHERE state = "new jersey" AND interview < 9.344
What engine was made in 1991?
CREATE TABLE table_name_41 (engine_s_ VARCHAR, year VARCHAR)
SELECT engine_s_ FROM table_name_41 WHERE year = 1991
What engines have the year 1992?
CREATE TABLE table_name_7 (engine_s_ VARCHAR, year VARCHAR)
SELECT engine_s_ FROM table_name_7 WHERE year = 1992
What chassis has the year 1987?
CREATE TABLE table_name_87 (chassis VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_87 WHERE year = 1987
What is the average points for the chassis LOLA LC88?
CREATE TABLE table_name_2 (points INTEGER, chassis VARCHAR)
SELECT AVG(points) FROM table_name_2 WHERE chassis = "lola lc88"
what is the attendance when the location is veterans stadium, the game is more than 3 and the time is 2:21?
CREATE TABLE table_name_39 (attendance INTEGER, time VARCHAR, location VARCHAR, game VARCHAR)
SELECT AVG(attendance) FROM table_name_39 WHERE location = "veterans stadium" AND game > 3 AND time = "2:21"
what is the score when the time is 2:22?
CREATE TABLE table_name_47 (score VARCHAR, time VARCHAR)
SELECT score FROM table_name_47 WHERE time = "2:22"
how many games have a location of memorial stadium and a time of 2:27?
CREATE TABLE table_name_95 (game VARCHAR, location VARCHAR, time VARCHAR)
SELECT COUNT(game) FROM table_name_95 WHERE location = "memorial stadium" AND time = "2:27"
what is the attendance on the date of october 16 and the game is more than 5?
CREATE TABLE table_name_59 (attendance INTEGER, date VARCHAR, game VARCHAR)
SELECT SUM(attendance) FROM table_name_59 WHERE date = "october 16" AND game > 5
What was the lowest attendance for a score of 5 - 0?
CREATE TABLE table_name_40 (attendance INTEGER, score VARCHAR)
SELECT MIN(attendance) FROM table_name_40 WHERE score = "5 - 0"