instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Which Category were Libby Goldstein and Junie Lowry-Johnson recipients and nominees for?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (category VARCHAR, recipients_and_nominees VARCHAR)
SELECT category FROM table_name_50 WHERE recipients_and_nominees = "libby goldstein and junie lowry-johnson"
Write a SQL query that answers the following question: what is the highest runners when the jockey is frankie dettori and the placing is higher than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (runners INTEGER, jockey VARCHAR, placing VARCHAR)
SELECT MAX(runners) FROM table_name_68 WHERE jockey = "frankie dettori" AND placing > 1
Write a SQL query that answers the following question: what is the race when the jockey is frankie dettori, the margin is more than 3 and the course is yarmouth?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (race VARCHAR, course VARCHAR, jockey VARCHAR, margin VARCHAR)
SELECT race FROM table_name_48 WHERE jockey = "frankie dettori" AND margin > 3 AND course = "yarmouth"
Write a SQL query that answers the following question: Who is the Partner in the match with a Score of 6-4, 2-6, 7-6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (partnering VARCHAR, score VARCHAR)
SELECT partnering FROM table_name_52 WHERE score = "6-4, 2-6, 7-6"
Write a SQL query that answers the following question: what is the competition when the result is won and the date is september 13, 1996?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (competition VARCHAR, result VARCHAR, date VARCHAR)
SELECT competition FROM table_name_87 WHERE result = "won" AND date = "september 13, 1996"
Write a SQL query that answers the following question: what is the date when the competition is 1996 tiger cup and the result is drew?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (date VARCHAR, competition VARCHAR, result VARCHAR)
SELECT date FROM table_name_60 WHERE competition = "1996 tiger cup" AND result = "drew"
Write a SQL query that answers the following question: what is the score when the competition is 1995 southeast asian games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (score VARCHAR, competition VARCHAR)
SELECT score FROM table_name_1 WHERE competition = "1995 southeast asian games"
Write a SQL query that answers the following question: what is the result when the venue is singapore on september 8, 1996?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (result VARCHAR, venue VARCHAR, date VARCHAR)
SELECT result FROM table_name_37 WHERE venue = "singapore" AND date = "september 8, 1996"
Write a SQL query that answers the following question: what is the competition when the result is won and the score is 8-0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (competition VARCHAR, result VARCHAR, score VARCHAR)
SELECT competition FROM table_name_11 WHERE result = "won" AND score = "8-0"
Write a SQL query that answers the following question: Waht laps have points smaller than 1, and a team of dale coyne racing, and the grid larger than 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (laps VARCHAR, grid VARCHAR, points VARCHAR, team VARCHAR)
SELECT laps FROM table_name_87 WHERE points < 1 AND team = "dale coyne racing" AND grid > 13
Write a SQL query that answers the following question: What is the total number of laps for a team of team player's, and has a grid of 9, and points larger than 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (laps VARCHAR, points VARCHAR, team VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_12 WHERE team = "team player's" AND grid = 9 AND points > 10
Write a SQL query that answers the following question: What is the lowest points for a time/retired of +30.7 secs, and laps smaller than 165?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (points INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT MIN(points) FROM table_name_70 WHERE time_retired = "+30.7 secs" AND laps < 165
Write a SQL query that answers the following question: Who was the team 2 in the game with a team 1 of Liege Basket?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (team__number2 VARCHAR, team__number1 VARCHAR)
SELECT team__number2 FROM table_name_88 WHERE team__number1 = "liege basket"
Write a SQL query that answers the following question: What was the 2nd leg score in the matchup with a team 2 of KK Borac?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (team__number2 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_77 WHERE team__number2 = "kk borac"
Write a SQL query that answers the following question: What are the serial numbers for the locomotives of Class 4-8-4 β€” oooooooo β€” northern?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (serial_numbers VARCHAR, class VARCHAR)
SELECT serial_numbers FROM table_name_28 WHERE class = "4-8-4 β€” oooooooo β€” northern"
Write a SQL query that answers the following question: What is the fleet number for the model with Serial number 68056?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (fleet_number_s_ VARCHAR, serial_numbers VARCHAR)
SELECT fleet_number_s_ FROM table_name_27 WHERE serial_numbers = "68056"
Write a SQL query that answers the following question: What is the serial number of the model made in 1930?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (serial_numbers VARCHAR, year_made VARCHAR)
SELECT serial_numbers FROM table_name_82 WHERE year_made = "1930"
Write a SQL query that answers the following question: What is the wheel arrangement for the model that was retired in 1955?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (wheel_arrangement VARCHAR, year_s__retired VARCHAR)
SELECT wheel_arrangement FROM table_name_75 WHERE year_s__retired = "1955"
Write a SQL query that answers the following question: What is the lowest number of matches that has a Clubs of 46 β†’ 32?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (matches INTEGER, clubs VARCHAR)
SELECT MIN(matches) FROM table_name_99 WHERE clubs = "46 β†’ 32"
Write a SQL query that answers the following question: What is the highest number of matches that has a round of Third Round?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (matches INTEGER, round VARCHAR)
SELECT MAX(matches) FROM table_name_22 WHERE round = "third round"
Write a SQL query that answers the following question: What is the prize money for the final round?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (prize_money VARCHAR, round VARCHAR)
SELECT prize_money FROM table_name_58 WHERE round = "final"
Write a SQL query that answers the following question: What is the date for the row with a new entries this round of 44?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (date VARCHAR, new_entries_this_round VARCHAR)
SELECT date FROM table_name_71 WHERE new_entries_this_round = "44"
Write a SQL query that answers the following question: Which Against has Wins of 11, and Losses smaller than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (against INTEGER, wins VARCHAR, losses VARCHAR)
SELECT AVG(against) FROM table_name_97 WHERE wins = 11 AND losses < 7
Write a SQL query that answers the following question: Which Draws have Losses larger than 8, and a Hampden FL of terang-mortlake?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (draws VARCHAR, losses VARCHAR, hampden_fl VARCHAR)
SELECT draws FROM table_name_18 WHERE losses > 8 AND hampden_fl = "terang-mortlake"
Write a SQL query that answers the following question: Which Byes have Losses smaller than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (byes INTEGER, losses INTEGER)
SELECT AVG(byes) FROM table_name_38 WHERE losses < 4
Write a SQL query that answers the following question: What's the total draws when the losses are less than 10, less than 2 byes, and 13 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (draws VARCHAR, byes VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT COUNT(draws) FROM table_name_39 WHERE losses < 10 AND wins = 13 AND byes < 2
Write a SQL query that answers the following question: What's the total draws for Ararat when the byes are less than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (draws INTEGER, wimmera_fl VARCHAR, byes VARCHAR)
SELECT SUM(draws) FROM table_name_97 WHERE wimmera_fl = "ararat" AND byes < 2
Write a SQL query that answers the following question: What's the total losses when there are 8 wins and less than 2 byes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (losses INTEGER, wins VARCHAR, byes VARCHAR)
SELECT SUM(losses) FROM table_name_91 WHERE wins = 8 AND byes < 2
Write a SQL query that answers the following question: What's the least losses for Horsham Saints with more than 13 wins and less than 1211 against?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (losses INTEGER, wins VARCHAR, against VARCHAR, wimmera_fl VARCHAR)
SELECT MIN(losses) FROM table_name_24 WHERE against < 1211 AND wimmera_fl = "horsham saints" AND wins > 13
Write a SQL query that answers the following question: What are the draws when the losses are less than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (draws INTEGER, losses INTEGER)
SELECT SUM(draws) FROM table_name_30 WHERE losses < 1
Write a SQL query that answers the following question: What are the amount of wins when the draws are less than 0 and the against is 1348?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (wins INTEGER, against VARCHAR, draws VARCHAR)
SELECT MIN(wins) FROM table_name_82 WHERE against = 1348 AND draws < 0
Write a SQL query that answers the following question: What was the total city area for vehari city with a serial number bigger than 36?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (city_area_km_2__ VARCHAR, headquartered_city VARCHAR, serial_no VARCHAR)
SELECT COUNT(city_area_km_2__) FROM table_name_1 WHERE headquartered_city = "vehari city" AND serial_no > 36
Write a SQL query that answers the following question: What was the lowest city population for the district of rajanpur district with a area of 6 km squared and a serial number less than 29?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (city_population__2009_ INTEGER, serial_no VARCHAR, city_area_km_2__ VARCHAR, district VARCHAR)
SELECT MIN(city_population__2009_) FROM table_name_15 WHERE city_area_km_2__ = 6 AND district = "rajanpur district" AND serial_no < 29
Write a SQL query that answers the following question: What is the sum of the serial numbers for narowal city?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (serial_no INTEGER, headquartered_city VARCHAR)
SELECT SUM(serial_no) FROM table_name_22 WHERE headquartered_city = "narowal city"
Write a SQL query that answers the following question: What is the sum of the area for the bahawalnagar district with a population more than 134,936?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (city_area_km_2__ INTEGER, district VARCHAR, city_population__2009_ VARCHAR)
SELECT SUM(city_area_km_2__) FROM table_name_32 WHERE district = "bahawalnagar district" AND city_population__2009_ > 134 OFFSET 936
Write a SQL query that answers the following question: What district was the city with an area smaller than 12 square kilometers and a serial number of 35?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (district VARCHAR, city_area_km_2__ VARCHAR, serial_no VARCHAR)
SELECT district FROM table_name_9 WHERE city_area_km_2__ < 12 AND serial_no = 35
Write a SQL query that answers the following question: After pick number 158, what is the next round a USC player was picked?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (round INTEGER, school VARCHAR, pick VARCHAR)
SELECT MIN(round) FROM table_name_20 WHERE school = "usc" AND pick > 158
Write a SQL query that answers the following question: Jim Obradovich, picked after round 2, but before pick 183, plays what position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (position VARCHAR, player VARCHAR, round VARCHAR, pick VARCHAR)
SELECT position FROM table_name_88 WHERE round > 2 AND pick < 183 AND player = "jim obradovich"
Write a SQL query that answers the following question: What time has q as the notes, and Australia as the country?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (time VARCHAR, notes VARCHAR, country VARCHAR)
SELECT time FROM table_name_95 WHERE notes = "q" AND country = "australia"
Write a SQL query that answers the following question: What notes have a rank greater than 2, with mexico as the country?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (notes VARCHAR, rank VARCHAR, country VARCHAR)
SELECT notes FROM table_name_64 WHERE rank > 2 AND country = "mexico"
Write a SQL query that answers the following question: What is the sum of bronzes for teams with more than 0 silver and a total under 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (bronze INTEGER, silver VARCHAR, total VARCHAR)
SELECT SUM(bronze) FROM table_name_22 WHERE silver > 0 AND total < 1
Write a SQL query that answers the following question: What is the average number of golds for teams with 1 bronze, less than 3 silver, and a total over 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT AVG(gold) FROM table_name_55 WHERE bronze = 1 AND total > 2 AND silver < 3
Write a SQL query that answers the following question: What type of yacht has a LOA of 15.15 metres?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (yacht VARCHAR, loa__metres_ VARCHAR)
SELECT yacht AS Type FROM table_name_94 WHERE loa__metres_ = 15.15
Write a SQL query that answers the following question: What Soap Opera with the character Teemu Luotola?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (soap_opera VARCHAR, character VARCHAR)
SELECT soap_opera FROM table_name_81 WHERE character = "teemu luotola"
Write a SQL query that answers the following question: What beer has a record of 4.08?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (beer VARCHAR, recorded VARCHAR)
SELECT beer FROM table_name_67 WHERE recorded = 4.08
Write a SQL query that answers the following question: Which round has an Opposing Team of manchester united?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (round VARCHAR, opposing_team VARCHAR)
SELECT round FROM table_name_64 WHERE opposing_team = "manchester united"
Write a SQL query that answers the following question: Which Date has an Against larger than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (date VARCHAR, against INTEGER)
SELECT date FROM table_name_28 WHERE against > 0
Write a SQL query that answers the following question: Which Against has a Round of fourth round?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (against INTEGER, round VARCHAR)
SELECT MIN(against) FROM table_name_69 WHERE round = "fourth round"
Write a SQL query that answers the following question: What was the venue on 17/02/2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_1 WHERE date = "17/02/2008"
Write a SQL query that answers the following question: What is the average quantity for coaches manufactured in 1921/23, and had 40 seats?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (quantity INTEGER, year_s__of_manufacture VARCHAR, seats VARCHAR)
SELECT AVG(quantity) FROM table_name_87 WHERE year_s__of_manufacture = "1921/23" AND seats = "40"
Write a SQL query that answers the following question: Which class to 1928 value had years of manufacture of 1921/23 and class from 1928 of BCi-21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (class_to_1928 VARCHAR, year_s__of_manufacture VARCHAR, class_from_1928 VARCHAR)
SELECT class_to_1928 FROM table_name_21 WHERE year_s__of_manufacture = "1921/23" AND class_from_1928 = "bci-21"
Write a SQL query that answers the following question: What is the smallest quantity having a Class to 1928 of BDi-21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (quantity INTEGER, class_to_1928 VARCHAR)
SELECT MIN(quantity) FROM table_name_79 WHERE class_to_1928 = "bdi-21"
Write a SQL query that answers the following question: Which class from 1928 had a class to 1928 of BDi-21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (class_from_1928 VARCHAR, class_to_1928 VARCHAR)
SELECT class_from_1928 FROM table_name_88 WHERE class_to_1928 = "bdi-21"
Write a SQL query that answers the following question: What were the remarks for the coach having a class from 1928 of Cid-21B?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (remarks VARCHAR, class_from_1928 VARCHAR)
SELECT remarks FROM table_name_99 WHERE class_from_1928 = "cid-21b"
Write a SQL query that answers the following question: Which B Score has a Total larger than 15.325, and an A Score smaller than 6.4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (b_score INTEGER, total VARCHAR, a_score VARCHAR)
SELECT SUM(b_score) FROM table_name_2 WHERE total > 15.325 AND a_score < 6.4
Write a SQL query that answers the following question: Which Total has an A Score of 6.5, and a Position larger than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (total INTEGER, a_score VARCHAR, position VARCHAR)
SELECT MIN(total) FROM table_name_79 WHERE a_score = 6.5 AND position > 5
Write a SQL query that answers the following question: What is the date of week 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_20 WHERE week = 11
Write a SQL query that answers the following question: What is the latest week when the chicago bears are the opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (week INTEGER, opponent VARCHAR)
SELECT MAX(week) FROM table_name_27 WHERE opponent = "chicago bears"
Write a SQL query that answers the following question: What song placed higher than#4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (song VARCHAR, place INTEGER)
SELECT song FROM table_name_41 WHERE place > 4
Write a SQL query that answers the following question: Who is the artist that drew higher than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (artist VARCHAR, draw INTEGER)
SELECT artist FROM table_name_33 WHERE draw > 4
Write a SQL query that answers the following question: What's the total starts with more points than 1 and the driver is Nasser Al-Attiyah?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (starts VARCHAR, driver VARCHAR, points VARCHAR)
SELECT COUNT(starts) FROM table_name_47 WHERE driver = "nasser al-attiyah" AND points > 1
Write a SQL query that answers the following question: What's the smallest number of podiums having more than 6 starts and 5 finishes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (podiums INTEGER, finishes VARCHAR, starts VARCHAR)
SELECT MIN(podiums) FROM table_name_82 WHERE finishes = 5 AND starts > 6
Write a SQL query that answers the following question: What's the number of stage wins for Federico Villagra having more than 1 finish, less than 8 starts and less than 1 podium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (stage_wins VARCHAR, starts VARCHAR, driver VARCHAR, finishes VARCHAR, podiums VARCHAR)
SELECT COUNT(stage_wins) FROM table_name_41 WHERE finishes > 1 AND podiums < 1 AND driver = "federico villagra" AND starts < 8
Write a SQL query that answers the following question: What's the finishes for Lambros Athanassoulas having 0 podiums and 0 stage wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (finishes INTEGER, driver VARCHAR, podiums VARCHAR, stage_wins VARCHAR)
SELECT SUM(finishes) FROM table_name_57 WHERE podiums = 0 AND stage_wins = 0 AND driver = "lambros athanassoulas"
Write a SQL query that answers the following question: What is the average number of electorates (2003) reserved for sc with a constituency number of 50?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (number_of_electorates__2003_ INTEGER, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
SELECT AVG(number_of_electorates__2003_) FROM table_name_80 WHERE reserved_for___sc___st__none_ = "sc" AND constituency_number = "50"
Write a SQL query that answers the following question: Which Finals have a Pre-Season larger than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (finals INTEGER, pre_season INTEGER)
SELECT MIN(finals) FROM table_name_52 WHERE pre_season > 0
Write a SQL query that answers the following question: How much A-League has a Pre-Season larger than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (a_league VARCHAR, pre_season INTEGER)
SELECT COUNT(a_league) FROM table_name_85 WHERE pre_season > 0
Write a SQL query that answers the following question: What is the last issue entry for Aron's Absurd Armada?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (last_issue VARCHAR, title VARCHAR)
SELECT last_issue FROM table_name_49 WHERE title = "aron's absurd armada"
Write a SQL query that answers the following question: What is the title that was first published in August 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (title VARCHAR, first_issue VARCHAR)
SELECT title FROM table_name_39 WHERE first_issue = "august 2010"
Write a SQL query that answers the following question: What is the title that was first published in February 2009 and is still ongoing?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (title VARCHAR, last_issue VARCHAR, first_issue VARCHAR)
SELECT title FROM table_name_44 WHERE last_issue = "ongoing" AND first_issue = "february 2009"
Write a SQL query that answers the following question: What is the last issue entry of Time and Again?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (last_issue VARCHAR, title VARCHAR)
SELECT last_issue FROM table_name_55 WHERE title = "time and again"
Write a SQL query that answers the following question: What the rank of the Virgin Islands athlete with react under 0.168?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (rank VARCHAR, react VARCHAR, nationality VARCHAR)
SELECT rank FROM table_name_44 WHERE react < 0.168 AND nationality = "virgin islands"
Write a SQL query that answers the following question: What is the lowest rank for Chris Brown with react greater than 0.244?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (rank INTEGER, athlete VARCHAR, react VARCHAR)
SELECT MIN(rank) FROM table_name_44 WHERE athlete = "chris brown" AND react > 0.244
Write a SQL query that answers the following question: What is the highest rank of an athlete from Belgium with react greater than 0.162?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (rank INTEGER, nationality VARCHAR, react VARCHAR)
SELECT MAX(rank) FROM table_name_38 WHERE nationality = "belgium" AND react > 0.162
Write a SQL query that answers the following question: What's the 2008 that has 3.4 in 2009 and more than 2.9 in 2005?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (Id VARCHAR)
SELECT MAX(2008) FROM table_name_35 WHERE 2009 = 3.4 AND 2005 > 2.9
Write a SQL query that answers the following question: What's the 2006 if there's less than 6.7 in 2007 and less than 3.4 in 2009?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (Id VARCHAR)
SELECT SUM(2006) FROM table_name_46 WHERE 2007 < 6.7 AND 2009 < 3.4
Write a SQL query that answers the following question: What's the total in 2005 if there's more than 10.2 in 2006, less than 29.5 in 2007, more than 4.9 in 2009 and less than 43.8 in 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (Id VARCHAR)
SELECT COUNT(2005) FROM table_name_1 WHERE 2010 < 43.8 AND 2007 < 29.5 AND 2009 > 4.9 AND 2006 > 10.2
Write a SQL query that answers the following question: What is the 2009 when there's 11.8 in 2005 and less than 12.6 in 2006?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (Id VARCHAR)
SELECT MIN(2009) FROM table_name_45 WHERE 2005 = 11.8 AND 2006 < 12.6
Write a SQL query that answers the following question: What's the 2005 of TV3 when there is less than 42 in 2007 and less than 29.5 in 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (tv_station__operator_ VARCHAR)
SELECT MAX(2005) FROM table_name_36 WHERE 2007 < 42 AND tv_station__operator_ = "tv3" AND 2010 < 29.5
Write a SQL query that answers the following question: What date had Alexander Krasnorutskiy as a partner with a score of 6–3, 4–6, 6–2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (date VARCHAR, partner VARCHAR, score VARCHAR)
SELECT date FROM table_name_2 WHERE partner = "alexander krasnorutskiy" AND score = "6–3, 4–6, 6–2"
Write a SQL query that answers the following question: Which IHSAA Class has a Mascot of eagles, and a City of evansville?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (ihsaa_class VARCHAR, mascot VARCHAR, city VARCHAR)
SELECT ihsaa_class FROM table_name_93 WHERE mascot = "eagles" AND city = "evansville"
Write a SQL query that answers the following question: Which City has a School of indianapolis brebeuf?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (city VARCHAR, school VARCHAR)
SELECT city FROM table_name_54 WHERE school = "indianapolis brebeuf"
Write a SQL query that answers the following question: How much Enrollment has a School of indianapolis tindley?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (enrollment VARCHAR, school VARCHAR)
SELECT COUNT(enrollment) FROM table_name_32 WHERE school = "indianapolis tindley"
Write a SQL query that answers the following question: Which County has an IHSAA Class of aaaa, and a Mascot of cardinals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (county VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR)
SELECT county FROM table_name_70 WHERE ihsaa_class = "aaaa" AND mascot = "cardinals"
Write a SQL query that answers the following question: How many Total Goals values have 0 League Cup Goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (total_goals VARCHAR, league_cup_goals INTEGER)
SELECT COUNT(total_goals) FROM table_name_27 WHERE league_cup_goals < 0
Write a SQL query that answers the following question: What is the smallest number of FA Cup Goals for players with 4 FA Cup Appearances, 49 Total Appearances, and more than 17 total goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (fa_cup_goals INTEGER, total_goals VARCHAR, fa_cup_apps VARCHAR, total_apps VARCHAR)
SELECT MIN(fa_cup_goals) FROM table_name_55 WHERE fa_cup_apps = "4" AND total_apps = "49" AND total_goals > 17
Write a SQL query that answers the following question: What is the average number of League Goals for palyers with 0 FA Cup Goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (league_goals INTEGER, fa_cup_goals INTEGER)
SELECT AVG(league_goals) FROM table_name_26 WHERE fa_cup_goals < 0
Write a SQL query that answers the following question: what is the highest silver when the total is 4 and bronze is less than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (silver INTEGER, total VARCHAR, bronze VARCHAR)
SELECT MAX(silver) FROM table_name_54 WHERE total = "4" AND bronze < 1
Write a SQL query that answers the following question: what is the gold when the bronze is 1, total is 6 and silver is less than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT SUM(gold) FROM table_name_2 WHERE bronze = 1 AND total = "6" AND silver < 3
Write a SQL query that answers the following question: What is province of community with height larger than 1.8 and is in el cibao region?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (province VARCHAR, _community VARCHAR, geographical_regions VARCHAR, height VARCHAR)
SELECT province, _community FROM table_name_82 WHERE geographical_regions = "el cibao" AND height > 1.8
Write a SQL query that answers the following question: What contestant is from santo domingo este and has height smaller than 1.79?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (contestant VARCHAR, height VARCHAR, hometown VARCHAR)
SELECT contestant FROM table_name_7 WHERE height < 1.79 AND hometown = "santo domingo este"
Write a SQL query that answers the following question: what is the previous conference when the year joined is 1932 and the mascot is tigers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (previous_conference VARCHAR, year_joined VARCHAR, mascot VARCHAR)
SELECT previous_conference FROM table_name_46 WHERE year_joined = "1932" AND mascot = "tigers"
Write a SQL query that answers the following question: what is the school when the location is rochester?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (school VARCHAR, location VARCHAR)
SELECT school FROM table_name_60 WHERE location = "rochester"
Write a SQL query that answers the following question: what is the location when the school is muncie burris?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (location VARCHAR, school VARCHAR)
SELECT location FROM table_name_71 WHERE school = "muncie burris"
Write a SQL query that answers the following question: what is the mascot when the school is warsaw?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (mascot VARCHAR, school VARCHAR)
SELECT mascot FROM table_name_25 WHERE school = "warsaw"
Write a SQL query that answers the following question: what is the mascot when the county is 43 kosciusko?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (mascot VARCHAR, county VARCHAR)
SELECT mascot FROM table_name_82 WHERE county = "43 kosciusko"
Write a SQL query that answers the following question: what is the county when the year left is 1998?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (county VARCHAR, year_left VARCHAR)
SELECT county FROM table_name_36 WHERE year_left = "1998"
Write a SQL query that answers the following question: which Film has a Category of best actress – musical or comedy, and a Lost to of nicole kidman ( moulin rouge! )?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (film VARCHAR, category VARCHAR, lost_to VARCHAR)
SELECT film FROM table_name_23 WHERE category = "best actress – musical or comedy" AND lost_to = "nicole kidman ( moulin rouge! )"
Write a SQL query that answers the following question: which Category has a Result of nominated, and a Lost to of jennifer westfeldt ( kissing jessica stein )?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (category VARCHAR, result VARCHAR, lost_to VARCHAR)
SELECT category FROM table_name_40 WHERE result = "nominated" AND lost_to = "jennifer westfeldt ( kissing jessica stein )"
Write a SQL query that answers the following question: Which the Lost to is in 2000
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (lost_to VARCHAR, year VARCHAR)
SELECT lost_to FROM table_name_35 WHERE year = 2000