answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(year) FROM table_name_78 WHERE day_of_week = "friday" AND rank = 10
What is the year of the movie with an opening day on Friday with a rank 10?
CREATE TABLE table_name_78 (year VARCHAR, day_of_week VARCHAR, rank VARCHAR)
SELECT venue FROM table_name_19 WHERE date = "24/11/1979"
Where was the venue for 24/11/1979?
CREATE TABLE table_name_19 (venue VARCHAR, date VARCHAR)
SELECT MIN(total_transfers) FROM table_17650725_1 WHERE country = "Romania"
Name the least total transfers for romania
CREATE TABLE table_17650725_1 (total_transfers INTEGER, country VARCHAR)
SELECT investing_dragon_s_ FROM table_name_82 WHERE episode = "episode 9" AND entrepreneur_s_ = "ashley sayed"
Which Investing Dragon(s) belong to Episode 9 with the Entrepreneur Ashley Sayed?
CREATE TABLE table_name_82 (investing_dragon_s_ VARCHAR, episode VARCHAR, entrepreneur_s_ VARCHAR)
SELECT venue FROM table_name_38 WHERE status = "five nations" AND against = 0
What is the venue for the Status of Five Nations and 0 againts?
CREATE TABLE table_name_38 (venue VARCHAR, status VARCHAR, against VARCHAR)
SELECT result FROM table_name_59 WHERE venue = "strathclyde homes stadium"
What was the Result at Strathclyde Homes Stadium?
CREATE TABLE table_name_59 (result VARCHAR, venue VARCHAR)
SELECT COUNT(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
Find the number of vocal types used in song "Le Pop"
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT theatre_name FROM table_2461720_1 WHERE language_of_films = "French"
Name the theatre name for french
CREATE TABLE table_2461720_1 (theatre_name VARCHAR, language_of_films VARCHAR)
SELECT record FROM table_name_37 WHERE opponent = "jeff williams"
what is the record when the opponent is jeff williams?
CREATE TABLE table_name_37 (record VARCHAR, opponent VARCHAR)
SELECT COUNT(lost) FROM table_name_81 WHERE points = 11 AND drawn > 1
How many of lost have 11 as the points, and a drawn greater than 1?
CREATE TABLE table_name_81 (lost VARCHAR, points VARCHAR, drawn VARCHAR)
SELECT owner FROM table_name_51 WHERE frequency = "103.3 fm"
Which owner has the frequency of 103.3 FM?
CREATE TABLE table_name_51 (owner VARCHAR, frequency VARCHAR)
SELECT notes FROM table_name_62 WHERE venue = "turin, italy"
What were the notes when the Venue was Turin, Italy?
CREATE TABLE table_name_62 (notes VARCHAR, venue VARCHAR)
SELECT AVG(place) FROM table_name_70 WHERE ties < 1 AND points = "6 qc" AND losses > 3
Name the average place for ties less than 1 and losess more than 3 with points of 6 qc
CREATE TABLE table_name_70 (place INTEGER, losses VARCHAR, ties VARCHAR, points VARCHAR)
SELECT AVG(lost) FROM table_name_32 WHERE points_for = 545
What's the average loss when the points were 545?
CREATE TABLE table_name_32 (lost INTEGER, points_for VARCHAR)
SELECT name_of_award FROM table_25926120_7 WHERE name_of_film = "Sana Keithel"
what is the name of award when the name of film is sana keithel?
CREATE TABLE table_25926120_7 (name_of_award VARCHAR, name_of_film VARCHAR)
SELECT composition FROM table_11464746_1 WHERE colours = "Green"
What is the green house made of?
CREATE TABLE table_11464746_1 (composition VARCHAR, colours VARCHAR)
SELECT position FROM table_name_85 WHERE caps = 13
What position does the player with 13 caps play?
CREATE TABLE table_name_85 (position VARCHAR, caps VARCHAR)
SELECT i_o_bus FROM table_24538587_11 WHERE brand_name__list_ = "Core i3-21xx"
What is the i/o bus for the brand name Core i3-21xx?
CREATE TABLE table_24538587_11 (i_o_bus VARCHAR, brand_name__list_ VARCHAR)
SELECT MAX(matches) FROM table_16570286_4 WHERE wickets = 11
How many matches had 11 wickets?
CREATE TABLE table_16570286_4 (matches INTEGER, wickets VARCHAR)
SELECT score FROM table_name_97 WHERE opponent = "at edmonton oilers"
Can you tell me the Score that has the Opponent of at edmonton oilers?
CREATE TABLE table_name_97 (score VARCHAR, opponent VARCHAR)
SELECT MAX(round) FROM table_name_60 WHERE school = "washington state university"
What is the highest round that has a draftee from Washington State University?
CREATE TABLE table_name_60 (round INTEGER, school VARCHAR)
SELECT stages FROM table_name_11 WHERE distance = "2,192 km"
How many stages are in a distance of 2,192 km?
CREATE TABLE table_name_11 (stages VARCHAR, distance VARCHAR)
SELECT championship FROM table_1729366_2 WHERE opponents_in_the_final = "Nathalie Dechy Andy Ram"
Which championship had the final opponents of nathalie dechy andy ram?
CREATE TABLE table_1729366_2 (championship VARCHAR, opponents_in_the_final VARCHAR)
SELECT reservoir_capacity FROM table_name_41 WHERE impounded_body_of_water = "tumut two pondage"
Which Reservoir capacity has an Impounded body of water of tumut two pondage?
CREATE TABLE table_name_41 (reservoir_capacity VARCHAR, impounded_body_of_water VARCHAR)
SELECT opponent FROM table_name_12 WHERE round > 1 AND event = "wmma 1: mccorkle vs. heden"
Who was the opponent in the WMMA 1: McCorkle vs. Heden event that went more than 1 round?
CREATE TABLE table_name_12 (opponent VARCHAR, round VARCHAR, event VARCHAR)
SELECT type FROM table_262495_1 WHERE nickname = "Pointers"
When pointers are the nickname what is the type?
CREATE TABLE table_262495_1 (type VARCHAR, nickname VARCHAR)
SELECT listed FROM table_name_79 WHERE built = "1864"
What is the date Listed of the Bridge Built in 1864?
CREATE TABLE table_name_79 (listed VARCHAR, built VARCHAR)
SELECT SUM(round) FROM table_name_32 WHERE college = "norfolk state"
What is the sum of Round, when College is "Norfolk State"?
CREATE TABLE table_name_32 (round INTEGER, college VARCHAR)
SELECT money___$__ FROM table_name_70 WHERE score = 69 - 71 - 69 - 72 = 281
What is the Money of the Player with a Score of 69-71-69-72=281?
CREATE TABLE table_name_70 (money___$__ VARCHAR, score VARCHAR)
SELECT aid, name FROM Aircraft ORDER BY distance DESC LIMIT 1
Show the id and name of the aircraft with the maximum distance.
CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR, distance VARCHAR)
SELECT set_3 FROM table_name_72 WHERE total = "62 - 75"
What is the Set 3 when the Total was 62 - 75?
CREATE TABLE table_name_72 (set_3 VARCHAR, total VARCHAR)
SELECT MIN(elimination_number) FROM table_18598175_2 WHERE time = "27:27"
What was the elimination number of the fighter who fought within 27:27?
CREATE TABLE table_18598175_2 (elimination_number INTEGER, time VARCHAR)
SELECT game_4 FROM table_name_41 WHERE game_3 = "david boyle"
For which Game 4, did David Boyle play in Game 3?
CREATE TABLE table_name_41 (game_4 VARCHAR, game_3 VARCHAR)
SELECT MAX(game) FROM table_name_96 WHERE february = 25
Which Game is the highest one that has a February of 25?
CREATE TABLE table_name_96 (game INTEGER, february VARCHAR)
SELECT time___et__ FROM table_name_65 WHERE date = "sun. oct. 29"
Date of sun. oct. 29 has what time (et)?
CREATE TABLE table_name_65 (time___et__ VARCHAR, date VARCHAR)
SELECT score FROM table_name_23 WHERE tournament = "danny thomas memphis classic"
What is the score of the Tournament named danny thomas memphis classic?
CREATE TABLE table_name_23 (score VARCHAR, tournament VARCHAR)
SELECT result FROM table_1342359_15 WHERE first_elected = 1922
what's the result with first elected being 1922
CREATE TABLE table_1342359_15 (result VARCHAR, first_elected VARCHAR)
SELECT competition FROM table_name_77 WHERE score = "1-0" AND location = "alvor"
WHich competition was held on Alvor with a score 1-0?
CREATE TABLE table_name_77 (competition VARCHAR, score VARCHAR, location VARCHAR)
SELECT MIN(goals_for) FROM table_name_32 WHERE draws < 4 AND points < 27
What is the lowest Goals For, when Draws is less than 4, and when Points is less than 27?
CREATE TABLE table_name_32 (goals_for INTEGER, draws VARCHAR, points VARCHAR)
SELECT COUNT(wins) FROM table_2216245_2 WHERE winnings = "$95,180"
How many wins did he have when he had $95,180 in winnings?
CREATE TABLE table_2216245_2 (wins VARCHAR, winnings VARCHAR)
SELECT location FROM table_name_71 WHERE host = "robert morris university (illinois)" AND national_champion = "lindenwood"
At what Location did Robert Morris University (Illinois) Host the Lindenwood National Chamption?
CREATE TABLE table_name_71 (location VARCHAR, host VARCHAR, national_champion VARCHAR)
SELECT status FROM table_name_55 WHERE unit = "daohugou beds"
Which Status has a Unit of daohugou beds?
CREATE TABLE table_name_55 (status VARCHAR, unit VARCHAR)
SELECT COUNT(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'Canada') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States')
Find the number of routes from the United States to Canada.
CREATE TABLE airports (dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR); CREATE TABLE routes (dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR)
SELECT title FROM table_26448179_4 WHERE production_code = 305
What is the title of the episode with production code 305?
CREATE TABLE table_26448179_4 (title VARCHAR, production_code VARCHAR)
SELECT home_team AS score FROM table_name_54 WHERE home_team = "essendon"
Tell me the home team score for essendon
CREATE TABLE table_name_54 (home_team VARCHAR)
SELECT MIN(money_list_rank) FROM table_name_2 WHERE lpga_wins < 2 AND year = 2005 AND earnings__$_ < 615 OFFSET 499
In 2005 the earnings is less than 615,499 with less than 2 LPGA wins and what smallest Money list rank?
CREATE TABLE table_name_2 (money_list_rank INTEGER, earnings__$_ VARCHAR, lpga_wins VARCHAR, year VARCHAR)
SELECT COUNT(year) FROM table_name_39 WHERE date__opening_ = "september 21"
What is the total number of Year(s), when Date (Opening) is "September 21"?
CREATE TABLE table_name_39 (year VARCHAR, date__opening_ VARCHAR)
SELECT team_1 FROM table_name_9 WHERE season = "2005" AND score = "0-4"
In the 2005 season with a score of 0-4 what is the team 1?
CREATE TABLE table_name_9 (team_1 VARCHAR, season VARCHAR, score VARCHAR)
SELECT SUM(place) FROM table_name_30 WHERE machine = "yamaha" AND speed = "89.85mph"
How many places have yamaha as the machine, and 89.85mph as the speed?
CREATE TABLE table_name_30 (place INTEGER, machine VARCHAR, speed VARCHAR)
SELECT team FROM table_25318033_1 WHERE points = "137"
What team has 137 points?
CREATE TABLE table_25318033_1 (team VARCHAR, points VARCHAR)
SELECT rank FROM table_name_29 WHERE silver < 6 AND bronze > 4 AND total = 10
What is Rank, when Silver is less than 6, when Bronze is greater than 4, and when Total is 10?
CREATE TABLE table_name_29 (rank VARCHAR, total VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT COUNT(*) FROM Customers WHERE NOT customer_id IN (SELECT customer_id FROM Accounts)
Show the number of all customers without an account.
CREATE TABLE Customers (customer_id VARCHAR); CREATE TABLE Accounts (customer_id VARCHAR)
SELECT date, zip_code FROM weather WHERE min_dew_point_f < (SELECT MIN(min_dew_point_f) FROM weather WHERE zip_code = 94107)
On which day and in which zip code was the min dew point lower than any day in zip code 94107?
CREATE TABLE weather (date VARCHAR, zip_code VARCHAR, min_dew_point_f INTEGER)
SELECT written_by FROM table_28195898_1 WHERE directed_by = "Nick Marck"
Who wrote the episode which was directed by Nick Marck?
CREATE TABLE table_28195898_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT COUNT(status) FROM table_2933761_1 WHERE played_by = "Maurice Dean Wint"
How many characters does Maurice Dean Wint play in the movie Cube?
CREATE TABLE table_2933761_1 (status VARCHAR, played_by VARCHAR)
SELECT COUNT(laps) FROM table_name_42 WHERE grid = 3
How many total laps for a grid of 3?
CREATE TABLE table_name_42 (laps VARCHAR, grid VARCHAR)
SELECT year FROM table_name_96 WHERE rank = "24"
In what year was the rank 24?
CREATE TABLE table_name_96 (year VARCHAR, rank VARCHAR)
SELECT no_in_season FROM table_2618152_1 WHERE written_by = "Matt Witten , Richard Sweren"
What is the season number of the episode written by Matt Witten , Richard Sweren?
CREATE TABLE table_2618152_1 (no_in_season VARCHAR, written_by VARCHAR)
SELECT COUNT(grid) FROM table_name_6 WHERE driver = "dave walker"
How many grids does dave walker have?
CREATE TABLE table_name_6 (grid VARCHAR, driver VARCHAR)
SELECT screening_started FROM table_name_40 WHERE screening_completed = "3 may 2006"
Name the screening started when it was completed 3 may 2006
CREATE TABLE table_name_40 (screening_started VARCHAR, screening_completed VARCHAR)
SELECT COUNT(incumbent) FROM table_1341453_40 WHERE first_elected = "1984"
How many incumbents were first elected in 1984?
CREATE TABLE table_1341453_40 (incumbent VARCHAR, first_elected VARCHAR)
SELECT branding FROM table_2610582_2 WHERE callsign = "DWCI-TV"
What is the branding of the callsign DWCI-TV?
CREATE TABLE table_2610582_2 (branding VARCHAR, callsign VARCHAR)
SELECT COUNT(crowd) FROM table_name_21 WHERE venue = "arden street oval"
How many people at Arden Street Oval?
CREATE TABLE table_name_21 (crowd VARCHAR, venue VARCHAR)
SELECT COUNT(points) FROM table_name_13 WHERE wins > 14 AND goal_difference = 14 AND draws > 6
How many points have more than 14 wins, a goal difference of 14, and more than 6 draws?
CREATE TABLE table_name_13 (points VARCHAR, draws VARCHAR, wins VARCHAR, goal_difference VARCHAR)
SELECT party FROM table_1341577_44 WHERE incumbent = "Beau Boulter"
What party did Beau Boulter represent?
CREATE TABLE table_1341577_44 (party VARCHAR, incumbent VARCHAR)
SELECT 1995 FROM table_name_95 WHERE 2000 = "a" AND tournament = "indian wells"
What was the value in 1995 for A in 2000 at the Indian Wells tournament?
CREATE TABLE table_name_95 (tournament VARCHAR)
SELECT purpose FROM table_name_96 WHERE location = "enewetak, runit (yvonne)" AND name = "cactus"
Which Purpose has a Location of enewetak, runit (yvonne) and the Name of cactus?
CREATE TABLE table_name_96 (purpose VARCHAR, location VARCHAR, name VARCHAR)
SELECT COUNT(game) FROM table_27715173_10 WHERE date = "March 12"
How many games were held on March 12?
CREATE TABLE table_27715173_10 (game VARCHAR, date VARCHAR)
SELECT team FROM table_2503102_1 WHERE car_sponsor_s_ = "HydroxyCut"
What team is sponsored by hydroxycut?
CREATE TABLE table_2503102_1 (team VARCHAR, car_sponsor_s_ VARCHAR)
SELECT seasons FROM table_name_45 WHERE percentage = "13.56%"
Which season has a percentage of 13.56%?
CREATE TABLE table_name_45 (seasons VARCHAR, percentage VARCHAR)
SELECT record FROM table_22801165_1 WHERE date = "Nov. 5"
What was the Cowboys' record for Nov. 5, 1966?
CREATE TABLE table_22801165_1 (record VARCHAR, date VARCHAR)
SELECT surface FROM table_name_99 WHERE score = "3-6, 1-6"
On what Surface was the match with a Score of 3-6, 1-6 played?
CREATE TABLE table_name_99 (surface VARCHAR, score VARCHAR)
SELECT COUNT(type) FROM table_256286_5 WHERE description = "Calling Convention to revise State Constitution"
How many type classifications are given to the measure with the description, calling convention to revise state constitution?
CREATE TABLE table_256286_5 (type VARCHAR, description VARCHAR)
SELECT decay_mode FROM table_name_28 WHERE discovery_year = "1984" AND isotope = "265m hs"
What is the decay mode of the 265m hs isotope discovered in 1984?
CREATE TABLE table_name_28 (decay_mode VARCHAR, discovery_year VARCHAR, isotope VARCHAR)
SELECT away_team FROM table_name_27 WHERE venue = "punt road oval"
What is the away team's score at punt road oval?
CREATE TABLE table_name_27 (away_team VARCHAR, venue VARCHAR)
SELECT position FROM table_name_58 WHERE years = "1999"
What was the position in 1999?
CREATE TABLE table_name_58 (position VARCHAR, years VARCHAR)
SELECT start___utc__ FROM table_22385461_9 WHERE spacecraft = "Shenzhou 7 EVA 1"
If the spacecraft is the Shenzhou 7 Eva 1, what is the start (utc) date and time?
CREATE TABLE table_22385461_9 (start___utc__ VARCHAR, spacecraft VARCHAR)
SELECT system FROM table_name_9 WHERE license = "freeware"
What is the System with a freeware License?
CREATE TABLE table_name_9 (system VARCHAR, license VARCHAR)
SELECT COUNT(ave_attendance) FROM table_2970978_1 WHERE ___ave_on_prev_season = "+645"
How many values of attendance occur when ave. on previous season is +645?
CREATE TABLE table_2970978_1 (ave_attendance VARCHAR, ___ave_on_prev_season VARCHAR)
SELECT COUNT(laps) FROM table_name_55 WHERE driver = "jacques villeneuve" AND grid > 7
how many laps was the driver jacques villeneuve and the grid more than 7?
CREATE TABLE table_name_55 (laps VARCHAR, driver VARCHAR, grid VARCHAR)
SELECT remarks FROM table_name_99 WHERE class_from_1928 = "cid-21b"
What were the remarks for the coach having a class from 1928 of Cid-21B?
CREATE TABLE table_name_99 (remarks VARCHAR, class_from_1928 VARCHAR)
SELECT total FROM table_name_41 WHERE set_1 = "24:26"
What is the Total of the 24:26 Set 1?
CREATE TABLE table_name_41 (total VARCHAR, set_1 VARCHAR)
SELECT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "GELL" AND T1.lastname = "TAMI"
Find the last names of all the teachers that teach GELL TAMI.
CREATE TABLE teachers (lastname VARCHAR, classroom VARCHAR); CREATE TABLE list (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
SELECT semifinalists FROM table_name_23 WHERE finalist = "andre agassi"
Which Semifinalists has a Finalist of andre agassi?
CREATE TABLE table_name_23 (semifinalists VARCHAR, finalist VARCHAR)
SELECT time FROM table_name_3 WHERE team = "honda 250cc" AND rank > 2 AND rider = "chris palmer"
Team of honda 250cc, and a Rank larger than 2, and a Rider of chris palmer is what time?
CREATE TABLE table_name_3 (time VARCHAR, rider VARCHAR, team VARCHAR, rank VARCHAR)
SELECT sport FROM table_name_7 WHERE gold > 0 AND silver = 2
What sport has a Gold larger than 0, and a Silver of 2?
CREATE TABLE table_name_7 (sport VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT MAX(_number) FROM table_15190346_2 WHERE attendance = "79,280"
What is the number of the bowl game when attendance was 79,280?
CREATE TABLE table_15190346_2 (_number INTEGER, attendance VARCHAR)
SELECT AVG(longitude) FROM table_name_46 WHERE water__sqmi_ = 0.093 AND geo_id > 3808174460
What is the average longitude for the water area of 0.093 and has a GEO ID tag larger than 3808174460?
CREATE TABLE table_name_46 (longitude INTEGER, water__sqmi_ VARCHAR, geo_id VARCHAR)
SELECT COUNT(location_attendance) FROM table_22822559_4 WHERE game = 7
List the location and number of fans in attendance for game 7/
CREATE TABLE table_22822559_4 (location_attendance VARCHAR, game VARCHAR)
SELECT date FROM table_name_15 WHERE tournament = "versmold"
What date was versmold?
CREATE TABLE table_name_15 (date VARCHAR, tournament VARCHAR)
SELECT team FROM table_name_96 WHERE wins = 0
Wins of 0 involves what team?
CREATE TABLE table_name_96 (team VARCHAR, wins VARCHAR)
SELECT MIN(yes) FROM table_1705429_1 WHERE constituency = "Dublin South"
Name the least yes for dublin south
CREATE TABLE table_1705429_1 (yes INTEGER, constituency VARCHAR)
SELECT championship FROM table_1918850_2 WHERE outcome = "Winner" AND surface = "Hard" AND partner = "Nicole Provis" AND opponents_in_the_final = "Helena Suková Tom Nijssen"
which championship had helena suková tom nijssen as opponents in the final and nicole provis as partner, the surface was hard and the outcome was winner
CREATE TABLE table_1918850_2 (championship VARCHAR, opponents_in_the_final VARCHAR, partner VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT week_13_nov_23 FROM table_name_73 WHERE week_6_oct_5 = "oklahoma state (5-0)"
Which Week 13 Nov 23 has a Week 6 Oct 5 of oklahoma state (5-0)?
CREATE TABLE table_name_73 (week_13_nov_23 VARCHAR, week_6_oct_5 VARCHAR)
SELECT week_7_oct_12 FROM table_name_15 WHERE week_11_nov_9 = "week 11 nov 9"
Which Week 7 Oct 12 has a Week 11 Nov 9 of week 11 nov 9?
CREATE TABLE table_name_15 (week_7_oct_12 VARCHAR, week_11_nov_9 VARCHAR)
SELECT COUNT(laps) FROM table_name_29 WHERE grid > 8 AND points < 11 AND driver = "will power"
How many laps are associated with a grid greater than 8, under 11 points, and will power?
CREATE TABLE table_name_29 (laps VARCHAR, driver VARCHAR, grid VARCHAR, points VARCHAR)
SELECT margin_of_victory FROM table_name_54 WHERE tournament = "bob hope desert classic"
What is the Margin of victory at the Bob Hope Desert Classic Tournament?
CREATE TABLE table_name_54 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT 1 AS st_runner_up FROM table_24014744_1 WHERE putri_pariwisata_indonesia = "Albertina Fransisca Mailoa"
Who won 2nd place when albertina fransisca mailoa was the winner of the putri pariwisata contest?
CREATE TABLE table_24014744_1 (putri_pariwisata_indonesia VARCHAR)
SELECT team_chassis FROM table_name_66 WHERE pts < 65
Which Team/Chassis has less than 65 points?
CREATE TABLE table_name_66 (team_chassis VARCHAR, pts INTEGER)
SELECT COUNT(pick) FROM table_name_71 WHERE name = "george rosso" AND overall < 296
What pick did George Rosso get drafted when the overall was less than 296?
CREATE TABLE table_name_71 (pick VARCHAR, name VARCHAR, overall VARCHAR)