answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT barrel_twist FROM table_name_33 WHERE stock = "canadian 3rd generation" AND hand_guards = "short ribbed"
Which Barrel twist has a Stock of canadian 3rd generation and a Hand guards of short ribbed?
CREATE TABLE table_name_33 (barrel_twist VARCHAR, stock VARCHAR, hand_guards VARCHAR)
SELECT year__ceremony_ FROM table_22128871_1 WHERE result = "Nominee"
What is every ceremony year for the result of nominee?
CREATE TABLE table_22128871_1 (year__ceremony_ VARCHAR, result VARCHAR)
SELECT MAX(silver_medals) FROM table_1305623_18
What is the most silver medals?
CREATE TABLE table_1305623_18 (silver_medals INTEGER)
SELECT domestic FROM table_name_61 WHERE cargo__tonnes_ = "25 866"
What is the domestic figure when cargo tonnes equal 25 866?
CREATE TABLE table_name_61 (domestic VARCHAR, cargo__tonnes_ VARCHAR)
SELECT uk_broadcast_date FROM table_15211468_3 WHERE presenter = "Buck Henry"
What was the UK broadcast date for the episode presented by Buck Henry?
CREATE TABLE table_15211468_3 (uk_broadcast_date VARCHAR, presenter VARCHAR)
SELECT mountains_classification FROM table_name_81 WHERE team_classification = "quick step"
Which Mountains classification has a Team classification of quick step?
CREATE TABLE table_name_81 (mountains_classification VARCHAR, team_classification VARCHAR)
SELECT venue FROM table_name_62 WHERE score = "18.6 (114) - 21.14 (140)"
Where was the match with a score of 18.6 (114) - 21.14 (140)?
CREATE TABLE table_name_62 (venue VARCHAR, score VARCHAR)
SELECT years FROM table_name_62 WHERE character = "joyce couwenberg"
What years have joyce couwenberg as the character?
CREATE TABLE table_name_62 (years VARCHAR, character VARCHAR)
SELECT MIN(year) FROM table_name_22 WHERE wins > 0 AND points = 42
What is the earliest year associated with 0 wins and 42 points?
CREATE TABLE table_name_22 (year INTEGER, wins VARCHAR, points VARCHAR)
SELECT result FROM table_name_49 WHERE date = "may 14"
What is the result of the game on May 14?
CREATE TABLE table_name_49 (result VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_42 WHERE time = "2:31"
Which Opponent has a Time of 2:31?
CREATE TABLE table_name_42 (opponent VARCHAR, time VARCHAR)
SELECT original_teams FROM table_name_29 WHERE the_biggest_loser = "danni allen"
What were the original teams for the season that was won by Danni Allen?
CREATE TABLE table_name_29 (original_teams VARCHAR, the_biggest_loser VARCHAR)
SELECT player FROM table_name_10 WHERE total > 285 AND to_par = "+14"
Which player has a total bigger than 285 and a to par of +14?
CREATE TABLE table_name_10 (player VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT MAX(place) FROM table_name_92 WHERE year = 2010 AND clean_and_jerk = "224kg"
What was the highest place result in 2010 with a Clean and Jerk weight of 224kg?
CREATE TABLE table_name_92 (place INTEGER, year VARCHAR, clean_and_jerk VARCHAR)
SELECT result FROM table_name_19 WHERE venue = "fort lauderdale, florida"
What is the result in fort lauderdale, florida?
CREATE TABLE table_name_19 (result VARCHAR, venue VARCHAR)
SELECT written_by FROM table_18274425_1 WHERE production_code = "3T7573"
Who were the authors of episode having production code 3t7573?
CREATE TABLE table_18274425_1 (written_by VARCHAR, production_code VARCHAR)
SELECT date FROM table_name_18 WHERE result = "sa by 10 wkts"
When was the match with a result of sa by 10 wkts?
CREATE TABLE table_name_18 (date VARCHAR, result VARCHAR)
SELECT nation FROM table_name_96 WHERE bronze < 7 AND gold > 0 AND total > 7 AND silver < 3
What is the nation when bronze is less than 7, gold is larger than 0, total is larger than 7, and silver is smaller than 3?
CREATE TABLE table_name_96 (nation VARCHAR, silver VARCHAR, total VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT COUNT(*) FROM member WHERE address <> 'Hartford'
How many members are not living in Hartford?
CREATE TABLE member (address VARCHAR)
SELECT high_rebounds FROM table_11961582_4 WHERE game = 24
Who did the most high rebounds in the game 24?
CREATE TABLE table_11961582_4 (high_rebounds VARCHAR, game VARCHAR)
SELECT SUM(stellar_mass___m__) FROM table_name_57 WHERE type = "m0"
What is the total stellar mass of the type m0?
CREATE TABLE table_name_57 (stellar_mass___m__ INTEGER, type VARCHAR)
SELECT location FROM table_name_99 WHERE team = "belshina"
What is the Location for Belshina?
CREATE TABLE table_name_99 (location VARCHAR, team VARCHAR)
SELECT crowd FROM table_name_86 WHERE home_team = "geelong"
Which Crowd has a Home team of geelong?
CREATE TABLE table_name_86 (crowd VARCHAR, home_team VARCHAR)
SELECT status FROM table_name_50 WHERE net_capacity = "1212 mw"
What is the status of the unit with a net capacity of 1212 MW?
CREATE TABLE table_name_50 (status VARCHAR, net_capacity VARCHAR)
SELECT MIN(rnd) FROM table_28490105_1 WHERE gt_winning_car = "Max Angelelli"
What is the earliest round where the gt winning car is max angelelli?
CREATE TABLE table_28490105_1 (rnd INTEGER, gt_winning_car VARCHAR)
SELECT date FROM table_name_76 WHERE score = "6–1, 6–2"
Which Date has a Score of 6–1, 6–2?
CREATE TABLE table_name_76 (date VARCHAR, score VARCHAR)
SELECT stadium FROM table_name_29 WHERE final_score = "26-24"
At what stadium was the game with the final score of 26-24 played?
CREATE TABLE table_name_29 (stadium VARCHAR, final_score VARCHAR)
SELECT english_translation FROM table_13003460_1 WHERE word_number = "219"
Name the english translation of 219
CREATE TABLE table_13003460_1 (english_translation VARCHAR, word_number VARCHAR)
SELECT COUNT(number_of_dances) FROM table_23662272_4 WHERE average = "22.3"
What is the number of dances total number if the average is 22.3?
CREATE TABLE table_23662272_4 (number_of_dances VARCHAR, average VARCHAR)
SELECT MAX(crowd) FROM table_name_35 WHERE away_team = "melbourne"
What is the largest crowd for a Melbourne away team?
CREATE TABLE table_name_35 (crowd INTEGER, away_team VARCHAR)
SELECT high_assists FROM table_name_60 WHERE game < 16
With the game that was less than 16 what was the high assists?
CREATE TABLE table_name_60 (high_assists VARCHAR, game INTEGER)
SELECT high_assists FROM table_15780718_8 WHERE game = 59
Who scored the most assists in game 59?
CREATE TABLE table_15780718_8 (high_assists VARCHAR, game VARCHAR)
SELECT date FROM table_name_6 WHERE game = 65
What is Date, when Game is "65"?
CREATE TABLE table_name_6 (date VARCHAR, game VARCHAR)
SELECT COUNT(year) FROM table_name_21 WHERE venue = "antwerp, belgium" AND result = "2nd"
How many years did the team place 2nd in Antwerp, Belgium?
CREATE TABLE table_name_21 (year VARCHAR, venue VARCHAR, result VARCHAR)
SELECT location FROM table_name_98 WHERE odds = "p + 1" AND score = "1/3"
Where was the match located when the odds were p + 1 and the score was 1/3?
CREATE TABLE table_name_98 (location VARCHAR, odds VARCHAR, score VARCHAR)
SELECT MAX(year) FROM table_name_16 WHERE venue = "lübker golf resort"
What is the latest Year, when the Venue is Lübker Golf Resort?
CREATE TABLE table_name_16 (year INTEGER, venue VARCHAR)
SELECT total FROM table_name_2 WHERE gold = 2 AND nation = "brazil (bra)"
What is the medal total when there is 2 gold medals, and Brazil (BRA) is the nation?
CREATE TABLE table_name_2 (total VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT no_of_barangays FROM table_2402209_1 WHERE area_coordinator = "110.95"
How many Barangays lived in the municipality with area coordinator of 110.95?
CREATE TABLE table_2402209_1 (no_of_barangays VARCHAR, area_coordinator VARCHAR)
SELECT tournament FROM table_name_66 WHERE 2012 = "3r"
What is the Tournament, when 2012 is 3R?
CREATE TABLE table_name_66 (tournament VARCHAR)
SELECT street_address FROM table_name_2 WHERE floors = 48
The building with 48 floors has an address in Las Vegas of what?
CREATE TABLE table_name_2 (street_address VARCHAR, floors VARCHAR)
SELECT name FROM table_name_98 WHERE overall < 268 AND round = 1
What name has an overall less than 268, and 1 as the round?
CREATE TABLE table_name_98 (name VARCHAR, overall VARCHAR, round VARCHAR)
SELECT model FROM table_name_6 WHERE number_of_cpus = "1–10" AND performance__mips_ = "49–447"
Which Model has a Number of CPUs of 1–10, and a Performance (MIPS) of 49–447?
CREATE TABLE table_name_6 (model VARCHAR, number_of_cpus VARCHAR, performance__mips_ VARCHAR)
SELECT centerfold_model FROM table_name_72 WHERE interview_subject = "o.j. simpson"
Who was the Centerfold model when O.J. Simpson was the Interview Subject?
CREATE TABLE table_name_72 (centerfold_model VARCHAR, interview_subject VARCHAR)
SELECT MAX(enrollment) FROM table_1974782_1 WHERE institution = "Babson College"
What's Babson College's enrollment?
CREATE TABLE table_1974782_1 (enrollment INTEGER, institution VARCHAR)
SELECT COUNT(date) FROM table_19789597_5 WHERE score = "L 63-77"
Name the total number of date for l 63-77
CREATE TABLE table_19789597_5 (date VARCHAR, score VARCHAR)
SELECT SUM(played) FROM table_name_4 WHERE lost > 4 AND team = "américa" AND points < 5
Which Played has a Lost larger than 4, and a Team of américa, and Points smaller than 5?
CREATE TABLE table_name_4 (played INTEGER, points VARCHAR, lost VARCHAR, team VARCHAR)
SELECT to_par FROM table_name_26 WHERE score = 70 - 68 - 74 - 70 = 282
What was the TO par for the player who scored 70-68-74-70=282?
CREATE TABLE table_name_26 (to_par VARCHAR, score VARCHAR)
SELECT engine FROM table_22915134_2 WHERE example = "Shinya Nakano's Kawasaki Ninja ZX-RR"
When shinya nakano's kawasaki ninja zx-rr is the example what is the engine type?
CREATE TABLE table_22915134_2 (engine VARCHAR, example VARCHAR)
SELECT COUNT(candidates) FROM table_name_71 WHERE _percentage_of_vote = 0 AND election = 1999 AND seats_won > 0
How many candidates had 0 percent of the vote in 1999?
CREATE TABLE table_name_71 (candidates VARCHAR, seats_won VARCHAR, _percentage_of_vote VARCHAR, election VARCHAR)
SELECT candidates FROM table_1431467_4 WHERE incumbent = "D. Wyatt Aiken"
Who were all candidate when incumbent was D. Wyatt Aiken?
CREATE TABLE table_1431467_4 (candidates VARCHAR, incumbent VARCHAR)
SELECT title FROM table_name_83 WHERE format = "2-cd" AND story__number = "026"
Available in 2-CD format, what is the title of story number 026?
CREATE TABLE table_name_83 (title VARCHAR, format VARCHAR, story__number VARCHAR)
SELECT MIN(game) FROM table_name_25 WHERE location = "the summit"
What game number was the first game played at the Summit this season?
CREATE TABLE table_name_25 (game INTEGER, location VARCHAR)
SELECT COUNT(total) FROM table_name_33 WHERE associate_professors > 4 AND lecturers = 5 AND professors < 40
What is the total in the case when there are more than 4 associate professors, 5 lecturers and fewer professors than 40?
CREATE TABLE table_name_33 (total VARCHAR, professors VARCHAR, associate_professors VARCHAR, lecturers VARCHAR)
SELECT MIN(silver) FROM table_name_83 WHERE bronze < 0
What is the least amount of silver when there is less than 0 bronze?
CREATE TABLE table_name_83 (silver INTEGER, bronze INTEGER)
SELECT rank FROM table_name_96 WHERE bronze < 7 AND nation = "norway"
Where does Norway rank in total medals among countries with fewer than 7 bronzes?
CREATE TABLE table_name_96 (rank VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT cell_mobile_number FROM students WHERE first_name = 'timmothy' AND last_name = 'ward'
What is the mobile phone number of the student named Timmothy Ward ?
CREATE TABLE students (cell_mobile_number VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT film_title FROM table_name_68 WHERE director = "lu"
Name the film that Lu directed.
CREATE TABLE table_name_68 (film_title VARCHAR, director VARCHAR)
SELECT original_air_date FROM table_13336122_5 WHERE written_by = "Vanessa Reisen"
what is the original air date for the episoe written by vanessa reisen?
CREATE TABLE table_13336122_5 (original_air_date VARCHAR, written_by VARCHAR)
SELECT COUNT(poor_law_union) FROM table_30121096_1 WHERE area__acres__ = 262 AND civil_parish = "Drinagh"
How many poor law unions have an area of 262 acres and is in drinagh civil parish?
CREATE TABLE table_30121096_1 (poor_law_union VARCHAR, area__acres__ VARCHAR, civil_parish VARCHAR)
SELECT date FROM table_name_32 WHERE loss = "willis (0–1)"
What was the date of the game that had a loss of Willis (0–1)?
CREATE TABLE table_name_32 (date VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_4 WHERE date = "november 11, 2001"
Who was the opponent on November 11, 2001?
CREATE TABLE table_name_4 (opponent VARCHAR, date VARCHAR)
SELECT matches FROM table_name_11 WHERE team = "gold coast"
Name the matches for gold coast
CREATE TABLE table_name_11 (matches VARCHAR, team VARCHAR)
SELECT film FROM table_name_55 WHERE year = 1970
What film was in 1970?
CREATE TABLE table_name_55 (film VARCHAR, year VARCHAR)
SELECT away_team AS score FROM table_name_68 WHERE venue = "lake oval"
Who was the away team at Lake Oval?
CREATE TABLE table_name_68 (away_team VARCHAR, venue VARCHAR)
SELECT AVG(frequency_mhz) FROM table_name_55 WHERE erp_w > 250
What is the frequency MHz of the ERP W's greater than 250?
CREATE TABLE table_name_55 (frequency_mhz INTEGER, erp_w INTEGER)
SELECT record FROM table_name_44 WHERE decision = "prusek" AND date = "november 26"
What is the record for November 26, with the decision made by Prusek?
CREATE TABLE table_name_44 (record VARCHAR, decision VARCHAR, date VARCHAR)
SELECT date FROM table_23486853_3 WHERE opponent = "Florida Panthers"
What date did they play the Florida Panthers?
CREATE TABLE table_23486853_3 (date VARCHAR, opponent VARCHAR)
SELECT AVG(attendance) FROM table_name_68 WHERE home_team = "arlesey town"
What is the average attendance of the match with arlesey town as the home team?
CREATE TABLE table_name_68 (attendance INTEGER, home_team VARCHAR)
SELECT score FROM table_name_87 WHERE tie_no = "13"
What was the score when the tie no was 13?
CREATE TABLE table_name_87 (score VARCHAR, tie_no VARCHAR)
SELECT SUM(year) FROM table_name_43 WHERE award = "ozone awards"
How many years had ozone awards?
CREATE TABLE table_name_43 (year INTEGER, award VARCHAR)
SELECT MAX(silver) FROM table_name_78 WHERE total > 40 AND gold < 25 AND bronze > 15
What is the most silver medals won among nations that won more than 40 medals total, less than 25 of them being gold, and more than 15 of them being bronze?
CREATE TABLE table_name_78 (silver INTEGER, bronze VARCHAR, total VARCHAR, gold VARCHAR)
SELECT position FROM table_name_83 WHERE nationality = "brazil" AND goals = 27 AND name = "neca"
WHAT IS THE POSITION FOR BRAZIL, WITH 27 GOALS, AND FOR NECA?
CREATE TABLE table_name_83 (position VARCHAR, name VARCHAR, nationality VARCHAR, goals VARCHAR)
SELECT t1.customer_name, t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = "Delivered"
Find the customer name and date of the orders that have the status "Delivered".
CREATE TABLE customer_orders (order_date VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)
SELECT high_points FROM table_23274514_5 WHERE score = "L 109–112 (OT)"
Name the high points for l 109–112 (ot)
CREATE TABLE table_23274514_5 (high_points VARCHAR, score VARCHAR)
SELECT height FROM table_11677760_31 WHERE college = "Ohio State"
What is the height of the player that went to ohio state?
CREATE TABLE table_11677760_31 (height VARCHAR, college VARCHAR)
SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE "%gmail.com%"
How many customers have email that contains "gmail.com"?
CREATE TABLE CUSTOMER (Email VARCHAR)
SELECT title__english_ FROM table_1481865_1 WHERE title__original_ = "Die Qual der Wahl"
What is the English title when the original title is Die Qual Der Wahl?
CREATE TABLE table_1481865_1 (title__english_ VARCHAR, title__original_ VARCHAR)
SELECT COUNT(original_air_date) FROM table_15472061_1 WHERE no_in_season = "10/11"
Name the number of original air date for when the number in season is 10/11
CREATE TABLE table_15472061_1 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT champion FROM table_name_57 WHERE runner_up = "atlético wanderers"
Who was the champion when atlético wanderers was the runner-up?
CREATE TABLE table_name_57 (champion VARCHAR, runner_up VARCHAR)
SELECT losing_bonus FROM table_14058433_3 WHERE points = "24"
What is the losing bonus when the points are 24?
CREATE TABLE table_14058433_3 (losing_bonus VARCHAR, points VARCHAR)
SELECT away_team AS score FROM table_name_7 WHERE away_team = "south melbourne"
What was South Melbourne's away team score?
CREATE TABLE table_name_7 (away_team VARCHAR)
SELECT LOCATION FROM performance GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1
Show the most common location of performances.
CREATE TABLE performance (LOCATION VARCHAR)
SELECT directed_by FROM table_29152820_1 WHERE written_by = "Eli Attie" AND production_code = "2T5018"
Who directed the episode that is written by Eli Attie and production code is 2t5018?
CREATE TABLE table_29152820_1 (directed_by VARCHAR, written_by VARCHAR, production_code VARCHAR)
SELECT 2001 FROM table_name_12 WHERE 1999 = "2r" AND 1992 = "3r"
What is 2001, when 1999 is "2R", and when 1992 is "3R"?
CREATE TABLE table_name_12 (Id VARCHAR)
SELECT MIN(episode_number) FROM table_name_97 WHERE air_date = "8 june 2008"
What is the earliest episode aired on 8 June 2008?
CREATE TABLE table_name_97 (episode_number INTEGER, air_date VARCHAR)
SELECT result FROM table_name_52 WHERE week > 5 AND opponent = "st. louis rams"
What is the result of the game after week 5 against the st. louis rams?
CREATE TABLE table_name_52 (result VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT population__2009_estimate_ FROM table_name_11 WHERE largest_city = "manaus"
What is the 2009 estimate population of the region with Manaus as the largest city?
CREATE TABLE table_name_11 (population__2009_estimate_ VARCHAR, largest_city VARCHAR)
SELECT home_team AS score FROM table_name_57 WHERE venue = "lake oval"
What is the home team of lake oval's score?
CREATE TABLE table_name_57 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(barony) FROM table_30120556_1 WHERE townland = "Ballyvadona"
How many barony's appear when Ballyvadona is the townland.
CREATE TABLE table_30120556_1 (barony VARCHAR, townland VARCHAR)
SELECT aggregate FROM table_25931938_1 WHERE dances = 7 AND known_for = "Singer"
What was the aggregate for the celebrity who was known for being a singer and had 7 dances?
CREATE TABLE table_25931938_1 (aggregate VARCHAR, dances VARCHAR, known_for VARCHAR)
SELECT type FROM table_262527_1 WHERE institution = "Ottawa University"
what type of institution is ottawa university?
CREATE TABLE table_262527_1 (type VARCHAR, institution VARCHAR)
SELECT engine_s_ FROM table_name_41 WHERE year = 1991
What engine was made in 1991?
CREATE TABLE table_name_41 (engine_s_ VARCHAR, year VARCHAR)
SELECT genre FROM table_name_4 WHERE type = "3d" AND developer_s_ = "valve corporation"
What type of 3D game did Valve Corporation release?
CREATE TABLE table_name_4 (genre VARCHAR, type VARCHAR, developer_s_ VARCHAR)
SELECT COUNT(television) FROM table_23718905_6 WHERE matchup_results = "Iowa State 14, Minnesota 13"
How many different items appear in the television column when the results where Iowa State 14, Minnesota 13?
CREATE TABLE table_23718905_6 (television VARCHAR, matchup_results VARCHAR)
SELECT Name FROM company WHERE Industry = "Banking" OR Industry = "Retailing"
Show the names of companies in the banking or retailing industry?
CREATE TABLE company (Name VARCHAR, Industry VARCHAR)
SELECT COUNT(hole) FROM table_name_79 WHERE player = "vijay singh"
How many holes does Player Vijay Singh have?
CREATE TABLE table_name_79 (hole VARCHAR, player VARCHAR)
SELECT SUM(goals) FROM table_name_78 WHERE national_team = "england" AND apps < 6 AND year = "2012"
How many Goals have a National team of england, and Apps smaller than 6, and a Year of 2012?
CREATE TABLE table_name_78 (goals INTEGER, year VARCHAR, national_team VARCHAR, apps VARCHAR)
SELECT Running AS time FROM table_name_46 WHERE channel = "bbc four" AND date = "23 march 2008"
What is the running time of the transmission on bbc four channels on 23 March 2008?
CREATE TABLE table_name_46 (Running VARCHAR, channel VARCHAR, date VARCHAR)
SELECT record FROM table_name_89 WHERE boxscore = "w2" AND loss = "kline (2–3)"
Which record has a Boxscore of w2, and a Loss of kline (2–3)?
CREATE TABLE table_name_89 (record VARCHAR, boxscore VARCHAR, loss VARCHAR)
SELECT MIN(pick__number) FROM table_10812938_4
What is the earliest pick listed in the table.
CREATE TABLE table_10812938_4 (pick__number INTEGER)