answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT city FROM table_name_62 WHERE home_arena = "target center"
Which city includes the Target Center arena?
CREATE TABLE table_name_62 (city VARCHAR, home_arena VARCHAR)
SELECT date FROM table_name_62 WHERE record = "51-14"
What is the date that the record was 51-14?
CREATE TABLE table_name_62 (date VARCHAR, record VARCHAR)
SELECT thickness FROM table_name_3 WHERE weight = "3.50grams"
Which Thickness has a Weight of 3.50grams?
CREATE TABLE table_name_3 (thickness VARCHAR, weight VARCHAR)
SELECT MIN(wins) FROM table_name_41 WHERE against = 1314
What is the least amount of wins when against is 1314?
CREATE TABLE table_name_41 (wins INTEGER, against VARCHAR)
SELECT original_air_date FROM table_25548505_1 WHERE us_viewers__millions_ = "5.30"
What was the original air date of the episode that had 5.30 million U.S. viewers?
CREATE TABLE table_25548505_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT ordained_bishop FROM table_1656555_1 WHERE ordained_priest = "December 1838"
What date was the person ordained as a priest in December 1838 ordained as a bishop?
CREATE TABLE table_1656555_1 (ordained_bishop VARCHAR, ordained_priest VARCHAR)
SELECT district FROM table_name_41 WHERE party = "republican" AND results = "retired to run for governor democratic gain"
What district is the incumbent Republican and the incumbent retired to run for governor democratic gain?
CREATE TABLE table_name_41 (district VARCHAR, party VARCHAR, results VARCHAR)
SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.payment_method_code = 'Credit Card' GROUP BY T1.customer_id HAVING COUNT(*) > 2
Show the names of customers who use Credit Card payment method and have more than 2 orders.
CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR, payment_method_code VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR)
SELECT MIN(population) FROM table_12340907_1 WHERE police_officers = 94
If the number of police officers is 94, what is the lowest population number?
CREATE TABLE table_12340907_1 (population INTEGER, police_officers VARCHAR)
SELECT games FROM table_name_64 WHERE name = "manuel felix diaz"
Which Games had a Name of manuel felix diaz?
CREATE TABLE table_name_64 (games VARCHAR, name VARCHAR)
SELECT SUM(1 AS st_prize___) AS $__ FROM table_name_19 WHERE date = "may 21"
what is the 1st prize for may 21
CREATE TABLE table_name_19 (date VARCHAR)
SELECT womens_singles FROM table_12104319_1 WHERE womens_doubles = "Naoko Fukuman Kurumi Yonao"
What are the womens singles of naoko fukuman kurumi yonao?
CREATE TABLE table_12104319_1 (womens_singles VARCHAR, womens_doubles VARCHAR)
SELECT MIN(lowest) FROM table_14003020_5 WHERE highest = 2363
what is the minimum lowest with highest being 2363
CREATE TABLE table_14003020_5 (lowest INTEGER, highest VARCHAR)
SELECT team FROM table_name_87 WHERE college = "stanford"
What is the Team for Stanford College?
CREATE TABLE table_name_87 (team VARCHAR, college VARCHAR)
SELECT MAX(finishes) FROM table_23385853_20
What is the finishes maximum number?
CREATE TABLE table_23385853_20 (finishes INTEGER)
SELECT position FROM table_name_3 WHERE points > 7 AND series = "toyota racing series"
What is Position, when Points is greater than 7, and when Series is Toyota Racing Series?
CREATE TABLE table_name_3 (position VARCHAR, points VARCHAR, series VARCHAR)
SELECT AVG(bronze) FROM table_name_75 WHERE gold > 0 AND nation = "greece" AND silver < 0
what is the average bronze when gold is more than 0, the nation is greece and silver is less than 0?
CREATE TABLE table_name_75 (bronze INTEGER, silver VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT code_name FROM table_name_88 WHERE function__figure_ = "space pilot"
What is the Code Name for the Space Pilot Function (figure)?
CREATE TABLE table_name_88 (code_name VARCHAR, function__figure_ VARCHAR)
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE amount > 3000
Find the the name of the customers who have a loan with amount more than 3000.
CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR)
SELECT year FROM table_name_42 WHERE status = "nominated" AND film = "the last samurai"
What year was The Last Samurai nominated?
CREATE TABLE table_name_42 (year VARCHAR, status VARCHAR, film VARCHAR)
SELECT MIN(wins) FROM table_name_78 WHERE position = 7 AND scored > 14
What was the lowest number of wins for the team that scored more than 14 points and had a position of 7?
CREATE TABLE table_name_78 (wins INTEGER, position VARCHAR, scored VARCHAR)
SELECT batting_partners FROM table_name_96 WHERE fielding_team = "india" AND season = "1997"
Who were the batting partners that played for India in 1997?
CREATE TABLE table_name_96 (batting_partners VARCHAR, fielding_team VARCHAR, season VARCHAR)
SELECT old_bulgarian_names FROM table_15275060_1 WHERE BULGARIAN_NAME(Transliteration) = Yanuari
Name the old bulgarian names for yanuari
CREATE TABLE table_15275060_1 (old_bulgarian_names VARCHAR, Yanuari VARCHAR, Transliteration VARCHAR)
SELECT drawn FROM table_name_2 WHERE points_for = "782"
Which Drawn has Points for of 782?
CREATE TABLE table_name_2 (drawn VARCHAR, points_for VARCHAR)
SELECT artist FROM table_name_81 WHERE year < 2002 AND mintage = "41,828"
What artist had a mintage of 41,828 before year 2002?
CREATE TABLE table_name_81 (artist VARCHAR, year VARCHAR, mintage VARCHAR)
SELECT cpu FROM table_11703336_1 WHERE ram = "28 KB of ram" AND display_size = "128×64 pixels 21×8 characters"
what is the cpu for the calculator with 28 kb of ram and display size 128×64 pixels 21×8 characters?
CREATE TABLE table_11703336_1 (cpu VARCHAR, ram VARCHAR, display_size VARCHAR)
SELECT driver FROM table_name_9 WHERE laps = 248
Which driver had 248 laps?
CREATE TABLE table_name_9 (driver VARCHAR, laps VARCHAR)
SELECT line_judge FROM table_name_48 WHERE referee = "scott green"
Who was the line judge at the game where Scott Green was referee?
CREATE TABLE table_name_48 (line_judge VARCHAR, referee VARCHAR)
SELECT 1 AS st_round FROM table_name_56 WHERE team_1 = "stade lavallois (d2)"
what is the 1st round when team 1 is stade lavallois (d2)?
CREATE TABLE table_name_56 (team_1 VARCHAR)
SELECT SUM(drawn) FROM table_name_83 WHERE lost = 7
How many drawns have 7 for the lost?
CREATE TABLE table_name_83 (drawn INTEGER, lost VARCHAR)
SELECT DISTINCT Range FROM mountain ORDER BY Prominence DESC LIMIT 3
List the distinct ranges of the mountains with the top 3 prominence.
CREATE TABLE mountain (Range VARCHAR, Prominence VARCHAR)
SELECT fri_27_aug FROM table_26986076_1 WHERE tues_24_aug = "20' 49.46 108.709mph"
If the time on Tues Aug 24 is 20' 49.46 108.709mph, what is the time on Fri Aug 27?
CREATE TABLE table_26986076_1 (fri_27_aug VARCHAR, tues_24_aug VARCHAR)
SELECT home FROM table_name_69 WHERE date = "november 2, 2007"
Who was the home team for the game played on November 2, 2007?
CREATE TABLE table_name_69 (home VARCHAR, date VARCHAR)
SELECT date FROM table_15346009_1 WHERE winner = "Bernhard Langer (2)"
What day did Bernhard Langer (2) win?
CREATE TABLE table_15346009_1 (date VARCHAR, winner VARCHAR)
SELECT AVG(fatalities) FROM table_name_84 WHERE epicenter = "damghan"
What is the average number of deaths for earthquakes centered in Damghan?
CREATE TABLE table_name_84 (fatalities INTEGER, epicenter VARCHAR)
SELECT status FROM table_name_19 WHERE against = 24
What is the status of the match with 24 against?
CREATE TABLE table_name_19 (status VARCHAR, against VARCHAR)
SELECT COUNT(*) FROM event
How many events are there?
CREATE TABLE event (Id VARCHAR)
SELECT date FROM table_name_15 WHERE record = "36–11–7"
Which Date has a Record of 36–11–7?
CREATE TABLE table_name_15 (date VARCHAR, record VARCHAR)
SELECT AVG(points) FROM table_name_68 WHERE drawn < 0
What is the average points when the drawn is less than 0?
CREATE TABLE table_name_68 (points INTEGER, drawn INTEGER)
SELECT MIN(average_score) FROM table_name_12 WHERE number = 2
What is the lowest average for number 2?
CREATE TABLE table_name_12 (average_score INTEGER, number VARCHAR)
SELECT COUNT(science) FROM table_2534578_1 WHERE mathematics = "98.02"
How many years did the school have a mathetmatics score of 98.02?
CREATE TABLE table_2534578_1 (science VARCHAR, mathematics VARCHAR)
SELECT driver FROM table_name_68 WHERE laps < 84 AND points > 9 AND team = "rocketsports racing"
Which Driver has less than 84 laps, more than 9 points and is on Rocketsports Racing Team?
CREATE TABLE table_name_68 (driver VARCHAR, team VARCHAR, laps VARCHAR, points VARCHAR)
SELECT l2_cache FROM table_name_87 WHERE multi_1 = "13.5x"
What is the L2 cache with a 13.5x multi 1?
CREATE TABLE table_name_87 (l2_cache VARCHAR, multi_1 VARCHAR)
SELECT location_attendance FROM table_17080868_8 WHERE game = 54
54 is the game where location attendance are.
CREATE TABLE table_17080868_8 (location_attendance VARCHAR, game VARCHAR)
SELECT 2009 FROM table_name_55 WHERE 2011 = "grand slam tournaments"
What is the 2009 value in the 2011 Grand Slam Tournaments?
CREATE TABLE table_name_55 (Id VARCHAR)
SELECT class_aAAA FROM table_14630796_1 WHERE class_a = "Menard"
Name the class aaaa for menard
CREATE TABLE table_14630796_1 (class_aAAA VARCHAR, class_a VARCHAR)
SELECT top_goalscorer FROM table_2429942_2 WHERE season = "2010-11"
Who is the top goalscorer for the season 2010-11?
CREATE TABLE table_2429942_2 (top_goalscorer VARCHAR, season VARCHAR)
SELECT exercise FROM table_27512025_1 WHERE equipment = "Heart rate monitor, water and towel"
What is the exercise when the equipment is heart rate monitor, water and towel?
CREATE TABLE table_27512025_1 (exercise VARCHAR, equipment VARCHAR)
SELECT team FROM table_27712180_7 WHERE date = "December 18"
Name the team for december 18
CREATE TABLE table_27712180_7 (team VARCHAR, date VARCHAR)
SELECT MIN(start) FROM table_name_93 WHERE span = "1990-2005" AND conv < 2
In 1990-2005 what is the lowest Start with Convs smaller than 2?
CREATE TABLE table_name_93 (start INTEGER, span VARCHAR, conv VARCHAR)
SELECT COUNT(outcome) FROM table_2201541_3 WHERE partner = "Paul McNamee"
How many different outcomes did the final with Paul McNamee as a partner have?
CREATE TABLE table_2201541_3 (outcome VARCHAR, partner VARCHAR)
SELECT nfl_team FROM table_name_23 WHERE college = "toledo"
What is the NFL team for Toledo?
CREATE TABLE table_name_23 (nfl_team VARCHAR, college VARCHAR)
SELECT SUM(silver) FROM table_name_30 WHERE nation = "japan" AND gold > 1
How many silvers for japan (1 gold)?
CREATE TABLE table_name_30 (silver INTEGER, nation VARCHAR, gold VARCHAR)
SELECT COUNT(built_year) FROM table_23614702_1 WHERE tons___lton__ = 1130
In how many different years was the warship that weights 1130 tons built?
CREATE TABLE table_23614702_1 (built_year VARCHAR, tons___lton__ VARCHAR)
SELECT MAX(top_25) FROM table_name_28 WHERE events > 2 AND wins < 0
What is his highest number of top 25s when eh played over 2 events and under 0 wins?
CREATE TABLE table_name_28 (top_25 INTEGER, events VARCHAR, wins VARCHAR)
SELECT years FROM table_name_20 WHERE state = "iowa" AND lifespan = "1880–1942"
What years did the Representative from Iowa with a lifespan of 1880–1942 serve?
CREATE TABLE table_name_20 (years VARCHAR, state VARCHAR, lifespan VARCHAR)
SELECT date FROM table_name_72 WHERE opponent = "indianapolis colts"
When was there a game against the Indianapolis colts?
CREATE TABLE table_name_72 (date VARCHAR, opponent VARCHAR)
SELECT MAX(black_caribbean_population) FROM table_19149550_7 WHERE other_black_population = 2243
What is the black caribbean population when the other black population is 2243?
CREATE TABLE table_19149550_7 (black_caribbean_population INTEGER, other_black_population VARCHAR)
SELECT best_male_mc FROM table_22546460_4 WHERE best_male_lyricist = "Best Album"
Who was the Best Male MC if Best Album won the Best Male Lyricist?
CREATE TABLE table_22546460_4 (best_male_mc VARCHAR, best_male_lyricist VARCHAR)
SELECT tie_no FROM table_name_47 WHERE home_team = "enfield"
what is enfield's tie number?
CREATE TABLE table_name_47 (tie_no VARCHAR, home_team VARCHAR)
SELECT college FROM table_name_70 WHERE overall < 243 AND name = "tony green"
What college has an overall less than 243, and tony green as the name?
CREATE TABLE table_name_70 (college VARCHAR, overall VARCHAR, name VARCHAR)
SELECT week FROM table_name_66 WHERE finalist = "carlos moyá (5)"
What is the Week, when the Finalist is Carlos Moyá (5)?
CREATE TABLE table_name_66 (week VARCHAR, finalist VARCHAR)
SELECT names FROM table_name_98 WHERE class = "glencar"
What is the name of the locomotive with a Glencar class?
CREATE TABLE table_name_98 (names VARCHAR, class VARCHAR)
SELECT romanised_name FROM table_2263674_1 WHERE portfolio = "Secretary for Health, Welfare and Food"
What's the romanised name of the official who was Secretary for health, welfare and food?
CREATE TABLE table_2263674_1 (romanised_name VARCHAR, portfolio VARCHAR)
SELECT gsr_nos FROM table_name_50 WHERE date_made = "1883"
What was the GSR number on the date 1883?
CREATE TABLE table_name_50 (gsr_nos VARCHAR, date_made VARCHAR)
SELECT character FROM table_11210576_4 WHERE fate = "Deceased: Knife Wound"
what's the character with fate being deceased: knife wound
CREATE TABLE table_11210576_4 (character VARCHAR, fate VARCHAR)
SELECT label FROM table_name_61 WHERE country = "united kingdom" AND date = "22 september 2008" AND catalogue_number_s_ = "eredv711"
Which Label has a Country of united kingdom, a Date of 22 september 2008, and a Catalogue number(s) of eredv711?
CREATE TABLE table_name_61 (label VARCHAR, catalogue_number_s_ VARCHAR, country VARCHAR, date VARCHAR)
SELECT blocks FROM table_19722233_5 WHERE player = "Debbie Black"
how many times did debbie black block
CREATE TABLE table_19722233_5 (blocks VARCHAR, player VARCHAR)
SELECT part_4 FROM table_1745843_2 WHERE part_2 = "*lauk"
For part 2 *lauk, what is listed for part 4?
CREATE TABLE table_1745843_2 (part_4 VARCHAR, part_2 VARCHAR)
SELECT MAX(position) FROM table_name_51 WHERE goals_for = 52 AND goals_against > 70
Which Position has Goals For of 52, and Goals Against larger than 70?
CREATE TABLE table_name_51 (position INTEGER, goals_for VARCHAR, goals_against VARCHAR)
SELECT country FROM table_name_19 WHERE year_s__won = "1988"
Which country won in 1988?
CREATE TABLE table_name_19 (country VARCHAR, year_s__won VARCHAR)
SELECT high_rebounds FROM table_name_29 WHERE date = "april 14"
What was the high rebounds from the date of April 14?
CREATE TABLE table_name_29 (high_rebounds VARCHAR, date VARCHAR)
SELECT COUNT(l_100km_extra_urban) FROM table_name_52 WHERE mpg_uk_combined > 19.2 AND l_100km_combined < 5.7 AND fuel_type = "diesel" AND mpg_us_combined < 50
What's the total L/100km extra urban fueled by diesel, when the mpg-UK combines is more than 19.2, mpg-US is less than 50 and the L/100m combined is less than 5.7?
CREATE TABLE table_name_52 (l_100km_extra_urban VARCHAR, mpg_us_combined VARCHAR, fuel_type VARCHAR, mpg_uk_combined VARCHAR, l_100km_combined VARCHAR)
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'female'
Find the female friends of Alice.
CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR, gender VARCHAR)
SELECT date FROM table_name_5 WHERE goal = 5
Tell me the date of goal 5
CREATE TABLE table_name_5 (date VARCHAR, goal VARCHAR)
SELECT catalog_entry_name, capacity FROM Catalog_Contents WHERE price_in_dollars > 700
Find the name and capacity of products with price greater than 700 (in USD).
CREATE TABLE Catalog_Contents (catalog_entry_name VARCHAR, capacity VARCHAR, price_in_dollars INTEGER)
SELECT attendance FROM table_name_40 WHERE opponent = "oakland raiders"
What is the Attendance at the game against the Oakland Raiders?
CREATE TABLE table_name_40 (attendance VARCHAR, opponent VARCHAR)
SELECT COUNT(*) FROM EVENTS WHERE NOT event_id IN (SELECT event_id FROM Participants_in_Events)
How many events did not have any participants?
CREATE TABLE EVENTS (event_id VARCHAR); CREATE TABLE Participants_in_Events (event_id VARCHAR)
SELECT campus FROM campuses WHERE YEAR = 1958
Find all the campuses opened in 1958.
CREATE TABLE campuses (campus VARCHAR, YEAR VARCHAR)
SELECT venue FROM table_name_79 WHERE partnerships = "shoaib malik / misbah-ul-haq"
What venue did the parntership of shoaib malik / misbah-ul-haq occur?
CREATE TABLE table_name_79 (venue VARCHAR, partnerships VARCHAR)
SELECT 1990 AS _91 FROM table_name_34 WHERE average = 1.035
Which 1990-91 has an average number of 1.035?
CREATE TABLE table_name_34 (average VARCHAR)
SELECT lead FROM table_name_62 WHERE third = "hans frauenlob"
Which Lead has Hans Frauenlob as a Third?
CREATE TABLE table_name_62 (lead VARCHAR, third VARCHAR)
SELECT no_4 FROM table_name_24 WHERE no_10 = "harper" AND no_5 = "abigail"
Who is number 4 when Harper is number 10 and Abigail is number 5?
CREATE TABLE table_name_24 (no_4 VARCHAR, no_10 VARCHAR, no_5 VARCHAR)
SELECT episode_title FROM table_15211468_1 WHERE episode_no = "#1.4"
What is the episode title for the episode numbered #1.4?
CREATE TABLE table_15211468_1 (episode_title VARCHAR, episode_no VARCHAR)
SELECT championship__titles_finals_ FROM table_2201541_3 WHERE year = 1981
What championship was played in 1981?
CREATE TABLE table_2201541_3 (championship__titles_finals_ VARCHAR, year VARCHAR)
SELECT retitled_as_same FROM table_name_99 WHERE last_aired > 1982 AND show = "we got it made"
Which Retitled as/Same has a Last Aired larger than 1982, and a Show of we got it made?
CREATE TABLE table_name_99 (retitled_as_same VARCHAR, last_aired VARCHAR, show VARCHAR)
SELECT attendance FROM table_name_40 WHERE date = "october 31"
How many people attended the game on October 31?
CREATE TABLE table_name_40 (attendance VARCHAR, date VARCHAR)
SELECT MAX(red_list) FROM table_name_70 WHERE family = "muridae" AND species_authority = "microtus pinetorum (le conte, 1830)"
What is the highest Red List for the muridae family and species Authority of microtus pinetorum (le conte, 1830)?
CREATE TABLE table_name_70 (red_list INTEGER, family VARCHAR, species_authority VARCHAR)
SELECT winning_score FROM table_name_62 WHERE tournament = "german masters"
What was Olazabal's winning score in the German Masters?
CREATE TABLE table_name_62 (winning_score VARCHAR, tournament VARCHAR)
SELECT COUNT(lane) FROM table_name_88 WHERE time = "2:01.51" AND rank < 4
How many lanes had a rank smaller than 4 and a time of 2:01.51?
CREATE TABLE table_name_88 (lane VARCHAR, time VARCHAR, rank VARCHAR)
SELECT AVG(gold) FROM table_name_47 WHERE nation = "sweden" AND silver > 1
Count the average Gold which has a Nation of sweden, and a Silver larger than 1?
CREATE TABLE table_name_47 (gold INTEGER, nation VARCHAR, silver VARCHAR)
SELECT story_by FROM table_13755296_1 WHERE directed_by = "Dan Attias"
Who wrote the sorry of the episode directed by Dan Attias?
CREATE TABLE table_13755296_1 (story_by VARCHAR, directed_by VARCHAR)
SELECT region_1__can_ FROM table_240936_2 WHERE region_1__us_ = "January 16, 2007"
What is the region 1 (Canada) date associated with a region 1 (US) date of January 16, 2007?
CREATE TABLE table_240936_2 (region_1__can_ VARCHAR, region_1__us_ VARCHAR)
SELECT tournament FROM table_name_38 WHERE 1988 = "a" AND 1999 = "2r"
What tournament was an A 1988, and a 2R 1999?
CREATE TABLE table_name_38 (tournament VARCHAR)
SELECT time_retired FROM table_name_51 WHERE laps = 80 AND grid > 2
What's the Time/Retired of 80 laps with a Grid larger than 2?
CREATE TABLE table_name_51 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT winner FROM table_name_11 WHERE third_place = "fernando meligeni"
Who was the winner when the third place was fernando meligeni?
CREATE TABLE table_name_11 (winner VARCHAR, third_place VARCHAR)
SELECT programming FROM table_name_53 WHERE channel > 51.2 AND psip_short_name = "kyaz-5"
Which Programming has a Channel greater than 51.2 and a PSIP Short Name of kyaz-5?
CREATE TABLE table_name_53 (programming VARCHAR, channel VARCHAR, psip_short_name VARCHAR)
SELECT MIN(gold) FROM table_name_88 WHERE total < 8 AND bronze < 1 AND silver < 1
How many Gold medals did the Nation with less than 8 Total medals including 1 Bronze and 0 Silver receive?
CREATE TABLE table_name_88 (gold INTEGER, silver VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT goals FROM table_name_47 WHERE caps = 2 AND club = "degerfors if"
How many goals for the player with 2 caps at degerfors if?
CREATE TABLE table_name_47 (goals VARCHAR, caps VARCHAR, club VARCHAR)
SELECT club FROM table_name_92 WHERE drawn = "0" AND lost = "0"
Name the club for drawn of 0 and lost of 0
CREATE TABLE table_name_92 (club VARCHAR, drawn VARCHAR, lost VARCHAR)