answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT date_of_birth__age_ FROM table_name_57 WHERE caps = "3" AND name = "gabriel quak jun yi" | CREATE TABLE table_name_57 (date_of_birth__age_ VARCHAR, caps VARCHAR, name VARCHAR) | What is the date of birth and age of Gabriel Quak Jun Yi with 3 caps? |
SELECT club FROM table_name_80 WHERE name = "hafiz abu sujad" | CREATE TABLE table_name_80 (club VARCHAR, name VARCHAR) | Which club is associated with Hafiz Abu Sujad? |
SELECT SUM(rank) FROM table_name_45 WHERE nation = "west germany" AND bronze > 0 | CREATE TABLE table_name_45 (rank INTEGER, nation VARCHAR, bronze VARCHAR) | What is the sum of a rank whose nation is West Germany and has bronze larger than 0? |
SELECT COUNT(bronze) FROM table_name_52 WHERE total < 3 AND nation = "poland" AND rank > 4 | CREATE TABLE table_name_52 (bronze VARCHAR, rank VARCHAR, total VARCHAR, nation VARCHAR) | What is the total of Bronze with a total smaller than 3, and a nation of Poland, and a rank larger than 4? |
SELECT money_spent, _2q FROM table_name_69 WHERE total_receipts = "$1,117,566" | CREATE TABLE table_name_69 (money_spent VARCHAR, _2q VARCHAR, total_receipts VARCHAR) | How much money was spent in 2Q when the total receipts were $1,117,566? |
SELECT money_raised, _2q FROM table_name_28 WHERE total_receipts = "$63,075,927" | CREATE TABLE table_name_28 (money_raised VARCHAR, _2q VARCHAR, total_receipts VARCHAR) | How much money was raised in the 2Q when the total receipts were $63,075,927? |
SELECT AVG(laps) FROM table_name_4 WHERE driver = "peter gethin" AND grid < 25 | CREATE TABLE table_name_4 (laps INTEGER, driver VARCHAR, grid VARCHAR) | When the driver peter gethin has a grid less than 25, what is the average number of laps? |
SELECT AVG(laps) FROM table_name_96 WHERE time_retired = "+ 2 laps" AND driver = "mike hailwood" AND grid > 12 | CREATE TABLE table_name_96 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, driver VARCHAR) | When the driver mike hailwood has a grid greater than 12 and a Time/Retired of + 2 laps, what is the average number of laps? |
SELECT home_team AS score FROM table_name_43 WHERE away_team = "south melbourne" | CREATE TABLE table_name_43 (home_team VARCHAR, away_team VARCHAR) | Which team was the home team when playing South Melbourne? |
SELECT home_team AS score FROM table_name_48 WHERE away_team = "richmond" | CREATE TABLE table_name_48 (home_team VARCHAR, away_team VARCHAR) | What did the home team when they played Richmond? |
SELECT stage_reached FROM table_name_23 WHERE venue = "edmonton green" | CREATE TABLE table_name_23 (stage_reached VARCHAR, venue VARCHAR) | What is the stage reached for venue edmonton green? |
SELECT AVG(round) FROM table_name_64 WHERE club_team = "garmisch-partenkirchen riessersee sc (germany 2)" | CREATE TABLE table_name_64 (round INTEGER, club_team VARCHAR) | What is the average round for Club team of garmisch-partenkirchen riessersee sc (germany 2)? |
SELECT player FROM table_name_15 WHERE opponent = "st kilda" AND team = "richmond" | CREATE TABLE table_name_15 (player VARCHAR, opponent VARCHAR, team VARCHAR) | What richmond player played against st kilda? |
SELECT player FROM table_name_66 WHERE year = 2000 | CREATE TABLE table_name_66 (player VARCHAR, year VARCHAR) | What player played in 2000? |
SELECT year FROM table_name_77 WHERE opponent = "geelong" AND player = "john roberts" | CREATE TABLE table_name_77 (year VARCHAR, opponent VARCHAR, player VARCHAR) | What year for geelong player john roberts? |
SELECT authority FROM table_name_7 WHERE roll = 40 | CREATE TABLE table_name_7 (authority VARCHAR, roll VARCHAR) | What's the authority when the roll is 40? |
SELECT authority FROM table_name_79 WHERE roll < 234 AND area = "massey east" | CREATE TABLE table_name_79 (authority VARCHAR, roll VARCHAR, area VARCHAR) | What's the authority when the roll is less than 234 for the massey east area? |
SELECT roll FROM table_name_66 WHERE decile > 6 AND name = "summerland primary" | CREATE TABLE table_name_66 (roll VARCHAR, decile VARCHAR, name VARCHAR) | What's the roll for summerland primary when decile is over 6? |
SELECT name FROM table_name_22 WHERE delivered = "1839/08" | CREATE TABLE table_name_22 (name VARCHAR, delivered VARCHAR) | What is the name where the delivered date is 1839/08? |
SELECT original_us_air_date FROM table_name_80 WHERE original_canadian_air_date = "december 9, 2007" | CREATE TABLE table_name_80 (original_us_air_date VARCHAR, original_canadian_air_date VARCHAR) | What is the Original U.S. air-date for the Original Canadian air-date of december 9, 2007? |
SELECT original_canadian_air_date FROM table_name_98 WHERE director = "michael tolkin" | CREATE TABLE table_name_98 (original_canadian_air_date VARCHAR, director VARCHAR) | What is the Original Canadian air-date that was directed by Michael Tolkin? |
SELECT original_canadian_air_date FROM table_name_25 WHERE director = "mark rydell" | CREATE TABLE table_name_25 (original_canadian_air_date VARCHAR, director VARCHAR) | What was the Original Canadian air-date for the episode directed by mark rydell? |
SELECT home_team FROM table_name_71 WHERE venue = "junction oval" | CREATE TABLE table_name_71 (home_team VARCHAR, venue VARCHAR) | Which home team's venue is junction oval? |
SELECT venue FROM table_name_56 WHERE away_team = "melbourne" | CREATE TABLE table_name_56 (venue VARCHAR, away_team VARCHAR) | Which venue was melbourne the away team of? |
SELECT home_team AS score FROM table_name_39 WHERE away_team = "footscray" | CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR) | What was the home teams score against the away team footscray? |
SELECT AVG(long) FROM table_name_18 WHERE player = "ramon richardson" AND avg > 5.5 | CREATE TABLE table_name_18 (long INTEGER, player VARCHAR, avg VARCHAR) | What is the average long that Ramon Richardson played and an average greater than 5.5? |
SELECT MIN(yards) FROM table_name_56 WHERE avg < 3 | CREATE TABLE table_name_56 (yards INTEGER, avg INTEGER) | Which has and average less than 3 and the lowest yards? |
SELECT AVG(rec) FROM table_name_2 WHERE yards = 40 AND avg > 10 | CREATE TABLE table_name_2 (rec INTEGER, yards VARCHAR, avg VARCHAR) | What is the average rec that is greater than 10 and has 40 yards? |
SELECT high_assists FROM table_name_52 WHERE game = 31 | CREATE TABLE table_name_52 (high_assists VARCHAR, game VARCHAR) | What was the high assists for game 31? |
SELECT team FROM table_name_79 WHERE game = 39 | CREATE TABLE table_name_79 (team VARCHAR, game VARCHAR) | What team played in game 39? |
SELECT location_attendance FROM table_name_30 WHERE game = 42 | CREATE TABLE table_name_30 (location_attendance VARCHAR, game VARCHAR) | How many people attended game 42? |
SELECT MAX(total) FROM table_name_40 WHERE sport = "shooting" AND bronze < 0 | CREATE TABLE table_name_40 (total INTEGER, sport VARCHAR, bronze VARCHAR) | What is the highest Shooting Total with a Bronze less than 0? |
SELECT MIN(silver) FROM table_name_77 WHERE bronze > 1 AND sport = "total" AND gold < 1 | CREATE TABLE table_name_77 (silver INTEGER, gold VARCHAR, bronze VARCHAR, sport VARCHAR) | What is the lowest Silver in the Total Sport has less than 1 Gold and more than 1 Bronze? |
SELECT AVG(bronze) FROM table_name_9 WHERE sport = "football" AND silver > 1 | CREATE TABLE table_name_9 (bronze INTEGER, sport VARCHAR, silver VARCHAR) | What is the football Bronze with more than 1 Silver? |
SELECT AVG(silver) FROM table_name_74 WHERE total > 1 AND gold = 1 AND bronze > 2 | CREATE TABLE table_name_74 (silver INTEGER, bronze VARCHAR, total VARCHAR, gold VARCHAR) | With 1 Gold, more than 2 Bronze and Total greater than 1, what is the Silver? |
SELECT AVG(total) FROM table_name_86 WHERE silver > 1 AND sport = "total" AND gold > 1 | CREATE TABLE table_name_86 (total INTEGER, gold VARCHAR, silver VARCHAR, sport VARCHAR) | With more than 1 Gold and Silver and Total Sport, what is the Total? |
SELECT year FROM table_name_78 WHERE distance_duration = "44 laps" AND driver = "robin buck" | CREATE TABLE table_name_78 (year VARCHAR, distance_duration VARCHAR, driver VARCHAR) | What year does robin buck go 44 laps? |
SELECT COUNT(year) FROM table_name_94 WHERE team = "wal-mart / tide" | CREATE TABLE table_name_94 (year VARCHAR, team VARCHAR) | How many years does Team wal-mart / tide participate? |
SELECT score FROM table_name_65 WHERE result = "11–0" | CREATE TABLE table_name_65 (score VARCHAR, result VARCHAR) | Which score has a Result of 11–0? |
SELECT result FROM table_name_23 WHERE score = "1–1" | CREATE TABLE table_name_23 (result VARCHAR, score VARCHAR) | Which result has a Score of 1–1? |
SELECT score FROM table_name_73 WHERE result = "11–0" | CREATE TABLE table_name_73 (score VARCHAR, result VARCHAR) | Which score has a Result of 11–0? |
SELECT score FROM table_name_40 WHERE record = "11-32-11" | CREATE TABLE table_name_40 (score VARCHAR, record VARCHAR) | What is the score of the game with an 11-32-11 record? |
SELECT home FROM table_name_33 WHERE visitor = "new jersey" AND record = "11-35-12" | CREATE TABLE table_name_33 (home VARCHAR, visitor VARCHAR, record VARCHAR) | What is the home team of the game where New Jersey was the visitor team and the record was 11-35-12? |
SELECT visitor FROM table_name_74 WHERE home = "chicago" | CREATE TABLE table_name_74 (visitor VARCHAR, home VARCHAR) | What is the visitor team of the game with Chicago as the home team? |
SELECT score FROM table_name_25 WHERE visitor = "new jersey" AND date = "february 27" | CREATE TABLE table_name_25 (score VARCHAR, visitor VARCHAR, date VARCHAR) | What is the score of the game on February 27 with New Jersey as the visitor team? |
SELECT home FROM table_name_72 WHERE date = "february 3" | CREATE TABLE table_name_72 (home VARCHAR, date VARCHAR) | What is the home team of the game on February 3? |
SELECT visitor FROM table_name_29 WHERE home = "buffalo" | CREATE TABLE table_name_29 (visitor VARCHAR, home VARCHAR) | Who is the visitor team of the game where Buffalo was the home team? |
SELECT driver FROM table_name_98 WHERE grid = 18 | CREATE TABLE table_name_98 (driver VARCHAR, grid VARCHAR) | What driver has grid number 18? |
SELECT time_retired FROM table_name_72 WHERE laps < 70 AND grid > 15 AND driver = "timo glock" | CREATE TABLE table_name_72 (time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR) | What is the time or retired time for timo glock with under 70 laps and a grid number greater than 15? |
SELECT SUM(area_in_km²) FROM table_name_68 WHERE original_name = "kecamatan bogor timur" AND number_of_settlements_and_villages > 6 | CREATE TABLE table_name_68 (area_in_km² INTEGER, original_name VARCHAR, number_of_settlements_and_villages VARCHAR) | Kecamatan Bogor Timur has more than 6 villages, what is the area in km²? |
SELECT SUM(area_in_km²) FROM table_name_78 WHERE original_name = "kecamatan bogor tengah" AND number_of_settlements_and_villages < 11 | CREATE TABLE table_name_78 (area_in_km² INTEGER, original_name VARCHAR, number_of_settlements_and_villages VARCHAR) | There are less than 11 settlements in Kecamatan Bogor Tengah, what is the area in km²? |
SELECT AVG(gold) FROM table_name_9 WHERE nation = "luxembourg" | CREATE TABLE table_name_9 (gold INTEGER, nation VARCHAR) | Luxembourg received how many gold medals? |
SELECT SUM(tonnage) FROM table_name_73 WHERE type_of_ship = "twin screw ro-ro motorship" AND date_entered_service = "11 february 1983" | CREATE TABLE table_name_73 (tonnage INTEGER, type_of_ship VARCHAR, date_entered_service VARCHAR) | what is the sum of tonnage when the type of ship is twin screw ro-ro motorship and the date entered service is 11 february 1983? |
SELECT MIN(tonnage) FROM table_name_21 WHERE date_entered_service = "11 february 1983" | CREATE TABLE table_name_21 (tonnage INTEGER, date_entered_service VARCHAR) | what is the least tonnage for the ship(s) that entered service on 11 february 1983? |
SELECT SUM(gold) FROM table_name_17 WHERE silver > 2 AND total = 12 | CREATE TABLE table_name_17 (gold INTEGER, silver VARCHAR, total VARCHAR) | What's the sum of gold where silver is more than 2 and the total is 12? |
SELECT MIN(gold) FROM table_name_16 WHERE total = 4 AND nation = "liechtenstein" AND silver < 2 | CREATE TABLE table_name_16 (gold INTEGER, silver VARCHAR, total VARCHAR, nation VARCHAR) | What's the lowest gold with a total of 4 and less than 2 silver for liechtenstein? |
SELECT COUNT(gold) FROM table_name_96 WHERE total < 23 AND rank > 10 | CREATE TABLE table_name_96 (gold VARCHAR, total VARCHAR, rank VARCHAR) | What's the total number of gold where the total is less than 23 and the rank is over 10? |
SELECT COUNT(total) FROM table_name_58 WHERE rank > 9 AND gold < 1 | CREATE TABLE table_name_58 (total VARCHAR, rank VARCHAR, gold VARCHAR) | What's the sum of total where the rank is over 9 and the gold is less than 1? |
SELECT SUM(location_attendance) FROM table_name_69 WHERE team = "timberwolves" | CREATE TABLE table_name_69 (location_attendance INTEGER, team VARCHAR) | What was the attendance number for the Timberwolves game? |
SELECT COUNT(crowd) FROM table_name_91 WHERE home_team = "richmond" | CREATE TABLE table_name_91 (crowd VARCHAR, home_team VARCHAR) | What is the combined of Crowd when richmond played at home? |
SELECT opponent FROM table_name_74 WHERE result = "3–6, 6–2, 4–6" | CREATE TABLE table_name_74 (opponent VARCHAR, result VARCHAR) | What opponent has a result of 3–6, 6–2, 4–6? |
SELECT date FROM table_name_2 WHERE edition = "1991 world group i" AND opponent = "li fang" | CREATE TABLE table_name_2 (date VARCHAR, edition VARCHAR, opponent VARCHAR) | When was the 1991 world group I with the opponent of Li Fang? |
SELECT surface FROM table_name_15 WHERE date = "july 15, 1984" | CREATE TABLE table_name_15 (surface VARCHAR, date VARCHAR) | On July 15, 1984 what surface was used? |
SELECT round FROM table_name_95 WHERE opponent = "mercedes paz" AND result = "4–6, 6–1, 6–3" | CREATE TABLE table_name_95 (round VARCHAR, opponent VARCHAR, result VARCHAR) | For what round was the opponent mercedes paz with a result of 4–6, 6–1, 6–3? |
SELECT surface FROM table_name_30 WHERE date = "july 17, 1983" | CREATE TABLE table_name_30 (surface VARCHAR, date VARCHAR) | What surface was used on July 17, 1983? |
SELECT result FROM table_name_58 WHERE date = "october 8, 1985" | CREATE TABLE table_name_58 (result VARCHAR, date VARCHAR) | What was the result on October 8, 1985? |
SELECT MAX(pick__number) FROM table_name_28 WHERE pl_gp > 55 | CREATE TABLE table_name_28 (pick__number INTEGER, pl_gp INTEGER) | Name the highest pick number for PI GP more than 55 |
SELECT MIN(rd__number) FROM table_name_13 WHERE pl_gp > 0 AND pick__number > 51 | CREATE TABLE table_name_13 (rd__number INTEGER, pl_gp VARCHAR, pick__number VARCHAR) | Name the least RD number that has PI GP more than 0 and pick # more than 51 |
SELECT date FROM table_name_34 WHERE away_team = "footscray" | CREATE TABLE table_name_34 (date VARCHAR, away_team VARCHAR) | What day did Footscray play as the away team? |
SELECT away_team AS score FROM table_name_40 WHERE home_team = "hawthorn" | CREATE TABLE table_name_40 (away_team VARCHAR, home_team VARCHAR) | What was Hawthorn's away teams opponents score? |
SELECT SUM(attendance) FROM table_name_83 WHERE date = "april 17" | CREATE TABLE table_name_83 (attendance INTEGER, date VARCHAR) | What was the attendance of april 17? |
SELECT loss FROM table_name_98 WHERE record = "21-34" | CREATE TABLE table_name_98 (loss VARCHAR, record VARCHAR) | What was the loss of the Mariners game when they had a record of 21-34? |
SELECT opponent FROM table_name_30 WHERE record = "33-45" | CREATE TABLE table_name_30 (opponent VARCHAR, record VARCHAR) | Who did the Mariners play when they had a record of 33-45? |
SELECT loss FROM table_name_96 WHERE record = "22-35" | CREATE TABLE table_name_96 (loss VARCHAR, record VARCHAR) | What was the loss of the Mariners game when they had a record of 22-35? |
SELECT record FROM table_name_65 WHERE attendance = "35,614" | CREATE TABLE table_name_65 (record VARCHAR, attendance VARCHAR) | What was the record for the game attended by 35,614 spectators? |
SELECT record FROM table_name_5 WHERE date = "april 8" | CREATE TABLE table_name_5 (record VARCHAR, date VARCHAR) | What is the record for April 8? |
SELECT attendance FROM table_name_53 WHERE record = "1-1" | CREATE TABLE table_name_53 (attendance VARCHAR, record VARCHAR) | What was the attendance for the game that has a record of 1-1? |
SELECT record FROM table_name_79 WHERE attendance = "35,305" | CREATE TABLE table_name_79 (record VARCHAR, attendance VARCHAR) | What is the record for the game with an attendance of 35,305? |
SELECT MIN(grid) FROM table_name_39 WHERE driver = "louis rosier" AND laps > 78 | CREATE TABLE table_name_39 (grid INTEGER, driver VARCHAR, laps VARCHAR) | what is the grid when the driver is louis rosier and the laps is more than 78? |
SELECT time_retired FROM table_name_51 WHERE driver = "toulo de graffenried" | CREATE TABLE table_name_51 (time_retired VARCHAR, driver VARCHAR) | what is the time/retired when the driver is toulo de graffenried? |
SELECT SUM(laps) FROM table_name_99 WHERE driver = "tony rolt" AND grid < 10 | CREATE TABLE table_name_99 (laps INTEGER, driver VARCHAR, grid VARCHAR) | what is the laps when the driver is tony rolt and the grid is less than 10? |
SELECT time_retired FROM table_name_74 WHERE constructor = "maserati" AND laps = 90 | CREATE TABLE table_name_74 (time_retired VARCHAR, constructor VARCHAR, laps VARCHAR) | what is the time/retired when the constructor is maserati and the laps is 90? |
SELECT AVG(attendance) FROM table_name_57 WHERE venue = "a" AND date = "16 october 2004" | CREATE TABLE table_name_57 (attendance INTEGER, venue VARCHAR, date VARCHAR) | What is the average Attendance at Venue A on 16 October 2004? |
SELECT MIN(attendance) FROM table_name_34 WHERE opponent = "middlesbrough" AND venue = "a" | CREATE TABLE table_name_34 (attendance INTEGER, opponent VARCHAR, venue VARCHAR) | What is the lowest Attendance when Middlesbrough played at Venue A? |
SELECT sponsor_s_ FROM table_name_18 WHERE _number_of_cosponsors < 200 AND date_introduced = "february 28, 2005" | CREATE TABLE table_name_18 (sponsor_s_ VARCHAR, _number_of_cosponsors VARCHAR, date_introduced VARCHAR) | Who was the sponsor for the bill introduced February 28, 2005 with cosponsors less than 200? |
SELECT MAX(year) FROM table_name_68 WHERE nominated_work = "herself" AND event = "mtv movie awards" | CREATE TABLE table_name_68 (year INTEGER, nominated_work VARCHAR, event VARCHAR) | What year was Herself nominated at the MTV Movie Awards? |
SELECT AVG(crowd) FROM table_name_84 WHERE home_team = "essendon" | CREATE TABLE table_name_84 (crowd INTEGER, home_team VARCHAR) | What is the average amount of spectators when Essendon played as the home team? |
SELECT away_team AS score FROM table_name_96 WHERE venue = "mcg" | CREATE TABLE table_name_96 (away_team VARCHAR, venue VARCHAR) | What did the away team score at MCG? |
SELECT venue FROM table_name_28 WHERE away_team = "geelong" | CREATE TABLE table_name_28 (venue VARCHAR, away_team VARCHAR) | Where was the game when Geelong was the away team? |
SELECT away_team FROM table_name_72 WHERE venue = "arden street oval" | CREATE TABLE table_name_72 (away_team VARCHAR, venue VARCHAR) | What team was the away team at Arden Street Oval? |
SELECT COUNT(diameter__km_) FROM table_name_71 WHERE latitude < 14 AND name = "xenia" AND longitude > 249.4 | CREATE TABLE table_name_71 (diameter__km_ VARCHAR, longitude VARCHAR, latitude VARCHAR, name VARCHAR) | What in Xenia's Diameter in km, with a latitude of 14 and a longitude of 249.4? |
SELECT AVG(latitude) FROM table_name_18 WHERE diameter__km_ < 12.8 AND longitude < 208 | CREATE TABLE table_name_18 (latitude INTEGER, diameter__km_ VARCHAR, longitude VARCHAR) | What is the latitude for a crater with a diameter of 12.8 km and a longitude of 208? |
SELECT runner_s__up FROM table_name_75 WHERE winning_score = 67 - 66 - 65 - 69 = 267 | CREATE TABLE table_name_75 (runner_s__up VARCHAR, winning_score VARCHAR) | Who was the Runner(s)-up in the race with a winning score of 67-66-65-69=267? |
SELECT date FROM table_name_9 WHERE tournament = "masters tournament" | CREATE TABLE table_name_9 (date VARCHAR, tournament VARCHAR) | When was the Masters Tournament? |
SELECT margin_of_victory FROM table_name_48 WHERE runner_s__up = "justin rose" | CREATE TABLE table_name_48 (margin_of_victory VARCHAR, runner_s__up VARCHAR) | What is the margin of victory in the race where Justin Rose was the runner-up? |
SELECT tournament FROM table_name_87 WHERE date = "7 aug 2011" | CREATE TABLE table_name_87 (tournament VARCHAR, date VARCHAR) | What tournament took place on 7 Aug 2011? |
SELECT day_2 FROM table_name_23 WHERE day_1 = "4:05.096" | CREATE TABLE table_name_23 (day_2 VARCHAR, day_1 VARCHAR) | For the team that had 4:05.096, what was their day 2? |
SELECT team FROM table_name_34 WHERE day_1 = "3:18.513" | CREATE TABLE table_name_34 (team VARCHAR, day_1 VARCHAR) | Which team had 3:18.513 on day 1? |
SELECT behind FROM table_name_26 WHERE class = "gt2" AND day_2 = "3:59.820" | CREATE TABLE table_name_26 (behind VARCHAR, class VARCHAR, day_2 VARCHAR) | For the team with a class of gt2 and 3:59.820 on day 2, what was the behind? |
SELECT team FROM table_name_78 WHERE day_2 = "3:47.761" | CREATE TABLE table_name_78 (team VARCHAR, day_2 VARCHAR) | Which team was 3:47.761 on day 2? |
Subsets and Splits