instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is the IATA for Benghazi, Libya?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (iata VARCHAR, country VARCHAR, city VARCHAR)
SELECT iata FROM table_name_56 WHERE country = "libya" AND city = "benghazi"
Write a SQL query that answers the following question: What is the average Grid for the honda cbr1000rr, with 18 laps and a time of +1:12.884?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (grid INTEGER, time VARCHAR, bike VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_45 WHERE bike = "honda cbr1000rr" AND laps = 18 AND time = "+1:12.884"
Write a SQL query that answers the following question: What is the Bike with 18 laps and +41.280 as the time?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (bike VARCHAR, laps VARCHAR, time VARCHAR)
SELECT bike FROM table_name_51 WHERE laps = 18 AND time = "+41.280"
Write a SQL query that answers the following question: What is the Time when there are 18 laps, grid larger than 15, and Rider of Russell Holland?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (time VARCHAR, rider VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT time FROM table_name_42 WHERE laps = 18 AND grid > 15 AND rider = "russell holland"
Write a SQL query that answers the following question: What is the Bike with a grid more than 4 and the rider is Michel Fabrizio?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (bike VARCHAR, grid VARCHAR, rider VARCHAR)
SELECT bike FROM table_name_17 WHERE grid > 4 AND rider = "michel fabrizio"
Write a SQL query that answers the following question: What was Lee Smith's highest number of goals when he made fewer than 364 appearances?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (goals INTEGER, name VARCHAR, appearances VARCHAR)
SELECT MAX(goals) FROM table_name_51 WHERE name = "lee smith" AND appearances < 364
Write a SQL query that answers the following question: Which goals/game ratio has fewer than 201 goals and fewer than 170 appearances?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (goals VARCHAR, Game VARCHAR, appearances VARCHAR)
SELECT goals / Game AS Ratio FROM table_name_29 WHERE goals < 201 AND appearances < 170
Write a SQL query that answers the following question: What is the average rank of the airport with a 9.3% annual change?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (rank INTEGER, annual_change VARCHAR)
SELECT AVG(rank) FROM table_name_59 WHERE annual_change = "9.3%"
Write a SQL query that answers the following question: Where is the airport located that has a 98.9% in use capacity?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (location VARCHAR, capacity_in_use VARCHAR)
SELECT location FROM table_name_51 WHERE capacity_in_use = "98.9%"
Write a SQL query that answers the following question: What rank is the airport in Fortaleza?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (rank VARCHAR, location VARCHAR)
SELECT rank FROM table_name_19 WHERE location = "fortaleza"
Write a SQL query that answers the following question: What is the Award name with a Team name that is cougar robotics team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (award_name VARCHAR, team_name VARCHAR)
SELECT award_name FROM table_name_53 WHERE team_name = "cougar robotics team"
Write a SQL query that answers the following question: What is the zan 1 that has 11 as the nor 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (zan_1 VARCHAR, nor_1 VARCHAR)
SELECT zan_1 FROM table_name_34 WHERE nor_1 = "11"
Write a SQL query that answers the following question: What driver has 19 as the zan 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (driver VARCHAR, zan_1 VARCHAR)
SELECT driver FROM table_name_13 WHERE zan_1 = "19"
Write a SQL query that answers the following question: What driver has 5 as the zan 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (driver VARCHAR, zan_2 VARCHAR)
SELECT driver FROM table_name_69 WHERE zan_2 = "5"
Write a SQL query that answers the following question: What is the nor 2 that has nor 1 as nor 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (nor_2 VARCHAR, nor_1 VARCHAR)
SELECT nor_2 FROM table_name_25 WHERE nor_1 = "nor 1"
Write a SQL query that answers the following question: What driver has 22 as nor 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (driver VARCHAR, nor_1 VARCHAR)
SELECT driver FROM table_name_85 WHERE nor_1 = "22"
Write a SQL query that answers the following question: What Date had a Result of draw, and a Venue of lord's?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (date VARCHAR, result VARCHAR, venue VARCHAR)
SELECT date FROM table_name_28 WHERE result = "draw" AND venue = "lord's"
Write a SQL query that answers the following question: What Date that had a Result of draw, with Oval as a venue?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (date VARCHAR, result VARCHAR, venue VARCHAR)
SELECT date FROM table_name_32 WHERE result = "draw" AND venue = "oval"
Write a SQL query that answers the following question: What is the Away captain when the Result was draw, and a Venue of lord's?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (away_captain VARCHAR, result VARCHAR, venue VARCHAR)
SELECT away_captain FROM table_name_72 WHERE result = "draw" AND venue = "lord's"
Write a SQL query that answers the following question: What is the Date when the match Resulted in a draw?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_95 WHERE result = "draw"
Write a SQL query that answers the following question: What was the margin of victory when the winning score was –10 (70-72-68-68=278)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT margin_of_victory FROM table_name_6 WHERE winning_score = –10(70 - 72 - 68 - 68 = 278)
Write a SQL query that answers the following question: When Gary Player was the runner-up, what was the margin of victory?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT margin_of_victory FROM table_name_28 WHERE runner_s__up = "gary player"
Write a SQL query that answers the following question: In what tournament was the winning score –10 (68-71-69-70=278)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (tournament VARCHAR, winning_score VARCHAR)
SELECT tournament FROM table_name_21 WHERE winning_score = –10(68 - 71 - 69 - 70 = 278)
Write a SQL query that answers the following question: What is the highest number of wins when more than 17 cuts and more than 25 starts were made, and the top 10 ranking is less than 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (wins INTEGER, top_10 VARCHAR, cuts_made VARCHAR, starts VARCHAR)
SELECT MAX(wins) FROM table_name_95 WHERE cuts_made > 17 AND starts > 25 AND top_10 < 8
Write a SQL query that answers the following question: What is the average number of starts when the money list rank is 108 and the rank in the top 25 is greater than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (starts INTEGER, money_list_rank VARCHAR, top_25 VARCHAR)
SELECT AVG(starts) FROM table_name_58 WHERE money_list_rank = "108" AND top_25 > 4
Write a SQL query that answers the following question: What is the average number of starts when 11 cuts were made and the top 10 ranking is larger than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (starts INTEGER, cuts_made VARCHAR, top_10 VARCHAR)
SELECT AVG(starts) FROM table_name_33 WHERE cuts_made = 11 AND top_10 > 4
Write a SQL query that answers the following question: What is the Name when the position is g, and weight is 190 pounds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (name VARCHAR, position VARCHAR, weight__lbs_ VARCHAR)
SELECT name FROM table_name_54 WHERE position = "g" AND weight__lbs_ = 190
Write a SQL query that answers the following question: Who was the home team of the game on 2 February 2006?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_12 WHERE date = "2 february 2006"
Write a SQL query that answers the following question: What is the home team of the game with Warriors as the visitor team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (home VARCHAR, visitor VARCHAR)
SELECT home FROM table_name_35 WHERE visitor = "warriors"
Write a SQL query that answers the following question: What date was the match on a hard surface with a score of 6–4, 2–6, 3–6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (date VARCHAR, surface VARCHAR, score VARCHAR)
SELECT date FROM table_name_83 WHERE surface = "hard" AND score = "6–4, 2–6, 3–6"
Write a SQL query that answers the following question: What is the Score of the match on a clay surface with an outcome of winner, at the tournament ciudad juárez, and an Opponent in the final of estefania craciún?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (score VARCHAR, opponent_in_the_final VARCHAR, tournament VARCHAR, surface VARCHAR, outcome VARCHAR)
SELECT score FROM table_name_48 WHERE surface = "clay" AND outcome = "winner" AND tournament = "ciudad juárez" AND opponent_in_the_final = "estefania craciún"
Write a SQL query that answers the following question: What is the Outcome of the match with a Score of 6–3, 6–4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (outcome VARCHAR, score VARCHAR)
SELECT outcome FROM table_name_2 WHERE score = "6–3, 6–4"
Write a SQL query that answers the following question: What is the Outcome of the match with a Score of 6–3, 6–4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (outcome VARCHAR, score VARCHAR)
SELECT outcome FROM table_name_75 WHERE score = "6–3, 6–4"
Write a SQL query that answers the following question: What is the Outcome of the match on 12 september 2004?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (outcome VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_21 WHERE date = "12 september 2004"
Write a SQL query that answers the following question: What was the Surface when the Score was 6–4, 2–6, 3–6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (surface VARCHAR, score VARCHAR)
SELECT surface FROM table_name_17 WHERE score = "6–4, 2–6, 3–6"
Write a SQL query that answers the following question: What was the total attendance at a game against the Pittsburgh Steelers before week 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (attendance VARCHAR, opponent VARCHAR, week VARCHAR)
SELECT COUNT(attendance) FROM table_name_76 WHERE opponent = "pittsburgh steelers" AND week < 4
Write a SQL query that answers the following question: What was the date of the game held at the A venue with a result of 0-1 against the Rangers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (date VARCHAR, opponent VARCHAR, venue VARCHAR, result VARCHAR)
SELECT date FROM table_name_87 WHERE venue = "a" AND result = "0-1" AND opponent = "rangers"
Write a SQL query that answers the following question: Who was the opponent on November 11, 2001?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_4 WHERE date = "november 11, 2001"
Write a SQL query that answers the following question: Who was the opponent before week 5 that played on September 23, 2001?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (opponent VARCHAR, week VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_99 WHERE week < 5 AND date = "september 23, 2001"
Write a SQL query that answers the following question: What is the frequency of the Turion 64 X2 TL-62?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (frequency VARCHAR, model_number VARCHAR)
SELECT frequency FROM table_name_8 WHERE model_number = "turion 64 x2 tl-62"
Write a SQL query that answers the following question: What is the socket for Order Part Number TMDTL68HAX5DM?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (socket VARCHAR, order_part_number VARCHAR)
SELECT socket FROM table_name_67 WHERE order_part_number = "tmdtl68hax5dm"
Write a SQL query that answers the following question: What is the multiplier 1 for chips with a frequency of 1800MHz?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (multiplier_1 VARCHAR, frequency VARCHAR)
SELECT multiplier_1 FROM table_name_25 WHERE frequency = "1800mhz"
Write a SQL query that answers the following question: What is the socket type for the processor with a multiplier 1 of 11.5x?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (socket VARCHAR, multiplier_1 VARCHAR)
SELECT socket FROM table_name_66 WHERE multiplier_1 = "11.5x"
Write a SQL query that answers the following question: What is the highest sample size administered on October 18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (sample_size INTEGER, date_s__administered VARCHAR)
SELECT MAX(sample_size) FROM table_name_35 WHERE date_s__administered = "october 18"
Write a SQL query that answers the following question: What is the percentage for Mel Martinez when the sample size is 800?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (mel_martinez__r_ VARCHAR, sample_size VARCHAR)
SELECT mel_martinez__r_ FROM table_name_6 WHERE sample_size = 800
Write a SQL query that answers the following question: How many games were played by the Scottish Wanderers where less than 5 Points were scored?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (played INTEGER, team VARCHAR, points VARCHAR)
SELECT SUM(played) FROM table_name_21 WHERE team = "scottish wanderers" AND points < 5
Write a SQL query that answers the following question: How many games were played where exactly 15 points were scored?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (played INTEGER, points VARCHAR)
SELECT SUM(played) FROM table_name_34 WHERE points = 15
Write a SQL query that answers the following question: What LINER class has a W.A. of 0-6-0st with a 2 No. Built?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (lner_class VARCHAR, wa VARCHAR, no_built VARCHAR)
SELECT lner_class FROM table_name_44 WHERE wa = "0-6-0st" AND no_built = 2
Write a SQL query that answers the following question: What is the pick number for Peter Moore of the Montreal Alouettes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (pick__number VARCHAR, cfl_team VARCHAR, player VARCHAR)
SELECT pick__number FROM table_name_74 WHERE cfl_team = "montreal alouettes" AND player = "peter moore"
Write a SQL query that answers the following question: What CFL team did Kelly Bates play for?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (cfl_team VARCHAR, player VARCHAR)
SELECT cfl_team FROM table_name_32 WHERE player = "kelly bates"
Write a SQL query that answers the following question: How many average total matches have a swansea win less than 3, fa cup as the competition, with a draw less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (total_matches INTEGER, draw VARCHAR, swansea_win VARCHAR, competition VARCHAR)
SELECT AVG(total_matches) FROM table_name_23 WHERE swansea_win < 3 AND competition = "fa cup" AND draw < 0
Write a SQL query that answers the following question: How many cardiff wins have a draw greater than 27?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (cardiff_win VARCHAR, draw INTEGER)
SELECT COUNT(cardiff_win) FROM table_name_26 WHERE draw > 27
Write a SQL query that answers the following question: How many average total matches have league cup as the competition, with a draw greater than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (total_matches INTEGER, competition VARCHAR, draw VARCHAR)
SELECT AVG(total_matches) FROM table_name_34 WHERE competition = "league cup" AND draw > 0
Write a SQL query that answers the following question: What is the number of tries for when the try bonus is 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (tries_for VARCHAR, try_bonus VARCHAR)
SELECT tries_for FROM table_name_16 WHERE try_bonus = "0"
Write a SQL query that answers the following question: How many points is there when the lost is 6 and the try bonus is 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (points_for VARCHAR, lost VARCHAR, try_bonus VARCHAR)
SELECT points_for FROM table_name_24 WHERE lost = "6" AND try_bonus = "9"
Write a SQL query that answers the following question: How many pints does the Cambrian Welfare RFC have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (points_for VARCHAR, club VARCHAR)
SELECT points_for FROM table_name_50 WHERE club = "cambrian welfare rfc"
Write a SQL query that answers the following question: When the try bonus is 9 and the lost 4, what is the drawn?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (drawn VARCHAR, try_bonus VARCHAR, lost VARCHAR)
SELECT drawn FROM table_name_50 WHERE try_bonus = "9" AND lost = "4"
Write a SQL query that answers the following question: Club Clwb Rygbi Cymru Caerdydd RFC has how many points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (points VARCHAR, club VARCHAR)
SELECT points FROM table_name_40 WHERE club = "clwb rygbi cymru caerdydd rfc"
Write a SQL query that answers the following question: What is the highest Rank with a density less than 376.37, the province was valverde, and an Area larger than 823?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (rank INTEGER, area VARCHAR, density VARCHAR, province VARCHAR)
SELECT MAX(rank) FROM table_name_68 WHERE density < 376.37 AND province = "valverde" AND area > 823
Write a SQL query that answers the following question: What is the highest Density for the independencia province, with an area smaller than 2,007.4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (density INTEGER, province VARCHAR, area VARCHAR)
SELECT MAX(density) FROM table_name_88 WHERE province = "independencia" AND area < 2 OFFSET 007.4
Write a SQL query that answers the following question: Which 2nd leg has pamesa valencia for team #2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (team__number2 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_52 WHERE team__number2 = "pamesa valencia"
Write a SQL query that answers the following question: What is the team #1 that has unics kazan for team #2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (team__number1 VARCHAR, team__number2 VARCHAR)
SELECT team__number1 FROM table_name_97 WHERE team__number2 = "unics kazan"
Write a SQL query that answers the following question: What is the 1st leg that has akasvayu girona as team #2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (team__number2 VARCHAR)
SELECT 1 AS st_leg FROM table_name_37 WHERE team__number2 = "akasvayu girona"
Write a SQL query that answers the following question: Which Wins has a Tournament of totals, and a Cuts made larger than 42?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (wins INTEGER, tournament VARCHAR, cuts_made VARCHAR)
SELECT AVG(wins) FROM table_name_2 WHERE tournament = "totals" AND cuts_made > 42
Write a SQL query that answers the following question: Which Top-10 has a Cuts made larger than 42?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (top_10 INTEGER, cuts_made INTEGER)
SELECT MIN(top_10) FROM table_name_57 WHERE cuts_made > 42
Write a SQL query that answers the following question: Which Wins has a Top-5 of 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (wins INTEGER, top_5 VARCHAR)
SELECT AVG(wins) FROM table_name_26 WHERE top_5 = 6
Write a SQL query that answers the following question: Which Cuts made has a Top-25 smaller than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (cuts_made INTEGER, top_25 INTEGER)
SELECT MAX(cuts_made) FROM table_name_26 WHERE top_25 < 3
Write a SQL query that answers the following question: Which Top-10 has a Cuts made of 10, and a Top-5 larger than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (top_10 INTEGER, cuts_made VARCHAR, top_5 VARCHAR)
SELECT MIN(top_10) FROM table_name_95 WHERE cuts_made = 10 AND top_5 > 1
Write a SQL query that answers the following question: Concerning protestantism by country, the ranking is out of how many total?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (out_of VARCHAR, source VARCHAR)
SELECT out_of FROM table_name_62 WHERE source = "protestantism by country"
Write a SQL query that answers the following question: What is the lowest rank that the protestants population holds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (rank INTEGER, name VARCHAR)
SELECT MIN(rank) FROM table_name_67 WHERE name = "protestants population"
Write a SQL query that answers the following question: The album titled I had what chart positions?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (chart_positions VARCHAR, album_title VARCHAR)
SELECT chart_positions FROM table_name_21 WHERE album_title = "i"
Write a SQL query that answers the following question: What is the title of the album that has Popup has the original label?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (album_title VARCHAR, original_label VARCHAR)
SELECT album_title FROM table_name_25 WHERE original_label = "popup"
Write a SQL query that answers the following question: What is the format of the album with a year less than 1992?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (format VARCHAR, year INTEGER)
SELECT format FROM table_name_58 WHERE year < 1992
Write a SQL query that answers the following question: What chart positions did the album reach when ep was the format?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (chart_positions VARCHAR, format VARCHAR)
SELECT chart_positions FROM table_name_1 WHERE format = "ep"
Write a SQL query that answers the following question: What was the average pick with Ed O'Bannon and a round smaller than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (pick INTEGER, player VARCHAR, round VARCHAR)
SELECT AVG(pick) FROM table_name_74 WHERE player = "ed o'bannon" AND round < 1
Write a SQL query that answers the following question: What player was drafted for the Detroit Pistons?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (player VARCHAR, nba_team VARCHAR)
SELECT player FROM table_name_27 WHERE nba_team = "detroit pistons"
Write a SQL query that answers the following question: Which Team 2 had a Team 1 of montreal impact?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_81 WHERE team_1 = "montreal impact"
Write a SQL query that answers the following question: Which Team 2 had a Team 1of joe public?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_52 WHERE team_1 = "joe public"
Write a SQL query that answers the following question: Which team 1 had a Team 2 of hankook verdes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team_1 FROM table_name_19 WHERE team_2 = "hankook verdes"
Write a SQL query that answers the following question: What is the first leg score when team 2 is Wagad Mogadishu?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (team_2 VARCHAR)
SELECT 1 AS st_leg FROM table_name_61 WHERE team_2 = "wagad mogadishu"
Write a SQL query that answers the following question: What is the Status with a Name that is anas cheuen?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (status VARCHAR, name VARCHAR)
SELECT status FROM table_name_77 WHERE name = "anas cheuen"
Write a SQL query that answers the following question: What is the Unit with a Name that is anas cheuen?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (unit VARCHAR, name VARCHAR)
SELECT unit FROM table_name_58 WHERE name = "anas cheuen"
Write a SQL query that answers the following question: What team was the Opponent when the Score was 31-6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (opponent VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_83 WHERE score = "31-6"
Write a SQL query that answers the following question: What is the Score when the record was 9-3-0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_76 WHERE record = "9-3-0"
Write a SQL query that answers the following question: What is the away team where the home team is Coventry City?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_73 WHERE home_team = "coventry city"
Write a SQL query that answers the following question: What is the score where the away team is Exeter City?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_20 WHERE away_team = "exeter city"
Write a SQL query that answers the following question: How many ties does Walsall have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_97 WHERE away_team = "walsall"
Write a SQL query that answers the following question: Where Bolton Wanderers is the home team, who is the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_7 WHERE home_team = "bolton wanderers"
Write a SQL query that answers the following question: How many ties are there where attendance is 11,997?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (tie_no VARCHAR, attendance VARCHAR)
SELECT tie_no FROM table_name_43 WHERE attendance = "11,997"
Write a SQL query that answers the following question: Where the away team is Bradford City, who is the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_83 WHERE away_team = "bradford city"
Write a SQL query that answers the following question: For which school/club team did the player in the position of Guard/Forward play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (school_club_team VARCHAR, position VARCHAR)
SELECT school_club_team FROM table_name_35 WHERE position = "guard/forward"
Write a SQL query that answers the following question: How was the player in the position of Center acquired?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (acquisition_via VARCHAR, position VARCHAR)
SELECT acquisition_via FROM table_name_26 WHERE position = "center"
Write a SQL query that answers the following question: In what season did Omar Thomas play, with a jersey number larger than 15?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (season VARCHAR, number VARCHAR, name VARCHAR)
SELECT season FROM table_name_81 WHERE number > 15 AND name = "omar thomas"
Write a SQL query that answers the following question: How many total players came from the school/club team of De La Salle?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (number VARCHAR, school_club_team VARCHAR)
SELECT COUNT(number) FROM table_name_62 WHERE school_club_team = "de la salle"
Write a SQL query that answers the following question: Which player is in the position of Guard/Forward?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (name VARCHAR, position VARCHAR)
SELECT name FROM table_name_67 WHERE position = "guard/forward"
Write a SQL query that answers the following question: What is the most wins associated with under 4 events with 0 top-5s?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (wins INTEGER, top_5 VARCHAR, events VARCHAR)
SELECT MAX(wins) FROM table_name_38 WHERE top_5 > 0 AND events < 4
Write a SQL query that answers the following question: What is the average number of events having 1 top-10, fewer than 4 cuts made, and 0 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (events INTEGER, cuts_made VARCHAR, top_10 VARCHAR, wins VARCHAR)
SELECT AVG(events) FROM table_name_98 WHERE top_10 = 1 AND wins > 0 AND cuts_made < 4
Write a SQL query that answers the following question: What is the average number of wins for events larger than 28?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (wins INTEGER, events INTEGER)
SELECT AVG(wins) FROM table_name_22 WHERE events > 28
Write a SQL query that answers the following question: What is the sum of top-25s for events with more than 1 top-5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (top_25 INTEGER, top_5 INTEGER)
SELECT SUM(top_25) FROM table_name_71 WHERE top_5 > 1
Write a SQL query that answers the following question: Who is the producer of city sharks?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (producer VARCHAR, title VARCHAR)
SELECT producer FROM table_name_57 WHERE title = "city sharks"