instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What 2nd Party has an Election of 1834?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (election VARCHAR)
SELECT 2 AS nd_party FROM table_name_11 WHERE election = "1834"
Write a SQL query that answers the following question: What 2nd Member has an Election of 1833 by-election?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (election VARCHAR)
SELECT 2 AS nd_member FROM table_name_43 WHERE election = "1833 by-election"
Write a SQL query that answers the following question: Golfer Steve Pate has what To par?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_66 WHERE player = "steve pate"
Write a SQL query that answers the following question: What was the score when they played the Boston Patriots?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_91 WHERE opponent = "boston patriots"
Write a SQL query that answers the following question: How many apps for the rank of 8 in the 2012/13 season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (apps INTEGER, rank VARCHAR, season VARCHAR)
SELECT MAX(apps) FROM table_name_7 WHERE rank = 8 AND season = "2012/13"
Write a SQL query that answers the following question: What was the score when Nacional was the champion, River Plate was the runner-up, and the venue was Centenario?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (score VARCHAR, runner_up VARCHAR, champion VARCHAR, venue VARCHAR)
SELECT score FROM table_name_13 WHERE champion = "nacional" AND venue = "centenario" AND runner_up = "river plate"
Write a SQL query that answers the following question: Who was the champion when atlético wanderers was the runner-up?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (champion VARCHAR, runner_up VARCHAR)
SELECT champion FROM table_name_57 WHERE runner_up = "atlético wanderers"
Write a SQL query that answers the following question: In which city is the San Lorenzo Centenario venue located?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (city VARCHAR, venue VARCHAR)
SELECT city FROM table_name_55 WHERE venue = "san lorenzo centenario"
Write a SQL query that answers the following question: The game played 31 May 2010 was played on what surface?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_98 WHERE date = "31 may 2010"
Write a SQL query that answers the following question: What tournament was played 16 September 2012?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_63 WHERE date = "16 september 2012"
Write a SQL query that answers the following question: What is the score of the game played 26 July 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_22 WHERE date = "26 july 2010"
Write a SQL query that answers the following question: The match against Paul-Henri Mathieu had what outcome?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (outcome VARCHAR, opponent VARCHAR)
SELECT outcome FROM table_name_92 WHERE opponent = "paul-henri mathieu"
Write a SQL query that answers the following question: What is South Africa's to par?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (to_par VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_35 WHERE country = "south africa"
Write a SQL query that answers the following question: Who had a finish of t20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (player VARCHAR, finish VARCHAR)
SELECT player FROM table_name_20 WHERE finish = "t20"
Write a SQL query that answers the following question: What is the average pjehun measured by female enrollment?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (pujehun INTEGER, measure VARCHAR)
SELECT AVG(pujehun) FROM table_name_10 WHERE measure = "female enrollment"
Write a SQL query that answers the following question: What is the highest pjuehun with a kenema greater than 559, a kambia of 45,653, and a tonkolili greater than 113,926?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (pujehun INTEGER, tonkolili VARCHAR, kenema VARCHAR, kambia VARCHAR)
SELECT MAX(pujehun) FROM table_name_9 WHERE kenema > 559 AND kambia = "45,653" AND tonkolili > 113 OFFSET 926
Write a SQL query that answers the following question: What is the sum of the kono with a bonthe greater than 21,238?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (kono INTEGER, bonthe INTEGER)
SELECT SUM(kono) FROM table_name_38 WHERE bonthe > 21 OFFSET 238
Write a SQL query that answers the following question: What party is the person who was first elected in 2000 and was re-elected?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (party VARCHAR, results VARCHAR, first_elected VARCHAR)
SELECT party FROM table_name_50 WHERE results = "re-elected" AND first_elected = 2000
Write a SQL query that answers the following question: Which report has a Set 3 value of 21–25?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (report VARCHAR, set_3 VARCHAR)
SELECT report FROM table_name_93 WHERE set_3 = "21–25"
Write a SQL query that answers the following question: What was the Time when Set 3 was 25–14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (time VARCHAR, set_3 VARCHAR)
SELECT time FROM table_name_70 WHERE set_3 = "25–14"
Write a SQL query that answers the following question: When was there a Time of 18:00, and a Set 1 of 22–25?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (date VARCHAR, time VARCHAR, set_1 VARCHAR)
SELECT date FROM table_name_92 WHERE time = "18:00" AND set_1 = "22–25"
Write a SQL query that answers the following question: How many Totals have a CONCACAF of 0, and an MLS Cup smaller than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (total VARCHAR, concacaf VARCHAR, mls_cup VARCHAR)
SELECT COUNT(total) FROM table_name_64 WHERE concacaf = 0 AND mls_cup < 6
Write a SQL query that answers the following question: Which MLS Cup has another larger than 9, and a Total smaller than 72?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (mls_cup INTEGER, other VARCHAR, total VARCHAR)
SELECT AVG(mls_cup) FROM table_name_43 WHERE other > 9 AND total < 72
Write a SQL query that answers the following question: What year has a not nominated result and a nomination title of "the color of fame"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (year__ceremony_ VARCHAR, result VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT year__ceremony_ FROM table_name_62 WHERE result = "not nominated" AND film_title_used_in_nomination = "the color of fame"
Write a SQL query that answers the following question: What's the original title of the nomination title, "brecha en el silencio"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT original_title FROM table_name_1 WHERE film_title_used_in_nomination = "brecha en el silencio"
Write a SQL query that answers the following question: What year has a nomination title of "sangrador"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT year__ceremony_ FROM table_name_84 WHERE film_title_used_in_nomination = "sangrador"
Write a SQL query that answers the following question: What year has a original title of "el tinte de la fama"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (year__ceremony_ VARCHAR, original_title VARCHAR)
SELECT year__ceremony_ FROM table_name_81 WHERE original_title = "el tinte de la fama"
Write a SQL query that answers the following question: What's the result for director elia schneider's punto y raya?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (result VARCHAR, director VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT result FROM table_name_25 WHERE director = "elia schneider" AND film_title_used_in_nomination = "punto y raya"
Write a SQL query that answers the following question: What is the score points when the total is 20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (score_points VARCHAR, total VARCHAR)
SELECT score_points FROM table_name_4 WHERE total = "20"
Write a SQL query that answers the following question: What is the score points in WC Kerrville, when rank was points of 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (score_points VARCHAR, event VARCHAR, rank_points VARCHAR)
SELECT score_points FROM table_name_99 WHERE event = "wc kerrville" AND rank_points = "8"
Write a SQL query that answers the following question: What is the score points when the total is 16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (score_points VARCHAR, total VARCHAR)
SELECT score_points FROM table_name_35 WHERE total = "16"
Write a SQL query that answers the following question: What is the score points when the rank points is 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (score_points VARCHAR, rank_points VARCHAR)
SELECT score_points FROM table_name_53 WHERE rank_points = "3"
Write a SQL query that answers the following question: What is the total when the score points show Olympic bronze medalist?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (total VARCHAR, score_points VARCHAR)
SELECT total FROM table_name_50 WHERE score_points = "olympic bronze medalist"
Write a SQL query that answers the following question: What Winning constructor has a Circuit of lasarte?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (winning_constructor VARCHAR, circuit VARCHAR)
SELECT winning_constructor FROM table_name_82 WHERE circuit = "lasarte"
Write a SQL query that answers the following question: What Date has a Winning driver of ugo sivocci?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (date VARCHAR, winning_driver VARCHAR)
SELECT date FROM table_name_61 WHERE winning_driver = "ugo sivocci"
Write a SQL query that answers the following question: What Report has a Winning driver of mario razzauti?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (report VARCHAR, winning_driver VARCHAR)
SELECT report FROM table_name_72 WHERE winning_driver = "mario razzauti"
Write a SQL query that answers the following question: What Date has a Circuit of cremona?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (date VARCHAR, circuit VARCHAR)
SELECT date FROM table_name_36 WHERE circuit = "cremona"
Write a SQL query that answers the following question: What Name has a Winning constructor of ansaldo?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (name VARCHAR, winning_constructor VARCHAR)
SELECT name FROM table_name_56 WHERE winning_constructor = "ansaldo"
Write a SQL query that answers the following question: What Winning driver has a Winning constructor of sunbeam?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (winning_driver VARCHAR, winning_constructor VARCHAR)
SELECT winning_driver FROM table_name_43 WHERE winning_constructor = "sunbeam"
Write a SQL query that answers the following question: What is the average total for 0 bronze?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (total INTEGER, bronze INTEGER)
SELECT AVG(total) FROM table_name_98 WHERE bronze < 0
Write a SQL query that answers the following question: What is the title of the track with lyricist ROZ and arranger Yongmin Lee?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (title VARCHAR, lyricist_s_ VARCHAR, arranger_s_ VARCHAR)
SELECT title FROM table_name_17 WHERE lyricist_s_ = "roz" AND arranger_s_ = "yongmin lee"
Write a SQL query that answers the following question: Who was the lyricist for composer Haewon Park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (lyricist_s_ VARCHAR, composer_s_ VARCHAR)
SELECT lyricist_s_ FROM table_name_36 WHERE composer_s_ = "haewon park"
Write a SQL query that answers the following question: What are the lengths of the tracks arranged by ROZ?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (time VARCHAR, arranger_s_ VARCHAR)
SELECT time FROM table_name_79 WHERE arranger_s_ = "roz"
Write a SQL query that answers the following question: How many years did caroline lubrez win?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (year INTEGER, winner VARCHAR)
SELECT SUM(year) FROM table_name_19 WHERE winner = "caroline lubrez"
Write a SQL query that answers the following question: Which Area km 2 has an Official Name of stanley, and a Population larger than 1,817?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (area_km_2 INTEGER, official_name VARCHAR, population VARCHAR)
SELECT MAX(area_km_2) FROM table_name_46 WHERE official_name = "stanley" AND population > 1 OFFSET 817
Write a SQL query that answers the following question: How much Area km 2 have a Population of 1,215?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (area_km_2 VARCHAR, population VARCHAR)
SELECT COUNT(area_km_2) FROM table_name_61 WHERE population = 1 OFFSET 215
Write a SQL query that answers the following question: Which Census Ranking has a Population smaller than 879, and an Area km 2 larger than 537.62?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (census_ranking VARCHAR, population VARCHAR, area_km_2 VARCHAR)
SELECT census_ranking FROM table_name_36 WHERE population < 879 AND area_km_2 > 537.62
Write a SQL query that answers the following question: Which Census Ranking has an Area km 2 larger than 753.06, and an Official Name of stanley?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (census_ranking VARCHAR, area_km_2 VARCHAR, official_name VARCHAR)
SELECT census_ranking FROM table_name_94 WHERE area_km_2 > 753.06 AND official_name = "stanley"
Write a SQL query that answers the following question: Which Area km 2 has an Official Name of southampton, and a Population larger than 1,601?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (area_km_2 INTEGER, official_name VARCHAR, population VARCHAR)
SELECT MIN(area_km_2) FROM table_name_61 WHERE official_name = "southampton" AND population > 1 OFFSET 601
Write a SQL query that answers the following question: What is Kirkby Town's lowest lost with more than 83 goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (lost INTEGER, team VARCHAR, goals_for VARCHAR)
SELECT MIN(lost) FROM table_name_72 WHERE team = "kirkby town" AND goals_for > 83
Write a SQL query that answers the following question: What is the lowest position with points 1 of 27 2 and fewer than 9 drawn?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (position INTEGER, points_1 VARCHAR, drawn VARCHAR)
SELECT MIN(position) FROM table_name_74 WHERE points_1 = "27 2" AND drawn < 9
Write a SQL query that answers the following question: What is the goal difference number with a position of 15?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (goal_difference VARCHAR, position VARCHAR)
SELECT goal_difference FROM table_name_35 WHERE position = 15
Write a SQL query that answers the following question: What is English Translation, when Lyricist(s) is "Giorgos Moukidis", and when Original Album is "Ena (New Edition)"
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (english_translation VARCHAR, lyricist_s_ VARCHAR, original_album VARCHAR)
SELECT english_translation FROM table_name_23 WHERE lyricist_s_ = "giorgos moukidis" AND original_album = "ena (new edition)"
Write a SQL query that answers the following question: What is Original Album, when Time is "3:39"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (original_album VARCHAR, time VARCHAR)
SELECT original_album FROM table_name_23 WHERE time = "3:39"
Write a SQL query that answers the following question: What is Time, when Composer(s) is "Kyriakos Papadopoulos"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (time VARCHAR, composer_s_ VARCHAR)
SELECT time FROM table_name_32 WHERE composer_s_ = "kyriakos papadopoulos"
Write a SQL query that answers the following question: Who was the visitor on March 27?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_9 WHERE date = "march 27"
Write a SQL query that answers the following question: What was the score of the game on February 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_34 WHERE date = "february 8"
Write a SQL query that answers the following question: What was their record on December 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_1 WHERE date = "december 4"
Write a SQL query that answers the following question: What was the score on February 21 when the home team was the Pittsburgh Penguins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT score FROM table_name_6 WHERE home = "pittsburgh penguins" AND date = "february 21"
Write a SQL query that answers the following question: WHAT IS THE LOWEST MONEY WITH TO PAR LARGER THAN 26?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (money___ INTEGER, to_par INTEGER)
SELECT MIN(money___) AS $__ FROM table_name_1 WHERE to_par > 26
Write a SQL query that answers the following question: WHAT IS THE SCORE WITH $85 FOR CLARENCE HACKNEY?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (score VARCHAR, money___$__ VARCHAR, player VARCHAR)
SELECT score FROM table_name_96 WHERE money___$__ = 85 AND player = "clarence hackney"
Write a SQL query that answers the following question: WHAT IS THE LOWEST MONEY WITH 74-74-76-74=298 SCORE?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (money___ INTEGER, score VARCHAR)
SELECT MIN(money___) AS $__ FROM table_name_2 WHERE score = 74 - 74 - 76 - 74 = 298
Write a SQL query that answers the following question: What is the week number for the date of September 14, 1980?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (week INTEGER, date VARCHAR)
SELECT MAX(week) FROM table_name_96 WHERE date = "september 14, 1980"
Write a SQL query that answers the following question: What week was the result l 14–9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (week VARCHAR, result VARCHAR)
SELECT week FROM table_name_48 WHERE result = "l 14–9"
Write a SQL query that answers the following question: What is the week number with attendance of 44,132?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (week VARCHAR, attendance VARCHAR)
SELECT COUNT(week) FROM table_name_2 WHERE attendance = 44 OFFSET 132
Write a SQL query that answers the following question: Who was the winner for the circuit Eastern Creek Raceway?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (winner VARCHAR, circuit VARCHAR)
SELECT winner FROM table_name_42 WHERE circuit = "eastern creek raceway"
Write a SQL query that answers the following question: What was the city for the winner Darren Hossack at the circuit of phillip island grand prix circuit?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (city___state VARCHAR, winner VARCHAR, circuit VARCHAR)
SELECT city___state FROM table_name_45 WHERE winner = "darren hossack" AND circuit = "phillip island grand prix circuit"
Write a SQL query that answers the following question: What city was the circuit of mallala motor sport park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (city___state VARCHAR, circuit VARCHAR)
SELECT city___state FROM table_name_48 WHERE circuit = "mallala motor sport park"
Write a SQL query that answers the following question: Which To par has a Place of t1, and a Country of india?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (to_par VARCHAR, place VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_85 WHERE place = "t1" AND country = "india"
Write a SQL query that answers the following question: What is Brian Gay's place?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_77 WHERE player = "brian gay"
Write a SQL query that answers the following question: Which Country has a Score smaller than 70, and a Place of t3, and a Player of andrés romero?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (country VARCHAR, player VARCHAR, score VARCHAR, place VARCHAR)
SELECT country FROM table_name_4 WHERE score < 70 AND place = "t3" AND player = "andrés romero"
Write a SQL query that answers the following question: What order year has a 30 Length (ft.) and 05.505 model?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (order_year VARCHAR, length__ft_ VARCHAR, model VARCHAR)
SELECT order_year FROM table_name_86 WHERE length__ft_ = "30" AND model = "05.505"
Write a SQL query that answers the following question: What builder has a 2001-02 order year?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (builder VARCHAR, order_year VARCHAR)
SELECT builder FROM table_name_93 WHERE order_year = "2001-02"
Write a SQL query that answers the following question: What is the order year of obi builder and 05.505 model that is 30 feet long?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (order_year VARCHAR, model VARCHAR, builder VARCHAR, length__ft_ VARCHAR)
SELECT order_year FROM table_name_89 WHERE builder = "obi" AND length__ft_ = "30" AND model = "05.505"
Write a SQL query that answers the following question: What is the career of player serhiy konovalov, who has less than 1 pct.?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (career VARCHAR, pct VARCHAR, player VARCHAR)
SELECT career FROM table_name_23 WHERE pct < 1 AND player = "serhiy konovalov"
Write a SQL query that answers the following question: What is the career of player andriy husyn?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (career VARCHAR, player VARCHAR)
SELECT career FROM table_name_38 WHERE player = "andriy husyn"
Write a SQL query that answers the following question: What is the earliest year that has fewer than 3852.1 cows and 3900.1 working horses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (year INTEGER, working_horses VARCHAR, cows VARCHAR)
SELECT MIN(year) FROM table_name_97 WHERE working_horses = "3900.1" AND cows < 3852.1
Write a SQL query that answers the following question: What is the number of bulls that has oxen larger than 113.8, and a sheep and goats larger than 4533.4, and a cows smaller than 3987, and a total horses larger than 5056.5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (bulls VARCHAR, total_horses VARCHAR, cows VARCHAR, oxen VARCHAR, sheep_and_goats VARCHAR)
SELECT bulls FROM table_name_58 WHERE oxen > 113.8 AND sheep_and_goats > 4533.4 AND cows < 3987 AND total_horses > 5056.5
Write a SQL query that answers the following question: How many years had fewer than 2089.2 pigs?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (year VARCHAR, pigs INTEGER)
SELECT COUNT(year) FROM table_name_81 WHERE pigs < 2089.2
Write a SQL query that answers the following question: What was the lowest total number of horses that has a total cattle smaller than 6274.1, and a oxen smaller than 156.5, and a bulls of 40.0, and fewer than 3377 cows?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (total_horses INTEGER, cows VARCHAR, bulls VARCHAR, total_cattle VARCHAR, oxen VARCHAR)
SELECT MIN(total_horses) FROM table_name_65 WHERE total_cattle < 6274.1 AND oxen < 156.5 AND bulls = "40.0" AND cows < 3377
Write a SQL query that answers the following question: What is the lowest number of sheep and goats after 1931, with fewer than 2518 cows and more than 2604.8 horses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (sheep_and_goats INTEGER, total_horses VARCHAR, year VARCHAR, cows VARCHAR)
SELECT MIN(sheep_and_goats) FROM table_name_42 WHERE year > 1931 AND cows < 2518 AND total_horses > 2604.8
Write a SQL query that answers the following question: For the game ending with a record of 31-43-2, what was the decision?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (decision VARCHAR, record VARCHAR)
SELECT decision FROM table_name_10 WHERE record = "31-43-2"
Write a SQL query that answers the following question: For the game that ended with a record of 28-35-1, what was the decision?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (decision VARCHAR, record VARCHAR)
SELECT decision FROM table_name_22 WHERE record = "28-35-1"
Write a SQL query that answers the following question: WHAT IS THE HIGHEST ATTENDANCE FOR THE PHOENIX COYOTES?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (attendance INTEGER, opponent VARCHAR)
SELECT MAX(attendance) FROM table_name_76 WHERE opponent = "phoenix coyotes"
Write a SQL query that answers the following question: WHAT IS THE DECISION FOR NOVEMBER 28?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (decision VARCHAR, date VARCHAR)
SELECT decision FROM table_name_10 WHERE date = "november 28"
Write a SQL query that answers the following question: what is the mission when the location is rome?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (mission VARCHAR, location VARCHAR)
SELECT mission FROM table_name_13 WHERE location = "rome"
Write a SQL query that answers the following question: what is the location when the type is embassy and the mission is panama?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (location VARCHAR, type VARCHAR, mission VARCHAR)
SELECT location FROM table_name_42 WHERE type = "embassy" AND mission = "panama"
Write a SQL query that answers the following question: what is the mission when the location is brasilia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (mission VARCHAR, location VARCHAR)
SELECT mission FROM table_name_18 WHERE location = "brasilia"
Write a SQL query that answers the following question: what is the type when the position is ambassador and the location is rabat?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (type VARCHAR, position VARCHAR, location VARCHAR)
SELECT type FROM table_name_62 WHERE position = "ambassador" AND location = "rabat"
Write a SQL query that answers the following question: How many wins when the pct, is .848?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (wins VARCHAR, pct VARCHAR)
SELECT wins FROM table_name_19 WHERE pct = ".848"
Write a SQL query that answers the following question: Which season had 34 losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (season VARCHAR, losses VARCHAR)
SELECT season FROM table_name_35 WHERE losses = "34"
Write a SQL query that answers the following question: What was the finish in the playoffs season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (finish VARCHAR, season VARCHAR)
SELECT finish FROM table_name_17 WHERE season = "playoffs"
Write a SQL query that answers the following question: What is the number of wins in the playoffs league?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (wins VARCHAR, league VARCHAR)
SELECT wins FROM table_name_10 WHERE league = "playoffs"
Write a SQL query that answers the following question: What is the league with 0 losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (league VARCHAR, losses VARCHAR)
SELECT league FROM table_name_47 WHERE losses = "0"
Write a SQL query that answers the following question: In what place is the player with a score of 72-66-75=213?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_13 WHERE score = 72 - 66 - 75 = 213
Write a SQL query that answers the following question: From what country is the player with a score of 68-71-76=215?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_70 WHERE score = 68 - 71 - 76 = 215
Write a SQL query that answers the following question: Which player has a score of 68-69-73=210
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_8 WHERE score = 68 - 69 - 73 = 210
Write a SQL query that answers the following question: Who has a finish of t66?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (player VARCHAR, finish VARCHAR)
SELECT player FROM table_name_89 WHERE finish = "t66"
Write a SQL query that answers the following question: What is Wayne Grady's total?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (total INTEGER, player VARCHAR)
SELECT SUM(total) FROM table_name_93 WHERE player = "wayne grady"
Write a SQL query that answers the following question: What percent did GRÜNE get in Tyrol where RETTÖ got 0.6%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (grüne VARCHAR, rettö VARCHAR, state VARCHAR)
SELECT grüne FROM table_name_14 WHERE rettö = "0.6%" AND state = "tyrol"