answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT city__municipality FROM table_255602_1 WHERE area__km²_ = "176.40"
What city/municipality has area of 176.40?
CREATE TABLE table_255602_1 (city__municipality VARCHAR, area__km²_ VARCHAR)
SELECT tournament FROM table_name_21 WHERE away_team = "mexico" AND home_team = "japan"
What was the tournament where Japan was the home team and Mexico was the away team?
CREATE TABLE table_name_21 (tournament VARCHAR, away_team VARCHAR, home_team VARCHAR)
SELECT COUNT(greek_designation) FROM table_18159601_1 WHERE city = "Tampa"
how mnay greek designation in tampa
CREATE TABLE table_18159601_1 (greek_designation VARCHAR, city VARCHAR)
SELECT year FROM table_name_70 WHERE cup_position = "round 1" AND league_position = "5/12"
What year had a cup position of round 1 and a league position of 5/12?
CREATE TABLE table_name_70 (year VARCHAR, cup_position VARCHAR, league_position VARCHAR)
SELECT throws FROM table_name_2 WHERE dob = "19/10/81"
Which throw number had a DOB of 19/10/81?
CREATE TABLE table_name_2 (throws VARCHAR, dob VARCHAR)
SELECT COUNT(laps) FROM table_name_72 WHERE grid = 4
Hows many Laps are in a Grid of 4?
CREATE TABLE table_name_72 (laps VARCHAR, grid VARCHAR)
SELECT season__number FROM table_14346950_1 WHERE teleplay_by = "Richard Price" AND directed_by = "Steve Shill"
What is the season # for a teleplay by Richard Price and the director is Steve Shill?
CREATE TABLE table_14346950_1 (season__number VARCHAR, teleplay_by VARCHAR, directed_by VARCHAR)
SELECT employee_name FROM Employees WHERE role_code = "HR"
Show the names of all the employees with role "HR".
CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR)
SELECT opponent FROM table_name_51 WHERE round = "r5"
Which opponent has a Round of r5?
CREATE TABLE table_name_51 (opponent VARCHAR, round VARCHAR)
SELECT release_price___usd__ FROM table_name_98 WHERE part_number_s_ = "hh80557pg0491m"
What's the release price (USD) for part number hh80557pg0491m?
CREATE TABLE table_name_98 (release_price___usd__ VARCHAR, part_number_s_ VARCHAR)
SELECT SUM(Amount_Claimed) FROM Claims
Find the total claimed amount of all the claims.
CREATE TABLE Claims (Amount_Claimed INTEGER)
SELECT blackberry_os FROM table_14260687_3 WHERE symbian = "10.4"
How many millions of Blackberry OS smartphones were shipped when 10.4 million Symbian smartphones were shipped?
CREATE TABLE table_14260687_3 (blackberry_os VARCHAR, symbian VARCHAR)
SELECT latitude FROM table_name_7 WHERE longitude = "147.1w"
What is the latitude of the point with a longitude of 147.1w?
CREATE TABLE table_name_7 (latitude VARCHAR, longitude VARCHAR)
SELECT date FROM table_name_71 WHERE home = "detroit falcons" AND score = "63–66"
On what Date is the Detroit Falcons the Home team in a game with a Score of 63–66?
CREATE TABLE table_name_71 (date VARCHAR, home VARCHAR, score VARCHAR)
SELECT COUNT(song_title) FROM table_13789248_2 WHERE artist = "Chubby Checker"
how many song title with artbeingt being chubby checker
CREATE TABLE table_13789248_2 (song_title VARCHAR, artist VARCHAR)
SELECT copa_mercosur_1999 FROM table_name_51 WHERE copa_libertadores_1999 = "did not qualify" AND copa_conmebol_1999 = "did not qualify" AND team = "grêmio"
What is the copa mercosur 1999 result for team grêmio, who did not qualify for the Copa Libertadores 1999 and Copa Conmebol 1999?
CREATE TABLE table_name_51 (copa_mercosur_1999 VARCHAR, team VARCHAR, copa_libertadores_1999 VARCHAR, copa_conmebol_1999 VARCHAR)
SELECT year_location FROM table_28138035_33 WHERE womens_doubles = "Bai Yang Niu Jianfeng"
What is the place and when was the year when the women's doubles womens were Bai yang Niu Jianfeng?
CREATE TABLE table_28138035_33 (year_location VARCHAR, womens_doubles VARCHAR)
SELECT COUNT(laps) FROM table_name_50 WHERE qual = "136.168"
How many laps had a qualification of 136.168?
CREATE TABLE table_name_50 (laps VARCHAR, qual VARCHAR)
SELECT height__m_ FROM table_name_66 WHERE city = "frankfurt" AND height__ft_ = 850
What is the height in meters for a building in Frankfurt that is 850 feet tall?
CREATE TABLE table_name_66 (height__m_ VARCHAR, city VARCHAR, height__ft_ VARCHAR)
SELECT COUNT(period_of_validity) FROM table_222666_1 WHERE former_country_name = "Upper Volta"
Name the total number for period of validity for upper volta
CREATE TABLE table_222666_1 (period_of_validity VARCHAR, former_country_name VARCHAR)
SELECT COUNT(gold) FROM table_name_17 WHERE rank = "3" AND total > 7
How many golds have 3 as the rank, with a total greater than 7?
CREATE TABLE table_name_17 (gold VARCHAR, rank VARCHAR, total VARCHAR)
SELECT AVG(no_opinion) FROM table_name_94 WHERE date = "1954 november" AND favorable > 35
What is the average no opinion score during 1954 November that is more favorable than 35?
CREATE TABLE table_name_94 (no_opinion INTEGER, date VARCHAR, favorable VARCHAR)
SELECT away_team FROM table_name_73 WHERE home_team = "coventry city"
What is the away team where the home team is Coventry City?
CREATE TABLE table_name_73 (away_team VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_23 WHERE visitor = "mavericks"
What was the score when the mavericks were visitors?
CREATE TABLE table_name_23 (score VARCHAR, visitor VARCHAR)
SELECT population_2000_census FROM table_14986292_1 WHERE area__km²_ = "77"
Name the population 2000 census for 77 area
CREATE TABLE table_14986292_1 (population_2000_census VARCHAR, area__km²_ VARCHAR)
SELECT team FROM table_name_61 WHERE points_against = "102"
What team has 102 Points against?
CREATE TABLE table_name_61 (team VARCHAR, points_against VARCHAR)
SELECT date FROM table_name_44 WHERE surface = "carpet (i)"
Which date has a Surface of carpet (i)?
CREATE TABLE table_name_44 (date VARCHAR, surface VARCHAR)
SELECT COUNT(silver) FROM table_name_95 WHERE bronze > 1 AND gold = 0 AND rank < 4
How much Silver has a Bronze larger than 1, and a Gold of 0, and a Rank smaller than 4?
CREATE TABLE table_name_95 (silver VARCHAR, rank VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT to_par FROM table_name_14 WHERE country = "united states" AND score = 71 - 70 = 141
Which To par has a Country of united states, and a Score of 71-70=141?
CREATE TABLE table_name_14 (to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT AVG(attendance) FROM table_name_26 WHERE week = 9
What was the attendance in week 9?
CREATE TABLE table_name_26 (attendance INTEGER, week VARCHAR)
SELECT SUM(attendance) FROM table_name_5 WHERE record = "0-2-2"
What was the attendance when their record stood at 0-2-2?
CREATE TABLE table_name_5 (attendance INTEGER, record VARCHAR)
SELECT MIN(starts) FROM table_1909647_2 WHERE avg_finish = "19.3"
What's the number of starts in the year with 19.3 average finish?
CREATE TABLE table_1909647_2 (starts INTEGER, avg_finish VARCHAR)
SELECT result FROM table_name_21 WHERE record = "5-1"
What was the result of the game when the record was 5-1?
CREATE TABLE table_name_21 (result VARCHAR, record VARCHAR)
SELECT COUNT(hole) FROM table_name_61 WHERE player = "vijay singh"
How many holes does Player Vijay Singh have?
CREATE TABLE table_name_61 (hole VARCHAR, player VARCHAR)
SELECT base_10 FROM table_260938_1 WHERE shortscale_comparison = "Billion"
Name the base 10 for shortscale comparison for billion
CREATE TABLE table_260938_1 (base_10 VARCHAR, shortscale_comparison VARCHAR)
SELECT AVG(heat) FROM table_name_99 WHERE lane < 3 AND time = "14:48.39"
What's the heat in the lane less than 3 with a time of 14:48.39?
CREATE TABLE table_name_99 (heat INTEGER, lane VARCHAR, time VARCHAR)
SELECT COUNT(bronze) FROM table_name_65 WHERE total > 2 AND nation = "west germany"
How many bronze medals for West Germany having a total more than 2?
CREATE TABLE table_name_65 (bronze VARCHAR, total VARCHAR, nation VARCHAR)
SELECT governors_1950 FROM table_name_46 WHERE general_1950 = "general 1979"
What is the Governors 1950 when the General 1950 is general 1979?
CREATE TABLE table_name_46 (governors_1950 VARCHAR, general_1950 VARCHAR)
SELECT COUNT(position) FROM table_11545282_6 WHERE player = "Jim Farmer"
How many position does Jim Farmer play in?
CREATE TABLE table_11545282_6 (position VARCHAR, player VARCHAR)
SELECT signed FROM table_name_48 WHERE position = "ss" AND school = "carson city high school"
Was position ss from carson city high school signed?
CREATE TABLE table_name_48 (signed VARCHAR, position VARCHAR, school VARCHAR)
SELECT planet AS Type FROM table_name_56 WHERE radial_velocity__m_s_ > 45.2
What type of planet has a radial velocity of 45.2 m/s?
CREATE TABLE table_name_56 (planet VARCHAR, radial_velocity__m_s_ INTEGER)
SELECT report FROM table_1140076_2 WHERE race = "San Marino Grand Prix"
What is the report listed for the race in San Marino Grand Prix?
CREATE TABLE table_1140076_2 (report VARCHAR, race VARCHAR)
SELECT maidens FROM table_15700367_2 WHERE overs_bowled = "13"
Name the maaidens where overs bowled is 13
CREATE TABLE table_15700367_2 (maidens VARCHAR, overs_bowled VARCHAR)
SELECT COUNT(*) FROM Apartments WHERE NOT apt_id IN (SELECT apt_id FROM Apartment_Facilities)
How many apartments do not have any facility?
CREATE TABLE Apartment_Facilities (apt_id VARCHAR); CREATE TABLE Apartments (apt_id VARCHAR)
SELECT title_subject FROM table_20903658_1 WHERE medium = "Bronze" AND public_office = "colonist and soldier in Ville Marie, New France"
Who was the subject of the bronze sculpture who was a colonist and soldier in Ville Marie, New France?
CREATE TABLE table_20903658_1 (title_subject VARCHAR, medium VARCHAR, public_office VARCHAR)
SELECT callsign FROM table_name_3 WHERE commenced_operations < 1976
Who is the call sign that has a commenced operation before 1976?
CREATE TABLE table_name_3 (callsign VARCHAR, commenced_operations INTEGER)
SELECT game FROM table_27756474_2 WHERE high_points = "Rudy Gay (12)"
Which game did rudy gay (12) have the highest points?
CREATE TABLE table_27756474_2 (game VARCHAR, high_points VARCHAR)
SELECT commenced_operations FROM table_name_34 WHERE icao = "slk"
Who is the commenced operations that has icao of slk?
CREATE TABLE table_name_34 (commenced_operations VARCHAR, icao VARCHAR)
SELECT MAX(total_number) FROM table_14330096_4
What is the highest total number?
CREATE TABLE table_14330096_4 (total_number INTEGER)
SELECT SUM(wins) FROM table_name_99 WHERE against < 1706 AND geelong_fl = "leopold"
How many total wins for Leopold that had fewer than 1706 against?
CREATE TABLE table_name_99 (wins INTEGER, against VARCHAR, geelong_fl VARCHAR)
SELECT COUNT(position) FROM table_12962773_10 WHERE current_club = "Barons Riga"
How many players currently play for Barons Riga?
CREATE TABLE table_12962773_10 (position VARCHAR, current_club VARCHAR)
SELECT COUNT(area_km_2) FROM table_name_52 WHERE official_name = "addington"
What's the total area in kilometers of the parish addington?
CREATE TABLE table_name_52 (area_km_2 VARCHAR, official_name VARCHAR)
SELECT engine FROM table_name_66 WHERE driver = "jean-pierre jarier" AND chassis = "pc4"
What was the engine driven by Jean-Pierre Jarier and has a chassis of PC4?
CREATE TABLE table_name_66 (engine VARCHAR, driver VARCHAR, chassis VARCHAR)
SELECT date FROM table_name_5 WHERE away = "broadview hawks"
What is the Date with an Away that is broadview hawks?
CREATE TABLE table_name_5 (date VARCHAR, away VARCHAR)
SELECT MIN(run_3) FROM table_name_30 WHERE run_2 < 53.72 AND run_1 = 53.1
What is the lowest run 3 an athlete with a run 2 less than 53.72 and a run 1 of 53.1 has?
CREATE TABLE table_name_30 (run_3 INTEGER, run_2 VARCHAR, run_1 VARCHAR)
SELECT round FROM table_name_5 WHERE position = "f"
Which Round was F picked?
CREATE TABLE table_name_5 (round VARCHAR, position VARCHAR)
SELECT nationality FROM table_name_28 WHERE school_club_team = "la salle"
What nationality is the la salle team?
CREATE TABLE table_name_28 (nationality VARCHAR, school_club_team VARCHAR)
SELECT MAX(gold) FROM table_name_42 WHERE silver < 0
What is the most gold where silver is 0?
CREATE TABLE table_name_42 (gold INTEGER, silver INTEGER)
SELECT team__number2 FROM table_19130829_4 WHERE team__number1 = "Iraklis"
What's the team #2 in the round where team #1 is Iraklis?
CREATE TABLE table_19130829_4 (team__number2 VARCHAR, team__number1 VARCHAR)
SELECT score FROM table_name_73 WHERE competition = "euro 2004 qualifier"
What is Score, when Competition is "Euro 2004 Qualifier"?
CREATE TABLE table_name_73 (score VARCHAR, competition VARCHAR)
SELECT incumbent FROM table_1342393_10 WHERE district = "Georgia 5"
who won in the race in the section georgia 5
CREATE TABLE table_1342393_10 (incumbent VARCHAR, district VARCHAR)
SELECT third_place FROM table_21632864_1 WHERE runners_up = "Laranja Kyoto"
who got the third position when laranja kyoto got the second position?
CREATE TABLE table_21632864_1 (third_place VARCHAR, runners_up VARCHAR)
SELECT date FROM table_name_33 WHERE set_4 = "25-19"
What date has a set 4 of 25-19?
CREATE TABLE table_name_33 (date VARCHAR, set_4 VARCHAR)
SELECT outcome FROM table_name_81 WHERE score = "3–6, 6–3, 6–0"
What was the outcome of the game that had a score of 3–6, 6–3, 6–0?
CREATE TABLE table_name_81 (outcome VARCHAR, score VARCHAR)
SELECT home_team AS score FROM table_name_45 WHERE venue = "junction oval"
When the VFL played Junction Oval what was the home team score?
CREATE TABLE table_name_45 (home_team VARCHAR, venue VARCHAR)
SELECT region FROM table_name_16 WHERE venue = "thompson-boling arena"
In which region is the Thompson-Boling arena located?
CREATE TABLE table_name_16 (region VARCHAR, venue VARCHAR)
SELECT frequency__per_hour_ FROM table_1569516_1 WHERE destination = "London Bridge"
When London Bridge is the destination, what is the frequency?
CREATE TABLE table_1569516_1 (frequency__per_hour_ VARCHAR, destination VARCHAR)
SELECT event FROM table_name_88 WHERE time = "5:00" AND record = "10-4"
What event did Tim hague have a fight that had a time of 5:00 and a record of 10-4?
CREATE TABLE table_name_88 (event VARCHAR, time VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_89 WHERE record = "61-57"
Who was the opponent when the record was 61-57?
CREATE TABLE table_name_89 (opponent VARCHAR, record VARCHAR)
SELECT event FROM table_name_12 WHERE method = "decision"
Which event had a decision method?
CREATE TABLE table_name_12 (event VARCHAR, method VARCHAR)
SELECT week__number FROM table_27614707_1 WHERE result = "Bottom 3"
What week number was the result bottom 3?
CREATE TABLE table_27614707_1 (week__number VARCHAR, result VARCHAR)
SELECT COUNT(hometown) FROM table_11677691_1 WHERE college = "Alabama" AND position = "Offensive line"
How many offensive line players played for a college in Alabama?
CREATE TABLE table_11677691_1 (hometown VARCHAR, college VARCHAR, position VARCHAR)
SELECT date FROM table_name_32 WHERE visitor = "atlanta" AND home = "ottawa"
What was the date of the game where Ottawa was the home team and Atlanta is the visiting team?
CREATE TABLE table_name_32 (date VARCHAR, visitor VARCHAR, home VARCHAR)
SELECT ship FROM table_name_79 WHERE built = 2012
What ship was built in 2012?
CREATE TABLE table_name_79 (ship VARCHAR, built VARCHAR)
SELECT 2010 FROM table_name_28 WHERE tournament = "australian open"
What is the 2010 value for the Australian Open?
CREATE TABLE table_name_28 (tournament VARCHAR)
SELECT r_epp FROM table_name_90 WHERE j_thiessen = "tjoatj"
Which of the R. Epp, has J Thiessen of Tjoatj?
CREATE TABLE table_name_90 (r_epp VARCHAR, j_thiessen VARCHAR)
SELECT COUNT(breadth) FROM table_28132970_5 WHERE vessel = "Marianarray"
How many breadth entries are there when the vessel is marianarray?
CREATE TABLE table_28132970_5 (breadth VARCHAR, vessel VARCHAR)
SELECT name FROM instructor WHERE NOT id IN (SELECT id FROM teaches)
Find the name of instructors who didn't teach any courses?
CREATE TABLE teaches (name VARCHAR, id VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR)
SELECT AVG(2002) FROM table_name_64 WHERE 2003 < 13.2 AND 2006 > 12.1 AND 2011 > 13.5 AND 2001 = 11.5
What is the 2002 average when 2003 is less than 13.2, 2006 is more than 12.1, 2011 is more than 13.5 and 2001 is 11.5?
CREATE TABLE table_name_64 (Id VARCHAR)
SELECT home_team FROM table_name_85 WHERE date = "22 nov 1989" AND away_team = "bath city"
What is Home Team, when Date is "22 Nov 1989", and when Away Team is "Bath City"?
CREATE TABLE table_name_85 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT tries_against FROM table_name_2 WHERE lost = "17"
How many tries against were there with 17 losses?
CREATE TABLE table_name_2 (tries_against VARCHAR, lost VARCHAR)
SELECT score FROM table_name_37 WHERE date = "28 march 1979"
I want the score for 28 march 1979
CREATE TABLE table_name_37 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_86 WHERE champion = "vikings" AND stadium = "namyangju stadium"
What was the score when the Vikings won the championship at Namyangju Stadium?
CREATE TABLE table_name_86 (score VARCHAR, champion VARCHAR, stadium VARCHAR)
SELECT 2000 FROM table_name_85 WHERE 2006 = "10–4"
2006 of 10–4 is in which 2000?
CREATE TABLE table_name_85 (Id VARCHAR)
SELECT result FROM table_name_46 WHERE week < 4 AND date = "september 7, 1986"
Tell me the result for week less than 4 and september 7, 1986
CREATE TABLE table_name_46 (result VARCHAR, week VARCHAR, date VARCHAR)
SELECT soccer FROM table_16423070_4 WHERE volleyball = "Madison" AND cross_country = "Lexington" AND softball = "Orrville"
Who won soccer when madison won volleyball, lexington won cross country and orrville won softball
CREATE TABLE table_16423070_4 (soccer VARCHAR, softball VARCHAR, volleyball VARCHAR, cross_country VARCHAR)
SELECT MIN(rank) FROM table_name_67 WHERE name = "protestants population"
What is the lowest rank that the protestants population holds?
CREATE TABLE table_name_67 (rank INTEGER, name VARCHAR)
SELECT tournament FROM table_name_77 WHERE 2012 = "3r" AND 2011 = "qf"
what is the tournament when the performance in 2012 is 3r and 2011 is qf?
CREATE TABLE table_name_77 (tournament VARCHAR)
SELECT COUNT(players_left_after_round_1) FROM table_18733480_1 WHERE team_1 = "Wykeham Wonderers"
How many times was team 1 the wykeham wonderers?
CREATE TABLE table_18733480_1 (players_left_after_round_1 VARCHAR, team_1 VARCHAR)
SELECT years_as_tallest FROM table_name_14 WHERE height_metres___ft = "01.0 27 / 90"
Name the Years as tallest that has Height metres / ft of 01.0 27 / 90?
CREATE TABLE table_name_14 (years_as_tallest VARCHAR, height_metres___ft VARCHAR)
SELECT package_option FROM table_name_63 WHERE television_service = "sky inside"
What is Package/Option, when Television Service is Sky Inside?
CREATE TABLE table_name_63 (package_option VARCHAR, television_service VARCHAR)
SELECT COUNT(television_channels) FROM table_23143607_1 WHERE radio_stations = "Onda Madrid"
What is the total number of television channels when one of the radio stations is onda madrid?
CREATE TABLE table_23143607_1 (television_channels VARCHAR, radio_stations VARCHAR)
SELECT ns FROM table_name_11 WHERE normal_total = "102"
Name the NS with normal total of 102
CREATE TABLE table_name_11 (ns VARCHAR, normal_total VARCHAR)
SELECT stadium FROM table_name_11 WHERE city = "penrith"
What stadium is in penrith?
CREATE TABLE table_name_11 (stadium VARCHAR, city VARCHAR)
SELECT torque FROM table_name_27 WHERE model = "320td (diesel)"
What is the Torque of the Model 320td (diesel)?
CREATE TABLE table_name_27 (torque VARCHAR, model VARCHAR)
SELECT country FROM table_name_37 WHERE place = "t3" AND player = "billy mayfair"
Which country is t3 finisher billy mayfair from?
CREATE TABLE table_name_37 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT fastest_lap FROM table_10527215_3 WHERE name = "Datsun Twin 200"
What was Datsun Twin 200's fastest lap?
CREATE TABLE table_10527215_3 (fastest_lap VARCHAR, name VARCHAR)
SELECT maximum_download_speed__kbps FROM table_name_5 WHERE technology = "3g" AND plan_name = "internet premium"
What is the maximum download speed for the Internet premium 3G plan?
CREATE TABLE table_name_5 (maximum_download_speed__kbps VARCHAR, technology VARCHAR, plan_name VARCHAR)
SELECT time FROM table_name_9 WHERE notes = "sc/d" AND country = "estonia"
What is the time for Estonia with sc/d notes?
CREATE TABLE table_name_9 (time VARCHAR, notes VARCHAR, country VARCHAR)
SELECT supporting FROM table_28490105_1 WHERE gt_winning_car = "Dino Crescentini"
Who was supporting in the round when the gt winning car was dino crescentini?
CREATE TABLE table_28490105_1 (supporting VARCHAR, gt_winning_car VARCHAR)