question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
When 2010 is the first elected and Florida 7 is the district who are the candidates?
CREATE TABLE table_25030512_12 (candidates VARCHAR, district VARCHAR, first_elected VARCHAR)
SELECT candidates FROM table_25030512_12 WHERE district = "Florida 7" AND first_elected = "2010"
Which bike had a grid less than 35 and time at 37:58.607?
CREATE TABLE table_name_13 (bike VARCHAR, grid VARCHAR, time VARCHAR)
SELECT bike FROM table_name_13 WHERE grid < 35 AND time = "37:58.607"
Which Year(s) won has a Total smaller than 285, and a Player of tom watson?
CREATE TABLE table_name_51 (year_s__won VARCHAR, total VARCHAR, player VARCHAR)
SELECT year_s__won FROM table_name_51 WHERE total < 285 AND player = "tom watson"
Name the points for thomas morgenstern
CREATE TABLE table_24489942_10 (points VARCHAR, name VARCHAR)
SELECT points FROM table_24489942_10 WHERE name = "Thomas Morgenstern"
How many titles have U.S. viewers 1.66 million.
CREATE TABLE table_26736040_1 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT COUNT(title) FROM table_26736040_1 WHERE us_viewers__millions_ = "1.66"
Who is the entrant when the engine is talbot l6 and the driver is pierre levegh?
CREATE TABLE table_name_90 (entrant VARCHAR, engine VARCHAR, driver VARCHAR)
SELECT entrant FROM table_name_90 WHERE engine = "talbot l6" AND driver = "pierre levegh"
Which place is Andy Bean from the United States?
CREATE TABLE table_name_50 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT place FROM table_name_50 WHERE country = "united states" AND player = "andy bean"
What's the title when the genre is drama with a network of KBS2 happening in 2011?
CREATE TABLE table_name_31 (title VARCHAR, year VARCHAR, genre VARCHAR, network VARCHAR)
SELECT title FROM table_name_31 WHERE genre = "drama" AND network = "kbs2" AND year = 2011
Name the class aaaa for menard
CREATE TABLE table_14630796_1 (class_aAAA VARCHAR, class_a VARCHAR)
SELECT class_aAAA FROM table_14630796_1 WHERE class_a = "Menard"
How many districts have the incumbent, Charles Rangel?
CREATE TABLE table_1805191_33 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(district) FROM table_1805191_33 WHERE incumbent = "Charles Rangel"
What team draft a player from Canada that was picked #43 and plays right wing?
CREATE TABLE table_name_59 (nhl_team VARCHAR, pick__number VARCHAR, nationality VARCHAR, position VARCHAR)
SELECT nhl_team FROM table_name_59 WHERE nationality = "canada" AND position = "right wing" AND pick__number = "43"
What is the postal code when the administrative capital in Bori?
CREATE TABLE table_28891101_3 (postal_code INTEGER, administrative_capital VARCHAR)
SELECT MAX(postal_code) FROM table_28891101_3 WHERE administrative_capital = "Bori"
What is the position for sail number aus 03?
CREATE TABLE table_25594271_2 (position INTEGER, sail_number VARCHAR)
SELECT MIN(position) FROM table_25594271_2 WHERE sail_number = "AUS 03"
How many engineer visits are required at most for a single fault log? List the number and the log entry id.
CREATE TABLE Fault_Log (fault_log_entry_id VARCHAR); CREATE TABLE Engineer_Visits (fault_log_entry_id VARCHAR)
SELECT COUNT(*), T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY COUNT(*) DESC LIMIT 1
What is the lowest pupil to teacher ratio for Saratoga schools with smaller than 1213 students?
CREATE TABLE table_name_13 (pupil_teacher_ratio INTEGER, city VARCHAR, students VARCHAR)
SELECT MIN(pupil_teacher_ratio) FROM table_name_13 WHERE city = "saratoga" AND students < 1213
Find the states which do not have any employee in their record.
CREATE TABLE Employees (state_province_county VARCHAR, address_id VARCHAR, employee_address_id VARCHAR); CREATE TABLE addresses (state_province_county VARCHAR, address_id VARCHAR, employee_address_id VARCHAR)
SELECT state_province_county FROM addresses WHERE NOT address_id IN (SELECT employee_address_id FROM Employees)
what is the highest year that the U.S. captain is ken venturi?
CREATE TABLE table_name_61 (year INTEGER, us_captain VARCHAR)
SELECT MAX(year) FROM table_name_61 WHERE us_captain = "ken venturi"
what is the engine that saw a Chassis of porsche 718, and 0 points, prior to 1964?
CREATE TABLE table_name_57 (engine VARCHAR, year VARCHAR, chassis VARCHAR, points VARCHAR)
SELECT engine FROM table_name_57 WHERE chassis = "porsche 718" AND points = 0 AND year < 1964
Find the names of females who are friends with Zach
CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR, gender VARCHAR)
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Zach' AND T1.gender = 'female'
Who was David Adams partner on the match played on Clay Surface with a Score in the final of 6–3, 6–7 (5–7) , 7–6 (7–5)?
CREATE TABLE table_name_53 (partner VARCHAR, surface VARCHAR, score_in_the_final VARCHAR)
SELECT partner FROM table_name_53 WHERE surface = "clay" AND score_in_the_final = "6–3, 6–7 (5–7) , 7–6 (7–5)"
Tell me the attendance with a result of l 26–3
CREATE TABLE table_name_12 (attendance VARCHAR, result VARCHAR)
SELECT attendance FROM table_name_12 WHERE result = "l 26–3"
Who had a run 2 of 50.67?
CREATE TABLE table_name_67 (athlete VARCHAR, run_2 VARCHAR)
SELECT athlete FROM table_name_67 WHERE run_2 = 50.67
Which lane has a time less than 49.67, is from Michael Klim and less than 1 rank?
CREATE TABLE table_name_87 (lane INTEGER, rank VARCHAR, time VARCHAR, name VARCHAR)
SELECT MAX(lane) FROM table_name_87 WHERE time < 49.67 AND name = "michael klim" AND rank < 1
What is 2004, when 2009 is "A"?
CREATE TABLE table_name_28 (Id VARCHAR)
SELECT 2004 FROM table_name_28 WHERE 2009 = "a"
What is the number of production codes for episode #73?
CREATE TABLE table_2623498_5 (prod_code VARCHAR, episode__number VARCHAR)
SELECT COUNT(prod_code) FROM table_2623498_5 WHERE episode__number = "73"
What is the date (to) associated wiht a traction type of electric and the Yarmouth Light and Power Company system?
CREATE TABLE table_name_38 (date__to_ VARCHAR, traction_type VARCHAR, name_of_system VARCHAR)
SELECT date__to_ FROM table_name_38 WHERE traction_type = "electric" AND name_of_system = "yarmouth light and power company"
How many people in the sorata municipality when the quiabaya municipality has 33?
CREATE TABLE table_2509202_2 (sorata_municipality VARCHAR, quiabaya_municipality VARCHAR)
SELECT sorata_municipality FROM table_2509202_2 WHERE quiabaya_municipality = "33"
What is Score, when Outcome is Winner, and when Opponent is Angela Haynes?
CREATE TABLE table_name_69 (score VARCHAR, outcome VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_69 WHERE outcome = "winner" AND opponent = "angela haynes"
How many games has number 61 played in?
CREATE TABLE table_name_29 (games INTEGER, number VARCHAR)
SELECT MIN(games) AS ↑ FROM table_name_29 WHERE number = 61
What is the lowest Division, when Goals is less than 5, and when Season is "2002-03"?
CREATE TABLE table_name_15 (division INTEGER, goals VARCHAR, season VARCHAR)
SELECT MIN(division) FROM table_name_15 WHERE goals < 5 AND season = "2002-03"
What is the catalog with the region of the United States?
CREATE TABLE table_name_98 (catalog VARCHAR, region VARCHAR)
SELECT catalog FROM table_name_98 WHERE region = "united states"
What is the population density for 2012 for Gatunda sector?
CREATE TABLE table_12496904_1 (population_density_2012__km_2__ INTEGER, sector VARCHAR)
SELECT MIN(population_density_2012__km_2__) FROM table_12496904_1 WHERE sector = "Gatunda"
What is Inaba's maximum score?
CREATE TABLE table_18595004_7 (inaba INTEGER)
SELECT MAX(inaba) FROM table_18595004_7
What is the series with a North American release date on 2013-09-03?
CREATE TABLE table_name_12 (series VARCHAR, north_american_release_date VARCHAR)
SELECT series FROM table_name_12 WHERE north_american_release_date = "2013-09-03"
Name the date for 6-2 record
CREATE TABLE table_21094951_1 (date VARCHAR, record VARCHAR)
SELECT date FROM table_21094951_1 WHERE record = "6-2"
What is the NTFA Div 1 team that has 15 wins and less than 1 draw?
CREATE TABLE table_name_30 (ntfa_div_1 VARCHAR, draws VARCHAR, wins VARCHAR)
SELECT ntfa_div_1 FROM table_name_30 WHERE draws < 1 AND wins = 15
How many points were there when there more than 6 losses and less than 14 matches?
CREATE TABLE table_name_16 (points VARCHAR, lost VARCHAR, match VARCHAR)
SELECT COUNT(points) FROM table_name_16 WHERE lost > 6 AND match < 14
Name the category for 2nd melon music awards
CREATE TABLE table_name_7 (category VARCHAR, award VARCHAR)
SELECT category FROM table_name_7 WHERE award = "2nd melon music awards"
What college, junior, or club team did defence player Rory Fitzpatrick play for?
CREATE TABLE table_name_81 (college_junior_club_team VARCHAR, position VARCHAR, player VARCHAR)
SELECT college_junior_club_team FROM table_name_81 WHERE position = "defence" AND player = "rory fitzpatrick"
On what date(s) was the winning team Prema Powerteam?
CREATE TABLE table_25213146_2 (date VARCHAR, winning_team VARCHAR)
SELECT date FROM table_25213146_2 WHERE winning_team = "Prema Powerteam"
Where was the security pacific senior classic?
CREATE TABLE table_name_74 (location VARCHAR, tournament VARCHAR)
SELECT location FROM table_name_74 WHERE tournament = "security pacific senior classic"
Who was in the 4th district in 1924?
CREATE TABLE table_14123513_5 (year VARCHAR)
SELECT 4 AS th_district FROM table_14123513_5 WHERE year = 1924
List the pictorals from issues when lindsey roeper was the cover model.
CREATE TABLE table_1566852_8 (pictorials VARCHAR, cover_model VARCHAR)
SELECT pictorials FROM table_1566852_8 WHERE cover_model = "Lindsey Roeper"
how many schools exist in total?
CREATE TABLE department (school_code VARCHAR)
SELECT COUNT(DISTINCT school_code) FROM department
Name the southern lakota for híŋhaŋna
CREATE TABLE table_1499774_5 (southern_lakota VARCHAR, yankton_yanktonai VARCHAR)
SELECT southern_lakota FROM table_1499774_5 WHERE yankton_yanktonai = "híŋhaŋna"
When did Hawthorn play at home?
CREATE TABLE table_name_27 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_27 WHERE home_team = "hawthorn"
Which Competition has a Year of 1993?
CREATE TABLE table_name_30 (competition VARCHAR, year VARCHAR)
SELECT competition FROM table_name_30 WHERE year = 1993
What was the total city area for vehari city with a serial number bigger than 36?
CREATE TABLE table_name_1 (city_area_km_2__ VARCHAR, headquartered_city VARCHAR, serial_no VARCHAR)
SELECT COUNT(city_area_km_2__) FROM table_name_1 WHERE headquartered_city = "vehari city" AND serial_no > 36
What is the name of the race where Stirling Moss was the winning driver?
CREATE TABLE table_name_13 (race_name VARCHAR, winning_driver VARCHAR)
SELECT race_name FROM table_name_13 WHERE winning_driver = "stirling moss"
Which LEMA/SUBLEMA has a Ch of Senators of 2?
CREATE TABLE table_name_4 (lema_sublema VARCHAR, ch_of_senators VARCHAR)
SELECT lema_sublema FROM table_name_4 WHERE ch_of_senators = "2"
Leading Scorer that has a Goal smaller than 23, and a League of football league division 3, and a Year of 1997–98 is who?
CREATE TABLE table_name_24 (leading_scorer VARCHAR, year VARCHAR, goals VARCHAR, league VARCHAR)
SELECT leading_scorer FROM table_name_24 WHERE goals < 23 AND league = "football league division 3" AND year = "1997–98"
What was the final score on Saturday, May 25?
CREATE TABLE table_24776075_2 (final_score VARCHAR, date VARCHAR)
SELECT final_score FROM table_24776075_2 WHERE date = "Saturday, May 25"
What is the Hangul when the Hanja is 西, 徐?
CREATE TABLE table_name_66 (hangul VARCHAR, hanja VARCHAR)
SELECT hangul FROM table_name_66 WHERE hanja = "西, 徐"
WHAT IS THE HIGHEST VIEWERS WITH AN EPISODE LESS THAN 15 AND SHARE LAGER THAN 7?
CREATE TABLE table_name_9 (viewers__millions_ INTEGER, episode_number VARCHAR, share VARCHAR)
SELECT MAX(viewers__millions_) FROM table_name_9 WHERE episode_number < 15 AND share > 7
What is the least amount of points made by Herrnstein?
CREATE TABLE table_14342210_6 (points INTEGER, player VARCHAR)
SELECT MIN(points) FROM table_14342210_6 WHERE player = "Herrnstein"
What Score has a time of 14:10?
CREATE TABLE table_name_43 (score VARCHAR, time VARCHAR)
SELECT score FROM table_name_43 WHERE time = "14:10"
The tko (doctor stoppage) method was used in a loss against which opponent?
CREATE TABLE table_name_11 (opponent VARCHAR, method VARCHAR, res VARCHAR)
SELECT opponent FROM table_name_11 WHERE method = "tko (doctor stoppage)" AND res = "loss"
which is the number of the season episode whose premiere was in january 3, 1997?
CREATE TABLE table_228973_3 (no_in_season VARCHAR, original_air_date VARCHAR)
SELECT COUNT(no_in_season) FROM table_228973_3 WHERE original_air_date = "January 3, 1997"
What is the lowest round number that Ian Forbes was picked in the draft?
CREATE TABLE table_name_43 (round INTEGER, player VARCHAR)
SELECT MIN(round) FROM table_name_43 WHERE player = "ian forbes"
What day did the Raiders score 17?
CREATE TABLE table_name_11 (date VARCHAR, raiders_points VARCHAR)
SELECT date FROM table_name_11 WHERE raiders_points = 17
What is the First Pref Votes for the % FPv of 0.06?
CREATE TABLE table_name_23 (first_pref_votes VARCHAR, _percentage_fpv VARCHAR)
SELECT first_pref_votes FROM table_name_23 WHERE _percentage_fpv = "0.06"
How many positions drafted players from Washington?
CREATE TABLE table_16729063_1 (position VARCHAR, college VARCHAR)
SELECT COUNT(position) FROM table_16729063_1 WHERE college = "Washington"
What song is done by Terence Trent D'Arby?
CREATE TABLE table_name_24 (song VARCHAR, artist VARCHAR)
SELECT song FROM table_name_24 WHERE artist = "terence trent d'arby"
How many season did the team lost in round 1 with a GP of 64?
CREATE TABLE table_2233872_1 (COUNt VARCHAR, gp VARCHAR, result VARCHAR)
SELECT COUNt AS season FROM table_2233872_1 WHERE gp = 64 AND result = "lost in round 1"
What Inclination has Eccentricity of 0.06 +0.06 −0.11?
CREATE TABLE table_name_81 (inclination VARCHAR, eccentricity VARCHAR)
SELECT inclination FROM table_name_81 WHERE eccentricity = "0.06 +0.06 −0.11"
Which position is round 7?
CREATE TABLE table_name_27 (position VARCHAR, round VARCHAR)
SELECT position FROM table_name_27 WHERE round = 7
What is Result, when Date is "2000-05-23"?
CREATE TABLE table_name_57 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_57 WHERE date = "2000-05-23"
What is the population of the country of McDowell?
CREATE TABLE table_22815568_7 (population VARCHAR, county VARCHAR)
SELECT population FROM table_22815568_7 WHERE county = "McDowell"
Which date has 1 as the week?
CREATE TABLE table_name_22 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_22 WHERE week = 1
What is the fewest mintage from Dora de Pédery-Hunt, and the year was before 2002?
CREATE TABLE table_name_93 (mintage INTEGER, artist VARCHAR, year VARCHAR)
SELECT MIN(mintage) FROM table_name_93 WHERE artist = "dora de pédery-hunt" AND year < 2002
What is the outcome of the match against Sylvia Hanika on a hard (i) surface?
CREATE TABLE table_name_75 (outcome VARCHAR, opponent_in_the_final VARCHAR, surface VARCHAR)
SELECT outcome FROM table_name_75 WHERE opponent_in_the_final = "sylvia hanika" AND surface = "hard (i)"
What country won in 1977?
CREATE TABLE table_name_46 (country VARCHAR, year_s__won VARCHAR)
SELECT country FROM table_name_46 WHERE year_s__won = "1977"
Who was the writer that worked with arranger Tarek Akef on a 4:58 song?
CREATE TABLE table_name_20 (writer VARCHAR, arranger VARCHAR, length VARCHAR)
SELECT writer FROM table_name_20 WHERE arranger = "tarek akef" AND length = "4:58"
What was the highest number of people injured at incidents located at Rohtas, Bihar where fewer than 13 were killed?
CREATE TABLE table_name_84 (injured INTEGER, place VARCHAR, killed VARCHAR)
SELECT MAX(injured) FROM table_name_84 WHERE place = "rohtas, bihar" AND killed < 13
Who was the away team in a tie no larger than 16 with forest green rovers at home?
CREATE TABLE table_name_95 (away_team VARCHAR, tie_no VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_95 WHERE tie_no > 16 AND home_team = "forest green rovers"
Who is the leading lady in The Lonely Trail for Joseph Kane?
CREATE TABLE table_name_59 (leading_lady VARCHAR, director VARCHAR, title VARCHAR)
SELECT leading_lady FROM table_name_59 WHERE director = "joseph kane" AND title = "the lonely trail"
What date was the bronze label in vinyl format?
CREATE TABLE table_name_52 (date VARCHAR, label VARCHAR, format VARCHAR)
SELECT date FROM table_name_52 WHERE label = "bronze" AND format = "vinyl"
What was the venue for the dates 7,8,10,11 Feb 1908?
CREATE TABLE table_name_67 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_67 WHERE date = "7,8,10,11 feb 1908"
How may draws did libertad have?
CREATE TABLE table_14889048_2 (draws VARCHAR, team VARCHAR)
SELECT COUNT(draws) FROM table_14889048_2 WHERE team = "Libertad"
What was Domenico Fioravanti's time on lane 5?
CREATE TABLE table_name_66 (time VARCHAR, lane VARCHAR, name VARCHAR)
SELECT time FROM table_name_66 WHERE lane = 5 AND name = "domenico fioravanti"
What is the name of the Count Palatine of the Rhine with a Interregnum began of 2 april 1657 death of ferdinand iii?
CREATE TABLE table_name_65 (count_palatine_of_the_rhine VARCHAR, interregnum_began VARCHAR)
SELECT count_palatine_of_the_rhine FROM table_name_65 WHERE interregnum_began = "2 april 1657 death of ferdinand iii"
How many rounds have a position of C?
CREATE TABLE table_name_95 (round VARCHAR, position VARCHAR)
SELECT COUNT(round) FROM table_name_95 WHERE position = "c"
Which Krypton has Neon of 10?
CREATE TABLE table_name_4 (krypton VARCHAR, neon VARCHAR)
SELECT krypton FROM table_name_4 WHERE neon = "10"
What was the aggregate for Ricky Groves?
CREATE TABLE table_25931938_1 (aggregate INTEGER, celebrity VARCHAR)
SELECT MAX(aggregate) FROM table_25931938_1 WHERE celebrity = "Ricky Groves"
What is the average year having 142 points?
CREATE TABLE table_name_61 (year INTEGER, points VARCHAR)
SELECT AVG(year) FROM table_name_61 WHERE points = 142
Which Game has a Home Team of san francisco, and a Date of april 22?
CREATE TABLE table_name_80 (game VARCHAR, home_team VARCHAR, date VARCHAR)
SELECT game FROM table_name_80 WHERE home_team = "san francisco" AND date = "april 22"
What was Holly Scouler's total votes
CREATE TABLE table_name_62 (total_votes VARCHAR, members VARCHAR)
SELECT total_votes FROM table_name_62 WHERE members = "holly scouler"
Name the total apps for eddie carr
CREATE TABLE table_19730892_1 (total_apps INTEGER, name VARCHAR)
SELECT MAX(total_apps) FROM table_19730892_1 WHERE name = "Eddie Carr"
What was the total games played at the Staples Center?
CREATE TABLE table_name_56 (game INTEGER, location VARCHAR)
SELECT SUM(game) FROM table_name_56 WHERE location = "staples center"
How many times was the viewer target group 0.63?
CREATE TABLE table_2639433_4 (market_share__target_group_14_49_ VARCHAR, viewers__in_millions_target_group_14_49_ VARCHAR)
SELECT COUNT(market_share__target_group_14_49_) FROM table_2639433_4 WHERE viewers__in_millions_target_group_14_49_ = "0.63"
Which position has an Overall smaller than 64, and a Round of 1?
CREATE TABLE table_name_14 (position VARCHAR, overall VARCHAR, round VARCHAR)
SELECT position FROM table_name_14 WHERE overall < 64 AND round = 1
what date did tie number 5 occur?
CREATE TABLE table_name_44 (date VARCHAR, tie_no VARCHAR)
SELECT date FROM table_name_44 WHERE tie_no = "5"
What's the record of Game 56?
CREATE TABLE table_name_37 (record VARCHAR, game VARCHAR)
SELECT record FROM table_name_37 WHERE game = 56
What league did they play in 2001?
CREATE TABLE table_name_39 (league VARCHAR, year VARCHAR)
SELECT league FROM table_name_39 WHERE year = 2001
What is the acronym for the name Malay of Kolej Komuniti Sungai Petani?
CREATE TABLE table_name_34 (acronym VARCHAR, name_in_malay VARCHAR)
SELECT acronym FROM table_name_34 WHERE name_in_malay = "kolej komuniti sungai petani"
What was the lowest attendance by the game that had an away team of Vida?
CREATE TABLE table_name_47 (attendance INTEGER, away VARCHAR)
SELECT MIN(attendance) FROM table_name_47 WHERE away = "vida"
What name was used for nomination for the film with an original title of "The Black Tulip"?
CREATE TABLE table_17155250_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT film_title_used_in_nomination FROM table_17155250_1 WHERE original_title = "The Black Tulip"
List the date for number 1.
CREATE TABLE table_22481967_1 (date VARCHAR, number VARCHAR)
SELECT date FROM table_22481967_1 WHERE number = "1"
What is the FIS Nordic World Ski Championship years when the winter Olympics took place in 1968?
CREATE TABLE table_name_93 (fis_nordic_world_ski_championships VARCHAR, winter_olympics VARCHAR)
SELECT fis_nordic_world_ski_championships FROM table_name_93 WHERE winter_olympics = 1968
What series has a season after 2008, super leg final as the format, and conference v as the conference?
CREATE TABLE table_name_39 (series VARCHAR, conference VARCHAR, season VARCHAR, format VARCHAR)
SELECT series FROM table_name_39 WHERE season > 2008 AND format = "super leg final" AND conference = "conference v"