answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT film_title_used_in_nomination FROM table_name_16 WHERE country = "sweden"
What was the film title nominated from the Sweden?
CREATE TABLE table_name_16 (film_title_used_in_nomination VARCHAR, country VARCHAR)
SELECT location FROM table_name_26 WHERE ppv_buyrate = "775,000"
Which Location has a PPV Buyrate of 775,000?
CREATE TABLE table_name_26 (location VARCHAR, ppv_buyrate VARCHAR)
SELECT MIN(lost) FROM table_name_39 WHERE goals_for < 21
What was the lowest lost entry for a team with fewer than 21 goals for?
CREATE TABLE table_name_39 (lost INTEGER, goals_for INTEGER)
SELECT orbital_period FROM table_10932739_2 WHERE semimajor_axis___au__ = "5.20"
How long is the orbital period for the planet that has a semimajor axis of 5.20 au?
CREATE TABLE table_10932739_2 (orbital_period VARCHAR, semimajor_axis___au__ VARCHAR)
SELECT date FROM table_name_88 WHERE country = "united kingdom" AND format = "lp"
What is the date for the United Kingdom with an LP format?
CREATE TABLE table_name_88 (date VARCHAR, country VARCHAR, format VARCHAR)
SELECT COUNT(mccain_percentage) FROM table_20799905_1 WHERE county = "DAVIDSON"
How many figures are given for McCain's % in Davidson county?
CREATE TABLE table_20799905_1 (mccain_percentage VARCHAR, county VARCHAR)
SELECT COUNT(podiums) FROM table_26400438_1 WHERE team = "Carlin"
how many seasons did he race in team Carlin?
CREATE TABLE table_26400438_1 (podiums VARCHAR, team VARCHAR)
SELECT attendance FROM table_name_43 WHERE tie_no = 9
Which attendance has 9 as the tie no.?
CREATE TABLE table_name_43 (attendance VARCHAR, tie_no VARCHAR)
SELECT date FROM table_name_34 WHERE visiting_team = "new york giants"
What date did the New York Giants play as a visiting team?
CREATE TABLE table_name_34 (date VARCHAR, visiting_team VARCHAR)
SELECT transfer_fee FROM table_name_34 WHERE type = "career end" AND name = "willy sagnol"
Willy Sagnol with a type as career end had what has the transfer fee?
CREATE TABLE table_name_34 (transfer_fee VARCHAR, type VARCHAR, name VARCHAR)
SELECT district FROM table_1341884_19 WHERE incumbent = "Frank Chelf"
What district is incumbent frank chelf from?
CREATE TABLE table_1341884_19 (district VARCHAR, incumbent VARCHAR)
SELECT Membership_card FROM member GROUP BY Membership_card HAVING COUNT(*) > 5
Which membership card has more than 5 members?
CREATE TABLE member (Membership_card VARCHAR)
SELECT district FROM table_name_20 WHERE first_elected = 1856 AND incumbent = "william kellogg"
Which District has a First elected of 1856, and an Incumbent of william kellogg?
CREATE TABLE table_name_20 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT venue FROM table_name_11 WHERE result = "7-2"
Where was the game with result 7-2 played?
CREATE TABLE table_name_11 (venue VARCHAR, result VARCHAR)
SELECT notes FROM table_name_78 WHERE competition = "venice marathon"
Which Notes has a Competition of venice marathon?
CREATE TABLE table_name_78 (notes VARCHAR, competition VARCHAR)
SELECT winner FROM table_name_66 WHERE loser = "russia-2"
Who was the winner with the loser being russia-2?
CREATE TABLE table_name_66 (winner VARCHAR, loser VARCHAR)
SELECT score FROM table_name_60 WHERE february > 24 AND record = "9-8-2"
Name the score when february is more than 24 and has a record of 9-8-2
CREATE TABLE table_name_60 (score VARCHAR, february VARCHAR, record VARCHAR)
SELECT COUNT(production_code__number) FROM table_2342078_6 WHERE episode__number = 109
Name the production code # for episode 109
CREATE TABLE table_2342078_6 (production_code__number VARCHAR, episode__number VARCHAR)
SELECT airport FROM table_name_6 WHERE icao = "flls"
Name the airport for ICAO of flls
CREATE TABLE table_name_6 (airport VARCHAR, icao VARCHAR)
SELECT years FROM table_name_11 WHERE engine_code = "m54b25"
During which years was the model with the Engine code of m54b25 manufactured?
CREATE TABLE table_name_11 (years VARCHAR, engine_code VARCHAR)
SELECT position FROM table_name_81 WHERE school_club_team = "east carolina"
What's the position listed for the east carolina team?
CREATE TABLE table_name_81 (position VARCHAR, school_club_team VARCHAR)
SELECT shop_id, COUNT(*) FROM happy_hour GROUP BY shop_id ORDER BY COUNT(*) DESC LIMIT 1
which shop has happy hour most frequently? List its id and number of happy hours.
CREATE TABLE happy_hour (shop_id VARCHAR)
SELECT 3 AS rd FROM table_1310499_1 WHERE input_splines = 26 AND tag_id = "1386-000-017"
What is the 3rd ratio for tag number 1386-000-017 and input splines of 26?
CREATE TABLE table_1310499_1 (input_splines VARCHAR, tag_id VARCHAR)
SELECT country FROM table_name_29 WHERE killed = "14" AND year = 1965
What coutry had a rampaged killing 14 in 1965?
CREATE TABLE table_name_29 (country VARCHAR, killed VARCHAR, year VARCHAR)
SELECT hometown FROM table_name_11 WHERE player = "dajuan wagner"
Which hometown is the played Dajuan Wagner from?
CREATE TABLE table_name_11 (hometown VARCHAR, player VARCHAR)
SELECT label FROM table_name_97 WHERE date = "january 24, 2005"
Name the label for january 24, 2005
CREATE TABLE table_name_97 (label VARCHAR, date VARCHAR)
SELECT AVG(tries_for) FROM table_name_90 WHERE points_for < 117 AND tries_against < 48
What is the average tries for less than 117 points and less than 48 tries against?
CREATE TABLE table_name_90 (tries_for INTEGER, points_for VARCHAR, tries_against VARCHAR)
SELECT competition FROM table_name_60 WHERE result = "2–0 (w)" AND venue = "shah alam stadium"
What Competition in Shah Alam Stadium have a Result of 2–0 (w)?
CREATE TABLE table_name_60 (competition VARCHAR, result VARCHAR, venue VARCHAR)
SELECT circumstances FROM table_name_62 WHERE location = "baghlan"
What were the circumstances for the Baghlan location?
CREATE TABLE table_name_62 (circumstances VARCHAR, location VARCHAR)
SELECT icelandic FROM table_name_47 WHERE norwegian__nynorsk_ = "kvitt/kvit"
Which Icelandic has a Norwegian (nynorsk) of kvitt/kvit?
CREATE TABLE table_name_47 (icelandic VARCHAR, norwegian__nynorsk_ VARCHAR)
SELECT name FROM table_name_39 WHERE transfer_window = "summer" AND country = "sen"
WHAT IS THE NAME WITH A SUMMER TRANSFER WINDOW, AND COUNTRY SEN?
CREATE TABLE table_name_39 (name VARCHAR, transfer_window VARCHAR, country VARCHAR)
SELECT COUNT(record) FROM table_10646790_2 WHERE stadium = "War Memorial stadium"
How many records are there at the War Memorial Stadium?
CREATE TABLE table_10646790_2 (record VARCHAR, stadium VARCHAR)
SELECT mother_tongue FROM table_name_94 WHERE population__2006_ = 300
What is the mother tongue language shared by 300 people in 2006?
CREATE TABLE table_name_94 (mother_tongue VARCHAR, population__2006_ VARCHAR)
SELECT year_10_6th_quad FROM table_name_7 WHERE open_2nd_viii = "acgs" AND year_11_2nd_viii = "nc"
What is the Year 10 6th Quads for the Open 2nd VIII of ACGS and a Year 11 2nd VIII NC?
CREATE TABLE table_name_7 (year_10_6th_quad VARCHAR, open_2nd_viii VARCHAR, year_11_2nd_viii VARCHAR)
SELECT best_actor FROM table_name_44 WHERE best_director = "takeshi kitano for outrage beyond"
Which Best Actor has a Best Director of takeshi kitano for outrage beyond?
CREATE TABLE table_name_44 (best_actor VARCHAR, best_director VARCHAR)
SELECT away_captain FROM table_name_5 WHERE venue = "adelaide oval"
What is the name of the away captain when the game was at Adelaide Oval?
CREATE TABLE table_name_5 (away_captain VARCHAR, venue VARCHAR)
SELECT COUNT(gold) FROM table_name_72 WHERE bronze > 16
Hold many gold had more than 16 bronzes?
CREATE TABLE table_name_72 (gold VARCHAR, bronze INTEGER)
SELECT assets_2013__bil$_ FROM table_24307126_3 WHERE rank_2013 = 1435
Name the assets when the rank is 1435
CREATE TABLE table_24307126_3 (assets_2013__bil$_ VARCHAR, rank_2013 VARCHAR)
SELECT type FROM table_name_57 WHERE manufacturer = "unknown"
Which type had an unknown manufacturer?
CREATE TABLE table_name_57 (type VARCHAR, manufacturer VARCHAR)
SELECT prize AS Pool FROM table_2534387_10 WHERE entries = "706 (481 R, 346 A)"
Name the prize pool for 706 (481 r, 346 a)
CREATE TABLE table_2534387_10 (prize VARCHAR, entries VARCHAR)
SELECT listed FROM table_name_14 WHERE county = "cochise"
when was the site listed when the county is cochise?
CREATE TABLE table_name_14 (listed VARCHAR, county VARCHAR)
SELECT date FROM table_name_23 WHERE scorers = "parkinson"
what is the date when scorers is parkinson?
CREATE TABLE table_name_23 (date VARCHAR, scorers VARCHAR)
SELECT MIN(first_elected) FROM table_1341423_21
What is the lowest first elected?
CREATE TABLE table_1341423_21 (first_elected INTEGER)
SELECT tournament FROM table_name_89 WHERE score = "1–6, 0–6"
Which Tournament has a Score of 1–6, 0–6?
CREATE TABLE table_name_89 (tournament VARCHAR, score VARCHAR)
SELECT record FROM table_name_50 WHERE number = 23
What's the record of game number 23?
CREATE TABLE table_name_50 (record VARCHAR, number VARCHAR)
SELECT singapore_gross FROM table_name_74 WHERE title = "2000"
What is the Singapore Gross with a Title that is 2000?
CREATE TABLE table_name_74 (singapore_gross VARCHAR, title VARCHAR)
SELECT inns FROM table_name_80 WHERE runs = 435
What is the Inns of 435 Runs?
CREATE TABLE table_name_80 (inns VARCHAR, runs VARCHAR)
SELECT total_fat FROM table_name_60 WHERE polyunsaturated_fat = "11g" AND monounsaturated_fat = "45g"
Name the total fat which has a polyunsaturated fat of 11g and monounsaturated fat of 45g
CREATE TABLE table_name_60 (total_fat VARCHAR, polyunsaturated_fat VARCHAR, monounsaturated_fat VARCHAR)
SELECT varsity_name FROM table_27369069_1 WHERE city = "Charlottetown"
What is the team mascot for the soccer team in Charlottetown?
CREATE TABLE table_27369069_1 (varsity_name VARCHAR, city VARCHAR)
SELECT 2007 AS _estimate FROM table_12720275_1 WHERE combined_statistical_area__or_metropolitan_statistical_area_if_noted_ = "Tulsa-Bartlesville, OK CSA"
What is the 2007 estimate for tulsa-bartlesville, ok csa?
CREATE TABLE table_12720275_1 (combined_statistical_area__or_metropolitan_statistical_area_if_noted_ VARCHAR)
SELECT MAX(attendance) FROM table_17294353_1 WHERE opponent = "Cincinnati Bengals"
Of the times the Broncos played the Cincinnati Bengals, what was the highest attendance?
CREATE TABLE table_17294353_1 (attendance INTEGER, opponent VARCHAR)
SELECT ad_freq FROM table_name_28 WHERE show_name = "off the bench"
What is the ad frequency for the Show Off The Bench?
CREATE TABLE table_name_28 (ad_freq VARCHAR, show_name VARCHAR)
SELECT MIN(preliminary) FROM table_name_50 WHERE swimsuit < 8.822 AND interview > 8.744 AND evening_gown > 9.333
What is the smallest preliminary when swimsuit is less than 8.822, interview is more than 8.744 and gown is more than 9.333?
CREATE TABLE table_name_50 (preliminary INTEGER, evening_gown VARCHAR, swimsuit VARCHAR, interview VARCHAR)
SELECT 2011 FROM table_name_97 WHERE 2006 = "2r"
Name the 2011 with 2006 of 2r
CREATE TABLE table_name_97 (Id VARCHAR)
SELECT nationality FROM table_name_9 WHERE pick > 183 AND school_club_team = "drexel"
What is the nationality of the player from Drexel who had a pick larger than 183?
CREATE TABLE table_name_9 (nationality VARCHAR, pick VARCHAR, school_club_team VARCHAR)
SELECT MIN(points_2) FROM table_17359181_1 WHERE goal_average_1 = "1.50"
What is the lowest value of Points 2 when the goal average is 1.50?
CREATE TABLE table_17359181_1 (points_2 INTEGER, goal_average_1 VARCHAR)
SELECT MAX(2001 AS _population) FROM table_282413_3 WHERE ethnic_group = "White: British"
What is the highest 2001 population when the ethnic group is white: british?
CREATE TABLE table_282413_3 (ethnic_group VARCHAR)
SELECT score FROM table_23286112_7 WHERE date = "December 7"
What is the score for the date of December 7?
CREATE TABLE table_23286112_7 (score VARCHAR, date VARCHAR)
SELECT party FROM table_name_70 WHERE member = "hon paul keating"
What is Hon Paul Keating's Party?
CREATE TABLE table_name_70 (party VARCHAR, member VARCHAR)
SELECT form_factor FROM table_name_84 WHERE controller = "sandforce" AND capacities__gb_ = "80/120/180/240/360/480" AND introduced = "july 2013"
Which value for Form factor has Sandforce with Capacity 80/120/180/240/360/480 introduced in July 2013?
CREATE TABLE table_name_84 (form_factor VARCHAR, introduced VARCHAR, controller VARCHAR, capacities__gb_ VARCHAR)
SELECT COUNT(money___) AS $__ FROM table_name_93 WHERE country = "united states" AND to_par = "–2"
What is the total amount of money that the United States one with a To par of –2?
CREATE TABLE table_name_93 (money___ VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT socket FROM table_name_64 WHERE voltage = "2.0v" AND model_number = "pentium ii 333"
What is Socket, when Voltage is 2.0V, and when Model Number is Pentium II 333?
CREATE TABLE table_name_64 (socket VARCHAR, voltage VARCHAR, model_number VARCHAR)
SELECT head_coach FROM table_name_17 WHERE city = "estoril"
Who is the head coach for the club from Estoril?
CREATE TABLE table_name_17 (head_coach VARCHAR, city VARCHAR)
SELECT COUNT(DISTINCT course_id) FROM course WHERE dept_name = 'Physics'
How many different courses offered by Physics department?
CREATE TABLE course (course_id VARCHAR, dept_name VARCHAR)
SELECT party FROM table_1341640_11 WHERE candidates = "Newt Gingrich (R) 59.1% Dock H. Davis (D) 40.9%"
What is the party with the candidates newt gingrich (r) 59.1% dock h. davis (d) 40.9%?
CREATE TABLE table_1341640_11 (party VARCHAR, candidates VARCHAR)
SELECT founding_university FROM table_2538117_5 WHERE letters = "ΑΕΦ"
What was the founding university of αΡφ?
CREATE TABLE table_2538117_5 (founding_university VARCHAR, letters VARCHAR)
SELECT event FROM table_name_80 WHERE prize = "€900,000"
What event had a prize of €900,000?
CREATE TABLE table_name_80 (event VARCHAR, prize VARCHAR)
SELECT date FROM table_name_78 WHERE result_f_a = "1–2" AND opponent = "bolton wanderers"
What day did they play the bolton wanderers with a result F–A of 1–2?
CREATE TABLE table_name_78 (date VARCHAR, result_f_a VARCHAR, opponent VARCHAR)
SELECT bleeding_time FROM table_238124_1 WHERE partial_thromboplastin_time = "Prolonged" AND prothrombin_time = "Unaffected"
What was the bleeding time during the prolonged partial thromboplastin time in which the prothrombin time is unaffected?
CREATE TABLE table_238124_1 (bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR)
SELECT MIN(attendance) FROM table_name_88 WHERE week = 15
What's the lowest attendance recorded for week 15?
CREATE TABLE table_name_88 (attendance INTEGER, week VARCHAR)
SELECT story_timeline FROM table_name_67 WHERE published < 1984 AND in_order_of_publication = "first"
What is the story timeline that was published first prior to 1984?
CREATE TABLE table_name_67 (story_timeline VARCHAR, published VARCHAR, in_order_of_publication VARCHAR)
SELECT MIN(facility_id) FROM table_name_24 WHERE city_of_license = "beckley"
What is the lowest facility ID that's in Beckley?
CREATE TABLE table_name_24 (facility_id INTEGER, city_of_license VARCHAR)
SELECT total_points FROM table_27496841_3 WHERE place = 2
Name the total points for 2
CREATE TABLE table_27496841_3 (total_points VARCHAR, place VARCHAR)
SELECT english_title FROM table_24856090_1 WHERE hk_viewers = "1.92 million"
What is the English title of the episode with 1.92 million Hong Kong viewers?
CREATE TABLE table_24856090_1 (english_title VARCHAR, hk_viewers VARCHAR)
SELECT MIN(first_elected) FROM table_2668352_11
Name the least first elected
CREATE TABLE table_2668352_11 (first_elected INTEGER)
SELECT player FROM table_name_52 WHERE pick = 252
What player was drafted 252?
CREATE TABLE table_name_52 (player VARCHAR, pick VARCHAR)
SELECT partner FROM table_name_6 WHERE championship = "australian open, melbourne" AND score = "2–6, 7–5, 6–2, 4–6, 3–6"
Who was the partner at the Australian Open, Melbourne when the score was 2–6, 7–5, 6–2, 4–6, 3–6?
CREATE TABLE table_name_6 (partner VARCHAR, championship VARCHAR, score VARCHAR)
SELECT SUM(year) FROM table_name_42 WHERE rank = "14.0 14"
In what Year was the Rank 14.0 14?
CREATE TABLE table_name_42 (year INTEGER, rank VARCHAR)
SELECT COUNT(writer) FROM table_10470082_3 WHERE us_air_date = "September 25, 1993"
How many writers had an US air date of september 25, 1993?
CREATE TABLE table_10470082_3 (writer VARCHAR, us_air_date VARCHAR)
SELECT organization_name FROM organizations WHERE organization_name LIKE "%Party%"
Find the name of organizations whose names contain "Party".
CREATE TABLE organizations (organization_name VARCHAR)
SELECT MIN(assists) FROM table_25016555_5
What is the lowest overall amount of assists?
CREATE TABLE table_25016555_5 (assists INTEGER)
SELECT SUM(played) FROM table_name_88 WHERE losses = 13 AND position > 11
What is the sum of Played, when Losses is "13", and when Position is greater than 11?
CREATE TABLE table_name_88 (played INTEGER, losses VARCHAR, position VARCHAR)
SELECT MIN(crowd) FROM table_name_28 WHERE venue = "windy hill"
What is the lowest crowd at windy hill?
CREATE TABLE table_name_28 (crowd INTEGER, venue VARCHAR)
SELECT event FROM table_name_62 WHERE venue = "toronto, canada"
What is the name of the Event with a venue that was in toronto, canada?
CREATE TABLE table_name_62 (event VARCHAR, venue VARCHAR)
SELECT COUNT(air_dates) FROM table_16976547_2 WHERE cycle_no = "05"
Name the total number of air dates for 05 cycle
CREATE TABLE table_16976547_2 (air_dates VARCHAR, cycle_no VARCHAR)
SELECT thai_name FROM table_name_29 WHERE transcription = "wan phruehatsabodi"
Show the Thai name of wan phruehatsabodi?
CREATE TABLE table_name_29 (thai_name VARCHAR, transcription VARCHAR)
SELECT res FROM table_name_72 WHERE method = "submission (kimura)"
What was the result when the method was submission (kimura)?
CREATE TABLE table_name_72 (res VARCHAR, method VARCHAR)
SELECT visitor FROM table_name_13 WHERE date = "may 9"
What is Visitor, when Date is "May 9"?
CREATE TABLE table_name_13 (visitor VARCHAR, date VARCHAR)
SELECT venue FROM table_name_72 WHERE home_team = "south melbourne"
Where did South Melbourne play as the home team?
CREATE TABLE table_name_72 (venue VARCHAR, home_team VARCHAR)
SELECT position FROM table_name_99 WHERE height = 2.06 AND current_club = "triumph lyubertsy"
What's the position of the player with a Height of 2.06 and club of Triumph Lyubertsy?
CREATE TABLE table_name_99 (position VARCHAR, height VARCHAR, current_club VARCHAR)
SELECT leading_scorer_1 FROM table_name_2 WHERE leaguecontested = "northern premier league premier division" AND fa_cup = "2q"
Which Leading scorer 1 has a League Contested of northern premier league premier division, and an FA Cup of 2q?
CREATE TABLE table_name_2 (leading_scorer_1 VARCHAR, leaguecontested VARCHAR, fa_cup VARCHAR)
SELECT juntas_de_regantes__wub_ FROM table_20018310_1 WHERE irrigation_district = "Azua Valley"
What are the Juntas de Regantes (WUB) within the Azua Valley?
CREATE TABLE table_20018310_1 (juntas_de_regantes__wub_ VARCHAR, irrigation_district VARCHAR)
SELECT modern_equivalent FROM table_name_15 WHERE pre_1009_province = "sakbang -do" AND province_of_silla = "sakju"
What kind of Modern equivalent that has a Pre-1009 province of sakbang -do, and a Province of Silla of sakju?
CREATE TABLE table_name_15 (modern_equivalent VARCHAR, pre_1009_province VARCHAR, province_of_silla VARCHAR)
SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Night'
what are the names of the channels that broadcast in both morning and night?
CREATE TABLE channel (name VARCHAR, channel_id VARCHAR); CREATE TABLE broadcast (channel_id VARCHAR, time_of_day VARCHAR)
SELECT chipset FROM table_199666_1 WHERE codename = "Arrandale" AND wireless_lan = "Intel centrino Ultimate-N 6300"
How many series had the chipset of the Intel Centrino Ultimate-N 6300 wireless LAN with the codename Arrandale?
CREATE TABLE table_199666_1 (chipset VARCHAR, codename VARCHAR, wireless_lan VARCHAR)
SELECT loss FROM table_name_16 WHERE record = "89-67"
Record of 89-67 had what loss?
CREATE TABLE table_name_16 (loss VARCHAR, record VARCHAR)
SELECT signatories FROM table_name_71 WHERE purpose = "police security" AND payee = "infotalent"
What signatory has a purpose of police security and Infotalent payee?
CREATE TABLE table_name_71 (signatories VARCHAR, purpose VARCHAR, payee VARCHAR)
SELECT recipients_and_nominees FROM table_name_30 WHERE role_episode = "david duchovny" AND result = "won"
Who are the recipients that won for David Duchovny role/episode?
CREATE TABLE table_name_30 (recipients_and_nominees VARCHAR, role_episode VARCHAR, result VARCHAR)
SELECT competition FROM table_name_81 WHERE year = 2003 AND score = "2–1"
What competition in 2003 has a score of 2–1?
CREATE TABLE table_name_81 (competition VARCHAR, year VARCHAR, score VARCHAR)
SELECT ht FROM table_name_31 WHERE venue = "stadio luigi ferraris"
What was the HT for the game at Stadio Luigi Ferraris?
CREATE TABLE table_name_31 (ht VARCHAR, venue VARCHAR)