training_input
stringlengths
118
1.06k
###context:CREATE TABLE table_name_52 (week_8 VARCHAR, week_1 VARCHAR) ###human: Who did the housemate that nominated Carol Roopali in week 1 nominate in week 8? ###assistant: SELECT week_8 FROM table_name_52 WHERE week_1 = "carol roopali"
###context:CREATE TABLE table_name_92 (ihsaa_class VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR) ###human: What is the IHSAA class of Centerville, which plays IHSAA class AA football? ###assistant: SELECT ihsaa_class FROM table_name_92 WHERE ihsaa_football_class = "aa" AND school = "centerville"
###context:CREATE TABLE table_name_99 (location VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR) ###human: Winchester Community school, which plays IHSAA class AA football, is located where? ###assistant: SELECT location FROM table_name_99 WHERE ihsaa_football_class = "aa" AND school = "winchester community"
###context:CREATE TABLE table_name_51 (ihsaa_class VARCHAR, size VARCHAR, mascot VARCHAR) ###human: What is the IHSAA class of the school with less than 400 students and a mascot of the Tigers? ###assistant: SELECT ihsaa_class FROM table_name_51 WHERE size < 400 AND mascot = "tigers"
###context:CREATE TABLE table_name_81 (county VARCHAR, ihsaa_football_class VARCHAR, size VARCHAR) ###human: What county has a school with less than 301 students and plays IHSAA class A football? ###assistant: SELECT county FROM table_name_81 WHERE ihsaa_football_class = "a" AND size < 301
###context:CREATE TABLE table_name_53 (game INTEGER, score VARCHAR) ###human: What is the lowest game when the score is 102-104? ###assistant: SELECT MIN(game) FROM table_name_53 WHERE score = "102-104"
###context:CREATE TABLE table_name_49 (score VARCHAR, game VARCHAR) ###human: what is the score for game 4? ###assistant: SELECT score FROM table_name_49 WHERE game = 4
###context:CREATE TABLE table_name_88 (series VARCHAR, game VARCHAR) ###human: what is the series for game 4? ###assistant: SELECT series FROM table_name_88 WHERE game = 4
###context:CREATE TABLE table_name_47 (pendle INTEGER, burnley INTEGER) ###human: Which Pendle has a Burnley smaller than 0? ###assistant: SELECT SUM(pendle) FROM table_name_47 WHERE burnley < 0
###context:CREATE TABLE table_name_95 (rossendale VARCHAR, fylde INTEGER) ###human: How much Rossendale has a Fylde smaller than 0? ###assistant: SELECT COUNT(rossendale) FROM table_name_95 WHERE fylde < 0
###context:CREATE TABLE table_name_52 (hyndburn INTEGER, fylde INTEGER) ###human: How much Hyndburn has a Fylde larger than 3? ###assistant: SELECT SUM(hyndburn) FROM table_name_52 WHERE fylde > 3
###context:CREATE TABLE table_name_97 (burnley INTEGER, fylde VARCHAR, rossendale VARCHAR) ###human: How much Burnley has a Fylde smaller than 1, and a Rossendale larger than 0? ###assistant: SELECT SUM(burnley) FROM table_name_97 WHERE fylde < 1 AND rossendale > 0
###context:CREATE TABLE table_name_45 (years VARCHAR, soap_opera VARCHAR, actor VARCHAR) ###human: What are the years that have un posto al sole as the soap opera, with riccardo polizzy carbonelli as the actor? ###assistant: SELECT years FROM table_name_45 WHERE soap_opera = "un posto al sole" AND actor = "riccardo polizzy carbonelli"
###context:CREATE TABLE table_name_26 (years VARCHAR, duration VARCHAR, actor VARCHAR) ###human: What years have a duration of 18 years, and patrizio rispo as the actor? ###assistant: SELECT years FROM table_name_26 WHERE duration = "18 years" AND actor = "patrizio rispo"
###context:CREATE TABLE table_name_33 (years VARCHAR, duration VARCHAR, character VARCHAR) ###human: What are the years that have a duration of 15 years and giulia poggi as the character? ###assistant: SELECT years FROM table_name_33 WHERE duration = "15 years" AND character = "giulia poggi"
###context:CREATE TABLE table_name_18 (years VARCHAR, actor VARCHAR) ###human: What years have claudia ruffo as the actor? ###assistant: SELECT years FROM table_name_18 WHERE actor = "claudia ruffo"
###context:CREATE TABLE table_name_42 (duration VARCHAR, actor VARCHAR) ###human: What is the duration that has pietro genuardi as the actor? ###assistant: SELECT duration FROM table_name_42 WHERE actor = "pietro genuardi"
###context:CREATE TABLE table_name_84 (soap_opera VARCHAR, duration VARCHAR, actor VARCHAR) ###human: What is the soap opera that has a duration of 13 years, with marina giulia cavalli as the actor? ###assistant: SELECT soap_opera FROM table_name_84 WHERE duration = "13 years" AND actor = "marina giulia cavalli"
###context:CREATE TABLE table_name_76 (attendance INTEGER, date VARCHAR, week VARCHAR) ###human: What is the lowest attendance for December 14, 1958 after week 12? ###assistant: SELECT MIN(attendance) FROM table_name_76 WHERE date = "december 14, 1958" AND week > 12
###context:CREATE TABLE table_name_38 (week VARCHAR, opponent VARCHAR) ###human: What is the total for the week in the game against the Chicago Bears ###assistant: SELECT COUNT(week) FROM table_name_38 WHERE opponent = "chicago bears"
###context:CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR, week VARCHAR) ###human: What is the highest attendance for December 14, 1958 for after week 12 ###assistant: SELECT MAX(attendance) FROM table_name_40 WHERE date = "december 14, 1958" AND week > 12
###context:CREATE TABLE table_name_88 (outcome VARCHAR, year VARCHAR, score VARCHAR) ###human: What is the Outcome of the Match played after 2003 with a Score of 6–0, 6–3? ###assistant: SELECT outcome FROM table_name_88 WHERE year > 2003 AND score = "6–0, 6–3"
###context:CREATE TABLE table_name_22 (outcome VARCHAR, score VARCHAR) ###human: What is the Outcome of the match with a Score of 6–1, 6–1? ###assistant: SELECT outcome FROM table_name_22 WHERE score = "6–1, 6–1"
###context:CREATE TABLE table_name_23 (name VARCHAR, rank VARCHAR) ###human: Who has rank 5? ###assistant: SELECT name FROM table_name_23 WHERE rank = 5
###context:CREATE TABLE table_name_90 (nationality VARCHAR, rank VARCHAR) ###human: Which nationality has rank 4? ###assistant: SELECT nationality FROM table_name_90 WHERE rank = 4
###context:CREATE TABLE table_name_5 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) ###human: What title was used in the nomination of Matrimonio All'Italiana? ###assistant: SELECT film_title_used_in_nomination FROM table_name_5 WHERE original_title = "matrimonio all'italiana"
###context:CREATE TABLE table_name_11 (language VARCHAR, category VARCHAR, original_title VARCHAR) ###human: What language was the film Pelle Erobreren, which received the best actor nomination, in? ###assistant: SELECT language FROM table_name_11 WHERE category = "best actor" AND original_title = "pelle erobreren"
###context:CREATE TABLE table_name_43 (film_title_used_in_nomination VARCHAR, language VARCHAR, original_title VARCHAR) ###human: What title was used in the nomination of the Spanish language film Traffic? ###assistant: SELECT film_title_used_in_nomination FROM table_name_43 WHERE language = "spanish" AND original_title = "traffic"
###context:CREATE TABLE table_name_20 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) ###human: What title was used in the nomination of Una Giornata Particolare? ###assistant: SELECT film_title_used_in_nomination FROM table_name_20 WHERE original_title = "una giornata particolare"
###context:CREATE TABLE table_name_98 (date VARCHAR, test_debut VARCHAR, position VARCHAR, year VARCHAR) ###human: What date has a Position of back, later than 1964, and a Test debut of 1st rl test v new zealand? ###assistant: SELECT date FROM table_name_98 WHERE position = "back" AND year > 1964 AND test_debut = "1st rl test v new zealand"
###context:CREATE TABLE table_name_92 (position VARCHAR, test_debut VARCHAR, year VARCHAR, cross_code_debut VARCHAR) ###human: What is the position earlier than 1907, with a cross-code debut of inaugural rl test v new zealand, and a test debut of inaugural ru test v new zealand? ###assistant: SELECT position FROM table_name_92 WHERE year < 1907 AND cross_code_debut = "inaugural rl test v new zealand" AND test_debut = "inaugural ru test v new zealand"
###context:CREATE TABLE table_name_87 (cross_code_debut VARCHAR, year VARCHAR, player VARCHAR) ###human: What is the cross-code debut later than 1958 for Dick Thornett? ###assistant: SELECT cross_code_debut FROM table_name_87 WHERE year > 1958 AND player = "dick thornett"
###context:CREATE TABLE table_name_79 (position VARCHAR, cross_code_debut VARCHAR) ###human: What position has a Cross-code debut of 1st ru test v ireland? ###assistant: SELECT position FROM table_name_79 WHERE cross_code_debut = "1st ru test v ireland"
###context:CREATE TABLE table_name_4 (time VARCHAR, away_team VARCHAR) ###human: What was the time for the match with away team Shatin? ###assistant: SELECT time FROM table_name_4 WHERE away_team = "shatin"
###context:CREATE TABLE table_name_47 (time VARCHAR, away_team VARCHAR) ###human: What was the time for the match with away team Convoy Sun Hei Team A? ###assistant: SELECT time FROM table_name_47 WHERE away_team = "convoy sun hei team a"
###context:CREATE TABLE table_name_45 (away_team VARCHAR, time VARCHAR) ###human: What was the away team for the match that had a time of 18:30? ###assistant: SELECT away_team FROM table_name_45 WHERE time = "18:30"
###context:CREATE TABLE table_name_28 (time VARCHAR, away_team VARCHAR) ###human: What was the time for the match with away team Mutual Team B? ###assistant: SELECT time FROM table_name_28 WHERE away_team = "mutual team b"
###context:CREATE TABLE table_name_17 (time VARCHAR, home_team VARCHAR) ###human: What was the time for the match that had a a home team of HKSSF? ###assistant: SELECT time FROM table_name_17 WHERE home_team = "hkssf"
###context:CREATE TABLE table_name_78 (attendance VARCHAR, date VARCHAR) ###human: How many people attended on december 26, 1982? ###assistant: SELECT attendance FROM table_name_78 WHERE date = "december 26, 1982"
###context:CREATE TABLE table_name_12 (byes VARCHAR, losses VARCHAR, wins VARCHAR, wimmera_fl VARCHAR) ###human: How many Byes have Wins smaller than 11, and a Wimmera FL of minyip murtoa, and Losses smaller than 6? ###assistant: SELECT COUNT(byes) FROM table_name_12 WHERE wins < 11 AND wimmera_fl = "minyip murtoa" AND losses < 6
###context:CREATE TABLE table_name_42 (losses INTEGER, against VARCHAR, wins VARCHAR) ###human: Which Losses have an Against smaller than 1018, and Wins smaller than 14? ###assistant: SELECT AVG(losses) FROM table_name_42 WHERE against < 1018 AND wins < 14
###context:CREATE TABLE table_name_56 (byes INTEGER, against VARCHAR, wimmera_fl VARCHAR) ###human: Which Byes have an Against larger than 1018, and a Wimmera FL of horsham diggers? ###assistant: SELECT MIN(byes) FROM table_name_56 WHERE against > 1018 AND wimmera_fl = "horsham diggers"
###context:CREATE TABLE table_name_35 (losses INTEGER, wimmera_fl VARCHAR) ###human: Which Losses have a Wimmera FL of minyip murtoa? ###assistant: SELECT AVG(losses) FROM table_name_35 WHERE wimmera_fl = "minyip murtoa"
###context:CREATE TABLE table_name_68 (against INTEGER, draws VARCHAR, losses VARCHAR, wimmera_fl VARCHAR) ###human: Which Against has Losses smaller than 5, and a Wimmera FL of warrack eagles, and Draws smaller than 0? ###assistant: SELECT AVG(against) FROM table_name_68 WHERE losses < 5 AND wimmera_fl = "warrack eagles" AND draws < 0
###context:CREATE TABLE table_name_6 (country VARCHAR, name VARCHAR) ###human: Which country has Spence in the name section? ###assistant: SELECT country FROM table_name_6 WHERE name = "spence"
###context:CREATE TABLE table_name_85 (country VARCHAR, name VARCHAR, status VARCHAR, moving_to VARCHAR) ###human: Which country has the status of transferred, moving to of released, and Solano as the listed name? ###assistant: SELECT country FROM table_name_85 WHERE status = "transferred" AND moving_to = "released" AND name = "solano"
###context:CREATE TABLE table_name_46 (transfer_fee VARCHAR, name VARCHAR) ###human: What is the transfer fee for the country that has the name McCartney listed? ###assistant: SELECT transfer_fee FROM table_name_46 WHERE name = "mccartney"
###context:CREATE TABLE table_name_57 (name VARCHAR, status VARCHAR, moving_to VARCHAR) ###human: What is the name listed for the country that has a status of loaned and a moving to listed as leyton orient? ###assistant: SELECT name FROM table_name_57 WHERE status = "loaned" AND moving_to = "leyton orient"
###context:CREATE TABLE table_name_53 (transfer_fee VARCHAR, country VARCHAR) ###human: What is the transfer fee for the country of Nir? ###assistant: SELECT transfer_fee FROM table_name_53 WHERE country = "nir"
###context:CREATE TABLE table_name_50 (fastest_lap VARCHAR, winning_driver VARCHAR, pole_position VARCHAR) ###human: Who had the fastest lap when adam christodoulou was the winning driver and had the pole position? ###assistant: SELECT fastest_lap FROM table_name_50 WHERE winning_driver = "adam christodoulou" AND pole_position = "adam christodoulou"
###context:CREATE TABLE table_name_10 (date VARCHAR, circuit VARCHAR, fastest_lap VARCHAR) ###human: What date was the circuit, snetterton, when riki christodoulou had the fastest lap? ###assistant: SELECT date FROM table_name_10 WHERE circuit = "snetterton" AND fastest_lap = "riki christodoulou"
###context:CREATE TABLE table_name_10 (pole_position VARCHAR, fastest_lap VARCHAR, circuit VARCHAR) ###human: who had the pole position at rockingham circuit with adam christodoulou having the fastest lap? ###assistant: SELECT pole_position FROM table_name_10 WHERE fastest_lap = "adam christodoulou" AND circuit = "rockingham"
###context:CREATE TABLE table_name_47 (bonus_points VARCHAR, points_against VARCHAR) ###human: What bonus points have 448 as the points against? ###assistant: SELECT bonus_points FROM table_name_47 WHERE points_against = "448"
###context:CREATE TABLE table_name_92 (points_for VARCHAR, games VARCHAR, total_points VARCHAR) ###human: What points for have 30 as the game, and 73 as the total points? ###assistant: SELECT points_for FROM table_name_92 WHERE games = "30" AND total_points = "73"
###context:CREATE TABLE table_name_49 (drawn VARCHAR, points_for VARCHAR, points_against VARCHAR) ###human: What drawn has 416 as the points for and 533 as the points against? ###assistant: SELECT drawn FROM table_name_49 WHERE points_for = "416" AND points_against = "533"
###context:CREATE TABLE table_name_8 (match_points VARCHAR, points_against VARCHAR) ###human: What match points have 755 as the points against? ###assistant: SELECT match_points FROM table_name_8 WHERE points_against = "755"
###context:CREATE TABLE table_name_47 (games VARCHAR, club VARCHAR) ###human: What games have colomiers as the club? ###assistant: SELECT games FROM table_name_47 WHERE club = "colomiers"
###context:CREATE TABLE table_name_52 (lost VARCHAR, match_points VARCHAR) ###human: Which lost has 84 as the match points? ###assistant: SELECT lost FROM table_name_52 WHERE match_points = "84"
###context:CREATE TABLE table_name_37 (constituency_number VARCHAR, name VARCHAR) ###human: How many constituents does udaipura have? ###assistant: SELECT constituency_number FROM table_name_37 WHERE name = "udaipura"
###context:CREATE TABLE table_name_14 (lane VARCHAR, name VARCHAR) ###human: What lane was Henrique Barbosa in? ###assistant: SELECT COUNT(lane) FROM table_name_14 WHERE name = "henrique barbosa"
###context:CREATE TABLE table_name_82 (game VARCHAR, year VARCHAR, genre VARCHAR) ###human: What game was before 2010 and was a role-playing game? ###assistant: SELECT game FROM table_name_82 WHERE year < 2010 AND genre = "role-playing game"
###context:CREATE TABLE table_name_11 (platform_s_ VARCHAR, game VARCHAR) ###human: What was the platform of Red Dead Redemption? ###assistant: SELECT platform_s_ FROM table_name_11 WHERE game = "red dead redemption"
###context:CREATE TABLE table_name_50 (developer_s_ VARCHAR, platform_s_ VARCHAR) ###human: Who was the developer of Wii? ###assistant: SELECT developer_s_ FROM table_name_50 WHERE platform_s_ = "wii"
###context:CREATE TABLE table_name_95 (year VARCHAR, game VARCHAR) ###human: What year was The Walking Dead? ###assistant: SELECT COUNT(year) FROM table_name_95 WHERE game = "the walking dead"
###context:CREATE TABLE table_name_43 (platform_s_ VARCHAR, developer_s_ VARCHAR) ###human: What was the platform when the developer was Telltale Games? ###assistant: SELECT platform_s_ FROM table_name_43 WHERE developer_s_ = "telltale games"
###context:CREATE TABLE table_name_71 (game VARCHAR, developer_s_ VARCHAR) ###human: What is the game of developer Rockstar Games? ###assistant: SELECT game FROM table_name_71 WHERE developer_s_ = "rockstar games"
###context:CREATE TABLE table_name_18 (elevation__m_ VARCHAR, prominence__m_ INTEGER) ###human: How much Elevation (m) has a Prominence (m) larger than 2,876? ###assistant: SELECT COUNT(elevation__m_) FROM table_name_18 WHERE prominence__m_ > 2 OFFSET 876
###context:CREATE TABLE table_name_11 (date VARCHAR, home_team VARCHAR) ###human: When was millwall the home team? ###assistant: SELECT date FROM table_name_11 WHERE home_team = "millwall"
###context:CREATE TABLE table_name_49 (score VARCHAR, away_team VARCHAR) ###human: What was the score when Arsenal was the away team? ###assistant: SELECT score FROM table_name_49 WHERE away_team = "arsenal"
###context:CREATE TABLE table_name_53 (away_team VARCHAR, score VARCHAR) ###human: Which away team had a Score of 2–0? ###assistant: SELECT away_team FROM table_name_53 WHERE score = "2–0"
###context:CREATE TABLE table_name_17 (date VARCHAR, away_team VARCHAR) ###human: When was Arsenal was the away team? ###assistant: SELECT date FROM table_name_17 WHERE away_team = "arsenal"
###context:CREATE TABLE table_name_53 (date_released VARCHAR, green_communist VARCHAR) ###human: What's the date released when there was 9.7% of Green communist? ###assistant: SELECT date_released FROM table_name_53 WHERE green_communist = "9.7%"
###context:CREATE TABLE table_name_41 (green_communist VARCHAR, polling_institute VARCHAR) ###human: What's the green communist when Euroteste/JN is the polling Institute? ###assistant: SELECT green_communist FROM table_name_41 WHERE polling_institute = "euroteste/jn"
###context:CREATE TABLE table_name_78 (silver INTEGER, gold VARCHAR, rank VARCHAR) ###human: What is the most silver medals when the total is more than 2 medals, and with a rank of total, and the number of gold medals is greater than 44? ###assistant: SELECT MAX(silver) FROM table_name_78 WHERE "total" > 2 AND rank = "total" AND gold > 44
###context:CREATE TABLE table_name_16 (gold INTEGER, silver VARCHAR, bronze VARCHAR, rank VARCHAR) ###human: What is the fewest gold medals when there is 0 bronze medals, and the rank is 19, and silver medals are less than 1? ###assistant: SELECT MIN(gold) FROM table_name_16 WHERE bronze = 0 AND rank = "19" AND silver < 1
###context:CREATE TABLE table_name_18 (bronze INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR) ###human: What is the largest amount of bronze medals when the silver medals are less than 1, and Belgium (BEL) is the nation, and the gold medals are less than 0? ###assistant: SELECT MAX(bronze) FROM table_name_18 WHERE silver < 1 AND nation = "belgium (bel)" AND gold < 0
###context:CREATE TABLE table_name_83 (bronze INTEGER, silver VARCHAR, total VARCHAR) ###human: With silver medals less than 1, and total medals less than 2, what is the most bronze medals? ###assistant: SELECT MAX(bronze) FROM table_name_83 WHERE silver < 1 AND total < 2
###context:CREATE TABLE table_name_80 (byes VARCHAR, wins VARCHAR, losses VARCHAR) ###human: Can you tell me the total number of Byes that has the Wins of 14, and the Losses larger than 2? ###assistant: SELECT COUNT(byes) FROM table_name_80 WHERE wins = 14 AND losses > 2
###context:CREATE TABLE table_name_11 (wins INTEGER, against VARCHAR, losses VARCHAR) ###human: Can you tell me the average Wins that has the Against of 1132, and the Losses smaller than 7? ###assistant: SELECT AVG(wins) FROM table_name_11 WHERE against = 1132 AND losses < 7
###context:CREATE TABLE table_name_92 (date VARCHAR, location_attendance VARCHAR) ###human: What was the date for the game that had a Location/Attendance of the spectrum? ###assistant: SELECT date FROM table_name_92 WHERE location_attendance = "the spectrum"
###context:CREATE TABLE table_name_53 (opponent VARCHAR, location_attendance VARCHAR) ###human: Who was the opponent when they played at the Skydome? ###assistant: SELECT opponent FROM table_name_53 WHERE location_attendance = "skydome"
###context:CREATE TABLE table_name_61 (record VARCHAR, date VARCHAR) ###human: What was the record on January 17? ###assistant: SELECT record FROM table_name_61 WHERE date = "january 17"
###context:CREATE TABLE table_name_69 (location_attendance VARCHAR, record VARCHAR) ###human: What was the location and attendance when the record was 19-17? ###assistant: SELECT location_attendance FROM table_name_69 WHERE record = "19-17"
###context:CREATE TABLE table_name_26 (city VARCHAR, year_joined VARCHAR, conference_joined VARCHAR) ###human: What city joined the Independents conference after 1963? ###assistant: SELECT city FROM table_name_26 WHERE year_joined > 1963 AND conference_joined = "independents"
###context:CREATE TABLE table_name_94 (year_joined INTEGER, city VARCHAR, mascot VARCHAR) ###human: What is the year that the Gary team with mascot of the Tornado joined? ###assistant: SELECT MIN(year_joined) FROM table_name_94 WHERE city = "gary" AND mascot = "tornado"
###context:CREATE TABLE table_name_88 (previous_conference VARCHAR, conference_joined VARCHAR, mascot VARCHAR) ###human: What was the previous conference for the team with the Governors as their mascot that joined the Indiana Lake Shore conference? ###assistant: SELECT previous_conference FROM table_name_88 WHERE conference_joined = "indiana lake shore" AND mascot = "governors"
###context:CREATE TABLE table_name_25 (year_left INTEGER, mascot VARCHAR) ###human: What is the year that the Roughriders left the conference? ###assistant: SELECT MAX(year_left) FROM table_name_25 WHERE mascot = "roughriders"
###context:CREATE TABLE table_name_5 (conference_joined VARCHAR, city VARCHAR) ###human: What conference did the city of Valparaiso join? ###assistant: SELECT conference_joined FROM table_name_5 WHERE city = "valparaiso"
###context:CREATE TABLE table_name_93 (duration VARCHAR, character VARCHAR) ###human: What is the duration of the character Bartha Zsolt? ###assistant: SELECT duration FROM table_name_93 WHERE character = "bartha zsolt"
###context:CREATE TABLE table_name_81 (loss VARCHAR, name VARCHAR, long VARCHAR) ###human: How many losses have jake sharp as the name, with a long less than 30? ###assistant: SELECT COUNT(loss) FROM table_name_81 WHERE name = "jake sharp" AND long < 30
###context:CREATE TABLE table_name_72 (long INTEGER, gain VARCHAR, loss VARCHAR) ###human: What is the average long that has 1581 as a gain, with a loss less than 308? ###assistant: SELECT AVG(long) FROM table_name_72 WHERE gain = 1581 AND loss < 308
###context:CREATE TABLE table_name_27 (gain INTEGER, long VARCHAR, avg_g VARCHAR) ###human: How many gains have a long greater than 8, with avg/g of 124.9? ###assistant: SELECT SUM(gain) FROM table_name_27 WHERE long > 8 AND avg_g = 124.9
###context:CREATE TABLE table_name_11 (long INTEGER, gain VARCHAR, avg_g VARCHAR) ###human: How many longs have a gain less than 379, and 0.8 as an avg/g? ###assistant: SELECT SUM(long) FROM table_name_11 WHERE gain < 379 AND avg_g = 0.8
###context:CREATE TABLE table_name_35 (gain INTEGER, name VARCHAR, avg_g VARCHAR) ###human: What is the lowest gain that has toben opurum as the name, with an avg/g less than 54.1? ###assistant: SELECT MIN(gain) FROM table_name_35 WHERE name = "toben opurum" AND avg_g < 54.1
###context:CREATE TABLE table_name_72 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR, points VARCHAR) ###human: Which Driver has a Grid smaller than 17, and Points larger than 0, and a Lapse of 87, and a Time/Retired of 1:48:11.023? ###assistant: SELECT driver FROM table_name_72 WHERE grid < 17 AND points > 0 AND laps = 87 AND time_retired = "1:48:11.023"
###context:CREATE TABLE table_name_56 (points INTEGER, laps VARCHAR, grid VARCHAR, driver VARCHAR) ###human: Which Points have a Grid larger than 7, and a Driver of alex tagliani, and a Lapse smaller than 85? ###assistant: SELECT MAX(points) FROM table_name_56 WHERE grid > 7 AND driver = "alex tagliani" AND laps < 85
###context:CREATE TABLE table_name_55 (date VARCHAR, competition VARCHAR) ###human: What date has uefa euro 2008 qualification as the competition? ###assistant: SELECT date FROM table_name_55 WHERE competition = "uefa euro 2008 qualification"
###context:CREATE TABLE table_name_79 (date VARCHAR, competition VARCHAR, venue VARCHAR) ###human: What date has friendly as the competition, with pretoria, South Africa as the venue? ###assistant: SELECT date FROM table_name_79 WHERE competition = "friendly" AND venue = "pretoria, south africa"
###context:CREATE TABLE table_name_15 (score_final INTEGER, competition_description VARCHAR, year VARCHAR) ###human: What is the lowest final score of the American Cup competition before 2009? ###assistant: SELECT MIN(score_final) FROM table_name_15 WHERE competition_description = "american cup" AND year < 2009
###context:CREATE TABLE table_name_95 (result VARCHAR, week VARCHAR, opponent VARCHAR) ###human: What is the result for the game before week 7 against BYE? ###assistant: SELECT result FROM table_name_95 WHERE week < 7 AND opponent = "bye"