answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT name FROM table_name_42 WHERE type = "dead end" AND rank = "22"
CREATE TABLE table_name_42 (name VARCHAR, type VARCHAR, rank VARCHAR)
What is the name of the dead end type ranked 22?
SELECT type FROM table_name_6 WHERE rank = "13"
CREATE TABLE table_name_6 (type VARCHAR, rank VARCHAR)
What is the type ranked 13?
SELECT name FROM table_name_79 WHERE points = 1344
CREATE TABLE table_name_79 (name VARCHAR, points VARCHAR)
Who had 1344 points?
SELECT SUM(wins) FROM table_name_62 WHERE against > 1136 AND losses < 15 AND golden_rivers = "ultima" AND byes < 2
CREATE TABLE table_name_62 (wins INTEGER, byes VARCHAR, golden_rivers VARCHAR, against VARCHAR, losses VARCHAR)
What was the total number of wins that had an against greater than 1136 but losses less than 15 with Ultima with less than 2 byes?
SELECT AVG(wins) FROM table_name_62 WHERE byes < 2
CREATE TABLE table_name_62 (wins INTEGER, byes INTEGER)
What's the average number of wins for those with less than 2 byes?
SELECT MAX(losses) FROM table_name_20 WHERE wins > 13
CREATE TABLE table_name_20 (losses INTEGER, wins INTEGER)
What's the greatest losses for those with more than 13 wins?
SELECT MAX(wins) FROM table_name_17 WHERE losses = 7 AND draws > 0
CREATE TABLE table_name_17 (wins INTEGER, losses VARCHAR, draws VARCHAR)
What was the greatest number of wins for a team that had 7 losses and more than 0 draws?
SELECT SUM(byes) FROM table_name_85 WHERE wins = 7 AND against > 1412
CREATE TABLE table_name_85 (byes INTEGER, wins VARCHAR, against VARCHAR)
What's the number of byes for someone who had 7 wins and an against number greater than 1412?
SELECT COUNT(wins) FROM table_name_11 WHERE byes > 2
CREATE TABLE table_name_11 (wins VARCHAR, byes INTEGER)
What's the total wins of a team with more than 2 byes?
SELECT player FROM table_name_81 WHERE finish = "t16"
CREATE TABLE table_name_81 (player VARCHAR, finish VARCHAR)
Who had a finish of t16?
SELECT country FROM table_name_75 WHERE player = "jack nicklaus"
CREATE TABLE table_name_75 (country VARCHAR, player VARCHAR)
What country is jack nicklaus from?
SELECT player FROM table_name_46 WHERE total = 272
CREATE TABLE table_name_46 (player VARCHAR, total VARCHAR)
Who has a total of 272?
SELECT country FROM table_name_46 WHERE year_s__won = "1977"
CREATE TABLE table_name_46 (country VARCHAR, year_s__won VARCHAR)
What country won in 1977?
SELECT COUNT(draw) FROM table_name_59 WHERE artist = "de spelbrekers" AND points < 0
CREATE TABLE table_name_59 (draw VARCHAR, artist VARCHAR, points VARCHAR)
Can you tell me the total number of Draw that has the Artist of de spelbrekers, and the Points smaller than 0?
SELECT artist FROM table_name_66 WHERE draw < 16 AND english_translation = "lullaby"
CREATE TABLE table_name_66 (artist VARCHAR, draw VARCHAR, english_translation VARCHAR)
Can you tell me the Artist that has the Draw smaller than 16, and the English translation of lullaby?
SELECT english_translation FROM table_name_61 WHERE artist = "camillo felgen"
CREATE TABLE table_name_61 (english_translation VARCHAR, artist VARCHAR)
Can you tell me the English translation that has the Artist of camillo felgen?
SELECT AVG(population) FROM table_name_59 WHERE area_km_2 > 3.09 AND status = "town"
CREATE TABLE table_name_59 (population INTEGER, area_km_2 VARCHAR, status VARCHAR)
What is the population of the town with an area larger than 3.09?
SELECT AVG(area_km_2) FROM table_name_97 WHERE census_ranking = "636 of 5,008"
CREATE TABLE table_name_97 (area_km_2 INTEGER, census_ranking VARCHAR)
What is the area of the community with a census ranking of 636 of 5,008?
SELECT MAX(area_km_2) FROM table_name_45 WHERE status = "village" AND official_name = "drummond"
CREATE TABLE table_name_45 (area_km_2 INTEGER, status VARCHAR, official_name VARCHAR)
What is the area of drummond village?
SELECT status FROM table_name_67 WHERE census_ranking = "2,418 of 5,008"
CREATE TABLE table_name_67 (status VARCHAR, census_ranking VARCHAR)
What is the status of the community with a census ranking of 2,418 of 5,008?
SELECT MAX(area_km_2) FROM table_name_92 WHERE status = "village" AND census_ranking = "1,442 of 5,008" AND population < 1 OFFSET 778
CREATE TABLE table_name_92 (area_km_2 INTEGER, population VARCHAR, status VARCHAR, census_ranking VARCHAR)
What is the area of the village with a census ranking of 1,442 of 5,008 and a population less than 1,778?
SELECT year_s__won FROM table_name_86 WHERE to_par < 16 AND total = 151
CREATE TABLE table_name_86 (year_s__won VARCHAR, to_par VARCHAR, total VARCHAR)
WHAT YEAR HAS A TO PAR SMALLER THAN 16, TOTAL 151?
SELECT MAX(total) FROM table_name_30 WHERE to_par = 10
CREATE TABLE table_name_30 (total INTEGER, to_par VARCHAR)
WHAT IS THE TOTAL WITH A TO PAR OF 10?
SELECT player FROM table_name_41 WHERE total < 151 AND to_par = 8
CREATE TABLE table_name_41 (player VARCHAR, total VARCHAR, to_par VARCHAR)
WHAT IS THE PLAYER WITH TOTAL LESS THAN 151, TO PAR OF 8?
SELECT player FROM table_name_31 WHERE total < 4 AND scottish_cup = 0 AND league_cup > 0
CREATE TABLE table_name_31 (player VARCHAR, league_cup VARCHAR, total VARCHAR, scottish_cup VARCHAR)
Who is the player who has a total less than 4, no scottish cups, and a league cup greater than 0?
SELECT SUM(scottish_cup) FROM table_name_47 WHERE league_cup < 2 AND total > 6 AND position = "forward"
CREATE TABLE table_name_47 (scottish_cup INTEGER, position VARCHAR, league_cup VARCHAR, total VARCHAR)
What is the sum of the scottish cup of the forward player with less than 2 league cups and a total greater than 6?
SELECT kilgore__r_ FROM table_name_47 WHERE potts__i_ = "4%" AND kaine__d_ = "47%" AND date = "october 30, 2005"
CREATE TABLE table_name_47 (kilgore__r_ VARCHAR, date VARCHAR, potts__i_ VARCHAR, kaine__d_ VARCHAR)
What was Kilgore's percentage when Potts (I) had 4% and Kaine (D) 47%, in the poll from October 30, 2005?
SELECT date FROM table_name_92 WHERE potts__i_ = "9%"
CREATE TABLE table_name_92 (date VARCHAR, potts__i_ VARCHAR)
On which date did Potts (I) poll at 9%?
SELECT kaine__d_ FROM table_name_43 WHERE source = "rasmussen" AND date = "october 24, 2005"
CREATE TABLE table_name_43 (kaine__d_ VARCHAR, source VARCHAR, date VARCHAR)
What was Kaine's (D) percentage in the Rasmussen poll on October 24, 2005?
SELECT kaine__d_ FROM table_name_55 WHERE date = "october 30, 2005"
CREATE TABLE table_name_55 (kaine__d_ VARCHAR, date VARCHAR)
What was Kaine's (D) percentage in the poll on October 30, 2005?
SELECT kilgore__r_ FROM table_name_95 WHERE potts__i_ = "1%"
CREATE TABLE table_name_95 (kilgore__r_ VARCHAR, potts__i_ VARCHAR)
What was Kilgore's (R) percentage when Potts (I) polled at 1%?
SELECT kaine__d_ FROM table_name_7 WHERE date = "september 19, 2005"
CREATE TABLE table_name_7 (kaine__d_ VARCHAR, date VARCHAR)
What was Kaine's (D) percentage in the poll on september 19, 2005?
SELECT to_par FROM table_name_85 WHERE country = "united states" AND player = "jay haas"
CREATE TABLE table_name_85 (to_par VARCHAR, country VARCHAR, player VARCHAR)
What is To par, when Country is "United States", and when Player is "Jay Haas"?
SELECT player FROM table_name_71 WHERE score = 68 - 67 - 75 - 70 = 280
CREATE TABLE table_name_71 (player VARCHAR, score VARCHAR)
What is Player, when Score is "68-67-75-70=280"?
SELECT result FROM table_name_49 WHERE competition = "friendly" AND date = "23 january 2010"
CREATE TABLE table_name_49 (result VARCHAR, competition VARCHAR, date VARCHAR)
What is the result of the friendly competition on 23 January 2010?
SELECT venue FROM table_name_61 WHERE result = "w" AND date = "3 march 2010"
CREATE TABLE table_name_61 (venue VARCHAR, result VARCHAR, date VARCHAR)
What is the venue of the match with a w result on 3 March 2010?
SELECT MIN(year) FROM table_name_24 WHERE notes = "5.19km, 18controls"
CREATE TABLE table_name_24 (year INTEGER, notes VARCHAR)
What is the lowest Year, when Notes is "5.19km, 18controls"?
SELECT notes FROM table_name_96 WHERE year = 2010
CREATE TABLE table_name_96 (notes VARCHAR, year VARCHAR)
What is Notes, when Year is "2010"?
SELECT winning_score FROM table_name_64 WHERE runner_s__up = "in-kyung kim"
CREATE TABLE table_name_64 (winning_score VARCHAR, runner_s__up VARCHAR)
What winning score has in-kyung kim as the runner(s)-up?
SELECT winning_score FROM table_name_74 WHERE tournament = "kraft nabisco championship"
CREATE TABLE table_name_74 (winning_score VARCHAR, tournament VARCHAR)
What winning score has kraft nabisco championship as the tournament?
SELECT winning_constructor FROM table_name_97 WHERE name = "grand prix de la marne"
CREATE TABLE table_name_97 (winning_constructor VARCHAR, name VARCHAR)
What Winning constructor has a Name of grand prix de la marne?
SELECT winning_driver FROM table_name_11 WHERE circuit = "saint-raphaël"
CREATE TABLE table_name_11 (winning_driver VARCHAR, circuit VARCHAR)
What kind of the Winning driver has a Circuit of saint-raphaël?
SELECT report FROM table_name_28 WHERE winning_constructor = "maserati" AND name = "monza grand prix"
CREATE TABLE table_name_28 (report VARCHAR, winning_constructor VARCHAR, name VARCHAR)
Name the Report with Winning constructor of maserati, and a Name of monza grand prix?
SELECT report FROM table_name_70 WHERE name = "lyon grand prix"
CREATE TABLE table_name_70 (report VARCHAR, name VARCHAR)
Name the Report has a Name of lyon grand prix?
SELECT report FROM table_name_29 WHERE winning_driver = "heinrich-joachim von morgen"
CREATE TABLE table_name_29 (report VARCHAR, winning_driver VARCHAR)
Name the Report which has heinrich-joachim von morgen?
SELECT player FROM table_name_79 WHERE draft < 1975 AND round < 6
CREATE TABLE table_name_79 (player VARCHAR, draft VARCHAR, round VARCHAR)
Which player had a draft before 1975 and before round 6?
SELECT score FROM table_name_83 WHERE opponent_team = "belgium" AND opponent = "kirsten flipkens"
CREATE TABLE table_name_83 (score VARCHAR, opponent_team VARCHAR, opponent VARCHAR)
What is Score, when Opponent Team is Belgium, and when Opponent is Kirsten Flipkens?
SELECT opponent FROM table_name_94 WHERE round = "world group"
CREATE TABLE table_name_94 (opponent VARCHAR, round VARCHAR)
What is Opponent, when Round is World Group?
SELECT surface FROM table_name_51 WHERE edition = 2012 AND outcome = "winner"
CREATE TABLE table_name_51 (surface VARCHAR, edition VARCHAR, outcome VARCHAR)
What is Surface, when Edition is 2012, and when Outcome is Winner?
SELECT score FROM table_name_32 WHERE outcome = "loser" AND edition = 2011
CREATE TABLE table_name_32 (score VARCHAR, outcome VARCHAR, edition VARCHAR)
What is Score, when Outcome is Loser, and when Edition is 2011?
SELECT score FROM table_name_37 WHERE edition = 2011 AND surface = "hard (i)"
CREATE TABLE table_name_37 (score VARCHAR, edition VARCHAR, surface VARCHAR)
What is Score, when Edition is 2011, and when Surface is Hard (i)?
SELECT round FROM table_name_7 WHERE opponent_team = "slovakia" AND outcome = "loser" AND edition > 2010
CREATE TABLE table_name_7 (round VARCHAR, edition VARCHAR, opponent_team VARCHAR, outcome VARCHAR)
What is Round, when Opponent Team is Slovakia, when Outcome is Loser, and when Edition is greater than 2010?
SELECT MIN(week) FROM table_name_7 WHERE record = "4–7–1"
CREATE TABLE table_name_7 (week INTEGER, record VARCHAR)
In what Week was the Record 4–7–1?
SELECT date FROM table_name_62 WHERE attendance = "63,546"
CREATE TABLE table_name_62 (date VARCHAR, attendance VARCHAR)
On what Date was the Attendance 63,546?
SELECT COUNT(week) FROM table_name_19 WHERE attendance = "17,737"
CREATE TABLE table_name_19 (week VARCHAR, attendance VARCHAR)
In what Week was the Attendance 17,737?
SELECT result FROM table_name_26 WHERE week > 10 AND opponent = "philadelphia eagles"
CREATE TABLE table_name_26 (result VARCHAR, week VARCHAR, opponent VARCHAR)
What is the Result of the game after Week 10 against Philadelphia Eagles?
SELECT opponent FROM table_name_28 WHERE week = 11
CREATE TABLE table_name_28 (opponent VARCHAR, week VARCHAR)
What is the Opponent on Week 11?
SELECT MAX(wnba_game_average) FROM table_name_11 WHERE average = "9,290 (4th)" AND total_for_year < 157 OFFSET 934
CREATE TABLE table_name_11 (wnba_game_average INTEGER, average VARCHAR, total_for_year VARCHAR)
What is the largest WNBA game average with 9,290 (4th) is the average, and less than 157,934 is the total for the year?
SELECT COUNT(year) FROM table_name_59 WHERE total_for_year < 105 OFFSET 005
CREATE TABLE table_name_59 (year VARCHAR, total_for_year INTEGER)
How many years in all was less than 105,005 the total for the year?
SELECT MAX(sellouts) FROM table_name_89 WHERE year = 2008 AND total_for_year < 161 OFFSET 369
CREATE TABLE table_name_89 (sellouts INTEGER, year VARCHAR, total_for_year VARCHAR)
What is the maximum sellouts for the 2008 year, with less than 161,369 total for year?
SELECT MAX(first_elected) FROM table_name_48 WHERE party = "republican" AND district = "louisiana 7"
CREATE TABLE table_name_48 (first_elected INTEGER, party VARCHAR, district VARCHAR)
What is the highest First Elected, when Party is "Republican", and when District is "Louisiana 7"?
SELECT party FROM table_name_76 WHERE results = "re-elected" AND district = "louisiana 5"
CREATE TABLE table_name_76 (party VARCHAR, results VARCHAR, district VARCHAR)
What is Party, when Results is "Re-Elected", and when District is "Louisiana 5"?
SELECT party FROM table_name_52 WHERE incumbent = "rodney alexander"
CREATE TABLE table_name_52 (party VARCHAR, incumbent VARCHAR)
What is Party, when Incumbent is "Rodney Alexander"?
SELECT results FROM table_name_93 WHERE first_elected < 1988
CREATE TABLE table_name_93 (results VARCHAR, first_elected INTEGER)
What is Results, when First Elected is less than 1988?
SELECT incumbent FROM table_name_7 WHERE district = "louisiana 4"
CREATE TABLE table_name_7 (incumbent VARCHAR, district VARCHAR)
What is Incumbent, when District is "Louisiana 4"?
SELECT finish FROM table_name_33 WHERE car_number = "6"
CREATE TABLE table_name_33 (finish VARCHAR, car_number VARCHAR)
What's the finish for car number 6?
SELECT speed_rank FROM table_name_11 WHERE year = "1963"
CREATE TABLE table_name_11 (speed_rank VARCHAR, year VARCHAR)
What's the speed rank in 1963?
SELECT SUM(losses) FROM table_name_50 WHERE result = "runner-up" AND wins = 1 AND year < 2006
CREATE TABLE table_name_50 (losses INTEGER, year VARCHAR, result VARCHAR, wins VARCHAR)
What is the total of Losses with a Result of runner-up, Wins of 1, and a Year smaller than 2006?
SELECT MIN(draws) FROM table_name_60 WHERE result = "runner-up" AND losses > 1
CREATE TABLE table_name_60 (draws INTEGER, result VARCHAR, losses VARCHAR)
What is the smallest Draws with a Result of runner-up, and Losses larger than 1?
SELECT COUNT(year) FROM table_name_34 WHERE result = "champions" AND matches > 5
CREATE TABLE table_name_34 (year VARCHAR, result VARCHAR, matches VARCHAR)
What is the number of Year with a Result of champions, and Matches larger than 5?
SELECT MAX(wins) FROM table_name_48 WHERE losses > 1
CREATE TABLE table_name_48 (wins INTEGER, losses INTEGER)
What is the greatest Wins with Losses larger than 1?
SELECT SUM(year) FROM table_name_93 WHERE wins = 1 AND losses < 1
CREATE TABLE table_name_93 (year INTEGER, wins VARCHAR, losses VARCHAR)
What is the total number of Year with Wins of 1, and Losses smaller than 1?
SELECT MAX(wins) FROM table_name_26 WHERE matches < 5 AND year = 1994
CREATE TABLE table_name_26 (wins INTEGER, matches VARCHAR, year VARCHAR)
What is the greatest Wins with Matches smaller than 5, and a Year of 1994?
SELECT date FROM table_name_77 WHERE opponent = "motherwell" AND venue = "fir park"
CREATE TABLE table_name_77 (date VARCHAR, opponent VARCHAR, venue VARCHAR)
On what date was Motherwell the opponent at Fir Park?
SELECT round FROM table_name_37 WHERE venue = "st. mirren park" AND attendance > 4 OFFSET 555
CREATE TABLE table_name_37 (round VARCHAR, venue VARCHAR, attendance VARCHAR)
What is the round at St. Mirren Park with more than 4,555 people attending?
SELECT SUM(attendance) FROM table_name_62 WHERE away_team = "banbury united" AND tie_no > 102
CREATE TABLE table_name_62 (attendance INTEGER, away_team VARCHAR, tie_no VARCHAR)
What's the sum of attendance when banbury united is the away team and tie no is over 102?
SELECT SUM(tie_no) FROM table_name_76 WHERE home_team = "burgess hill town"
CREATE TABLE table_name_76 (tie_no INTEGER, home_team VARCHAR)
What's the sum of tie no for home team burgess hill town?
SELECT MAX(population) FROM table_name_22 WHERE county = "deuel" AND number_of_households < 1 OFFSET 819
CREATE TABLE table_name_22 (population INTEGER, county VARCHAR, number_of_households VARCHAR)
What is the highest population of Deuel county's 1,819 households?
SELECT competition FROM table_name_88 WHERE venue = "away" AND opponent = "bracknell bees"
CREATE TABLE table_name_88 (competition VARCHAR, venue VARCHAR, opponent VARCHAR)
When the venue is away and the opponents are the bracknell bees, what is the competition?
SELECT opponent FROM table_name_76 WHERE venue = "away" AND date = "28th"
CREATE TABLE table_name_76 (opponent VARCHAR, venue VARCHAR, date VARCHAR)
What opponent played on the 28th with a venue of away?
SELECT venue FROM table_name_29 WHERE date = "20th"
CREATE TABLE table_name_29 (venue VARCHAR, date VARCHAR)
What was the venue on the 20th?
SELECT date FROM table_name_25 WHERE venue = "home" AND opponent = "peterborough phantoms"
CREATE TABLE table_name_25 (date VARCHAR, venue VARCHAR, opponent VARCHAR)
When did the peterborough phantoms play at a venue of home?
SELECT opponent FROM table_name_10 WHERE result = "2-0 l"
CREATE TABLE table_name_10 (opponent VARCHAR, result VARCHAR)
Which opponent has a result of 2-0 l?
SELECT opponent FROM table_name_73 WHERE competition = "challenge" AND result = "8-2 w"
CREATE TABLE table_name_73 (opponent VARCHAR, competition VARCHAR, result VARCHAR)
Which opponent completed a challenge competition with a result of 8-2 w?
SELECT round FROM table_name_43 WHERE race = "int. adac preis von zweibrücken"
CREATE TABLE table_name_43 (round VARCHAR, race VARCHAR)
What shows for round when the race was Int. Adac Preis Von Zweibrücken?
SELECT AVG(round) FROM table_name_43 WHERE circuit = "norisring"
CREATE TABLE table_name_43 (round INTEGER, circuit VARCHAR)
What is the round for the Norisring circuit?
SELECT race FROM table_name_45 WHERE round < 8 AND date = "6 july"
CREATE TABLE table_name_45 (race VARCHAR, round VARCHAR, date VARCHAR)
What race was a round smaller than 8, on 6 july?
SELECT round FROM table_name_92 WHERE race = "int. adac-preis der tourenwagen von sachsen-anhalt"
CREATE TABLE table_name_92 (round VARCHAR, race VARCHAR)
What is the round for the Int. Adac-Preis Der Tourenwagen Von Sachsen-Anhalt?
SELECT COUNT(week) FROM table_name_29 WHERE attendance = 56 OFFSET 023
CREATE TABLE table_name_29 (week VARCHAR, attendance VARCHAR)
What week were there 56,023 people in attendance?
SELECT COUNT(attendance) FROM table_name_45 WHERE week > 9 AND date = "november 20, 1983"
CREATE TABLE table_name_45 (attendance VARCHAR, week VARCHAR, date VARCHAR)
What is the attendance number later than week 9 on November 20, 1983?
SELECT surface FROM table_name_45 WHERE date < 1979 AND opponent_in_the_final = "bill scanlon"
CREATE TABLE table_name_45 (surface VARCHAR, date VARCHAR, opponent_in_the_final VARCHAR)
What is Surface, when Date is less than 1979, and when Opponent in the Final is "Bill Scanlon"?
SELECT score_in_the_final FROM table_name_98 WHERE opponent_in_the_final = "john mcenroe" AND championship = "los angeles , u.s."
CREATE TABLE table_name_98 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR, championship VARCHAR)
What is Score in The Final, when Opponent in The Final is "John McEnroe", and when Championship is "Los Angeles , U.S."?
SELECT outcome FROM table_name_98 WHERE opponent_in_the_final = "bill scanlon"
CREATE TABLE table_name_98 (outcome VARCHAR, opponent_in_the_final VARCHAR)
What is Outcome, when Opponent in The Final is "Bill Scanlon"?
SELECT to_par FROM table_name_34 WHERE player = "bernhard langer"
CREATE TABLE table_name_34 (to_par VARCHAR, player VARCHAR)
Which To par has a Player of bernhard langer?
SELECT score FROM table_name_33 WHERE country = "united states" AND player = "raymond floyd"
CREATE TABLE table_name_33 (score VARCHAR, country VARCHAR, player VARCHAR)
Which Score has a Country of united states, and a Player of raymond floyd?
SELECT to_par FROM table_name_56 WHERE place = "t6" AND player = "nick faldo"
CREATE TABLE table_name_56 (to_par VARCHAR, place VARCHAR, player VARCHAR)
Which To par has a Place of t6, and a Player of nick faldo?
SELECT to_par FROM table_name_59 WHERE place = "t2" AND player = "mark james"
CREATE TABLE table_name_59 (to_par VARCHAR, place VARCHAR, player VARCHAR)
Which To par has a Place of t2, and a Player of mark james?
SELECT country FROM table_name_2 WHERE place = "t10" AND player = "tony jacklin"
CREATE TABLE table_name_2 (country VARCHAR, place VARCHAR, player VARCHAR)
Which Country has a Place of t10, and a Player of tony jacklin?
SELECT country FROM table_name_37 WHERE score = 71 - 74 - 70 = 215
CREATE TABLE table_name_37 (country VARCHAR, score VARCHAR)
Which Country has a Score of 71-74-70=215?
SELECT AVG(losses) FROM table_name_39 WHERE wins < 4 AND against = 2510 AND byes > 0
CREATE TABLE table_name_39 (losses INTEGER, byes VARCHAR, wins VARCHAR, against VARCHAR)
How many losses for the team with less than 4 wins, more than 0 byes and 2510 against?