question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many communes when the arrondissement is cosne-cours-sur-loire?
CREATE TABLE table_1175233_1 (communes INTEGER, arrondissement VARCHAR)
SELECT MIN(communes) FROM table_1175233_1 WHERE arrondissement = "Cosne-Cours-sur-Loire"
When north melbourne played as the home team, what was the away team score?
CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_7 WHERE home_team = "north melbourne"
What is Content, when Package/Option is sky cinema, and when Language is italian originale?
CREATE TABLE table_name_6 (content VARCHAR, package_option VARCHAR, language VARCHAR)
SELECT content FROM table_name_6 WHERE package_option = "sky cinema" AND language = "italian originale"
How many Top 10s have Wins larger than 0, and Poles larger than 0?
CREATE TABLE table_name_35 (top_10 VARCHAR, wins VARCHAR, poles VARCHAR)
SELECT COUNT(top_10) FROM table_name_35 WHERE wins > 0 AND poles > 0
What is the number for swimsuit when the interview number is less than 8.808?
CREATE TABLE table_name_93 (swimsuit VARCHAR, interview INTEGER)
SELECT swimsuit FROM table_name_93 WHERE interview < 8.808
Name the total number of winners for allianz championship
CREATE TABLE table_25938117_1 (winner VARCHAR, tournament VARCHAR)
SELECT COUNT(winner) FROM table_25938117_1 WHERE tournament = "Allianz Championship"
If the name is Steamboat, what is the top elevation?
CREATE TABLE table_25762852_1 (top_elevation__feet_ VARCHAR, name VARCHAR)
SELECT top_elevation__feet_ FROM table_25762852_1 WHERE name = "Steamboat"
What was the host country when the silver was [[|]] (2) and bronze is czechoslovakia (3)?
CREATE TABLE table_name_42 (host_country___countries VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT host_country___countries FROM table_name_42 WHERE silver = "[[|]] (2)" AND bronze = "czechoslovakia (3)"
Which 2005 has a 2004 of 3–2?
CREATE TABLE table_name_3 (Id VARCHAR)
SELECT 2005 FROM table_name_3 WHERE 2004 = "3–2"
What Years have a Goal of 82?
CREATE TABLE table_name_24 (years VARCHAR, goals VARCHAR)
SELECT years FROM table_name_24 WHERE goals = 82
What is the status in the district with the incumbent Bob Barr?
CREATE TABLE table_26336739_1 (status VARCHAR, incumbent VARCHAR)
SELECT status FROM table_26336739_1 WHERE incumbent = "Bob Barr"
What is the highest number of silver medals for a team with total less than 1?
CREATE TABLE table_name_32 (silver INTEGER, total INTEGER)
SELECT MAX(silver) FROM table_name_32 WHERE total < 1
When are end dates (last night) for the season of 1918?
CREATE TABLE table_159359_2 (end_date__last_night_ VARCHAR, season VARCHAR)
SELECT end_date__last_night_ FROM table_159359_2 WHERE season = "1918"
What is the outcome of the tournament with partner ilie năstase?
CREATE TABLE table_name_65 (outcome VARCHAR, partner VARCHAR)
SELECT outcome FROM table_name_65 WHERE partner = "ilie năstase"
What is the Higgins with a Scallon that is 2%?
CREATE TABLE table_name_35 (higgins VARCHAR, scallon VARCHAR)
SELECT higgins FROM table_name_35 WHERE scallon = "2%"
How many cast members had sydney walker as their fresh meat partner?
CREATE TABLE table_26419467_1 (hometown VARCHAR, fresh_meat_partner VARCHAR)
SELECT COUNT(hometown) FROM table_26419467_1 WHERE fresh_meat_partner = "Sydney Walker"
What is the ethernet ports of the u150 appliance?
CREATE TABLE table_name_86 (ethernet_ports VARCHAR, name VARCHAR)
SELECT ethernet_ports FROM table_name_86 WHERE name = "u150"
What's the dipole moment of ethyl acetate (etoac)?
CREATE TABLE table_name_78 (dipole_moment___d__ VARCHAR, solvent VARCHAR)
SELECT dipole_moment___d__ FROM table_name_78 WHERE solvent = "ethyl acetate (etoac)"
What is the game number for series 4-2?
CREATE TABLE table_name_56 (game VARCHAR, series VARCHAR)
SELECT COUNT(game) FROM table_name_56 WHERE series = "4-2"
Which genre aired on 12 feb- 9 mar?
CREATE TABLE table_name_27 (genre VARCHAR, airing_date VARCHAR)
SELECT genre FROM table_name_27 WHERE airing_date = "12 feb- 9 mar"
In what Week was Serena Williams 6–1, 6–7(7), 6–3 the Winner?
CREATE TABLE table_name_65 (week VARCHAR, winners VARCHAR)
SELECT week FROM table_name_65 WHERE winners = "serena williams 6–1, 6–7(7), 6–3"
Which round has the record of 5-0?
CREATE TABLE table_name_18 (round VARCHAR, record VARCHAR)
SELECT round FROM table_name_18 WHERE record = "5-0"
What is the total number of overall picks that were after pick 9 and went to Auburn College?
CREATE TABLE table_name_48 (overall VARCHAR, college VARCHAR, pick VARCHAR)
SELECT COUNT(overall) FROM table_name_48 WHERE college = "auburn" AND pick > 9
What province was New Plymouth formed from?
CREATE TABLE table_275023_1 (formed_from VARCHAR, province VARCHAR)
SELECT formed_from FROM table_275023_1 WHERE province = "New Plymouth"
What is Position, when Laps is 156?
CREATE TABLE table_name_90 (position VARCHAR, laps VARCHAR)
SELECT position FROM table_name_90 WHERE laps = 156
Which artist sang the song that ingela hemming wrote?
CREATE TABLE table_23585197_3 (artist VARCHAR, songwriter_s_ VARCHAR)
SELECT artist FROM table_23585197_3 WHERE songwriter_s_ = "Ingela Hemming"
What did the away team score in the game with a crowd size larger than 22,000?
CREATE TABLE table_name_1 (away_team VARCHAR, crowd INTEGER)
SELECT away_team AS score FROM table_name_1 WHERE crowd > 22 OFFSET 000
Who is no. 79 directed by?
CREATE TABLE table_22904752_1 (directed_by VARCHAR, no VARCHAR)
SELECT directed_by FROM table_22904752_1 WHERE no = 79
What is the number of leading scorer of february 21?
CREATE TABLE table_11964047_8 (leading_scorer VARCHAR, date VARCHAR)
SELECT COUNT(leading_scorer) FROM table_11964047_8 WHERE date = "February 21"
What Category has a Year that's smaller than 2006, has Result of Nominated, and a Title of Cold Feet?
CREATE TABLE table_name_25 (category VARCHAR, title VARCHAR, year VARCHAR, result VARCHAR)
SELECT category FROM table_name_25 WHERE year < 2006 AND result = "nominated" AND title = "cold feet"
What song came out on March 8, 2008?
CREATE TABLE table_name_8 (song VARCHAR, date VARCHAR)
SELECT song FROM table_name_8 WHERE date = "march 8, 2008"
what is the date on week 6
CREATE TABLE table_name_97 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_97 WHERE week = 6
What is the winning total from 1976?
CREATE TABLE table_name_20 (total INTEGER, year_s__won VARCHAR)
SELECT MAX(total) FROM table_name_20 WHERE year_s__won = "1976"
When Richmond played as the away team, what was the ground?
CREATE TABLE table_29126507_1 (ground VARCHAR, away_team VARCHAR)
SELECT ground FROM table_29126507_1 WHERE away_team = "Richmond"
What is the affiliation of a high school in Issaquah that was founded in less than 1965?
CREATE TABLE table_name_37 (affiliation VARCHAR, founded VARCHAR, high_school VARCHAR)
SELECT affiliation FROM table_name_37 WHERE founded < 1965 AND high_school = "issaquah"
What number episode had a 4.2 rating?
CREATE TABLE table_23730973_5 (no INTEGER, rating VARCHAR)
SELECT MIN(no) FROM table_23730973_5 WHERE rating = "4.2"
What is the highest labour panel when the university of dublin is less than 2 and the agricultural panel is greater than 5?
CREATE TABLE table_name_46 (labour_panel INTEGER, university_of_dublin VARCHAR, agricultural_panel VARCHAR)
SELECT MAX(labour_panel) FROM table_name_46 WHERE university_of_dublin < 2 AND agricultural_panel > 5
Show the ids for all the faculty members who have at least 2 students.
CREATE TABLE Faculty (FacID VARCHAR); CREATE TABLE Student (advisor VARCHAR)
SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING COUNT(*) >= 2
What is the zone of the game played against Estonia?
CREATE TABLE table_name_64 (zone VARCHAR, against VARCHAR)
SELECT zone FROM table_name_64 WHERE against = "estonia"
What's the winning party in the Pennsylvania 6 district?
CREATE TABLE table_1341604_39 (party VARCHAR, district VARCHAR)
SELECT party FROM table_1341604_39 WHERE district = "Pennsylvania 6"
Which Year(s) won has a Total smaller than 276? Question 1
CREATE TABLE table_name_71 (year_s__won VARCHAR, total INTEGER)
SELECT year_s__won FROM table_name_71 WHERE total < 276
Name the number of believers for patavur
CREATE TABLE table_24613895_1 (number_of_believers VARCHAR, name_of_village VARCHAR)
SELECT COUNT(number_of_believers) FROM table_24613895_1 WHERE name_of_village = "Patavur"
Show ids for all documents with budget types described as 'Government'.
CREATE TABLE Documents_with_expenses (document_id VARCHAR, Budget_Type_code VARCHAR); CREATE TABLE Ref_Budget_Codes (Budget_Type_code VARCHAR, budget_type_Description VARCHAR)
SELECT T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code = T2.Budget_Type_code WHERE T2.budget_type_Description = "Government"
How many different counts of the votes for Bush are there in the county where he got 69.7% of the votes?
CREATE TABLE table_2401326_1 (bush_number VARCHAR, bush_percentage VARCHAR)
SELECT COUNT(bush_number) FROM table_2401326_1 WHERE bush_percentage = "69.7%"
Team 2 Al-Ain played in what venue?
CREATE TABLE table_name_89 (venue VARCHAR, team_2 VARCHAR)
SELECT venue FROM table_name_89 WHERE team_2 = "al-ain"
What is the playoffs 1 result of season 2004-05?
CREATE TABLE table_name_41 (playoffs_1 VARCHAR, season VARCHAR)
SELECT playoffs_1 FROM table_name_41 WHERE season = "2004-05"
What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?
CREATE TABLE CAR_NAMES (model VARCHAR); CREATE TABLE MODEL_LIST (Maker VARCHAR, model VARCHAR); CREATE TABLE CAR_MAKERS (Id VARCHAR, Maker VARCHAR)
SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING COUNT(*) >= 2 INTERSECT SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id HAVING COUNT(*) > 3
What is the sum of the number played with more than 5 losses, more than 1 draw, and a position under 8?
CREATE TABLE table_name_13 (played INTEGER, drawn VARCHAR, lost VARCHAR, position VARCHAR)
SELECT SUM(played) FROM table_name_13 WHERE lost > 5 AND position < 8 AND drawn > 1
Which retitled network has a Show of supermarket sweep?
CREATE TABLE table_name_92 (retitled_as_same VARCHAR, show VARCHAR)
SELECT retitled_as_same FROM table_name_92 WHERE show = "supermarket sweep"
What's the nationality of the player coming from Edmonton Oil Kings (WCHL)?
CREATE TABLE table_1965650_4 (nationality VARCHAR, college_junior_club_team VARCHAR)
SELECT nationality FROM table_1965650_4 WHERE college_junior_club_team = "Edmonton Oil Kings (WCHL)"
What integrated school had a decile of 2 and a roll larger than 55?
CREATE TABLE table_name_69 (name VARCHAR, roll VARCHAR, decile VARCHAR, authority VARCHAR)
SELECT name FROM table_name_69 WHERE decile = 2 AND authority = "integrated" AND roll > 55
What was the first round time for member Kenny Smith?
CREATE TABLE table_name_14 (first_round VARCHAR, members VARCHAR)
SELECT first_round FROM table_name_14 WHERE members = "kenny smith"
What is the # of candidates of liberal majority with 51 wins and larger number of 2008 in general elections?
CREATE TABLE table_name_81 (_number_of_candidates INTEGER, general_election VARCHAR, result VARCHAR, _number_of_seats_won VARCHAR)
SELECT AVG(_number_of_candidates) FROM table_name_81 WHERE result = "liberal majority" AND _number_of_seats_won = 51 AND general_election > 2008
How many different weeks are there in order number 4 that were judge's choice?
CREATE TABLE table_27614707_1 (week__number VARCHAR, theme VARCHAR, order__number VARCHAR)
SELECT COUNT(week__number) FROM table_27614707_1 WHERE theme = "Judge's Choice" AND order__number = "4"
What is the nationality of the player who was previously with the Detroit Pistons?
CREATE TABLE table_name_55 (nationality VARCHAR, previous_team VARCHAR)
SELECT nationality FROM table_name_55 WHERE previous_team = "detroit pistons"
What team was played on november 24?
CREATE TABLE table_23211041_5 (team VARCHAR, date VARCHAR)
SELECT team FROM table_23211041_5 WHERE date = "November 24"
Who had the fastest lap for the German Grand Prix?
CREATE TABLE table_name_71 (fastest_lap VARCHAR, race VARCHAR)
SELECT fastest_lap FROM table_name_71 WHERE race = "german grand prix"
Who was the constructor when the grid was 11?
CREATE TABLE table_name_74 (constructor VARCHAR, grid VARCHAR)
SELECT constructor FROM table_name_74 WHERE grid = 11
what's the torque where performance is 0–100km/h: 7.5s auto, vmax: km/h (mph)
CREATE TABLE table_11167610_1 (torque VARCHAR, performance VARCHAR)
SELECT torque FROM table_11167610_1 WHERE performance = "0–100km/h: 7.5s auto, VMax: km/h (mph)"
What is the number of silver when bronze is 0, and rank is less than 2?
CREATE TABLE table_name_5 (silver INTEGER, bronze VARCHAR, rank VARCHAR)
SELECT SUM(silver) FROM table_name_5 WHERE bronze = 0 AND rank < 2
Which Record has a Game of 19?
CREATE TABLE table_name_78 (record VARCHAR, game VARCHAR)
SELECT record FROM table_name_78 WHERE game = 19
What is the High assists when jalen rose (22) had the high points?
CREATE TABLE table_name_35 (high_assists VARCHAR, high_points VARCHAR)
SELECT high_assists FROM table_name_35 WHERE high_points = "jalen rose (22)"
What is the Location of the Bridge Built in 1869?
CREATE TABLE table_name_58 (location VARCHAR, built VARCHAR)
SELECT location FROM table_name_58 WHERE built = "1869"
Which Race has the Toyota Racing Series New Zealand and 0 wins?
CREATE TABLE table_name_99 (races VARCHAR, series VARCHAR, wins VARCHAR)
SELECT races FROM table_name_99 WHERE series = "toyota racing series new zealand" AND wins = "0"
How many GICS sectors have a free float of 0.2391?
CREATE TABLE table_20667854_1 (gics_sector VARCHAR, free_float VARCHAR)
SELECT COUNT(gics_sector) FROM table_20667854_1 WHERE free_float = "0.2391"
On what Date was the Opponent Panathinaikos?
CREATE TABLE table_name_14 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_14 WHERE opponent = "panathinaikos"
Who are the mens doubles and and mens singles is lee hyun-il?
CREATE TABLE table_13553701_1 (mens_doubles VARCHAR, mens_singles VARCHAR)
SELECT mens_doubles FROM table_13553701_1 WHERE mens_singles = "Lee Hyun-il"
Find the first name of students who have cat or dog pet.
CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE student (Fname VARCHAR, stuid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR)
SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'
In the round that lasted 0:20, what was the Res?
CREATE TABLE table_name_1 (res VARCHAR, time VARCHAR)
SELECT res FROM table_name_1 WHERE time = "0:20"
How many millions of viewers did watch Episode 5?
CREATE TABLE table_12919003_3 (viewers_millions_ VARCHAR, episode VARCHAR)
SELECT viewers_millions_ FROM table_12919003_3 WHERE episode = "episode 5"
What is the last when the first was January 2001 and more than 26 total?
CREATE TABLE table_name_72 (last VARCHAR, total VARCHAR, first VARCHAR)
SELECT last FROM table_name_72 WHERE total > 26 AND first = "january 2001"
What is the record of the team that lost to Alexander (5-2)?
CREATE TABLE table_name_12 (record VARCHAR, loss VARCHAR)
SELECT record FROM table_name_12 WHERE loss = "alexander (5-2)"
What was the score in Hampden Park, Glasgow?
CREATE TABLE table_name_68 (score VARCHAR, venue VARCHAR)
SELECT score FROM table_name_68 WHERE venue = "hampden park, glasgow"
what is the time/retired when the grid is less than 3 and 45 laps?
CREATE TABLE table_name_95 (time_retired VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT time_retired FROM table_name_95 WHERE grid < 3 AND laps = 45
Who is every driver for the location of Estoril Circuit?
CREATE TABLE table_23293785_2 (driver VARCHAR, location VARCHAR)
SELECT driver FROM table_23293785_2 WHERE location = "Estoril Circuit"
What score has 3 as the place?
CREATE TABLE table_name_87 (score VARCHAR, place VARCHAR)
SELECT score FROM table_name_87 WHERE place = "3"
What was the score of the tournament in Wellington?
CREATE TABLE table_name_5 (score VARCHAR, tournament VARCHAR)
SELECT score FROM table_name_5 WHERE tournament = "wellington"
How many points does Club have?
CREATE TABLE table_name_41 (points VARCHAR)
SELECT points FROM table_name_41 WHERE "club" = "club"
Name the title that aired for november 08, 1985
CREATE TABLE table_20967430_2 (title VARCHAR, original_air_date VARCHAR)
SELECT title FROM table_20967430_2 WHERE original_air_date = "November 08, 1985"
Name the least age 40-49
CREATE TABLE table_169693_1 (age_40_49 INTEGER)
SELECT MIN(age_40_49) FROM table_169693_1
Who are all winning drivers if winning team is Carlin Motorsport and circuit is Croft?
CREATE TABLE table_26137666_3 (winning_driver VARCHAR, winning_team VARCHAR, circuit VARCHAR)
SELECT winning_driver FROM table_26137666_3 WHERE winning_team = "Carlin Motorsport" AND circuit = "Croft"
WHAT IS THE HIGHEST PICK WITH A TE POSITION, AND ROUND SMALLER THAN 2?
CREATE TABLE table_name_11 (pick INTEGER, position VARCHAR, round VARCHAR)
SELECT MAX(pick) FROM table_name_11 WHERE position = "te" AND round < 2
Which Score has a Set 2 of 25–17, and a Time of 16:00?
CREATE TABLE table_name_9 (score VARCHAR, set_2 VARCHAR, time VARCHAR)
SELECT score FROM table_name_9 WHERE set_2 = "25–17" AND time = "16:00"
What are the distinct name of the mills built by the architects who have also built a bridge longer than 80 meters?
CREATE TABLE architect (Id VARCHAR); CREATE TABLE mill (name VARCHAR, architect_id VARCHAR); CREATE TABLE bridge (architect_id VARCHAR, length_meters INTEGER)
SELECT DISTINCT T1.name FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id JOIN bridge AS T3 ON T3.architect_id = T2.id WHERE T3.length_meters > 80
Which Venue has a Result of 5-1, and a Score of 3-0?
CREATE TABLE table_name_53 (venue VARCHAR, result VARCHAR, score VARCHAR)
SELECT venue FROM table_name_53 WHERE result = "5-1" AND score = "3-0"
What is the lowest for top-25 with events smaller than 42 in a U.S. Open with a top-10 smaller than 5?
CREATE TABLE table_name_5 (top_25 INTEGER, top_10 VARCHAR, events VARCHAR, tournament VARCHAR)
SELECT MIN(top_25) FROM table_name_5 WHERE events < 42 AND tournament = "u.s. open" AND top_10 < 5
What was week 2's opponent?
CREATE TABLE table_name_47 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_47 WHERE week = 2
Which Position has 47 Goals Against, and a Played larger than 34?
CREATE TABLE table_name_2 (position INTEGER, goals_against VARCHAR, played VARCHAR)
SELECT MAX(position) FROM table_name_2 WHERE goals_against = 47 AND played > 34
What was the minimum crowd on January 24, 1987?
CREATE TABLE table_16025095_1 (attendance INTEGER, date VARCHAR)
SELECT MIN(attendance) FROM table_16025095_1 WHERE date = "January 24, 1987"
Name the least age 30-39 where age 20-29 is 593
CREATE TABLE table_169693_1 (age_30_39 INTEGER, age_20_29 VARCHAR)
SELECT MIN(age_30_39) FROM table_169693_1 WHERE age_20_29 = 593
What game was played on December 8?
CREATE TABLE table_name_80 (game INTEGER, date VARCHAR)
SELECT AVG(game) FROM table_name_80 WHERE date = "december 8"
League Cup smaller than 0 is what sum of the total?
CREATE TABLE table_name_31 (total INTEGER, league_cup INTEGER)
SELECT SUM(total) FROM table_name_31 WHERE league_cup < 0
What League of VSL Sport was Established in 1935?
CREATE TABLE table_name_40 (sport VARCHAR, established VARCHAR, league VARCHAR)
SELECT sport FROM table_name_40 WHERE established = 1935 AND league = "vsl"
Name the party with edward boland
CREATE TABLE table_1341865_23 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341865_23 WHERE incumbent = "Edward Boland"
Which country had notes of sa/b and a rank of 2?
CREATE TABLE table_name_7 (country VARCHAR, notes VARCHAR, rank VARCHAR)
SELECT country FROM table_name_7 WHERE notes = "sa/b" AND rank = 2
Who made a release in the US in 1982?
CREATE TABLE table_name_89 (label VARCHAR, release_date VARCHAR, country VARCHAR)
SELECT label FROM table_name_89 WHERE release_date = 1982 AND country = "us"
What is the class AAA of the 1993-94 school year with a class AAAAA of Duncanville?
CREATE TABLE table_name_58 (class_aAA VARCHAR, class_aAAAA VARCHAR, duncanville VARCHAR, school_year VARCHAR)
SELECT class_aAA FROM table_name_58 WHERE class_aAAAA = duncanville AND school_year = "1993-94"
What is the average attendance at a week 4 game?
CREATE TABLE table_name_97 (attendance INTEGER, week VARCHAR)
SELECT AVG(attendance) FROM table_name_97 WHERE week = 4
What is the score for swimsuit when the average is 8.791?
CREATE TABLE table_12094300_1 (swimsuit VARCHAR, average VARCHAR)
SELECT swimsuit FROM table_12094300_1 WHERE average = "8.791"
Which Avg/G has a Gain of 16, and a Name of barnes, freddie, and a Loss smaller than 2?
CREATE TABLE table_name_91 (avg_g INTEGER, loss VARCHAR, gain VARCHAR, name VARCHAR)
SELECT SUM(avg_g) FROM table_name_91 WHERE gain = 16 AND name = "barnes, freddie" AND loss < 2