answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT date FROM table_name_97 WHERE brazil_scorers = "palhinha"
On what Date was Palhinha Brazil Scorers?
CREATE TABLE table_name_97 (date VARCHAR, brazil_scorers VARCHAR)
SELECT date FROM table_name_7 WHERE opponent = "guillermo olaso"
What is the Date of the match against Guillermo Olaso?
CREATE TABLE table_name_7 (date VARCHAR, opponent VARCHAR)
SELECT segment_a FROM table_name_76 WHERE segment_d = "manual motorcycle transmissions"
What segment A is associated with a Segment D of manual motorcycle transmissions?
CREATE TABLE table_name_76 (segment_a VARCHAR, segment_d VARCHAR)
SELECT strongs_words_compounded FROM table_1242447_1 WHERE strongs_transliteration = "Yowyariyb"
What is the strong words compounded when the strongs transliteration is yowyariyb?
CREATE TABLE table_1242447_1 (strongs_words_compounded VARCHAR, strongs_transliteration VARCHAR)
SELECT year FROM table_name_80 WHERE film = "bullets over broadway" AND category = "best supporting actress" AND actor = "jennifer tilly"
What year was Jennifer Tilly's Film of Bullets Over Broadway up in the best supporting actress category?
CREATE TABLE table_name_80 (year VARCHAR, actor VARCHAR, film VARCHAR, category VARCHAR)
SELECT host_team FROM table_name_33 WHERE visiting_team = "miami dolphins"
Who was the host team when the Miami Dolphins were the visiting team?
CREATE TABLE table_name_33 (host_team VARCHAR, visiting_team VARCHAR)
SELECT nationality FROM table_name_51 WHERE position = "defense" AND player = "nikita korovkin"
Which Nationality has a Position of defense, and a Player of nikita korovkin?
CREATE TABLE table_name_51 (nationality VARCHAR, position VARCHAR, player VARCHAR)
SELECT Country FROM member GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1
Show the most common country across members.
CREATE TABLE member (Country VARCHAR)
SELECT frequency FROM table_name_59 WHERE model_number = "pentium ii 400"
What is Frequency, when Model Number is Pentium II 400?
CREATE TABLE table_name_59 (frequency VARCHAR, model_number VARCHAR)
SELECT MIN(game) FROM table_27734577_13 WHERE high_assists = "Josh Smith (4)"
What is the game number where josh smith (4) had the high assists?
CREATE TABLE table_27734577_13 (game INTEGER, high_assists VARCHAR)
SELECT result FROM table_1342149_43 WHERE first_elected = "1942"
What was the result in the election where the incumbent was first elected in 1942?
CREATE TABLE table_1342149_43 (result VARCHAR, first_elected VARCHAR)
SELECT COUNT(round) FROM table_name_66 WHERE overall > 17 AND position = "quarterback"
How many rounds have an Overall larger than 17, and a Position of quarterback?
CREATE TABLE table_name_66 (round VARCHAR, overall VARCHAR, position VARCHAR)
SELECT SUM(altitude__mslm_) FROM table_name_89 WHERE density__inhabitants_km_2__ < 1467.5 AND common_of = "moncalieri"
Which Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1467.5, and a Common of moncalieri?
CREATE TABLE table_name_89 (altitude__mslm_ INTEGER, density__inhabitants_km_2__ VARCHAR, common_of VARCHAR)
SELECT COUNT(steals) FROM table_13050003_3 WHERE year = 2012
What is the number of steals for 2012
CREATE TABLE table_13050003_3 (steals VARCHAR, year VARCHAR)
SELECT current_club FROM table_12962773_13 WHERE no = 6
Name the current club for number 6
CREATE TABLE table_12962773_13 (current_club VARCHAR, no VARCHAR)
SELECT COUNT(directed_by) FROM table_14346353_1 WHERE teleplay_by = "David Simon" AND series__number = 4
Who directed series #4 that was teleplayed by David Simon?
CREATE TABLE table_14346353_1 (directed_by VARCHAR, teleplay_by VARCHAR, series__number VARCHAR)
SELECT 1989 FROM table_name_35 WHERE 1992 = "0 / 1"
What is the result for 1989 that has a 1992 result of 0 / 1?
CREATE TABLE table_name_35 (Id VARCHAR)
SELECT COUNT(fleet_size) FROM table_15637071_1 WHERE iata = "5J"
How large is the fleet size of the airline with the IATA code of 5j?
CREATE TABLE table_15637071_1 (fleet_size VARCHAR, iata VARCHAR)
SELECT city, COUNT(*) FROM airports GROUP BY city HAVING COUNT(*) > 1
List the cities which have more than one airport and number of airports.
CREATE TABLE airports (city VARCHAR)
SELECT team FROM table_2266976_1 WHERE year = "2003"
What team competed in 2003?
CREATE TABLE table_2266976_1 (team VARCHAR, year VARCHAR)
SELECT production_code FROM table_19229713_4 WHERE us_viewers__million_ = "1.69"
Name the production code for viewers for 1.69
CREATE TABLE table_19229713_4 (production_code VARCHAR, us_viewers__million_ VARCHAR)
SELECT distance FROM table_name_10 WHERE stage > 5 AND winner = "giovanni lombardi"
What distance did giovanni lombardi win after stage 5?
CREATE TABLE table_name_10 (distance VARCHAR, stage VARCHAR, winner VARCHAR)
SELECT attendance FROM table_name_58 WHERE week > 3 AND opponent = "philadelphia eagles"
What was the attendance for a week larger than 3, and an opponent of philadelphia eagles?
CREATE TABLE table_name_58 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT first_couple FROM table_25664518_3 WHERE fourth_couple = "Sammy and Nat"
Who was the first couple in the episode having a fourth couple of Sammy and Nat?
CREATE TABLE table_25664518_3 (first_couple VARCHAR, fourth_couple VARCHAR)
SELECT party FROM table_name_4 WHERE first_elected < 1878 AND district = "south carolina 3"
Which Party has a First elected smaller than 1878, and a District of south carolina 3?
CREATE TABLE table_name_4 (party VARCHAR, first_elected VARCHAR, district VARCHAR)
SELECT COUNT(crowd) FROM table_name_4 WHERE venue = "western oval"
How many people watch at Western Oval venue?
CREATE TABLE table_name_4 (crowd VARCHAR, venue VARCHAR)
SELECT shooter FROM table_name_75 WHERE event = "wc beijing"
Who was the shooter for the WC Beijing event?
CREATE TABLE table_name_75 (shooter VARCHAR, event VARCHAR)
SELECT loser FROM table_name_44 WHERE time = "0:58"
Who lost with a time of 0:58?
CREATE TABLE table_name_44 (loser VARCHAR, time VARCHAR)
SELECT score FROM table_name_62 WHERE game > 68 AND opponent = "boston bruins"
What's the score of the game against the Boston Bruins and after game 68?
CREATE TABLE table_name_62 (score VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT adelaide FROM table_name_30 WHERE melbourne = "no" AND sydney = "no" AND gold_coast = "no"
Which Adelaide's Melbourne, Sydney, and Gold Coast were all no?
CREATE TABLE table_name_30 (adelaide VARCHAR, gold_coast VARCHAR, melbourne VARCHAR, sydney VARCHAR)
SELECT outgoing_manager FROM table_name_80 WHERE replaced_by = "thomas von heesen"
Who was the outgoing manager that was replaced by Thomas Von Heesen?
CREATE TABLE table_name_80 (outgoing_manager VARCHAR, replaced_by VARCHAR)
SELECT hometown FROM table_1289860_2 WHERE background = "Real Estate agent"
Where is the real estate agent from?
CREATE TABLE table_1289860_2 (hometown VARCHAR, background VARCHAR)
SELECT city_location FROM table_name_60 WHERE pole_position = "emerson fittipaldi"
Where is Emerson Fittipaldi starting in Pole position?
CREATE TABLE table_name_60 (city_location VARCHAR, pole_position VARCHAR)
SELECT COUNT(date) FROM table_22334183_3 WHERE circuit = "Silverstone"
On how many different dates was the race at the Silverstone circuit?
CREATE TABLE table_22334183_3 (date VARCHAR, circuit VARCHAR)
SELECT COUNT(silver) FROM table_name_22 WHERE total = 5 AND gold > 3
What is the total number of silver medals for nations with 5 total medals and more than 3 gold medals?
CREATE TABLE table_name_22 (silver VARCHAR, total VARCHAR, gold VARCHAR)
SELECT MIN(total) FROM table_name_78 WHERE silver > 14
What is the smallest number of medals a country with more than 14 silver has?
CREATE TABLE table_name_78 (total INTEGER, silver INTEGER)
SELECT AVG(assists) FROM table_name_18 WHERE club = "iserlohn roosters" AND points = 71 AND goals > 44
What is the average Assists, when Club is Iserlohn Roosters,when Points is 71, and when Goals is greater than 44?
CREATE TABLE table_name_18 (assists INTEGER, goals VARCHAR, club VARCHAR, points VARCHAR)
SELECT location_s_ FROM table_2076463_2 WHERE control = "Public university" AND founded = 1915
where would you find a public university which was founded in 1915?
CREATE TABLE table_2076463_2 (location_s_ VARCHAR, control VARCHAR, founded VARCHAR)
SELECT host_team FROM table_name_21 WHERE stadium = "louisiana superdome" AND final_score = "10-20"
Who was the host team at Louisiana Superdome when the final score was 10-20?
CREATE TABLE table_name_21 (host_team VARCHAR, stadium VARCHAR, final_score VARCHAR)
SELECT south FROM table_name_24 WHERE west = "ev lindau" AND east = "svg burgkirchen"
What is the south with ev lindau as the west and svg burgkirchen as the east?
CREATE TABLE table_name_24 (south VARCHAR, west VARCHAR, east VARCHAR)
SELECT AVG(top_10) FROM table_name_6 WHERE events < 57 AND top_5 < 0
What is the average number of top-10s for events under 57 and 0 top-5s?
CREATE TABLE table_name_6 (top_10 INTEGER, events VARCHAR, top_5 VARCHAR)
SELECT representative FROM table_29486189_4 WHERE residence = "Beavercreek"
who is beavercreek's representative
CREATE TABLE table_29486189_4 (representative VARCHAR, residence VARCHAR)
SELECT last_year FROM table_name_65 WHERE first_year = "1937" AND publisher = "dc comics"
When did the DC Comics title that debuted in 1937 end?
CREATE TABLE table_name_65 (last_year VARCHAR, first_year VARCHAR, publisher VARCHAR)
SELECT AVG(played) FROM table_name_81 WHERE club = "rayo vallecano" AND wins < 12
What's the average number of played games from Rayo Vallecano with less than 12 wins?
CREATE TABLE table_name_81 (played INTEGER, club VARCHAR, wins VARCHAR)
SELECT season FROM table_name_25 WHERE league = "bundesliga" AND european_competitions = "played korac cup"
What is the Season when league shows bundesliga, and a European competition of played korac cup?
CREATE TABLE table_name_25 (season VARCHAR, league VARCHAR, european_competitions VARCHAR)
SELECT manufacturer FROM table_2226343_1 WHERE average_speed__mph_ = "150.088"
Who is the manufacturer when 150.088 is the average speed (mph)?
CREATE TABLE table_2226343_1 (manufacturer VARCHAR, average_speed__mph_ VARCHAR)
SELECT opponent FROM table_name_6 WHERE score = "3-2" AND loss = "anderson (2-6)"
What opponent has 3-2 as the score, and anderson (2-6) as a loss?
CREATE TABLE table_name_6 (opponent VARCHAR, score VARCHAR, loss VARCHAR)
SELECT MIN(rank) FROM review
Find the highest rank of all reviews.
CREATE TABLE review (rank INTEGER)
SELECT away FROM table_name_48 WHERE round = "round 16"
What was the visiting team that played a round 16 game?
CREATE TABLE table_name_48 (away VARCHAR, round VARCHAR)
SELECT COUNT(losses) FROM table_name_54 WHERE byes < 0
Of the teams that had more than 0 byes, what was the total number of losses?
CREATE TABLE table_name_54 (losses VARCHAR, byes INTEGER)
SELECT 1 AS st_member FROM table_name_41 WHERE assembled = "5 april 1614"
Who is the 1st member of the parliament assembled on 5 April 1614?
CREATE TABLE table_name_41 (assembled VARCHAR)
SELECT score FROM table_name_46 WHERE player = "bob rosburg"
What is the score of player bob rosburg?
CREATE TABLE table_name_46 (score VARCHAR, player VARCHAR)
SELECT points FROM table_name_66 WHERE skipper = "james allen"
What points has james allen as the skipper?
CREATE TABLE table_name_66 (points VARCHAR, skipper VARCHAR)
SELECT country FROM table_name_39 WHERE player = "paul lawrie"
What country is Paul Lawrie from?
CREATE TABLE table_name_39 (country VARCHAR, player VARCHAR)
SELECT COUNT(liberal_candidates) FROM table_name_94 WHERE liberal_leader = "pearson" AND _percentage_of_popular_vote = "40.2%" AND seats_won < 131
How many Liberal candidates have a Liberal leader of pearson, and a % of popular vote of 40.2%, and Seats won smaller than 131?
CREATE TABLE table_name_94 (liberal_candidates VARCHAR, seats_won VARCHAR, liberal_leader VARCHAR, _percentage_of_popular_vote VARCHAR)
SELECT opponent FROM table_name_24 WHERE record = "8-4"
Who was the opponent when the Washington Nationals had a record of 8-4?
CREATE TABLE table_name_24 (opponent VARCHAR, record VARCHAR)
SELECT broadcast_date FROM table_2102714_1 WHERE run_time = "24:40"
What date was an episode broadcasted on that had a run time of 24:40?
CREATE TABLE table_2102714_1 (broadcast_date VARCHAR, run_time VARCHAR)
SELECT team_2 FROM table_name_34 WHERE team_1 = "panathinaikos"
What is the team 2 for the match with a team 1 of Panathinaikos?
CREATE TABLE table_name_34 (team_2 VARCHAR, team_1 VARCHAR)
SELECT name FROM table_name_15 WHERE round < 11 AND pick = 13
Which Name has a Round smaller than 11, and a Pick of 13?
CREATE TABLE table_name_15 (name VARCHAR, round VARCHAR, pick VARCHAR)
SELECT deaths FROM table_name_41 WHERE natural_growth < 3.4 AND total_fertility_rate = "1.63"
What was the amount of deaths that had a natural growth smaller than 3.4, and a total fertility rate of 1.63?
CREATE TABLE table_name_41 (deaths VARCHAR, natural_growth VARCHAR, total_fertility_rate VARCHAR)
SELECT MIN(attendance) FROM table_name_5 WHERE week > 2 AND opponent = "new orleans saints"
Name the least attendance for opponent of new orleans saints and week more than 2
CREATE TABLE table_name_5 (attendance INTEGER, week VARCHAR, opponent VARCHAR)
SELECT john_b_anderson FROM table_name_21 WHERE phil_crane = "0%" AND ronald_reagan = "43%"
Name the john b. anderson for ronald reagan of 43% and phil crane of 0%
CREATE TABLE table_name_21 (john_b_anderson VARCHAR, phil_crane VARCHAR, ronald_reagan VARCHAR)
SELECT opponent FROM table_name_47 WHERE week = 2
What was week 2's opponent?
CREATE TABLE table_name_47 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_83 WHERE method = "submission (rear naked choke) at 4:02 of round 2"
who is the opponent when the method is submission (rear naked choke) at 4:02 of round 2?
CREATE TABLE table_name_83 (opponent VARCHAR, method VARCHAR)
SELECT attendance FROM table_name_48 WHERE game_site = "foxboro stadium"
What was the attendance for each game held at Foxboro Stadium?
CREATE TABLE table_name_48 (attendance VARCHAR, game_site VARCHAR)
SELECT T1.season, T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.injury = 'Foot injury' OR T3.injury = 'Knee problem'
In which season and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'?
CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE injury_accident (game_id VARCHAR, injury VARCHAR); CREATE TABLE game (season VARCHAR, stadium_id VARCHAR, id VARCHAR)
SELECT carrier FROM table_name_25 WHERE package_version = "4.7.0.208"
WHAT IS THE CARRIER FOR 4.7.0.208 VERSION?
CREATE TABLE table_name_25 (carrier VARCHAR, package_version VARCHAR)
SELECT away_team AS score FROM table_name_76 WHERE home_team = "fitzroy"
When fitzroy was the home team, how much did the away team score?
CREATE TABLE table_name_76 (away_team VARCHAR, home_team VARCHAR)
SELECT MIN(burglary) FROM table_name_90 WHERE forcible_rape = "39.1" AND motor_vehicle_theft < 568.8
What is the smallest rate of burglary when forcible rape is 39.1 and motor vehicle theft is less than 568.8?
CREATE TABLE table_name_90 (burglary INTEGER, forcible_rape VARCHAR, motor_vehicle_theft VARCHAR)
SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T2.Weeks_on_Top > 2
Please show the date of ceremony of the volumes that last more than 2 weeks on top.
CREATE TABLE music_festival (Date_of_ceremony VARCHAR, Volume VARCHAR); CREATE TABLE volume (Volume_ID VARCHAR, Weeks_on_Top INTEGER)
SELECT enrollment FROM table_1973648_1 WHERE joined = "2007-08"
Name the enrollment for 2007-08
CREATE TABLE table_1973648_1 (enrollment VARCHAR, joined VARCHAR)
SELECT away_team FROM table_name_16 WHERE home_team = "woking"
Who was the team who played home team woking?
CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR)
SELECT MAX(rank) FROM table_name_22 WHERE wickets < 15
What is the highest rank for less than 15 Wickets?
CREATE TABLE table_name_22 (rank INTEGER, wickets INTEGER)
SELECT conference_joined FROM table_name_40 WHERE year_joined = 1954 AND mascot = "beavers"
Which conference joined in 1954 with a beavers mascot?
CREATE TABLE table_name_40 (conference_joined VARCHAR, year_joined VARCHAR, mascot VARCHAR)
SELECT result FROM table_1342359_15 WHERE first_elected = 1922
what's the result with first elected being 1922
CREATE TABLE table_1342359_15 (result VARCHAR, first_elected VARCHAR)
SELECT player FROM table_name_89 WHERE county = "dublin"
Which player is from County Dublin?
CREATE TABLE table_name_89 (player VARCHAR, county VARCHAR)
SELECT score FROM table_name_38 WHERE outcome = "runner-up"
What was the score when she was a runner-up?
CREATE TABLE table_name_38 (score VARCHAR, outcome VARCHAR)
SELECT opponent FROM table_name_69 WHERE attendance = "38,642"
Which opponent had 38,642 attendance?
CREATE TABLE table_name_69 (opponent VARCHAR, attendance VARCHAR)
SELECT home_team FROM table_name_95 WHERE venue = "vfl park"
Which team played at VFL Park?
CREATE TABLE table_name_95 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(rank) FROM table_name_11 WHERE points > 282.5
How much Rank has Points larger than 282.5?
CREATE TABLE table_name_11 (rank VARCHAR, points INTEGER)
SELECT MAX(3 AS _balls), _2_ribbons FROM table_name_16 WHERE nation = "bulgaria" AND place > 1
Nation of bulgaria, and a Place larger than 1 had what highest 3 Balls, 2 Ribbons?
CREATE TABLE table_name_16 (_2_ribbons VARCHAR, nation VARCHAR, place VARCHAR)
SELECT district FROM table_1341453_45 WHERE incumbent = "Ruben Hinojosa"
What district is ruben hinojosa from?
CREATE TABLE table_1341453_45 (district VARCHAR, incumbent VARCHAR)
SELECT score FROM table_name_35 WHERE opponent = "indians" AND date = "september 15"
What is the score from September 15 that has the Indians as the opponent?
CREATE TABLE table_name_35 (score VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT frequency_mhz FROM table_name_7 WHERE city_of_license = "albany, new york"
What is the frequency of the call sign licensed in Albany, New York?
CREATE TABLE table_name_7 (frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT time_retired FROM table_name_99 WHERE constructor = "lotus - ford" AND laps < 17
What is the Time/Retired when lotus - ford was constructor and the laps were less than 17?
CREATE TABLE table_name_99 (time_retired VARCHAR, constructor VARCHAR, laps VARCHAR)
SELECT date_of_vacancy FROM table_22640051_3 WHERE outgoing_manager = "Manuel Pellegrini"
Name the date of vacancy for manuel pellegrini
CREATE TABLE table_22640051_3 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
SELECT listed FROM table_name_34 WHERE name = "oakachoy covered bridge"
When was the oakachoy covered bridge listed?
CREATE TABLE table_name_34 (listed VARCHAR, name VARCHAR)
SELECT MAX(grid) FROM table_name_32 WHERE driver = "alexander wurz" AND laps < 58
In less than 58 laps, what is the highest grid for Alexander Wurz?
CREATE TABLE table_name_32 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT years FROM table_name_31 WHERE nationality = "spain" AND goals = 215
Name the years for spain with 215 goals
CREATE TABLE table_name_31 (years VARCHAR, nationality VARCHAR, goals VARCHAR)
SELECT season FROM table_name_99 WHERE team_2 = "hanoi acb"
Can you tell me the Season that has the Team 2 of hanoi acb?
CREATE TABLE table_name_99 (season VARCHAR, team_2 VARCHAR)
SELECT class FROM table_name_98 WHERE league = "dsha" AND school = "middletown high school"
What is the class of the Middletown High School team that is in the DSHA league?
CREATE TABLE table_name_98 (class VARCHAR, league VARCHAR, school VARCHAR)
SELECT SUM(rank) FROM table_name_70 WHERE time = "6:52.74"
What rank did rower have with the time of 6:52.74?
CREATE TABLE table_name_70 (rank INTEGER, time VARCHAR)
SELECT official_name FROM table_300283_1 WHERE name_in_basque = "Bilar"
What is the official name of the municipality whose name in Basque is Bilar?
CREATE TABLE table_300283_1 (official_name VARCHAR, name_in_basque VARCHAR)
SELECT higgins FROM table_name_35 WHERE scallon = "2%"
What is the Higgins with a Scallon that is 2%?
CREATE TABLE table_name_35 (higgins VARCHAR, scallon VARCHAR)
SELECT home_team FROM table_name_93 WHERE venue = "victoria park"
What is the home team for victoria park?
CREATE TABLE table_name_93 (home_team VARCHAR, venue VARCHAR)
SELECT number FROM table_name_19 WHERE acquisition_via = "import" AND season = "2002"
What is the number of the acquisition of import in the 2002 season?
CREATE TABLE table_name_19 (number VARCHAR, acquisition_via VARCHAR, season VARCHAR)
SELECT type FROM table_name_10 WHERE platform = "gamecube"
What is the type of electronic with the Gamecube Platform?
CREATE TABLE table_name_10 (type VARCHAR, platform VARCHAR)
SELECT country FROM table_28005160_2 WHERE city = "New Orleans"
What country is new orleans in?
CREATE TABLE table_28005160_2 (country VARCHAR, city VARCHAR)
SELECT score FROM table_name_21 WHERE to_par = "+4" AND player = "andy bean"
With a To par of +4, what is Andy Bean's Score?
CREATE TABLE table_name_21 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT 1 AS st_round FROM table_name_91 WHERE team_2 = "paris sg (d1)"
What is the 1st round with a team 2 paris sg (d1)?
CREATE TABLE table_name_91 (team_2 VARCHAR)