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