instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Who's the Republican ticket with a Democratic ticket of matthew j. merritt?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (republican_ticket VARCHAR, democratic_ticket VARCHAR)
SELECT republican_ticket FROM table_name_49 WHERE democratic_ticket = "matthew j. merritt"
Write a SQL query that answers the following question: What is the giant slalom with a 37 super g?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (Giant VARCHAR, super_g VARCHAR)
SELECT Giant AS slalom FROM table_name_94 WHERE super_g = "37"
Write a SQL query that answers the following question: What season had a game in the first round with a result of 4–1, 0–1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (season VARCHAR, round VARCHAR, result VARCHAR)
SELECT season FROM table_name_87 WHERE round = "first round" AND result = "4–1, 0–1"
Write a SQL query that answers the following question: What country had an opponent of Sampdoria?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (country VARCHAR, opponent VARCHAR)
SELECT country FROM table_name_44 WHERE opponent = "sampdoria"
Write a SQL query that answers the following question: Who was the opponent during the second round?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (opponent VARCHAR, round VARCHAR)
SELECT opponent FROM table_name_64 WHERE round = "second round"
Write a SQL query that answers the following question: What was the result of the second round?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (result VARCHAR, round VARCHAR)
SELECT result FROM table_name_5 WHERE round = "second round"
Write a SQL query that answers the following question: What Opponent has an Attendance that is 26,880?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_86 WHERE attendance = "26,880"
Write a SQL query that answers the following question: What nation has a Record of 5.06m(16ft7in)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (nation VARCHAR, record VARCHAR)
SELECT nation FROM table_name_95 WHERE record = "5.06m(16ft7in)"
Write a SQL query that answers the following question: What is the Date when Russia was the nation and the venue was madrid , spain?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (date VARCHAR, nation VARCHAR, venue VARCHAR)
SELECT date FROM table_name_47 WHERE nation = "russia" AND venue = "madrid , spain"
Write a SQL query that answers the following question: What is the Date when yelena isinbayeva was the Athlete, with a Record of 4.90m(16ft0¾in)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (date VARCHAR, athlete VARCHAR, record VARCHAR)
SELECT date FROM table_name_45 WHERE athlete = "yelena isinbayeva" AND record = "4.90m(16ft0¾in)"
Write a SQL query that answers the following question: What is the Nation when the Athlete was emma george, and a Record of 4.58m(15ft0¼in)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (nation VARCHAR, athlete VARCHAR, record VARCHAR)
SELECT nation FROM table_name_62 WHERE athlete = "emma george" AND record = "4.58m(15ft0¼in)"
Write a SQL query that answers the following question: Who tied with 8 losses and 50% wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (tied VARCHAR, losses VARCHAR, win__percentage VARCHAR)
SELECT tied FROM table_name_19 WHERE losses = "8" AND win__percentage = "50%"
Write a SQL query that answers the following question: Which win has a loss of IPL?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (wins VARCHAR, losses VARCHAR)
SELECT wins FROM table_name_34 WHERE losses = "ipl"
Write a SQL query that answers the following question: Which win has 38.67% wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (wins VARCHAR, win__percentage VARCHAR)
SELECT wins FROM table_name_71 WHERE win__percentage = "38.67%"
Write a SQL query that answers the following question: What percentage of wins has 48 losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (win__percentage VARCHAR, losses VARCHAR)
SELECT win__percentage FROM table_name_4 WHERE losses = "48"
Write a SQL query that answers the following question: What was tied at 15 played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (tied VARCHAR, played VARCHAR)
SELECT tied FROM table_name_50 WHERE played = "15"
Write a SQL query that answers the following question: What was the average round for john markham draft pick?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (round INTEGER, player VARCHAR)
SELECT AVG(round) FROM table_name_36 WHERE player = "john markham"
Write a SQL query that answers the following question: What school did draft pick before 125, will allen go to?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (school VARCHAR, pick VARCHAR, player VARCHAR)
SELECT school FROM table_name_91 WHERE pick < 125 AND player = "will allen"
Write a SQL query that answers the following question: What school did draft pick from round 3 go to?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (school VARCHAR, round VARCHAR)
SELECT school FROM table_name_6 WHERE round = 3
Write a SQL query that answers the following question: What is the fewest games lost by Paulistano with more than 39 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (lost INTEGER, team VARCHAR, points VARCHAR)
SELECT MIN(lost) FROM table_name_85 WHERE team = "paulistano" AND points > 39
Write a SQL query that answers the following question: How many games were played against when the team played more than 22 total?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (against INTEGER, played INTEGER)
SELECT SUM(against) FROM table_name_97 WHERE played > 22
Write a SQL query that answers the following question: What was the highest number of against when the difference was 58 and the total played was more than 22?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (against INTEGER, difference VARCHAR, played VARCHAR)
SELECT MAX(against) FROM table_name_62 WHERE difference = "58" AND played > 22
Write a SQL query that answers the following question: What is the Score with a Winning team that is san antonio spurs?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (score VARCHAR, winning_team VARCHAR)
SELECT score FROM table_name_48 WHERE winning_team = "san antonio spurs"
Write a SQL query that answers the following question: Which Result has an Attendance of 60,705?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_72 WHERE attendance = "60,705"
Write a SQL query that answers the following question: How many Weeks have a Result of w 17–13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (week INTEGER, result VARCHAR)
SELECT AVG(week) FROM table_name_82 WHERE result = "w 17–13"
Write a SQL query that answers the following question: Which Opponent that has a Week larger than 3 on october 6, 1991?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (opponent VARCHAR, week VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_78 WHERE week > 3 AND date = "october 6, 1991"
Write a SQL query that answers the following question: When has Attendances of 45,795?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_7 WHERE attendance = "45,795"
Write a SQL query that answers the following question: In what Week has a Result of l 24–20, and a Opponent of at new england patriots?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (week INTEGER, result VARCHAR, opponent VARCHAR)
SELECT MAX(week) FROM table_name_32 WHERE result = "l 24–20" AND opponent = "at new england patriots"
Write a SQL query that answers the following question: What years were the goals less then 160?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (years VARCHAR, goals INTEGER)
SELECT years FROM table_name_41 WHERE goals < 160
Write a SQL query that answers the following question: What is the IATA code for the airport with an ICAO code of HLLS?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (iata VARCHAR, icao VARCHAR)
SELECT iata FROM table_name_19 WHERE icao = "hlls"
Write a SQL query that answers the following question: What airport is in Sabha?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (airport VARCHAR, city VARCHAR)
SELECT airport FROM table_name_43 WHERE city = "sabha"
Write a SQL query that answers the following question: What is the ICAO code for the airport with RBA as its IATA code?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (icao VARCHAR, iata VARCHAR)
SELECT icao FROM table_name_1 WHERE iata = "rba"
Write a SQL query that answers the following question: What country is Istanbul in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (country VARCHAR, city VARCHAR)
SELECT country FROM table_name_11 WHERE city = "istanbul"
Write a SQL query that answers the following question: Which airport has SEB as its IATA code?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (airport VARCHAR, iata VARCHAR)
SELECT airport FROM table_name_86 WHERE iata = "seb"
Write a SQL query that answers the following question: What position does the player from Winston-Salem State play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (position VARCHAR, school_club_team VARCHAR)
SELECT position FROM table_name_89 WHERE school_club_team = "winston-salem state"
Write a SQL query that answers the following question: What is the total number of points for the song that was ranked 6th and had a draw number smaller than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (points VARCHAR, rank VARCHAR, draw VARCHAR)
SELECT COUNT(points) FROM table_name_23 WHERE rank = "6th" AND draw < 5
Write a SQL query that answers the following question: When was the average year that the number of floors was greater than 75?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (year INTEGER, floors INTEGER)
SELECT AVG(year) FROM table_name_78 WHERE floors > 75
Write a SQL query that answers the following question: What is the average number of floors of the Venetian tower?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (floors INTEGER, name VARCHAR)
SELECT AVG(floors) FROM table_name_59 WHERE name = "venetian tower"
Write a SQL query that answers the following question: Which arena was founded in 2000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (arena VARCHAR, founded VARCHAR)
SELECT arena FROM table_name_5 WHERE founded = 2000
Write a SQL query that answers the following question: Can you tell me the total number of Rank that has the Matches of 427, and the Goals smaller than 320?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (rank VARCHAR, matches VARCHAR, goals VARCHAR)
SELECT COUNT(rank) FROM table_name_58 WHERE matches = "427" AND goals < 320
Write a SQL query that answers the following question: Can you tell me the Matches that has the Rank of 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (matches VARCHAR, rank VARCHAR)
SELECT matches FROM table_name_89 WHERE rank = 1
Write a SQL query that answers the following question: Can you tell me the Matches that has the Rank smaller than 6, and the Years of 1943-62?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (matches VARCHAR, rank VARCHAR, years VARCHAR)
SELECT matches FROM table_name_55 WHERE rank < 6 AND years = "1943-62"
Write a SQL query that answers the following question: Which class had a number under 4 and was built in 1988?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (class VARCHAR, number VARCHAR, built VARCHAR)
SELECT class FROM table_name_52 WHERE number < 4 AND built = "1988"
Write a SQL query that answers the following question: How many items withdrawn had numbers over 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (withdrawn VARCHAR, number INTEGER)
SELECT COUNT(withdrawn) FROM table_name_93 WHERE number > 5
Write a SQL query that answers the following question: What is the sum of numbers that had a type of Driving Van Trailer?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (number INTEGER, type VARCHAR)
SELECT SUM(number) FROM table_name_65 WHERE type = "driving van trailer"
Write a SQL query that answers the following question: What rank has 1 silver, more than 2 gold, and a total larger than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (rank VARCHAR, gold VARCHAR, silver VARCHAR, total VARCHAR)
SELECT COUNT(rank) FROM table_name_61 WHERE silver = 1 AND total > 3 AND gold > 2
Write a SQL query that answers the following question: What is the most gold where silver is 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (gold INTEGER, silver INTEGER)
SELECT MAX(gold) FROM table_name_42 WHERE silver < 0
Write a SQL query that answers the following question: What is the number of silver where the rank is higher than 4 and bronze is smaller than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (silver VARCHAR, rank VARCHAR, bronze VARCHAR)
SELECT COUNT(silver) FROM table_name_16 WHERE rank > 4 AND bronze < 1
Write a SQL query that answers the following question: What is the rank where the gold is 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (rank INTEGER, gold INTEGER)
SELECT AVG(rank) FROM table_name_70 WHERE gold < 0
Write a SQL query that answers the following question: What is the rank that has 1 bronze and 1 silver?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (rank VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT COUNT(rank) FROM table_name_63 WHERE bronze = 1 AND silver > 1
Write a SQL query that answers the following question: What is the total launch failures when there are 4 launches, and the not usable is greater than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (launch_failures INTEGER, launched VARCHAR, not_usable VARCHAR)
SELECT SUM(launch_failures) FROM table_name_73 WHERE launched = 4 AND not_usable > 0
Write a SQL query that answers the following question: What is the highest number of not usable satellites when there are more than 0 launch failures, less than 30 retired, and the block is I?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (not_usable INTEGER, block VARCHAR, launch_failures VARCHAR, retired VARCHAR)
SELECT MAX(not_usable) FROM table_name_30 WHERE launch_failures > 0 AND retired < 30 AND block = "block i"
Write a SQL query that answers the following question: What is the average number of not usable satellited when there are 0 retired, and the launch failures are less than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (not_usable INTEGER, retired VARCHAR, launch_failures VARCHAR)
SELECT AVG(not_usable) FROM table_name_46 WHERE retired = 0 AND launch_failures < 1
Write a SQL query that answers the following question: What is the lowest number of members on the Cultural and Educational Panel, when the University of Dublin had 3 members, when the Industrial and Commercial Panel had more than 0 members, and when the Agricultural Panel had more than 4 members?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (cultural_and_educational_panel INTEGER, agricultural_panel VARCHAR, university_of_dublin VARCHAR, industrial_and_commercial_panel VARCHAR)
SELECT MIN(cultural_and_educational_panel) FROM table_name_28 WHERE university_of_dublin < 3 AND industrial_and_commercial_panel > 0 AND agricultural_panel > 4
Write a SQL query that answers the following question: What was the average number of members Nominated by the Taoiseach, when the Agricultural Panel had less than 1 member, and when the Administrative Panel had fewer than 0 members?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (nominated_by_the_taoiseach INTEGER, agricultural_panel VARCHAR, administrative_panel VARCHAR)
SELECT AVG(nominated_by_the_taoiseach) FROM table_name_10 WHERE agricultural_panel < 1 AND administrative_panel < 0
Write a SQL query that answers the following question: What was the lowest number of members on the Agricultural Panel, when the Industrial and Commercial Panel had 9 members, and when the National University of Ireland had more than 3 members?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (agricultural_panel INTEGER, industrial_and_commercial_panel VARCHAR, national_university_of_ireland VARCHAR)
SELECT MIN(agricultural_panel) FROM table_name_29 WHERE industrial_and_commercial_panel = 9 AND national_university_of_ireland > 3
Write a SQL query that answers the following question: What was the greatest number of members for the National University of Ireland, when the Total number of members in the Seanad was 60, and when the Administrative Panel had more than 7 members?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (national_university_of_ireland INTEGER, total VARCHAR, administrative_panel VARCHAR)
SELECT MAX(national_university_of_ireland) FROM table_name_57 WHERE total = 60 AND administrative_panel > 7
Write a SQL query that answers the following question: What is Final round, when Player is Danilo Gallinari?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (final_round VARCHAR, player VARCHAR)
SELECT final_round FROM table_name_50 WHERE player = "danilo gallinari"
Write a SQL query that answers the following question: For the film with director listed as 1998, what was the gross in Singapore?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (singapore_gross VARCHAR, director VARCHAR)
SELECT singapore_gross FROM table_name_64 WHERE director = "1998"
Write a SQL query that answers the following question: Who was the director for the film produced by River Films?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (director VARCHAR, producer VARCHAR)
SELECT director FROM table_name_96 WHERE producer = "river films"
Write a SQL query that answers the following question: Who was the producer for the film directed by 1998?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (producer VARCHAR, director VARCHAR)
SELECT producer FROM table_name_45 WHERE director = "1998"
Write a SQL query that answers the following question: For the film titled 1997, what was the gross in Singapore?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (singapore_gross VARCHAR, title VARCHAR)
SELECT singapore_gross FROM table_name_3 WHERE title = "1997"
Write a SQL query that answers the following question: Who was the producer for the film directed by 1997?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (producer VARCHAR, director VARCHAR)
SELECT producer FROM table_name_42 WHERE director = "1997"
Write a SQL query that answers the following question: For the directed by 1991, what was the gross in Singapore?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (singapore_gross VARCHAR, director VARCHAR)
SELECT singapore_gross FROM table_name_66 WHERE director = "1991"
Write a SQL query that answers the following question: What is the most points scored for teams with under 25 goals scored, 3 draws, and more than 21 games played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (points INTEGER, games_played VARCHAR, goals_scored VARCHAR, draws VARCHAR)
SELECT MAX(points) FROM table_name_36 WHERE goals_scored < 25 AND draws = 3 AND games_played > 21
Write a SQL query that answers the following question: What day was there a set 1 of 25-18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (date VARCHAR, set_1 VARCHAR)
SELECT date FROM table_name_23 WHERE set_1 = "25-18"
Write a SQL query that answers the following question: What is the Week when the kick off was at 4:05 pm, and the result was w 31–14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (week VARCHAR, kickoff___et__ VARCHAR, result VARCHAR)
SELECT week FROM table_name_92 WHERE kickoff___et__ = "4:05 pm" AND result = "w 31–14"
Write a SQL query that answers the following question: What time was the kickoff when the miami dolphins were the opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (kickoff___et__ VARCHAR, opponent VARCHAR)
SELECT kickoff___et__ FROM table_name_31 WHERE opponent = "miami dolphins"
Write a SQL query that answers the following question: What is Round 2 when Round 4 is Double and Round 3 is Single?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (round_2 VARCHAR, round_4 VARCHAR, round_3 VARCHAR)
SELECT round_2 FROM table_name_56 WHERE round_4 = "double" AND round_3 = "single"
Write a SQL query that answers the following question: What points has united kingdom as the country, and 10 as the place?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (points VARCHAR, country VARCHAR, place VARCHAR)
SELECT points FROM table_name_29 WHERE country = "united kingdom" AND place = 10
Write a SQL query that answers the following question: What machine has tony rutter as the rider?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (machine VARCHAR, rider VARCHAR)
SELECT machine FROM table_name_68 WHERE rider = "tony rutter"
Write a SQL query that answers the following question: What machine has 5 as the place?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (machine VARCHAR, place VARCHAR)
SELECT machine FROM table_name_95 WHERE place = 5
Write a SQL query that answers the following question: How many places have yamaha as the machine, and 89.85mph as the speed?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (place INTEGER, machine VARCHAR, speed VARCHAR)
SELECT SUM(place) FROM table_name_30 WHERE machine = "yamaha" AND speed = "89.85mph"
Write a SQL query that answers the following question: How many places did the artist Big Hit have with less than 2934 votes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (place VARCHAR, artist VARCHAR, votes VARCHAR)
SELECT COUNT(place) FROM table_name_21 WHERE artist = "big hit" AND votes < 2934
Write a SQL query that answers the following question: How many average votes did producer carlos coelho have in a higher place than 6 and with a draw larger than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (votes INTEGER, draw VARCHAR, place VARCHAR, producer VARCHAR)
SELECT AVG(votes) FROM table_name_58 WHERE place < 6 AND producer = "carlos coelho" AND draw > 5
Write a SQL query that answers the following question: What is the name of the MySpace Band with an Original Airdate of 19 february 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (myspace_band VARCHAR, original_airdate VARCHAR)
SELECT myspace_band FROM table_name_38 WHERE original_airdate = "19 february 2008"
Write a SQL query that answers the following question: What is the Musical Guest/Song with a pilot of 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (musical_guest_song_performed VARCHAR, pilot VARCHAR)
SELECT musical_guest_song_performed FROM table_name_99 WHERE pilot = "3"
Write a SQL query that answers the following question: What is the Original Airdate for the YouTube Hero greg pattillo?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (original_airdate VARCHAR, youtube_hero VARCHAR)
SELECT original_airdate FROM table_name_26 WHERE youtube_hero = "greg pattillo"
Write a SQL query that answers the following question: What is the Musical Guest/Song with an original airdate of january 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (musical_guest_song_performed VARCHAR, original_airdate VARCHAR)
SELECT musical_guest_song_performed FROM table_name_85 WHERE original_airdate = "january 2008"
Write a SQL query that answers the following question: What is the Pilot number for the YouTube Hero greg pattillo?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (pilot VARCHAR, youtube_hero VARCHAR)
SELECT pilot FROM table_name_76 WHERE youtube_hero = "greg pattillo"
Write a SQL query that answers the following question: What is the name of the MySpace Band with an Original Airdate of 25 march 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (myspace_band VARCHAR, original_airdate VARCHAR)
SELECT myspace_band FROM table_name_77 WHERE original_airdate = "25 march 2008"
Write a SQL query that answers the following question: What is the total number of top-25s for tournaments that had 0 wins, 1 cut made, and more than 5 events?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (top_25 VARCHAR, events VARCHAR, wins VARCHAR, cuts_made VARCHAR)
SELECT COUNT(top_25) FROM table_name_23 WHERE wins = 0 AND cuts_made = 1 AND events > 5
Write a SQL query that answers the following question: What is the fewest number of top-5s for events with more than 1 win?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (top_5 INTEGER, wins INTEGER)
SELECT MIN(top_5) FROM table_name_90 WHERE wins > 1
Write a SQL query that answers the following question: What is the highest number of top-25s for events with 0 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (top_25 INTEGER, wins INTEGER)
SELECT MAX(top_25) FROM table_name_15 WHERE wins < 0
Write a SQL query that answers the following question: What is the home leg who are opponents of rotor volgograd
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (home_leg VARCHAR, opponents VARCHAR)
SELECT home_leg FROM table_name_88 WHERE opponents = "rotor volgograd"
Write a SQL query that answers the following question: What is the round with ajax opponents
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (round VARCHAR, opponents VARCHAR)
SELECT round FROM table_name_33 WHERE opponents = "ajax"
Write a SQL query that answers the following question: Which acquisition via has a position of forward and is on the state school or club?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (acquisition_via VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT acquisition_via FROM table_name_79 WHERE position = "forward" AND school_club_team = "state"
Write a SQL query that answers the following question: Which is the acquisition via that has a school or club team of state?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (acquisition_via VARCHAR, school_club_team VARCHAR)
SELECT acquisition_via FROM table_name_82 WHERE school_club_team = "state"
Write a SQL query that answers the following question: What is the position of Allen Gamboa?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (position VARCHAR, name VARCHAR)
SELECT position FROM table_name_50 WHERE name = "allen gamboa"
Write a SQL query that answers the following question: Which position is number 16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (position VARCHAR, number VARCHAR)
SELECT position FROM table_name_7 WHERE number = 16
Write a SQL query that answers the following question: What year had a date of TBA where the Oakland raiders were the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (year INTEGER, date VARCHAR, designated_home VARCHAR)
SELECT AVG(year) FROM table_name_80 WHERE date = "tba" AND designated_home = "oakland raiders"
Write a SQL query that answers the following question: Who was the home team on October 28 when the new england patriots were the visitors?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (designated_home VARCHAR, date VARCHAR, designated_visitors VARCHAR)
SELECT designated_home FROM table_name_34 WHERE date = "october 28" AND designated_visitors = "new england patriots"
Write a SQL query that answers the following question: Who were the visitors when the Atlanta Falcons were the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (designated_visitors VARCHAR, designated_home VARCHAR)
SELECT designated_visitors FROM table_name_42 WHERE designated_home = "atlanta falcons"
Write a SQL query that answers the following question: Who were the home team during the game that aired on Fox after 2007 on October 23?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (designated_home VARCHAR, date VARCHAR, television VARCHAR, year VARCHAR)
SELECT designated_home FROM table_name_53 WHERE television = "fox" AND year > 2007 AND date = "october 23"
Write a SQL query that answers the following question: What was the birthplace of the player who weighs 98 KG and was born on May 1, 1984?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (birthplace VARCHAR, weight__kg_ VARCHAR, birthdate VARCHAR)
SELECT birthplace FROM table_name_86 WHERE weight__kg_ = 98 AND birthdate = "may 1, 1984"
Write a SQL query that answers the following question: What was the Name v t e, of the player whose Weight (kg) was 84, whose Position was D, and whose Jersey number was 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (name_v_t_e VARCHAR, jersey_number VARCHAR, weight__kg_ VARCHAR, position VARCHAR)
SELECT name_v_t_e FROM table_name_32 WHERE weight__kg_ = 84 AND position = "d" AND jersey_number = 2
Write a SQL query that answers the following question: What is the lowest win percentage for when Perth Scorchers is the opposition?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (win__percentage INTEGER, opposition VARCHAR)
SELECT MIN(win__percentage) FROM table_name_20 WHERE opposition = "perth scorchers"
Write a SQL query that answers the following question: On which date was the game played on Week 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_22 WHERE week = 13
Write a SQL query that answers the following question: What is the total number of Std SAPs with 0-11 Opt SAPS?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (std_saps VARCHAR, opt_saps VARCHAR)
SELECT COUNT(std_saps) FROM table_name_55 WHERE opt_saps = "0-11"
Write a SQL query that answers the following question: For Model e64 what is the zAAPs/zIIPs?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (zaaps___ziips VARCHAR, model VARCHAR)
SELECT zaaps___ziips FROM table_name_36 WHERE model = "e64"