question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Name the least goals when position is more than 4 and draws is more than 11
CREATE TABLE table_name_67 (goals_for INTEGER, position VARCHAR, draws VARCHAR)
SELECT MIN(goals_for) FROM table_name_67 WHERE position > 4 AND draws > 11
Name the most wins which have clubbed of elche cf and goals against more than 43
CREATE TABLE table_name_51 (wins INTEGER, club VARCHAR, goals_against VARCHAR)
SELECT MAX(wins) FROM table_name_51 WHERE club = "elche cf" AND goals_against > 43
Birth Date of 8 November 1980, and a Weight smaller than 93 has what sum of a shirt number?
CREATE TABLE table_name_6 (shirt_no INTEGER, birth_date VARCHAR, weight VARCHAR)
SELECT SUM(shirt_no) FROM table_name_6 WHERE birth_date = "8 november 1980" AND weight < 93
Shirt number of 18, and a Height larger than 195 has how much weight?
CREATE TABLE table_name_63 (weight VARCHAR, shirt_no VARCHAR, height VARCHAR)
SELECT COUNT(weight) FROM table_name_63 WHERE shirt_no = 18 AND height > 195
Name the To par for leland gibson
CREATE TABLE table_name_59 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_59 WHERE player = "leland gibson"
Name the place for ed oliver
CREATE TABLE table_name_47 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_47 WHERE player = "ed oliver"
Name the player with score of 74-68-71=213
CREATE TABLE table_name_4 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_4 WHERE score = 74 - 68 - 71 = 213
Name the To par for dick metz
CREATE TABLE table_name_61 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_61 WHERE player = "dick metz"
What year was there no competition in Mixed Doubles?
CREATE TABLE table_name_45 (year VARCHAR, mixed_doubles VARCHAR)
SELECT year FROM table_name_45 WHERE mixed_doubles = "no competition"
what was the score for the game on 14 april 2001?
CREATE TABLE table_name_67 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_67 WHERE date = "14 april 2001"
what is the score for the game on 21 april 2001?
CREATE TABLE table_name_25 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_25 WHERE date = "21 april 2001"
what is the competition on 21 april 2001?
CREATE TABLE table_name_75 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_75 WHERE date = "21 april 2001"
Who is the opponent the Seattle Seahawks played when their record was 1-3?
CREATE TABLE table_name_57 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_57 WHERE record = "1-3"
On what date was the crowd size of 71,789?
CREATE TABLE table_name_35 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_35 WHERE attendance = "71,789"
Which week did the Seattle Seahawks have a record of 6-6?
CREATE TABLE table_name_7 (week INTEGER, record VARCHAR)
SELECT AVG(week) FROM table_name_7 WHERE record = "6-6"
What was the final score (result) for the game where 51,100 attended?
CREATE TABLE table_name_36 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_36 WHERE attendance = "51,100"
Where was the game held when the attendance was 56,770?
CREATE TABLE table_name_63 (game_site VARCHAR, attendance VARCHAR)
SELECT game_site FROM table_name_63 WHERE attendance = "56,770"
Which week was the game held at Kingdome on October 13, 1991?
CREATE TABLE table_name_71 (week INTEGER, game_site VARCHAR, date VARCHAR)
SELECT MIN(week) FROM table_name_71 WHERE game_site = "kingdome" AND date = "october 13, 1991"
Who was the opponent at the game that had a loss of Harden (9-6)?
CREATE TABLE table_name_27 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_27 WHERE loss = "harden (9-6)"
Name the sum of Laps for co-drivers of oliver gavin jan magnussen and class of gts with year less than 2004
CREATE TABLE table_name_17 (laps INTEGER, year VARCHAR, co_drivers VARCHAR, class VARCHAR)
SELECT SUM(laps) FROM table_name_17 WHERE co_drivers = "oliver gavin jan magnussen" AND class = "gts" AND year < 2004
Name the team with laps more than 333 and year less than 2004
CREATE TABLE table_name_84 (team VARCHAR, laps VARCHAR, year VARCHAR)
SELECT team FROM table_name_84 WHERE laps > 333 AND year < 2004
Name the team with Laps of 333
CREATE TABLE table_name_92 (team VARCHAR, laps VARCHAR)
SELECT team FROM table_name_92 WHERE laps = 333
What is the points for where the tries for is 29?
CREATE TABLE table_name_34 (points_for VARCHAR, tries_for VARCHAR)
SELECT points_for FROM table_name_34 WHERE tries_for = "29"
What is the points for of Club of penallta rfc?
CREATE TABLE table_name_17 (points_for VARCHAR, club VARCHAR)
SELECT points_for FROM table_name_17 WHERE club = "penallta rfc"
What is the try bonus for ynysybwl rfc?
CREATE TABLE table_name_12 (try_bonus VARCHAR, club VARCHAR)
SELECT try_bonus FROM table_name_12 WHERE club = "ynysybwl rfc"
What is the points against for the team that played 22 and lost 6?
CREATE TABLE table_name_81 (points_against VARCHAR, played VARCHAR, lost VARCHAR)
SELECT points_against FROM table_name_81 WHERE played = "22" AND lost = "6"
What is the score of Tommy Bolt
CREATE TABLE table_name_23 (score INTEGER, player VARCHAR)
SELECT MIN(score) FROM table_name_23 WHERE player = "tommy bolt"
WHich Places have a score smaller than 69?
CREATE TABLE table_name_12 (place VARCHAR, score INTEGER)
SELECT place FROM table_name_12 WHERE score < 69
What is the To Par that has Tommy Bolt with a Place of t6?
CREATE TABLE table_name_6 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_6 WHERE place = "t6" AND player = "tommy bolt"
Who is the entrant with a cooper t43 chassis before 1958?
CREATE TABLE table_name_47 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT entrant FROM table_name_47 WHERE year < 1958 AND chassis = "cooper t43"
Name the 2006 when the 2010 is 27
CREATE TABLE table_name_26 (Id VARCHAR)
SELECT 2006 FROM table_name_26 WHERE 2010 = "27"
Which main cast seasons were portrayed by Joe Jonas?
CREATE TABLE table_name_13 (main_cast_seasons VARCHAR, portrayed_by VARCHAR)
SELECT main_cast_seasons FROM table_name_13 WHERE portrayed_by = "joe jonas"
How many episodes were portrayed by Nick Jonas?
CREATE TABLE table_name_81 (_number_of_episodes VARCHAR, portrayed_by VARCHAR)
SELECT COUNT(_number_of_episodes) FROM table_name_81 WHERE portrayed_by = "nick jonas"
How many episodes had the character of Nick Lucas?
CREATE TABLE table_name_91 (_number_of_episodes INTEGER, character VARCHAR)
SELECT SUM(_number_of_episodes) FROM table_name_91 WHERE character = "nick lucas"
What character is portrayed by Joe Jonas?
CREATE TABLE table_name_59 (character VARCHAR, portrayed_by VARCHAR)
SELECT character FROM table_name_59 WHERE portrayed_by = "joe jonas"
What was the extra info for the Commonwealth Games?
CREATE TABLE table_name_90 (extra VARCHAR, tournament VARCHAR)
SELECT extra FROM table_name_90 WHERE tournament = "commonwealth games"
What year was the Commonwealth Games?
CREATE TABLE table_name_16 (year INTEGER, tournament VARCHAR)
SELECT SUM(year) FROM table_name_16 WHERE tournament = "commonwealth games"
What job is at red bank?
CREATE TABLE table_name_90 (occupation VARCHAR, residence VARCHAR)
SELECT occupation FROM table_name_90 WHERE residence = "red bank"
What year did Ecurie Bleue score more than 0 points?
CREATE TABLE table_name_34 (year INTEGER, pts VARCHAR, entrant VARCHAR)
SELECT AVG(year) FROM table_name_34 WHERE pts > 0 AND entrant = "ecurie bleue"
What is the starting point of the north/south operating Palafox Street route?
CREATE TABLE table_name_66 (starting_point VARCHAR, operates VARCHAR, name VARCHAR)
SELECT starting_point FROM table_name_66 WHERE operates = "north/south" AND name = "palafox street"
Which bi-directional route has a terminus at Ecat/Rosa Park Transit Center?
CREATE TABLE table_name_50 (name VARCHAR, direction VARCHAR, terminus VARCHAR)
SELECT name FROM table_name_50 WHERE direction = "bi-directional" AND terminus = "ecat/rosa park transit center"
Which route has a terminus of pine Forest?
CREATE TABLE table_name_57 (name VARCHAR, terminus VARCHAR)
SELECT name FROM table_name_57 WHERE terminus = "pine forest"
What is the starting point of the route that has its terminus at Ecat/Rosa Park Transit Center?
CREATE TABLE table_name_27 (starting_point VARCHAR, terminus VARCHAR)
SELECT starting_point FROM table_name_27 WHERE terminus = "ecat/rosa park transit center"
What is the direction of the route that stars at downtown transit center and has a terminus point at Pensacola Beach?
CREATE TABLE table_name_50 (direction VARCHAR, starting_point VARCHAR, terminus VARCHAR)
SELECT direction FROM table_name_50 WHERE starting_point = "downtown transit center" AND terminus = "pensacola beach"
Where does the Bayou Blvd./12th Avenue route that has a terminus at the downtown transit center operate?
CREATE TABLE table_name_5 (operates VARCHAR, terminus VARCHAR, name VARCHAR)
SELECT operates FROM table_name_5 WHERE terminus = "downtown transit center" AND name = "bayou blvd./12th avenue"
How many full professors work under Hartmut Kliemt with more than 0 lecturers?
CREATE TABLE table_name_72 (full_professors VARCHAR, head VARCHAR, lecturers VARCHAR)
SELECT COUNT(full_professors) FROM table_name_72 WHERE head = "hartmut kliemt" AND lecturers > 0
What is the least amount of lecturers in the accounting department with less than 5 full professors?
CREATE TABLE table_name_86 (lecturers INTEGER, department VARCHAR, full_professors VARCHAR)
SELECT MIN(lecturers) FROM table_name_86 WHERE department = "accounting" AND full_professors < 5
What is the average number of honorary professors in the economics department with 1 lecturer?
CREATE TABLE table_name_9 (honorary_professors INTEGER, lecturers VARCHAR, department VARCHAR)
SELECT AVG(honorary_professors) FROM table_name_9 WHERE lecturers = 1 AND department = "economics"
What Loss occured on the Date of June 12?
CREATE TABLE table_name_39 (loss VARCHAR, date VARCHAR)
SELECT loss FROM table_name_39 WHERE date = "june 12"
What Loss had an Attendance of 17,675?
CREATE TABLE table_name_27 (loss VARCHAR, attendance VARCHAR)
SELECT loss FROM table_name_27 WHERE attendance = "17,675"
What Loss had an Attendance of 17,675?
CREATE TABLE table_name_35 (loss VARCHAR, attendance VARCHAR)
SELECT loss FROM table_name_35 WHERE attendance = "17,675"
On what Date had a Score of 5-2 and a Loss of Greinke (1-2)?
CREATE TABLE table_name_84 (date VARCHAR, score VARCHAR, loss VARCHAR)
SELECT date FROM table_name_84 WHERE score = "5-2" AND loss = "greinke (1-2)"
What was the Score that has an Attendance of 39,446?
CREATE TABLE table_name_3 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_3 WHERE attendance = "39,446"
What was the Loss that had a Score of 9-1?
CREATE TABLE table_name_87 (loss VARCHAR, score VARCHAR)
SELECT loss FROM table_name_87 WHERE score = "9-1"
What counties represented have a democratic committee, and a committee of ways and means?
CREATE TABLE table_name_17 (counties_represented VARCHAR, party VARCHAR, committee VARCHAR)
SELECT counties_represented FROM table_name_17 WHERE party = "democratic" AND committee = "ways and means"
What is the average first elected year that has a district of 11 and a committee of environmental matters?
CREATE TABLE table_name_18 (first_elected INTEGER, district VARCHAR, committee VARCHAR)
SELECT AVG(first_elected) FROM table_name_18 WHERE district = "11" AND committee = "environmental matters"
What is the total number of First elected that has a country represented in Baltimore county, a district of 06.0 6, and a committee of economic matters?
CREATE TABLE table_name_80 (first_elected VARCHAR, committee VARCHAR, counties_represented VARCHAR, district VARCHAR)
SELECT COUNT(first_elected) FROM table_name_80 WHERE counties_represented = "baltimore county" AND district = "06.0 6" AND committee = "economic matters"
What district has counties represented by Baltimore county, a committee of health and government operations, and a first elected smaller than 2002?
CREATE TABLE table_name_86 (district VARCHAR, first_elected VARCHAR, counties_represented VARCHAR, committee VARCHAR)
SELECT district FROM table_name_86 WHERE counties_represented = "baltimore county" AND committee = "health and government operations" AND first_elected < 2002
What is the Highest first elected year that has a district of 06.0 6, and a committee of economic matters?
CREATE TABLE table_name_99 (first_elected INTEGER, district VARCHAR, committee VARCHAR)
SELECT MAX(first_elected) FROM table_name_99 WHERE district = "06.0 6" AND committee = "economic matters"
Who was from Morocco and scored 6 goals?
CREATE TABLE table_name_57 (name VARCHAR, goals VARCHAR, nationality VARCHAR)
SELECT name FROM table_name_57 WHERE goals = 6 AND nationality = "morocco"
Who has the highest ranking from 1996–13, and more than 17 goals?
CREATE TABLE table_name_80 (ranking INTEGER, years VARCHAR, goals VARCHAR)
SELECT MAX(ranking) FROM table_name_80 WHERE years = "1996–13" AND goals > 17
What was the average ranking of Saudi Arabia in the years of 2000–?
CREATE TABLE table_name_53 (ranking INTEGER, nationality VARCHAR, years VARCHAR)
SELECT AVG(ranking) FROM table_name_53 WHERE nationality = "saudi arabia" AND years = "2000–"
Which nation had 14 goals?
CREATE TABLE table_name_89 (nationality VARCHAR, goals VARCHAR)
SELECT nationality FROM table_name_89 WHERE goals = 14
What nationality is hamzah idris?
CREATE TABLE table_name_28 (nationality VARCHAR, name VARCHAR)
SELECT nationality FROM table_name_28 WHERE name = "hamzah idris"
Who had fewer goals than 4 during the years of 1996–13?
CREATE TABLE table_name_76 (goals INTEGER, ranking VARCHAR, years VARCHAR)
SELECT MIN(goals) FROM table_name_76 WHERE ranking < 4 AND years = "1996–13"
what is the lowest top-25 when the events is less than 17 and top-5 is more than 0?
CREATE TABLE table_name_47 (top_25 INTEGER, events VARCHAR, top_5 VARCHAR)
SELECT MIN(top_25) FROM table_name_47 WHERE events < 17 AND top_5 > 0
what is the top-5 when the tournament is totals and the top-25 is more than 4?
CREATE TABLE table_name_80 (top_5 INTEGER, tournament VARCHAR, top_25 VARCHAR)
SELECT AVG(top_5) FROM table_name_80 WHERE tournament = "totals" AND top_25 > 4
what is the average number of events when the top-5 is less than 1 and top 25 more than 1
CREATE TABLE table_name_89 (events INTEGER, top_5 VARCHAR, top_25 VARCHAR)
SELECT AVG(events) FROM table_name_89 WHERE top_5 < 1 AND top_25 > 1
what is the highest top-5 when the top-25 is less than 4, cuts made is more than 3 and wins is 0?
CREATE TABLE table_name_29 (top_5 INTEGER, wins VARCHAR, top_25 VARCHAR, cuts_made VARCHAR)
SELECT MAX(top_5) FROM table_name_29 WHERE top_25 < 4 AND cuts_made > 3 AND wins < 0
what is the total number of times the tournament was pga championship and evens is less than 4?
CREATE TABLE table_name_95 (top_5 VARCHAR, tournament VARCHAR, events VARCHAR)
SELECT COUNT(top_5) FROM table_name_95 WHERE tournament = "pga championship" AND events < 4
What year did Elf Team Tyrrell have 34 points?
CREATE TABLE table_name_59 (year INTEGER, entrant VARCHAR, points VARCHAR)
SELECT AVG(year) FROM table_name_59 WHERE entrant = "elf team tyrrell" AND points = "34"
After 1972, how many points did Marlboro Team Alfa Romeo have?
CREATE TABLE table_name_84 (points VARCHAR, year VARCHAR, entrant VARCHAR)
SELECT points FROM table_name_84 WHERE year > 1972 AND entrant = "marlboro team alfa romeo"
What chassis had 39 points?
CREATE TABLE table_name_5 (chassis VARCHAR, points VARCHAR)
SELECT chassis FROM table_name_5 WHERE points = "39"
How many points did the Ford V8 with a Tyrrell 007 have?
CREATE TABLE table_name_3 (points VARCHAR, engine VARCHAR, chassis VARCHAR)
SELECT points FROM table_name_3 WHERE engine = "ford v8" AND chassis = "tyrrell 007"
Before 1976 and with 12 points, what chassis did the Ford V8 have?
CREATE TABLE table_name_66 (chassis VARCHAR, points VARCHAR, engine VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_66 WHERE engine = "ford v8" AND year < 1976 AND points = "12"
What year did Elf Team Tyrrell have 39 points and a Tyrrell 007 Chassis?
CREATE TABLE table_name_75 (year INTEGER, chassis VARCHAR, entrant VARCHAR, points VARCHAR)
SELECT SUM(year) FROM table_name_75 WHERE entrant = "elf team tyrrell" AND points = "39" AND chassis = "tyrrell 007"
What position does the player who played for butler cc (ks) play?
CREATE TABLE table_10015132_11 (position VARCHAR, school_club_team VARCHAR)
SELECT position FROM table_10015132_11 WHERE school_club_team = "Butler CC (KS)"
How many schools did player number 3 play at?
CREATE TABLE table_10015132_11 (school_club_team VARCHAR, no VARCHAR)
SELECT COUNT(school_club_team) FROM table_10015132_11 WHERE no = "3"
What school did player number 21 play for?
CREATE TABLE table_10015132_11 (school_club_team VARCHAR, no VARCHAR)
SELECT school_club_team FROM table_10015132_11 WHERE no = "21"
Who is the player that wears number 42?
CREATE TABLE table_10015132_11 (player VARCHAR, no VARCHAR)
SELECT player FROM table_10015132_11 WHERE no = "42"
What player played guard for toronto in 1996-97?
CREATE TABLE table_10015132_11 (player VARCHAR, position VARCHAR, years_in_toronto VARCHAR)
SELECT player FROM table_10015132_11 WHERE position = "Guard" AND years_in_toronto = "1996-97"
Who are all of the players on the Westchester High School club team?
CREATE TABLE table_10015132_9 (player VARCHAR, school_club_team VARCHAR)
SELECT player FROM table_10015132_9 WHERE school_club_team = "Westchester High School"
What school/club team is Amir Johnson on?
CREATE TABLE table_10015132_9 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_10015132_9 WHERE player = "Amir Johnson"
What are the total amount of numbers on the Toronto team in 2005-06?
CREATE TABLE table_10015132_9 (no VARCHAR, years_in_toronto VARCHAR)
SELECT COUNT(no) FROM table_10015132_9 WHERE years_in_toronto = "2005-06"
What are the total number of positions on the Toronto team in 2006-07?
CREATE TABLE table_10015132_9 (position VARCHAR, years_in_toronto VARCHAR)
SELECT COUNT(position) FROM table_10015132_9 WHERE years_in_toronto = "2006-07"
What are the nationality of the players on the Fresno State school/club team?
CREATE TABLE table_10015132_9 (nationality VARCHAR, school_club_team VARCHAR)
SELECT nationality FROM table_10015132_9 WHERE school_club_team = "Fresno State"
What school/club team is Trey Johnson on?
CREATE TABLE table_10015132_9 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_10015132_9 WHERE player = "Trey Johnson"
When did Jacques Chirac stop being a G8 leader?
CREATE TABLE table_10026563_1 (ended_time_as_senior_g8_leader VARCHAR, person VARCHAR)
SELECT ended_time_as_senior_g8_leader FROM table_10026563_1 WHERE person = "Jacques Chirac"
When did the Prime Minister of Italy take office?
CREATE TABLE table_10026563_1 (entered_office_as_head_of_state_or_government VARCHAR, office VARCHAR)
SELECT entered_office_as_head_of_state_or_government FROM table_10026563_1 WHERE office = "Prime Minister of Italy"
What is the English name of the country whose official native language is Dutch Papiamento?
CREATE TABLE table_1008653_1 (country___exonym__ VARCHAR, official_or_native_language_s___alphabet_script_ VARCHAR)
SELECT country___exonym__ FROM table_1008653_1 WHERE official_or_native_language_s___alphabet_script_ = "Dutch Papiamento"
What official or native languages are spoken in the country whose capital city is Canberra?
CREATE TABLE table_1008653_1 (official_or_native_language_s___alphabet_script_ VARCHAR, capital___exonym__ VARCHAR)
SELECT official_or_native_language_s___alphabet_script_ FROM table_1008653_1 WHERE capital___exonym__ = "Canberra"
What is the local name given to the city of Canberra?
CREATE TABLE table_1008653_1 (capital___endonym__ VARCHAR, capital___exonym__ VARCHAR)
SELECT capital___endonym__ FROM table_1008653_1 WHERE capital___exonym__ = "Canberra"
What is the local name given to the capital of Anguilla?
CREATE TABLE table_1008653_1 (capital___endonym__ VARCHAR, country___endonym__ VARCHAR)
SELECT capital___endonym__ FROM table_1008653_1 WHERE country___endonym__ = "Anguilla"
What is the English name given to the city of St. John's?
CREATE TABLE table_1008653_1 (capital___exonym__ VARCHAR, capital___endonym__ VARCHAR)
SELECT capital___exonym__ FROM table_1008653_1 WHERE capital___endonym__ = "St. John's"
How many capital cities does Australia have?
CREATE TABLE table_1008653_1 (capital___endonym__ VARCHAR, country___endonym__ VARCHAR)
SELECT COUNT(capital___endonym__) FROM table_1008653_1 WHERE country___endonym__ = "Australia"
The episode with production code 9abx02 was originally aired on what date?
CREATE TABLE table_10088101_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_10088101_1 WHERE production_code = "9ABX02"
What is the episode number that has production code 8abx15?
CREATE TABLE table_10088101_1 (no_in_series INTEGER, production_code VARCHAR)
SELECT MIN(no_in_series) FROM table_10088101_1 WHERE production_code = "8ABX15"
Name the minimum tiesplayed for 6 years
CREATE TABLE table_10295819_2 (ties_played INTEGER, years_played VARCHAR)
SELECT MIN(ties_played) FROM table_10295819_2 WHERE years_played = 6
What is the amount of trees, that require replacement when district is leninsky?
CREATE TABLE table_10342194_3 (amount_of_trees VARCHAR, _that_require_replacement VARCHAR, district VARCHAR)
SELECT amount_of_trees, _that_require_replacement FROM table_10342194_3 WHERE district = "Leninsky"
What is the district when the total amount of trees is smaller than 150817.6878461314 and amount of old trees is 1,928 (1.89%)?
CREATE TABLE table_10342194_3 (district VARCHAR, total_amount_of_trees VARCHAR, amount_of_old_trees VARCHAR)
SELECT district FROM table_10342194_3 WHERE total_amount_of_trees < 150817.6878461314 AND amount_of_old_trees = "1,928 (1.89%)"