instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: How many ranks had 367 matches and more than 216 goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (rank INTEGER, matches VARCHAR, goals VARCHAR)
SELECT SUM(rank) FROM table_name_94 WHERE matches = 367 AND goals > 216
Write a SQL query that answers the following question: What is the mean rank number when goals are 230 and there are more than 535?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (rank INTEGER, goals VARCHAR, matches VARCHAR)
SELECT AVG(rank) FROM table_name_86 WHERE goals = 230 AND matches > 535
Write a SQL query that answers the following question: Where the audience share is 8%, what is the original airing?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (original_airing VARCHAR, audience_share__average_ VARCHAR)
SELECT original_airing FROM table_name_60 WHERE audience_share__average_ = "8%"
Write a SQL query that answers the following question: What episode number has an audience share of 10%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (episode_number VARCHAR, audience_share__average_ VARCHAR)
SELECT COUNT(episode_number) FROM table_name_80 WHERE audience_share__average_ = "10%"
Write a SQL query that answers the following question: What is the value for the item "Class" when the value of the item "Wheels" is 137?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (class VARCHAR, wheels VARCHAR)
SELECT class FROM table_name_97 WHERE wheels = 137
Write a SQL query that answers the following question: What's the smallest number of games for the fenerbahçe team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (games INTEGER, team VARCHAR)
SELECT MIN(games) FROM table_name_84 WHERE team = "fenerbahçe"
Write a SQL query that answers the following question: What's the mean game number for the olympiacos team when there's less than 17 rebounds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (games INTEGER, team VARCHAR, rebounds VARCHAR)
SELECT AVG(games) FROM table_name_75 WHERE team = "olympiacos" AND rebounds < 17
Write a SQL query that answers the following question: How many games does novica veličković have when there's more than 24 rebounds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (games VARCHAR, name VARCHAR, rebounds VARCHAR)
SELECT COUNT(games) FROM table_name_57 WHERE name = "novica veličković" AND rebounds > 24
Write a SQL query that answers the following question: What is the League with a Year that is 1990/91?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (league VARCHAR, year VARCHAR)
SELECT league FROM table_name_64 WHERE year = "1990/91"
Write a SQL query that answers the following question: What is the ICAO for simferopol international airport?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (icao VARCHAR, airport VARCHAR)
SELECT icao FROM table_name_75 WHERE airport = "simferopol international airport"
Write a SQL query that answers the following question: Which country has an IATA of gzt?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (country VARCHAR, iata VARCHAR)
SELECT country FROM table_name_70 WHERE iata = "gzt"
Write a SQL query that answers the following question: What country is Yerevan located in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (country VARCHAR, city VARCHAR)
SELECT country FROM table_name_21 WHERE city = "yerevan"
Write a SQL query that answers the following question: What is the ICAO when the IATA is ika?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (icao VARCHAR, iata VARCHAR)
SELECT icao FROM table_name_19 WHERE iata = "ika"
Write a SQL query that answers the following question: What is the ICAO when the IATA is ist?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (icao VARCHAR, iata VARCHAR)
SELECT icao FROM table_name_34 WHERE iata = "ist"
Write a SQL query that answers the following question: Which team has 10 losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (team VARCHAR, lost VARCHAR)
SELECT team FROM table_name_33 WHERE lost = 10
Write a SQL query that answers the following question: In which yearly change was there a capacity of 78.4% and a rank smaller than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (annual_change VARCHAR, rank VARCHAR, capacity_in_use VARCHAR)
SELECT annual_change FROM table_name_31 WHERE rank < 3 AND capacity_in_use = "78.4%"
Write a SQL query that answers the following question: In Which rank was there a location of porto alegre?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (rank VARCHAR, location VARCHAR)
SELECT rank FROM table_name_85 WHERE location = "porto alegre"
Write a SQL query that answers the following question: what is the number of passengers when the capacity is 81.2%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (total_passengers INTEGER, capacity_in_use VARCHAR)
SELECT SUM(total_passengers) FROM table_name_88 WHERE capacity_in_use = "81.2%"
Write a SQL query that answers the following question: what is the highest amount of passengers when there is a rank of 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (total_passengers INTEGER, rank VARCHAR)
SELECT MAX(total_passengers) FROM table_name_94 WHERE rank = 1
Write a SQL query that answers the following question: What was the latest Week on which the Result was l 17–0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (week INTEGER, result VARCHAR)
SELECT MAX(week) FROM table_name_95 WHERE result = "l 17–0"
Write a SQL query that answers the following question: What is the average cuts made at the top 25, less than 10, and at the Top 10 more than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (cuts_made INTEGER, top_25 VARCHAR, top_10 VARCHAR)
SELECT AVG(cuts_made) FROM table_name_65 WHERE top_25 < 10 AND top_10 > 3
Write a SQL query that answers the following question: What is average Top 10 with 0 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (top_10 INTEGER, wins INTEGER)
SELECT AVG(top_10) FROM table_name_93 WHERE wins < 0
Write a SQL query that answers the following question: What is the average event for the Open Championship Tournament, and a Top-5 less than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (events INTEGER, tournament VARCHAR, top_5 VARCHAR)
SELECT AVG(events) FROM table_name_18 WHERE tournament = "the open championship" AND top_5 < 1
Write a SQL query that answers the following question: What is the average wins has Top-25 less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (wins INTEGER, top_25 INTEGER)
SELECT AVG(wins) FROM table_name_66 WHERE top_25 < 0
Write a SQL query that answers the following question: What is the largest Against with a Byes larger than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (against INTEGER, byes INTEGER)
SELECT MAX(against) FROM table_name_40 WHERE byes > 0
Write a SQL query that answers the following question: Which Wins has an Against of 1940, and a Byes larger than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (wins INTEGER, against VARCHAR, byes VARCHAR)
SELECT MAX(wins) FROM table_name_61 WHERE against = 1940 AND byes > 0
Write a SQL query that answers the following question: Which Draws has a Wins of 10, and a Peel of south mandurah, and a Byes larger than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (draws INTEGER, byes VARCHAR, wins VARCHAR, peel VARCHAR)
SELECT AVG(draws) FROM table_name_28 WHERE wins = 10 AND peel = "south mandurah" AND byes > 0
Write a SQL query that answers the following question: Which Against has a Draws larger than 0, a Losses smaller than 16, and a Wins smaller than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (against INTEGER, wins VARCHAR, draws VARCHAR, losses VARCHAR)
SELECT MAX(against) FROM table_name_50 WHERE draws > 0 AND losses < 16 AND wins < 4
Write a SQL query that answers the following question: Which Losses has an Against of 1101, and a Byes smaller than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (losses VARCHAR, against VARCHAR, byes VARCHAR)
SELECT COUNT(losses) FROM table_name_52 WHERE against = 1101 AND byes < 0
Write a SQL query that answers the following question: Which Byes has a Losses smaller than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (byes INTEGER, losses INTEGER)
SELECT MAX(byes) FROM table_name_5 WHERE losses < 1
Write a SQL query that answers the following question: What is the average number of games of the player with a rank less than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (games INTEGER, rank INTEGER)
SELECT AVG(games) FROM table_name_55 WHERE rank < 1
Write a SQL query that answers the following question: What is the highest rank of the player with less than 32 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (rank INTEGER, points INTEGER)
SELECT MAX(rank) FROM table_name_24 WHERE points < 32
Write a SQL query that answers the following question: What is the rank of the player with less than 34 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (rank INTEGER, points INTEGER)
SELECT SUM(rank) FROM table_name_95 WHERE points < 34
Write a SQL query that answers the following question: Who's Fourth District has a Second District of bob springstead?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (fourth_district VARCHAR, second_district VARCHAR)
SELECT fourth_district FROM table_name_72 WHERE second_district = "bob springstead"
Write a SQL query that answers the following question: Who's the First District with a Fifth District of prudy adam?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (first_district VARCHAR, fifth_district VARCHAR)
SELECT first_district FROM table_name_9 WHERE fifth_district = "prudy adam"
Write a SQL query that answers the following question: Who's the Fourth District with a First District of beverly bodem?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (fourth_district VARCHAR, first_district VARCHAR)
SELECT fourth_district FROM table_name_98 WHERE first_district = "beverly bodem"
Write a SQL query that answers the following question: Who's the Fourth District with a Second District of kurt van koevering?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (fourth_district VARCHAR, second_district VARCHAR)
SELECT fourth_district FROM table_name_41 WHERE second_district = "kurt van koevering"
Write a SQL query that answers the following question: Who's the Fifth District with a Second District of paul leidig?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (fifth_district VARCHAR, second_district VARCHAR)
SELECT fifth_district FROM table_name_23 WHERE second_district = "paul leidig"
Write a SQL query that answers the following question: Who's the Fourth District with a Third District of sharon yentsch?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (fourth_district VARCHAR, third_district VARCHAR)
SELECT fourth_district FROM table_name_82 WHERE third_district = "sharon yentsch"
Write a SQL query that answers the following question: How many Sets did Gary Muller have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (sets VARCHAR, player VARCHAR)
SELECT COUNT(sets) FROM table_name_21 WHERE player = "gary muller"
Write a SQL query that answers the following question: What Player in 2005 Wimbledon had less than 5 Sets?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (player VARCHAR, sets VARCHAR, event VARCHAR)
SELECT player FROM table_name_12 WHERE sets < 5 AND event = "2005 wimbledon"
Write a SQL query that answers the following question: At the 2001 Davis Cup, what Opponent had less than 50 Aces?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (opponent VARCHAR, aces VARCHAR, event VARCHAR)
SELECT opponent FROM table_name_93 WHERE aces < 50 AND event = "2001 davis cup"
Write a SQL query that answers the following question: What time did Channel 4 air an episode number larger than 106 with the title of Marry Me A Little?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (time_of_airing_on_channel_4 VARCHAR, episode_number VARCHAR, title VARCHAR)
SELECT time_of_airing_on_channel_4 FROM table_name_74 WHERE episode_number > 106 AND title = "marry me a little"
Write a SQL query that answers the following question: What is the total number of sunk by U-boats with less than 2 German submarines lost, 56328 sunk by aircrafts, and more than 8269 sunk by mines?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (sunk_by_u_boat VARCHAR, sunk_by_mines VARCHAR, german_submarines_lost VARCHAR, sunk_by_aircraft VARCHAR)
SELECT COUNT(sunk_by_u_boat) FROM table_name_4 WHERE german_submarines_lost < 2 AND sunk_by_aircraft = 56328 AND sunk_by_mines > 8269
Write a SQL query that answers the following question: What is the total number sunk by warship or raider with 20 German submarines lost and more than 21616 sunk by aircraft?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (sunk_by_warship_or_raider VARCHAR, german_submarines_lost VARCHAR, sunk_by_aircraft VARCHAR)
SELECT COUNT(sunk_by_warship_or_raider) FROM table_name_30 WHERE german_submarines_lost = 20 AND sunk_by_aircraft > 21616
Write a SQL query that answers the following question: What is the total number of German submarines lost with more than 120958 sunk by mines?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (german_submarines_lost VARCHAR, sunk_by_mines INTEGER)
SELECT COUNT(german_submarines_lost) FROM table_name_46 WHERE sunk_by_mines > 120958
Write a SQL query that answers the following question: What is the month and year less than 5 German submarines were lost, less than 6893 were sunk by warship or raider, less than 133746 were sunk by aircraft, and more than 111263 were sunk by U-boat?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (month VARCHAR, _year VARCHAR, sunk_by_u_boat VARCHAR, sunk_by_aircraft VARCHAR, german_submarines_lost VARCHAR, sunk_by_warship_or_raider VARCHAR)
SELECT month, _year FROM table_name_24 WHERE german_submarines_lost < 5 AND sunk_by_warship_or_raider < 6893 AND sunk_by_aircraft < 133746 AND sunk_by_u_boat > 111263
Write a SQL query that answers the following question: What is the month and year less than 106005 were sunk by aircraft and 61857 were sunk by warship or raider?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (month VARCHAR, _year VARCHAR, sunk_by_aircraft VARCHAR, sunk_by_warship_or_raider VARCHAR)
SELECT month, _year FROM table_name_73 WHERE sunk_by_aircraft < 106005 AND sunk_by_warship_or_raider = 61857
Write a SQL query that answers the following question: What is the post-1986 provinces with a 全羅道 Hanja?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (post_1896_provinces VARCHAR, hanja VARCHAR)
SELECT post_1896_provinces FROM table_name_52 WHERE hanja = "全羅道"
Write a SQL query that answers the following question: What is the Korean dialect in the daegu capital?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (korean_dialect VARCHAR, capital VARCHAR)
SELECT korean_dialect FROM table_name_71 WHERE capital = "daegu"
Write a SQL query that answers the following question: What is the Korean dialect with a jeolla RR Romaja?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (korean_dialect VARCHAR, rr_romaja VARCHAR)
SELECT korean_dialect FROM table_name_18 WHERE rr_romaja = "jeolla"
Write a SQL query that answers the following question: What is the Hanja for the hamgyeong RR Romaja?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (hanja VARCHAR, rr_romaja VARCHAR)
SELECT hanja FROM table_name_4 WHERE rr_romaja = "hamgyeong"
Write a SQL query that answers the following question: What is the mean huc example code when the example name's lower snake, there are 6 digits, and less than 3 levels?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (example_code__huc_ INTEGER, level VARCHAR, example_name VARCHAR, digits VARCHAR)
SELECT AVG(example_code__huc_) FROM table_name_35 WHERE example_name = "lower snake" AND digits = 6 AND level < 3
Write a SQL query that answers the following question: What's the approximate number of HUs when there are more than 2 digits, and 6 levels?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (number_of_hus__approximate_ VARCHAR, digits VARCHAR, level VARCHAR)
SELECT COUNT(number_of_hus__approximate_) FROM table_name_66 WHERE digits > 2 AND level = 6
Write a SQL query that answers the following question: How many HUC example codes have 1 level?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (example_code__huc_ VARCHAR, level VARCHAR)
SELECT COUNT(example_code__huc_) FROM table_name_48 WHERE level = 1
Write a SQL query that answers the following question: What is the mean level number when the example name is lower snake and the approximate number is hus is less than 370?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (level INTEGER, example_name VARCHAR, number_of_hus__approximate_ VARCHAR)
SELECT AVG(level) FROM table_name_42 WHERE example_name = "lower snake" AND number_of_hus__approximate_ < 370
Write a SQL query that answers the following question: What is the losses average when the against is greater than 1255 and wins is 0 and the draws less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (losses INTEGER, draws VARCHAR, against VARCHAR, wins VARCHAR)
SELECT AVG(losses) FROM table_name_43 WHERE against > 1255 AND wins = 0 AND draws < 0
Write a SQL query that answers the following question: What is the smallest losses when the wins are 5 and the against less than 1852?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (losses INTEGER, wins VARCHAR, against VARCHAR)
SELECT MIN(losses) FROM table_name_14 WHERE wins = 5 AND against < 1852
Write a SQL query that answers the following question: What is the fewest losses that Ballarat FL of Lake Wendouree has when the wins are smaller than 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (losses INTEGER, ballarat_fl VARCHAR, wins VARCHAR)
SELECT MIN(losses) FROM table_name_9 WHERE ballarat_fl = "lake wendouree" AND wins < 9
Write a SQL query that answers the following question: What is the smallest byes when the wins are 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (byes INTEGER, wins VARCHAR)
SELECT MIN(byes) FROM table_name_49 WHERE wins = 3
Write a SQL query that answers the following question: What is the highest Attendance when the away team was Wrexham?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (attendance INTEGER, away_team VARCHAR)
SELECT MAX(attendance) FROM table_name_39 WHERE away_team = "wrexham"
Write a SQL query that answers the following question: What is the Away team when the home team was wycombe wanderers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_9 WHERE home_team = "wycombe wanderers"
Write a SQL query that answers the following question: What is the lowest Attendance when the home team was slough town?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (attendance INTEGER, home_team VARCHAR)
SELECT MIN(attendance) FROM table_name_62 WHERE home_team = "slough town"
Write a SQL query that answers the following question: What is the sum of Attendance when macclesfield town was the way team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (attendance INTEGER, away_team VARCHAR)
SELECT SUM(attendance) FROM table_name_22 WHERE away_team = "macclesfield town"
Write a SQL query that answers the following question: How many Spins sources have a CCM Chart of CHR with a peak position less than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (spins__since_1998__source VARCHAR, ccm_chart VARCHAR, peak_pos VARCHAR)
SELECT COUNT(spins__since_1998__source) AS :_mediabase FROM table_name_61 WHERE ccm_chart = "chr" AND peak_pos < 1
Write a SQL query that answers the following question: What CCM Chart had 18 total weeks?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (ccm_chart VARCHAR, total_wks VARCHAR)
SELECT ccm_chart FROM table_name_94 WHERE total_wks = 18
Write a SQL query that answers the following question: What is Opponent, when Date is December 18, 1988?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_7 WHERE date = "december 18, 1988"
Write a SQL query that answers the following question: What is Attendance, when Opponent is Pittsburgh Steelers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (attendance VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_2 WHERE opponent = "pittsburgh steelers"
Write a SQL query that answers the following question: What is the average Week, when Result is l 37–34?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (week INTEGER, result VARCHAR)
SELECT AVG(week) FROM table_name_80 WHERE result = "l 37–34"
Write a SQL query that answers the following question: When was Shannon Long the Centerfold model?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (date VARCHAR, centerfold_model VARCHAR)
SELECT date FROM table_name_15 WHERE centerfold_model = "shannon long"
Write a SQL query that answers the following question: Who was the Centerfold model on 5-88?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (centerfold_model VARCHAR, date VARCHAR)
SELECT centerfold_model FROM table_name_20 WHERE date = "5-88"
Write a SQL query that answers the following question: Who was the Centerfild model that used Bruce Willis as her Interview subject?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (centerfold_model VARCHAR, interview_subject VARCHAR)
SELECT centerfold_model FROM table_name_60 WHERE interview_subject = "bruce willis"
Write a SQL query that answers the following question: What is Series, when Launch Date is 23 February 2013?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (series VARCHAR, launch_date VARCHAR)
SELECT series FROM table_name_16 WHERE launch_date = "23 february 2013"
Write a SQL query that answers the following question: What is Series, when Days is greater than 99, and when Prize is €50,000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (series VARCHAR, days VARCHAR, prize VARCHAR)
SELECT series FROM table_name_15 WHERE days > 99 AND prize = "€50,000"
Write a SQL query that answers the following question: What is Series, when Winner is Jetmir Salaj?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (series VARCHAR, winner VARCHAR)
SELECT series FROM table_name_54 WHERE winner = "jetmir salaj"
Write a SQL query that answers the following question: What is Highest Days, when Launch Date is 23 January 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (days INTEGER, launch_date VARCHAR)
SELECT MAX(days) FROM table_name_16 WHERE launch_date = "23 january 2010"
Write a SQL query that answers the following question: What is the lowest Rank, when Name is Jeremiah Massey, and when Games is less than 20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (rank INTEGER, name VARCHAR, games VARCHAR)
SELECT MIN(rank) FROM table_name_60 WHERE name = "jeremiah massey" AND games < 20
Write a SQL query that answers the following question: What is the lowest Games, when Name is Jeremiah Massey, and when Points is less than 340?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (games INTEGER, name VARCHAR, points VARCHAR)
SELECT MIN(games) FROM table_name_91 WHERE name = "jeremiah massey" AND points < 340
Write a SQL query that answers the following question: What is the lowest Points, when Games is greater than 20, and when Team is Partizan Belgrade?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (points INTEGER, games VARCHAR, team VARCHAR)
SELECT MIN(points) FROM table_name_30 WHERE games > 20 AND team = "partizan belgrade"
Write a SQL query that answers the following question: What is Games, when Points is less than 340, and when Rank is greater than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (games VARCHAR, points VARCHAR, rank VARCHAR)
SELECT games FROM table_name_89 WHERE points < 340 AND rank > 3
Write a SQL query that answers the following question: What is the sum of Rank, when Name is Will Solomon, and when Games is greater than 21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (rank INTEGER, name VARCHAR, games VARCHAR)
SELECT SUM(rank) FROM table_name_45 WHERE name = "will solomon" AND games > 21
Write a SQL query that answers the following question: What was the first leg score in the match against Twente?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (first_leg VARCHAR, opposition VARCHAR)
SELECT first_leg FROM table_name_58 WHERE opposition = "twente"
Write a SQL query that answers the following question: What was the first leg score in the 2nd round?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (first_leg VARCHAR, round VARCHAR)
SELECT first_leg FROM table_name_41 WHERE round = "2nd"
Write a SQL query that answers the following question: What were the Bills points on Nov. 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (bills_points INTEGER, date VARCHAR)
SELECT SUM(bills_points) FROM table_name_54 WHERE date = "nov. 11"
Write a SQL query that answers the following question: What was the Bills first downs on Oct. 29 with more the 23 Bills points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (bills_first_downs INTEGER, date VARCHAR, bills_points VARCHAR)
SELECT MIN(bills_first_downs) FROM table_name_47 WHERE date = "oct. 29" AND bills_points > 23
Write a SQL query that answers the following question: What was the Bill's attendance on December 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_86 WHERE date = "december 6"
Write a SQL query that answers the following question: On what date did the Bills play the Houston Oilers before week 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (date VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_79 WHERE week < 12 AND opponent = "houston oilers"
Write a SQL query that answers the following question: Which team won on the day when attendance was 42,308?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_27 WHERE attendance = "42,308"
Write a SQL query that answers the following question: What week of the season was December 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (week VARCHAR, date VARCHAR)
SELECT week FROM table_name_3 WHERE date = "december 13"
Write a SQL query that answers the following question: What is the highest Points in Position 2 with more than 3 Drawn games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (points INTEGER, position VARCHAR, drawn VARCHAR)
SELECT MAX(points) FROM table_name_75 WHERE position = 2 AND drawn > 3
Write a SQL query that answers the following question: What is the goal Difference at Position 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (difference VARCHAR, position VARCHAR)
SELECT difference FROM table_name_53 WHERE position = 5
Write a SQL query that answers the following question: What is the average games Played with positions higher than 3 that have goals Against less than 27 and a Lost games smaller than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (played INTEGER, lost VARCHAR, position VARCHAR, against VARCHAR)
SELECT AVG(played) FROM table_name_3 WHERE position > 3 AND against < 27 AND lost < 6
Write a SQL query that answers the following question: What is the highest Points with a Lost total of 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (points INTEGER, lost VARCHAR)
SELECT MAX(points) FROM table_name_39 WHERE lost = 8
Write a SQL query that answers the following question: Which average Points has a Lost higher than 20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (points INTEGER, lost INTEGER)
SELECT AVG(points) FROM table_name_78 WHERE lost > 20
Write a SQL query that answers the following question: What are the Cuts made with a Top-10 smaller than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (cuts_made INTEGER, top_10 INTEGER)
SELECT SUM(cuts_made) FROM table_name_72 WHERE top_10 < 2
Write a SQL query that answers the following question: What is the Top-25 with a Top-10 of 8, and an Events of 45?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (top_25 INTEGER, top_10 VARCHAR, events VARCHAR)
SELECT AVG(top_25) FROM table_name_63 WHERE top_10 = 8 AND events = 45
Write a SQL query that answers the following question: What is the Top-25 with an Events of 20, and a Wins larger than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (top_25 INTEGER, events VARCHAR, wins VARCHAR)
SELECT AVG(top_25) FROM table_name_45 WHERE events = 20 AND wins > 2
Write a SQL query that answers the following question: Which Top-10 has a Top-25 smaller than 18, and a Top-5 of 6, and a Cuts made smaller than 20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR, top_5 VARCHAR)
SELECT MAX(top_10) FROM table_name_57 WHERE top_25 < 18 AND top_5 = 6 AND cuts_made < 20
Write a SQL query that answers the following question: What is Top Par, when Score is less than 68, and when Country is England?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (to_par VARCHAR, score VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_58 WHERE score < 68 AND country = "england"
Write a SQL query that answers the following question: What is Sum of Score, when Player is Vijay Singh?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (score INTEGER, player VARCHAR)
SELECT SUM(score) FROM table_name_18 WHERE player = "vijay singh"