question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the sum of all mintage created by Pierre Leduc?
CREATE TABLE table_name_61 (mintage INTEGER, artist VARCHAR)
SELECT SUM(mintage) FROM table_name_61 WHERE artist = "pierre leduc"
If Podiums is 2 and F/Laps are 2, what are the wins?
CREATE TABLE table_name_80 (wins VARCHAR, podiums VARCHAR, f_laps VARCHAR)
SELECT wins FROM table_name_80 WHERE podiums = "2" AND f_laps = "2"
Tell me the nationality for pick of 18
CREATE TABLE table_name_24 (nationality VARCHAR, pick VARCHAR)
SELECT nationality FROM table_name_24 WHERE pick = "18"
Which game did was Bud Eley a player in?
CREATE TABLE table_name_88 (games VARCHAR, name VARCHAR)
SELECT games FROM table_name_88 WHERE name = "bud eley"
What date was the score 6–3, 3–6, 6–0?
CREATE TABLE table_name_55 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_55 WHERE score = "6–3, 3–6, 6–0"
In what rounds did the P15 Chassis and tyre D participate?
CREATE TABLE table_name_10 (rounds VARCHAR, tyre VARCHAR, chassis VARCHAR)
SELECT rounds FROM table_name_10 WHERE tyre = "d" AND chassis = "p15"
Which Set 2 has a Set 3 of 20–25?
CREATE TABLE table_name_70 (set_2 VARCHAR, set_3 VARCHAR)
SELECT set_2 FROM table_name_70 WHERE set_3 = "20–25"
What was the College of Player Perry Ellis?
CREATE TABLE table_name_69 (college VARCHAR, player VARCHAR)
SELECT college FROM table_name_69 WHERE player = "perry ellis"
Which NBA draft has a School of st. mary's high school?
CREATE TABLE table_name_91 (nba_draft VARCHAR, school VARCHAR)
SELECT nba_draft FROM table_name_91 WHERE school = "st. mary's high school"
What is the lowest FA cup that has mohd faizal desa as the player, with a total greater than 0?
CREATE TABLE table_name_22 (fa_cup INTEGER, player VARCHAR, total VARCHAR)
SELECT MIN(fa_cup) FROM table_name_22 WHERE player = "mohd faizal desa" AND total > 0
What is the Italian word for "orange" in English?
CREATE TABLE table_2077192_2 (italian VARCHAR, english VARCHAR)
SELECT italian FROM table_2077192_2 WHERE english = "orange"
Name the party with end date of 22 november 1980
CREATE TABLE table_name_2 (party VARCHAR, end_date VARCHAR)
SELECT party FROM table_name_2 WHERE end_date = "22 november 1980"
What shows for Wins when there was a Conference of β€”, western division, in the 1967–68 season?
CREATE TABLE table_name_61 (wins VARCHAR, season VARCHAR, conference VARCHAR, division VARCHAR)
SELECT wins FROM table_name_61 WHERE conference = "β€”" AND division = "western" AND season = "1967–68"
What was the score for the game on February 29?
CREATE TABLE table_name_10 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_10 WHERE date = "february 29"
Who won the womens singles when Marc Zwiebler won the men's singles?
CREATE TABLE table_12121208_1 (womens_singles VARCHAR, mens_singles VARCHAR)
SELECT womens_singles FROM table_12121208_1 WHERE mens_singles = "Marc Zwiebler"
What was the latest year that a Bardahl entrant had a Kurtis Kraft 500c chassis with no more than 0 points?
CREATE TABLE table_name_35 (year INTEGER, points VARCHAR, chassis VARCHAR, entrant VARCHAR)
SELECT MAX(year) FROM table_name_35 WHERE chassis = "kurtis kraft 500c" AND entrant = "bardahl" AND points < 0
When Gary Player was the runner-up, what was the margin of victory?
CREATE TABLE table_name_28 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT margin_of_victory FROM table_name_28 WHERE runner_s__up = "gary player"
What was the tournament that had byron black playing against magnus larsson?
CREATE TABLE table_name_70 (tournament VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_name_70 WHERE opponent = "magnus larsson"
If the NFL team is the Minnesota Vikings, what is the position?
CREATE TABLE table_2508633_8 (position VARCHAR, nfl_team VARCHAR)
SELECT position FROM table_2508633_8 WHERE nfl_team = "Minnesota Vikings"
What was Italy's highest total when there were less than 4 bronze and 1 gold?
CREATE TABLE table_name_29 (total INTEGER, nation VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT MAX(total) FROM table_name_29 WHERE bronze < 4 AND gold = 1 AND nation = "italy"
What number was the pick for the position of DT in 1952, after round 1, where the overall was less than 155?
CREATE TABLE table_name_10 (pick VARCHAR, year VARCHAR, overall VARCHAR, position VARCHAR, round VARCHAR)
SELECT pick FROM table_name_10 WHERE position = "dt" AND round > 1 AND overall < 155 AND year = "1952"
How many days did Hawthorn play as a home team?
CREATE TABLE table_16388230_1 (date VARCHAR, home_team VARCHAR)
SELECT COUNT(date) FROM table_16388230_1 WHERE home_team = "Hawthorn"
What is the highest pick for a player from auburn?
CREATE TABLE table_name_60 (pick INTEGER, school VARCHAR)
SELECT MAX(pick) FROM table_name_60 WHERE school = "auburn"
What is 2nd Party, when Election is "1885"?
CREATE TABLE table_name_11 (election VARCHAR)
SELECT 2 AS nd_party FROM table_name_11 WHERE election = "1885"
In which city is Hayman Hall (Tom Gola Arena) located?
CREATE TABLE table_name_84 (city VARCHAR, venue VARCHAR)
SELECT city FROM table_name_84 WHERE venue = "hayman hall (tom gola arena)"
Name of clem hill, and Inns larger than 126 has the lowest runs?
CREATE TABLE table_name_83 (runs INTEGER, name VARCHAR, inns VARCHAR)
SELECT MIN(runs) FROM table_name_83 WHERE name = "clem hill" AND inns > 126
Name the listen owners for repairone
CREATE TABLE table_2187178_1 (listed_owner_s_ VARCHAR, primary_sponsor_s_ VARCHAR)
SELECT listed_owner_s_ FROM table_2187178_1 WHERE primary_sponsor_s_ = "RepairOne"
How many episodes in the series were directed by Alan Taylor?
CREATE TABLE table_2182654_3 (no_in_series VARCHAR, directed_by VARCHAR)
SELECT COUNT(no_in_series) FROM table_2182654_3 WHERE directed_by = "Alan Taylor"
What is the name/designation for the under development status?
CREATE TABLE table_name_79 (name_designation VARCHAR, status VARCHAR)
SELECT name_designation FROM table_name_79 WHERE status = "under development"
Where the exports is 13,608.65, what is the total trade?
CREATE TABLE table_26160007_1 (total_trade VARCHAR, exports VARCHAR)
SELECT total_trade FROM table_26160007_1 WHERE exports = "13,608.65"
What was Andretti's finish the year he started 16th with a Buick engine?
CREATE TABLE table_name_62 (finish VARCHAR, engine VARCHAR, start VARCHAR)
SELECT finish FROM table_name_62 WHERE engine = "buick" AND start = "16th"
What are the names and locations of festivals?
CREATE TABLE festival_detail (Festival_Name VARCHAR, LOCATION VARCHAR)
SELECT Festival_Name, LOCATION FROM festival_detail
What is minimum hours of the students playing in different position?
CREATE TABLE player (HS INTEGER, pID VARCHAR); CREATE TABLE tryout (pPos VARCHAR, pID VARCHAR)
SELECT MIN(T2.HS), T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos
What round was it when the method was TKO (would not stand up from Butt Scoot)?
CREATE TABLE table_name_89 (round INTEGER, method VARCHAR)
SELECT AVG(round) FROM table_name_89 WHERE method = "tko (would not stand up from butt scoot)"
Where is the place that has a Callsign of DWRJ-FM?
CREATE TABLE table_name_77 (location VARCHAR, callsign VARCHAR)
SELECT location FROM table_name_77 WHERE callsign = "dwrj-fm"
What is the party for District Georgia 9?
CREATE TABLE table_1341598_11 (party VARCHAR, district VARCHAR)
SELECT party FROM table_1341598_11 WHERE district = "Georgia 9"
How many wins does he get when he starts at 10?
CREATE TABLE table_2169966_1 (wins VARCHAR, starts VARCHAR)
SELECT wins FROM table_2169966_1 WHERE starts = 10
Which Score has a Place of 3?
CREATE TABLE table_name_18 (score VARCHAR, place VARCHAR)
SELECT score FROM table_name_18 WHERE place = "3"
Which venue had a crowd larger than 20,000?
CREATE TABLE table_name_68 (venue VARCHAR, crowd INTEGER)
SELECT venue FROM table_name_68 WHERE crowd > 20 OFFSET 000
Which school is located in trafalgar?
CREATE TABLE table_name_73 (school VARCHAR, location VARCHAR)
SELECT school FROM table_name_73 WHERE location = "trafalgar"
Who's the Writer with an Original Airdate of september 4, 2005 (hbo)?
CREATE TABLE table_name_91 (writer VARCHAR, original_airdate VARCHAR)
SELECT writer FROM table_name_91 WHERE original_airdate = "september 4, 2005 (hbo)"
How many races had #99 gainsco/bob stallings racing in round 10?
CREATE TABLE table_19751479_4 (fastest_lap VARCHAR, rnd VARCHAR, pole_position VARCHAR)
SELECT COUNT(fastest_lap) FROM table_19751479_4 WHERE rnd = 10 AND pole_position = "#99 GAINSCO/Bob Stallings Racing"
What is the ends with a free transfer fee and was moved from middlesbrough?
CREATE TABLE table_name_5 (ends VARCHAR, transfer_fee VARCHAR, moving_from VARCHAR)
SELECT ends FROM table_name_5 WHERE transfer_fee = "free" AND moving_from = "middlesbrough"
What was the result of the 1948 og competition?
CREATE TABLE table_name_59 (result VARCHAR, competition VARCHAR)
SELECT result FROM table_name_59 WHERE competition = "1948 og"
Name the less for opponent of @cle and record of 67-29
CREATE TABLE table_name_44 (loss VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT loss FROM table_name_44 WHERE opponent = "@cle" AND record = "67-29"
How much Loss has an Avg/G larger than 129.2?
CREATE TABLE table_name_87 (loss VARCHAR, avg_g INTEGER)
SELECT COUNT(loss) FROM table_name_87 WHERE avg_g > 129.2
Who is the opponent of the game played on November 20, 1995?
CREATE TABLE table_name_66 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_66 WHERE date = "november 20, 1995"
What is the highest draw represented?
CREATE TABLE table_19523708_1 (draw INTEGER)
SELECT MAX(draw) FROM table_19523708_1
Visitor of dallas, and a Date of june 12 had what highest attendance?
CREATE TABLE table_name_16 (attendance INTEGER, visitor VARCHAR, date VARCHAR)
SELECT MAX(attendance) FROM table_name_16 WHERE visitor = "dallas" AND date = "june 12"
What was the game number on march 27?
CREATE TABLE table_27712702_11 (game INTEGER, date VARCHAR)
SELECT MIN(game) FROM table_27712702_11 WHERE date = "March 27"
What is the minimum attendance on games of record 0-2-1
CREATE TABLE table_17360840_4 (attendance INTEGER, record VARCHAR)
SELECT MIN(attendance) FROM table_17360840_4 WHERE record = "0-2-1"
Which year has a total of 0 points and a chassis of Toleman tg181?
CREATE TABLE table_name_88 (year INTEGER, points VARCHAR, chassis VARCHAR)
SELECT AVG(year) FROM table_name_88 WHERE points = 0 AND chassis = "toleman tg181"
What was the Score of the Rabat Tournament with Opponent in the final Yannik Reuter?
CREATE TABLE table_name_20 (score VARCHAR, tournament VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_20 WHERE tournament = "rabat" AND opponent_in_the_final = "yannik reuter"
What Social AO has a President of harm van leeuwen?
CREATE TABLE table_name_68 (social_ao VARCHAR, president VARCHAR)
SELECT social_ao FROM table_name_68 WHERE president = "harm van leeuwen"
What is the most number of touchdowns that have fewer than 105 points, averages over 4.7, and fewer than 487 rushing yards?
CREATE TABLE table_name_77 (touchdowns INTEGER, rushing_yards VARCHAR, points VARCHAR, average VARCHAR)
SELECT MAX(touchdowns) FROM table_name_77 WHERE points < 105 AND average > 4.7 AND rushing_yards < 487
When is the earliest year associated with team norton and 0 wins?
CREATE TABLE table_name_12 (year INTEGER, team VARCHAR, wins VARCHAR)
SELECT MIN(year) FROM table_name_12 WHERE team = "norton" AND wins < 0
In Winterberg, who was 3rd the year that Monique Riekewald was 2nd?
CREATE TABLE table_name_83 (third VARCHAR, location VARCHAR, second VARCHAR)
SELECT third FROM table_name_83 WHERE location = "winterberg" AND second = "monique riekewald"
What was the away team when the home team was south melbourne?
CREATE TABLE table_name_85 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_85 WHERE home_team = "south melbourne"
Who was the 1999-2002 Years for Grizzlies small forward Player who was from the United States?
CREATE TABLE table_name_71 (player VARCHAR, years_for_grizzlies VARCHAR, nationality VARCHAR, position VARCHAR)
SELECT player FROM table_name_71 WHERE nationality = "united states" AND position = "small forward" AND years_for_grizzlies = "1999-2002"
What is the Price, when Upstream is "256 kbit"?
CREATE TABLE table_name_64 (price VARCHAR, upstream VARCHAR)
SELECT price FROM table_name_64 WHERE upstream = "256 kbit"
Who were the assistant and main principals of Kat Hughes?
CREATE TABLE table_name_97 (Assistant VARCHAR, principal__2013_2014_ VARCHAR)
SELECT Assistant AS principal__2013_2014_ FROM table_name_97 WHERE principal__2013_2014_ = "kat hughes"
What is the % of seats where the difference is 0.25?
CREATE TABLE table_name_86 (_percentage_of_seats VARCHAR, difference VARCHAR)
SELECT _percentage_of_seats FROM table_name_86 WHERE difference = "0.25"
With the Ground of Humber College North at 12:00, what was the Away?
CREATE TABLE table_name_69 (away VARCHAR, ground VARCHAR, time VARCHAR)
SELECT away FROM table_name_69 WHERE ground = "humber college north" AND time = "12:00"
Which website is in english and has the frequency of an online newspaper ?
CREATE TABLE table_name_77 (website VARCHAR, language VARCHAR, frequency VARCHAR)
SELECT website FROM table_name_77 WHERE language = "english" AND frequency = "online newspaper"
From the trip record, find the number of unique bikes.
CREATE TABLE trip (bike_id VARCHAR)
SELECT COUNT(DISTINCT bike_id) FROM trip
What is the fastest lap for the european grand prix?
CREATE TABLE table_1132588_3 (fastest_lap VARCHAR, grand_prix VARCHAR)
SELECT fastest_lap FROM table_1132588_3 WHERE grand_prix = "European grand_prix"
What country is ranked larger than 4?
CREATE TABLE table_name_72 (country VARCHAR, rank INTEGER)
SELECT country FROM table_name_72 WHERE rank > 4
Who was the writer of The Year of the Cat from the BBV?
CREATE TABLE table_name_2 (writer VARCHAR, company VARCHAR, title VARCHAR)
SELECT writer FROM table_name_2 WHERE company = "bbv" AND title = "the year of the cat"
How many flights do we have?
CREATE TABLE FLIGHTS (Id VARCHAR)
SELECT COUNT(*) FROM FLIGHTS
What is number 4's title?
CREATE TABLE table_name_36 (title VARCHAR, number VARCHAR)
SELECT title FROM table_name_36 WHERE number = 4
Who is the winning driver of the race with no race as the winning manufacturer?
CREATE TABLE table_name_66 (winning_driver VARCHAR, winning_manufacturer VARCHAR)
SELECT winning_driver FROM table_name_66 WHERE winning_manufacturer = "no race"
If the team in the New England Patriots, what is the super bowl championship minimum number?
CREATE TABLE table_1952057_5 (super_bowl_championships INTEGER, team VARCHAR)
SELECT MIN(super_bowl_championships) FROM table_1952057_5 WHERE team = "New England Patriots"
How many films were in assamese?
CREATE TABLE table_25926120_3 (name_of_film VARCHAR, language VARCHAR)
SELECT COUNT(name_of_film) FROM table_25926120_3 WHERE language = "Assamese"
Name the total number of rnd for kim baker, bobby archer, tommy archer
CREATE TABLE table_27965906_2 (rnd VARCHAR, ss_winning_car VARCHAR)
SELECT COUNT(rnd) FROM table_27965906_2 WHERE ss_winning_car = "Kim Baker, Bobby Archer, Tommy Archer"
How many laps did Chuck Stevenson have with a grid of less than 11?
CREATE TABLE table_name_35 (laps VARCHAR, driver VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_35 WHERE driver = "chuck stevenson" AND grid < 11
How scored the most points where the record is 3-0 for the season?
CREATE TABLE table_23285849_5 (high_points VARCHAR, record VARCHAR)
SELECT high_points FROM table_23285849_5 WHERE record = "3-0"
How many people led in assists on game 71?
CREATE TABLE table_23248940_10 (high_assists VARCHAR, game VARCHAR)
SELECT COUNT(high_assists) FROM table_23248940_10 WHERE game = 71
What team 1 has sloga jugomagnat as team 2?
CREATE TABLE table_name_99 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team_1 FROM table_name_99 WHERE team_2 = "sloga jugomagnat"
List the organisation id with the maximum outcome count, and the count.
CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Projects (organisation_id VARCHAR, project_id VARCHAR)
SELECT T1.organisation_id, COUNT(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1
What is the average AE 2011 ranking with a Forbes 2011 ranking of 24 and a FT 2011 ranking less than 44?
CREATE TABLE table_name_21 (ae_2011 INTEGER, forbes_2011 VARCHAR, ft_2011 VARCHAR)
SELECT AVG(ae_2011) FROM table_name_21 WHERE forbes_2011 = 24 AND ft_2011 < 44
What is the employee id of the head whose department has the least number of employees?
CREATE TABLE department (head VARCHAR, departmentID VARCHAR)
SELECT head FROM department GROUP BY departmentID ORDER BY COUNT(departmentID) LIMIT 1
What is the largest Grid that has a Bike of honda cbr1000rr, and a Time of +20.848, and a Lap greater than 24?
CREATE TABLE table_name_70 (grid INTEGER, laps VARCHAR, bike VARCHAR, time VARCHAR)
SELECT MAX(grid) FROM table_name_70 WHERE bike = "honda cbr1000rr" AND time = "+20.848" AND laps > 24
What Country has a number smaller than 3 in 2004 and larger than 1 in 2005?
CREATE TABLE table_name_31 (Id VARCHAR)
SELECT COUNT(2006) FROM table_name_31 WHERE 2004 < 3 AND 2005 > 1
How many total matches involving dennis gavros had total points less than 167?
CREATE TABLE table_name_35 (matches VARCHAR, rider VARCHAR, total_points VARCHAR)
SELECT COUNT(matches) FROM table_name_35 WHERE rider = "dennis gavros" AND total_points < 167
What is game 9's record?
CREATE TABLE table_name_36 (record VARCHAR, game VARCHAR)
SELECT record FROM table_name_36 WHERE game = 9
Name the place for tim clark
CREATE TABLE table_name_65 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_65 WHERE player = "tim clark"
What was the average total medals received by Roland Hayes School when there were 0 gold medals?
CREATE TABLE table_name_99 (total_medals INTEGER, gold_medals VARCHAR, ensemble VARCHAR)
SELECT AVG(total_medals) FROM table_name_99 WHERE gold_medals = 0 AND ensemble = "roland hayes school"
What is the February number of the game with the Vancouver Canucks as the opponent and a game number greater than 55?
CREATE TABLE table_name_48 (february VARCHAR, opponent VARCHAR, game VARCHAR)
SELECT COUNT(february) FROM table_name_48 WHERE opponent = "vancouver canucks" AND game > 55
Who won the mixed doubles in 1998?
CREATE TABLE table_15001572_1 (mixed_doubles VARCHAR, year VARCHAR)
SELECT mixed_doubles FROM table_15001572_1 WHERE year = 1998
How many goals for were scored for the team(s) that won fewer than 4 games and lost more than 6?
CREATE TABLE table_name_50 (goals_for INTEGER, wins VARCHAR, losses VARCHAR)
SELECT SUM(goals_for) FROM table_name_50 WHERE wins < 4 AND losses > 6
Name the final score for barcelona dragons
CREATE TABLE table_26401898_2 (final_score VARCHAR, opponent VARCHAR)
SELECT final_score FROM table_26401898_2 WHERE opponent = "Barcelona Dragons"
What is the New Zealand Kennel Club Toy Group with papillon as the Australian National Kennel Council Toy Dogs Group breed?
CREATE TABLE table_name_26 (new_zealand_kennel_club_toy_group VARCHAR, australian_national_kennel_council_toy_dogs_group VARCHAR)
SELECT new_zealand_kennel_club_toy_group FROM table_name_26 WHERE australian_national_kennel_council_toy_dogs_group = "papillon"
When 2/1939 is the withdrawn when was it built?
CREATE TABLE table_1886270_1 (built VARCHAR, withdrawn VARCHAR)
SELECT built FROM table_1886270_1 WHERE withdrawn = "2/1939"
What is the highest Game when Morris Peterson (8) had the high assists?
CREATE TABLE table_name_81 (game INTEGER, high_assists VARCHAR)
SELECT MAX(game) FROM table_name_81 WHERE high_assists = "morris peterson (8)"
What's the theme for a series of season 3 with smaller than 148 days?
CREATE TABLE table_name_6 (theme VARCHAR, days VARCHAR, series VARCHAR)
SELECT theme FROM table_name_6 WHERE days < 148 AND series = "season 3"
Which Draws have Losses larger than 8, and a Hampden FL of terang-mortlake?
CREATE TABLE table_name_18 (draws VARCHAR, losses VARCHAR, hampden_fl VARCHAR)
SELECT draws FROM table_name_18 WHERE losses > 8 AND hampden_fl = "terang-mortlake"
what is the nme of the song performed by billy vaughn?
CREATE TABLE table_13804825_2 (song_title VARCHAR, artist VARCHAR)
SELECT song_title FROM table_13804825_2 WHERE artist = "Billy Vaughn"
What is the result of Chris Gratton and Philadelphia Flyers as the Offer Team?
CREATE TABLE table_name_73 (result VARCHAR, offer_team VARCHAR, player VARCHAR)
SELECT result FROM table_name_73 WHERE offer_team = "philadelphia flyers" AND player = "chris gratton"
What is th US A.C. in 1985 with a US hot 100 of 57?
CREATE TABLE table_name_16 (us_ac VARCHAR, year VARCHAR, us_hot_100 VARCHAR)
SELECT us_ac FROM table_name_16 WHERE year = 1985 AND us_hot_100 = "57"
How many captains have the kitmaker as n/a?
CREATE TABLE table_27631756_2 (captain VARCHAR, kitmaker VARCHAR)
SELECT COUNT(captain) FROM table_27631756_2 WHERE kitmaker = "N/A"