question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What was team number 2's Fluminense's 2nd leg?
CREATE TABLE table_24426072_1 (team__number2 VARCHAR)
SELECT 2 AS nd_leg FROM table_24426072_1 WHERE team__number2 = "Fluminense"
What's the smallest draw that has a place bigger more than 1 and Anastasia Prikhodko as the artist?
CREATE TABLE table_name_74 (draw INTEGER, artist VARCHAR, place VARCHAR)
SELECT MIN(draw) FROM table_name_74 WHERE artist = "anastasia prikhodko" AND place > 1
What horse was induced in 2011 with a sire of cowboy p-12?
CREATE TABLE table_name_77 (name_of_horse VARCHAR, year_inducted VARCHAR, broodmare_sire VARCHAR)
SELECT name_of_horse FROM table_name_77 WHERE year_inducted = 2011 AND broodmare_sire = "cowboy p-12"
How many 2001 censuses are there on number 13?
CREATE TABLE table_10138926_1 (_number VARCHAR)
SELECT COUNT(2001 AS _census) FROM table_10138926_1 WHERE _number = 13
What was the date of the game against Hayes & Yeading United?
CREATE TABLE table_name_60 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_60 WHERE opponent = "hayes & yeading united"
What is the tennis status for youngstown state?
CREATE TABLE table_name_52 (tennis VARCHAR, school VARCHAR)
SELECT tennis FROM table_name_52 WHERE school = "youngstown state"
What is Money ( $ ), when Player is Greg Norman?
CREATE TABLE table_name_1 (money___$__ VARCHAR, player VARCHAR)
SELECT money___$__ FROM table_name_1 WHERE player = "greg norman"
What is the game number with 385:33 mins?
CREATE TABLE table_20107762_1 (games INTEGER, mins VARCHAR)
SELECT MIN(games) FROM table_20107762_1 WHERE mins = "385:33"
What surface was the città di caltanissetta played on?
CREATE TABLE table_name_22 (surface VARCHAR, tournament VARCHAR)
SELECT surface FROM table_name_22 WHERE tournament = "città di caltanissetta"
What is the lowest number of students at the community college?
CREATE TABLE table_name_8 (founded INTEGER, affiliation VARCHAR)
SELECT MIN(founded) FROM table_name_8 WHERE affiliation = "community college"
What was the score of the game that had a result of 5–0?
CREATE TABLE table_name_30 (score VARCHAR, result VARCHAR)
SELECT score FROM table_name_30 WHERE result = "5–0"
How many episodes have episode #11?
CREATE TABLE table_22353769_3 (us_air_date VARCHAR, episode__number VARCHAR)
SELECT COUNT(us_air_date) FROM table_22353769_3 WHERE episode__number = 11
Which Goals for has a Position smaller than 16, and Wins smaller than 19, and Goals against smaller than 32?
CREATE TABLE table_name_17 (goals_for INTEGER, goals_against VARCHAR, position VARCHAR, wins VARCHAR)
SELECT MIN(goals_for) FROM table_name_17 WHERE position < 16 AND wins < 19 AND goals_against < 32
what is the name of the level for the 7th position
CREATE TABLE table_29697744_1 (level VARCHAR, position VARCHAR)
SELECT level FROM table_29697744_1 WHERE position = "7th"
What team was the away team at Arden Street Oval?
CREATE TABLE table_name_72 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_72 WHERE venue = "arden street oval"
how many drawn with tries against being 24
CREATE TABLE table_12828723_3 (drawn VARCHAR, tries_against VARCHAR)
SELECT COUNT(drawn) FROM table_12828723_3 WHERE tries_against = "24"
How many events are in South Africa?
CREATE TABLE table_name_25 (events INTEGER, country VARCHAR)
SELECT SUM(events) FROM table_name_25 WHERE country = "south africa"
Show ids, first names, last names, and phones for all customers.
CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR, customer_phone VARCHAR)
SELECT customer_id, customer_first_name, customer_last_name, customer_phone FROM Customers
What percentage of browsers were using Safari during the period in which 31.27% were using Firefox?
CREATE TABLE table_name_62 (safari VARCHAR, firefox VARCHAR)
SELECT safari FROM table_name_62 WHERE firefox = "31.27%"
What is the rank number with 562-506 goals before season 13?
CREATE TABLE table_name_88 (rank VARCHAR, goals VARCHAR, seasons VARCHAR)
SELECT COUNT(rank) FROM table_name_88 WHERE goals = "562-506" AND seasons < 13
What did the home team score at Windy Hill?
CREATE TABLE table_name_92 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_92 WHERE venue = "windy hill"
What is Party, when District is "Tennessee 8"?
CREATE TABLE table_name_33 (party VARCHAR, district VARCHAR)
SELECT party FROM table_name_33 WHERE district = "tennessee 8"
What is the highest 1937 value that has a 1940 value over 126?
CREATE TABLE table_name_60 (Id VARCHAR)
SELECT MAX(1937) FROM table_name_60 WHERE 1940 > 126
What studio did Paul Greengrass direct in 2007?
CREATE TABLE table_name_92 (studio_s_ VARCHAR, year VARCHAR, director VARCHAR)
SELECT studio_s_ FROM table_name_92 WHERE year = 2007 AND director = "paul greengrass"
Name the year for hercules
CREATE TABLE table_name_52 (year_made VARCHAR, class VARCHAR)
SELECT year_made FROM table_name_52 WHERE class = "hercules"
How many touchdowns did Sam Babcock get?
CREATE TABLE table_25642873_2 (touchdowns INTEGER, player VARCHAR)
SELECT MAX(touchdowns) FROM table_25642873_2 WHERE player = "Sam Babcock"
What is the grid average with a +1 lap time and more than 27 laps?
CREATE TABLE table_name_52 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_52 WHERE time_retired = "+1 lap" AND laps > 27
What were the total number of games in April greater than 83?
CREATE TABLE table_name_61 (april VARCHAR, game INTEGER)
SELECT COUNT(april) FROM table_name_61 WHERE game > 83
What is the time for the 50m breaststroke?
CREATE TABLE table_name_34 (time VARCHAR, event VARCHAR)
SELECT time FROM table_name_34 WHERE event = "50m breaststroke"
What score has jim courier as the opponent in the final?
CREATE TABLE table_name_86 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_86 WHERE opponent_in_the_final = "jim courier"
where the land is 35.990 what is the number of the geo id
CREATE TABLE table_18600760_19 (geo_id VARCHAR, land___sqmi__ VARCHAR)
SELECT geo_id FROM table_18600760_19 WHERE land___sqmi__ = "35.990"
Name the gdp world rank for asian rank being 15
CREATE TABLE table_2249029_1 (gdp_world_rank VARCHAR, asian_rank VARCHAR)
SELECT gdp_world_rank FROM table_2249029_1 WHERE asian_rank = 15
What is the earliest game that had 42,707 attending?
CREATE TABLE table_name_94 (game INTEGER, attendance VARCHAR)
SELECT MIN(game) FROM table_name_94 WHERE attendance = 42 OFFSET 707
Can you tell me the lowest Rank that has the Nationality of australia, and the Name of leisel jones, and the Lane larger than 4?
CREATE TABLE table_name_49 (rank INTEGER, lane VARCHAR, nationality VARCHAR, name VARCHAR)
SELECT MIN(rank) FROM table_name_49 WHERE nationality = "australia" AND name = "leisel jones" AND lane > 4
Which team is ranked #10?
CREATE TABLE table_name_74 (team VARCHAR, rank VARCHAR)
SELECT team FROM table_name_74 WHERE rank = 10
What is Score, when Country is "Scotland"?
CREATE TABLE table_name_47 (score VARCHAR, country VARCHAR)
SELECT score FROM table_name_47 WHERE country = "scotland"
Find the id of the order which is shipped most recently.
CREATE TABLE shipments (order_id VARCHAR, shipment_date INTEGER)
SELECT order_id FROM shipments WHERE shipment_date = (SELECT MAX(shipment_date) FROM shipments)
What is the Years of the player with Jersey Number(s) of 44?
CREATE TABLE table_name_73 (years VARCHAR, jersey_number_s_ VARCHAR)
SELECT years FROM table_name_73 WHERE jersey_number_s_ = 44
What is the category for the year when Brioude started and the stage is less than 7?
CREATE TABLE table_name_10 (category VARCHAR, start VARCHAR, stage VARCHAR)
SELECT COUNT(category) FROM table_name_10 WHERE start = "brioude" AND stage < 7
Who is the Conductor who had Stephen Barlow as Director?
CREATE TABLE table_name_22 (conductor VARCHAR, director VARCHAR)
SELECT conductor FROM table_name_22 WHERE director = "stephen barlow"
Name the 2nd m for gregor schlierenzauer
CREATE TABLE table_14407512_24 (name VARCHAR)
SELECT 2 AS nd__m_ FROM table_14407512_24 WHERE name = "Gregor Schlierenzauer"
What couple averaged 21.0?
CREATE TABLE table_25557556_5 (couple VARCHAR, average VARCHAR)
SELECT couple FROM table_25557556_5 WHERE average = "21.0"
What wast the percent cut for the nation with an 80% full gas storage?
CREATE TABLE table_21690339_1 (_percentage_cut VARCHAR, gas_storage VARCHAR)
SELECT _percentage_cut FROM table_21690339_1 WHERE gas_storage = "80% full"
Tell me the totla number of goal difference for goals against of 30 and played less than 18
CREATE TABLE table_name_4 (goal_difference VARCHAR, goals_against VARCHAR, played VARCHAR)
SELECT COUNT(goal_difference) FROM table_name_4 WHERE goals_against = 30 AND played < 18
When was the episode 2x10 aired for the first time?
CREATE TABLE table_19930660_2 (first_broadcast VARCHAR, episode VARCHAR)
SELECT first_broadcast FROM table_19930660_2 WHERE episode = "2x10"
Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name.
CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR); CREATE TABLE Maintenance_Engineers (company_id VARCHAR); CREATE TABLE Third_Party_Companies (company_id VARCHAR, company_name VARCHAR)
SELECT T1.company_id, T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Engineers AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id HAVING COUNT(*) >= 2 UNION SELECT T3.company_id, T3.company_name FROM Third_Party_Companies AS T3 JOIN Maintenance_Contracts AS T4 ON T3.company_id = T4.mainten...
Which club/province has more than 9 caps and Ben Franks as a player?
CREATE TABLE table_name_44 (club_province VARCHAR, caps VARCHAR, player VARCHAR)
SELECT club_province FROM table_name_44 WHERE caps > 9 AND player = "ben franks"
When Gigi Fernández Natalia Zvereva 6–2, 6–1 won, who was the Tier II Runner-up?
CREATE TABLE table_name_85 (runner_up VARCHAR, tier VARCHAR, winner VARCHAR)
SELECT runner_up FROM table_name_85 WHERE tier = "tier ii" AND winner = "gigi fernández natalia zvereva 6–2, 6–1"
Who's the Republican ticket with a Socialist ticket of edna mitchell blue?
CREATE TABLE table_name_46 (republican_ticket VARCHAR, socialist_ticket VARCHAR)
SELECT republican_ticket FROM table_name_46 WHERE socialist_ticket = "edna mitchell blue"
What is Ashton Cobb's class in Game 2?
CREATE TABLE table_name_87 (class VARCHAR, games↑ VARCHAR, name VARCHAR)
SELECT class FROM table_name_87 WHERE games↑ = 2 AND name = "ashton cobb"
What is the partial failure for the Country of russia, and a Failure larger than 0, and a Family of angara, and a Launch larger than 1?
CREATE TABLE table_name_53 (partial_failures INTEGER, launches VARCHAR, family VARCHAR, country VARCHAR, failures VARCHAR)
SELECT AVG(partial_failures) FROM table_name_53 WHERE country = "russia" AND failures > 0 AND family = "angara" AND launches > 1
List the authors who do not have submission to any workshop.
CREATE TABLE acceptance (Author VARCHAR, Submission_ID VARCHAR); CREATE TABLE submission (Author VARCHAR, Submission_ID VARCHAR)
SELECT Author FROM submission WHERE NOT Submission_ID IN (SELECT Submission_ID FROM acceptance)
Who won Pro Stock Motorcycle the year Tom Martino won Pro Stock?
CREATE TABLE table_name_60 (pro_stock VARCHAR)
SELECT pro_stock AS Motorcycle FROM table_name_60 WHERE pro_stock = "tom martino"
whatis the gender wher ethe species is holland lop?
CREATE TABLE table_26615633_3 (gender VARCHAR, species VARCHAR)
SELECT gender FROM table_26615633_3 WHERE species = "Holland Lop"
Which details has the out of line label and the year of 2005?
CREATE TABLE table_name_9 (details VARCHAR, label VARCHAR, year VARCHAR)
SELECT details FROM table_name_9 WHERE label = "out of line" AND year = 2005
How many Lok Sabha are in the one with 216 constituents?
CREATE TABLE table_29785324_5 (lok_sabha VARCHAR, constituency_no VARCHAR)
SELECT lok_sabha FROM table_29785324_5 WHERE constituency_no = 216
Find the day in which the difference between the max temperature and min temperature was the smallest. Also report the difference.
CREATE TABLE weather (date VARCHAR, max_temperature_f VARCHAR, min_temperature_f VARCHAR)
SELECT date, max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1
If the province is Nunavut, what is the Arabs 2011 amount?
CREATE TABLE table_1939367_1 (arabs_2011 VARCHAR, province VARCHAR)
SELECT arabs_2011 FROM table_1939367_1 WHERE province = "Nunavut"
What is the title of S02E01?
CREATE TABLE table_20360535_3 (title VARCHAR, television_order VARCHAR)
SELECT title FROM table_20360535_3 WHERE television_order = "S02E01"
What team did the Chicago Black Hawks visit on April 20?
CREATE TABLE table_name_92 (home VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT home FROM table_name_92 WHERE visitor = "chicago black hawks" AND date = "april 20"
Who is the spokesperson after 2012?
CREATE TABLE table_name_33 (spokesperson VARCHAR, year_s_ INTEGER)
SELECT spokesperson FROM table_name_33 WHERE year_s_ > 2012
What was the score of Wally Armstrong?
CREATE TABLE table_name_49 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_49 WHERE player = "wally armstrong"
What is the county of precints 515?
CREATE TABLE table_10586064_2 (county VARCHAR, precincts VARCHAR)
SELECT county FROM table_10586064_2 WHERE precincts = 515
What is the total of bronze medals from nations with more than 16 total medals and ranks larger than 3?
CREATE TABLE table_name_68 (bronze VARCHAR, total VARCHAR, rank VARCHAR)
SELECT COUNT(bronze) FROM table_name_68 WHERE total = 16 AND rank > 3
What's the minimal game number in the season?
CREATE TABLE table_11961582_4 (game INTEGER)
SELECT MIN(game) FROM table_11961582_4
On how many locations is the Saint Joseph's College of Maine located?
CREATE TABLE table_1973816_1 (location VARCHAR, institution VARCHAR)
SELECT COUNT(location) FROM table_1973816_1 WHERE institution = "Saint Joseph's College of Maine"
When was Lee Phillips the director?
CREATE TABLE table_name_35 (year VARCHAR, director VARCHAR)
SELECT year FROM table_name_35 WHERE director = "lee phillips"
During the championship where the winning score was −9 (66-69-73-71=279)?, who was the runner-up?
CREATE TABLE table_name_32 (runner_s__up VARCHAR, winning_score VARCHAR)
SELECT runner_s__up FROM table_name_32 WHERE winning_score = −9(66 - 69 - 73 - 71 = 279)
What is the total for a to par bigger than 7 and a player of al geiberger?
CREATE TABLE table_name_58 (total VARCHAR, player VARCHAR, to_par VARCHAR)
SELECT COUNT(total) FROM table_name_58 WHERE player = "al geiberger" AND to_par > 7
How many top 10s associated with 3 top 5s and under 22 cuts made?
CREATE TABLE table_name_13 (top_10 INTEGER, top_5 VARCHAR, cuts_made VARCHAR)
SELECT MAX(top_10) FROM table_name_13 WHERE top_5 = 3 AND cuts_made < 22
The venue of Rome has which date?
CREATE TABLE table_name_84 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_84 WHERE venue = "rome"
Name the score for record of 2-5
CREATE TABLE table_17432028_1 (score VARCHAR, record VARCHAR)
SELECT score FROM table_17432028_1 WHERE record = "2-5"
Tell me the post-season record for kansas city
CREATE TABLE table_name_55 (post_season_record_ VARCHAR, e_ VARCHAR, mlb_affiliate VARCHAR)
SELECT post_season_record_[e_] FROM table_name_55 WHERE mlb_affiliate = "kansas city"
List all information regarding the basketball match.
CREATE TABLE basketball_match (Id VARCHAR)
SELECT * FROM basketball_match
What's the total byes for more than 1 draw?
CREATE TABLE table_name_74 (byes VARCHAR, draws INTEGER)
SELECT COUNT(byes) FROM table_name_74 WHERE draws > 1
What was the score of the game on 1 september?
CREATE TABLE table_name_49 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_49 WHERE date = "1 september"
What was the score of the game played on January 19?
CREATE TABLE table_15780049_6 (score VARCHAR, date VARCHAR)
SELECT score FROM table_15780049_6 WHERE date = "January 19"
What is the highest Week, when Result is W 34-21?
CREATE TABLE table_name_89 (week INTEGER, result VARCHAR)
SELECT MAX(week) FROM table_name_89 WHERE result = "w 34-21"
For Getafe CF, what is the highest number of goals scored?
CREATE TABLE table_name_74 (goals INTEGER, team VARCHAR)
SELECT MAX(goals) FROM table_name_74 WHERE team = "getafe cf"
What Kerry's percentage where 66 people voted for another candidate?
CREATE TABLE table_name_71 (kerry_percentage VARCHAR, others_number VARCHAR)
SELECT kerry_percentage FROM table_name_71 WHERE others_number = 66
What is the municipal status where the population density is 895.5?
CREATE TABLE table_21284653_1 (municipal_status VARCHAR, population_density VARCHAR)
SELECT municipal_status FROM table_21284653_1 WHERE population_density = "895.5"
How many records were made on March 27, 2009?
CREATE TABLE table_16864968_8 (record VARCHAR, date VARCHAR)
SELECT COUNT(record) FROM table_16864968_8 WHERE date = "March 27, 2009"
What was the date when the home team was Dallas?
CREATE TABLE table_name_28 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_28 WHERE home = "dallas"
WHAT WAS THE NUMBER OF THE ONLY FORWARD-CENTER TO MAKE THE ROSTER?
CREATE TABLE table_15621965_18 (no INTEGER, position VARCHAR)
SELECT MIN(no) FROM table_15621965_18 WHERE position = "Forward-Center"
What is the highest pick when the college is saginaw valley state?
CREATE TABLE table_name_61 (pick INTEGER, college VARCHAR)
SELECT MAX(pick) FROM table_name_61 WHERE college = "saginaw valley state"
How many values of top 10 for 5th position?
CREATE TABLE table_2597876_2 (top_10 VARCHAR, position VARCHAR)
SELECT COUNT(top_10) FROM table_2597876_2 WHERE position = "5th"
When was the incident in Pol-E Khomri?
CREATE TABLE table_name_17 (date VARCHAR, location VARCHAR)
SELECT date FROM table_name_17 WHERE location = "pol-e khomri"
What was the date of game #3?
CREATE TABLE table_27712180_13 (date VARCHAR, game VARCHAR)
SELECT date FROM table_27712180_13 WHERE game = 3
Which colleges have the english abbreviation MTC?
CREATE TABLE table_11390711_4 (english_name VARCHAR, abbreviation VARCHAR)
SELECT english_name FROM table_11390711_4 WHERE abbreviation = "MTC"
Which gender is associated with University students and adults of 25mm?
CREATE TABLE table_name_19 (gender VARCHAR, university_students_and_adults__18yrs VARCHAR, _ VARCHAR)
SELECT gender FROM table_name_19 WHERE university_students_and_adults__18yrs + _ = "25mm"
Name the venue where St Kilda was the opposing away team
CREATE TABLE table_name_76 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_76 WHERE away_team = "st kilda"
What is the maximum population size in the town of Stanthorpe?
CREATE TABLE table_12584173_1 (population__stanthorpe_ INTEGER)
SELECT MAX(population__stanthorpe_) FROM table_12584173_1
Name the successor for elected january 26, 1837
CREATE TABLE table_225200_3 (successor VARCHAR, date_of_successors_formal_installation VARCHAR)
SELECT COUNT(successor) FROM table_225200_3 WHERE date_of_successors_formal_installation = "Elected January 26, 1837"
Which Overall has a playoff record of (0-1) and an away record of (1-1)?
CREATE TABLE table_name_71 (overall VARCHAR, plyff VARCHAR, away VARCHAR)
SELECT overall FROM table_name_71 WHERE plyff = "(0-1)" AND away = "(1-1)"
What is 2011, when 2008 is "2R"?
CREATE TABLE table_name_40 (Id VARCHAR)
SELECT 2011 FROM table_name_40 WHERE 2008 = "2r"
What company built the ship named excellent in 1998?
CREATE TABLE table_name_59 (company VARCHAR, built VARCHAR, ship VARCHAR)
SELECT company FROM table_name_59 WHERE built = 1998 AND ship = "excellent"
How many episodes had rating/share (18-49) of 0.7/2 and a rating of 2.1?
CREATE TABLE table_25751274_2 (episode_number VARCHAR, rating VARCHAR)
SELECT COUNT(episode_number) FROM table_25751274_2 WHERE rating / SHARE(18 - 49) = 0.7 / 2 AND rating = "2.1"
what year has general nominated in the category or choice breakthrough artist?
CREATE TABLE table_name_77 (year VARCHAR, nominated_work VARCHAR, category VARCHAR)
SELECT COUNT(year) FROM table_name_77 WHERE nominated_work = "general" AND category = "choice breakthrough artist"
What date was Notts County the opponent and the league position was 1st?
CREATE TABLE table_name_96 (date VARCHAR, opponents VARCHAR, league_position VARCHAR)
SELECT date FROM table_name_96 WHERE opponents = "notts county" AND league_position = "1st"
What is the name of the algorithm with a directed/undirected of both and a subgraph-centric basis?
CREATE TABLE table_name_12 (name VARCHAR, directed___undirected VARCHAR, basis VARCHAR)
SELECT name FROM table_name_12 WHERE directed___undirected = "both" AND basis = "subgraph-centric"