answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT SUM(total) FROM table_name_35 WHERE rank = 1
Tell me the sum of total for rank of 1
CREATE TABLE table_name_35 (total INTEGER, rank VARCHAR)
SELECT record FROM table_16295365_1 WHERE school = "UMBC"
What was the overall record of UMBC?
CREATE TABLE table_16295365_1 (record VARCHAR, school VARCHAR)
SELECT region FROM table_name_91 WHERE format = "cd maxi"
Which region had the CD maxi format?
CREATE TABLE table_name_91 (region VARCHAR, format VARCHAR)
SELECT owner FROM table_name_60 WHERE seats = 84
Which owner has 84 seats?
CREATE TABLE table_name_60 (owner VARCHAR, seats VARCHAR)
SELECT median_household_income FROM table_name_27 WHERE per_capita_income = "$28,789"
What is the median household income where the per capita is $28,789?
CREATE TABLE table_name_27 (median_household_income VARCHAR, per_capita_income VARCHAR)
SELECT current_ratio FROM table_19166421_1 WHERE net_worth_to_fixed_assets = 621
If the net worth of fixed assets is 621, what is the current ratio?
CREATE TABLE table_19166421_1 (current_ratio VARCHAR, net_worth_to_fixed_assets VARCHAR)
SELECT surface FROM table_name_66 WHERE outcome = "runner-up" AND partner = "ivan lendl" AND score_in_the_final = "2–6, 6–7"
On what surface was Ivan Lendl a partner with a runner-up outcome and final score of 2–6, 6–7?
CREATE TABLE table_name_66 (surface VARCHAR, score_in_the_final VARCHAR, outcome VARCHAR, partner VARCHAR)
SELECT reverse FROM table_298883_5 WHERE value = "₩100"
What is on the reverse side of the ₩100 coin?
CREATE TABLE table_298883_5 (reverse VARCHAR, value VARCHAR)
SELECT chassis FROM table_name_32 WHERE points = "4"
Which Chassis has 4 points?
CREATE TABLE table_name_32 (chassis VARCHAR, points VARCHAR)
SELECT COUNT(city___municipality) FROM table_261222_1 WHERE area__km_2__ = "506.64"
How many city/municipalties have an area (km2) of 506.64?
CREATE TABLE table_261222_1 (city___municipality VARCHAR, area__km_2__ VARCHAR)
SELECT score FROM table_name_76 WHERE record = "35-47"
What was the score of the game when the record was 35-47?
CREATE TABLE table_name_76 (score VARCHAR, record VARCHAR)
SELECT reason FROM table_28898948_3 WHERE winner = "Arthur Collins"
When arthur collins is the winner what is the reason?
CREATE TABLE table_28898948_3 (reason VARCHAR, winner VARCHAR)
SELECT directed_by FROM table_name_85 WHERE written_by = "cyrus nowrasteh"
Who directed the episode written cyrus nowrasteh?
CREATE TABLE table_name_85 (directed_by VARCHAR, written_by VARCHAR)
SELECT player FROM table_name_94 WHERE school = "hoover high school"
Which player attended Hoover High School?
CREATE TABLE table_name_94 (player VARCHAR, school VARCHAR)
SELECT COUNT(position) FROM table_27067379_1 WHERE building = "Costanera Center Torre 1"
How many positions does building Costanera Center Torre 1 have?
CREATE TABLE table_27067379_1 (position VARCHAR, building VARCHAR)
SELECT nationality FROM table_name_71 WHERE rank > 3 AND name = "tom hilde"
Which Nationality has a Rank larger than 3, and a Name of tom hilde?
CREATE TABLE table_name_71 (nationality VARCHAR, rank VARCHAR, name VARCHAR)
SELECT title FROM table_27450976_1 WHERE production_code = "2J5504"
What is the title of the episode with a production code of 2j5504?
CREATE TABLE table_27450976_1 (title VARCHAR, production_code VARCHAR)
SELECT MIN(tie_no) FROM table_19294812_2 WHERE team_2 = "Koper"
What is the tie when team 2 is koper?
CREATE TABLE table_19294812_2 (tie_no INTEGER, team_2 VARCHAR)
SELECT account_id, COUNT(*) FROM Financial_transactions GROUP BY account_id
Show the account id and the number of transactions for each account
CREATE TABLE Financial_transactions (account_id VARCHAR)
SELECT T2.dept_name, T2.dept_address FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 1
Find the name and address of the department that has the highest number of students.
CREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_address VARCHAR, dept_code VARCHAR)
SELECT COUNT(rushing_yards) FROM table_name_27 WHERE average > 8.4 AND carries < 54
What is the total number of rushing yards associated with averages over 8.4 and fewer than 54 carries?
CREATE TABLE table_name_27 (rushing_yards VARCHAR, average VARCHAR, carries VARCHAR)
SELECT date FROM table_name_94 WHERE scorers = "hegarty"
What date was the game played in where hegarty was the scorer?
CREATE TABLE table_name_94 (date VARCHAR, scorers VARCHAR)
SELECT week FROM table_name_14 WHERE date = "november 19, 1989"
What week number did November 19, 1989 games fall on?
CREATE TABLE table_name_14 (week VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_54 WHERE loss = "kinney (0-1)"
Which opponent lost with pitcher Kinney (0-1)?
CREATE TABLE table_name_54 (opponent VARCHAR, loss VARCHAR)
SELECT score FROM table_name_48 WHERE winning_team = "san antonio spurs"
What is the Score with a Winning team that is san antonio spurs?
CREATE TABLE table_name_48 (score VARCHAR, winning_team VARCHAR)
SELECT home_team FROM table_name_80 WHERE game = "game 2"
What is the Home Team in Game 2?
CREATE TABLE table_name_80 (home_team VARCHAR, game VARCHAR)
SELECT country FROM table_name_36 WHERE to_par = "+2" AND score = 69 - 73 = 142 AND player = "rocco mediate"
When Rocco Mediate has a To par of +2 and a 69-73=142 score, what is the country listed?
CREATE TABLE table_name_36 (country VARCHAR, player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT MAX(_number_of_seats_won) FROM table_168482_1
What is the largest number of seats won?
CREATE TABLE table_168482_1 (_number_of_seats_won INTEGER)
SELECT year FROM table_name_26 WHERE release_type = "cd album" AND released_as = "ethereal 77"
What year was Ethereal 77, which has a CD album release type?
CREATE TABLE table_name_26 (year VARCHAR, release_type VARCHAR, released_as VARCHAR)
SELECT years FROM table_name_6 WHERE roll > 296 AND area = "murupara"
Murupara has a roll greater than 296 for what years?
CREATE TABLE table_name_6 (years VARCHAR, roll VARCHAR, area VARCHAR)
SELECT driver FROM table_2266976_1 WHERE year = "1986"
Who was the driver in 1986?
CREATE TABLE table_2266976_1 (driver VARCHAR, year VARCHAR)
SELECT entrant FROM table_name_46 WHERE rounds = "all" AND driver = "jean alesi"
Who was the entrant for all the round with Jean Alesi?
CREATE TABLE table_name_46 (entrant VARCHAR, rounds VARCHAR, driver VARCHAR)
SELECT MAX(crowd) FROM table_name_48 WHERE home_team = "north melbourne"
What is the largest crowd for North Melbourne home games?
CREATE TABLE table_name_48 (crowd INTEGER, home_team VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_91 WHERE original_title = "cilvēka bērns"
What is the Film title used in nomination of Cilvēka Bērns?
CREATE TABLE table_name_91 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT AVG(bronze) FROM table_name_9 WHERE silver > 2 AND gold > 7
Which average bronze had a silver greater than 2 and a gold larger than 7?
CREATE TABLE table_name_9 (bronze INTEGER, silver VARCHAR, gold VARCHAR)
SELECT SUM(december) FROM table_name_63 WHERE record = "7-2-2" AND game < 11
What day in December was the game before game 11 with a record of 7-2-2?
CREATE TABLE table_name_63 (december INTEGER, record VARCHAR, game VARCHAR)
SELECT SUM(goals) FROM table_name_71 WHERE rank > 10
What is the total Goals with Rank larger than 10?
CREATE TABLE table_name_71 (goals INTEGER, rank INTEGER)
SELECT label FROM table_name_24 WHERE format = "stereo lp" AND catalog = "scyl-934,623"
What label uses the stereo LP for catalog scyl-934,623?
CREATE TABLE table_name_24 (label VARCHAR, format VARCHAR, catalog VARCHAR)
SELECT COUNT(industry) FROM table_19112_3 WHERE company = "Maxis"
Name the total number of industry for maxis
CREATE TABLE table_19112_3 (industry VARCHAR, company VARCHAR)
SELECT guest FROM table_name_67 WHERE date = "25.11.07" AND home = "stade nyonnais (1.l)"
Who was the gues on 25.11.07 when home was stade nyonnais (1.l)?
CREATE TABLE table_name_67 (guest VARCHAR, date VARCHAR, home VARCHAR)
SELECT MAX(earnings___) AS $__ FROM table_name_26 WHERE player = "tom watson" AND rank > 2
What is the highest earnings for Tom watson who had a ranking larger than 2?
CREATE TABLE table_name_26 (earnings___ INTEGER, player VARCHAR, rank VARCHAR)
SELECT first_elected FROM table_2668352_11 WHERE candidates = "Hosea Moffitt (F) 57.9% Josiah Masters (DR) 42.1%"
Name the first elected for hosea moffitt (f) 57.9% josiah masters (dr) 42.1%
CREATE TABLE table_2668352_11 (first_elected VARCHAR, candidates VARCHAR)
SELECT votes FROM table_name_11 WHERE artist = "filipa batista"
What are the Votes for the Song by Artist Filipa Batista?
CREATE TABLE table_name_11 (votes VARCHAR, artist VARCHAR)
SELECT MAX(game) FROM table_name_11 WHERE streak = "win 1" AND date = "february 18"
What is the highest Game, when Streak is "Win 1", and when Date is "February 18"?
CREATE TABLE table_name_11 (game INTEGER, streak VARCHAR, date VARCHAR)
SELECT MIN(capacity) FROM table_name_61 WHERE class = "cm22" AND vehicle = "1999 subaru impreza wrx sti"
Which Capacity has a Class of cm22, and a Vehicle of 1999 subaru impreza wrx sti?
CREATE TABLE table_name_61 (capacity INTEGER, class VARCHAR, vehicle VARCHAR)
SELECT home_stadium FROM table_name_64 WHERE division = "south" AND conference = "national" AND city = "charlotte, north carolina"
What is the name of the Home Stadium in which the Division is in the south, and Conference is national, as well as being in the city named charlotte, North Carolina?
CREATE TABLE table_name_64 (home_stadium VARCHAR, city VARCHAR, division VARCHAR, conference VARCHAR)
SELECT winning_score FROM table_1940012_2 WHERE runner_s__up = "Birdie Kim"
What was the winning score in the tournament, ending with Birdie Kim as a runner-up?
CREATE TABLE table_1940012_2 (winning_score VARCHAR, runner_s__up VARCHAR)
SELECT AVG(laps) FROM table_name_87 WHERE grid > 2 AND time_retired = "accident" AND constructor = "ferrari"
What is the average laps for a grid larger than 2, for a ferrari that got in an accident?
CREATE TABLE table_name_87 (laps INTEGER, constructor VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT design FROM table_name_32 WHERE acquired = 1875
What design was acquired in 1875?
CREATE TABLE table_name_32 (design VARCHAR, acquired VARCHAR)
SELECT name FROM table_name_57 WHERE terminus = "pine forest"
Which route has a terminus of pine Forest?
CREATE TABLE table_name_57 (name VARCHAR, terminus VARCHAR)
SELECT finish FROM table_name_33 WHERE total < 282
In what place(s) did the player(s) with a total less than 282 finish?
CREATE TABLE table_name_33 (finish VARCHAR, total INTEGER)
SELECT document_id FROM Documents_with_expenses WHERE budget_type_code = 'SF'
What are the document ids for the budget type code 'SF'?
CREATE TABLE Documents_with_expenses (document_id VARCHAR, budget_type_code VARCHAR)
SELECT COUNT(television_channels) FROM table_23143607_1 WHERE radio_stations = "Radio Nou Si Radio Radio Nou Música"
If the radio stations is radio nou si radio radio nou música; what were the total number of television channels?
CREATE TABLE table_23143607_1 (television_channels VARCHAR, radio_stations VARCHAR)
SELECT COUNT(matchup_results) FROM table_23718905_6 WHERE city = "San Diego, California"
How many different matchup/results appear in San Diego, California?
CREATE TABLE table_23718905_6 (matchup_results VARCHAR, city VARCHAR)
SELECT COUNT(year) FROM table_name_67 WHERE score = "0.586"
What year had a score of 0.586?
CREATE TABLE table_name_67 (year VARCHAR, score VARCHAR)
SELECT constructor FROM table_name_75 WHERE tyre = "d" AND engine = "talbot 23cv 4.5 l6" AND chassis = "talbot-lago t26c" AND entrant = "ecurie belge"
who is the constructor when the tyre is d, the engine is talbot 23cv 4.5 l6, the chassis is talbot-lago t26c and the entrant is ecurie belge?
CREATE TABLE table_name_75 (constructor VARCHAR, entrant VARCHAR, chassis VARCHAR, tyre VARCHAR, engine VARCHAR)
SELECT country FROM table_name_47 WHERE player = "tiger woods"
what country has tiger woods
CREATE TABLE table_name_47 (country VARCHAR, player VARCHAR)
SELECT round FROM table_name_7 WHERE venue = "a" AND attendance > 14 OFFSET 314
What round was at the A venue with a attendance more than 14,314?
CREATE TABLE table_name_7 (round VARCHAR, venue VARCHAR, attendance VARCHAR)
SELECT COUNT(losses) FROM table_name_71 WHERE goals_for = 30 AND points > 24
Hiw many losses have 30 for the goals with points greater than 24?
CREATE TABLE table_name_71 (losses VARCHAR, goals_for VARCHAR, points VARCHAR)
SELECT MIN(losses) FROM table_name_9 WHERE ballarat_fl = "lake wendouree" AND wins < 9
What is the fewest losses that Ballarat FL of Lake Wendouree has when the wins are smaller than 9?
CREATE TABLE table_name_9 (losses INTEGER, ballarat_fl VARCHAR, wins VARCHAR)
SELECT casualties FROM table_name_67 WHERE nature_of_incident = "hostile" AND circumstances = "mortar attack"
Which Casualties have a hostile Nature of incident and Circumstances of mortar attack?
CREATE TABLE table_name_67 (casualties VARCHAR, nature_of_incident VARCHAR, circumstances VARCHAR)
SELECT director FROM table_1439096_1 WHERE original_air_date__atv_ = "26 October 1969"
Who was the director of the episode originally aired on 26 October 1969?
CREATE TABLE table_1439096_1 (director VARCHAR, original_air_date__atv_ VARCHAR)
SELECT examples FROM table_name_51 WHERE australian = "æ"
What are the examples for the Australian æ?
CREATE TABLE table_name_51 (examples VARCHAR, australian VARCHAR)
SELECT winning_score FROM table_name_97 WHERE date = "jul 4, 1982"
For the tournament played on Jul 4, 1982, what was the winning score?
CREATE TABLE table_name_97 (winning_score VARCHAR, date VARCHAR)
SELECT MIN(total_viewers__in_millions_) FROM table_name_54 WHERE episode_number_production_number = "109 5-22"
What was the fewest number of viewers for the episode production number of 109 5-22?
CREATE TABLE table_name_54 (total_viewers__in_millions_ INTEGER, episode_number_production_number VARCHAR)
SELECT score FROM table_name_85 WHERE date = "january 18"
What is the score of the game on January 18?
CREATE TABLE table_name_85 (score VARCHAR, date VARCHAR)
SELECT covered_song FROM table_name_7 WHERE album = "cover version iii"
What is the name of the Covered Song when the Album shows cover version iii?
CREATE TABLE table_name_7 (covered_song VARCHAR, album VARCHAR)
SELECT general_classification FROM table_name_96 WHERE stage = "4"
What general classification has 4 as the stage?
CREATE TABLE table_name_96 (general_classification VARCHAR, stage VARCHAR)
SELECT college FROM table_name_55 WHERE overall > 102 AND name = "keenan robinson"
what is the college for keenan robinson when overall is more than 102?
CREATE TABLE table_name_55 (college VARCHAR, overall VARCHAR, name VARCHAR)
SELECT venue FROM table_name_60 WHERE date = "october 13, 2007"
What is the venue on October 13, 2007?
CREATE TABLE table_name_60 (venue VARCHAR, date VARCHAR)
SELECT nation FROM table_name_52 WHERE points = 108.8
What was the nationality of the skater with 108.8 points?
CREATE TABLE table_name_52 (nation VARCHAR, points VARCHAR)
SELECT MAX(october) FROM table_name_41 WHERE game = 9
Which game has the highest score in October with 9?
CREATE TABLE table_name_41 (october INTEGER, game VARCHAR)
SELECT writer FROM table_25737761_3 WHERE director = "Colin Teague"
Who directed the episode directed by colin teague?
CREATE TABLE table_25737761_3 (writer VARCHAR, director VARCHAR)
SELECT away_team FROM table_name_2 WHERE venue = "kardinia park"
What is the name of the away team that played at Kardinia Park?
CREATE TABLE table_name_2 (away_team VARCHAR, venue VARCHAR)
SELECT colombian FROM table_24807774_1 WHERE bangladeshi = "Serbian"
how many colombia in bangladesh is serbian
CREATE TABLE table_24807774_1 (colombian VARCHAR, bangladeshi VARCHAR)
SELECT location FROM table_name_65 WHERE championship = "iron 8 championship tournament"
Which location held the Iron 8 Championship tournament?
CREATE TABLE table_name_65 (location VARCHAR, championship VARCHAR)
SELECT MAX(silver) FROM table_name_85 WHERE bronze < 0
What is the highest number of silver medals of the team with less than 0 bronzes?
CREATE TABLE table_name_85 (silver INTEGER, bronze INTEGER)
SELECT player FROM table_name_60 WHERE score = 68 - 71 - 70 = 208
Who has a Score of 68-71-70=208?
CREATE TABLE table_name_60 (player VARCHAR, score VARCHAR)
SELECT format FROM table_name_80 WHERE station = "kcbs"
Which format has a Station of kcbs?
CREATE TABLE table_name_80 (format VARCHAR, station VARCHAR)
SELECT total FROM table_name_70 WHERE rank_by_average = "74" AND place = "8th"
What is the total with a 74 rank by average for 8th place?
CREATE TABLE table_name_70 (total VARCHAR, rank_by_average VARCHAR, place VARCHAR)
SELECT MIN(draws) FROM table_name_6 WHERE byes < 2
What is the lowest Draws, when Byes is less than 2?
CREATE TABLE table_name_6 (draws INTEGER, byes INTEGER)
SELECT length FROM table_name_68 WHERE version = "uk remix"
What is the length of the UK remix version?
CREATE TABLE table_name_68 (length VARCHAR, version VARCHAR)
SELECT television_service FROM table_15887683_15 WHERE country = "United Kingdom" AND n° > 854.0
what television service are in the united kingdom and n° is greater than 854.0?
CREATE TABLE table_15887683_15 (television_service VARCHAR, country VARCHAR, n° VARCHAR)
SELECT venue FROM table_name_85 WHERE extra = "45.08 s"
What venue has an extra of 45.08 S?
CREATE TABLE table_name_85 (venue VARCHAR, extra VARCHAR)
SELECT date FROM table_name_71 WHERE home_team = "collingwood"
If collingwood was the Home team, what Date did they play?
CREATE TABLE table_name_71 (date VARCHAR, home_team VARCHAR)
SELECT MAX(losses) FROM table_name_82 WHERE wins = 0 AND win__percentage > 0
What is the high loss total for players with zero wins and a win % greater than 0?
CREATE TABLE table_name_82 (losses INTEGER, wins VARCHAR, win__percentage VARCHAR)
SELECT COUNT(race) AS Winner FROM table_1140074_2 WHERE rnd = 10
what's the total number of race winner with rnd being 10
CREATE TABLE table_1140074_2 (race VARCHAR, rnd VARCHAR)
SELECT losses FROM table_name_95 WHERE appearances < 16
How many losses did the division who appeared less than 16 times have?
CREATE TABLE table_name_95 (losses VARCHAR, appearances INTEGER)
SELECT high_points FROM table_name_77 WHERE score = "w 93-85"
Which player was the high points scorer during the game with an end score of W 93-85?
CREATE TABLE table_name_77 (high_points VARCHAR, score VARCHAR)
SELECT MIN(attendance) FROM table_name_39 WHERE date = "december 3, 1944"
What is the smallest attendance number for December 3, 1944?
CREATE TABLE table_name_39 (attendance INTEGER, date VARCHAR)
SELECT COUNT(region_4__australia_) FROM table_240936_2 WHERE region_2__uk_ = "July 9, 2007"
How many region 4 dates are associated with a region 2 date of July 9, 2007?
CREATE TABLE table_240936_2 (region_4__australia_ VARCHAR, region_2__uk_ VARCHAR)
SELECT MIN(no_s__in_season) FROM table_27714985_1 WHERE production_code_s_ = 226407
What is the episode number of the episode whose production code is 226407?
CREATE TABLE table_27714985_1 (no_s__in_season INTEGER, production_code_s_ VARCHAR)
SELECT MIN(sp) + fs FROM table_name_64 WHERE name = "miljan begovic" AND placings > 189
What is the lowest value for SP+FS for Miljan Begovic with a greater than 189 place?
CREATE TABLE table_name_64 (fs VARCHAR, sp INTEGER, name VARCHAR, placings VARCHAR)
SELECT stage FROM table_25580292_13 WHERE winner = "Luis León Sánchez"
What was the stage when the winner was luis león sánchez?
CREATE TABLE table_25580292_13 (stage VARCHAR, winner VARCHAR)
SELECT opponent FROM table_name_32 WHERE week > 6 AND result = "l 30–24"
Who did they play against in a week after 6 and the result was l 30–24?
CREATE TABLE table_name_32 (opponent VARCHAR, week VARCHAR, result VARCHAR)
SELECT surname FROM table_name_38 WHERE first = "marc"
What is Marc's Surname?
CREATE TABLE table_name_38 (surname VARCHAR, first VARCHAR)
SELECT SUM(crowd) FROM table_name_16 WHERE venue = "mcg"
When the Venue was mcg what was the sum of all Crowds for that venue?
CREATE TABLE table_name_16 (crowd INTEGER, venue VARCHAR)
SELECT date FROM table_name_25 WHERE venue = "china"
Which date has china as the venue?
CREATE TABLE table_name_25 (date VARCHAR, venue VARCHAR)
SELECT affiliation FROM table_24195232_1 WHERE institution = "Ohio Christian University"
What is the affiliation when the institution was ohio christian university?
CREATE TABLE table_24195232_1 (affiliation VARCHAR, institution VARCHAR)
SELECT nationality FROM table_name_95 WHERE player = "steve kerr"
What nationality has steve kerr as the player?
CREATE TABLE table_name_95 (nationality VARCHAR, player VARCHAR)