answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT institution FROM table_name_44 WHERE location = "reading, pa"
CREATE TABLE table_name_44 (institution VARCHAR, location VARCHAR)
Which institution is located in Reading, PA?
SELECT nickname FROM table_name_71 WHERE established = 1958
CREATE TABLE table_name_71 (nickname VARCHAR, established VARCHAR)
What was the nick name for the school established in 1958?
SELECT MAX(laps) FROM table_name_65 WHERE team = "mi-jack conquest racing" AND driver = "justin wilson" AND grid < 5
CREATE TABLE table_name_65 (laps INTEGER, grid VARCHAR, team VARCHAR, driver VARCHAR)
When the grid is under 5 and justin wilson is driving for the team mi-jack conquest racing, what's the highest number of laps driven?
SELECT time_retired FROM table_name_8 WHERE team = "newman/haas racing" AND grid = 3
CREATE TABLE table_name_8 (time_retired VARCHAR, team VARCHAR, grid VARCHAR)
When the team is newman/haas racing and the grid size is 3, what's the time/retired?
SELECT tournament FROM table_name_80 WHERE ground = "a" AND round = "8"
CREATE TABLE table_name_80 (tournament VARCHAR, ground VARCHAR, round VARCHAR)
What tournament took place on Ground A with 8 rounds?
SELECT series FROM table_name_20 WHERE title_rank = "various"
CREATE TABLE table_name_20 (series VARCHAR, title_rank VARCHAR)
What series had the title rank of various?
SELECT title_rank FROM table_name_7 WHERE series = "1-8, 13" AND character = "arthur hastings"
CREATE TABLE table_name_7 (title_rank VARCHAR, series VARCHAR, character VARCHAR)
What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13?
SELECT title_rank FROM table_name_24 WHERE series = "1-8, 13" AND character = "arthur hastings"
CREATE TABLE table_name_24 (title_rank VARCHAR, series VARCHAR, character VARCHAR)
What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13?
SELECT title_rank FROM table_name_93 WHERE actor = "pauline moran"
CREATE TABLE table_name_93 (title_rank VARCHAR, actor VARCHAR)
What is the title rank of actor pauline moran?
SELECT character FROM table_name_4 WHERE title_rank = "various"
CREATE TABLE table_name_4 (character VARCHAR, title_rank VARCHAR)
Which character had a title rank of various?
SELECT high_rebounds FROM table_name_73 WHERE game > 65 AND date = "march 28"
CREATE TABLE table_name_73 (high_rebounds VARCHAR, game VARCHAR, date VARCHAR)
Who had the highest rebounds of the game with a game number higher than 65 on March 28?
SELECT date FROM table_name_57 WHERE game < 58 AND team = "boston"
CREATE TABLE table_name_57 (date VARCHAR, game VARCHAR, team VARCHAR)
WHAT DATE HAD A GAME SMALLER THAN 58, AND FROM BOSTON?
SELECT original_airdate FROM table_name_73 WHERE nightly_rank = "#6" AND viewers__millions_ = 1.246
CREATE TABLE table_name_73 (original_airdate VARCHAR, nightly_rank VARCHAR, viewers__millions_ VARCHAR)
Original airdate for #6 with 1.246 viewers?
SELECT nightly_rank FROM table_name_21 WHERE viewers__millions_ > 1.244
CREATE TABLE table_name_21 (nightly_rank VARCHAR, viewers__millions_ INTEGER)
Rank for viewers larger than 1.244?
SELECT SUM(week) FROM table_name_24 WHERE result = "w 20–6"
CREATE TABLE table_name_24 (week INTEGER, result VARCHAR)
How many weeks had a Result of w 20–6?
SELECT opponent FROM table_name_76 WHERE attendance = "bye"
CREATE TABLE table_name_76 (opponent VARCHAR, attendance VARCHAR)
Which Opponent has an Attendance of bye?
SELECT MAX(flaps) FROM table_name_2 WHERE podiums = 24 AND races > 143
CREATE TABLE table_name_2 (flaps INTEGER, podiums VARCHAR, races VARCHAR)
WHAT IS THE FLAPS WITH PODIUMS OF 24 AND RACES BIGGER THAN 143?
SELECT SUM(races) FROM table_name_93 WHERE flaps = 0 AND podiums > 0 AND season = "2008" AND pole < 1
CREATE TABLE table_name_93 (races INTEGER, pole VARCHAR, season VARCHAR, flaps VARCHAR, podiums VARCHAR)
WHAT ARE THE RACES WHEN FLAPS ARE ZERO, PODIUMS ARE LARGER THAN 0, SEASON IS 2008, AND POLE SMALLER THAN 1?
SELECT MIN(races) FROM table_name_93 WHERE pole < 2 AND season = "2007"
CREATE TABLE table_name_93 (races INTEGER, pole VARCHAR, season VARCHAR)
WHAT ARE THE RACES WITH A POLE SMALLER THAN 2 IN 2007?
SELECT MAX(races) FROM table_name_27 WHERE season = "2010" AND flaps > 6
CREATE TABLE table_name_27 (races INTEGER, season VARCHAR, flaps VARCHAR)
WHAT ARE THE RACES FOR 2010 WITH FLAPS LARGER THAN 6?
SELECT t20_matches FROM table_name_18 WHERE total = "23"
CREATE TABLE table_name_18 (t20_matches VARCHAR, total VARCHAR)
What T20 Match has a total of 23?
SELECT fc_matches FROM table_name_52 WHERE location = "darlington"
CREATE TABLE table_name_52 (fc_matches VARCHAR, location VARCHAR)
What FC Match was played in Darlington?
SELECT t20_matches FROM table_name_33 WHERE year = "1979"
CREATE TABLE table_name_33 (t20_matches VARCHAR, year VARCHAR)
What T20 match was played in 1979?
SELECT fc_matches FROM table_name_18 WHERE total = "24"
CREATE TABLE table_name_18 (fc_matches VARCHAR, total VARCHAR)
Which FC match has a total of 24?
SELECT location FROM table_name_45 WHERE fc_matches = "12"
CREATE TABLE table_name_45 (location VARCHAR, fc_matches VARCHAR)
Where was the FC match with a score of 12 played?
SELECT COUNT(oricon) FROM table_name_13 WHERE romaji_title = "rakuen -memorial tracks- (maxi-single)"
CREATE TABLE table_name_13 (oricon VARCHAR, romaji_title VARCHAR)
How many oricon's have a romaji title of rakuen -memorial tracks- (maxi-single)?
SELECT reference FROM table_name_39 WHERE japanese_title = "アイシテル"
CREATE TABLE table_name_39 (reference VARCHAR, japanese_title VARCHAR)
What reference is used with the title アイシテル?
SELECT reference FROM table_name_4 WHERE romaji_title = "da.i.su.ki"
CREATE TABLE table_name_4 (reference VARCHAR, romaji_title VARCHAR)
What is the reference for the romani title da.i.su.ki?
SELECT japanese_title FROM table_name_88 WHERE romaji_title = "ashita wa ashita no kaze ga fuku"
CREATE TABLE table_name_88 (japanese_title VARCHAR, romaji_title VARCHAR)
What title to the japanese give the romani title ashita wa ashita no kaze ga fuku?
SELECT club FROM table_name_49 WHERE founded > 1998
CREATE TABLE table_name_49 (club VARCHAR, founded INTEGER)
Which club was founded after 1998?
SELECT MIN(tries) FROM table_name_5 WHERE goals < 0
CREATE TABLE table_name_5 (tries INTEGER, goals INTEGER)
Which Tries has a Goal smaller than 0?
SELECT issue_price FROM table_name_44 WHERE theme = "trumpeter swan"
CREATE TABLE table_name_44 (issue_price VARCHAR, theme VARCHAR)
What was the issue price for the Trumpeter Swan set?
SELECT artist FROM table_name_87 WHERE mintage = "40,000" AND issue_price = "45.95"
CREATE TABLE table_name_87 (artist VARCHAR, mintage VARCHAR, issue_price VARCHAR)
Who was the artist with a mintage of 40,000 and an issue price of $45.95?
SELECT high_points FROM table_name_85 WHERE date = "may 25"
CREATE TABLE table_name_85 (high_points VARCHAR, date VARCHAR)
What is the highest number of points a player got during the game on May 25?
SELECT position FROM table_name_79 WHERE first_team_goals = "ongoing" AND current_club = "aston villa"
CREATE TABLE table_name_79 (position VARCHAR, first_team_goals VARCHAR, current_club VARCHAR)
What is the position of the player who has ongoing first-team goals and currently plays for the Aston Villa club?
SELECT player FROM table_name_79 WHERE first_team_appearances = "7"
CREATE TABLE table_name_79 (player VARCHAR, first_team_appearances VARCHAR)
Who is the player who has had 7 first team appearances?
SELECT current_club FROM table_name_28 WHERE first_team_appearances = "ongoing" AND position = "midfielder" AND player = "samir carruthers"
CREATE TABLE table_name_28 (current_club VARCHAR, player VARCHAR, first_team_appearances VARCHAR, position VARCHAR)
What is the name of the club that has ongoing first-team appearances, a midfielder, and whose player is Samir Carruthers?
SELECT first_team_goals FROM table_name_73 WHERE player = "samir carruthers"
CREATE TABLE table_name_73 (first_team_goals VARCHAR, player VARCHAR)
How many first-team goals does the team have whose player is Samir Carruthers?
SELECT position FROM table_name_47 WHERE first_team_appearances = "ongoing" AND current_club = "aston villa" AND player = "graham burke"
CREATE TABLE table_name_47 (position VARCHAR, player VARCHAR, first_team_appearances VARCHAR, current_club VARCHAR)
What position has ongoing first-team appearances, Graham Burke for a player, and whose club is Aston Villa?
SELECT position FROM table_name_7 WHERE first_team_appearances = "7"
CREATE TABLE table_name_7 (position VARCHAR, first_team_appearances VARCHAR)
Which position has had 7 first-team appearances?
SELECT theme FROM table_name_72 WHERE issue_price = "$508.95"
CREATE TABLE table_name_72 (theme VARCHAR, issue_price VARCHAR)
What was the theme when the issue price was $508.95?
SELECT mintage FROM table_name_18 WHERE theme = "year of the rabbit"
CREATE TABLE table_name_18 (mintage VARCHAR, theme VARCHAR)
What's the mintage when the theme was year of the rabbit?
SELECT year FROM table_name_43 WHERE theme = "year of the pig"
CREATE TABLE table_name_43 (year VARCHAR, theme VARCHAR)
What year was the year of the pig theme?
SELECT artist FROM table_name_76 WHERE theme = "year of the snake"
CREATE TABLE table_name_76 (artist VARCHAR, theme VARCHAR)
Who was the artist for the year of the snake?
SELECT COUNT(frequency_mhz) FROM table_name_41 WHERE city_of_license = "port charlotte, florida" AND erp_w > 10
CREATE TABLE table_name_41 (frequency_mhz VARCHAR, city_of_license VARCHAR, erp_w VARCHAR)
What is the total Frequency MHz Port Charlotte, Florida, which has an ERP W larger than 10, has?
SELECT call_sign FROM table_name_38 WHERE erp_w > 10
CREATE TABLE table_name_38 (call_sign VARCHAR, erp_w INTEGER)
What is the call sign for the translator with an ERP W larger than 10?
SELECT MAX(erp_w) FROM table_name_94 WHERE call_sign = "w284av"
CREATE TABLE table_name_94 (erp_w INTEGER, call_sign VARCHAR)
What is the highest ERP W of the translator with a call sign of w284av?
SELECT MAX(crowd) FROM table_name_92 WHERE home_team = "collingwood"
CREATE TABLE table_name_92 (crowd INTEGER, home_team VARCHAR)
How big was the crowd of the Home team of Collingwood?
SELECT away_team FROM table_name_85 WHERE home_team = "south melbourne"
CREATE TABLE table_name_85 (away_team VARCHAR, home_team VARCHAR)
What was the away team when the home team was south melbourne?
SELECT player FROM table_name_34 WHERE college = "calgary"
CREATE TABLE table_name_34 (player VARCHAR, college VARCHAR)
Who was recruited from Calgary?
SELECT SUM(wins) FROM table_name_43 WHERE rank > 5
CREATE TABLE table_name_43 (wins INTEGER, rank INTEGER)
What number of wins was ranked higher than 5?
SELECT rank FROM table_name_35 WHERE wins > 11 AND player = "miller barber"
CREATE TABLE table_name_35 (rank VARCHAR, wins VARCHAR, player VARCHAR)
What rank is Miller Barber with more than 11 wins?
SELECT venue FROM table_name_34 WHERE home_team = "collingwood"
CREATE TABLE table_name_34 (venue VARCHAR, home_team VARCHAR)
What was the venue when Collingwood was the home team?
SELECT MAX(crowd) FROM table_name_75 WHERE venue = "vfl park"
CREATE TABLE table_name_75 (crowd INTEGER, venue VARCHAR)
What was the largest crowd at vfl park?
SELECT crowd FROM table_name_16 WHERE home_team = "south melbourne"
CREATE TABLE table_name_16 (crowd VARCHAR, home_team VARCHAR)
How many people were at the game where the home team was South Melbourne?
SELECT away_team AS score FROM table_name_25 WHERE away_team = "footscray"
CREATE TABLE table_name_25 (away_team VARCHAR)
What was the score when the away team was Footscray?
SELECT away_team AS score FROM table_name_56 WHERE away_team = "collingwood"
CREATE TABLE table_name_56 (away_team VARCHAR)
What was the score when the away team was Collingwood?
SELECT home_team FROM table_name_15 WHERE venue = "corio oval"
CREATE TABLE table_name_15 (home_team VARCHAR, venue VARCHAR)
What was the home team that played at Corio Oval?
SELECT SUM(goal) FROM table_name_13 WHERE date = "november 22, 1994"
CREATE TABLE table_name_13 (goal INTEGER, date VARCHAR)
How many goals were scored on November 22, 1994?
SELECT result FROM table_name_49 WHERE goal = 9
CREATE TABLE table_name_49 (result VARCHAR, goal VARCHAR)
What was the result of the game with 9 goals?
SELECT MAX(for_prohibition) FROM table_name_43 WHERE percent_against > 10.8 AND percent_for < 72.2 AND jurisdiction = "british columbia" AND against_prohibition < 4 OFFSET 756
CREATE TABLE table_name_43 (for_prohibition INTEGER, against_prohibition VARCHAR, jurisdiction VARCHAR, percent_against VARCHAR, percent_for VARCHAR)
What is the highest number supporting prohibition in British Columbia when the percent opposing is more than 10.8, the percent supporting is less than 72.2, number against is less than 4,756?
SELECT COUNT(apparent_magnitude) FROM table_name_24 WHERE constellation = "sculptor"
CREATE TABLE table_name_24 (apparent_magnitude VARCHAR, constellation VARCHAR)
what is the apparent magnitude of the constellation sculptor
SELECT right_ascension___j2000__ FROM table_name_15 WHERE object_type = "spiral galaxy" AND apparent_magnitude > 12.2
CREATE TABLE table_name_15 (right_ascension___j2000__ VARCHAR, object_type VARCHAR, apparent_magnitude VARCHAR)
What is the Right ascension of the Object type spiral galaxy that has an Apparent magnitude larger that 12.2
SELECT constellation FROM table_name_60 WHERE apparent_magnitude > 7.7 AND ngc_number = 7777
CREATE TABLE table_name_60 (constellation VARCHAR, apparent_magnitude VARCHAR, ngc_number VARCHAR)
Which Constellation has an Apparent magnitude larger that 7.7, and an NGC number of 7777
SELECT chassis FROM table_name_62 WHERE rounds = "1" AND driver = "maria teresa de filippis"
CREATE TABLE table_name_62 (chassis VARCHAR, rounds VARCHAR, driver VARCHAR)
What is the name of the Chassis of Diver Maria Teresa de Filippis in round 1?
SELECT COUNT(yards) FROM table_name_6 WHERE player = "james macpherson" AND long < 1
CREATE TABLE table_name_6 (yards VARCHAR, player VARCHAR, long VARCHAR)
How many yards have a Player of james macpherson, and a Long smaller than 1?
SELECT MIN(car) FROM table_name_37 WHERE yards > 122
CREATE TABLE table_name_37 (car INTEGER, yards INTEGER)
What is the lowest car with more than 122 yards?
SELECT MIN(round) FROM table_name_7 WHERE player = "ryan thang"
CREATE TABLE table_name_7 (round INTEGER, player VARCHAR)
What round was Ryan Thang drafted in?
SELECT COUNT(laps) FROM table_name_82 WHERE car__number > 9 AND driver = "jeff burton" AND points > 118
CREATE TABLE table_name_82 (laps VARCHAR, points VARCHAR, car__number VARCHAR, driver VARCHAR)
How many laps did Jeff Burton have when he drove car with a # over 9 and more than 118 points?
SELECT SUM(points) FROM table_name_28 WHERE driver = "scott riggs" AND laps > 400
CREATE TABLE table_name_28 (points INTEGER, driver VARCHAR, laps VARCHAR)
What was Scott Riggs points when he had more than 400 laps?
SELECT driver FROM table_name_42 WHERE car__number < 5 AND make = "dodge"
CREATE TABLE table_name_42 (driver VARCHAR, car__number VARCHAR, make VARCHAR)
Who drove the dodge with a car # less than 5?
SELECT team FROM table_name_39 WHERE game < 78 AND high_rebounds = "perkins (9)"
CREATE TABLE table_name_39 (team VARCHAR, game VARCHAR, high_rebounds VARCHAR)
What team had a high rebound of perkins (9) and a game smaller than 78?
SELECT date FROM table_name_18 WHERE high_assists = "rondo (5)" AND high_rebounds = "rondo (10)"
CREATE TABLE table_name_18 (date VARCHAR, high_assists VARCHAR, high_rebounds VARCHAR)
What date were the high assists rondo (5) and the high rebounds rondo (10)?
SELECT high_points FROM table_name_71 WHERE date = "april 11"
CREATE TABLE table_name_71 (high_points VARCHAR, date VARCHAR)
On the date April 11, what were the high points?
SELECT COUNT(game) FROM table_name_4 WHERE date = "april 11"
CREATE TABLE table_name_4 (game VARCHAR, date VARCHAR)
On the date April 11, what is the total game number?
SELECT name FROM table_name_30 WHERE year = "1957"
CREATE TABLE table_name_30 (name VARCHAR, year VARCHAR)
What actor made a film in 1957?
SELECT year FROM table_name_25 WHERE name = "miyoshi umeki"
CREATE TABLE table_name_25 (year VARCHAR, name VARCHAR)
What year did Miyoshi Umeki make a film?
SELECT status FROM table_name_56 WHERE "role" = "role"
CREATE TABLE table_name_56 (status VARCHAR)
What status has a role?
SELECT MIN(round) FROM table_name_98 WHERE nominees = "david mundy"
CREATE TABLE table_name_98 (round INTEGER, nominees VARCHAR)
what is the earliest round for nominee david mundy?
SELECT MAX(round) FROM table_name_79 WHERE ground = "telstra dome" AND nominees = "shaun burgoyne"
CREATE TABLE table_name_79 (round INTEGER, ground VARCHAR, nominees VARCHAR)
what round saw the ground of telstra dome and shaun burgoyne as nominees?
SELECT MIN(wins) FROM table_name_17 WHERE goals_against < 39 AND losses > 2 AND ties > 0
CREATE TABLE table_name_17 (wins INTEGER, ties VARCHAR, goals_against VARCHAR, losses VARCHAR)
What has the lowest number of wins with GA smaller than 39, more than 2 losses, and ties greater than 0?
SELECT MAX(ties) FROM table_name_56 WHERE losses < 4 AND goals_against < 20
CREATE TABLE table_name_56 (ties INTEGER, losses VARCHAR, goals_against VARCHAR)
Which team has the most ties with fewer than 4 losses and GA smaller than 20?
SELECT COUNT(losses) FROM table_name_1 WHERE games_played = 7 AND goals_against < 27
CREATE TABLE table_name_1 (losses VARCHAR, games_played VARCHAR, goals_against VARCHAR)
How many games did the team lose that played 7 games and has a GA of less than 27?
SELECT date FROM table_name_12 WHERE loser = "chicago bears" AND location = "green bay" AND year < 1931
CREATE TABLE table_name_12 (date VARCHAR, year VARCHAR, loser VARCHAR, location VARCHAR)
what date saw the chicago bears lose in green bay earlier than 1931?
SELECT away_team AS score FROM table_name_89 WHERE away_team = "melbourne"
CREATE TABLE table_name_89 (away_team VARCHAR)
What is the Away team score for Away team Melbourne?
SELECT years FROM table_name_35 WHERE displacement = "4.0l (242cid)"
CREATE TABLE table_name_35 (years VARCHAR, displacement VARCHAR)
what is the years for the displacement 4.0l (242cid)?
SELECT engine FROM table_name_67 WHERE torque = "lb·ft (n·m)"
CREATE TABLE table_name_67 (engine VARCHAR, torque VARCHAR)
Which engine has a torgue of lb·ft (n·m)?
SELECT years FROM table_name_15 WHERE tied < 31 AND pct = 0.5451
CREATE TABLE table_name_15 (years VARCHAR, tied VARCHAR, pct VARCHAR)
How many years for the team with under 31 ties and a percentage of 0.5451?
SELECT COUNT(tied) FROM table_name_69 WHERE mountain_west = "air force" AND years > 57
CREATE TABLE table_name_69 (tied VARCHAR, mountain_west VARCHAR, years VARCHAR)
How many games tied for the air force with over 57 years participating?
SELECT description FROM table_name_58 WHERE date = 1911
CREATE TABLE table_name_58 (description VARCHAR, date VARCHAR)
What is the description where the date is 1911?
SELECT number_ & _name FROM table_name_37 WHERE date < 1905
CREATE TABLE table_name_37 (number_ VARCHAR, _name VARCHAR, date INTEGER)
What is the number and name where the date is earlier than 1905?
SELECT years FROM table_name_35 WHERE name = "mount roskill grammar school"
CREATE TABLE table_name_35 (years VARCHAR, name VARCHAR)
What year was the name mount roskill grammar school?
SELECT away_team FROM table_name_41 WHERE home_team = "melbourne"
CREATE TABLE table_name_41 (away_team VARCHAR, home_team VARCHAR)
When melbourne played as the home team, who did they play?
SELECT away_team FROM table_name_80 WHERE home_team = "geelong"
CREATE TABLE table_name_80 (away_team VARCHAR, home_team VARCHAR)
When the home team was geelong, who played as the away team?
SELECT away_team FROM table_name_93 WHERE home_team = "north melbourne"
CREATE TABLE table_name_93 (away_team VARCHAR, home_team VARCHAR)
If north melbourne played as the home team, who was the away team they played?
SELECT away_team AS score FROM table_name_23 WHERE home_team = "st kilda"
CREATE TABLE table_name_23 (away_team VARCHAR, home_team VARCHAR)
When st kilda was playing at home what was the away teams score?
SELECT production_code FROM table_name_1 WHERE season__number < 8 AND series__number < 31 AND original_air_date = "september 21, 1995"
CREATE TABLE table_name_1 (production_code VARCHAR, original_air_date VARCHAR, season__number VARCHAR, series__number VARCHAR)
What is the production code of the episode before season 8, with a series number less than 31, and aired on September 21, 1995?
SELECT MIN(crowd) FROM table_name_93 WHERE away_team = "hawthorn"
CREATE TABLE table_name_93 (crowd INTEGER, away_team VARCHAR)
What is the smallest amount of spectators when the away team was Hawthorn?
SELECT SUM(crowd) FROM table_name_54 WHERE away_team = "richmond"
CREATE TABLE table_name_54 (crowd INTEGER, away_team VARCHAR)
How many people attended when the away team was Richmond?
SELECT score FROM table_name_11 WHERE decision = "toivonen" AND record = "18–14–4"
CREATE TABLE table_name_11 (score VARCHAR, decision VARCHAR, record VARCHAR)
What was the score when the record was 18–14–4 with a toivonen decision?