answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT SUM(wins) FROM table_name_19 WHERE goals_against < 21
CREATE TABLE table_name_19 (wins INTEGER, goals_against INTEGER)
What is the total wins with less than 21 goals taken?
SELECT date FROM table_name_96 WHERE game = 59
CREATE TABLE table_name_96 (date VARCHAR, game VARCHAR)
What is the date of game 59?
SELECT player FROM table_name_16 WHERE position = "lock" AND caps = 1
CREATE TABLE table_name_16 (player VARCHAR, position VARCHAR, caps VARCHAR)
What player is a lock with 1 cap?
SELECT position FROM table_name_41 WHERE club_province = "newport gwent dragons" AND caps < 87 AND player = "ceri sweeney"
CREATE TABLE table_name_41 (position VARCHAR, player VARCHAR, club_province VARCHAR, caps VARCHAR)
What position does ceri sweeney with under 87 caps of the newport gwent dragons play?
SELECT player FROM table_name_36 WHERE caps = 12
CREATE TABLE table_name_36 (player VARCHAR, caps VARCHAR)
What player has 12 caps?
SELECT shuji_kondo FROM table_name_90 WHERE mazada = "x" AND ryuji_hijikata = "hijikata (14:24)"
CREATE TABLE table_name_90 (shuji_kondo VARCHAR, mazada VARCHAR, ryuji_hijikata VARCHAR)
Tell me the Shuji Kondo for MAZADA of X with Ryuji Hijikata of hijikata (14:24)
SELECT el_samurai FROM table_name_30 WHERE mazada = "x" AND ryuji_hijikata = "draw (30:00)"
CREATE TABLE table_name_30 (el_samurai VARCHAR, mazada VARCHAR, ryuji_hijikata VARCHAR)
Name the El samurai with MAZADA of x for Ryuji Hijikata of draw (30:00)
SELECT mazada FROM table_name_67 WHERE el_samurai = "mazada (16:22)"
CREATE TABLE table_name_67 (mazada VARCHAR, el_samurai VARCHAR)
Name the MAZADA for El Samurai of mazada (16:22)
SELECT shuji_kondo FROM table_name_61 WHERE mazada = "hijikata (14:24)"
CREATE TABLE table_name_61 (shuji_kondo VARCHAR, mazada VARCHAR)
Name the Shuji Kondo for MAZADA of hijikata (14:24)
SELECT SUM(withdrawn) FROM table_name_78 WHERE builder = "ac cars" AND introduced < 1958
CREATE TABLE table_name_78 (withdrawn INTEGER, builder VARCHAR, introduced VARCHAR)
when was the building withdrawn when the builder was ac cars and was introduced before 1958?
SELECT decision FROM table_name_44 WHERE date = "october 5"
CREATE TABLE table_name_44 (decision VARCHAR, date VARCHAR)
What was the decision on october 5?
SELECT home_team FROM table_name_41 WHERE venue = "victoria park"
CREATE TABLE table_name_41 (home_team VARCHAR, venue VARCHAR)
Who played home team at Victoria Park?
SELECT season FROM table_name_34 WHERE goals > 0 AND apps < 33
CREATE TABLE table_name_34 (season VARCHAR, goals VARCHAR, apps VARCHAR)
What Season has Goals greater than 0 and less than 33 Apps?
SELECT SUM(car) FROM table_name_65 WHERE avg = 4.7 AND long > 30
CREATE TABLE table_name_65 (car INTEGER, avg VARCHAR, long VARCHAR)
How many carries for the RB averaging 4.7, and a long of over 30 yards?
SELECT MIN(avg) FROM table_name_43 WHERE player = "kevin swayne" AND long > 7
CREATE TABLE table_name_43 (avg INTEGER, player VARCHAR, long VARCHAR)
How many yards did kevin swayne average, with a long carry over 7?
SELECT catalogue FROM table_name_59 WHERE song_title = "harbor lights"
CREATE TABLE table_name_59 (catalogue VARCHAR, song_title VARCHAR)
What is the catalogue for Harbor Lights as a title?
SELECT catalogue FROM table_name_51 WHERE track = 27
CREATE TABLE table_name_51 (catalogue VARCHAR, track VARCHAR)
What cataglogue has 27 tracks?
SELECT first_year_played FROM table_name_12 WHERE doubles_w_l = "8–3"
CREATE TABLE table_name_12 (first_year_played VARCHAR, doubles_w_l VARCHAR)
Which year first played with Double W-L of 8–3?
SELECT height_ft___m FROM table_name_28 WHERE year > 1983 AND name = "phoenix tower"
CREATE TABLE table_name_28 (height_ft___m VARCHAR, year VARCHAR, name VARCHAR)
What is the height that has a year after 1983 and is named Phoenix Tower?
SELECT MIN(year) FROM table_name_87 WHERE name = "1500 louisiana street"
CREATE TABLE table_name_87 (year INTEGER, name VARCHAR)
What is the oldest year listed with the 1500 Louisiana Street name?
SELECT height_ft___m FROM table_name_32 WHERE rank = "11"
CREATE TABLE table_name_32 (height_ft___m VARCHAR, rank VARCHAR)
What is the Height of rank 11?
SELECT MAX(enrolment) FROM table_name_82 WHERE denomination = "anglican" AND day_boarding = "day" AND founded > 1929
CREATE TABLE table_name_82 (enrolment INTEGER, founded VARCHAR, denomination VARCHAR, day_boarding VARCHAR)
What is the largest enrollment for anglican day schools founded after 1929?
SELECT city_of_license FROM table_name_44 WHERE call_sign = "w244bk"
CREATE TABLE table_name_44 (city_of_license VARCHAR, call_sign VARCHAR)
What city of license is associated with call sign w244bk?
SELECT city_of_license FROM table_name_52 WHERE frequency_mhz < 107.7 AND call_sign = "w247aq"
CREATE TABLE table_name_52 (city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR)
What city of license has a Frequency under 107.7, and a call sign of w247aq?
SELECT team FROM table_name_19 WHERE high_assists = "earl watson (6)" AND date = "january 19"
CREATE TABLE table_name_19 (team VARCHAR, high_assists VARCHAR, date VARCHAR)
Which team was played against on the game where Earl Watson (6) had the highest assists on January 19?
SELECT singular_word FROM table_name_18 WHERE singular_abbreviation = "p."
CREATE TABLE table_name_18 (singular_word VARCHAR, singular_abbreviation VARCHAR)
A singular abbreviation of p. is used for what singular word?
SELECT singular_word FROM table_name_82 WHERE plural_abbreviation = "pp."
CREATE TABLE table_name_82 (singular_word VARCHAR, plural_abbreviation VARCHAR)
A plural abbreviation of pp. is used for what singular word?
SELECT singular_word FROM table_name_24 WHERE plural_word = "hands"
CREATE TABLE table_name_24 (singular_word VARCHAR, plural_word VARCHAR)
The plural word of hands uses what singular word?
SELECT plural_abbreviation FROM table_name_21 WHERE plural_word = "following lines or pages"
CREATE TABLE table_name_21 (plural_abbreviation VARCHAR, plural_word VARCHAR)
The plural word of following lines or pages has what plural abbreviation?
SELECT plural_word FROM table_name_94 WHERE plural_abbreviation = "ll."
CREATE TABLE table_name_94 (plural_word VARCHAR, plural_abbreviation VARCHAR)
The plural abbreviation of ll. uses what plural word?
SELECT plural_word FROM table_name_20 WHERE singular_word = "hand"
CREATE TABLE table_name_20 (plural_word VARCHAR, singular_word VARCHAR)
The singular word of hand uses what plural word?
SELECT home_team AS score FROM table_name_76 WHERE home_team = "st kilda"
CREATE TABLE table_name_76 (home_team VARCHAR)
How much did the home team st kilda score?
SELECT away_team AS score FROM table_name_84 WHERE crowd > 7 OFFSET 500
CREATE TABLE table_name_84 (away_team VARCHAR, crowd INTEGER)
When the crowd was larger than 7,500 what was the away teams score?
SELECT COUNT(crowd) FROM table_name_42 WHERE venue = "junction oval"
CREATE TABLE table_name_42 (crowd VARCHAR, venue VARCHAR)
What's the total number of people to attend games at junction oval?
SELECT COUNT(crowd) FROM table_name_62 WHERE venue = "victoria park"
CREATE TABLE table_name_62 (crowd VARCHAR, venue VARCHAR)
How many people have attended victoria park?
SELECT number_of_votes FROM table_name_79 WHERE election = 1941
CREATE TABLE table_name_79 (number_of_votes VARCHAR, election VARCHAR)
How many people voted in the election of 1941?
SELECT candidate FROM table_name_99 WHERE outcome_of_election = "lost" AND number_of_votes = "770,046"
CREATE TABLE table_name_99 (candidate VARCHAR, outcome_of_election VARCHAR, number_of_votes VARCHAR)
Which candidate lost the election that 770,046 people voted in?
SELECT candidate FROM table_name_82 WHERE share_of_votes = "61.47%"
CREATE TABLE table_name_82 (candidate VARCHAR, share_of_votes VARCHAR)
Which candidate won 61.47% of the votes?
SELECT share_of_votes FROM table_name_26 WHERE election = 1969
CREATE TABLE table_name_26 (share_of_votes VARCHAR, election VARCHAR)
What percentage of votes did the candidate win in the election of 1969?
SELECT gwr_nos FROM table_name_79 WHERE quantity < 2 AND m & swj_nos = "9"
CREATE TABLE table_name_79 (gwr_nos VARCHAR, quantity VARCHAR, m VARCHAR, swj_nos VARCHAR)
Which GWR numbers had a quantity less than 2 when the M&SWJ number was 9?
SELECT manufacturer FROM table_name_68 WHERE type = "2-6-0"
CREATE TABLE table_name_68 (manufacturer VARCHAR, type VARCHAR)
Which manucfaturer's type was 2-6-0?
SELECT score FROM table_name_61 WHERE record = "14–10–2"
CREATE TABLE table_name_61 (score VARCHAR, record VARCHAR)
What was the score of the game when the Devils had a record of 14–10–2?
SELECT date FROM table_name_49 WHERE record = "21–14–3"
CREATE TABLE table_name_49 (date VARCHAR, record VARCHAR)
What was the date of the game when the Devils had a record of 21–14–3?
SELECT distance FROM table_name_7 WHERE winning_horse = "summer doldrums"
CREATE TABLE table_name_7 (distance VARCHAR, winning_horse VARCHAR)
What distance did the winning horse run in the Summer Doldrums.
SELECT winning_horse FROM table_name_81 WHERE winning_jockey = "rafael bejarano"
CREATE TABLE table_name_81 (winning_horse VARCHAR, winning_jockey VARCHAR)
Who is the jockey for the winning horse Rafael Bejarano?
SELECT track FROM table_name_29 WHERE distance = "6 furlongs" AND race = "spectacular bid stakes"
CREATE TABLE table_name_29 (track VARCHAR, distance VARCHAR, race VARCHAR)
What is the race with the track distance of 6 furlongs and spectacular bid stakes?
SELECT race FROM table_name_57 WHERE winning_horse = "dominican" AND distance = "1-1/16 miles"
CREATE TABLE table_name_57 (race VARCHAR, winning_horse VARCHAR, distance VARCHAR)
what race did Dominican win with a distance of 1-1/16 miles?
SELECT tournament FROM table_name_66 WHERE result = "1st" AND year > 1973
CREATE TABLE table_name_66 (tournament VARCHAR, result VARCHAR, year VARCHAR)
What tournament since 1973 has a result of 1st?
SELECT tournament FROM table_name_31 WHERE extra = "400 m hurdles"
CREATE TABLE table_name_31 (tournament VARCHAR, extra VARCHAR)
In what tournament was there an extra of 400 m hurdles?
SELECT result FROM table_name_97 WHERE year = 1973
CREATE TABLE table_name_97 (result VARCHAR, year VARCHAR)
What was the Result in Year 1973?
SELECT year FROM table_name_95 WHERE extra = "800 m" AND tournament = "european indoor championships" AND result = "2nd"
CREATE TABLE table_name_95 (year VARCHAR, result VARCHAR, extra VARCHAR, tournament VARCHAR)
In which year was the Tournament of european indoor championships played where the Extra was 800 m and the Result was 2nd?
SELECT player FROM table_name_29 WHERE hometown = "chula vista, ca"
CREATE TABLE table_name_29 (player VARCHAR, hometown VARCHAR)
What player is from Chula Vista, Ca?
SELECT mlb_draft FROM table_name_80 WHERE player = "shaun boyd"
CREATE TABLE table_name_80 (mlb_draft VARCHAR, player VARCHAR)
What MLB draft has Shaun Boyd?
SELECT college_junior_club_team__league_ FROM table_name_96 WHERE round > 2 AND player = "bert robertsson (d)"
CREATE TABLE table_name_96 (college_junior_club_team__league_ VARCHAR, round VARCHAR, player VARCHAR)
what is the college/junior/club team (league) when the round is more than 2 and the player is bert robertsson (d)?
SELECT college_junior_club_team__league_ FROM table_name_82 WHERE round < 7
CREATE TABLE table_name_82 (college_junior_club_team__league_ VARCHAR, round INTEGER)
what is the college/junior/club team (league) when the round is less than 7?
SELECT nhl_team FROM table_name_92 WHERE round = 10
CREATE TABLE table_name_92 (nhl_team VARCHAR, round VARCHAR)
what is the nhl team for round 10?
SELECT MAX(round) FROM table_name_90 WHERE player = "troy creurer (d)"
CREATE TABLE table_name_90 (round INTEGER, player VARCHAR)
what is the highest round when the player is troy creurer (d)?
SELECT opponent FROM table_name_10 WHERE week = 3
CREATE TABLE table_name_10 (opponent VARCHAR, week VARCHAR)
Who was the opponent on week 3?
SELECT chapter FROM table_name_65 WHERE location = "normal, illinois"
CREATE TABLE table_name_65 (chapter VARCHAR, location VARCHAR)
What chapter is located in Normal, Illinois?
SELECT AVG(pos) FROM table_name_79 WHERE league = "tb2l" AND postseason = "promoted champion"
CREATE TABLE table_name_79 (pos INTEGER, league VARCHAR, postseason VARCHAR)
What is the average position for tb2l teams promoted champion?
SELECT COUNT(pos) FROM table_name_51 WHERE postseason = "promoted" AND tier < 2
CREATE TABLE table_name_51 (pos VARCHAR, postseason VARCHAR, tier VARCHAR)
How many teams were promoted in the postseason in a tier above 2?
SELECT home_team AS score FROM table_name_48 WHERE venue = "windy hill"
CREATE TABLE table_name_48 (home_team VARCHAR, venue VARCHAR)
What is the Home team score At Windy Hill?
SELECT partner FROM table_name_10 WHERE score_in_the_final = "2–6, 7–6, 7–6"
CREATE TABLE table_name_10 (partner VARCHAR, score_in_the_final VARCHAR)
Who is the partner in the final with a score of 2–6, 7–6, 7–6?
SELECT surface FROM table_name_66 WHERE outcome = "runner-up" AND partner = "ivan lendl" AND score_in_the_final = "2–6, 6–7"
CREATE TABLE table_name_66 (surface VARCHAR, score_in_the_final VARCHAR, outcome VARCHAR, partner VARCHAR)
On what surface was Ivan Lendl a partner with a runner-up outcome and final score of 2–6, 6–7?
SELECT MAX(crowd) FROM table_name_97 WHERE venue = "mcg"
CREATE TABLE table_name_97 (crowd INTEGER, venue VARCHAR)
What was the highest crowd at the venue MCG?
SELECT away_team AS score FROM table_name_8 WHERE venue = "windy hill"
CREATE TABLE table_name_8 (away_team VARCHAR, venue VARCHAR)
What is the away team score at the Windy Hill venue?
SELECT venue FROM table_name_53 WHERE away_team = "melbourne"
CREATE TABLE table_name_53 (venue VARCHAR, away_team VARCHAR)
Where was the game when Melbourne was the away team?
SELECT away_team AS score FROM table_name_70 WHERE venue = "brunswick street oval"
CREATE TABLE table_name_70 (away_team VARCHAR, venue VARCHAR)
What was the away score when the game was at Brunswick Street Oval?
SELECT COUNT(round) FROM table_name_28 WHERE circuit = "calder park"
CREATE TABLE table_name_28 (round VARCHAR, circuit VARCHAR)
How many rounds were run at Calder Park?
SELECT state FROM table_name_74 WHERE circuit = "sandown"
CREATE TABLE table_name_74 (state VARCHAR, circuit VARCHAR)
In which state can you find the Sandown circuit?
SELECT COUNT(round) FROM table_name_84 WHERE state = "new south wales"
CREATE TABLE table_name_84 (round VARCHAR, state VARCHAR)
How many rounds were run in New South Wales?
SELECT driver FROM table_name_42 WHERE year = "1969"
CREATE TABLE table_name_42 (driver VARCHAR, year VARCHAR)
Who is the driver from 1969?
SELECT driver FROM table_name_83 WHERE year = "1964"
CREATE TABLE table_name_83 (driver VARCHAR, year VARCHAR)
Who was the driver in 1964?
SELECT MAX(diff) FROM table_name_68 WHERE drawn = 6 AND played > 18
CREATE TABLE table_name_68 (diff INTEGER, drawn VARCHAR, played VARCHAR)
What is the highest diff with drawn of 6 and play larger than 18?
SELECT SUM(played) FROM table_name_85 WHERE lost < 5 AND points > 41
CREATE TABLE table_name_85 (played INTEGER, lost VARCHAR, points VARCHAR)
How many games were played when the loss is less than 5 and points greater than 41?
SELECT genes FROM table_name_13 WHERE species = "burkholderia pseudomallei" AND base_pairs = "4,126,292"
CREATE TABLE table_name_13 (genes VARCHAR, species VARCHAR, base_pairs VARCHAR)
How many genes are in species burkholderia pseudomallei with 4,126,292 base pairs?
SELECT strain FROM table_name_50 WHERE genes = "1,312"
CREATE TABLE table_name_50 (strain VARCHAR, genes VARCHAR)
Which strain has 1,312 genes?
SELECT genes FROM table_name_94 WHERE base_pairs = "4,895,836"
CREATE TABLE table_name_94 (genes VARCHAR, base_pairs VARCHAR)
Which gene has 4,895,836 base pairs?
SELECT species FROM table_name_58 WHERE genes = "3,441"
CREATE TABLE table_name_58 (species VARCHAR, genes VARCHAR)
Which species has 3,441 genes?
SELECT base_pairs FROM table_name_90 WHERE strain = "tohamai"
CREATE TABLE table_name_90 (base_pairs VARCHAR, strain VARCHAR)
How many base pairs are there in the tohamai strain?
SELECT home_team AS score FROM table_name_86 WHERE venue = "junction oval"
CREATE TABLE table_name_86 (home_team VARCHAR, venue VARCHAR)
What was the home team score at junction oval?
SELECT away_team AS score FROM table_name_46 WHERE venue = "western oval"
CREATE TABLE table_name_46 (away_team VARCHAR, venue VARCHAR)
What was the away team score at western oval?
SELECT MIN(crowd) FROM table_name_50 WHERE venue = "kardinia park"
CREATE TABLE table_name_50 (crowd INTEGER, venue VARCHAR)
what is the lowest crowd at kardinia park
SELECT score FROM table_name_14 WHERE tournament = "budapest"
CREATE TABLE table_name_14 (score VARCHAR, tournament VARCHAR)
What was the score for the tournament in Budapest?
SELECT tournament FROM table_name_96 WHERE winner = "patrick rafter"
CREATE TABLE table_name_96 (tournament VARCHAR, winner VARCHAR)
Which tournament did Patrick Rafter win?
SELECT winner FROM table_name_60 WHERE score = "6–7(4), 7–6(3), [11–9]"
CREATE TABLE table_name_60 (winner VARCHAR, score VARCHAR)
Which winner won by a score of 6–7(4), 7–6(3), [11–9]?
SELECT score FROM table_name_53 WHERE runner_up = "goran ivaniőević" AND tournament = "algarve"
CREATE TABLE table_name_53 (score VARCHAR, runner_up VARCHAR, tournament VARCHAR)
what was the score when goran ivaniőević was runner up and the tournament was in algarve?
SELECT score FROM table_name_64 WHERE winner = "stefan edberg"
CREATE TABLE table_name_64 (score VARCHAR, winner VARCHAR)
What was the score when Stefan Edberg won?
SELECT date FROM table_name_42 WHERE away_team = "south melbourne"
CREATE TABLE table_name_42 (date VARCHAR, away_team VARCHAR)
Which Date has an Away team of south melbourne?
SELECT away_team AS score FROM table_name_26 WHERE venue = "mcg"
CREATE TABLE table_name_26 (away_team VARCHAR, venue VARCHAR)
What is the Away team score for mcg?
SELECT SUM(crowd) FROM table_name_98 WHERE home_team = "collingwood"
CREATE TABLE table_name_98 (crowd INTEGER, home_team VARCHAR)
What is the total Crowd with a Home team of collingwood?
SELECT away_team FROM table_name_99 WHERE venue = "mcg"
CREATE TABLE table_name_99 (away_team VARCHAR, venue VARCHAR)
When mcg is the Venue what's the Away team?
SELECT crowd FROM table_name_1 WHERE date = "19 july 1980" AND away_team = "footscray"
CREATE TABLE table_name_1 (crowd VARCHAR, date VARCHAR, away_team VARCHAR)
When the Away team footscray played on the Date of 19 july 1980, what was the amount of people in the Crowd?
SELECT away_team AS score FROM table_name_49 WHERE home_team = "collingwood"
CREATE TABLE table_name_49 (away_team VARCHAR, home_team VARCHAR)
When the Home team of collingwood played, what was the opposing Away team score?
SELECT home_team FROM table_name_65 WHERE crowd > 23 OFFSET 327
CREATE TABLE table_name_65 (home_team VARCHAR, crowd INTEGER)
When the Crowd is larger than 23,327, what Home team is playing?
SELECT away_team FROM table_name_81 WHERE venue = "vfl park"
CREATE TABLE table_name_81 (away_team VARCHAR, venue VARCHAR)
When vfl park is the venue what's the Away team playing?
SELECT date FROM table_name_71 WHERE home_team = "collingwood"
CREATE TABLE table_name_71 (date VARCHAR, home_team VARCHAR)
If collingwood was the Home team, what Date did they play?
SELECT club FROM table_name_4 WHERE capacity = "25138"
CREATE TABLE table_name_4 (club VARCHAR, capacity VARCHAR)
Which club has a capacity of 25138?
SELECT Rank IN Respective AS divisions FROM table_name_60 WHERE capacity = "4100"
CREATE TABLE table_name_60 (Rank VARCHAR, capacity VARCHAR)
What Rank in Respective Divisions has a capacity of 4100?
SELECT stadium FROM table_name_76 WHERE club = "west ham united"
CREATE TABLE table_name_76 (stadium VARCHAR, club VARCHAR)
What stadium has a club of west ham united?