answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT game_site FROM table_name_63 WHERE attendance = "56,770"
Where was the game held when the attendance was 56,770?
CREATE TABLE table_name_63 (game_site VARCHAR, attendance VARCHAR)
SELECT SUM(1891) FROM table_name_63 WHERE 1872 < 685 AND 1881 < 348
What is the sum of 1891(s), when 1872 is less than 685, and when 1881 is less than 348?
CREATE TABLE table_name_63 (Id VARCHAR)
SELECT position FROM table_name_51 WHERE college = "saskatchewan"
What position did the Saskatchewan player get drafted as?
CREATE TABLE table_name_51 (position VARCHAR, college VARCHAR)
SELECT MIN(teams) FROM table_25735_1 WHERE winner = "Wynnum Manly Seagulls"
What was the number of teams in the competition that wynnum manly seagulls won?
CREATE TABLE table_25735_1 (teams INTEGER, winner VARCHAR)
SELECT place FROM table_name_30 WHERE to_par = 5 AND score = 72 - 73 = 145
What is Place, when To Par is "5", and when Score is "72-73=145"?
CREATE TABLE table_name_30 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT name FROM table_name_91 WHERE home_town = "charlotte, nc"
What is the Name of the Player from Charlotte, NC?
CREATE TABLE table_name_91 (name VARCHAR, home_town VARCHAR)
SELECT MIN(pick__number) FROM table_16376436_1 WHERE player = "Garry Lewis"
What is the pick number for the player Garry Lewis?
CREATE TABLE table_16376436_1 (pick__number INTEGER, player VARCHAR)
SELECT name_in_basque FROM table_300283_1 WHERE official_name = "Kuartango"
What is the name in Basque of the municipality whose official name is Kuartango?
CREATE TABLE table_300283_1 (name_in_basque VARCHAR, official_name VARCHAR)
SELECT fuel_system FROM table_name_68 WHERE displacement = "1490cc"
Which fuel system has a displacement of 1490cc?
CREATE TABLE table_name_68 (fuel_system VARCHAR, displacement VARCHAR)
SELECT SUM(points) FROM table_name_59 WHERE entrant = "christy" AND year < 1954
What is the total amount of points that Christy has in the years before 1954?
CREATE TABLE table_name_59 (points INTEGER, entrant VARCHAR, year VARCHAR)
SELECT award FROM table_name_64 WHERE writer_s_ = "edward jeffreys"
What's the name of the award that Edward Jeffreys was the writer?
CREATE TABLE table_name_64 (award VARCHAR, writer_s_ VARCHAR)
SELECT erp_w FROM table_name_19 WHERE call_sign = "w261cq"
What is the ERP W with a call sign at w261cq?
CREATE TABLE table_name_19 (erp_w VARCHAR, call_sign VARCHAR)
SELECT T1.statement_id, T2.statement_details, T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id
Show statement id, statement detail, account detail for accounts.
CREATE TABLE Accounts (statement_id VARCHAR, account_details VARCHAR); CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR)
SELECT COUNT(points) FROM table_14342592_4 WHERE position = "Right end"
Name the total number of points for the right end
CREATE TABLE table_14342592_4 (points VARCHAR, position VARCHAR)
SELECT MIN(crowd) FROM table_name_56 WHERE home_team = "richmond"
What was the smallest crowd for the Richmond home team?
CREATE TABLE table_name_56 (crowd INTEGER, home_team VARCHAR)
SELECT date FROM table_name_61 WHERE attendance = "40,005"
What is the date of the game with 40,005 in attendance?
CREATE TABLE table_name_61 (date VARCHAR, attendance VARCHAR)
SELECT prize FROM table_name_31 WHERE entrants = 453
What prize amount was awarded at the event with 453 entrants?
CREATE TABLE table_name_31 (prize VARCHAR, entrants VARCHAR)
SELECT MIN(first_elected) FROM table_1341423_21
What is the lowest first elected?
CREATE TABLE table_1341423_21 (first_elected INTEGER)
SELECT location FROM table_name_89 WHERE television = "espnu" AND time = "7:15 pm" AND date = "tue., nov. 27"
What is the location of the game that was televised on ESPNU at 7:15 pm on Tue., Nov. 27?
CREATE TABLE table_name_89 (location VARCHAR, date VARCHAR, television VARCHAR, time VARCHAR)
SELECT segment_a FROM table_name_10 WHERE segment_d = "children's ride-on cars"
What is the segment A for the episode with Children's Ride-on Cars for segment D?
CREATE TABLE table_name_10 (segment_a VARCHAR, segment_d VARCHAR)
SELECT home_team FROM table_name_74 WHERE away_team = "carlton"
Which home team played against the away team Carlton?
CREATE TABLE table_name_74 (home_team VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_17 WHERE record = "46-22"
What is the Date of the Game with a Record of 46-22?
CREATE TABLE table_name_17 (date VARCHAR, record VARCHAR)
SELECT COUNT(cap_s_) FROM table_28286776_52 WHERE club_s_ = "Doncaster Rovers"
How many caps figures for the Doncaster Rovers?
CREATE TABLE table_28286776_52 (cap_s_ VARCHAR, club_s_ VARCHAR)
SELECT result FROM table_name_34 WHERE location = "harrogate"
Tell me the result for harrogate
CREATE TABLE table_name_34 (result VARCHAR, location VARCHAR)
SELECT MAX(wins) FROM table_18703133_6
How many wins?
CREATE TABLE table_18703133_6 (wins INTEGER)
SELECT MIN(first_elected) FROM table_1341640_11 WHERE district = "Georgia 1"
What is the earliest first elected for district georgia 1?
CREATE TABLE table_1341640_11 (first_elected INTEGER, district VARCHAR)
SELECT COUNT(partner) FROM table_2186447_1 WHERE score = "7–6 (7–4) , 6–3"
How many partners were there when the score was 7–6 (7–4) , 6–3?
CREATE TABLE table_2186447_1 (partner VARCHAR, score VARCHAR)
SELECT COUNT(height) FROM table_name_54 WHERE player = "filiberto rivera"
What's filiberto rivera's height?
CREATE TABLE table_name_54 (height VARCHAR, player VARCHAR)
SELECT record FROM table_name_58 WHERE opponent = "giants" AND date = "may 12"
What is the team's record on may 12 when they play the giants?
CREATE TABLE table_name_58 (record VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT MAX(winning_pct) FROM table_name_92 WHERE losses > 4 AND ties < 2 AND games_started > 11 AND wins < 22
What is the highest winning pct from a team with wins less than 22, losses greater than 4, ties less than 2 and games started greater than 11?
CREATE TABLE table_name_92 (winning_pct INTEGER, wins VARCHAR, games_started VARCHAR, losses VARCHAR, ties VARCHAR)
SELECT company FROM table_250309_1 WHERE parent_company = "Wrightbus"
what is the company with the parent company wrightbus?
CREATE TABLE table_250309_1 (company VARCHAR, parent_company VARCHAR)
SELECT position FROM table_name_4 WHERE nationality = "canada" AND round < 7 AND player = "zach boychuk"
WHAT IS THE POSITION FOR CANADA, ROUND SMALLER THAN 7, PLAYER ZACH BOYCHUK?
CREATE TABLE table_name_4 (position VARCHAR, player VARCHAR, nationality VARCHAR, round VARCHAR)
SELECT set_1 FROM table_name_92 WHERE score = "3–0" AND set_3 = "15–12"
What is the Set 1 with a Score of 3–0, and has a Set 3 of 15–12?
CREATE TABLE table_name_92 (set_1 VARCHAR, score VARCHAR, set_3 VARCHAR)
SELECT COUNT(crowd) FROM table_name_43 WHERE away_team = "carlton"
How many people were in the crowd when Carlton was the away team?
CREATE TABLE table_name_43 (crowd VARCHAR, away_team VARCHAR)
SELECT attendance FROM table_name_19 WHERE date = "11/11/01"
What is the attendance for the date of 11/11/01?
CREATE TABLE table_name_19 (attendance VARCHAR, date VARCHAR)
SELECT AVG(position) FROM table_name_80 WHERE team = "criciúma" AND drawn > 8
Which Position has a Team of criciúma, and a Drawn larger than 8?
CREATE TABLE table_name_80 (position INTEGER, team VARCHAR, drawn VARCHAR)
SELECT cyrillic_name_other_names FROM table_2562572_35 WHERE settlement = "Lazarevo"
Name the cyrillic name for lazarevo
CREATE TABLE table_2562572_35 (cyrillic_name_other_names VARCHAR, settlement VARCHAR)
SELECT score FROM table_name_1 WHERE date = "5 october 2004"
What is the score on 5 October 2004?
CREATE TABLE table_name_1 (score VARCHAR, date VARCHAR)
SELECT iata FROM table_name_98 WHERE icao = "rcmq"
What is the IATA code for the city with ICAO code of RCMQ?
CREATE TABLE table_name_98 (iata VARCHAR, icao VARCHAR)
SELECT score FROM table_name_64 WHERE country = "south africa"
What is the Score of the Player from South Africa?
CREATE TABLE table_name_64 (score VARCHAR, country VARCHAR)
SELECT flagship_station FROM table_name_74 WHERE color_commentator_s_ = "cedric maxwell" AND year = "1995-96"
Name the flagship station for cedric maxwell and year of 1995-96
CREATE TABLE table_name_74 (flagship_station VARCHAR, color_commentator_s_ VARCHAR, year VARCHAR)
SELECT athlete FROM table_name_92 WHERE date = "10 july 2009"
Date of 10 july 2009 includes what athlete?
CREATE TABLE table_name_92 (athlete VARCHAR, date VARCHAR)
SELECT COUNT(name) FROM table_12803263_1 WHERE _number = 4
What is the number of the name for number 4?
CREATE TABLE table_12803263_1 (name VARCHAR, _number VARCHAR)
SELECT us_viewers__million_ FROM table_26961951_4 WHERE written_by = "Alison McDonald"
How many viewers in millions did the Alison McDonald episode get?
CREATE TABLE table_26961951_4 (us_viewers__million_ VARCHAR, written_by VARCHAR)
SELECT SUM(gold) FROM table_name_28 WHERE silver > 17 AND bronze > 24
What is the sum for gold when there is more than 17 silver and more than 24 bronze?
CREATE TABLE table_name_28 (gold INTEGER, silver VARCHAR, bronze VARCHAR)
SELECT SUM(area_km_2) FROM table_name_75 WHERE official_name = "glenelg"
Can you tell me the sum of Area km 2 that has the Official Name of glenelg?
CREATE TABLE table_name_75 (area_km_2 INTEGER, official_name VARCHAR)
SELECT SUM(pick) FROM table_name_96 WHERE player = "joselito escobar"
What is Joselito Escobar's Pick number?
CREATE TABLE table_name_96 (pick INTEGER, player VARCHAR)
SELECT population_density__per_km²_ FROM table_name_56 WHERE population__2006_ = "84"
What population density (per km) that has 84 as the population (2006)?
CREATE TABLE table_name_56 (population_density__per_km²_ VARCHAR, population__2006_ VARCHAR)
SELECT streak FROM table_name_77 WHERE date = "april 12"
What was the streak on April 12?
CREATE TABLE table_name_77 (streak VARCHAR, date VARCHAR)
SELECT location FROM table_name_33 WHERE event = "ramada perth masters"
What's the location of the Ramada Perth Masters event?
CREATE TABLE table_name_33 (location VARCHAR, event VARCHAR)
SELECT position FROM table_name_89 WHERE vehicle = "bmw" AND year = 2006
What position did the BMW vehicle made in 2006 hold?
CREATE TABLE table_name_89 (position VARCHAR, vehicle VARCHAR, year VARCHAR)
SELECT party FROM table_23680576_2 WHERE dec_2008 = "6.3%"
Name the party/s when the polling percentage was 6.3% in Dec 2008.
CREATE TABLE table_23680576_2 (party VARCHAR, dec_2008 VARCHAR)
SELECT MAX(total_points_earned) FROM table_23662356_3 WHERE average = "29.0"
How many total points were earned from the couple that averaged 29.0 points?
CREATE TABLE table_23662356_3 (total_points_earned INTEGER, average VARCHAR)
SELECT MAX(series__number) FROM table_12146637_1 WHERE us_viewers__millions_ = "10.89"
What is the series number of the episode watched by 10.89 million viewers?
CREATE TABLE table_12146637_1 (series__number INTEGER, us_viewers__millions_ VARCHAR)
SELECT branding FROM table_name_23 WHERE owner = "sound of faith broadcasting group"
What is the Branding of the Frequency owned by Sound of Faith Broadcasting Group?
CREATE TABLE table_name_23 (branding VARCHAR, owner VARCHAR)
SELECT player FROM table_name_82 WHERE round > 6 AND position = "d"
What player has a round larger than 6 with a D position.
CREATE TABLE table_name_82 (player VARCHAR, round VARCHAR, position VARCHAR)
SELECT AVG(total) FROM table_name_46 WHERE bronze > 1
What is the average Total with a Bronze that is larger than 1?
CREATE TABLE table_name_46 (total INTEGER, bronze INTEGER)
SELECT result FROM table_name_83 WHERE record = "3–3"
Record of 3–3 has what result?
CREATE TABLE table_name_83 (result VARCHAR, record VARCHAR)
SELECT MAX(pos) FROM table_226619_12 WHERE club = "West Bromwich Albion"
Name the most pos for west bromwich albion club
CREATE TABLE table_226619_12 (pos INTEGER, club VARCHAR)
SELECT circuit FROM table_13079788_3 WHERE date = "9 September" AND gt3_winner = "Hector Lester Allan Simonsen"
what are all the circuit for 9 september and gt3 winner hector lester allan simonsen
CREATE TABLE table_13079788_3 (circuit VARCHAR, date VARCHAR, gt3_winner VARCHAR)
SELECT model FROM table_name_51 WHERE chipset = "intel q43"
What model number had a chipset of intel q43?
CREATE TABLE table_name_51 (model VARCHAR, chipset VARCHAR)
SELECT COUNT(high_rebounds) FROM table_19169116_6 WHERE date = "February 26"
how many games with high rebounds where in february 26
CREATE TABLE table_19169116_6 (high_rebounds VARCHAR, date VARCHAR)
SELECT written_by FROM table_20967430_3 WHERE season = 10
When it is season 10 who are the writers?
CREATE TABLE table_20967430_3 (written_by VARCHAR, season VARCHAR)
SELECT COUNT(game) FROM table_name_3 WHERE team = "boston"
What is the game number against the team Boston?
CREATE TABLE table_name_3 (game VARCHAR, team VARCHAR)
SELECT winner FROM table_name_73 WHERE tournament = "the tour championship"
What is the name of the winner of the tour championship tournament?
CREATE TABLE table_name_73 (winner VARCHAR, tournament VARCHAR)
SELECT opponent_in_the_final FROM table_name_69 WHERE surface = "hard" AND score = "walkover"
For the tournament played on a hard surface and ending with a score of Walkover, who was the Finals opponent?
CREATE TABLE table_name_69 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR)
SELECT constructor FROM table_1139087_2 WHERE grand_prix = "Brazilian grand_prix"
What is the make of the car that won the brazilian grand prix?
CREATE TABLE table_1139087_2 (constructor VARCHAR, grand_prix VARCHAR)
SELECT 1994 FROM table_name_59 WHERE 1991 = "qf" AND tournament = "australian open"
What is 1994, when 1991 is "QF", and when Tournament is "Australian Open"?
CREATE TABLE table_name_59 (tournament VARCHAR)
SELECT time FROM table_name_63 WHERE location = "savannah, georgia , united states"
What is Time, when Location is "Savannah, Georgia , United States"?
CREATE TABLE table_name_63 (time VARCHAR, location VARCHAR)
SELECT week_5 FROM table_name_72 WHERE week_3 = "mikaela james"
Who was the girl on week 5 that came after week 3's Mikaela James?
CREATE TABLE table_name_72 (week_5 VARCHAR, week_3 VARCHAR)
SELECT spike FROM table_name_84 WHERE name = "senna ušić-jogunica category:articles with hcards"
Name the Spike which has a Name of senna ušić-jogunica category:articles with hcards?
CREATE TABLE table_name_84 (spike VARCHAR, name VARCHAR)
SELECT d_42 FROM table_name_7 WHERE d_43 = "d 14"
Name the D 42 with D 43 of d 14
CREATE TABLE table_name_7 (d_42 VARCHAR, d_43 VARCHAR)
SELECT director_s_ FROM table_name_42 WHERE prize = "¥2,000,000"
What Director won a prize of ¥2,000,000?
CREATE TABLE table_name_42 (director_s_ VARCHAR, prize VARCHAR)
SELECT runs FROM table_name_26 WHERE venue = "bellerive oval , hobart" AND season = "2004/05" AND rank = "5"
Name the Runs has a Venue of bellerive oval , hobart, and a Season of 2004/05, and a Rank of 5?
CREATE TABLE table_name_26 (runs VARCHAR, rank VARCHAR, venue VARCHAR, season VARCHAR)
SELECT constructor FROM table_name_56 WHERE team = "trac racing team"
Who is the Constructor for the Trac Racing Team?
CREATE TABLE table_name_56 (constructor VARCHAR, team VARCHAR)
SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.'
Find the names of all instructors in computer science department
CREATE TABLE instructor (name VARCHAR, dept_name VARCHAR)
SELECT game FROM table_name_60 WHERE location_attendance = "los angeles memorial sports arena"
What game was located at the Los Angeles Memorial Sports Arena?
CREATE TABLE table_name_60 (game VARCHAR, location_attendance VARCHAR)
SELECT home_team FROM table_name_10 WHERE result = "124-101"
Which Home Team has a Result of 124-101?
CREATE TABLE table_name_10 (home_team VARCHAR, result VARCHAR)
SELECT bbc_three_weekly_ranking FROM table_24399615_3 WHERE episode_no = 5
Where where the bbc three weekly ranking for episode no. 5?
CREATE TABLE table_24399615_3 (bbc_three_weekly_ranking VARCHAR, episode_no VARCHAR)
SELECT SUM(total) FROM table_name_45 WHERE player = "david o'callaghan" AND tally = "1-9"
What was the total for David O'Callaghan, and a Tally of 1-9?
CREATE TABLE table_name_45 (total INTEGER, player VARCHAR, tally VARCHAR)
SELECT fast_laps FROM table_name_54 WHERE points = "0" AND series = "world series by nissan"
How many fast laps have 0 points in the World Series by Nissan?
CREATE TABLE table_name_54 (fast_laps VARCHAR, points VARCHAR, series VARCHAR)
SELECT circuit FROM table_name_27 WHERE race = "adac großer preis der tourenwagen"
What is the circuit for the ADAC großer preis der tourenwagen race?
CREATE TABLE table_name_27 (circuit VARCHAR, race VARCHAR)
SELECT MIN(attendance) FROM table_name_52 WHERE date = "september 3, 1972"
What is the lowest attendance on September 3, 1972?
CREATE TABLE table_name_52 (attendance INTEGER, date VARCHAR)
SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = (SELECT MAX(age) FROM Dogs)
List the last name of the owner owning the youngest dog.
CREATE TABLE Owners (last_name VARCHAR, owner_id VARCHAR); CREATE TABLE Dogs (owner_id VARCHAR, age INTEGER); CREATE TABLE Dogs (age INTEGER)
SELECT COUNT(year) FROM table_name_45 WHERE group = "method fest independent film festival"
What is the total number of Years that has the Group, Method Fest Independent Film Festival?
CREATE TABLE table_name_45 (year VARCHAR, group VARCHAR)
SELECT away_team FROM table_name_93 WHERE home_team = "north melbourne"
If north melbourne played as the home team, who was the away team they played?
CREATE TABLE table_name_93 (away_team VARCHAR, home_team VARCHAR)
SELECT type FROM table_254776_1 WHERE location = "Swarthmore, Pennsylvania"
What type of school is in swarthmore, pennsylvania?
CREATE TABLE table_254776_1 (type VARCHAR, location VARCHAR)
SELECT january FROM table_15945862_1 WHERE june = "7.34"
January 7.34 where is June ?
CREATE TABLE table_15945862_1 (january VARCHAR, june VARCHAR)
SELECT AVG(nominated_by_the_taoiseach) FROM table_name_10 WHERE agricultural_panel < 1 AND administrative_panel < 0
What was the average number of members Nominated by the Taoiseach, when the Agricultural Panel had less than 1 member, and when the Administrative Panel had fewer than 0 members?
CREATE TABLE table_name_10 (nominated_by_the_taoiseach INTEGER, agricultural_panel VARCHAR, administrative_panel VARCHAR)
SELECT result FROM table_name_76 WHERE week = 11
What was the result of week 11?
CREATE TABLE table_name_76 (result VARCHAR, week VARCHAR)
SELECT horse FROM table_name_69 WHERE result = "66.452"
What horse has a 66.452 result?
CREATE TABLE table_name_69 (horse VARCHAR, result VARCHAR)
SELECT season FROM table_name_39 WHERE games = "10"
What season has a Games listed of 10?
CREATE TABLE table_name_39 (season VARCHAR, games VARCHAR)
SELECT MAX(number_of_seats) FROM table_name_24 WHERE make = "mci" AND quantity > 32
What is the largest number of seats with more than 32 of a MCI make?
CREATE TABLE table_name_24 (number_of_seats INTEGER, make VARCHAR, quantity VARCHAR)
SELECT rank FROM table_name_60 WHERE code__iata_icao_ = "bkk/vtbs"
What is the rank of the airport with the BKK/VTBS code?
CREATE TABLE table_name_60 (rank VARCHAR, code__iata_icao_ VARCHAR)
SELECT circuit FROM table_name_97 WHERE pole_position = "andré ribeiro"
Which Circuit has a Pole position of andré ribeiro?
CREATE TABLE table_name_97 (circuit VARCHAR, pole_position VARCHAR)
SELECT COUNT(directed_by) FROM table_29063233_1 WHERE uk_viewers__million_ = "6.16"
How many directed by entries have UK viewership over 6.16 million?
CREATE TABLE table_29063233_1 (directed_by VARCHAR, uk_viewers__million_ VARCHAR)
SELECT sex, COUNT(*) FROM Faculty WHERE rank = "AsstProf" GROUP BY sex
Show the number of male and female assistant professors.
CREATE TABLE Faculty (sex VARCHAR, rank VARCHAR)
SELECT historical_photos FROM table_name_46 WHERE location = "prospect 43 prospect ave"
Which Historical Photos were taken at prospect 43 prospect ave?
CREATE TABLE table_name_46 (historical_photos VARCHAR, location VARCHAR)
SELECT date FROM table_name_18 WHERE name = "tirrana"
what is the date for tirrana?
CREATE TABLE table_name_18 (date VARCHAR, name VARCHAR)
SELECT race FROM table_name_81 WHERE date = "23 october"
what is the race on 23 october?
CREATE TABLE table_name_81 (race VARCHAR, date VARCHAR)