question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many silvers for the nation with under 6 total and under 0 bronze?
CREATE TABLE table_name_62 (silver VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT COUNT(silver) FROM table_name_62 WHERE total < 6 AND bronze < 0
What is Opponent in The Final, when Date is "1976"?
CREATE TABLE table_name_40 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT opponent_in_the_final FROM table_name_40 WHERE date = 1976
Who has the lead in Norway?
CREATE TABLE table_name_89 (lead VARCHAR, nation VARCHAR)
SELECT lead FROM table_name_89 WHERE nation = "norway"
What is the lowest number of Overs for the Royal Challengers Bangalore?
CREATE TABLE table_name_50 (overs INTEGER, team VARCHAR)
SELECT MIN(overs) FROM table_name_50 WHERE team = "royal challengers bangalore"
What is the average year with 7th (heats) position?
CREATE TABLE table_name_50 (year INTEGER, position VARCHAR)
SELECT AVG(year) FROM table_name_50 WHERE position = "7th (heats)"
When there were 767 points, what was the point difference?
CREATE TABLE table_name_34 (points_difference VARCHAR, points_against VARCHAR)
SELECT points_difference FROM table_name_34 WHERE points_against = "767"
What is the highest week 9 that had a week 6 of 7, a week 10 of greater than 2, a week 7 of 5, and a week 11 less than 2?
CREATE TABLE table_name_13 (wk_9 INTEGER, wk_11 VARCHAR, wk_7 VARCHAR, wk_6 VARCHAR, wk_10 VARCHAR)
SELECT MAX(wk_9) FROM table_name_13 WHERE wk_6 = "7" AND wk_10 > 2 AND wk_7 = "5" AND wk_11 < 2
Which record has a date of January 29?
CREATE TABLE table_name_35 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_35 WHERE date = "january 29"
Which seasons were directed by Nelson McCormick?
CREATE TABLE table_17355933_1 (title VARCHAR, directed_by VARCHAR)
SELECT title FROM table_17355933_1 WHERE directed_by = "Nelson McCormick"
What is Place, when Score is "73-71=144", and when Player is "Scott Simpson"?
CREATE TABLE table_name_66 (place VARCHAR, player VARCHAR, score VARCHAR)
SELECT place FROM table_name_66 WHERE score = 73 - 71 = 144 AND player = "scott simpson"
What's the genre of the song recorded in 1929?
CREATE TABLE table_name_41 (genre VARCHAR, year_recorded VARCHAR)
SELECT genre FROM table_name_41 WHERE year_recorded = "1929"
During which Game 4, did Brett Kenny play Game 2?
CREATE TABLE table_name_52 (game_4 VARCHAR, game_2 VARCHAR)
SELECT game_4 FROM table_name_52 WHERE game_2 = "brett kenny"
How many losses does Abercarn RFC have?
CREATE TABLE table_name_90 (lost VARCHAR, club VARCHAR)
SELECT lost FROM table_name_90 WHERE club = "abercarn rfc"
Who wrote the episode with a production code of 116?
CREATE TABLE table_29087004_2 (written_by VARCHAR, production_code VARCHAR)
SELECT written_by FROM table_29087004_2 WHERE production_code = 116
What was the highest year that Europe/Africa Zone Group I Group B lost?
CREATE TABLE table_name_79 (year INTEGER, competition VARCHAR, result VARCHAR)
SELECT MAX(year) FROM table_name_79 WHERE competition = "europe/africa zone group i group b" AND result = "lost"
What is 1996, when 1992 is "ATP Masters Series"?
CREATE TABLE table_name_29 (Id VARCHAR)
SELECT 1996 FROM table_name_29 WHERE 1992 = "atp masters series"
What is the lowest rank of Citigroup?
CREATE TABLE table_name_67 (rank INTEGER, name VARCHAR)
SELECT MIN(rank) FROM table_name_67 WHERE name = "citigroup"
Find the last name of the staff whose email address contains "wrau".
CREATE TABLE staff (last_name VARCHAR, email_address VARCHAR)
SELECT last_name FROM staff WHERE email_address LIKE "%wrau%"
Name the most rr 1 pts
CREATE TABLE table_21457754_2 (rr1_pts INTEGER)
SELECT MAX(rr1_pts) FROM table_21457754_2
What is the original air date when there were 12.81 million u.s viewers?
CREATE TABLE table_11404452_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT original_air_date FROM table_11404452_1 WHERE us_viewers__millions_ = "12.81"
Was the record of 8-1 (1) a win or a loss?
CREATE TABLE table_name_10 (res VARCHAR, record VARCHAR)
SELECT res FROM table_name_10 WHERE record = "8-1 (1)"
Which position had a pick of 50?
CREATE TABLE table_name_35 (position VARCHAR, pick VARCHAR)
SELECT position FROM table_name_35 WHERE pick = 50
What was the kickoff date for the round value of R4?
CREATE TABLE table_name_23 (kick_off VARCHAR, round VARCHAR)
SELECT kick_off FROM table_name_23 WHERE round = "r4"
What was the score of the 2001 game held at Network Associates Coliseum?
CREATE TABLE table_name_66 (result VARCHAR, year VARCHAR, location VARCHAR)
SELECT result FROM table_name_66 WHERE year = 2001 AND location = "network associates coliseum"
Who is the artist of the rock song?
CREATE TABLE table_name_7 (artist VARCHAR, genre VARCHAR)
SELECT artist FROM table_name_7 WHERE genre = "rock"
How many championships does Pakistan have?
CREATE TABLE table_19487922_2 (championships VARCHAR, country VARCHAR)
SELECT COUNT(championships) FROM table_19487922_2 WHERE country = "Pakistan"
What is the to par for Paul Azinger from the United States after 1986 for a total bigger than 145?
CREATE TABLE table_name_72 (to_par VARCHAR, total VARCHAR, player VARCHAR, country VARCHAR, year_won VARCHAR)
SELECT COUNT(to_par) FROM table_name_72 WHERE country = "united states" AND year_won > 1986 AND player = "paul azinger" AND total > 145
Show all distinct city where branches with at least 100 memberships are located.
CREATE TABLE branch (city VARCHAR, membership_amount VARCHAR)
SELECT DISTINCT city FROM branch WHERE membership_amount >= 100
which train number departs pune at 13:00
CREATE TABLE table_29301050_1 (train_number VARCHAR, departure_pune VARCHAR)
SELECT train_number FROM table_29301050_1 WHERE departure_pune = "13:00"
Which region had the date of November 18, 2002?
CREATE TABLE table_name_41 (region VARCHAR, date VARCHAR)
SELECT region FROM table_name_41 WHERE date = "november 18, 2002"
What stadium is in penrith?
CREATE TABLE table_name_11 (stadium VARCHAR, city VARCHAR)
SELECT stadium FROM table_name_11 WHERE city = "penrith"
In what year of school is the player from Fayetteville, NC?
CREATE TABLE table_name_52 (year VARCHAR, home_town VARCHAR)
SELECT year FROM table_name_52 WHERE home_town = "fayetteville, nc"
What's the record that had an opponent of Krzysztof Soszynski and a time of 4:00?
CREATE TABLE table_name_64 (record VARCHAR, time VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_64 WHERE time = "4:00" AND opponent = "krzysztof soszynski"
Name the total number of rank for tom churchill
CREATE TABLE table_26454128_7 (rank VARCHAR, athlete VARCHAR)
SELECT COUNT(rank) FROM table_26454128_7 WHERE athlete = "Tom Churchill"
When the score was 76-73-67-69=285 what was the To par?
CREATE TABLE table_name_31 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_31 WHERE score = 76 - 73 - 67 - 69 = 285
Which Points have a Draw of 2?
CREATE TABLE table_name_46 (points INTEGER, draw VARCHAR)
SELECT AVG(points) FROM table_name_46 WHERE draw = 2
What is the score of the match with an attendance of 2248?
CREATE TABLE table_name_66 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_66 WHERE attendance = 2248
Which gold has a Bronze of 1, a Rank of 47, and a Nation of spain?
CREATE TABLE table_name_65 (gold VARCHAR, nation VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT gold FROM table_name_65 WHERE bronze = "1" AND rank = "47" AND nation = "spain"
Which gender had a roll of 627?
CREATE TABLE table_name_62 (gender VARCHAR, roll VARCHAR)
SELECT gender FROM table_name_62 WHERE roll = 627
What is the total of played where lost equals 4 and drawn equals 1?
CREATE TABLE table_20760802_1 (played VARCHAR, lost VARCHAR, drawn VARCHAR)
SELECT played FROM table_20760802_1 WHERE lost = "4" AND drawn = "1"
What is the highest rank for Josefin Lillhage?
CREATE TABLE table_name_54 (rank INTEGER, name VARCHAR)
SELECT MAX(rank) FROM table_name_54 WHERE name = "josefin lillhage"
When arthur heinemann is the writer who is the director?
CREATE TABLE table_1854728_2 (directed_by VARCHAR, written_by VARCHAR)
SELECT directed_by FROM table_1854728_2 WHERE written_by = "Arthur Heinemann"
How many silvers have 2 as gold, and a bronze less than 2?
CREATE TABLE table_name_69 (silver INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT SUM(silver) FROM table_name_69 WHERE gold = 2 AND bronze < 2
what round happened at galpharm stadium?
CREATE TABLE table_name_16 (round VARCHAR, venue VARCHAR)
SELECT round FROM table_name_16 WHERE venue = "galpharm stadium"
List the hosts of performances in ascending order of attendance.
CREATE TABLE performance (HOST VARCHAR, Attendance VARCHAR)
SELECT HOST FROM performance ORDER BY Attendance
which episode was Transmitted on wednesday if the episode of "307 vs." was transmitted on friday?
CREATE TABLE table_18173916_8 (wednesday VARCHAR, friday VARCHAR)
SELECT wednesday FROM table_18173916_8 WHERE friday = "307 VS."
What camera has the highest Mpix with an aspect ratio of 2:1, a height less than 1536, and a width smaller than 2048?
CREATE TABLE table_name_51 (mpix INTEGER, width VARCHAR, aspect_ratio VARCHAR, height VARCHAR)
SELECT MAX(mpix) FROM table_name_51 WHERE aspect_ratio = "2:1" AND height < 1536 AND width < 2048
Which term in office has an Electorate of hinkler?
CREATE TABLE table_name_65 (term_in_office VARCHAR, electorate VARCHAR)
SELECT term_in_office FROM table_name_65 WHERE electorate = "hinkler"
Capital of brześć nad bugiem has what population (1931) in 1,000s?
CREATE TABLE table_name_88 (population__1931__in_1 VARCHAR, capital VARCHAR)
SELECT population__1931__in_1, 000 AS s FROM table_name_88 WHERE capital = "brześć nad bugiem"
What is the colonized date for the n/a charter range for appalachian state?
CREATE TABLE table_name_61 (colonized VARCHAR, charter_range VARCHAR, school VARCHAR)
SELECT colonized FROM table_name_61 WHERE charter_range = "n/a" AND school = "appalachian state"
Name the vessel type for dof subsea
CREATE TABLE table_26168687_5 (vessel_type VARCHAR, vessel_operator VARCHAR)
SELECT vessel_type FROM table_26168687_5 WHERE vessel_operator = "DOF Subsea"
What is the date on which a race was run at Halle-Saale-Schleife circuit?
CREATE TABLE table_1140116_6 (date VARCHAR, circuit VARCHAR)
SELECT date FROM table_1140116_6 WHERE circuit = "Halle-Saale-Schleife"
Which week held a tournament in Rome?
CREATE TABLE table_name_49 (week VARCHAR, tournament VARCHAR)
SELECT week FROM table_name_49 WHERE tournament = "rome"
How many laps were there with #9 grid?
CREATE TABLE table_name_44 (laps VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_44 WHERE grid = 9
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 model FROM table_name_6 WHERE number_of_cpus = "1–10" AND performance__mips_ = "49–447"
Which US Cham Rank is the lowest one that has a Next Highest Spender of national assn of realtors, and a Year smaller than 2012?
CREATE TABLE table_name_94 (us_cham_rank INTEGER, next_highest_spender VARCHAR, year VARCHAR)
SELECT MIN(us_cham_rank) FROM table_name_94 WHERE next_highest_spender = "national assn of realtors" AND year < 2012
What is 你 朋友's English title?
CREATE TABLE table_name_11 (english_title VARCHAR, chinese__simplified_ VARCHAR)
SELECT english_title FROM table_name_11 WHERE chinese__simplified_ = "你 朋友"
How many were in the crowd when the score was 97-80?
CREATE TABLE table_name_48 (crowd VARCHAR, score VARCHAR)
SELECT COUNT(crowd) FROM table_name_48 WHERE score = "97-80"
Which class corresponds to more than 2 points, wins greater than 0, and a year earlier than 1973?
CREATE TABLE table_name_47 (class VARCHAR, wins VARCHAR, points VARCHAR, year VARCHAR)
SELECT class FROM table_name_47 WHERE points > 2 AND year < 1973 AND wins > 0
How many prefectures have a population density of 16 people/kilometers squared?
CREATE TABLE table_221398_1 (pop_density___km²_ VARCHAR, number_in_map VARCHAR)
SELECT COUNT(pop_density___km²_) FROM table_221398_1 WHERE number_in_map = "16"
When hittite old kingdom , minoan eruption is the ubaid period in mesopotamia what is the copper age?
CREATE TABLE table_23537091_1 (copper_age VARCHAR, ubaid_period_in_mesopotamia VARCHAR)
SELECT copper_age FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = "Hittite Old Kingdom , Minoan eruption"
What was the rating for Brisbane the week that Adelaide had 94000?
CREATE TABLE table_24291077_8 (brisbane INTEGER, adelaide VARCHAR)
SELECT MIN(brisbane) FROM table_24291077_8 WHERE adelaide = 94000
Which Nominee has a Category of outstanding musical?
CREATE TABLE table_name_88 (nominee VARCHAR, category VARCHAR)
SELECT nominee FROM table_name_88 WHERE category = "outstanding musical"
What source showed Brian Moran at 19%?
CREATE TABLE table_21535453_1 (source VARCHAR, brian_moran VARCHAR)
SELECT source FROM table_21535453_1 WHERE brian_moran = "19%"
What was the HT for the game at Stadio Luigi Ferraris?
CREATE TABLE table_name_31 (ht VARCHAR, venue VARCHAR)
SELECT ht FROM table_name_31 WHERE venue = "stadio luigi ferraris"
If the points were 0, what were the tries for?
CREATE TABLE table_name_65 (tries_for VARCHAR, points_for VARCHAR)
SELECT tries_for FROM table_name_65 WHERE points_for = "0"
When the team is penske and they start under 9, what's the average finish time?
CREATE TABLE table_name_80 (finish INTEGER, team VARCHAR, start VARCHAR)
SELECT AVG(finish) FROM table_name_80 WHERE team = "penske" AND start < 9
When racing epsom is in division two how many seasons are there?
CREATE TABLE table_24575253_4 (season VARCHAR, division_two VARCHAR)
SELECT COUNT(season) FROM table_24575253_4 WHERE division_two = "Racing Epsom"
Which Casualties have a Location of kunduz, and Circumstances of suicide?
CREATE TABLE table_name_24 (casualties VARCHAR, location VARCHAR, circumstances VARCHAR)
SELECT casualties FROM table_name_24 WHERE location = "kunduz" AND circumstances = "suicide"
how many times is lost less than 7 and the position 2?
CREATE TABLE table_name_10 (goals_for VARCHAR, lost VARCHAR, position VARCHAR)
SELECT COUNT(goals_for) FROM table_name_10 WHERE lost < 7 AND position = 2
What is the selection show in 1969 when the Semi final/heat host shows there was no semi final/heat.
CREATE TABLE table_name_86 (selection_show VARCHAR, semi_final_heat_host VARCHAR, year_s_ VARCHAR)
SELECT selection_show FROM table_name_86 WHERE semi_final_heat_host = "no semi final/heat" AND year_s_ = "1969"
In what tournament did Cipolla face Sergio Roitman?
CREATE TABLE table_name_5 (tournament VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_name_5 WHERE opponent = "sergio roitman"
What is the name of chapter 8 of season 4?
CREATE TABLE table_26429771_1 (title VARCHAR, no_in_season VARCHAR)
SELECT title FROM table_26429771_1 WHERE no_in_season = 8
Who was the runner-up, when the champion was Björn Borg after 1978?
CREATE TABLE table_name_66 (runner_up VARCHAR, champion VARCHAR, year VARCHAR)
SELECT runner_up FROM table_name_66 WHERE champion = "björn borg" AND year > 1978
What is the tie number for Middlesbrough?
CREATE TABLE table_name_46 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_46 WHERE home_team = "middlesbrough"
What are the highest cost, lowest cost and average cost of procedures?
CREATE TABLE procedures (cost INTEGER)
SELECT MAX(cost), MIN(cost), AVG(cost) FROM procedures
What is the average Apps of indonesia with Goals smaller than 1000?
CREATE TABLE table_name_64 (apps INTEGER, country VARCHAR, goals VARCHAR)
SELECT AVG(apps) FROM table_name_64 WHERE country = "indonesia" AND goals < 1000
Select the name and price of the cheapest product.
CREATE TABLE Products (name VARCHAR, price VARCHAR)
SELECT name, price FROM Products ORDER BY price LIMIT 1
Date of 8 july 1994 involves which performer 1?
CREATE TABLE table_name_31 (performer_1 VARCHAR, date VARCHAR)
SELECT performer_1 FROM table_name_31 WHERE date = "8 july 1994"
What is the time/retired for grid 23?
CREATE TABLE table_name_88 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_88 WHERE grid = 23
Which date was the Memorial Tournament held on, when Payne Stewart was runner-up?
CREATE TABLE table_name_40 (date VARCHAR, tournament VARCHAR, runner_s__up VARCHAR)
SELECT date FROM table_name_40 WHERE tournament = "memorial tournament" AND runner_s__up = "payne stewart"
Who is the conductor on the Multisonic label?
CREATE TABLE table_24521345_1 (conductor VARCHAR, record_label VARCHAR)
SELECT conductor FROM table_24521345_1 WHERE record_label = "Multisonic"
What circuit is the Vi Rhein-Pokalrennen race in?
CREATE TABLE table_1140090_6 (circuit VARCHAR, race_name VARCHAR)
SELECT circuit FROM table_1140090_6 WHERE race_name = "VI Rhein-Pokalrennen"
What are the first names of customers who have not rented any films after '2005-08-23 02:06:01'?
CREATE TABLE customer (first_name VARCHAR, customer_id VARCHAR, rental_date INTEGER); CREATE TABLE rental (first_name VARCHAR, customer_id VARCHAR, rental_date INTEGER)
SELECT first_name FROM customer WHERE NOT customer_id IN (SELECT customer_id FROM rental WHERE rental_date > '2005-08-23 02:06:01')
What was segment C when segment B was package printing?
CREATE TABLE table_15187735_1 (segment_c VARCHAR, segment_b VARCHAR)
SELECT segment_c FROM table_15187735_1 WHERE segment_b = "Package printing"
Ron Jans is a manager of which kit maker?
CREATE TABLE table_name_68 (kit_maker VARCHAR, manager VARCHAR)
SELECT kit_maker FROM table_name_68 WHERE manager = "ron jans"
What is the name of the institution that "Matthias Blume" belongs to?
CREATE TABLE authorship (authid VARCHAR, instid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE inst (name VARCHAR, instid VARCHAR)
SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = "Matthias" AND t1.lname = "Blume"
Which countries do not have a stadium that was opened after 2006?
CREATE TABLE stadium (country VARCHAR, opening_year INTEGER)
SELECT country FROM stadium EXCEPT SELECT country FROM stadium WHERE opening_year > 2006
How many different payment methods are there?
CREATE TABLE customers (payment_method VARCHAR)
SELECT COUNT(DISTINCT payment_method) FROM customers
Who scored 57 points?
CREATE TABLE table_name_22 (performer VARCHAR, points VARCHAR)
SELECT performer FROM table_name_22 WHERE points = 57
Name the number of points defending for 1075
CREATE TABLE table_23501776_16 (points VARCHAR, new_points VARCHAR)
SELECT COUNT(points) AS defending FROM table_23501776_16 WHERE new_points = 1075
Name the event for redouane bouchtouk
CREATE TABLE table_17417383_6 (event VARCHAR, athlete VARCHAR)
SELECT event FROM table_17417383_6 WHERE athlete = "Redouane Bouchtouk"
Name the least point for mv agusta and rank of 13th for wins less than 0
CREATE TABLE table_name_52 (points INTEGER, wins VARCHAR, team VARCHAR, rank VARCHAR)
SELECT MIN(points) FROM table_name_52 WHERE team = "mv agusta" AND rank = "13th" AND wins < 0
What is the size that has nickel as the metal, and one rupee as the denomination?
CREATE TABLE table_name_46 (size VARCHAR, metal VARCHAR, denomination VARCHAR)
SELECT size FROM table_name_46 WHERE metal = "nickel" AND denomination = "one rupee"
Who directed the episode with a UK viewership of exactly 5.77 million?
CREATE TABLE table_29063233_1 (directed_by VARCHAR, uk_viewers__million_ VARCHAR)
SELECT directed_by FROM table_29063233_1 WHERE uk_viewers__million_ = "5.77"
Show the name of teachers aged either 32 or 33?
CREATE TABLE teacher (Name VARCHAR, Age VARCHAR)
SELECT Name FROM teacher WHERE Age = 32 OR Age = 33
Which region is Coach Trevor Gleeson in?
CREATE TABLE table_name_5 (region VARCHAR, coach VARCHAR)
SELECT region FROM table_name_5 WHERE coach = "trevor gleeson"
What is the site for Florida?
CREATE TABLE table_name_22 (listed VARCHAR, municipality VARCHAR)
SELECT listed FROM table_name_22 WHERE municipality = "florida"
What is the total Founded with a Main Campus Location of liberal?
CREATE TABLE table_name_29 (founded VARCHAR, main_campus_location VARCHAR)
SELECT COUNT(founded) FROM table_name_29 WHERE main_campus_location = "liberal"
What is the smallest año?
CREATE TABLE table_27501971_2 (año INTEGER)
SELECT MIN(año) FROM table_27501971_2