question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Who was the producer for the film 'Strange Little Girls'?
CREATE TABLE table_name_20 (producer_s_ VARCHAR, film VARCHAR)
SELECT producer_s_ FROM table_name_20 WHERE film = "strange little girls"
What date was the opponent in the final Barbara Paulus?
CREATE TABLE table_name_23 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT date FROM table_name_23 WHERE opponent_in_the_final = "barbara paulus"
How many Places (Posición) has a Draw (PE) larger than 2 and a Team (Equipo) of paraíso and a Won (PG) larger than 6?
CREATE TABLE table_name_53 (place__posición_ VARCHAR, won__pg_ VARCHAR, draw__pe_ VARCHAR, team__equipo_ VARCHAR)
SELECT COUNT(place__posición_) FROM table_name_53 WHERE draw__pe_ > 2 AND team__equipo_ = "paraíso" AND won__pg_ > 6
What is the most bronze a team with more than 2 silvers has?
CREATE TABLE table_name_22 (bronze INTEGER, silver INTEGER)
SELECT MAX(bronze) FROM table_name_22 WHERE silver > 2
What was the score when Sheffield United was the home team?
CREATE TABLE table_name_37 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_37 WHERE home_team = "sheffield united"
Who replaced when team is wigan athletic?
CREATE TABLE table_10592536_8 (replaced_by VARCHAR, team VARCHAR)
SELECT replaced_by FROM table_10592536_8 WHERE team = "Wigan Athletic"
What Elimination number is listed againt Eliminated by Sonjay Dutt?
CREATE TABLE table_name_2 (elimination VARCHAR, eliminated_by VARCHAR)
SELECT elimination FROM table_name_2 WHERE eliminated_by = "sonjay dutt"
Find all airlines that have at least 10 flights.
CREATE TABLE FLIGHTS (Airline VARCHAR); CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR)
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) > 10
Which opponent's event was sb 24 - return of the heavyweights 2, and had a method of TKO (knee and punches)?
CREATE TABLE table_name_2 (opponent VARCHAR, event VARCHAR, method VARCHAR)
SELECT opponent FROM table_name_2 WHERE event = "sb 24 - return of the heavyweights 2" AND method = "tko (knee and punches)"
Record of 8–1, and a Week larger than 9 had what highest attendance?
CREATE TABLE table_name_18 (attendance INTEGER, record VARCHAR, week VARCHAR)
SELECT MAX(attendance) FROM table_name_18 WHERE record = "8–1" AND week > 9
WHat kind of L2 cache has a Model number of turion x2 ultra zm-85?
CREATE TABLE table_name_31 (l2_cache VARCHAR, model_number VARCHAR)
SELECT l2_cache FROM table_name_31 WHERE model_number = "turion x2 ultra zm-85"
Which major town is located within the Outback Areas Community Development Trust?
CREATE TABLE table_23685890_2 (major_town VARCHAR, local_government_area VARCHAR)
SELECT major_town FROM table_23685890_2 WHERE local_government_area = "Outback Areas Community Development Trust"
What team was visiting on February 15?
CREATE TABLE table_name_85 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_85 WHERE date = "february 15"
What's the school that played for the Grizzlie from 1995-1998?
CREATE TABLE table_name_10 (school_club_team VARCHAR, years_for_grizzlies VARCHAR)
SELECT school_club_team FROM table_name_10 WHERE years_for_grizzlies = "1995-1998"
WHo is the Player got a Pick # smaller than 61, and a College of texas?
CREATE TABLE table_name_17 (player VARCHAR, pick__number VARCHAR, college VARCHAR)
SELECT player FROM table_name_17 WHERE pick__number < 61 AND college = "texas"
How many Silver medals for the Nation of Turkey with a Total of less than 2?
CREATE TABLE table_name_9 (silver INTEGER, nation VARCHAR, total VARCHAR)
SELECT SUM(silver) FROM table_name_9 WHERE nation = "turkey" AND total < 2
What is the most legs lost of all?
CREATE TABLE table_18621456_22 (legs_lost INTEGER)
SELECT MAX(legs_lost) FROM table_18621456_22
When essendon was the home team, how much did they score?
CREATE TABLE table_name_56 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_56 WHERE home_team = "essendon"
What was the label in the region of Argentina and had a format of CD?
CREATE TABLE table_name_82 (label VARCHAR, format VARCHAR, region VARCHAR)
SELECT label FROM table_name_82 WHERE format = "cd" AND region = "argentina"
Name the races for the prada challenge
CREATE TABLE table_21471897_2 (races VARCHAR, team_name VARCHAR)
SELECT races FROM table_21471897_2 WHERE team_name = "Prada Challenge"
How many carries for the player with under 6 yards and an average of over 5?
CREATE TABLE table_name_48 (car VARCHAR, yards VARCHAR, avg VARCHAR)
SELECT COUNT(car) FROM table_name_48 WHERE yards < 6 AND avg > 5
Name the most wins for earnings of 130,002
CREATE TABLE table_name_86 (wins INTEGER, earnings___$__ VARCHAR)
SELECT MAX(wins) FROM table_name_86 WHERE earnings___$__ = 130 OFFSET 002
Who was the away team that played Fitzroy on May 13, 1950 at Brunswick Street Oval.
CREATE TABLE table_name_86 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_86 WHERE venue = "brunswick street oval"
Which track was used on September 12, 1981?
CREATE TABLE table_22765887_1 (track VARCHAR, date VARCHAR)
SELECT track FROM table_22765887_1 WHERE date = "September 12, 1981"
Which party does Tom Luken belong to?
CREATE TABLE table_1341577_36 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341577_36 WHERE incumbent = "Tom Luken"
Which Height (cm) has a Birthplace of new canaan, connecticut?
CREATE TABLE table_name_52 (height__cm_ VARCHAR, birthplace VARCHAR)
SELECT COUNT(height__cm_) FROM table_name_52 WHERE birthplace = "new canaan, connecticut"
If the name is Patrick Grappin, what is the nationality?
CREATE TABLE table_24565004_8 (nationality² VARCHAR, name VARCHAR)
SELECT nationality² FROM table_24565004_8 WHERE name = "Patrick Grappin"
What is Ivan Ciernik's average points with less than 11 goals?
CREATE TABLE table_name_29 (points INTEGER, player VARCHAR, goals VARCHAR)
SELECT AVG(points) FROM table_name_29 WHERE player = "ivan ciernik" AND goals < 11
Which track in Austria has Bobsleigh-skeleton curves with a grade of 14%?
CREATE TABLE table_name_82 (track VARCHAR, bobsleigh_skeleton_curves VARCHAR, country VARCHAR)
SELECT track FROM table_name_82 WHERE bobsleigh_skeleton_curves = "14" AND country = "austria"
Which average rank has an Earning amount that is less than $224,589?
CREATE TABLE table_name_82 (rank INTEGER, earnings__$__ INTEGER)
SELECT AVG(rank) FROM table_name_82 WHERE earnings__$__ < 224 OFFSET 589
What is Year(s) Won, when Total is less than 285?
CREATE TABLE table_name_48 (year_s__won VARCHAR, total INTEGER)
SELECT year_s__won FROM table_name_48 WHERE total < 285
Sum of cuyo selection as the opposing team?
CREATE TABLE table_name_86 (against INTEGER, opposing_team VARCHAR)
SELECT SUM(against) FROM table_name_86 WHERE opposing_team = "cuyo selection"
What was the Opponent on the game played on a Hard Surface with a Score of 3–6, 6–3, [7–10]?
CREATE TABLE table_name_61 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR)
SELECT opponent_in_the_final FROM table_name_61 WHERE surface = "hard" AND score = "3–6, 6–3, [7–10]"
What year did team Yamaha have 0 wins, a rank of 8th, and more than 22 points?
CREATE TABLE table_name_96 (year VARCHAR, points VARCHAR, rank VARCHAR, team VARCHAR, wins VARCHAR)
SELECT COUNT(year) FROM table_name_96 WHERE team = "yamaha" AND wins = 0 AND rank = "8th" AND points > 22
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 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
If the national trophy/rookie is Gerrard Barrabeig, what is the name of the second?
CREATE TABLE table_25563779_4 (second VARCHAR, national_trophy_rookie VARCHAR)
SELECT second FROM table_25563779_4 WHERE national_trophy_rookie = "Gerrard Barrabeig"
Who is the mens doubles when womens doubles is anastasia chervyakova romina gabdullina?
CREATE TABLE table_12171145_1 (mens_doubles VARCHAR, womens_doubles VARCHAR)
SELECT mens_doubles FROM table_12171145_1 WHERE womens_doubles = "Anastasia Chervyakova Romina Gabdullina"
Who had the high points on the date February 10?
CREATE TABLE table_17323092_7 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_17323092_7 WHERE date = "February 10"
Where did they play and how many attended game number 75?
CREATE TABLE table_27704187_11 (location_attendance VARCHAR, game VARCHAR)
SELECT location_attendance FROM table_27704187_11 WHERE game = 75
What is the Government the has the Kadima Party?
CREATE TABLE table_name_23 (governments VARCHAR, party VARCHAR)
SELECT governments FROM table_name_23 WHERE party = "kadima"
How many institutions do not have an associated protein in our record?
CREATE TABLE protein (institution_id VARCHAR); CREATE TABLE institution (institution_id VARCHAR)
SELECT COUNT(*) FROM institution WHERE NOT institution_id IN (SELECT institution_id FROM protein)
Where was the game on May 15 and how many were in attendance?
CREATE TABLE table_11963601_11 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_11963601_11 WHERE date = "May 15"
How many tournaments have their current venue as the Lindner Family Tennis Center?
CREATE TABLE table_14903081_1 (tournament VARCHAR, current_venue VARCHAR)
SELECT COUNT(tournament) FROM table_14903081_1 WHERE current_venue = "Lindner Family Tennis Center"
Which player is from Belgium?
CREATE TABLE table_name_44 (name VARCHAR, nationality VARCHAR)
SELECT name FROM table_name_44 WHERE nationality = "belgium"
Which To par has a Finish of t3, and a Player of julius boros?
CREATE TABLE table_name_75 (to_par VARCHAR, finish VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_75 WHERE finish = "t3" AND player = "julius boros"
What is the minimum position when points are 32 and wins are greater than 13?
CREATE TABLE table_name_2 (position INTEGER, points VARCHAR, wins VARCHAR)
SELECT MIN(position) FROM table_name_2 WHERE points = 32 AND wins > 13
What is No. 7, when No. 4 is Madison, and when No. 10 is Amelia?
CREATE TABLE table_name_15 (no_7 VARCHAR, no_4 VARCHAR, no_10 VARCHAR)
SELECT no_7 FROM table_name_15 WHERE no_4 = "madison" AND no_10 = "amelia"
What are the carriers of devices whose software platforms are not "Android"?
CREATE TABLE device (Carrier VARCHAR, Software_Platform VARCHAR)
SELECT Carrier FROM device WHERE Software_Platform <> 'Android'
What is the high lap total for mika salo with a grid greater than 17?
CREATE TABLE table_name_66 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT MAX(laps) FROM table_name_66 WHERE driver = "mika salo" AND grid > 17
What is the greatest Goals with a Name of samuel eto'o?
CREATE TABLE table_name_34 (goals INTEGER, name VARCHAR)
SELECT MAX(goals) FROM table_name_34 WHERE name = "samuel eto'o"
Which country saw a 5.7% increase in spending on international tourism between 2011 and 2012?
CREATE TABLE table_29789_3 (country VARCHAR, _percentage_change VARCHAR)
SELECT country FROM table_29789_3 WHERE _percentage_change = "5.7"
What is the total number of bronzes with totals under 4 and ranks of 10?
CREATE TABLE table_name_43 (bronze VARCHAR, total VARCHAR, rank VARCHAR)
SELECT COUNT(bronze) FROM table_name_43 WHERE total < 4 AND rank = "10"
What is the average total number of medals for a nation with 2 silver medals and a rank larger than 7?
CREATE TABLE table_name_97 (total INTEGER, silver VARCHAR, rank VARCHAR)
SELECT AVG(total) FROM table_name_97 WHERE silver = 2 AND rank > 7
What 2012 amount of earnings corresponds with less than 28 tournaments played?
CREATE TABLE table_name_59 (earnings___$__ VARCHAR, tournaments_played VARCHAR, year VARCHAR)
SELECT earnings___$__ FROM table_name_59 WHERE tournaments_played < 28 AND year = "2012"
What was the result of the election in the Virginia 3 district?
CREATE TABLE table_1341577_47 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1341577_47 WHERE district = "Virginia 3"
What player played for the Balmain Tigers?
CREATE TABLE table_name_98 (player VARCHAR, club VARCHAR)
SELECT player FROM table_name_98 WHERE club = "balmain tigers"
Name the insurgents for civilians being 49
CREATE TABLE table_name_75 (insurgents VARCHAR, civilians VARCHAR)
SELECT insurgents FROM table_name_75 WHERE civilians = "49"
What is the weekly rank of the episode with more than 7.14mil viewers, a nightly rank of 5, and a rating/share of 2.9/10?
CREATE TABLE table_name_73 (rank__week_ VARCHAR, viewers__millions_ VARCHAR, rank__night_ VARCHAR, rating VARCHAR)
SELECT rank__week_ FROM table_name_73 WHERE viewers__millions_ > 7.14 AND rank__night_ = "5" AND rating / SHARE(18 - 49) = 2.9 / 10
Which FCC info has an ERP W of 100 watts?
CREATE TABLE table_name_67 (fcc_info VARCHAR, erp_w VARCHAR)
SELECT fcc_info FROM table_name_67 WHERE erp_w = "100 watts"
What was the transfer fee for the player moving in the winter window and ending in a year after 2010?
CREATE TABLE table_name_33 (transfer_fee VARCHAR, ends VARCHAR, transfer_window VARCHAR)
SELECT transfer_fee FROM table_name_33 WHERE ends > 2010 AND transfer_window = "winter"
What was the result for a friendly match?
CREATE TABLE table_name_86 (result VARCHAR, competition VARCHAR)
SELECT result FROM table_name_86 WHERE competition = "friendly match"
What is Score, when Year is before 2007, and when Tournament is "Sydney"?
CREATE TABLE table_name_88 (score VARCHAR, year VARCHAR, tournament VARCHAR)
SELECT score FROM table_name_88 WHERE year < 2007 AND tournament = "sydney"
Name the outcome for opponents of jonas björkman john mcenroe
CREATE TABLE table_name_60 (outcome VARCHAR, opponents_in_the_final VARCHAR)
SELECT outcome FROM table_name_60 WHERE opponents_in_the_final = "jonas björkman john mcenroe"
What is the average value for 2005, when the value for Average annual is 767?
CREATE TABLE table_name_32 (average_annual VARCHAR)
SELECT AVG(2005) FROM table_name_32 WHERE average_annual = 767
What was the D segment for episode 60?
CREATE TABLE table_name_51 (segment_d VARCHAR, episode VARCHAR)
SELECT segment_d FROM table_name_51 WHERE episode = 60
What position is mentioned for Rice school?
CREATE TABLE table_name_34 (position VARCHAR, school_club_team VARCHAR)
SELECT position FROM table_name_34 WHERE school_club_team = "rice"
What is the premiere where the host is lieke van lexmond dennis weening?
CREATE TABLE table_11323532_2 (premiere VARCHAR, host VARCHAR)
SELECT premiere FROM table_11323532_2 WHERE host = "Lieke van Lexmond Dennis Weening"
find the full name of employees who report to Nancy Edwards?
CREATE TABLE employees (id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, reports_to VARCHAR)
SELECT T2.first_name, T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = "Nancy" AND T1.last_name = "Edwards"
Which Model number has a Frequency of 2000mhz and a Voltage of 0.75-1.2?
CREATE TABLE table_name_57 (model_number VARCHAR, frequency VARCHAR, voltage VARCHAR)
SELECT model_number FROM table_name_57 WHERE frequency = "2000mhz" AND voltage = "0.75-1.2"
What is the total number of votes McCain had in Webster?
CREATE TABLE table_20722805_1 (mccain_number INTEGER, parish VARCHAR)
SELECT MAX(mccain_number) FROM table_20722805_1 WHERE parish = "Webster"
Which game number includes a record of 1-2?
CREATE TABLE table_name_31 (game VARCHAR, record VARCHAR)
SELECT game FROM table_name_31 WHERE record = "1-2"
What number with the opponent Fokker D.vii have with a time of 1655?
CREATE TABLE table_name_89 (number INTEGER, opponent VARCHAR, time VARCHAR)
SELECT SUM(number) FROM table_name_89 WHERE opponent = "fokker d.vii" AND time = 1655
How many draws are for the club senghenydd rfc?
CREATE TABLE table_name_5 (drawn VARCHAR, club VARCHAR)
SELECT drawn FROM table_name_5 WHERE club = "senghenydd rfc"
How many scores had an episode of 03x06?
CREATE TABLE table_29141354_3 (scores VARCHAR, episode VARCHAR)
SELECT COUNT(scores) FROM table_29141354_3 WHERE episode = "03x06"
What is the Catalog with a Date that is february 20, 2002?
CREATE TABLE table_name_89 (catalog VARCHAR, date VARCHAR)
SELECT catalog FROM table_name_89 WHERE date = "february 20, 2002"
Name the points for zamora
CREATE TABLE table_23812628_1 (points VARCHAR, team__number1 VARCHAR)
SELECT points FROM table_23812628_1 WHERE team__number1 = "Zamora"
Which rounds did Vic Elford with a Ford cosworth dfv 3.0 v8 engine have?
CREATE TABLE table_name_63 (rounds VARCHAR, driver VARCHAR, engine VARCHAR)
SELECT rounds FROM table_name_63 WHERE driver = "vic elford" AND engine = "ford cosworth dfv 3.0 v8"
Who was the away team playing against collingwood?
CREATE TABLE table_name_15 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_15 WHERE home_team = "collingwood"
What is the sum of rounds that has a pick of 9 and is named jim pyburn?
CREATE TABLE table_name_62 (round INTEGER, pick VARCHAR, name VARCHAR)
SELECT SUM(round) FROM table_name_62 WHERE pick = 9 AND name = "jim pyburn"
How many silver medals does Cuba have?
CREATE TABLE table_name_15 (silver INTEGER, nation VARCHAR)
SELECT SUM(silver) FROM table_name_15 WHERE nation = "cuba"
What was the lowest round that Melvin Johnson played?
CREATE TABLE table_name_99 (round INTEGER, player VARCHAR)
SELECT MIN(round) FROM table_name_99 WHERE player = "melvin johnson"
Who is the opponent of the game after week 4 on Sun. Nov. 17?
CREATE TABLE table_name_70 (opponent VARCHAR, week VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_70 WHERE week > 4 AND date = "sun. nov. 17"
How many Drawn is which has a Games smaller than 6?
CREATE TABLE table_name_61 (drawn INTEGER, games INTEGER)
SELECT SUM(drawn) FROM table_name_61 WHERE games < 6
How did he beat Alberto Rodriguez?
CREATE TABLE table_name_55 (method VARCHAR, opponent VARCHAR)
SELECT method FROM table_name_55 WHERE opponent = "alberto rodriguez"
What was the type that had an award for song of the year and the position of 3rd place?
CREATE TABLE table_name_1 (type VARCHAR, award VARCHAR, position VARCHAR)
SELECT type FROM table_name_1 WHERE award = "song of the year" AND position = "3rd place"
What Assembled has Elected of 1562/63?
CREATE TABLE table_name_30 (assembled VARCHAR, elected VARCHAR)
SELECT assembled FROM table_name_30 WHERE elected = "1562/63"
What is the tonnage of the Eldena?
CREATE TABLE table_name_15 (tonnage__grt_ VARCHAR, name VARCHAR)
SELECT tonnage__grt_ FROM table_name_15 WHERE name = "eldena"
Which Winner has a Season of 2005–06?
CREATE TABLE table_name_15 (winner VARCHAR, season VARCHAR)
SELECT winner FROM table_name_15 WHERE season = "2005–06"
What is the Margin, when Date is 19 July 2008 (Round 19)?
CREATE TABLE table_name_27 (margin VARCHAR, date VARCHAR)
SELECT margin FROM table_name_27 WHERE date = "19 july 2008 (round 19)"
How many total episodes aired over all seasons with 7.79 million viewers?
CREATE TABLE table_name_86 (episode_count VARCHAR, viewers__in_millions_ VARCHAR)
SELECT COUNT(episode_count) FROM table_name_86 WHERE viewers__in_millions_ = 7.79
What is the highest number listed for matches?
CREATE TABLE table_28846752_8 (matches INTEGER)
SELECT MAX(matches) FROM table_28846752_8
Tell me the player for east perth
CREATE TABLE table_name_88 (player VARCHAR, team VARCHAR)
SELECT player FROM table_name_88 WHERE team = "east perth"
What's the total against when the draws are more than 0?
CREATE TABLE table_name_30 (against VARCHAR, draws INTEGER)
SELECT COUNT(against) FROM table_name_30 WHERE draws > 0
How much Burnley has a Fylde smaller than 1, and a Rossendale larger than 0?
CREATE TABLE table_name_97 (burnley INTEGER, fylde VARCHAR, rossendale VARCHAR)
SELECT SUM(burnley) FROM table_name_97 WHERE fylde < 1 AND rossendale > 0
Which artist has a Mintage of 500?
CREATE TABLE table_name_9 (artist VARCHAR, mintage VARCHAR)
SELECT artist FROM table_name_9 WHERE mintage = 500
How many position did a player took while weighing 170?
CREATE TABLE table_25177625_1 (position VARCHAR, weight VARCHAR)
SELECT COUNT(position) FROM table_25177625_1 WHERE weight = 170
Name the right ascension for sagittarius and NGC number larger than 6522 for open cluster and declination of °22′
CREATE TABLE table_name_78 (right_ascension___j2000__ VARCHAR, declination___j2000__ VARCHAR, object_type VARCHAR, constellation VARCHAR, ngc_number VARCHAR)
SELECT right_ascension___j2000__ FROM table_name_78 WHERE constellation = "sagittarius" AND ngc_number > 6522 AND object_type = "open cluster" AND declination___j2000__ = "°22′"
What was the lowest round for the KOTC 25: Flaming Fury event?
CREATE TABLE table_name_82 (round INTEGER, event VARCHAR)
SELECT MIN(round) FROM table_name_82 WHERE event = "kotc 25: flaming fury"
How many Against have a Team of hespanha, and Points smaller than 30?
CREATE TABLE table_name_33 (against VARCHAR, team VARCHAR, points VARCHAR)
SELECT COUNT(against) FROM table_name_33 WHERE team = "hespanha" AND points < 30
What country has deltamac (hk) as the publisher?
CREATE TABLE table_name_34 (country VARCHAR, publisher VARCHAR)
SELECT country FROM table_name_34 WHERE publisher = "deltamac (hk)"