instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What was the result of the game before week 3 with an attendance of 53,658?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (result VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_32 WHERE week < 3 AND attendance = "53,658"
Write a SQL query that answers the following question: What was the earliest week on September 26, 1965?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (week INTEGER, date VARCHAR)
SELECT MIN(week) FROM table_name_3 WHERE date = "september 26, 1965"
Write a SQL query that answers the following question: What is the total time for one south broad?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (year INTEGER, name VARCHAR)
SELECT SUM(year) FROM table_name_79 WHERE name = "one south broad"
Write a SQL query that answers the following question: What is the 123 south broad street address name before 1973?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (name VARCHAR, year VARCHAR, address VARCHAR)
SELECT name FROM table_name_33 WHERE year < 1973 AND address = "123 south broad street"
Write a SQL query that answers the following question: Which competition has goals less than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (competition VARCHAR, goal INTEGER)
SELECT competition FROM table_name_98 WHERE goal < 2
Write a SQL query that answers the following question: What's the result of a goal larger than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (result VARCHAR, goal INTEGER)
SELECT result FROM table_name_59 WHERE goal > 4
Write a SQL query that answers the following question: tell me the type that has the marostica to bibione course.
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (type VARCHAR, course VARCHAR)
SELECT type FROM table_name_44 WHERE course = "marostica to bibione"
Write a SQL query that answers the following question: who won on 29 may?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (winner VARCHAR, date VARCHAR)
SELECT winner FROM table_name_32 WHERE date = "29 may"
Write a SQL query that answers the following question: What is the term for hometown Ester Creek?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (term VARCHAR, hometown VARCHAR)
SELECT term FROM table_name_55 WHERE hometown = "ester creek"
Write a SQL query that answers the following question: What is the number of Gold medals for the Nation with a Total of 5 and Rank larger than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (gold INTEGER, total VARCHAR, rank VARCHAR)
SELECT MIN(gold) FROM table_name_81 WHERE total = 5 AND rank > 1
Write a SQL query that answers the following question: What is the total number of Silver for the Nation with more than 1 Bronze and a Rank less than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (silver VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT COUNT(silver) FROM table_name_26 WHERE bronze > 1 AND rank < 5
Write a SQL query that answers the following question: In what round was the loss at ufc 118?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (round VARCHAR, res VARCHAR, event VARCHAR)
SELECT round FROM table_name_92 WHERE res = "loss" AND event = "ufc 118"
Write a SQL query that answers the following question: What is the smallest decile with an Area of otumoetai?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (decile INTEGER, area VARCHAR)
SELECT MIN(decile) FROM table_name_60 WHERE area = "otumoetai"
Write a SQL query that answers the following question: Which decile has an Area of welcome bay, and an Authority of state?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (decile VARCHAR, area VARCHAR, authority VARCHAR)
SELECT decile FROM table_name_62 WHERE area = "welcome bay" AND authority = "state"
Write a SQL query that answers the following question: How many deciles have a Gender of coed, an Authority of state, and a Name of mount maunganui school?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (decile INTEGER, name VARCHAR, gender VARCHAR, authority VARCHAR)
SELECT SUM(decile) FROM table_name_93 WHERE gender = "coed" AND authority = "state" AND name = "mount maunganui school"
Write a SQL query that answers the following question: Which name has a Decile of 5, and an Area of tauranga?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (name VARCHAR, decile VARCHAR, area VARCHAR)
SELECT name FROM table_name_96 WHERE decile = 5 AND area = "tauranga"
Write a SQL query that answers the following question: Which Authority has a Gender of coed, a Decile smaller than 6, and an Area of merivale?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (authority VARCHAR, area VARCHAR, gender VARCHAR, decile VARCHAR)
SELECT authority FROM table_name_21 WHERE gender = "coed" AND decile < 6 AND area = "merivale"
Write a SQL query that answers the following question: What is the smallest decile with a Name of st mary's catholic school?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (decile INTEGER, name VARCHAR)
SELECT MIN(decile) FROM table_name_70 WHERE name = "st mary's catholic school"
Write a SQL query that answers the following question: What is the average birth rate that has a total fertility rate of na, and a natural growth smaller than 2.5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (births__000s_ INTEGER, total_fertility_rate VARCHAR, natural_growth VARCHAR)
SELECT AVG(births__000s_) FROM table_name_14 WHERE total_fertility_rate = "na" AND natural_growth < 2.5
Write a SQL query that answers the following question: What was the amount of deaths that had a natural growth smaller than 3.4, and a total fertility rate of 1.63?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (deaths VARCHAR, natural_growth VARCHAR, total_fertility_rate VARCHAR)
SELECT deaths FROM table_name_41 WHERE natural_growth < 3.4 AND total_fertility_rate = "1.63"
Write a SQL query that answers the following question: What is the average births that had a death rate of 0.4
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (births__000s_ INTEGER, deaths VARCHAR)
SELECT AVG(births__000s_) FROM table_name_38 WHERE deaths = 0.4
Write a SQL query that answers the following question: What was the amount of Births (000s) that had a death rate larger than 7.6, and a Year of 1990-2009?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (births__000s_ INTEGER, deaths VARCHAR, year VARCHAR)
SELECT SUM(births__000s_) FROM table_name_59 WHERE deaths > 7.6 AND year = "1990-2009"
Write a SQL query that answers the following question: What was the total fertility rate that had a death rate larger than 7.8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (total_fertility_rate VARCHAR, deaths INTEGER)
SELECT total_fertility_rate FROM table_name_60 WHERE deaths > 7.8
Write a SQL query that answers the following question: How many votes did the security guard get?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (votes VARCHAR, occupation VARCHAR)
SELECT votes FROM table_name_78 WHERE occupation = "security guard"
Write a SQL query that answers the following question: What is the average value for 2005, when the value for 2008 is greater than 0, when the value for 2007 is greater than 310, when the Average annual is 767, and when the Total is greater than 4,597?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (total VARCHAR, average_annual VARCHAR)
SELECT AVG(2005) FROM table_name_38 WHERE 2008 > 0 AND 2007 > 310 AND average_annual = 767 AND total > 4 OFFSET 597
Write a SQL query that answers the following question: What is the average value for 2005, when the value for Average annual is 767?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (average_annual VARCHAR)
SELECT AVG(2005) FROM table_name_32 WHERE average_annual = 767
Write a SQL query that answers the following question: In what Year was 1st Division El Salvador with a Finish of Champion and a Team of Fas?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (year VARCHAR, team VARCHAR, tournament VARCHAR, finish VARCHAR)
SELECT year FROM table_name_83 WHERE tournament = "1st division el salvador" AND finish = "champion" AND team = "fas"
Write a SQL query that answers the following question: In what Year was the Finish Champions?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (year VARCHAR, finish VARCHAR)
SELECT year FROM table_name_99 WHERE finish = "champions"
Write a SQL query that answers the following question: During the Tournament of 1st Division El Salvador, what was the Finish for the Team of Platense Municipal Zacatecoluca?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (finish VARCHAR, team VARCHAR, tournament VARCHAR)
SELECT finish FROM table_name_25 WHERE team = "platense municipal zacatecoluca" AND tournament = "1st division el salvador"
Write a SQL query that answers the following question: What is the Role in the 1st Division Honduras Tournament?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (role VARCHAR, tournament VARCHAR)
SELECT role FROM table_name_82 WHERE tournament = "1st division honduras"
Write a SQL query that answers the following question: What is the Tournament in the Year of 1986?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (tournament VARCHAR, year VARCHAR)
SELECT tournament FROM table_name_21 WHERE year = "1986"
Write a SQL query that answers the following question: During the Tournament of Torneo Fraternidad/UNCAF Club championship, what is the Role of the Platense Municipal Zacatecoluca Team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (role VARCHAR, team VARCHAR, tournament VARCHAR)
SELECT role FROM table_name_65 WHERE team = "platense municipal zacatecoluca" AND tournament = "torneo fraternidad/uncaf club championship"
Write a SQL query that answers the following question: What is the record of teams that play the yankees, and lose at mulholland (5-6)
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (record VARCHAR, opponent VARCHAR, loss VARCHAR)
SELECT record FROM table_name_61 WHERE opponent = "yankees" AND loss = "mulholland (5-6)"
Write a SQL query that answers the following question: Which total is highest with 0 gold and more than 0 silver, in Ukraine?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (total INTEGER, nation VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT MAX(total) FROM table_name_80 WHERE gold = 0 AND silver > 0 AND nation = "ukraine"
Write a SQL query that answers the following question: What is the total rank with more than 2 silver and total larger than 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (rank INTEGER, silver VARCHAR, total VARCHAR)
SELECT SUM(rank) FROM table_name_55 WHERE silver = 2 AND total > 10
Write a SQL query that answers the following question: What is the total rank with a total larger than 2, and less than 0 gold
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (rank INTEGER, total VARCHAR, gold VARCHAR)
SELECT SUM(rank) FROM table_name_86 WHERE total > 2 AND gold < 0
Write a SQL query that answers the following question: Which is the highest bronze with gold less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (bronze INTEGER, gold INTEGER)
SELECT MAX(bronze) FROM table_name_17 WHERE gold < 0
Write a SQL query that answers the following question: What is the total with a rank less than 5, gold larger than 5 and bronze larger than 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (total INTEGER, bronze VARCHAR, rank VARCHAR, gold VARCHAR)
SELECT SUM(total) FROM table_name_89 WHERE rank < 5 AND gold > 5 AND bronze > 8
Write a SQL query that answers the following question: Result of 1st, and an Extra of 4 x 400 m relay is in what lowest year?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (year INTEGER, result VARCHAR, extra VARCHAR)
SELECT MIN(year) FROM table_name_3 WHERE result = "1st" AND extra = "4 x 400 m relay"
Write a SQL query that answers the following question: a Year smaller than 2007, and a Result of 1st is in what venue?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (venue VARCHAR, year VARCHAR, result VARCHAR)
SELECT venue FROM table_name_41 WHERE year < 2007 AND result = "1st"
Write a SQL query that answers the following question: Venue of melbourne , australia, and a Extra of 200 m has what results?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (result VARCHAR, venue VARCHAR, extra VARCHAR)
SELECT result FROM table_name_90 WHERE venue = "melbourne , australia" AND extra = "200 m"
Write a SQL query that answers the following question: Result of 1st, and a Venue of melbourne , australia, and a Extra of 100 m happened in which year?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (year VARCHAR, extra VARCHAR, result VARCHAR, venue VARCHAR)
SELECT year FROM table_name_10 WHERE result = "1st" AND venue = "melbourne , australia" AND extra = "100 m"
Write a SQL query that answers the following question: Name the rectifier for Det/Pre-amp of x and # tubes of 4
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (rectifier VARCHAR, det_pre_amp VARCHAR, _number_tubes VARCHAR)
SELECT rectifier FROM table_name_69 WHERE det_pre_amp = "x" AND _number_tubes = "4"
Write a SQL query that answers the following question: Name the det/pre-amp with # of tubes of 8
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (det_pre_amp VARCHAR, _number_tubes VARCHAR)
SELECT det_pre_amp FROM table_name_74 WHERE _number_tubes = "8"
Write a SQL query that answers the following question: Name the det/pre-amp with # tubes of 4 and rectifier of x
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (det_pre_amp VARCHAR, _number_tubes VARCHAR, rectifier VARCHAR)
SELECT det_pre_amp FROM table_name_56 WHERE _number_tubes = "4" AND rectifier = "x"
Write a SQL query that answers the following question: Name the # tubes with audio amp of x
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (_number_tubes VARCHAR, audio_amp VARCHAR)
SELECT _number_tubes FROM table_name_30 WHERE audio_amp = "x"
Write a SQL query that answers the following question: What type of Competition has a Goal of 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (competition VARCHAR, goal VARCHAR)
SELECT competition FROM table_name_84 WHERE goal = 3
Write a SQL query that answers the following question: Which Competition has the Date July 1, 2000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_17 WHERE date = "july 1, 2000"
Write a SQL query that answers the following question: Which years did James Robert Jones serve?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (years VARCHAR, representative VARCHAR)
SELECT years FROM table_name_46 WHERE representative = "james robert jones"
Write a SQL query that answers the following question: James Hutchins Johnson, from New Hampshire, served during what years?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (years VARCHAR, state VARCHAR, representative VARCHAR)
SELECT years FROM table_name_40 WHERE state = "new hampshire" AND representative = "james hutchins johnson"
Write a SQL query that answers the following question: Who is the team that has played more than 18 games and has 6 losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (team_name VARCHAR, losses VARCHAR, games VARCHAR)
SELECT team_name FROM table_name_97 WHERE losses = 6 AND games > 18
Write a SQL query that answers the following question: Which season did the Burnaby Lakers have less than 16 points and less than 18 losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (season VARCHAR, points VARCHAR, losses VARCHAR)
SELECT season FROM table_name_19 WHERE points < 16 AND losses = 18
Write a SQL query that answers the following question: Which team had more than 15 losses in 1988?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (team_name VARCHAR, losses VARCHAR, season VARCHAR)
SELECT team_name FROM table_name_23 WHERE losses > 15 AND season = "1988"
Write a SQL query that answers the following question: How many losses did the Burnaby Lakers accumulate when they scored 8 points in 1998 playing less than 25 games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (losses INTEGER, games VARCHAR, season VARCHAR, team_name VARCHAR, points VARCHAR)
SELECT SUM(losses) FROM table_name_11 WHERE team_name = "burnaby lakers" AND points = 8 AND season = "1998" AND games < 25
Write a SQL query that answers the following question: What was the school for the player who was a DL?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (school_club_team VARCHAR, position VARCHAR)
SELECT school_club_team FROM table_name_53 WHERE position = "dl"
Write a SQL query that answers the following question: Which pick was used on Ian Hazlett?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (pick INTEGER, player VARCHAR)
SELECT MIN(pick) FROM table_name_8 WHERE player = "ian hazlett"
Write a SQL query that answers the following question: Which Thumb stick has a Basic shape of curved, a Backlit of yes, and a Supplier of genius?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (thumb_stick VARCHAR, supplier VARCHAR, basic_shape VARCHAR, backlit VARCHAR)
SELECT thumb_stick FROM table_name_37 WHERE basic_shape = "curved" AND backlit = "yes" AND supplier = "genius"
Write a SQL query that answers the following question: Which Thumb stick has a Wrist pad of no, and a Supplier of sharkoon?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (thumb_stick VARCHAR, wrist_pad VARCHAR, supplier VARCHAR)
SELECT thumb_stick FROM table_name_76 WHERE wrist_pad = "no" AND supplier = "sharkoon"
Write a SQL query that answers the following question: Which keys (x modes) have a Supplier of wolfking?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (keys__x_modes_ VARCHAR, supplier VARCHAR)
SELECT keys__x_modes_ FROM table_name_55 WHERE supplier = "wolfking"
Write a SQL query that answers the following question: Which Supplier have a Basic shape of flat, a Wrist pad of no, and Keys (x modes) of 25+?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (supplier VARCHAR, keys__x_modes_ VARCHAR, basic_shape VARCHAR, wrist_pad VARCHAR)
SELECT supplier FROM table_name_16 WHERE basic_shape = "flat" AND wrist_pad = "no" AND keys__x_modes_ = "25+"
Write a SQL query that answers the following question: Who was the opponent with the time 3:59?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (opponent VARCHAR, time VARCHAR)
SELECT opponent FROM table_name_52 WHERE time = "3:59"
Write a SQL query that answers the following question: Name the Israel Bowl for march 30, 2012
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (israel_bowl VARCHAR, date VARCHAR)
SELECT israel_bowl FROM table_name_65 WHERE date = "march 30, 2012"
Write a SQL query that answers the following question: Name the venue for march 28, 2008
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_47 WHERE date = "march 28, 2008"
Write a SQL query that answers the following question: Name the champion for israel bowl of iv
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (champion VARCHAR, israel_bowl VARCHAR)
SELECT champion FROM table_name_33 WHERE israel_bowl = "iv"
Write a SQL query that answers the following question: Name the season for runner up of judean rebels
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (season VARCHAR, runner_up VARCHAR)
SELECT season FROM table_name_56 WHERE runner_up = "judean rebels"
Write a SQL query that answers the following question: On what date did the event begin that had a steam traction type and used the system named HSM (1883–1910) GT (1915–1922)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (date__from_ VARCHAR, name_of_system VARCHAR, traction_type VARCHAR)
SELECT date__from_ FROM table_name_46 WHERE name_of_system = "hsm (1883–1910) gt (1915–1922)" AND traction_type = "steam"
Write a SQL query that answers the following question: On what date did the event at Zaltbommel begin?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (date__from_ VARCHAR, location VARCHAR)
SELECT date__from_ FROM table_name_66 WHERE location = "zaltbommel"
Write a SQL query that answers the following question: At what location did the event that used electric traction and system name ATM (1880–1911) GETA (1911–1944) occur?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (location VARCHAR, name_of_system VARCHAR, traction_type VARCHAR)
SELECT location FROM table_name_5 WHERE name_of_system = "atm (1880–1911) geta (1911–1944)" AND traction_type = "electric"
Write a SQL query that answers the following question: What is the to par of the player from England with a t1 place?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (to_par VARCHAR, country VARCHAR, place VARCHAR)
SELECT to_par FROM table_name_93 WHERE country = "england" AND place = "t1"
Write a SQL query that answers the following question: What is the country sergio garcía, who has a score of 69-70-67=206, is from?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (country VARCHAR, player VARCHAR, score VARCHAR)
SELECT country FROM table_name_43 WHERE score = 69 - 70 - 67 = 206 AND player = "sergio garcía"
Write a SQL query that answers the following question: What is the to par of the player from the United States with a t5 place?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (to_par VARCHAR, country VARCHAR, place VARCHAR)
SELECT to_par FROM table_name_38 WHERE country = "united states" AND place = "t5"
Write a SQL query that answers the following question: What is the to par of the player from the United States with a score of 69-68-65=202?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_44 WHERE country = "united states" AND score = 69 - 68 - 65 = 202
Write a SQL query that answers the following question: How many lanes had a rank smaller than 4 and a time of 2:01.51?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (lane VARCHAR, time VARCHAR, rank VARCHAR)
SELECT COUNT(lane) FROM table_name_88 WHERE time = "2:01.51" AND rank < 4
Write a SQL query that answers the following question: What was the time of the person in lane 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (time VARCHAR, lane VARCHAR)
SELECT time FROM table_name_39 WHERE lane = 7
Write a SQL query that answers the following question: How many employees at nokia, ranked under 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (employees INTEGER, company VARCHAR, rank VARCHAR)
SELECT MAX(employees) FROM table_name_50 WHERE company = "nokia" AND rank < 3
Write a SQL query that answers the following question: The person with a rank of 8 moving to Shakhtar Donetsk was moving from what Ukrainian Football Club as a transfer?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (moving_from VARCHAR, moving_to VARCHAR, rank VARCHAR)
SELECT moving_from FROM table_name_2 WHERE moving_to = "shakhtar donetsk" AND rank = 8
Write a SQL query that answers the following question: Ismaël Bangoura with a rank larger than 5 after the year 2005 was moving to what football club?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (moving_to VARCHAR, name VARCHAR, year VARCHAR, rank VARCHAR)
SELECT moving_to FROM table_name_39 WHERE year > 2005 AND rank > 5 AND name = "ismaël bangoura"
Write a SQL query that answers the following question: The player with a rank of 9, made a move from what football club?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (moving_from VARCHAR, rank VARCHAR)
SELECT moving_from FROM table_name_55 WHERE rank = 9
Write a SQL query that answers the following question: Moving from Nancy after 2005, what is listed as the lowest rank?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (rank INTEGER, year VARCHAR, moving_from VARCHAR)
SELECT MIN(rank) FROM table_name_37 WHERE year > 2005 AND moving_from = "nancy"
Write a SQL query that answers the following question: What is the listed year that has a rank smaller than 8 and moving from Olympiacos?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (year VARCHAR, rank VARCHAR, moving_from VARCHAR)
SELECT year FROM table_name_64 WHERE rank < 8 AND moving_from = "olympiacos"
Write a SQL query that answers the following question: Which team plays in Goa, Salcette?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (home_venue VARCHAR, state VARCHAR, city VARCHAR)
SELECT home_venue FROM table_name_63 WHERE state = "goa" AND city = "salcette"
Write a SQL query that answers the following question: Where is the home venue of Bengaluru FC?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (home_venue VARCHAR, team VARCHAR)
SELECT home_venue FROM table_name_95 WHERE team = "bengaluru fc"
Write a SQL query that answers the following question: What is the state of the team who plays in Mumbai?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (state VARCHAR, team VARCHAR)
SELECT state FROM table_name_43 WHERE team = "mumbai"
Write a SQL query that answers the following question: Where is the city of Maharashtra's Pune team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (city VARCHAR, state VARCHAR, team VARCHAR)
SELECT city FROM table_name_31 WHERE state = "maharashtra" AND team = "pune"
Write a SQL query that answers the following question: How much Money is requested by BassToneSlap?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (money_requested__£_ VARCHAR, company_or_product_name VARCHAR)
SELECT money_requested__£_ FROM table_name_10 WHERE company_or_product_name = "basstoneslap"
Write a SQL query that answers the following question: Which Investing Dragon has requested £100,000 and is supported by Entrepreneur Kay Russell?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (investing_dragon_s_ VARCHAR, money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR)
SELECT investing_dragon_s_ FROM table_name_43 WHERE money_requested__£_ = "100,000" AND entrepreneur_s_ = "kay russell"
Write a SQL query that answers the following question: What is the name of the Company or Product that is Episode 3 and is suppoted by Investing Dragon Deborah Meaden?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (company_or_product_name VARCHAR, episode VARCHAR, investing_dragon_s_ VARCHAR)
SELECT company_or_product_name FROM table_name_83 WHERE episode = "episode 3" AND investing_dragon_s_ = "deborah meaden"
Write a SQL query that answers the following question: Which Episode has requested £150,000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (episode VARCHAR, money_requested__£_ VARCHAR)
SELECT episode FROM table_name_38 WHERE money_requested__£_ = "150,000"
Write a SQL query that answers the following question: What is the counting method for a network-centric basis?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (counting_method VARCHAR, basis VARCHAR)
SELECT counting_method FROM table_name_89 WHERE basis = "network-centric"
Write a SQL query that answers the following question: What is the directed/undirected for mfinder, which has a network-centric basis?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (directed___undirected VARCHAR, name VARCHAR, basis VARCHAR)
SELECT directed___undirected FROM table_name_83 WHERE name = "mfinder" AND basis = "network-centric"
Write a SQL query that answers the following question: What is the directed/undirected of fpf (mavisto), which has an induced/non-induced of induced?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (directed___undirected VARCHAR, induced___non_induced VARCHAR, name VARCHAR)
SELECT directed___undirected FROM table_name_25 WHERE induced___non_induced = "induced" AND name = "fpf (mavisto)"
Write a SQL query that answers the following question: What is the name of the algorithm with a directed/undirected of both and a subgraph-centric basis?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (name VARCHAR, directed___undirected VARCHAR, basis VARCHAR)
SELECT name FROM table_name_12 WHERE directed___undirected = "both" AND basis = "subgraph-centric"
Write a SQL query that answers the following question: What is the directed/undirected for mfinder, which has an induced/non-induced of induced and an exact counting method?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (directed___undirected VARCHAR, name VARCHAR, induced___non_induced VARCHAR, counting_method VARCHAR)
SELECT directed___undirected FROM table_name_13 WHERE induced___non_induced = "induced" AND counting_method = "exact" AND name = "mfinder"
Write a SQL query that answers the following question: Who is the opponent for the winner outcome on a hard surface on August 27, 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (opponent VARCHAR, date VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT opponent FROM table_name_6 WHERE outcome = "winner" AND surface = "hard" AND date = "august 27, 2011"
Write a SQL query that answers the following question: What was the outcome on August 5, 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (outcome VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_59 WHERE date = "august 5, 2007"
Write a SQL query that answers the following question: What was the score on January 16, 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_25 WHERE date = "january 16, 2010"
Write a SQL query that answers the following question: What country is Paul Runyan from?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (country VARCHAR, name VARCHAR)
SELECT country FROM table_name_6 WHERE name = "paul runyan"
Write a SQL query that answers the following question: What is the To par of Willie MacFarlane from the country of Scotland?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (to_par VARCHAR, country VARCHAR, name VARCHAR)
SELECT to_par FROM table_name_17 WHERE country = "scotland" AND name = "willie macfarlane"
Write a SQL query that answers the following question: What country has a To par of +1 and the score of 71-76-70=217?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT country FROM table_name_25 WHERE to_par = "+1" AND score = 71 - 76 - 70 = 217
Write a SQL query that answers the following question: What player scored 143 goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (player VARCHAR, goals VARCHAR)
SELECT player FROM table_name_15 WHERE goals = "143"