answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT first_elected FROM table_1342270_3 WHERE candidates = "Joe Starnes (D) 100.0% George Bogus ( W/I ) 0.003%"
what's the first elected with candidates being joe starnes (d) 100.0% george bogus ( w/i ) 0.003%
CREATE TABLE table_1342270_3 (first_elected VARCHAR, candidates VARCHAR)
SELECT line FROM table_name_8 WHERE ship = "lucania" AND year = "1894"
What is the line that has lucania as the ship and 1894 as the date?
CREATE TABLE table_name_8 (line VARCHAR, ship VARCHAR, year VARCHAR)
SELECT tournament FROM table_name_4 WHERE outcome = "winner" AND surface = "hard (i)"
Which Tournament has an Outcome of winner, and a Surface of hard (i)?
CREATE TABLE table_name_4 (tournament VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT COUNT(overall) FROM table_24223834_3 WHERE title = "This is What They Want"
How may overall episodes had the title "this is what they want"?
CREATE TABLE table_24223834_3 (overall VARCHAR, title VARCHAR)
SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "bangla" GROUP BY T2.artist_name ORDER BY COUNT(*) DESC LIMIT 3
Find the top 3 artists who have the largest number of songs works whose language is Bangla.
CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR)
SELECT event FROM table_name_94 WHERE opponent = "bill parker"
What event did tedd williams fight bill parker?
CREATE TABLE table_name_94 (event VARCHAR, opponent VARCHAR)
SELECT network FROM table_name_86 WHERE title = "epik high's love and delusion"
What is the Network, when Title is "Epik High's Love And Delusion"?
CREATE TABLE table_name_86 (network VARCHAR, title VARCHAR)
SELECT MAX(number_in_series) FROM table_name_19 WHERE production_code = "50021–50025"
What is the series number that has a production code of 50021–50025?
CREATE TABLE table_name_19 (number_in_series INTEGER, production_code VARCHAR)
SELECT weight_ & _height FROM table_name_43 WHERE player = "james donaldson"
Which Weight & Height has a Player of james donaldson?
CREATE TABLE table_name_43 (weight_ VARCHAR, _height VARCHAR, player VARCHAR)
SELECT rank FROM table_name_49 WHERE avgatt = "52 574"
Wha is the rank for 52 574 avg. att?
CREATE TABLE table_name_49 (rank VARCHAR, avgatt VARCHAR)
SELECT week_3 FROM table_name_64 WHERE week_2 = "nikki fiction"
Who is week 3 if week 2 is Nikki Fiction?
CREATE TABLE table_name_64 (week_3 VARCHAR, week_2 VARCHAR)
SELECT Double AS non_suited_match FROM table_name_99 WHERE non_suited_match = "3:1" AND house_edge = "3.53%"
With a house edge of 3.53% and a Non-Suited Matched of 3:1, name the Double Non-Suited Match.
CREATE TABLE table_name_99 (Double VARCHAR, non_suited_match VARCHAR, house_edge VARCHAR)
SELECT MIN(gross_tonnage) FROM table_11662133_1 WHERE ships_name = "Munich"
What is the minimum gross tonnage of the Munich?
CREATE TABLE table_11662133_1 (gross_tonnage INTEGER, ships_name VARCHAR)
SELECT SUM(against) FROM table_name_36 WHERE wins < 12 AND golden_rivers = "moulamein" AND draws < 0
What is the total of against matches when there are less than 12 wins, less than 0 draws, and Moulamein is the golden river?
CREATE TABLE table_name_36 (against INTEGER, draws VARCHAR, wins VARCHAR, golden_rivers VARCHAR)
SELECT years FROM table_name_27 WHERE transmission = "analogue cable" AND no_of_channels = "35"
What years are listed for analogue cable with 35 channels?
CREATE TABLE table_name_27 (years VARCHAR, transmission VARCHAR, no_of_channels VARCHAR)
SELECT Name FROM editor ORDER BY Age
List the names of editors in ascending order of age.
CREATE TABLE editor (Name VARCHAR, Age VARCHAR)
SELECT rounds FROM table_name_67 WHERE team = "ducati marlboro team" AND rider = "mika kallio 1"
What is the rounds of rider Mika Kallio 1 of the Ducati Marlboro team?
CREATE TABLE table_name_67 (rounds VARCHAR, team VARCHAR, rider VARCHAR)
SELECT MIN(2001 AS _02) FROM table_1057262_1 WHERE commodity = "Wool"
What is the minimum amount for wool for 2001-02?
CREATE TABLE table_1057262_1 (commodity VARCHAR)
SELECT left_office FROM table_name_83 WHERE minister = "enrico la loggia"
Tell me the left office for enrico la loggia
CREATE TABLE table_name_83 (left_office VARCHAR, minister VARCHAR)
SELECT 2004 FROM table_name_73 WHERE 1998 = "35"
What is the 2004 value if the 1998 value is 35?
CREATE TABLE table_name_73 (Id VARCHAR)
SELECT first_contact_with_hitler FROM table_name_60 WHERE age_at_death = "31"
When did the woman who died at 31 first contact Hitlers?
CREATE TABLE table_name_60 (first_contact_with_hitler VARCHAR, age_at_death VARCHAR)
SELECT winner FROM table_name_15 WHERE season = "2005–06"
Which Winner has a Season of 2005–06?
CREATE TABLE table_name_15 (winner VARCHAR, season VARCHAR)
SELECT date FROM table_name_38 WHERE team = "m3 motorsport" AND circuit = "winton motor raceway"
what date did the m3 motorsport team compete at winton motor raceway?
CREATE TABLE table_name_38 (date VARCHAR, team VARCHAR, circuit VARCHAR)
SELECT COUNT(goals) FROM table_name_71 WHERE current_club = "chievo" AND debut_year < 2002
How many goals were achieved when Chievo was the club and the debut year was before 2002?
CREATE TABLE table_name_71 (goals VARCHAR, current_club VARCHAR, debut_year VARCHAR)
SELECT head_coach FROM table_name_34 WHERE shirt_sponsor = "karstadt quelle versicherungen"
Who is the head coach of the team, whose shirt sponsor is karstadt quelle versicherungen?
CREATE TABLE table_name_34 (head_coach VARCHAR, shirt_sponsor VARCHAR)
SELECT lost FROM table_name_35 WHERE try_bonus = "2" AND losing_bonus = "4"
What is the value for Lost, when the value for Try bonus is 2, and when the value for Losing bonus is 4?
CREATE TABLE table_name_35 (lost VARCHAR, try_bonus VARCHAR, losing_bonus VARCHAR)
SELECT MIN(wins) FROM table_name_40 WHERE top_10 > 9
What is the lowest Wins with a Top-10 that is larger than 9?
CREATE TABLE table_name_40 (wins INTEGER, top_10 INTEGER)
SELECT COUNT(points) FROM table_25548630_1 WHERE team = "Marussia Manor Racing"
How many points does Marussia Manor Racing have?
CREATE TABLE table_25548630_1 (points VARCHAR, team VARCHAR)
SELECT bachelorette FROM table_name_37 WHERE premiered = "may 24, 2010"
Who is the bachelorette of the season that premiered on May 24, 2010?
CREATE TABLE table_name_37 (bachelorette VARCHAR, premiered VARCHAR)
SELECT home FROM table_name_70 WHERE visitor = "trail blazers"
Who was the home team where Trail Blazers were the visitor?
CREATE TABLE table_name_70 (home VARCHAR, visitor VARCHAR)
SELECT make FROM table_name_33 WHERE pos > 9
Which Make has a Pos larger than 9?
CREATE TABLE table_name_33 (make VARCHAR, pos INTEGER)
SELECT 17 AS th_c FROM table_name_68 WHERE british = "əʊ"
What is the 17th c. pronunciation when the british is əʊ?
CREATE TABLE table_name_68 (british VARCHAR)
SELECT country FROM table_name_70 WHERE iata = "gzt"
Which country has an IATA of gzt?
CREATE TABLE table_name_70 (country VARCHAR, iata VARCHAR)
SELECT date FROM table_name_24 WHERE margin_of_victory = "1 stroke" AND tournament = "the ace group classic"
What was the date of the Ace Group Classic tournament with a 1 stroke margin of victory?
CREATE TABLE table_name_24 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
SELECT position FROM table_name_90 WHERE league = "southern league premier division" AND season = "2004–05"
Which Position has a League of southern league premier division, and a Season of 2004–05?
CREATE TABLE table_name_90 (position VARCHAR, league VARCHAR, season VARCHAR)
SELECT AVG(number_of_electorates__2003_) FROM table_name_80 WHERE reserved_for___sc___st__none_ = "sc" AND constituency_number = "50"
What is the average number of electorates (2003) reserved for sc with a constituency number of 50?
CREATE TABLE table_name_80 (number_of_electorates__2003_ INTEGER, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
SELECT COUNT(attendance) FROM table_name_78 WHERE week = 9
How many attendances have 9 as the week?
CREATE TABLE table_name_78 (attendance VARCHAR, week VARCHAR)
SELECT civil_parish FROM table_30120547_1 WHERE area__acres__ = 119
What are the civil parishes of the townlands with an area of 119 acres?
CREATE TABLE table_30120547_1 (civil_parish VARCHAR, area__acres__ VARCHAR)
SELECT engine FROM table_name_74 WHERE chassis = "minardi m187"
What engine was paired with Minardi m187?
CREATE TABLE table_name_74 (engine VARCHAR, chassis VARCHAR)
SELECT nickname FROM table_name_73 WHERE age___ma__ = "4.9"
Name the nickname with age of 4.9
CREATE TABLE table_name_73 (nickname VARCHAR, age___ma__ VARCHAR)
SELECT MAX(win__percentage) FROM table_name_40 WHERE manager = "juan carlos chávez" AND lost < 4
What is the highes win % that manager juan carlos chávez's team had when they lost less than 4 times?
CREATE TABLE table_name_40 (win__percentage INTEGER, manager VARCHAR, lost VARCHAR)
SELECT COUNT(division) FROM table_1969634_1 WHERE nickname = "Skyhawks"
How many teams have skyhawks as a nickname?
CREATE TABLE table_1969634_1 (division VARCHAR, nickname VARCHAR)
SELECT name FROM table_name_37 WHERE date = "24 september"
What was the name of the race on 24 September?
CREATE TABLE table_name_37 (name VARCHAR, date VARCHAR)
SELECT venue FROM table_name_68 WHERE date = "28 july 2007"
Which venue has a Date of 28 july 2007?
CREATE TABLE table_name_68 (venue VARCHAR, date VARCHAR)
SELECT years FROM table_name_77 WHERE finals = "9 (3)"
What years have 9 (3) as the finals?
CREATE TABLE table_name_77 (years VARCHAR, finals VARCHAR)
SELECT college FROM table_12165135_1 WHERE afl_team = "Buffalo Bills"
What is the college of the afl team of buffalo bills?
CREATE TABLE table_12165135_1 (college VARCHAR, afl_team VARCHAR)
SELECT DISTINCT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 5
Find the last names of the teachers that teach fifth grade.
CREATE TABLE list (classroom VARCHAR); CREATE TABLE teachers (lastname VARCHAR, classroom VARCHAR)
SELECT category FROM book_club WHERE YEAR > 1989 GROUP BY category HAVING COUNT(*) >= 2
List categories that have at least two books after year 1989.
CREATE TABLE book_club (category VARCHAR, YEAR INTEGER)
SELECT team FROM table_name_37 WHERE drawn = 1 AND lost = 2
Which team has 1 as the drawn, with 2 as the lost?
CREATE TABLE table_name_37 (team VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT company FROM table_name_76 WHERE release_date = "2008-09-18 18 september 2008"
Who is the company that released the album on 2008-09-18 18 September 2008?
CREATE TABLE table_name_76 (company VARCHAR, release_date VARCHAR)
SELECT opponent FROM table_name_42 WHERE time = "2:31"
Which Opponent has a Time of 2:31?
CREATE TABLE table_name_42 (opponent VARCHAR, time VARCHAR)
SELECT home_team FROM table_name_82 WHERE venue = "glenferrie oval"
Which team was the home team at Glenferrie Oval?
CREATE TABLE table_name_82 (home_team VARCHAR, venue VARCHAR)
SELECT to_par FROM table_name_22 WHERE country = "united states" AND place = "t6" AND score = 70 - 73 - 68 - 73 = 284
What is the to par of the player from the United States with a t6 place and a score of 70-73-68-73=284?
CREATE TABLE table_name_22 (to_par VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)
SELECT visitor FROM table_name_7 WHERE home = "chicago black hawks" AND date = "may 6"
Who was the visitor for Chicago Black Hawks on May 6?
CREATE TABLE table_name_7 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT goals FROM table_name_98 WHERE name = "sture mårtensson"
How many goals did sture mårtensson score?
CREATE TABLE table_name_98 (goals VARCHAR, name VARCHAR)
SELECT pre__season FROM table_name_24 WHERE mar_3 = "nr" AND poll = "usa today/espn coaches' poll (top 25)"
Which pre-season has a Mar. 3 of nr, and a Poll of usa today/espn coaches' poll (top 25)?
CREATE TABLE table_name_24 (pre__season VARCHAR, mar_3 VARCHAR, poll VARCHAR)
SELECT nation FROM table_2150068_1 WHERE satellite = "PAGEOS 1"
What nation was Pageos 1 from?
CREATE TABLE table_2150068_1 (nation VARCHAR, satellite VARCHAR)
SELECT date FROM table_name_78 WHERE performer_4 = "ryan stiles" AND episode > 5 AND performer_2 = "wayne brady"
What day was wayne brady performer 2, ryan stiles performer 4, and an episode number greater than 5?
CREATE TABLE table_name_78 (date VARCHAR, performer_2 VARCHAR, performer_4 VARCHAR, episode VARCHAR)
SELECT MAX(round) FROM table_name_51 WHERE name = "david kimball" AND overall < 229
Name of David Kimball, and an Overall smaller than 229 is what highest round?
CREATE TABLE table_name_51 (round INTEGER, name VARCHAR, overall VARCHAR)
SELECT away_team FROM table_name_53 WHERE tie_no = "replay" AND home_team = "northampton town"
Who was the away team that played Northampton Town at home with a tie number of replay?
CREATE TABLE table_name_53 (away_team VARCHAR, tie_no VARCHAR, home_team VARCHAR)
SELECT howard_baker FROM table_name_64 WHERE george_h_w_bush = "66%"
Name the howard bake when bush had 66%
CREATE TABLE table_name_64 (howard_baker VARCHAR, george_h_w_bush VARCHAR)
SELECT player FROM table_name_89 WHERE position = "df" AND loaned_to = "stoke city"
What player that has a Position of df, and Loaned to is Stoke City?
CREATE TABLE table_name_89 (player VARCHAR, position VARCHAR, loaned_to VARCHAR)
SELECT maximum_ceiling_temperature FROM table_1538516_1 WHERE temperature_classification = "Very Extra High"
Name the most ceiling temperature for very extra high
CREATE TABLE table_1538516_1 (maximum_ceiling_temperature VARCHAR, temperature_classification VARCHAR)
SELECT yeast_ortholog FROM table_name_19 WHERE subpathway = "ggr" AND genecards_entry = "cetn2"
What is the yeast ortholog that has a subpathway of GGR and GeneCards entry CETN2?
CREATE TABLE table_name_19 (yeast_ortholog VARCHAR, subpathway VARCHAR, genecards_entry VARCHAR)
SELECT award FROM table_name_96 WHERE film_show = "east west 101" AND year < 2009 AND group = "logie award"
What is the Award, when the Film/Show is East West 101, and when the year is before 2009, and when the Group is Logie Award?
CREATE TABLE table_name_96 (award VARCHAR, group VARCHAR, film_show VARCHAR, year VARCHAR)
SELECT incumbent FROM table_name_47 WHERE district = "massachusetts 8"
Which Incumbent has a District of massachusetts 8?
CREATE TABLE table_name_47 (incumbent VARCHAR, district VARCHAR)
SELECT team__number1 FROM table_2015453_1 WHERE date = "9 September 2006"
Who was team #1 on 9 September 2006?
CREATE TABLE table_2015453_1 (team__number1 VARCHAR, date VARCHAR)
SELECT driver FROM table_name_19 WHERE fin_pos = "14"
Who was the driver who had a final position of 14?
CREATE TABLE table_name_19 (driver VARCHAR, fin_pos VARCHAR)
SELECT event FROM table_name_94 WHERE location = "northfield, mn"
Which event is located in Northfield, Mn?
CREATE TABLE table_name_94 (event VARCHAR, location VARCHAR)
SELECT eid FROM Employee WHERE salary > 100000
Show ids for all employees with at least 100000 salary.
CREATE TABLE Employee (eid VARCHAR, salary INTEGER)
SELECT date_of_death FROM table_name_47 WHERE cause_of_death = "gunfire" AND tenure = "6 years" AND name = "maria cecilia rosa"
What is gunfire victim Maria Cecilia Rosa with 6 years of Tenure Date of Death?
CREATE TABLE table_name_47 (date_of_death VARCHAR, name VARCHAR, cause_of_death VARCHAR, tenure VARCHAR)
SELECT away_team FROM table_name_54 WHERE match_score = "norths 19 manly 4"
What is the Away team when the match score was norths 19 manly 4?
CREATE TABLE table_name_54 (away_team VARCHAR, match_score VARCHAR)
SELECT MAX(grid) FROM table_name_11 WHERE time_retired = "+0.3"
Which grid is the highest and has a time/retired of +0.3?
CREATE TABLE table_name_11 (grid INTEGER, time_retired VARCHAR)
SELECT COUNT(win__percentage) FROM table_name_73 WHERE name = "tony rice" AND wins < 28
Which Win % has a Name of tony rice, and Wins smaller than 28?
CREATE TABLE table_name_73 (win__percentage VARCHAR, name VARCHAR, wins VARCHAR)
SELECT opponent FROM table_name_49 WHERE week = 11
Which opponent has a week of 11?
CREATE TABLE table_name_49 (opponent VARCHAR, week VARCHAR)
SELECT title FROM table_27397948_2 WHERE no_in_series = 57
List all titles with a 57 series number.
CREATE TABLE table_27397948_2 (title VARCHAR, no_in_series VARCHAR)
SELECT AVG(crowd) FROM table_name_28 WHERE venue = "corio oval"
What was the average size of the crowd for matches held at Corio Oval?
CREATE TABLE table_name_28 (crowd INTEGER, venue VARCHAR)
SELECT entered FROM table_name_74 WHERE time = "29:28"
What is the entered number for the person with a time of 29:28?
CREATE TABLE table_name_74 (entered VARCHAR, time VARCHAR)
SELECT town_city FROM addresses UNION SELECT state_province_county FROM addresses
Find the name of all the cities and states.
CREATE TABLE addresses (town_city VARCHAR, state_province_county VARCHAR)
SELECT name FROM table_name_26 WHERE first_performance = "3 july 2011"
who had the first performance on 3 july 2011?
CREATE TABLE table_name_26 (name VARCHAR, first_performance VARCHAR)
SELECT MIN(field_goals) FROM table_name_68 WHERE points = 10 AND touchdowns > 2
Who had the lowest field goals but had 10 points and more than 2 touchdowns?
CREATE TABLE table_name_68 (field_goals INTEGER, points VARCHAR, touchdowns VARCHAR)
SELECT surface FROM table_name_50 WHERE partner = "paula ormaechea"
What was the surface made of in the contest where Paula Ormaechea was the partner?
CREATE TABLE table_name_50 (surface VARCHAR, partner VARCHAR)
SELECT episode FROM table_name_30 WHERE year > 1999
Name the episode for year more than 1999
CREATE TABLE table_name_30 (episode VARCHAR, year INTEGER)
SELECT stage FROM table_21578303_2 WHERE name = "Kourdali"
Which stage has kourdali as the name?
CREATE TABLE table_21578303_2 (stage VARCHAR, name VARCHAR)
SELECT COUNT(model) FROM table_2326823_2 WHERE max_power_output = "162kW (220 PS) at 6,300 rpm"
How many models have maximum power output is 162kw (220 ps) at 6,300 rpm?
CREATE TABLE table_2326823_2 (model VARCHAR, max_power_output VARCHAR)
SELECT finals_qualification FROM table_name_88 WHERE season = "2009-10"
What's the finals qualification during the 2009-10 season?
CREATE TABLE table_name_88 (finals_qualification VARCHAR, season VARCHAR)
SELECT translation FROM table_name_61 WHERE composer = "jacques brel, rod mckuen"
WhatTranslation has a Composer of jacques brel, rod mckuen?
CREATE TABLE table_name_61 (translation VARCHAR, composer VARCHAR)
SELECT COUNT(high_rebounds) FROM table_22879323_10 WHERE date = "April 7"
How many high rebounds were there on April 7?
CREATE TABLE table_22879323_10 (high_rebounds VARCHAR, date VARCHAR)
SELECT to_par FROM table_2167226_3 WHERE winning_score = 74 - 67 - 71 - 73 = 285
What is the to par with the winning score of 74-67-71-73=285?
CREATE TABLE table_2167226_3 (to_par VARCHAR, winning_score VARCHAR)
SELECT location FROM table_name_20 WHERE loser = "new york jets" AND year < 1997 AND result = "31–28"
What is the location when the new york jets lost earlier than 1997 and a Result of 31–28?
CREATE TABLE table_name_20 (location VARCHAR, result VARCHAR, loser VARCHAR, year VARCHAR)
SELECT MAX(losses) FROM table_name_58 WHERE draws > 0
How many Losses have Draws larger than 0?
CREATE TABLE table_name_58 (losses INTEGER, draws INTEGER)
SELECT score FROM table_name_56 WHERE date = "june 28, 2009"
What was the score on June 28, 2009?
CREATE TABLE table_name_56 (score VARCHAR, date VARCHAR)
SELECT MAX(loses) FROM table_name_49 WHERE draws < 3 AND points = 51
What is the highest number of losses for teams with under 3 draws and 51 points?
CREATE TABLE table_name_49 (loses INTEGER, draws VARCHAR, points VARCHAR)
SELECT SUM(number_of_branches) FROM table_name_84 WHERE on_site_atms = 1548 AND off_site_atms > 3672
What is the total number of branches when the on-site ATMS is 1548, and the off-site ATMs is bigger than 3672?
CREATE TABLE table_name_84 (number_of_branches INTEGER, on_site_atms VARCHAR, off_site_atms VARCHAR)
SELECT driver FROM table_name_12 WHERE constructor = "brm" AND laps > 30
What driver has BRM as a constructor and had more than 30 laps?
CREATE TABLE table_name_12 (driver VARCHAR, constructor VARCHAR, laps VARCHAR)
SELECT MIN(losses) FROM table_name_24 WHERE gains < 0
Can you tell me the lowest Losses that has the Gains smaller than 0?
CREATE TABLE table_name_24 (losses INTEGER, gains INTEGER)
SELECT date FROM table_name_33 WHERE format = "stereo lp"
What was the date for a catalog formatted in stereo LP?
CREATE TABLE table_name_33 (date VARCHAR, format VARCHAR)
SELECT name FROM table_name_8 WHERE team = "new york knicks" AND wsu_year_s_ = "1965-68"
What is Name, when Team is New York Knicks, and when WSU Year(s) is 1965-68?
CREATE TABLE table_name_8 (name VARCHAR, team VARCHAR, wsu_year_s_ VARCHAR)
SELECT AVG(pick) FROM table_name_28 WHERE college = "florida state"
What is the average pick of Florida State?
CREATE TABLE table_name_28 (pick INTEGER, college VARCHAR)
SELECT AVG(goals_for) FROM table_name_37 WHERE playoffs = "lost in round 2" AND games < 81
What is the average Goals, when Playoffs is Lost in Round 2, and when Games is less than 81?
CREATE TABLE table_name_37 (goals_for INTEGER, playoffs VARCHAR, games VARCHAR)