question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Name the former codes for merged into panama ( pa , pan , 591 )
CREATE TABLE table_222666_1 (former_codes VARCHAR, new_country_names_and_codes VARCHAR)
SELECT former_codes FROM table_222666_1 WHERE new_country_names_and_codes = "Merged into Panama ( PA , PAN , 591 )"
When did the elections take place in district Maryland 2?
CREATE TABLE table_1341453_22 (first_elected INTEGER, district VARCHAR)
SELECT MIN(first_elected) FROM table_1341453_22 WHERE district = "Maryland 2"
How many people were in attendance on the game on April 8, 2007?
CREATE TABLE table_name_15 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_15 WHERE date = "april 8, 2007"
Who drove the car with the n175 chassis in round 13?
CREATE TABLE table_name_1 (driver VARCHAR, chassis VARCHAR, rounds VARCHAR)
SELECT driver FROM table_name_1 WHERE chassis = "n175" AND rounds = "13"
Which Matches have a Rank of 2?
CREATE TABLE table_name_94 (matches VARCHAR, rank VARCHAR)
SELECT COUNT(matches) FROM table_name_94 WHERE rank = 2
What is average for Benito Lorenzi league when total is smaller than 143?
CREATE TABLE table_name_20 (league INTEGER, name VARCHAR, total VARCHAR)
SELECT AVG(league) FROM table_name_20 WHERE name = "benito lorenzi" AND total < 143
With a date of 8/3/08, what was the length of the victory margin?
CREATE TABLE table_16689920_1 (victory_margin__in_lengths_ VARCHAR, date VARCHAR)
SELECT COUNT(victory_margin__in_lengths_) FROM table_16689920_1 WHERE date = "8/3/08"
How many students play video games?
CREATE TABLE Plays_games (StuID VARCHAR)
SELECT COUNT(DISTINCT StuID) FROM Plays_games
What was the score of the game on April 28 where Buffalo were the visiting team?
CREATE TABLE table_name_64 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT score FROM table_name_64 WHERE visitor = "buffalo" AND date = "april 28"
What was the constructor when riccardo patrese was the winning driver?
CREATE TABLE table_name_88 (winning_constructor VARCHAR, winning_driver VARCHAR)
SELECT winning_constructor FROM table_name_88 WHERE winning_driver = "riccardo patrese"
Who is the womens doubles on the tour french super series?
CREATE TABLE table_27753492_2 (womens_doubles VARCHAR, tour VARCHAR)
SELECT womens_doubles FROM table_27753492_2 WHERE tour = "French Super Series"
On what Date had a Score of 5-2 and a Loss of Greinke (1-2)?
CREATE TABLE table_name_84 (date VARCHAR, score VARCHAR, loss VARCHAR)
SELECT date FROM table_name_84 WHERE score = "5-2" AND loss = "greinke (1-2)"
what is the manner of departure when the date of vacancy is 15 september 2008?
CREATE TABLE table_name_14 (manner_of_departure VARCHAR, date_of_vacancy VARCHAR)
SELECT manner_of_departure FROM table_name_14 WHERE date_of_vacancy = "15 september 2008"
Tell me the portfolio of minister of carlo giovanardi
CREATE TABLE table_name_77 (portfolio VARCHAR, minister VARCHAR)
SELECT portfolio FROM table_name_77 WHERE minister = "carlo giovanardi"
What is the name when the position is de and college is ohio state?
CREATE TABLE table_1198175_1 (name VARCHAR, position VARCHAR, college VARCHAR)
SELECT name FROM table_1198175_1 WHERE position = "DE" AND college = "Ohio State"
How many divisions were listed in 2006?
CREATE TABLE table_1243601_1 (division VARCHAR, year VARCHAR)
SELECT COUNT(division) FROM table_1243601_1 WHERE year = "2006"
How many activities does Mark Giuliano participate in?
CREATE TABLE Faculty_participates_in (facID VARCHAR); CREATE TABLE Faculty (facID VARCHAR, fname VARCHAR, lname VARCHAR)
SELECT COUNT(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID WHERE T1.fname = "Mark" AND T1.lname = "Giuliano"
Which opponent had a bye for the TV Time?
CREATE TABLE table_name_96 (opponent VARCHAR, tv_time VARCHAR)
SELECT opponent FROM table_name_96 WHERE tv_time = "bye"
When the week # is listed as Hollywood, and the Theme is N/A, what song is listed?
CREATE TABLE table_name_82 (song_choice VARCHAR, theme VARCHAR, week__number VARCHAR)
SELECT song_choice FROM table_name_82 WHERE theme = "n/a" AND week__number = "hollywood"
How may drawn equal points against at 129?
CREATE TABLE table_20760802_1 (drawn VARCHAR, points_against VARCHAR)
SELECT drawn FROM table_20760802_1 WHERE points_against = "129"
What Companion (in order from star) has an Orbital period (s day) of 9.6184 +0.0050 −0.0049?
CREATE TABLE table_name_10 (companion__in_order_from_star_ VARCHAR, orbital_period___s_day__ VARCHAR)
SELECT companion__in_order_from_star_ FROM table_name_10 WHERE orbital_period___s_day__ = "9.6184 +0.0050 −0.0049"
What is the latest year when Neal Baer was a nominee, and the result was nominated?
CREATE TABLE table_name_38 (year INTEGER, result VARCHAR, nominee_s_ VARCHAR)
SELECT MAX(year) FROM table_name_38 WHERE result = "nominated" AND nominee_s_ = "neal baer"
Has Episode 1b-16 (42) been preserved?
CREATE TABLE table_name_16 (preservation VARCHAR, episode VARCHAR)
SELECT preservation FROM table_name_16 WHERE episode = "1b-16 (42)"
Which area has Years of 1–8, a Decile smaller than 7, and a Name of waikari school?
CREATE TABLE table_name_71 (area VARCHAR, name VARCHAR, years VARCHAR, decile VARCHAR)
SELECT area FROM table_name_71 WHERE years = "1–8" AND decile < 7 AND name = "waikari school"
What is the place of the player with a 66-68-70=204 score?
CREATE TABLE table_name_86 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_86 WHERE score = 66 - 68 - 70 = 204
What was the date for a round that only had 1 match?
CREATE TABLE table_name_36 (date VARCHAR, matches VARCHAR)
SELECT date FROM table_name_36 WHERE matches = 1
What is the lowest Division, when Team is "Benfica", and when Apps is 22?
CREATE TABLE table_name_30 (division INTEGER, team VARCHAR, apps VARCHAR)
SELECT MIN(division) FROM table_name_30 WHERE team = "benfica" AND apps = 22
Which Formula has a Prefix of alkyl-?
CREATE TABLE table_name_72 (formula VARCHAR, prefix VARCHAR)
SELECT formula FROM table_name_72 WHERE prefix = "alkyl-"
Show all artist names with an average exhibition attendance over 200.
CREATE TABLE artist (name VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition (exhibition_id VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition_record (exhibition_id VARCHAR, attendance INTEGER)
SELECT T3.name FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id JOIN artist AS T3 ON T3.artist_id = T2.artist_id GROUP BY T3.artist_id HAVING AVG(T1.attendance) > 200
Who was the finalist when the winner was First Vienna FC?
CREATE TABLE table_name_83 (finalist VARCHAR, winner VARCHAR)
SELECT finalist FROM table_name_83 WHERE winner = "first vienna fc"
Which MLB division has a win record of 76?
CREATE TABLE table_name_26 (division VARCHAR, wins VARCHAR)
SELECT division FROM table_name_26 WHERE wins = "76"
What is the sum of againsts the team with less than 38 played had?
CREATE TABLE table_name_86 (against INTEGER, played INTEGER)
SELECT SUM(against) FROM table_name_86 WHERE played < 38
What is the total number of played values for teams with more than 14 points and more than 1 draw?
CREATE TABLE table_name_84 (played VARCHAR, points VARCHAR, drawn VARCHAR)
SELECT COUNT(played) FROM table_name_84 WHERE points > 14 AND drawn > 1
How many countries had a total freshwater withdrawal (km 3 /yr) where the agricultural use (m 3 /p/yr)(in %) was 428(62%)?
CREATE TABLE table_15909409_2 (total_freshwater_withdrawal__km_3__yr_ VARCHAR, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR)
SELECT COUNT(total_freshwater_withdrawal__km_3__yr_) FROM table_15909409_2 WHERE agricultural_use__m_3__p_yr__in__percentage_ = "428(62%)"
What is the total number of John Merrick as a runner up?
CREATE TABLE table_19630743_2 (no VARCHAR, runner_s__up VARCHAR)
SELECT COUNT(no) FROM table_19630743_2 WHERE runner_s__up = "John Merrick"
What is the average rank of the airport with a 9.3% annual change?
CREATE TABLE table_name_59 (rank INTEGER, annual_change VARCHAR)
SELECT AVG(rank) FROM table_name_59 WHERE annual_change = "9.3%"
What was the date for the game after week 16?
CREATE TABLE table_name_74 (date VARCHAR, week INTEGER)
SELECT date FROM table_name_74 WHERE week > 16
Who was the director of the film with an original title of "16 Days in Afghanistan"?
CREATE TABLE table_17155250_1 (director VARCHAR, original_title VARCHAR)
SELECT director FROM table_17155250_1 WHERE original_title = "16 Days in Afghanistan"
What is the number of poles with 4 races?
CREATE TABLE table_name_96 (poles VARCHAR, races VARCHAR)
SELECT poles FROM table_name_96 WHERE races = "4"
Position of fullback has what highest weight?
CREATE TABLE table_name_33 (weight INTEGER, position VARCHAR)
SELECT MAX(weight) FROM table_name_33 WHERE position = "fullback"
What's the series number of the episode with season number 2?
CREATE TABLE table_19236587_4 (series_no INTEGER, season_no VARCHAR)
SELECT MIN(series_no) FROM table_19236587_4 WHERE season_no = 2
What are the notes for the athlete from Spain?
CREATE TABLE table_name_29 (notes VARCHAR, country VARCHAR)
SELECT notes FROM table_name_29 WHERE country = "spain"
What was the frame size in 08/87?
CREATE TABLE table_name_22 (framed_size VARCHAR, date_completed VARCHAR)
SELECT framed_size FROM table_name_22 WHERE date_completed = "08/87"
What company is the producer at the poolavadi location
CREATE TABLE table_name_99 (producer VARCHAR, location VARCHAR)
SELECT producer FROM table_name_99 WHERE location = "poolavadi"
What's the length of the route with junctions of ur 1472 sh 255?
CREATE TABLE table_name_99 (length VARCHAR, junctions VARCHAR)
SELECT length FROM table_name_99 WHERE junctions = "ur 1472 sh 255"
What venue did melbourne play at as the away team?
CREATE TABLE table_name_52 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_52 WHERE away_team = "melbourne"
what is the distance for ridge?
CREATE TABLE table_name_57 (distance VARCHAR, feature VARCHAR)
SELECT distance FROM table_name_57 WHERE feature = "ridge"
Who was the fight against when loss was the result at the Gladiator Challenge 87: Collision Course event?
CREATE TABLE table_name_54 (opponent VARCHAR, res VARCHAR, event VARCHAR)
SELECT opponent FROM table_name_54 WHERE res = "loss" AND event = "gladiator challenge 87: collision course"
What were Cruzeiro results in the Copa Mercosur in 1998
CREATE TABLE table_14962316_9 (copa_mercosur_1998 VARCHAR, team VARCHAR)
SELECT copa_mercosur_1998 FROM table_14962316_9 WHERE team = "Cruzeiro"
What is the name of the location and ship type in the Gulf of Mexico that entered service in 1999?
CREATE TABLE table_name_43 (name VARCHAR, entered_service VARCHAR, location VARCHAR, type VARCHAR)
SELECT name FROM table_name_43 WHERE location = "gulf of mexico" AND type = "ship" AND entered_service = "1999"
Which province is in the district of San Antonio de Chuca?
CREATE TABLE table_2251578_4 (province VARCHAR, district VARCHAR)
SELECT province FROM table_2251578_4 WHERE district = "San Antonio de Chuca"
What is the City of license that has a ERP kW more than 4.5 and w23dr-d?
CREATE TABLE table_name_45 (city_of_license VARCHAR, erp_kw VARCHAR, station VARCHAR)
SELECT city_of_license FROM table_name_45 WHERE erp_kw > 4.5 AND station = "w23dr-d"
Who is the player from Australia with a to par of +5?
CREATE TABLE table_name_7 (player VARCHAR, to_par VARCHAR, country VARCHAR)
SELECT player FROM table_name_7 WHERE to_par = "+5" AND country = "australia"
What is the score for set 2 when set 3 was 15–6?
CREATE TABLE table_name_61 (set_2 VARCHAR, set_3 VARCHAR)
SELECT set_2 FROM table_name_61 WHERE set_3 = "15–6"
Name the least podiums for 2009
CREATE TABLE table_2725949_6 (podiums INTEGER, season VARCHAR)
SELECT MIN(podiums) FROM table_2725949_6 WHERE season = 2009
What is the Home with a Time that is 14:00?
CREATE TABLE table_name_28 (home VARCHAR, time VARCHAR)
SELECT home FROM table_name_28 WHERE time = "14:00"
Who had the pole position in Jerez?
CREATE TABLE table_name_82 (pole_position VARCHAR, location VARCHAR)
SELECT pole_position FROM table_name_82 WHERE location = "jerez"
What was the winning percent of Notre Dame in 1905?
CREATE TABLE table_name_86 (pct VARCHAR, years VARCHAR)
SELECT pct FROM table_name_86 WHERE years = "1905"
List the title of all Cartoons showed on TV Channel with series name "Sky Radio".
CREATE TABLE Cartoon (Title VARCHAR, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR)
SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio"
What year has a Schwante smaller than 2.043, an Eichstädt smaller than 848, and a Bärenklau smaller than 1.262?
CREATE TABLE table_name_30 (year VARCHAR, bärenklau VARCHAR, schwante VARCHAR, eichstädt VARCHAR)
SELECT COUNT(year) FROM table_name_30 WHERE schwante < 2.043 AND eichstädt < 848 AND bärenklau < 1.262
what is the reason for change where the date the successor was seated was july 28, 1876?
CREATE TABLE table_2192067_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR)
SELECT reason_for_change FROM table_2192067_4 WHERE date_successor_seated = "July 28, 1876"
What is the year 2001 with a total larger than 1, and 2009 with 8?
CREATE TABLE table_name_26 (total VARCHAR)
SELECT 2001 FROM table_name_26 WHERE total > 1 AND 2009 = "8"
If high assists are under Canty (6) how much would the record be?
CREATE TABLE table_17118657_10 (record VARCHAR, high_assists VARCHAR)
SELECT record FROM table_17118657_10 WHERE high_assists = "Canty (6)"
Which English has a Sanskrit of samādhi?
CREATE TABLE table_name_42 (english VARCHAR, sanskrit VARCHAR)
SELECT english FROM table_name_42 WHERE sanskrit = "samādhi"
What is the losing bonus for the team that has 33 tries against and 5 lost?
CREATE TABLE table_name_35 (losing_bonus VARCHAR, tries_against VARCHAR, lost VARCHAR)
SELECT losing_bonus FROM table_name_35 WHERE tries_against = "33" AND lost = "5"
What is the position of the player from Sweden?
CREATE TABLE table_name_93 (position VARCHAR, nationality VARCHAR)
SELECT position FROM table_name_93 WHERE nationality = "sweden"
Name the high points for pepsi center 19,155
CREATE TABLE table_23285761_8 (high_points VARCHAR, location_attendance VARCHAR)
SELECT high_points FROM table_23285761_8 WHERE location_attendance = "Pepsi Center 19,155"
Name the regions for usf45
CREATE TABLE table_21530474_1 (region_s_ VARCHAR, chassis_code VARCHAR)
SELECT region_s_ FROM table_21530474_1 WHERE chassis_code = "USF45"
what is the year when the location is san diego, california and defeated is houston baptist (texas)?
CREATE TABLE table_name_96 (year VARCHAR, location VARCHAR, defeated VARCHAR)
SELECT COUNT(year) FROM table_name_96 WHERE location = "san diego, california" AND defeated = "houston baptist (texas)"
What are the type and nationality of ships?
CREATE TABLE ship (TYPE VARCHAR, Nationality VARCHAR)
SELECT TYPE, Nationality FROM ship
How many county councils for the communist party of norway
CREATE TABLE table_203802_2 (county_councils___2011__ INTEGER, english_party_name VARCHAR)
SELECT MAX(county_councils___2011__) FROM table_203802_2 WHERE english_party_name = "Communist Party of Norway"
What is the result of the friendly match in Seoul?
CREATE TABLE table_name_47 (result VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT result FROM table_name_47 WHERE competition = "friendly match" AND venue = "seoul"
What was the average pick made by the Texas Rangers?
CREATE TABLE table_name_82 (pick INTEGER, team VARCHAR)
SELECT AVG(pick) FROM table_name_82 WHERE team = "texas rangers"
Which method has a record of 3-0?
CREATE TABLE table_name_27 (method VARCHAR, record VARCHAR)
SELECT method FROM table_name_27 WHERE record = "3-0"
How many michelob ultra mountains classification for darren lill
CREATE TABLE table_13223187_1 (michelob_ultra_mountains_classification_gold_polka_dot_jersey VARCHAR, drury_hotels_most_aggressive_rider_red_jersey VARCHAR)
SELECT COUNT(michelob_ultra_mountains_classification_gold_polka_dot_jersey) FROM table_13223187_1 WHERE drury_hotels_most_aggressive_rider_red_jersey = "Darren Lill"
How many times was Mike McIntyre elected?
CREATE TABLE table_1805191_34 (results VARCHAR, incumbent VARCHAR)
SELECT COUNT(results) FROM table_1805191_34 WHERE incumbent = "Mike McIntyre"
How many college/junior/club teams are ther when nhl team is edmonton oilers?
CREATE TABLE table_2850912_7 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT COUNT(college_junior_club_team) FROM table_2850912_7 WHERE nhl_team = "Edmonton Oilers"
What was the 2007 result for a 2008 result of 1R and 2009 result of 2R?
CREATE TABLE table_name_47 (Id VARCHAR)
SELECT 2007 FROM table_name_47 WHERE 2009 = "2r" AND 2008 = "1r"
Who is the original operator for the AG Vulcan builder and the Prinzess Irene ship?
CREATE TABLE table_name_54 (original_operator VARCHAR, builder VARCHAR, ship VARCHAR)
SELECT original_operator FROM table_name_54 WHERE builder = "ag vulcan" AND ship = "prinzess irene"
How many numbers were recorded under matches with Arthur Morris?
CREATE TABLE table_16570286_2 (matches VARCHAR, player VARCHAR)
SELECT COUNT(matches) FROM table_16570286_2 WHERE player = "Arthur Morris"
Which Country is listed for the Director Thomas Vinterberg?
CREATE TABLE table_name_74 (country VARCHAR, director VARCHAR)
SELECT country FROM table_name_74 WHERE director = "thomas vinterberg"
What is the record of the game with the toronto huskies as the opponent?
CREATE TABLE table_name_39 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_39 WHERE opponent = "toronto huskies"
Who won the game on may 21?
CREATE TABLE table_13710464_1 (winning_team VARCHAR, date VARCHAR)
SELECT winning_team FROM table_13710464_1 WHERE date = "May 21"
Show the date valid from and the date valid to for the card with card number '4560596484842'.
CREATE TABLE Customers_cards (date_valid_from VARCHAR, date_valid_to VARCHAR, card_number VARCHAR)
SELECT date_valid_from, date_valid_to FROM Customers_cards WHERE card_number = "4560596484842"
How many teams had 632 points against?
CREATE TABLE table_1676073_12 (points_for VARCHAR, points_against VARCHAR)
SELECT COUNT(points_for) FROM table_1676073_12 WHERE points_against = "632"
What is the time for South Korea?
CREATE TABLE table_name_3 (time VARCHAR, country VARCHAR)
SELECT time FROM table_name_3 WHERE country = "south korea"
What is the Match with a Prize of money that is £1,000,000?
CREATE TABLE table_name_16 (matches VARCHAR, prize_money VARCHAR)
SELECT matches FROM table_name_16 WHERE prize_money = "£1,000,000"
which tournament was the champion pat cash 4–6, 6–4, 6–3?
CREATE TABLE table_29296103_10 (tournament VARCHAR, champion VARCHAR)
SELECT tournament FROM table_29296103_10 WHERE champion = "Pat Cash 4–6, 6–4, 6–3"
How much Puchat Ligi has a Total smaller than 5, and an Ekstraklasa larger than 1?
CREATE TABLE table_name_46 (puchat_ligi INTEGER, total VARCHAR, ekstraklasa VARCHAR)
SELECT SUM(puchat_ligi) FROM table_name_46 WHERE total < 5 AND ekstraklasa > 1
When and where did Eddie Smith win the mixed veteran?
CREATE TABLE table_28211674_3 (date_location VARCHAR, mixed_veteran VARCHAR)
SELECT COUNT(date_location) FROM table_28211674_3 WHERE mixed_veteran = "Eddie Smith"
What is the total points for a place less than 2 with a played greater than 18?
CREATE TABLE table_name_16 (points INTEGER, place VARCHAR, played VARCHAR)
SELECT SUM(points) FROM table_name_16 WHERE place < 2 AND played > 18
Which Pick has a Nationality of canada, and a Round of 5?
CREATE TABLE table_name_98 (pick VARCHAR, nationality VARCHAR, round VARCHAR)
SELECT pick FROM table_name_98 WHERE nationality = "canada" AND round = 5
Which family has a Name of humpback whale?
CREATE TABLE table_name_40 (family VARCHAR, name VARCHAR)
SELECT family FROM table_name_40 WHERE name = "humpback whale"
How many points did he average in 1964?
CREATE TABLE table_name_10 (points INTEGER, year VARCHAR)
SELECT AVG(points) FROM table_name_10 WHERE year = 1964
What is Winner, when Year is 2001?
CREATE TABLE table_name_34 (winner VARCHAR, year VARCHAR)
SELECT winner FROM table_name_34 WHERE year = 2001
what is the capacity when the name is 1.2 16v?
CREATE TABLE table_name_68 (capacity VARCHAR, name VARCHAR)
SELECT capacity FROM table_name_68 WHERE name = "1.2 16v"
What surface was used on may 13, 2007?
CREATE TABLE table_name_19 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_19 WHERE date = "may 13, 2007"
What is the highest number of goals associated with 39 caps?
CREATE TABLE table_name_33 (goals INTEGER, caps VARCHAR)
SELECT MAX(goals) FROM table_name_33 WHERE caps = 39
What is the result for the king and I after 2006?
CREATE TABLE table_name_58 (result VARCHAR, year VARCHAR, nominated_work VARCHAR)
SELECT result FROM table_name_58 WHERE year > 2006 AND nominated_work = "the king and i"
Name the club/province for steve borthwick
CREATE TABLE table_name_51 (club_province VARCHAR, player VARCHAR)
SELECT club_province FROM table_name_51 WHERE player = "steve borthwick"