instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What was the Outcome at the 1985 India Open?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (outcome VARCHAR, year VARCHAR, venue VARCHAR)
SELECT outcome FROM table_name_16 WHERE year = "1985" AND venue = "india open"
Write a SQL query that answers the following question: What was the outcome in 1982 with Kang Haeng-Suk as partner?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (outcome VARCHAR, partner VARCHAR, year VARCHAR)
SELECT outcome FROM table_name_88 WHERE partner = "kang haeng-suk" AND year = "1982"
Write a SQL query that answers the following question: Which Party has a First elected smaller than 1878, and a District of south carolina 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (party VARCHAR, first_elected VARCHAR, district VARCHAR)
SELECT party FROM table_name_4 WHERE first_elected < 1878 AND district = "south carolina 3"
Write a SQL query that answers the following question: Which Result has a First elected of 1876, and a District of south carolina 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (result VARCHAR, first_elected VARCHAR, district VARCHAR)
SELECT result FROM table_name_6 WHERE first_elected = 1876 AND district = "south carolina 3"
Write a SQL query that answers the following question: Which Result has a First elected larger than 1876, and an Incumbent of john s. richardson?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT result FROM table_name_98 WHERE first_elected > 1876 AND incumbent = "john s. richardson"
Write a SQL query that answers the following question: Who is the incumbent that is a republican and first elected before 1864?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR)
SELECT incumbent FROM table_name_73 WHERE party = "republican" AND first_elected < 1864
Write a SQL query that answers the following question: What district is the democratic Francis C. Le Blond from?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (district VARCHAR, party VARCHAR, incumbent VARCHAR)
SELECT district FROM table_name_69 WHERE party = "democratic" AND incumbent = "francis c. le blond"
Write a SQL query that answers the following question: In the Ohio 4 district, that is the first elected date that has a result of re-elected?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (first_elected INTEGER, result VARCHAR, district VARCHAR)
SELECT SUM(first_elected) FROM table_name_66 WHERE result = "re-elected" AND district = "ohio 4"
Write a SQL query that answers the following question: What is the party in Ohio 6 District?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (party VARCHAR, district VARCHAR)
SELECT party FROM table_name_68 WHERE district = "ohio 6"
Write a SQL query that answers the following question: Which To par has a Year of 1994?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (to_par VARCHAR, year VARCHAR)
SELECT to_par FROM table_name_24 WHERE year = 1994
Write a SQL query that answers the following question: Which Country has a Margin of victory of 2 strokes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (country VARCHAR, margin_of_victory VARCHAR)
SELECT country FROM table_name_91 WHERE margin_of_victory = "2 strokes"
Write a SQL query that answers the following question: Which Year is the lowest one that has a To par of –1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (year INTEGER, to_par VARCHAR)
SELECT MIN(year) FROM table_name_93 WHERE to_par = "–1"
Write a SQL query that answers the following question: Which Margin of victory has a Year larger than 1994, and a To par of –14, and a Score of 69-67-69-69=274?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (margin_of_victory VARCHAR, year VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT margin_of_victory FROM table_name_25 WHERE year > 1994 AND to_par = "–14" AND score = 69 - 67 - 69 - 69 = 274
Write a SQL query that answers the following question: What was the record after the game at the Astrodome?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (record VARCHAR, location VARCHAR)
SELECT record FROM table_name_37 WHERE location = "astrodome"
Write a SQL query that answers the following question: What was the record after the game against the Houston Oilers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_98 WHERE opponent = "houston oilers"
Write a SQL query that answers the following question: What is the average total score of Belarus, which had an E score less than 8.2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (total INTEGER, nation VARCHAR, e_score VARCHAR)
SELECT AVG(total) FROM table_name_71 WHERE nation = "belarus" AND e_score < 8.2
Write a SQL query that answers the following question: What is the total of the team with a T score greater than 8 and an E score less than 8.4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (total INTEGER, t_score VARCHAR, e_score VARCHAR)
SELECT SUM(total) FROM table_name_57 WHERE t_score > 8 AND e_score < 8.4
Write a SQL query that answers the following question: What is the T score of the team with an E score of 6.625?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (t_score VARCHAR, e_score VARCHAR)
SELECT t_score FROM table_name_52 WHERE e_score = 6.625
Write a SQL query that answers the following question: What is the total of Poland, which has an E score greater than 7.725?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (total VARCHAR, nation VARCHAR, e_score VARCHAR)
SELECT COUNT(total) FROM table_name_97 WHERE nation = "poland" AND e_score > 7.725
Write a SQL query that answers the following question: What is the total of the team with a T score less than 6.8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (total INTEGER, t_score INTEGER)
SELECT SUM(total) FROM table_name_88 WHERE t_score < 6.8
Write a SQL query that answers the following question: What date has a competition of 2012 afc challenge cup, and dasarath rangasala stadium, kathmandu as the venue?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (date VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT date FROM table_name_56 WHERE competition = "2012 afc challenge cup" AND venue = "dasarath rangasala stadium, kathmandu"
Write a SQL query that answers the following question: What opposition do 31.1% of Social Democrats have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (opposition VARCHAR, social_democrats__a_ VARCHAR)
SELECT opposition FROM table_name_70 WHERE social_democrats__a_ = "31.1%"
Write a SQL query that answers the following question: Which Position has a Round larger than 14, and a School/Club Team of north texas?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (position VARCHAR, round VARCHAR, school_club_team VARCHAR)
SELECT position FROM table_name_22 WHERE round > 14 AND school_club_team = "north texas"
Write a SQL query that answers the following question: Which Round has a Player of anthony christnovich?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (round VARCHAR, player VARCHAR)
SELECT round FROM table_name_72 WHERE player = "anthony christnovich"
Write a SQL query that answers the following question: Which Round is the lowest one that has a School/Club Team of virginia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (round INTEGER, school_club_team VARCHAR)
SELECT MIN(round) FROM table_name_20 WHERE school_club_team = "virginia"
Write a SQL query that answers the following question: What is the name of the leading scorer on 2006-11-22?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (leading_scorer VARCHAR, date VARCHAR)
SELECT leading_scorer FROM table_name_5 WHERE date = "2006-11-22"
Write a SQL query that answers the following question: What is the name of the leading scorer when the record was 9–6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (leading_scorer VARCHAR, record VARCHAR)
SELECT leading_scorer FROM table_name_18 WHERE record = "9–6"
Write a SQL query that answers the following question: What is the number of people in Attendance when Visitor was the warriors on 2006-11-04?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (attendance VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_40 WHERE visitor = "warriors" AND date = "2006-11-04"
Write a SQL query that answers the following question: What is the name of the visitor on 2006-11-04?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_46 WHERE date = "2006-11-04"
Write a SQL query that answers the following question: What is the name of the Leading scorer when the Score was 89–102?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (leading_scorer VARCHAR, score VARCHAR)
SELECT leading_scorer FROM table_name_59 WHERE score = "89–102"
Write a SQL query that answers the following question: How many people live in Norton?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (population INTEGER, town VARCHAR)
SELECT SUM(population) FROM table_name_1 WHERE town = "norton"
Write a SQL query that answers the following question: Which Year has a Borough of harrogate, and a Rank smaller than 6, and a Definition of civil parish?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (year VARCHAR, definition VARCHAR, borough VARCHAR, rank VARCHAR)
SELECT year FROM table_name_59 WHERE borough = "harrogate" AND rank < 6 AND definition = "civil parish"
Write a SQL query that answers the following question: Which Definition has a Rank smaller than 12, and a Town of tadcaster?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (definition VARCHAR, rank VARCHAR, town VARCHAR)
SELECT definition FROM table_name_63 WHERE rank < 12 AND town = "tadcaster"
Write a SQL query that answers the following question: Which Rank is the lowest one that has a Borough of richmondshire, and a Population larger than 8,178?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (rank INTEGER, borough VARCHAR, population VARCHAR)
SELECT MIN(rank) FROM table_name_16 WHERE borough = "richmondshire" AND population > 8 OFFSET 178
Write a SQL query that answers the following question: How many bronze medals did Bulgaria receive?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (bronze VARCHAR, nation VARCHAR)
SELECT bronze FROM table_name_1 WHERE nation = "bulgaria"
Write a SQL query that answers the following question: What was Phil Mickelson's score to par?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_28 WHERE player = "phil mickelson"
Write a SQL query that answers the following question: What name has an overall less than 268, and 1 as the round?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (name VARCHAR, overall VARCHAR, round VARCHAR)
SELECT name FROM table_name_98 WHERE overall < 268 AND round = 1
Write a SQL query that answers the following question: How many pick #'s have james britt as the name, with a round greater than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (pick__number VARCHAR, name VARCHAR, round VARCHAR)
SELECT COUNT(pick__number) FROM table_name_91 WHERE name = "james britt" AND round > 2
Write a SQL query that answers the following question: what is the score on november 15
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_66 WHERE date = "november 15"
Write a SQL query that answers the following question: Which Wins is the highest one that has a Country of united states, and a Player of andy bean, and a Rank smaller than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (wins INTEGER, rank VARCHAR, country VARCHAR, player VARCHAR)
SELECT MAX(wins) FROM table_name_66 WHERE country = "united states" AND player = "andy bean" AND rank < 4
Write a SQL query that answers the following question: Which Country has a Rank of 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (country VARCHAR, rank VARCHAR)
SELECT country FROM table_name_23 WHERE rank = 5
Write a SQL query that answers the following question: Which Earnings ($) is the lowest one that has a Rank smaller than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (earnings___ INTEGER, rank INTEGER)
SELECT MIN(earnings___) AS $__ FROM table_name_12 WHERE rank < 1
Write a SQL query that answers the following question: What is the score of the game on September 13 when the Expos were the opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (score VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT score FROM table_name_49 WHERE opponent = "expos" AND date = "september 13"
Write a SQL query that answers the following question: Who was the opponent on the September 3 game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_38 WHERE date = "september 3"
Write a SQL query that answers the following question: What is the save of the game on September 15?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (save VARCHAR, date VARCHAR)
SELECT save FROM table_name_92 WHERE date = "september 15"
Write a SQL query that answers the following question: Which Game site has a Week larger than 14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (game_site VARCHAR, week INTEGER)
SELECT game_site FROM table_name_44 WHERE week > 14
Write a SQL query that answers the following question: Which Date has a Game site of jeppesen stadium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (date VARCHAR, game_site VARCHAR)
SELECT date FROM table_name_27 WHERE game_site = "jeppesen stadium"
Write a SQL query that answers the following question: Which Game site has 27,189 Attendances ?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (game_site VARCHAR, attendance VARCHAR)
SELECT game_site FROM table_name_99 WHERE attendance = "27,189"
Write a SQL query that answers the following question: When is it has 15,557 Attendances?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_35 WHERE attendance = "15,557"
Write a SQL query that answers the following question: With an Overall less than 171, what is the Round pick of Lance Moon?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (round INTEGER, name VARCHAR, overall VARCHAR)
SELECT MIN(round) FROM table_name_36 WHERE name = "lance moon" AND overall < 171
Write a SQL query that answers the following question: What is the Name of draft Pick #10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (name VARCHAR, pick__number VARCHAR)
SELECT name FROM table_name_19 WHERE pick__number = 10
Write a SQL query that answers the following question: How many Rounds have a Defensive End Pick?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (round VARCHAR, position VARCHAR)
SELECT COUNT(round) FROM table_name_16 WHERE position = "defensive end"
Write a SQL query that answers the following question: What was the time when Shinya Aoki was the opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (time VARCHAR, opponent VARCHAR)
SELECT time FROM table_name_57 WHERE opponent = "shinya aoki"
Write a SQL query that answers the following question: Which method was used in round 1 with a record of 1-0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (method VARCHAR, round VARCHAR, record VARCHAR)
SELECT method FROM table_name_89 WHERE round = 1 AND record = "1-0"
Write a SQL query that answers the following question: Which rank has a team of Suzuki with under 16 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (rank VARCHAR, team VARCHAR, points VARCHAR)
SELECT rank FROM table_name_96 WHERE team = "suzuki" AND points < 16
Write a SQL query that answers the following question: Which class has a rank of 5th?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (class VARCHAR, rank VARCHAR)
SELECT class FROM table_name_79 WHERE rank = "5th"
Write a SQL query that answers the following question: Which team has a class of 500cc and rank of 16th?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (team VARCHAR, class VARCHAR, rank VARCHAR)
SELECT team FROM table_name_88 WHERE class = "500cc" AND rank = "16th"
Write a SQL query that answers the following question: Which team has 16 points and ranks 14th?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (team VARCHAR, points VARCHAR, rank VARCHAR)
SELECT team FROM table_name_90 WHERE points = 16 AND rank = "14th"
Write a SQL query that answers the following question: What is the dance that has priscilla presley is the worst dancer(s), and the worst score of 21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (dance VARCHAR, worst_dancer_s_ VARCHAR, worst_score VARCHAR)
SELECT dance FROM table_name_68 WHERE worst_dancer_s_ = "priscilla presley" AND worst_score = "21"
Write a SQL query that answers the following question: What is the best score of the dance freestyle?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (best_score VARCHAR, dance VARCHAR)
SELECT best_score FROM table_name_30 WHERE dance = "freestyle"
Write a SQL query that answers the following question: Which dance has the worst dancer(s) as marissa jaret winokur?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (dance VARCHAR, worst_dancer_s_ VARCHAR)
SELECT dance FROM table_name_52 WHERE worst_dancer_s_ = "marissa jaret winokur"
Write a SQL query that answers the following question: Which Points have an Opponent of vancouver canucks?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (points INTEGER, opponent VARCHAR)
SELECT AVG(points) FROM table_name_91 WHERE opponent = "vancouver canucks"
Write a SQL query that answers the following question: How many Points have a Score of 3–0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (points VARCHAR, score VARCHAR)
SELECT COUNT(points) FROM table_name_80 WHERE score = "3–0"
Write a SQL query that answers the following question: Which Game has Points smaller than 10, and an October larger than 12, and an Opponent of @ washington capitals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (game INTEGER, opponent VARCHAR, points VARCHAR, october VARCHAR)
SELECT SUM(game) FROM table_name_5 WHERE points < 10 AND october > 12 AND opponent = "@ washington capitals"
Write a SQL query that answers the following question: Which Record has Points larger than 0, and a Score of 7–3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (record VARCHAR, points VARCHAR, score VARCHAR)
SELECT record FROM table_name_96 WHERE points > 0 AND score = "7–3"
Write a SQL query that answers the following question: On what date was the game more than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (date VARCHAR, game INTEGER)
SELECT date FROM table_name_23 WHERE game > 5
Write a SQL query that answers the following question: Which series was on May 16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (series VARCHAR, date VARCHAR)
SELECT series FROM table_name_4 WHERE date = "may 16"
Write a SQL query that answers the following question: Name the date for oregon jurisdiction
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (date VARCHAR, jurisdiction VARCHAR)
SELECT date FROM table_name_92 WHERE jurisdiction = "oregon"
Write a SQL query that answers the following question: Name the john b. anderson for ronald reagan of 43% and phil crane of 0%
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (john_b_anderson VARCHAR, phil_crane VARCHAR, ronald_reagan VARCHAR)
SELECT john_b_anderson FROM table_name_21 WHERE phil_crane = "0%" AND ronald_reagan = "43%"
Write a SQL query that answers the following question: Name the howard bake when bush had 66%
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (howard_baker VARCHAR, george_h_w_bush VARCHAR)
SELECT howard_baker FROM table_name_64 WHERE george_h_w_bush = "66%"
Write a SQL query that answers the following question: Name the george bush for ronald reagan of 43%
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (george_h_w_bush VARCHAR, ronald_reagan VARCHAR)
SELECT george_h_w_bush FROM table_name_59 WHERE ronald_reagan = "43%"
Write a SQL query that answers the following question: Name the howard baker for ronald reagan of 72%
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (howard_baker VARCHAR, ronald_reagan VARCHAR)
SELECT howard_baker FROM table_name_46 WHERE ronald_reagan = "72%"
Write a SQL query that answers the following question: What is the sum of goals for the 2004/05 Season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (goals INTEGER, season VARCHAR)
SELECT SUM(goals) FROM table_name_48 WHERE season = "2004/05"
Write a SQL query that answers the following question: What is the lowest caps for the Club of SBV Excelsior?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (caps INTEGER, club VARCHAR)
SELECT MIN(caps) FROM table_name_86 WHERE club = "sbv excelsior"
Write a SQL query that answers the following question: Which season has Caps lower than 36 for the Club of NAC Breda?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (season VARCHAR, caps VARCHAR, club VARCHAR)
SELECT season FROM table_name_35 WHERE caps < 36 AND club = "nac breda"
Write a SQL query that answers the following question: Which Opponents in the final have a Partner of daniella dominikovic?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (opponents_in_the_final VARCHAR, partner VARCHAR)
SELECT opponents_in_the_final FROM table_name_91 WHERE partner = "daniella dominikovic"
Write a SQL query that answers the following question: Which Date has a Partner of daniella dominikovic?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (date VARCHAR, partner VARCHAR)
SELECT date FROM table_name_33 WHERE partner = "daniella dominikovic"
Write a SQL query that answers the following question: Which Surface has a Partner of pemra özgen?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (surface VARCHAR, partner VARCHAR)
SELECT surface FROM table_name_89 WHERE partner = "pemra özgen"
Write a SQL query that answers the following question: Which Date has Opponents in the final of valeria casillo lilly raffa?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (date VARCHAR, opponents_in_the_final VARCHAR)
SELECT date FROM table_name_59 WHERE opponents_in_the_final = "valeria casillo lilly raffa"
Write a SQL query that answers the following question: Which Date has a Partner of daniella dominikovic?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (date VARCHAR, partner VARCHAR)
SELECT date FROM table_name_66 WHERE partner = "daniella dominikovic"
Write a SQL query that answers the following question: Nationality of england, and a Matches smaller than 510, and a Lost of 4, and a Win % smaller than 28.6 had what lowest drawn?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (drawn INTEGER, win__percentage VARCHAR, lost VARCHAR, nationality VARCHAR, matches VARCHAR)
SELECT MIN(drawn) FROM table_name_5 WHERE nationality = "england" AND matches < 510 AND lost = 4 AND win__percentage < 28.6
Write a SQL query that answers the following question: Win % larger than 47.1, and a Matches smaller than 145 had what lowest lost?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (lost INTEGER, win__percentage VARCHAR, matches VARCHAR)
SELECT MIN(lost) FROM table_name_47 WHERE win__percentage > 47.1 AND matches < 145
Write a SQL query that answers the following question: Matches of 15, and a Win % smaller than 20 had what highest lost?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (lost INTEGER, matches VARCHAR, win__percentage VARCHAR)
SELECT MAX(lost) FROM table_name_83 WHERE matches = 15 AND win__percentage < 20
Write a SQL query that answers the following question: Nationality of england, and a Lost larger than 39, and a Win % of 28.7, and a Drawn smaller than 37 had what sum of matches?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (matches INTEGER, drawn VARCHAR, win__percentage VARCHAR, nationality VARCHAR, lost VARCHAR)
SELECT SUM(matches) FROM table_name_1 WHERE nationality = "england" AND lost > 39 AND win__percentage = 28.7 AND drawn < 37
Write a SQL query that answers the following question: Drawn smaller than 24, and a Lost smaller than 17, and a Win % smaller than 31.25 had how many total number of matches?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (matches VARCHAR, win__percentage VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT COUNT(matches) FROM table_name_5 WHERE drawn < 24 AND lost < 17 AND win__percentage < 31.25
Write a SQL query that answers the following question: Lost of 18 had what sum of win %?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (win__percentage INTEGER, lost VARCHAR)
SELECT SUM(win__percentage) FROM table_name_52 WHERE lost = 18
Write a SQL query that answers the following question: When was the score 5-31?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_20 WHERE record = "5-31"
Write a SQL query that answers the following question: What is the second leg that has kk bosna?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (team__number1 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_49 WHERE team__number1 = "kk bosna"
Write a SQL query that answers the following question: What is the 1st leg that has hapoel jerusalem?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (team__number1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_75 WHERE team__number1 = "hapoel jerusalem"
Write a SQL query that answers the following question: Which 1st leg that has hemofarm?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (team__number1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_12 WHERE team__number1 = "hemofarm"
Write a SQL query that answers the following question: Who averaged 201.3 yards passing per game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (name VARCHAR, avg_g VARCHAR)
SELECT name FROM table_name_6 WHERE avg_g = 201.3
Write a SQL query that answers the following question: How many players had an Att-Cmp-Int of 143–269–16, and an efficiency of less than 116.9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (avg_g VARCHAR, att_cmp_int VARCHAR, effic VARCHAR)
SELECT COUNT(avg_g) FROM table_name_88 WHERE att_cmp_int = "143–269–16" AND effic < 116.9
Write a SQL query that answers the following question: What is the Att-Cmp-Int for the player with a efficiency of 117.4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (att_cmp_int VARCHAR, effic VARCHAR)
SELECT att_cmp_int FROM table_name_72 WHERE effic = 117.4
Write a SQL query that answers the following question: What is the total number of legs lost of the player with a high checkout less than 76 and less than 3 played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (legs_lost VARCHAR, high_checkout VARCHAR, played VARCHAR)
SELECT COUNT(legs_lost) FROM table_name_1 WHERE high_checkout < 76 AND played < 3
Write a SQL query that answers the following question: What is the Ch1 in the region served by Central Tablelands?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (ch_1 VARCHAR, region_served VARCHAR)
SELECT ch_1 FROM table_name_73 WHERE region_served = "central tablelands"
Write a SQL query that answers the following question: What transmitter location has digital power of 570kw?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (transmitter_location VARCHAR, digital_power VARCHAR)
SELECT transmitter_location FROM table_name_62 WHERE digital_power = "570kw"
Write a SQL query that answers the following question: What year did team Yamaha have 0 wins, a rank of 8th, and more than 22 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (year VARCHAR, points VARCHAR, rank VARCHAR, team VARCHAR, wins VARCHAR)
SELECT COUNT(year) FROM table_name_96 WHERE team = "yamaha" AND wins = 0 AND rank = "8th" AND points > 22
Write a SQL query that answers the following question: Name the total number of rounds for gina carano
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (round VARCHAR, opponent VARCHAR)
SELECT COUNT(round) FROM table_name_6 WHERE opponent = "gina carano"
Write a SQL query that answers the following question: What is the difference related to 2 losses and fewer than 10 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (points_difference VARCHAR, lost VARCHAR, points VARCHAR)
SELECT points_difference FROM table_name_51 WHERE lost = 2 AND points < 10
Write a SQL query that answers the following question: Where did the game(s) against Iowa take place?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (site VARCHAR, opponent VARCHAR)
SELECT site FROM table_name_94 WHERE opponent = "iowa"