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