answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT date FROM table_name_80 WHERE home = "romania" AND venue = "bucharest" AND score = "13-19"
What date were Romania at Home at the Bucharest Venue with a Score of 13-19?
CREATE TABLE table_name_80 (date VARCHAR, score VARCHAR, home VARCHAR, venue VARCHAR)
SELECT mall_name FROM table_name_3 WHERE stores = "140"
Which Mall has 140 stores?
CREATE TABLE table_name_3 (mall_name VARCHAR, stores VARCHAR)
SELECT time_retired FROM table_name_16 WHERE team = "team vodafone" AND grid > 4
What is Time/Retired, when Team is "Team Vodafone", and when Grid is greater than 4?
CREATE TABLE table_name_16 (time_retired VARCHAR, team VARCHAR, grid VARCHAR)
SELECT attendance FROM table_name_21 WHERE opponent = "detroit lions"
What was the number in attendance for the Detroit Lions game?
CREATE TABLE table_name_21 (attendance VARCHAR, opponent VARCHAR)
SELECT boiler_provider FROM table_28672269_1 WHERE tg_set_provider = "BHEL, India"
What is the boiler provider for Bhel, India's TG Set provider?
CREATE TABLE table_28672269_1 (boiler_provider VARCHAR, tg_set_provider VARCHAR)
SELECT MAX(grid) FROM table_name_71 WHERE rider = "tetsuya harada"
What is the highest grid that tetsuya harada rode in?
CREATE TABLE table_name_71 (grid INTEGER, rider VARCHAR)
SELECT MIN(touchdowns) FROM table_name_81 WHERE points = 5 AND field_goals > 0
Which Touchdowns is the lowest one that has Points of 5, and a Field goals larger than 0?
CREATE TABLE table_name_81 (touchdowns INTEGER, points VARCHAR, field_goals VARCHAR)
SELECT league_from FROM table_name_13 WHERE nhl_team = "san jose sharks (from carolina) 3"
Which League from has a NHL team of san jose sharks (from carolina) 3?
CREATE TABLE table_name_13 (league_from VARCHAR, nhl_team VARCHAR)
SELECT stadium FROM table_name_99 WHERE team = "san diego chargers"
What is the stadium of the san diego chargers?
CREATE TABLE table_name_99 (stadium VARCHAR, team VARCHAR)
SELECT ihsaa_class FROM table_name_3 WHERE school = "tipton"
What is the IHSAA class for Tipton?
CREATE TABLE table_name_3 (ihsaa_class VARCHAR, school VARCHAR)
SELECT tries_against FROM table_12886178_4 WHERE tries_for = "29"
What was the tries against count for the club whose tries for count was 29?
CREATE TABLE table_12886178_4 (tries_against VARCHAR, tries_for VARCHAR)
SELECT attendance FROM table_name_72 WHERE opponent = "at detroit lions"
What was the attendance when they played at Detroit Lions?
CREATE TABLE table_name_72 (attendance VARCHAR, opponent VARCHAR)
SELECT venue FROM table_name_7 WHERE result = "5-1"
Where was the competition that took place that had a 5-1 result?
CREATE TABLE table_name_7 (venue VARCHAR, result VARCHAR)
SELECT nationality FROM table_name_41 WHERE player = "andrew campbell"
What is Nationality, when Player is "Andrew Campbell"?
CREATE TABLE table_name_41 (nationality VARCHAR, player VARCHAR)
SELECT MIN(long) FROM table_name_19 WHERE gain = 20 AND loss < 0
Can you tell me the lowest Long that has the Gain of 20, and the Loss smaller than 0?
CREATE TABLE table_name_19 (long INTEGER, gain VARCHAR, loss VARCHAR)
SELECT result FROM table_name_87 WHERE week < 9 AND game_site = "mile high stadium"
When the game was played at Mile High Stadium before week 9, what was the result?
CREATE TABLE table_name_87 (result VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT MIN(car) FROM table_name_37 WHERE yards > 122
What is the lowest car with more than 122 yards?
CREATE TABLE table_name_37 (car INTEGER, yards INTEGER)
SELECT place FROM table_name_89 WHERE to_par = "–10" AND score = 67 - 67 - 66 = 200
What is the Place of the Player with a To par of –10 and a Score of 67-67-66=200?
CREATE TABLE table_name_89 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_92 WHERE player = "tom kite"
What to par has tom kite as the player?
CREATE TABLE table_name_92 (to_par VARCHAR, player VARCHAR)
SELECT frequency FROM table_name_26 WHERE branding = "country 600"
Which Frequency has a Branding of country 600?
CREATE TABLE table_name_26 (frequency VARCHAR, branding VARCHAR)
SELECT score FROM table_name_43 WHERE date = "may 21"
What was the score on may 21?
CREATE TABLE table_name_43 (score VARCHAR, date VARCHAR)
SELECT away_team FROM table_name_11 WHERE home_team = "luton town"
who is the away team when the home team is luton town?
CREATE TABLE table_name_11 (away_team VARCHAR, home_team VARCHAR)
SELECT telephone__052_ FROM table_14465924_1 WHERE area__km_2__ = "5.42"
Name the telephone 052 for area km2 being 5.42
CREATE TABLE table_14465924_1 (telephone__052_ VARCHAR, area__km_2__ VARCHAR)
SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Vincent" INTERSECT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Marcelle"
What are the names of the tourist attractions Vincent and Marcelle visit?
CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR, Tourist_ID VARCHAR); CREATE TABLE VISITORS (Tourist_Details VARCHAR, Tourist_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)
SELECT incumbent FROM table_name_7 WHERE district = "louisiana 4"
What is Incumbent, when District is "Louisiana 4"?
CREATE TABLE table_name_7 (incumbent VARCHAR, district VARCHAR)
SELECT MIN(first_issued) FROM table_name_51 WHERE color = "green"
When was Color of green first issued?
CREATE TABLE table_name_51 (first_issued INTEGER, color VARCHAR)
SELECT score FROM table_name_34 WHERE date = "february 8"
What was the score of the game on February 8?
CREATE TABLE table_name_34 (score VARCHAR, date VARCHAR)
SELECT acronym FROM table_1331313_1 WHERE department = "department of Finance Kagawaran ng Pananalapi"
what's the acronym with department being department of finance kagawaran ng pananalapi
CREATE TABLE table_1331313_1 (acronym VARCHAR, department VARCHAR)
SELECT high_rebounds FROM table_13812785_5 WHERE date = "December 22"
Who was responsible and what was the number for the high rebounds on December 22?
CREATE TABLE table_13812785_5 (high_rebounds VARCHAR, date VARCHAR)
SELECT name FROM table_22705586_1 WHERE date_of_birth = "27/07/86"
Name the date of birth for 27/07/86
CREATE TABLE table_22705586_1 (name VARCHAR, date_of_birth VARCHAR)
SELECT COUNT(slovene) FROM table_26757_4 WHERE belarusian = "рыба (rýba)"
When рыба (rýba) is the belarusian how many slovenes are there?
CREATE TABLE table_26757_4 (slovene VARCHAR, belarusian VARCHAR)
SELECT MAX(market_value__billion_) AS $_ FROM table_name_79 WHERE profits__billion_$_ = 20.96 AND assets__billion_$_ > 166.99
What is the highest market value in billions of the company with profits of 20.96 billions and 166.99 billions in assets?
CREATE TABLE table_name_79 (market_value__billion_ INTEGER, profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR)
SELECT MAX(number_of_households) FROM table_name_1 WHERE median_household_income = "$32,806" AND population > 11 OFFSET 291
Which Number of households has a Median household income of $32,806, and a Population larger than 11,291?
CREATE TABLE table_name_1 (number_of_households INTEGER, median_household_income VARCHAR, population VARCHAR)
SELECT SUM(gold) FROM table_name_2 WHERE bronze = 1 AND total = "6" AND silver < 3
what is the gold when the bronze is 1, total is 6 and silver is less than 3?
CREATE TABLE table_name_2 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT district_residence FROM table_name_4 WHERE name = "choice b. randell"
Name of choice b. Randell is the name of which District Residence?
CREATE TABLE table_name_4 (district_residence VARCHAR, name VARCHAR)
SELECT country FROM table_name_85 WHERE name = "pele"
Which country does the player pele belong to?
CREATE TABLE table_name_85 (country VARCHAR, name VARCHAR)
SELECT opponent FROM table_name_46 WHERE time = "1:34"
Which opponent has a Time of 1:34?
CREATE TABLE table_name_46 (opponent VARCHAR, time VARCHAR)
SELECT tries_against FROM table_name_1 WHERE played = "22" AND points_against = "784"
WHAT IS THE TRIES AGAINST WITH PLAYED 22, POINTS AGAINST 784?
CREATE TABLE table_name_1 (tries_against VARCHAR, played VARCHAR, points_against VARCHAR)
SELECT away_team FROM table_name_79 WHERE home_team = "carlton"
Who was Carlton's away team opponent?
CREATE TABLE table_name_79 (away_team VARCHAR, home_team VARCHAR)
SELECT location FROM table_16527640_3 WHERE vfl_games = 9
What location had a VFL Game number of 9?
CREATE TABLE table_16527640_3 (location VARCHAR, vfl_games VARCHAR)
SELECT COUNT(enrollment) FROM table_name_23 WHERE nickname = "buccaneers" AND founded < 1911
What is the number of enrollments for teams named the Buccaneers founded before 1911?
CREATE TABLE table_name_23 (enrollment VARCHAR, nickname VARCHAR, founded VARCHAR)
SELECT MAX(matches) FROM table_23316034_16 WHERE runs = 5028
If the runs is 5028, what is the matches maximum?
CREATE TABLE table_23316034_16 (matches INTEGER, runs VARCHAR)
SELECT nationality FROM table_name_98 WHERE elevator = "innocent iv"
When the elevator was Innocent IV what was the nationality?
CREATE TABLE table_name_98 (nationality VARCHAR, elevator VARCHAR)
SELECT score_points FROM table_name_65 WHERE total = "olympic bronze medalist"
With Olympic Bronze Medalist as the total what are the score points?
CREATE TABLE table_name_65 (score_points VARCHAR, total VARCHAR)
SELECT v_band FROM table_186468_1 WHERE k_band = "5.5"
When 5.5 is the l-band what is the v-band?
CREATE TABLE table_186468_1 (v_band VARCHAR, k_band VARCHAR)
SELECT event_name FROM party_events GROUP BY event_name HAVING COUNT(*) > 2
find the event names that have more than 2 records.
CREATE TABLE party_events (event_name VARCHAR)
SELECT sport FROM table_name_40 WHERE country = "canada" AND year = 2004
Name the sport for canada in 2004
CREATE TABLE table_name_40 (sport VARCHAR, country VARCHAR, year VARCHAR)
SELECT SUM(week) FROM table_name_7 WHERE attendance < 26 OFFSET 048
How many weeks have an attendance less than 26,048?
CREATE TABLE table_name_7 (week INTEGER, attendance INTEGER)
SELECT title FROM table_20704243_6 WHERE directed_by = "John Rogers"
What episode did John Rogers direct?
CREATE TABLE table_20704243_6 (title VARCHAR, directed_by VARCHAR)
SELECT AVG(place) FROM table_name_14 WHERE song = "dis oui"
What is the average Place, when Song is "Dis Oui"?
CREATE TABLE table_name_14 (place INTEGER, song VARCHAR)
SELECT trofeo_fast_team FROM table_name_10 WHERE winner = "alessandro paganessi"
Which Trofeo Fast Team has a Winner of alessandro paganessi?
CREATE TABLE table_name_10 (trofeo_fast_team VARCHAR, winner VARCHAR)
SELECT MAX(episodes) FROM table_14562722_2 WHERE region_4 = "March 13, 2008"
Name the most epiosdes when region 4 is march 13, 2008
CREATE TABLE table_14562722_2 (episodes INTEGER, region_4 VARCHAR)
SELECT MAX(year) FROM table_name_43 WHERE chassis = "tyrrell 018" AND points < 3
What is the latest year for the Tyrrell 018 Chassis that has less than 3 points?
CREATE TABLE table_name_43 (year INTEGER, chassis VARCHAR, points VARCHAR)
SELECT record FROM table_name_24 WHERE opponent = "anna barone"
What is the record for opponent Anna Barone?
CREATE TABLE table_name_24 (record VARCHAR, opponent VARCHAR)
SELECT COUNT(points) FROM table_name_62 WHERE difference = "23" AND drawn < 5
How many points have a difference of 23, with a drawn less than 5?
CREATE TABLE table_name_62 (points VARCHAR, difference VARCHAR, drawn VARCHAR)
SELECT COUNT(champion) FROM table_1167698_1 WHERE season = "2009"
How many champions were there in 2009?
CREATE TABLE table_1167698_1 (champion VARCHAR, season VARCHAR)
SELECT result FROM table_name_26 WHERE date = "11 august 1992"
What is Result, when Date is 11 August 1992?
CREATE TABLE table_name_26 (result VARCHAR, date VARCHAR)
SELECT year_built FROM table_1015421_1 WHERE no_built = 7
What year was number 7 built?
CREATE TABLE table_1015421_1 (year_built VARCHAR, no_built VARCHAR)
SELECT COUNT(director) FROM table_26385848_1 WHERE film_title = "Eldra"
What is the number of directors for the film title Eldra?
CREATE TABLE table_26385848_1 (director VARCHAR, film_title VARCHAR)
SELECT place_of_birth FROM table_name_78 WHERE elevated = "may 16, 1288" AND cardinalatial_title = "deacon of s. eustachio"
What is the place of birth when elevated is May 16, 1288, and cardinalatial title is Deacon of S. Eustachio?
CREATE TABLE table_name_78 (place_of_birth VARCHAR, elevated VARCHAR, cardinalatial_title VARCHAR)
SELECT COUNT(losses) FROM table_name_13 WHERE millewa = "nangiloc"
How many Losses have a Millewa of nangiloc?
CREATE TABLE table_name_13 (losses VARCHAR, millewa VARCHAR)
SELECT capital FROM table_name_27 WHERE largest_city = "burlington"
What is the capital for the state that has the largest city of Burlington?
CREATE TABLE table_name_27 (capital VARCHAR, largest_city VARCHAR)
SELECT record FROM table_name_38 WHERE date = "november 12"
What was the team's record on November 12?
CREATE TABLE table_name_38 (record VARCHAR, date VARCHAR)
SELECT report FROM table_name_89 WHERE venue = "state sports centre"
Which report corresponds to the State Sports Centre?
CREATE TABLE table_name_89 (report VARCHAR, venue VARCHAR)
SELECT apt_number FROM Apartments WHERE apt_type_code = "Flat"
Return the apartment numbers of the apartments with type code "Flat".
CREATE TABLE Apartments (apt_number VARCHAR, apt_type_code VARCHAR)
SELECT att_cmp_int FROM table_name_73 WHERE effic < 117.88 AND gp_gs = "10-0"
What is the att-cmp-int with an effic smaller than 117.88 and a gp-gs of 10-0?
CREATE TABLE table_name_73 (att_cmp_int VARCHAR, effic VARCHAR, gp_gs VARCHAR)
SELECT voice_actor FROM table_26615633_1 WHERE birthday = "March 26"
who is the voice actor with the birthday march 26?
CREATE TABLE table_26615633_1 (voice_actor VARCHAR, birthday VARCHAR)
SELECT hangul___japanese FROM table_name_80 WHERE genre = "drama" AND title = "boys over flowers"
What's the Hangul/Japanese of Boys Over Flowers that's drama?
CREATE TABLE table_name_80 (hangul___japanese VARCHAR, genre VARCHAR, title VARCHAR)
SELECT transfer_fee FROM table_name_94 WHERE transfer_window = "winter" AND moving_to = "northwich victoria"
What is the Transfer fee, when the Transfer window is "winter", and when the item "Moving to" is Northwich Victoria?
CREATE TABLE table_name_94 (transfer_fee VARCHAR, transfer_window VARCHAR, moving_to VARCHAR)
SELECT attribute FROM table_1507852_5 WHERE cancelable = "Yes"
what's the attribute with cancelable being yes
CREATE TABLE table_1507852_5 (attribute VARCHAR, cancelable VARCHAR)
SELECT team FROM table_22998777_1 WHERE poles = 1 AND series = "ADAC GT Masters"
If the series is ADAC GT Masters and poles is 1, what is the name of the team?
CREATE TABLE table_22998777_1 (team VARCHAR, poles VARCHAR, series VARCHAR)
SELECT COUNT(original_air_date) FROM table_11111116_6 WHERE no_in_series = 79
How many times did episode 79 originally air?
CREATE TABLE table_11111116_6 (original_air_date VARCHAR, no_in_series VARCHAR)
SELECT 1 AS st_leg FROM table_name_12 WHERE team_1 = "c.d. plaza amador"
What is the 1st leg where Team 1 is C.D. Plaza Amador?
CREATE TABLE table_name_12 (team_1 VARCHAR)
SELECT catalogue FROM table_name_63 WHERE date = "1987"
Which catalogue has a date of 1987?
CREATE TABLE table_name_63 (catalogue VARCHAR, date VARCHAR)
SELECT colors FROM table_26466528_1 WHERE location = "North Canton"
Name the colors for north canton
CREATE TABLE table_26466528_1 (colors VARCHAR, location VARCHAR)
SELECT proceed_to_quarter_final FROM table_28068063_3 WHERE eliminated_from_competition = "London Irish"
Who proceeded to the quarter final when the london irish were eliminated from competition?
CREATE TABLE table_28068063_3 (proceed_to_quarter_final VARCHAR, eliminated_from_competition VARCHAR)
SELECT nfl_team FROM table_20996923_25 WHERE pick__number = 28
What NFL team was the player with pick number 28 drafted to?
CREATE TABLE table_20996923_25 (nfl_team VARCHAR, pick__number VARCHAR)
SELECT COUNT(year) FROM table_name_4 WHERE make__model = "new flyer c40lfr"
How many years have a Make/ Model of new flyer c40lfr?
CREATE TABLE table_name_4 (year VARCHAR, make__model VARCHAR)
SELECT t_papadopoulos FROM table_name_85 WHERE i_kasoulidis = "27.1%"
What was the percentage for T. Papadopoulos when I. Kasoulidis was 27.1%?
CREATE TABLE table_name_85 (t_papadopoulos VARCHAR, i_kasoulidis VARCHAR)
SELECT MIN(top_10) FROM table_name_10 WHERE cuts_made < 11 AND wins > 0
Name the least top-10 for cuts made less than 11 and wins more than 0
CREATE TABLE table_name_10 (top_10 INTEGER, cuts_made VARCHAR, wins VARCHAR)
SELECT last_performance FROM table_name_11 WHERE name = "liam mower"
What is the date of the last performance for Liam Mower?
CREATE TABLE table_name_11 (last_performance VARCHAR, name VARCHAR)
SELECT AVG(wins) FROM table_name_1 WHERE byes < 2
How many wins for the team with fewer than 2 byes?
CREATE TABLE table_name_1 (wins INTEGER, byes INTEGER)
SELECT transfer_window FROM table_name_97 WHERE moving_to = "panionios"
What is the transfer window of the player moving to Panionios?
CREATE TABLE table_name_97 (transfer_window VARCHAR, moving_to VARCHAR)
SELECT SUM(laps) FROM table_name_99 WHERE grid > 17 AND time_retired = "collision"
How many laps had a grid of greater than 17 and retired due to collision?
CREATE TABLE table_name_99 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
SELECT arena FROM table_name_22 WHERE date = "september 21"
At what arena was the September 21 game?
CREATE TABLE table_name_22 (arena VARCHAR, date VARCHAR)
SELECT MAX(week) FROM table_24951872_2 WHERE attendance = 10738
What was the maximum week that had attendance of 10738?
CREATE TABLE table_24951872_2 (week INTEGER, attendance VARCHAR)
SELECT MIN(number_of_electorates__2009_) FROM table_name_40 WHERE reserved_for___sc___st__none_ = "none" AND name = "jahanabad"
Name the Number of electorates (2009 which has a Reserved for ( SC / ST /None) of none, and a Name of jahanabad?
CREATE TABLE table_name_40 (number_of_electorates__2009_ INTEGER, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
SELECT player FROM table_name_61 WHERE school = "st. benedict's prep"
What is the player that went to st. benedict's prep?
CREATE TABLE table_name_61 (player VARCHAR, school VARCHAR)
SELECT start_station_name, start_station_id FROM trip WHERE start_date LIKE "8/%" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1
Which start station had the most trips starting from August? Give me the name and id of the station.
CREATE TABLE trip (start_station_name VARCHAR, start_station_id VARCHAR, start_date VARCHAR)
SELECT season FROM table_name_65 WHERE losses = "30"
Which season has Losses of 30?
CREATE TABLE table_name_65 (season VARCHAR, losses VARCHAR)
SELECT january_15_16 FROM table_1708610_3 WHERE march_27_29 = "March 29, 2006"
Name the january 15-16 where march 27-29 where march 29, 2006
CREATE TABLE table_1708610_3 (january_15_16 VARCHAR, march_27_29 VARCHAR)
SELECT surface FROM table_name_14 WHERE date = "june 13, 1983"
Which Surface had a Date of june 13, 1983?
CREATE TABLE table_name_14 (surface VARCHAR, date VARCHAR)
SELECT COUNT(highest_position) FROM table_name_29 WHERE album_title = "talk on corners" AND issue_date > 1
What is the highest position Talk on Corners, which had an issue date greater than 1, had?
CREATE TABLE table_name_29 (highest_position VARCHAR, album_title VARCHAR, issue_date VARCHAR)
SELECT competition FROM table_name_72 WHERE date = "6 december 2011"
What is the Competition with a Date with 6 december 2011?
CREATE TABLE table_name_72 (competition VARCHAR, date VARCHAR)
SELECT shropshire_senior_cup FROM table_name_44 WHERE points > 78 AND fa_cup = "pre"
What is the Shropshire Senior Cup when points are greater than 78 and FA Cup is pre?
CREATE TABLE table_name_44 (shropshire_senior_cup VARCHAR, points VARCHAR, fa_cup VARCHAR)
SELECT democratic FROM table_name_40 WHERE incumbent = "christopher shays"
Who was the Democratic when then Incumbent was Christopher Shays?
CREATE TABLE table_name_40 (democratic VARCHAR, incumbent VARCHAR)
SELECT MIN(league_cup) FROM table
What is the lowest league cup?
CREATE TABLE table (league_cup INTEGER)
SELECT MIN(2010) FROM table_name_76 WHERE 2012 < 0
What is the lowest number of participants in 2010 when there were 0 participants in 2012?
CREATE TABLE table_name_76 (Id VARCHAR)
SELECT MIN(top_25) FROM table_name_63 WHERE events = 12 AND top_5 = 1 AND cuts_made < 11
What is the lowest Top-25 when events shows 12, the top-5 is 1, and less than 11 cuts?
CREATE TABLE table_name_63 (top_25 INTEGER, cuts_made VARCHAR, events VARCHAR, top_5 VARCHAR)
SELECT COUNT(pole_position) FROM table_1137707_2 WHERE round = 15
What is the number of pole position with a round of 15?
CREATE TABLE table_1137707_2 (pole_position VARCHAR, round VARCHAR)