question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What time was the highest for 2nd finishers?
CREATE TABLE table_10021158_3 (Id VARCHAR)
SELECT MAX(2 AS nd) FROM table_10021158_3
Which season's winner is Panathinaikos and is located in Athens?
CREATE TABLE table_name_33 (season VARCHAR, location VARCHAR, winners VARCHAR)
SELECT season FROM table_name_33 WHERE location = "athens" AND winners = "panathinaikos"
How many picks did Jay Bruchak have?
CREATE TABLE table_name_31 (pick VARCHAR, player VARCHAR)
SELECT COUNT(pick) FROM table_name_31 WHERE player = "jay bruchak"
Show the distinct position of players from college UCLA or Duke.
CREATE TABLE match_season (POSITION VARCHAR, College VARCHAR)
SELECT DISTINCT POSITION FROM match_season WHERE College = "UCLA" OR College = "Duke"
Who is moving to Triestina?
CREATE TABLE table_name_21 (name VARCHAR, moving_to VARCHAR)
SELECT name FROM table_name_21 WHERE moving_to = "triestina"
Which Sampling Memory/Upgrade-able has a rate of 16-bit 44.1khz?
CREATE TABLE table_name_66 (sampling_memory_upgrade_able VARCHAR, sampling_rate VARCHAR)
SELECT sampling_memory_upgrade_able FROM table_name_66 WHERE sampling_rate = "16-bit 44.1khz"
What is the Sanskrit for the Greek word λέων?
CREATE TABLE table_name_98 (sanskrit VARCHAR, greek VARCHAR)
SELECT sanskrit FROM table_name_98 WHERE greek = "λέων"
What is the released date for Super Mario 64 DS?
CREATE TABLE table_1616608_2 (released_date VARCHAR, western_title VARCHAR)
SELECT released_date FROM table_1616608_2 WHERE western_title = "Super Mario 64 DS"
who is the the player with pick # being 132
CREATE TABLE table_1473672_9 (player VARCHAR, pick__number VARCHAR)
SELECT player FROM table_1473672_9 WHERE pick__number = 132
Name the record for l 90–100 (ot)
CREATE TABLE table_22879323_9 (record VARCHAR, score VARCHAR)
SELECT record FROM table_22879323_9 WHERE score = "L 90–100 (OT)"
What was the venue for the game played on 16/01/1954, when the against was more than 3?
CREATE TABLE table_name_96 (venue VARCHAR, against VARCHAR, date VARCHAR)
SELECT venue FROM table_name_96 WHERE against > 3 AND date = "16/01/1954"
What is City, when IATA is "LAO"?
CREATE TABLE table_name_75 (city VARCHAR, iata VARCHAR)
SELECT city FROM table_name_75 WHERE iata = "lao"
What date did Carlton play as the away team?
CREATE TABLE table_name_54 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_54 WHERE away_team = "carlton"
What is the 2006 sum with a rank 1 and more than 6758845 in 1996?
CREATE TABLE table_name_38 (rank VARCHAR)
SELECT SUM(2006) FROM table_name_38 WHERE rank = 1 AND 1996 > 6758845
How may times did a player that attended Iowa state appear on the all time roster?
CREATE TABLE table_11734041_1 (years_for_rockets VARCHAR, school_club_team_country VARCHAR)
SELECT COUNT(years_for_rockets) FROM table_11734041_1 WHERE school_club_team_country = "Iowa State"
what is the final score when the date is 2009-02-26?
CREATE TABLE table_name_62 (final_score VARCHAR, date VARCHAR)
SELECT final_score FROM table_name_62 WHERE date = "2009-02-26"
Find the year which offers the largest number of courses.
CREATE TABLE SECTION (YEAR VARCHAR)
SELECT YEAR FROM SECTION GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1
What is the most league cup goals for David Beresford having less than 0 FA Cup Goals?
CREATE TABLE table_name_62 (league_cup_goals INTEGER, name VARCHAR, fa_cup_goals VARCHAR)
SELECT MAX(league_cup_goals) FROM table_name_62 WHERE name = "david beresford" AND fa_cup_goals < 0
How many touchdowns did Albert Herrnstein make?
CREATE TABLE table_14342210_14 (touchdowns__5_points_ VARCHAR, player VARCHAR)
SELECT touchdowns__5_points_ FROM table_14342210_14 WHERE player = "Albert Herrnstein"
What was the pick number for Andrew Quarless?
CREATE TABLE table_26077092_7 (pick__number INTEGER, player VARCHAR)
SELECT MAX(pick__number) FROM table_26077092_7 WHERE player = "Andrew Quarless"
How many people directed the episode that Joe Toplyn wrote?
CREATE TABLE table_25716397_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT COUNT(directed_by) FROM table_25716397_1 WHERE written_by = "Joe Toplyn"
What is the lowest win percentage for teams with more than 23 losses and more than 386 goals for?
CREATE TABLE table_name_95 (winning__percentage INTEGER, lost VARCHAR, goals_for VARCHAR)
SELECT MIN(winning__percentage) FROM table_name_95 WHERE lost > 23 AND goals_for > 386
What is the lowest number of matches for a record holder?
CREATE TABLE table_26041144_11 (matches INTEGER)
SELECT MIN(matches) FROM table_26041144_11
WHAT IS THE RELIGION WITH A SCHEDULED TRIBE OF 0.90%?
CREATE TABLE table_name_43 (religion VARCHAR, scheduled_tribe VARCHAR)
SELECT religion FROM table_name_43 WHERE scheduled_tribe = "0.90%"
What is the number of brand where the power is 5kw?
CREATE TABLE table_17822401_1 (branding VARCHAR, power__kw_ VARCHAR)
SELECT COUNT(branding) FROM table_17822401_1 WHERE power__kw_ = "5kW"
List the physicians' employee ids together with their primary affiliation departments' ids.
CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR, primaryaffiliation VARCHAR)
SELECT physician, department FROM affiliated_with WHERE primaryaffiliation = 1
Who was the best blocker for the year that has a League Champion of queens of pain, and a C.A.N.T.S.L.E.E.P. Award of chassis crass (brooklyn)?
CREATE TABLE table_name_94 (best_blocker VARCHAR, league_champion VARCHAR, cantsleep_award VARCHAR)
SELECT best_blocker FROM table_name_94 WHERE league_champion = "queens of pain" AND cantsleep_award = "chassis crass (brooklyn)"
Who is the opponent in the final with a clay surface at the Tournament of Lyneham?
CREATE TABLE table_name_20 (opponent_in_the_final VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT opponent_in_the_final FROM table_name_20 WHERE surface = "clay" AND tournament = "lyneham"
What is the highest Against where they lost less than 20 games, tied more than 2 of them, and they had Favour less than 11?
CREATE TABLE table_name_85 (against INTEGER, favour VARCHAR, lost VARCHAR, draw VARCHAR)
SELECT MAX(against) FROM table_name_85 WHERE lost < 20 AND draw > 2 AND favour < 11
Show the minimum, maximum, average price for all products.
CREATE TABLE products (product_price INTEGER)
SELECT MIN(product_price), MAX(product_price), AVG(product_price) FROM products
What's Shion Newton's MLB draft result?
CREATE TABLE table_11677100_3 (mlb_draft VARCHAR, player VARCHAR)
SELECT mlb_draft FROM table_11677100_3 WHERE player = "Shion Newton"
Which country has a Year(s) won in 1964?
CREATE TABLE table_name_37 (country VARCHAR, year_s__won VARCHAR)
SELECT country FROM table_name_37 WHERE year_s__won = "1964"
The original artist Joan Osborne has what result?
CREATE TABLE table_26250199_1 (result VARCHAR, original_artist VARCHAR)
SELECT result FROM table_26250199_1 WHERE original_artist = "Joan Osborne"
Which Team has a Recopa Sudamericana 1992 of runner-up?
CREATE TABLE table_name_28 (team VARCHAR, recopa_sudamericana_1992 VARCHAR)
SELECT team FROM table_name_28 WHERE recopa_sudamericana_1992 = "runner-up"
What is the nationality of Stromile Swift?
CREATE TABLE table_name_48 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_48 WHERE player = "stromile swift"
Who had the fasted lap in motorsport arena oschersleben?
CREATE TABLE table_21321935_2 (fastest_lap VARCHAR, circuit VARCHAR)
SELECT fastest_lap FROM table_21321935_2 WHERE circuit = "Motorsport Arena Oschersleben"
Name the distrct for thomas wilson
CREATE TABLE table_2668367_21 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_2668367_21 WHERE incumbent = "Thomas Wilson"
Name the driver matched db for joseph grado signature
CREATE TABLE table_1601027_2 (driver_matched_db VARCHAR, headphone_class VARCHAR)
SELECT driver_matched_db FROM table_1601027_2 WHERE headphone_class = "Joseph Grado Signature"
Which qualifying 1 time has a best under 58.669 and a qualifying 2 time under 57.897?
CREATE TABLE table_name_50 (qual_1 VARCHAR, best VARCHAR, qual_2 VARCHAR)
SELECT qual_1 FROM table_name_50 WHERE best < 58.669 AND qual_2 < 57.897
what is the subtrate for enzyme ala dehydratase
CREATE TABLE table_182499_1 (substrate VARCHAR, enzyme VARCHAR)
SELECT substrate FROM table_182499_1 WHERE enzyme = "ALA dehydratase"
When was the loan started when the coutry is eng, the loan club is sunderland and the end source is south wales echo?
CREATE TABLE table_name_23 (started VARCHAR, end_source VARCHAR, country VARCHAR, loan_club VARCHAR)
SELECT started FROM table_name_23 WHERE country = "eng" AND loan_club = "sunderland" AND end_source = "south wales echo"
What is the title of the episode with a production code of ad1b04?
CREATE TABLE table_name_50 (title VARCHAR, production_code VARCHAR)
SELECT title FROM table_name_50 WHERE production_code = "ad1b04"
what is the place for bryce molder?
CREATE TABLE table_name_31 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_31 WHERE player = "bryce molder"
What was the crowd size in the match South Melbourne played at home?
CREATE TABLE table_name_28 (crowd VARCHAR, home_team VARCHAR)
SELECT crowd FROM table_name_28 WHERE home_team = "south melbourne"
What is the highest league cup of danny collins, who has more than 1 premier league?
CREATE TABLE table_name_97 (league_cup INTEGER, name VARCHAR, premier_league VARCHAR)
SELECT MAX(league_cup) FROM table_name_97 WHERE name = "danny collins" AND premier_league > 1
Which railway was built in 1909?
CREATE TABLE table_name_63 (railway VARCHAR, built VARCHAR)
SELECT railway FROM table_name_63 WHERE built = "1909"
Which GNU/Linux had no haiku and a client of airdc++?
CREATE TABLE table_name_60 (gnu_linux VARCHAR, haiku VARCHAR, client VARCHAR)
SELECT gnu_linux FROM table_name_60 WHERE haiku = "no" AND client = "airdc++"
What is the lowest laps that Vittorio Iannuzzo completed?
CREATE TABLE table_name_1 (laps INTEGER, rider VARCHAR)
SELECT MIN(laps) FROM table_name_1 WHERE rider = "vittorio iannuzzo"
What was the score for the tie that had Shrewsbury Town as home team?
CREATE TABLE table_name_87 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_87 WHERE home_team = "shrewsbury town"
What is the Venue of the game with a Score of 0–0?
CREATE TABLE table_name_47 (venue VARCHAR, score VARCHAR)
SELECT venue FROM table_name_47 WHERE score = "0–0"
Which Tournament has an Outcome of winner on 19 october 2008?
CREATE TABLE table_name_25 (tournament VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_25 WHERE outcome = "winner" AND date = "19 october 2008"
What is the title of the episode with the original air date of 28 September 1969?
CREATE TABLE table_1439096_1 (title VARCHAR, original_air_date__atv_ VARCHAR)
SELECT title FROM table_1439096_1 WHERE original_air_date__atv_ = "28 September 1969"
Who lost when the mariners played on September 12?
CREATE TABLE table_name_37 (loss VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT loss FROM table_name_37 WHERE opponent = "mariners" AND date = "september 12"
What was the position for 2008, where 2012 was q1, and 2010 was 1r?
CREATE TABLE table_name_12 (Id VARCHAR)
SELECT 2008 FROM table_name_12 WHERE 2012 = "q1" AND 2010 = "1r"
what is the series when the team is @boston and the game is smaller than 3?
CREATE TABLE table_name_16 (series VARCHAR, team VARCHAR, game VARCHAR)
SELECT series FROM table_name_16 WHERE team = "@boston" AND game < 3
What is listed as the Highest Played, has Points of 17, and Draw that is smaller than 5?
CREATE TABLE table_name_19 (played INTEGER, points VARCHAR, draw VARCHAR)
SELECT MAX(played) FROM table_name_19 WHERE points = 17 AND draw < 5
What is No. 5, when No. 2 is Olivia, when No. 4 is Ava, and when No. 6 is Abigail?
CREATE TABLE table_name_39 (no_5 VARCHAR, no_6 VARCHAR, no_2 VARCHAR, no_4 VARCHAR)
SELECT no_5 FROM table_name_39 WHERE no_2 = "olivia" AND no_4 = "ava" AND no_6 = "abigail"
What average Total has a Rank of 3 and a Bronze award larger than 3?
CREATE TABLE table_name_33 (total INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT AVG(total) FROM table_name_33 WHERE rank = "3" AND bronze > 3
What is Highest Number of Bearers 2008, when Surname is Jacobsen?
CREATE TABLE table_name_87 (number_of_bearers_2008 INTEGER, surname VARCHAR)
SELECT MAX(number_of_bearers_2008) FROM table_name_87 WHERE surname = "jacobsen"
What is the average grid for piers courage?
CREATE TABLE table_name_96 (grid INTEGER, driver VARCHAR)
SELECT AVG(grid) FROM table_name_96 WHERE driver = "piers courage"
Which venue hosted a race in 1967?
CREATE TABLE table_name_20 (venue VARCHAR, year VARCHAR)
SELECT venue FROM table_name_20 WHERE year = 1967
When the Per capita income is $29,194, what is the average population?
CREATE TABLE table_name_70 (population INTEGER, per_capita_income VARCHAR)
SELECT AVG(population) FROM table_name_70 WHERE per_capita_income = "$29,194"
Who took the winning slot at the Vojens venue?
CREATE TABLE table_name_29 (winners VARCHAR, venue VARCHAR)
SELECT winners FROM table_name_29 WHERE venue = "vojens"
What is the largest gold with a Total larger than 16?
CREATE TABLE table_name_90 (gold INTEGER, total INTEGER)
SELECT MAX(gold) FROM table_name_90 WHERE total > 16
Name the stadium for regular season game
CREATE TABLE table_21436373_11 (stadium VARCHAR, type_of_record VARCHAR)
SELECT stadium FROM table_21436373_11 WHERE type_of_record = "Regular season game"
What is the name of the entrant with a chassis of m185b m186?
CREATE TABLE table_name_65 (entrant VARCHAR, chassis VARCHAR)
SELECT entrant FROM table_name_65 WHERE chassis = "m185b m186"
When melbourne played as the home team, who did they play?
CREATE TABLE table_name_41 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_41 WHERE home_team = "melbourne"
Which Date has a Score of 6–1, 6–2?
CREATE TABLE table_name_76 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_76 WHERE score = "6–1, 6–2"
Which label was in the United Kingdom region?
CREATE TABLE table_name_17 (label VARCHAR, region VARCHAR)
SELECT label FROM table_name_17 WHERE region = "united kingdom"
What was the genre of Queen (an artist from the United Kingdom)?
CREATE TABLE table_name_47 (genre VARCHAR, country_of_origin VARCHAR, artist VARCHAR)
SELECT genre FROM table_name_47 WHERE country_of_origin = "united kingdom" AND artist = "queen"
Which time/retired had 75 laps and Pedro de la Rosa as a driver?
CREATE TABLE table_name_86 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_86 WHERE laps = 75 AND driver = "pedro de la rosa"
What is the median household income when the per capita is $21,585?
CREATE TABLE table_name_56 (median_household_income VARCHAR, per_capita_income VARCHAR)
SELECT median_household_income FROM table_name_56 WHERE per_capita_income = "$21,585"
Show the number of card types.
CREATE TABLE Customers_Cards (card_type_code VARCHAR)
SELECT COUNT(DISTINCT card_type_code) FROM Customers_Cards
what is the average points when drawn is 0, lost is 5 and played is more than 10?
CREATE TABLE table_name_60 (points INTEGER, played VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT AVG(points) FROM table_name_60 WHERE drawn = 0 AND lost = 5 AND played > 10
What is the average total of Gay Brewer from the United States with a to par of 9?
CREATE TABLE table_name_49 (total INTEGER, player VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT AVG(total) FROM table_name_49 WHERE country = "united states" AND to_par = 9 AND player = "gay brewer"
What is the Date with a Set 3 with 15–6?
CREATE TABLE table_name_98 (date VARCHAR, set_3 VARCHAR)
SELECT date FROM table_name_98 WHERE set_3 = "15–6"
What was the highest crowd count seen in the Windy Hill venue?
CREATE TABLE table_name_48 (crowd INTEGER, venue VARCHAR)
SELECT MAX(crowd) FROM table_name_48 WHERE venue = "windy hill"
display the employee number and name( first name and last name ) for all employees who work in a department with any employee whose name contains a ’T’.
CREATE TABLE employees (employee_id VARCHAR, first_name VARCHAR, last_name VARCHAR, department_id VARCHAR)
SELECT employee_id, first_name, last_name FROM employees WHERE department_id IN (SELECT department_id FROM employees WHERE first_name LIKE '%T%')
What is the Rifle when the German Gewehr 98 is 74cm?
CREATE TABLE table_name_94 (rifle VARCHAR, german_gewehr_98 VARCHAR)
SELECT rifle FROM table_name_94 WHERE german_gewehr_98 = "74cm"
What was the school type for Los Angeles, California?
CREATE TABLE table_name_51 (type VARCHAR, location VARCHAR)
SELECT type FROM table_name_51 WHERE location = "los angeles, california"
When was Paul Rogers first elected?
CREATE TABLE table_1341930_10 (first_elected VARCHAR, incumbent VARCHAR)
SELECT first_elected FROM table_1341930_10 WHERE incumbent = "Paul Rogers"
What was the margin of victory on Apr 23, 1967?
CREATE TABLE table_name_56 (margin_of_victory VARCHAR, date VARCHAR)
SELECT margin_of_victory FROM table_name_56 WHERE date = "apr 23, 1967"
What is the license award date for North East England?
CREATE TABLE table_10712301_5 (licence_award_date VARCHAR, region VARCHAR)
SELECT licence_award_date FROM table_10712301_5 WHERE region = "North East England"
WHAT IS THE RESULT WITH THE BOSTON ROAD TEAM, ON APRIL 23?
CREATE TABLE table_name_68 (result VARCHAR, road_team VARCHAR, date VARCHAR)
SELECT result FROM table_name_68 WHERE road_team = "boston" AND date = "april 23"
What was the score when the partner was arnaud clément?
CREATE TABLE table_name_60 (score VARCHAR, partner VARCHAR)
SELECT score FROM table_name_60 WHERE partner = "arnaud clément"
Which S.R. has a Average smaller than 23.63 Runs Scored of 49?
CREATE TABLE table_name_46 (sr VARCHAR, average VARCHAR, runs_scored VARCHAR)
SELECT sr FROM table_name_46 WHERE average < 23.63 AND runs_scored = 49
What is the highest amount of points for rank 95?
CREATE TABLE table_name_49 (highest_point VARCHAR, rank VARCHAR)
SELECT highest_point FROM table_name_49 WHERE rank = 95
What is the placing value for a total less than 96.07 in the United States?
CREATE TABLE table_name_15 (placings VARCHAR, total VARCHAR, nation VARCHAR)
SELECT placings FROM table_name_15 WHERE total < 96.07 AND nation = "united states"
What was the position of appointment date 17 january 2011
CREATE TABLE table_27495117_3 (position_in_table VARCHAR, date_of_appointment VARCHAR)
SELECT position_in_table FROM table_27495117_3 WHERE date_of_appointment = "17 January 2011"
Which position has 225lb as weight?
CREATE TABLE table_20872722_1 (position VARCHAR, weight VARCHAR)
SELECT position FROM table_20872722_1 WHERE weight = "225lb"
What's the start when the finish is 1?
CREATE TABLE table_name_63 (start VARCHAR, finish VARCHAR)
SELECT start FROM table_name_63 WHERE finish = "1"
Which Venue has a Against larger than 13?
CREATE TABLE table_name_16 (venue VARCHAR, against INTEGER)
SELECT venue FROM table_name_16 WHERE against > 13
When Kerry is at 36.7%, what is the total number of others?
CREATE TABLE table_name_88 (others_number VARCHAR, kerry_percentage VARCHAR)
SELECT COUNT(others_number) FROM table_name_88 WHERE kerry_percentage = "36.7%"
What is the games average with less than 3.8 in rating and less than 9 yards?
CREATE TABLE table_name_70 (games INTEGER, rating VARCHAR, yards VARCHAR)
SELECT AVG(games) FROM table_name_70 WHERE rating < 3.8 AND yards < 9
how many total where last/current driver(s) is narain karthikeyan ( 2010 )
CREATE TABLE table_19312274_2 (total VARCHAR, last_current_driver_s_ VARCHAR)
SELECT COUNT(total) FROM table_19312274_2 WHERE last_current_driver_s_ = "Narain Karthikeyan ( 2010 )"
Name the tour when mens singles is chen jin and womens doubles is zhang yawen zhao tingting
CREATE TABLE table_14496232_2 (tour VARCHAR, mens_singles VARCHAR, womens_doubles VARCHAR)
SELECT tour FROM table_14496232_2 WHERE mens_singles = "Chen Jin" AND womens_doubles = "Zhang Yawen Zhao Tingting"
What party was the winner in the district Maryland 6?
CREATE TABLE table_1341453_22 (party VARCHAR, district VARCHAR)
SELECT party FROM table_1341453_22 WHERE district = "Maryland 6"
What was the conference matchup for the bowl game played in Glendale, Arizona?
CREATE TABLE table_name_66 (conference_matchups VARCHAR, city VARCHAR)
SELECT conference_matchups FROM table_name_66 WHERE city = "glendale, arizona"
Name the 2013 for 2011 of 1r
CREATE TABLE table_name_9 (Id VARCHAR)
SELECT 2013 FROM table_name_9 WHERE 2011 = "1r"
What was the result for the match held in Boston?
CREATE TABLE table_name_97 (result VARCHAR, location VARCHAR)
SELECT result FROM table_name_97 WHERE location = "boston"