question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What was the result of the Tennessee 2 district election?
CREATE TABLE table_1342270_42 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1342270_42 WHERE district = "Tennessee 2"
In what year was the church located in florø built?
CREATE TABLE table_name_29 (year_built VARCHAR, location_of_the_church VARCHAR)
SELECT year_built FROM table_name_29 WHERE location_of_the_church = "florø"
What is the average year with a 1:42.85 time?
CREATE TABLE table_name_81 (year INTEGER, time VARCHAR)
SELECT AVG(year) FROM table_name_81 WHERE time = "1:42.85"
In what year was the total finals at 10?
CREATE TABLE table_14286908_1 (year_of_last_win VARCHAR, total_finals VARCHAR)
SELECT year_of_last_win FROM table_14286908_1 WHERE total_finals = 10
What is the transfer fee for Jimmy Gibson?
CREATE TABLE table_name_22 (transfer_fee VARCHAR, name VARCHAR)
SELECT transfer_fee FROM table_name_22 WHERE name = "jimmy gibson"
What is the average grid number for cars that retired due to engine failure before 18 laps?
CREATE TABLE table_name_69 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_69 WHERE time_retired = "engine" AND laps < 18
What was Martin Geiger's rank?
CREATE TABLE table_name_95 (rank VARCHAR, rider VARCHAR)
SELECT rank FROM table_name_95 WHERE rider = "martin geiger"
Name the constructor for vii kanonloppet
CREATE TABLE table_name_22 (constructor VARCHAR, race_name VARCHAR)
SELECT constructor FROM table_name_22 WHERE race_name = "vii kanonloppet"
Name the title with presentation of credentials of april 24, 1884
CREATE TABLE table_name_23 (title VARCHAR, presentation_of_credentials VARCHAR)
SELECT title FROM table_name_23 WHERE presentation_of_credentials = "april 24, 1884"
What is the district of Paraswada with none reserved?
CREATE TABLE table_name_64 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
SELECT district FROM table_name_64 WHERE reserved_for___sc___st__none_ = "none" AND name = "paraswada"
What is the sum of tonnage with a time at 00:10 and less than 42 casualties?
CREATE TABLE table_name_30 (tonnage__grt_ INTEGER, time VARCHAR, casualties VARCHAR)
SELECT SUM(tonnage__grt_) FROM table_name_30 WHERE time = "00:10" AND casualties < 42
Which network has Marty Reid as host and lap-by-lap broadcaster?
CREATE TABLE table_10716893_3 (network VARCHAR, lap_by_lap VARCHAR, host VARCHAR)
SELECT network FROM table_10716893_3 WHERE lap_by_lap = "Marty Reid" AND host = "Marty Reid"
What school did the rb drafted attend?
CREATE TABLE table_24540893_6 (school VARCHAR, position VARCHAR)
SELECT school FROM table_24540893_6 WHERE position = "RB"
What is the English title for the official number 22 episode?
CREATE TABLE table_16425614_3 (english_title VARCHAR, official__number VARCHAR)
SELECT english_title FROM table_16425614_3 WHERE official__number = 22
What is the 2007 value with a 2r in 2012 and 1r in 2002?
CREATE TABLE table_name_53 (Id VARCHAR)
SELECT 2007 FROM table_name_53 WHERE 2012 = "2r" AND 2002 = "1r"
What is the Pinyin for 依兰县?
CREATE TABLE table_name_53 (hanyu_pinyin VARCHAR, hanzi VARCHAR)
SELECT hanyu_pinyin FROM table_name_53 WHERE hanzi = "依兰县"
What was the result on the wild card?
CREATE TABLE table_name_74 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_74 WHERE week = "wild card"
What is the genre of the game from 2006?
CREATE TABLE table_name_72 (genre VARCHAR, year VARCHAR)
SELECT genre FROM table_name_72 WHERE year = "2006"
which representative is from willowick
CREATE TABLE table_29486189_4 (representative VARCHAR, residence VARCHAR)
SELECT representative FROM table_29486189_4 WHERE residence = "Willowick"
Name the number of record for united center 18,838
CREATE TABLE table_22669044_8 (record VARCHAR, location_attendance VARCHAR)
SELECT COUNT(record) FROM table_22669044_8 WHERE location_attendance = "United Center 18,838"
Which Outcome has a Score of 3–6 2–6?
CREATE TABLE table_name_90 (outcome VARCHAR, score VARCHAR)
SELECT outcome FROM table_name_90 WHERE score = "3–6 2–6"
What is the average number of laps with an accident time/retired, aprilia manufacturer and a grid of 27?
CREATE TABLE table_name_84 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, manufacturer VARCHAR)
SELECT AVG(laps) FROM table_name_84 WHERE time_retired = "accident" AND manufacturer = "aprilia" AND grid = 27
Who was the away team when the home team was Lincoln City?
CREATE TABLE table_name_53 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_53 WHERE home_team = "lincoln city"
Which candidate won 88 votes in Queens in 1921?
CREATE TABLE table_1108394_47 (queens VARCHAR)
SELECT 1921 FROM table_1108394_47 WHERE queens = "88"
Find the distinct Advisor of students who have treasurer votes in the spring election cycle.
CREATE TABLE STUDENT (Advisor VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Treasurer_Vote VARCHAR, Election_Cycle VARCHAR)
SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote WHERE T2.Election_Cycle = "Spring"
What is the sum of bronzes having silvers over 5 and golds under 20?
CREATE TABLE table_name_43 (bronze INTEGER, silver VARCHAR, gold VARCHAR)
SELECT SUM(bronze) FROM table_name_43 WHERE silver > 5 AND gold < 20
What's the Ball Diameter with the Culture of Olmec?
CREATE TABLE table_name_54 (ball_diameter VARCHAR, culture VARCHAR)
SELECT ball_diameter FROM table_name_54 WHERE culture = "olmec"
What is the home team score with Away team Richmond?
CREATE TABLE table_name_20 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_20 WHERE away_team = "richmond"
Which population is the greatest, has a density of 20.3, and an area (km²) larger than 50,350?
CREATE TABLE table_name_1 (population INTEGER, density VARCHAR, area__km²_ VARCHAR)
SELECT MAX(population) FROM table_name_1 WHERE density = 20.3 AND area__km²_ > 50 OFFSET 350
who co-wrote Season 2, Episode 3?
CREATE TABLE table_17901155_3 (written_by VARCHAR, no_in_season VARCHAR)
SELECT written_by FROM table_17901155_3 WHERE no_in_season = 3
Show the players from college UCLA.
CREATE TABLE match_season (Player VARCHAR, College VARCHAR)
SELECT Player FROM match_season WHERE College = "UCLA"
Which school did player Rodney Purvis belong to?
CREATE TABLE table_name_32 (school VARCHAR, player VARCHAR)
SELECT school FROM table_name_32 WHERE player = "rodney purvis"
List the names of all distinct wines ordered by price.
CREATE TABLE WINE (Name VARCHAR, price VARCHAR)
SELECT DISTINCT Name FROM WINE ORDER BY price
Which aorist has imperfect form of bijasmo / bejasmo / besmo?
CREATE TABLE table_27298240_26 (aorist VARCHAR, imperfect VARCHAR)
SELECT aorist FROM table_27298240_26 WHERE imperfect = "bijasmo / bejasmo / besmo"
What was the date of the home game against Accrington?
CREATE TABLE table_name_65 (date VARCHAR, team VARCHAR, venue VARCHAR)
SELECT date FROM table_name_65 WHERE team = "accrington" AND venue = "home"
how many times is the name Derek Smith when the round is higher than 3?
CREATE TABLE table_name_63 (overall VARCHAR, name VARCHAR, round VARCHAR)
SELECT COUNT(overall) FROM table_name_63 WHERE name = "derek smith" AND round > 3
How many fast laps are in 6 races with 30 points in the World Series by Nissan?
CREATE TABLE table_name_28 (fast_laps VARCHAR, points VARCHAR, series VARCHAR, races VARCHAR)
SELECT fast_laps FROM table_name_28 WHERE series = "world series by nissan" AND races = "6" AND points = "30"
WHAT IS THE 2011 PERFORMANCE WITH A 2007 OF Q3?
CREATE TABLE table_name_90 (Id VARCHAR)
SELECT 2011 FROM table_name_90 WHERE 2007 = "q3"
How many points did the away team of st kilda score?
CREATE TABLE table_name_84 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_84 WHERE away_team = "st kilda"
What is Average Year, when Round is R128 (First Round)?
CREATE TABLE table_name_46 (year INTEGER, round VARCHAR)
SELECT AVG(year) FROM table_name_46 WHERE round = "r128 (first round)"
Which Sales Total has a Chart of oricon monthly albums chart?
CREATE TABLE table_name_30 (sales_total VARCHAR, chart VARCHAR)
SELECT sales_total FROM table_name_30 WHERE chart = "oricon monthly albums chart"
What is the date of the away game when the team has a league position of 9th?
CREATE TABLE table_name_34 (date VARCHAR, h___a VARCHAR, league_position VARCHAR)
SELECT date FROM table_name_34 WHERE h___a = "a" AND league_position = "9th"
What is the categorization in 2010 when it was A in 2008 and 20011 while being QF in 2012?
CREATE TABLE table_name_10 (Id VARCHAR)
SELECT 2010 FROM table_name_10 WHERE 2008 = "a" AND 2011 = "a" AND 2012 = "qf"
Goals for of 288, and Points smaller than 85 what is the highest goals against?
CREATE TABLE table_name_35 (goalsagainst INTEGER, goalsfor VARCHAR, points VARCHAR)
SELECT MAX(goalsagainst) FROM table_name_35 WHERE goalsfor = 288 AND points < 85
What is the total number of goals that has been played less than 38 times?
CREATE TABLE table_name_25 (goals_for VARCHAR, played INTEGER)
SELECT COUNT(goals_for) FROM table_name_25 WHERE played < 38
What are the numbers for lc models built in 2009?
CREATE TABLE table_name_34 (numbers VARCHAR, model VARCHAR, year_built VARCHAR)
SELECT numbers FROM table_name_34 WHERE model = "lc" AND year_built = 2009
What spacecrafts had 22 orbital flights?
CREATE TABLE table_179174_2 (spacecraft VARCHAR, flights VARCHAR)
SELECT spacecraft FROM table_179174_2 WHERE flights = "22 Orbital"
what's the won with club being ammanford rfc
CREATE TABLE table_12828723_3 (won VARCHAR, club VARCHAR)
SELECT won FROM table_12828723_3 WHERE club = "Ammanford RFC"
Which Interview has a Province of monte cristi and a Swimsuit larger than 7.27
CREATE TABLE table_name_75 (interview INTEGER, province VARCHAR, swimsuit VARCHAR)
SELECT SUM(interview) FROM table_name_75 WHERE province = "monte cristi" AND swimsuit > 7.27
Tell me the prize for belgium
CREATE TABLE table_name_53 (prize VARCHAR, country_region VARCHAR)
SELECT prize FROM table_name_53 WHERE country_region = "belgium"
What number last Runners-up where there when the Last win was 1999 and the Runners-up was bigger than 1?
CREATE TABLE table_name_42 (Last VARCHAR, last_win VARCHAR, runners_up VARCHAR)
SELECT COUNT(Last) AS runners_up FROM table_name_42 WHERE last_win = "1999" AND runners_up > 1
Which Score has an Opponent of @ houston, and a Record of 2-0?
CREATE TABLE table_name_46 (score VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT score FROM table_name_46 WHERE opponent = "@ houston" AND record = "2-0"
Which Silver has a Total of 1, and a Rank of 12?
CREATE TABLE table_name_37 (silver INTEGER, total VARCHAR, rank VARCHAR)
SELECT MIN(silver) FROM table_name_37 WHERE total = 1 AND rank = "12"
when Sanchez ( esp ) w 5-0 were the bout 6, which were the class?
CREATE TABLE table_19398910_4 (class VARCHAR, bout_6 VARCHAR)
SELECT class FROM table_19398910_4 WHERE bout_6 = "Sanchez ( ESP ) W 5-0"
Name the broadcast date for run timke of 25:04
CREATE TABLE table_2102782_1 (broadcast_date VARCHAR, run_time VARCHAR)
SELECT broadcast_date FROM table_2102782_1 WHERE run_time = "25:04"
What is the Total of the Player who won in 1998?
CREATE TABLE table_name_72 (total INTEGER, year_s__won VARCHAR)
SELECT MAX(total) FROM table_name_72 WHERE year_s__won = "1998"
Manager of lyman lamb / marty berghammer is in what league?
CREATE TABLE table_name_59 (league VARCHAR, manager VARCHAR)
SELECT league FROM table_name_59 WHERE manager = "lyman lamb / marty berghammer"
How many FA cups for the player with under 5 champs, 0 league cups, and over 3 total?
CREATE TABLE table_name_13 (fa_cup INTEGER, total VARCHAR, championship VARCHAR, league_cup VARCHAR)
SELECT SUM(fa_cup) FROM table_name_13 WHERE championship < 5 AND league_cup = 0 AND total > 3
On the episode that had a run time of 24:57, how many million viewers were there?
CREATE TABLE table_name_5 (viewers__in_millions_ VARCHAR, run_time VARCHAR)
SELECT viewers__in_millions_ FROM table_name_5 WHERE run_time = "24:57"
When was the earliest year that Guillermo Vilas was the runner-up?
CREATE TABLE table_name_9 (year INTEGER, runner_up VARCHAR)
SELECT MIN(year) FROM table_name_9 WHERE runner_up = "guillermo vilas"
Who is the R1st that has 36 RYds?
CREATE TABLE table_name_49 (r1st VARCHAR, ryds VARCHAR)
SELECT r1st FROM table_name_49 WHERE ryds = "36"
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 south FROM table_name_24 WHERE west = "ev lindau" AND east = "svg burgkirchen"
Show the different countries and the number of members from each.
CREATE TABLE member (Country VARCHAR)
SELECT Country, COUNT(*) FROM member GROUP BY Country
What is the Attendance of the game with a Result of L 20-14?
CREATE TABLE table_name_46 (attendance VARCHAR, result VARCHAR)
SELECT attendance FROM table_name_46 WHERE result = "l 20-14"
Week larger than 6, and a Date of november 22, 1959 had what result?
CREATE TABLE table_name_5 (result VARCHAR, week VARCHAR, date VARCHAR)
SELECT result FROM table_name_5 WHERE week > 6 AND date = "november 22, 1959"
What is the highest series number with 9.17 million US viewers?
CREATE TABLE table_27255755_1 (no_in_series INTEGER, us_viewers__millions_ VARCHAR)
SELECT MAX(no_in_series) FROM table_27255755_1 WHERE us_viewers__millions_ = "9.17"
Which World Rank has a Year smaller than 1977, and a Location of eugene?
CREATE TABLE table_name_81 (world_rank VARCHAR, year VARCHAR, location VARCHAR)
SELECT world_rank FROM table_name_81 WHERE year < 1977 AND location = "eugene"
Which San Jose goals have a San Jose wins smaller than 0?
CREATE TABLE table_name_28 (san_jose_goals INTEGER, san_jose_wins INTEGER)
SELECT MIN(san_jose_goals) FROM table_name_28 WHERE san_jose_wins < 0
who directed the episode written by Shonda Rhimes?
CREATE TABLE table_23492454_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT directed_by FROM table_23492454_1 WHERE written_by = "Shonda Rhimes"
Who is the second on the North America team for which Cathy Overton-Clapham the third?
CREATE TABLE table_name_10 (second VARCHAR, team VARCHAR, third VARCHAR)
SELECT second FROM table_name_10 WHERE team = "north america" AND third = "cathy overton-clapham"
What is the ethernet ports of the u10 appliance?
CREATE TABLE table_name_51 (ethernet_ports VARCHAR, name VARCHAR)
SELECT ethernet_ports FROM table_name_51 WHERE name = "u10"
What is the rank of the rider with time of 1:41.40.55?
CREATE TABLE table_name_24 (rank INTEGER, time VARCHAR)
SELECT SUM(rank) FROM table_name_24 WHERE time = "1:41.40.55"
On what date was a record set in the team pursuit (8 laps) event?
CREATE TABLE table_name_75 (date VARCHAR, event VARCHAR)
SELECT date FROM table_name_75 WHERE event = "team pursuit (8 laps)"
Show the names of members and the dates of performances they attended in descending order of attendance of the performances.
CREATE TABLE performance (Date VARCHAR, Performance_ID VARCHAR, Attendance VARCHAR); CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE member_attendance (Member_ID VARCHAR, Performance_ID VARCHAR)
SELECT T2.Name, T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID ORDER BY T3.Attendance DESC
Name province of 1936 viana do castelo
CREATE TABLE table_221375_1 (province_of_1936 VARCHAR, district VARCHAR)
SELECT province_of_1936 FROM table_221375_1 WHERE district = "Viana do Castelo"
Which rider had a points score equal to 10?
CREATE TABLE table_name_60 (rider VARCHAR, points VARCHAR)
SELECT rider FROM table_name_60 WHERE points = 10
How many results did the GT1 Winning Team No. 50 Larbre Compétition on the Algarve circuit?
CREATE TABLE table_24865763_2 (results VARCHAR, circuit VARCHAR, gt1_winning_team VARCHAR)
SELECT COUNT(results) FROM table_24865763_2 WHERE circuit = "Algarve" AND gt1_winning_team = "No. 50 Larbre Compétition"
Which films participated in the 61st Berlin international film festival?
CREATE TABLE table_29644931_1 (participants_recipients VARCHAR, film_festival VARCHAR)
SELECT participants_recipients FROM table_29644931_1 WHERE film_festival = "61st Berlin International film_festival"
Which cyclist is from Australia?
CREATE TABLE table_name_90 (cyclist VARCHAR, nation VARCHAR)
SELECT cyclist FROM table_name_90 WHERE nation = "australia"
How many u.s. viewers (millions) have 5 as the season #?
CREATE TABLE table_22570439_1 (us_viewers__millions_ VARCHAR, season__number VARCHAR)
SELECT us_viewers__millions_ FROM table_22570439_1 WHERE season__number = 5
What was the highest attendance week 12?
CREATE TABLE table_name_64 (attendance INTEGER, week VARCHAR)
SELECT MAX(attendance) FROM table_name_64 WHERE week = 12
What is the average age of all the dogs?
CREATE TABLE Dogs (age INTEGER)
SELECT AVG(age) FROM Dogs
What actor plays glen cole?
CREATE TABLE table_name_66 (actor VARCHAR, character VARCHAR)
SELECT actor FROM table_name_66 WHERE character = "glen cole"
What 2011 GDP (PPP) billions of USD does Iraq have?
CREATE TABLE table_2248784_4 (country VARCHAR)
SELECT 2011 AS _gdp__ppp__billions_of_usd FROM table_2248784_4 WHERE country = "Iraq"
what is the number of different channel owners?
CREATE TABLE channel (OWNER VARCHAR)
SELECT COUNT(DISTINCT OWNER) FROM channel
Name the most points for class of 125cc and team of mv agusta with year more than 1957
CREATE TABLE table_name_65 (points INTEGER, year VARCHAR, class VARCHAR, team VARCHAR)
SELECT MAX(points) FROM table_name_65 WHERE class = "125cc" AND team = "mv agusta" AND year > 1957
What is the possible maximum money list rank?
CREATE TABLE table_22838521_3 (money_list_rank INTEGER)
SELECT MAX(money_list_rank) FROM table_22838521_3
what is the collegiate institution in queens
CREATE TABLE table_18159601_1 (collegiate_institution VARCHAR, city VARCHAR)
SELECT collegiate_institution FROM table_18159601_1 WHERE city = "Queens"
What Position does the Player Vince Carter hold?
CREATE TABLE table_name_84 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_84 WHERE player = "vince carter"
What is the number of silver medals of the team with 0 gold, ranked 5, and more than 0 bronze medals?
CREATE TABLE table_name_84 (silver INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT SUM(silver) FROM table_name_84 WHERE gold = 0 AND rank = "5" AND bronze > 0
What capacity opened lessed than 1937 and is located in the region of champagne-ardenne?
CREATE TABLE table_name_95 (capacity VARCHAR, opened VARCHAR, region VARCHAR)
SELECT capacity FROM table_name_95 WHERE opened < 1937 AND region = "champagne-ardenne"
What is the lowest Height (m) on the island of Burray?
CREATE TABLE table_name_22 (height__m_ INTEGER, island VARCHAR)
SELECT MIN(height__m_) FROM table_name_22 WHERE island = "burray"
What episode was first aired in 1976?
CREATE TABLE table_name_85 (episode VARCHAR, first_aired VARCHAR)
SELECT episode FROM table_name_85 WHERE first_aired = "1976"
What team has a porsche 956 b chassis-engine with less than 79 laps?
CREATE TABLE table_name_17 (team VARCHAR, chassis___engine VARCHAR, laps VARCHAR)
SELECT team FROM table_name_17 WHERE chassis___engine = "porsche 956 b" AND laps < 79
What is the average capacity that has switzerland as the country?
CREATE TABLE table_name_19 (capacity INTEGER, country VARCHAR)
SELECT AVG(capacity) FROM table_name_19 WHERE country = "switzerland"
What is the final score in 2007 for the world league in novi sad played against Italy?
CREATE TABLE table_name_31 (final_score VARCHAR, opponent VARCHAR, town VARCHAR, year VARCHAR, competition VARCHAR)
SELECT final_score FROM table_name_31 WHERE year = 2007 AND competition = "world league" AND town = "novi sad" AND opponent = "italy"
What was the attendance during the match that took place after week 11 against the washington redskins?
CREATE TABLE table_name_62 (attendance INTEGER, week VARCHAR, opponent VARCHAR)
SELECT MAX(attendance) FROM table_name_62 WHERE week > 11 AND opponent = "washington redskins"
How many Points have a Name of stephen myler, and Tries smaller than 0?
CREATE TABLE table_name_3 (points INTEGER, name VARCHAR, tries VARCHAR)
SELECT SUM(points) FROM table_name_3 WHERE name = "stephen myler" AND tries < 0
How many Drawn does the team Portuguesa Santista have?
CREATE TABLE table_15352382_1 (drawn VARCHAR, team VARCHAR)
SELECT drawn FROM table_15352382_1 WHERE team = "Portuguesa Santista"
How many kids stay in the rooms reserved by ROY SWEAZY?
CREATE TABLE Reservations (kids VARCHAR, FirstName VARCHAR, LastName VARCHAR)
SELECT kids FROM Reservations WHERE FirstName = "ROY" AND LastName = "SWEAZY"