question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the average unit price of rock tracks?
CREATE TABLE GENRE (GenreId VARCHAR, Name VARCHAR); CREATE TABLE TRACK (UnitPrice INTEGER, GenreId VARCHAR)
SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Rock"
What percentage did Obama get when McCain got 52.8%?
CREATE TABLE table_20799905_1 (obama_percentage VARCHAR, mccain_percentage VARCHAR)
SELECT obama_percentage FROM table_20799905_1 WHERE mccain_percentage = "52.8%"
How heavy were the players who attended Arkansas?
CREATE TABLE table_15582870_1 (weight VARCHAR, college VARCHAR)
SELECT weight FROM table_15582870_1 WHERE college = "Arkansas"
Which Caps is the lowest one that has a Club/province of ospreys, and a Date of Birth (Age) of 19 september 1985?
CREATE TABLE table_name_70 (caps INTEGER, club_province VARCHAR, date_of_birth__age_ VARCHAR)
SELECT MIN(caps) FROM table_name_70 WHERE club_province = "ospreys" AND date_of_birth__age_ = "19 september 1985"
What is State, when AAM Accredited is No, when ASTC Member is No, and when City is Tulsa?
CREATE TABLE table_name_49 (state VARCHAR, city VARCHAR, aam_accredited VARCHAR, astc_member VARCHAR)
SELECT state FROM table_name_49 WHERE aam_accredited = "no" AND astc_member = "no" AND city = "tulsa"
WHAT IS THE BOOKMARKING, TAGGING, RATING AND COMMENTS WITH NO LIST MANAGEMENT, NO CHARTING, NO WEB PUBLISHING, OF MICROSOFT EXCHANGE SERVER?
CREATE TABLE table_name_1 (bookmarking VARCHAR, _tagging VARCHAR, _rating_and_comments VARCHAR, name VARCHAR, web_publishing VARCHAR, list_management VARCHAR, charting VARCHAR)
SELECT bookmarking, _tagging, _rating_and_comments FROM table_name_1 WHERE list_management = "no" AND charting = "no" AND web_publishing = "no" AND name = "microsoft exchange server"
What is the venue of the match with more than 8 against and ireland as the opposing team?
CREATE TABLE table_name_33 (venue VARCHAR, against VARCHAR, opposing_teams VARCHAR)
SELECT venue FROM table_name_33 WHERE against > 8 AND opposing_teams = "ireland"
What is the genre for the group with ages 29-30?
CREATE TABLE table_27529608_21 (genre VARCHAR, age_s_ VARCHAR)
SELECT genre FROM table_27529608_21 WHERE age_s_ = "29-30"
Find the name of the department that has the fewest members.
CREATE TABLE MEMBER_OF (DNO VARCHAR); CREATE TABLE DEPARTMENT (DName VARCHAR, DNO VARCHAR)
SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY COUNT(*) LIMIT 1
Name the location for chattahoochee technical college
CREATE TABLE table_16734640_1 (location VARCHAR, institution VARCHAR)
SELECT location FROM table_16734640_1 WHERE institution = "Chattahoochee Technical College"
Which game had a record of 45-16?
CREATE TABLE table_name_12 (game INTEGER, record VARCHAR)
SELECT AVG(game) FROM table_name_12 WHERE record = "45-16"
what's the salmonella with shigella being ipgc
CREATE TABLE table_10321124_1 (salmonella VARCHAR, shigella VARCHAR)
SELECT salmonella FROM table_10321124_1 WHERE shigella = "IpgC"
What is the lowest game number when the record was 26-24-9?
CREATE TABLE table_name_58 (game INTEGER, record VARCHAR)
SELECT MIN(game) FROM table_name_58 WHERE record = "26-24-9"
Who is the crew chief of team Chip Ganassi Racing with Felix Sabates, which has Casey Mears as the driver?
CREATE TABLE table_name_10 (crew_chief VARCHAR, team VARCHAR, driver_s_ VARCHAR)
SELECT crew_chief FROM table_name_10 WHERE team = "chip ganassi racing with felix sabates" AND driver_s_ = "casey mears"
Show the transaction types and the total amount of transactions.
CREATE TABLE Financial_transactions (transaction_type VARCHAR, transaction_amount INTEGER)
SELECT transaction_type, SUM(transaction_amount) FROM Financial_transactions GROUP BY transaction_type
Show the zip code of the county with name "Howard".
CREATE TABLE county (Zip_code VARCHAR, County_name VARCHAR)
SELECT Zip_code FROM county WHERE County_name = "Howard"
How many drawn does the team Corinthians have?
CREATE TABLE table_15352382_1 (drawn VARCHAR, team VARCHAR)
SELECT drawn FROM table_15352382_1 WHERE team = "Corinthians"
What is every value for Croatian when value for English is dog?
CREATE TABLE table_25008327_8 (croatian VARCHAR, english VARCHAR)
SELECT croatian FROM table_25008327_8 WHERE english = "dog"
Find the name of services that have been used for more than 2 times in first notification of loss.
CREATE TABLE services (service_name VARCHAR, service_id VARCHAR); CREATE TABLE first_notification_of_loss (service_id VARCHAR)
SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_id HAVING COUNT(*) > 2
Which year has a 2011 of 1r?
CREATE TABLE table_name_47 (Id VARCHAR)
SELECT 2008 FROM table_name_47 WHERE 2011 = "1r"
What is the round of 32 for fatih keleş?
CREATE TABLE table_27294107_11 (round_of_32 VARCHAR, athlete VARCHAR)
SELECT round_of_32 FROM table_27294107_11 WHERE athlete = "Fatih Keleş"
Which Snatch has a Clean & Jerk of 180, and a Bodyweight smaller than 69.83?
CREATE TABLE table_name_25 (snatch INTEGER, bodyweight VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
SELECT MIN(snatch) FROM table_name_25 WHERE clean_ & _jerk = 180 AND bodyweight < 69.83
what is the rank when silver is less than 0?
CREATE TABLE table_name_6 (rank INTEGER, silver INTEGER)
SELECT SUM(rank) FROM table_name_6 WHERE silver < 0
What was the Attendance on Week 8?
CREATE TABLE table_name_95 (attendance INTEGER, week VARCHAR)
SELECT AVG(attendance) FROM table_name_95 WHERE week = 8
What is the name of the product with the color description 'yellow'?
CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_name VARCHAR, color_code VARCHAR)
SELECT T1.product_name FROM products AS T1 JOIN ref_colors AS T2 ON T1.color_code = T2.color_code WHERE T2.color_description = 'yellow'
Which Series has an Opponent of calgary flames, and a Score of 9–4?
CREATE TABLE table_name_3 (series VARCHAR, opponent VARCHAR, score VARCHAR)
SELECT series FROM table_name_3 WHERE opponent = "calgary flames" AND score = "9–4"
Which position is team mons who was replaced by Christophe Dessy (caretaker)?
CREATE TABLE table_name_91 (position_in_table VARCHAR, team VARCHAR, replaced_by VARCHAR)
SELECT position_in_table FROM table_name_91 WHERE team = "mons" AND replaced_by = "christophe dessy (caretaker)"
Name the 2011 with 2010 of 1r and 2012 of sf
CREATE TABLE table_name_35 (Id VARCHAR)
SELECT 2011 FROM table_name_35 WHERE 2010 = "1r" AND 2012 = "sf"
How many time was the political party the social democratic party of germany?
CREATE TABLE table_21132404_1 (_percentage_2006 VARCHAR, political_parties VARCHAR)
SELECT COUNT(_percentage_2006) FROM table_21132404_1 WHERE political_parties = "Social Democratic Party of Germany"
What is the Date with a Time of 17:37, and the Set 4 is 25–15?
CREATE TABLE table_name_38 (date VARCHAR, time VARCHAR, set_4 VARCHAR)
SELECT date FROM table_name_38 WHERE time = "17:37" AND set_4 = "25–15"
Which Surface has an Opponent in the final of daniella dominikovic?
CREATE TABLE table_name_5 (surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT surface FROM table_name_5 WHERE opponent_in_the_final = "daniella dominikovic"
What is the total amount of Gold from guatemala and silver smaller than 0?
CREATE TABLE table_name_88 (gold INTEGER, nation VARCHAR, silver VARCHAR)
SELECT SUM(gold) FROM table_name_88 WHERE nation = "guatemala" AND silver < 0
What are the code and description of the least frequent detention type ?
CREATE TABLE Ref_Detention_Type (detention_type_description VARCHAR, detention_type_code VARCHAR); CREATE TABLE Detention (detention_type_code VARCHAR)
SELECT T1.detention_type_code, T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY COUNT(*) LIMIT 1
Which venue had an against score smaller than 18 when the opposing team was North Auckland?
CREATE TABLE table_name_84 (venue VARCHAR, against VARCHAR, opposing_team VARCHAR)
SELECT venue FROM table_name_84 WHERE against < 18 AND opposing_team = "north auckland"
What was the position that Chris Robinson played?
CREATE TABLE table_name_79 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_79 WHERE player = "chris robinson"
Tell me the record for round more than 1
CREATE TABLE table_name_63 (record VARCHAR, round INTEGER)
SELECT record FROM table_name_63 WHERE round > 1
who is the the mens doubles with mixed doubles being jimm aalto nina sarnesto
CREATE TABLE table_13857700_1 (mens_doubles VARCHAR, mixed_doubles VARCHAR)
SELECT mens_doubles FROM table_13857700_1 WHERE mixed_doubles = "Jimm Aalto Nina Sarnesto"
I want to know the 2001 that has a 2004 of a and 2003 of a with 2012 of 3r
CREATE TABLE table_name_53 (Id VARCHAR)
SELECT 2001 FROM table_name_53 WHERE 2004 = "a" AND 2003 = "a" AND 2012 = "3r"
Who directed an episode with 1.19 million?
CREATE TABLE table_29273390_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT directed_by FROM table_29273390_1 WHERE us_viewers__million_ = "1.19"
How many second place showings does snooker have?
CREATE TABLE table_20823568_2 (second_place_s_ VARCHAR, sporting_profession VARCHAR)
SELECT second_place_s_ FROM table_20823568_2 WHERE sporting_profession = "Snooker"
What is the number of the bowl game when attendance was 79,280?
CREATE TABLE table_15190346_2 (_number INTEGER, attendance VARCHAR)
SELECT MAX(_number) FROM table_15190346_2 WHERE attendance = "79,280"
what's the report with rnd being 4
CREATE TABLE table_1140074_2 (report VARCHAR, rnd VARCHAR)
SELECT report FROM table_1140074_2 WHERE rnd = 4
What is Pos., when Player is "Nigel De Jong"?
CREATE TABLE table_name_33 (pos VARCHAR, player VARCHAR)
SELECT pos FROM table_name_33 WHERE player = "nigel de jong"
List every album whose title starts with A in alphabetical order.
CREATE TABLE albums (title VARCHAR)
SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title
what is the number of hydroxymatairesinol where sesamin is 62724?
CREATE TABLE table_1831262_2 (hydroxymatairesinol VARCHAR, sesamin VARCHAR)
SELECT hydroxymatairesinol FROM table_1831262_2 WHERE sesamin = "62724"
What's the Total number of Opening Weekend Net Gross that occured after the year 2012 with a Rank of 1?
CREATE TABLE table_name_82 (opening_weekend_net_gross VARCHAR, year VARCHAR, rank VARCHAR)
SELECT COUNT(opening_weekend_net_gross) FROM table_name_82 WHERE year > 2012 AND rank = 1
How many outcomes occur for score in the final of 6–3, 6–4, 7–6 (13–11)?
CREATE TABLE table_26202940_6 (outcome VARCHAR, score_in_the_final VARCHAR)
SELECT COUNT(outcome) FROM table_26202940_6 WHERE score_in_the_final = "6–3, 6–4, 7–6 (13–11)"
What is the note section for the role with a language of hindi and a title of miley naa miley hum?
CREATE TABLE table_name_30 (notes VARCHAR, language VARCHAR, title VARCHAR)
SELECT notes FROM table_name_30 WHERE language = "hindi" AND title = "miley naa miley hum"
A list of the top 5 countries by number of invoices. List country name and number of invoices.
CREATE TABLE invoices (billing_country VARCHAR)
SELECT billing_country, COUNT(*) FROM invoices GROUP BY billing_country ORDER BY COUNT(*) DESC LIMIT 5
Which Date has a Record of 1-4?
CREATE TABLE table_name_34 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_34 WHERE record = "1-4"
Which Byes have an Against smaller than 1466, and Losses smaller than 6?
CREATE TABLE table_name_91 (byes VARCHAR, against VARCHAR, losses VARCHAR)
SELECT byes FROM table_name_91 WHERE against < 1466 AND losses < 6
What was Olga Govortsova's goal when she played on a clay surface on 26 May 2012?
CREATE TABLE table_name_84 (score VARCHAR, surface VARCHAR, date VARCHAR)
SELECT score FROM table_name_84 WHERE surface = "clay" AND date = "26 may 2012"
How many available hotels are there in total?
CREATE TABLE HOTELS (Id VARCHAR)
SELECT COUNT(*) FROM HOTELS
Marion Buisson with a 4.00 of o had what result?
CREATE TABLE table_name_89 (result VARCHAR, name VARCHAR)
SELECT result FROM table_name_89 WHERE 400 = "o" AND name = "marion buisson"
Name the most of 2500-3000ft
CREATE TABLE table_1456056_1 (Id VARCHAR)
SELECT MAX(2500 AS _3000ft) FROM table_1456056_1
What are the titles of all movies that have rating star is between 3 and 5?
CREATE TABLE Rating (mID VARCHAR, stars INTEGER); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)
SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars BETWEEN 3 AND 5
How many wins for the team with more than 1282 against and fewer than 14 losses?
CREATE TABLE table_name_59 (wins INTEGER, against VARCHAR, losses VARCHAR)
SELECT MIN(wins) FROM table_name_59 WHERE against > 1282 AND losses < 14
Who was the writer in the episode directed by Jesse Peretz?
CREATE TABLE table_26961951_6 (written_by VARCHAR, directed_by VARCHAR)
SELECT written_by FROM table_26961951_6 WHERE directed_by = "Jesse Peretz"
which grid did less than 20 laps in a time of +58.353?
CREATE TABLE table_name_82 (grid INTEGER, time VARCHAR, laps VARCHAR)
SELECT MIN(grid) FROM table_name_82 WHERE time = "+58.353" AND laps < 20
What is the bleeding time for the disseminated intravascular coagulation condition?
CREATE TABLE table_221653_1 (bleeding_time VARCHAR, condition VARCHAR)
SELECT COUNT(bleeding_time) FROM table_221653_1 WHERE condition = "Disseminated intravascular coagulation"
List all public schools and their locations.
CREATE TABLE university (school VARCHAR, LOCATION VARCHAR, affiliation VARCHAR)
SELECT school, LOCATION FROM university WHERE affiliation = 'Public'
what's the result with district being kansas 1
CREATE TABLE table_1342359_15 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1342359_15 WHERE district = "Kansas 1"
The match that was held at Club Med Sandpiper has what method?
CREATE TABLE table_name_54 (method VARCHAR, venue VARCHAR)
SELECT method FROM table_name_54 WHERE venue = "club med sandpiper"
What country does charles coody play for?
CREATE TABLE table_name_21 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_21 WHERE player = "charles coody"
Which player scored 14 touchdowns?
CREATE TABLE table_14342480_15 (player VARCHAR, touchdowns VARCHAR)
SELECT player FROM table_14342480_15 WHERE touchdowns = 14
What nation has the lowest gold average that has a rank over 9?
CREATE TABLE table_name_56 (gold INTEGER, rank INTEGER)
SELECT MIN(gold) FROM table_name_56 WHERE rank > 9
What is the Spanish word for the French word filtrer?
CREATE TABLE table_15040_8 (spanish VARCHAR, french VARCHAR)
SELECT spanish FROM table_15040_8 WHERE french = "filtrer"
On what surface was the game played that had a score of 4–6, 6–4, [8–10]?
CREATE TABLE table_name_51 (surface VARCHAR, score VARCHAR)
SELECT surface FROM table_name_51 WHERE score = "4–6, 6–4, [8–10]"
What is the total for Robert Stanescu ( rou ), when the B Score is larger than 8.75?
CREATE TABLE table_name_40 (total INTEGER, gymnast VARCHAR, b_score VARCHAR)
SELECT SUM(total) FROM table_name_40 WHERE gymnast = "robert stanescu ( rou )" AND b_score > 8.75
What Country's team is Rajasthan Royals at the 2008 Indian Premier League?
CREATE TABLE table_name_87 (country VARCHAR, domestic_tournament VARCHAR, team VARCHAR)
SELECT country FROM table_name_87 WHERE domestic_tournament = "2008 indian premier league" AND team = "rajasthan royals"
Find the first name and age of students who have a pet.
CREATE TABLE student (fname VARCHAR, age VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR)
SELECT DISTINCT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid
Which to par has a prize less than $800?
CREATE TABLE table_name_10 (to_par VARCHAR, money___$__ VARCHAR)
SELECT to_par FROM table_name_10 WHERE money___$__ = 800
How many were played when there were 39 tries for?
CREATE TABLE table_17369472_2 (played VARCHAR, tries_for VARCHAR)
SELECT played FROM table_17369472_2 WHERE tries_for = "39"
Who is the male talent in 1991?
CREATE TABLE table_name_39 (talent__male_ VARCHAR, year VARCHAR)
SELECT talent__male_ FROM table_name_39 WHERE year = 1991
What title runs for 3:22?
CREATE TABLE table_name_5 (title VARCHAR, time VARCHAR)
SELECT title FROM table_name_5 WHERE time = "3:22"
Name the commander of 167 off 2348 men
CREATE TABLE table_11793221_4 (commander VARCHAR, complement VARCHAR)
SELECT commander FROM table_11793221_4 WHERE complement = "167 off 2348 men"
How many customers in state of CA?
CREATE TABLE customers (state VARCHAR)
SELECT COUNT(*) FROM customers WHERE state = "CA"
What is the to par for the player with score of 67-67=134?
CREATE TABLE table_name_53 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_53 WHERE score = 67 - 67 = 134
Which number of New Councils had a previous council number of 19 and the seats up for election were bigger than 6?
CREATE TABLE table_name_14 (new_council VARCHAR, previous_council VARCHAR, seats_up_for_election VARCHAR)
SELECT COUNT(new_council) FROM table_name_14 WHERE previous_council = 19 AND seats_up_for_election < 6
What is Place, when Year is greater than 2006, and when Champion is "Asvel"?
CREATE TABLE table_name_37 (place VARCHAR, year VARCHAR, champion VARCHAR)
SELECT place FROM table_name_37 WHERE year > 2006 AND champion = "asvel"
Can you give me the age of the Significant Relationship of Family?
CREATE TABLE table_name_41 (approximate_age VARCHAR, significant_relationship VARCHAR)
SELECT approximate_age FROM table_name_41 WHERE significant_relationship = "family"
What is the most current year where the women's doubles champions are astrid eidenbenz claudia jehle
CREATE TABLE table_15001681_1 (year INTEGER, womens_doubles VARCHAR)
SELECT MAX(year) FROM table_15001681_1 WHERE womens_doubles = "Astrid Eidenbenz Claudia Jehle"
What is the total population of the district of Klang, with an area larger than 636?
CREATE TABLE table_name_23 (district VARCHAR, area__km_2__ VARCHAR)
SELECT COUNT(2010 AS _population) FROM table_name_23 WHERE district = "klang" AND area__km_2__ > 636
who had high points on march 27?
CREATE TABLE table_27722734_10 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_27722734_10 WHERE date = "March 27"
Which Opponent has a Date of march 16?
CREATE TABLE table_name_42 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_42 WHERE date = "march 16"
Name the D 44 when it has a D 46 of d 31
CREATE TABLE table_name_63 (d_44 VARCHAR, d_46 VARCHAR)
SELECT d_44 FROM table_name_63 WHERE d_46 = "d 31"
Name the least bronze for silver being less than 0
CREATE TABLE table_name_45 (bronze INTEGER, silver INTEGER)
SELECT MIN(bronze) FROM table_name_45 WHERE silver < 0
Which date was the team playing @ Memphis?
CREATE TABLE table_11960944_4 (date VARCHAR, team VARCHAR)
SELECT date FROM table_11960944_4 WHERE team = "@ Memphis"
what is the sum of tonnage when the type of ship is twin screw ro-ro motorship and the date entered service is 11 february 1983?
CREATE TABLE table_name_73 (tonnage INTEGER, type_of_ship VARCHAR, date_entered_service VARCHAR)
SELECT SUM(tonnage) FROM table_name_73 WHERE type_of_ship = "twin screw ro-ro motorship" AND date_entered_service = "11 february 1983"
What are the highest number of games drawn for games numbered under 6?
CREATE TABLE table_name_80 (drawn INTEGER, games INTEGER)
SELECT MAX(drawn) FROM table_name_80 WHERE games < 6
How many draws when there are fewer than 6 wins and the goal difference is less than -15?
CREATE TABLE table_name_28 (draws VARCHAR, wins VARCHAR, goal_difference VARCHAR)
SELECT COUNT(draws) FROM table_name_28 WHERE wins < 6 AND goal_difference < -15
What is the total number of people in 2011 speaking the mother tongue language spoken by 120 in 2006?
CREATE TABLE table_name_49 (population__2011_ VARCHAR, population__2006_ VARCHAR)
SELECT COUNT(population__2011_) FROM table_name_49 WHERE population__2006_ = 120
Name the spouse for louise of hesse-kassel
CREATE TABLE table_name_83 (spouse VARCHAR, name VARCHAR)
SELECT spouse FROM table_name_83 WHERE name = "louise of hesse-kassel"
What is the Club, when the value for Played is 22, and when the value for Tries is 41?
CREATE TABLE table_name_44 (club VARCHAR, played VARCHAR, tries_for VARCHAR)
SELECT club FROM table_name_44 WHERE played = "22" AND tries_for = "41"
Who was the winner of Stage 9 when then general classification was Danilo Di Luca?
CREATE TABLE table_name_60 (winner VARCHAR, general_classification VARCHAR, stage VARCHAR)
SELECT winner FROM table_name_60 WHERE general_classification = "danilo di luca" AND stage = "9"
Show the city and the number of branches opened before 2010 for each city.
CREATE TABLE branch (city VARCHAR, open_year INTEGER)
SELECT city, COUNT(*) FROM branch WHERE open_year < 2010 GROUP BY city
What happened on 2009-03-14?
CREATE TABLE table_name_25 (circumstances VARCHAR, date VARCHAR)
SELECT circumstances FROM table_name_25 WHERE date = "2009-03-14"
What is the lowest heat that had a time of 1:02.85 in a lane larger than 7?
CREATE TABLE table_name_40 (heat INTEGER, time VARCHAR, lane VARCHAR)
SELECT MIN(heat) FROM table_name_40 WHERE time = "1:02.85" AND lane > 7
Which Wins have a Goal Difference larger than 0, and Goals against larger than 40, and a Position smaller than 6, and a Club of sd indauchu?
CREATE TABLE table_name_33 (wins INTEGER, club VARCHAR, position VARCHAR, goal_difference VARCHAR, goals_against VARCHAR)
SELECT MIN(wins) FROM table_name_33 WHERE goal_difference > 0 AND goals_against > 40 AND position < 6 AND club = "sd indauchu"
What's the earliest year the philippines won?
CREATE TABLE table_name_6 (year INTEGER, country_territory VARCHAR)
SELECT MIN(year) FROM table_name_6 WHERE country_territory = "philippines"