answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT original_title FROM table_18162883_1 WHERE film_title_used_in_nomination = "Run for Money"
What was the original title of Run for Money?
CREATE TABLE table_18162883_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT COUNT(rank__all__2013) FROM table_23950611_2 WHERE name = "Cenovus Energy"
How many companies named cenovus energy?
CREATE TABLE table_23950611_2 (rank__all__2013 VARCHAR, name VARCHAR)
SELECT school FROM table_name_68 WHERE college = "duke"
Which school is the player who is headed to Duke from?
CREATE TABLE table_name_68 (school VARCHAR, college VARCHAR)
SELECT AVG(react) FROM table_name_16 WHERE rank < 4 AND nationality = "trinidad and tobago" AND time > 45.13
Which Reaction has a Rank smaller than 4, and a Nationality of trinidad and tobago, and a Time larger than 45.13?
CREATE TABLE table_name_16 (react INTEGER, time VARCHAR, rank VARCHAR, nationality VARCHAR)
SELECT MIN(shot_pct) FROM table_name_1 WHERE ends_won > 29 AND ends_lost < 26
What is the smallest shot % with ends won larger than 29 and ends lost smaller than 26?
CREATE TABLE table_name_1 (shot_pct INTEGER, ends_won VARCHAR, ends_lost VARCHAR)
SELECT 1995 FROM table_name_48 WHERE 1999 = "1r" AND 1998 = "4r"
What 1995 has 1r as the 1999, and a 1998 of 4r?
CREATE TABLE table_name_48 (Id VARCHAR)
SELECT winnings FROM table_1909647_2 WHERE wins = 2
What's the amount of winnings (in $) in the year with 2 wins?
CREATE TABLE table_1909647_2 (winnings VARCHAR, wins VARCHAR)
SELECT death_2012 FROM table_25703_1 WHERE death_2013 = 140 AND january_september_2013 = "Moscow Oblast"
What are the death/2012 number when death/2013 is 140 and January–September 2013 is Moscow Oblast?
CREATE TABLE table_25703_1 (death_2012 VARCHAR, death_2013 VARCHAR, january_september_2013 VARCHAR)
SELECT AVG(grid) FROM table_name_57 WHERE driver = "jo siffert"
What is the average grid for jo siffert?
CREATE TABLE table_name_57 (grid INTEGER, driver VARCHAR)
SELECT attendance FROM table_name_71 WHERE opponent = "new york yankees" AND date = "may 12"
What was the Attendance on May 12, when the New York Yankees were the Opponent?
CREATE TABLE table_name_71 (attendance VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT COUNT(capacity) FROM table_name_28 WHERE venue = "city stadium, borisov"
What is the total number for Capacity at city stadium, borisov?
CREATE TABLE table_name_28 (capacity VARCHAR, venue VARCHAR)
SELECT venue FROM table_name_79 WHERE opposing_team = "manchester united" AND round = "5th round replay"
Which Venue has an Opposing Team of manchester united, and a Round of 5th round replay?
CREATE TABLE table_name_79 (venue VARCHAR, opposing_team VARCHAR, round VARCHAR)
SELECT award FROM table_name_23 WHERE recipient = "hannah gal"
What award was Hannah Gal the recipient of?
CREATE TABLE table_name_23 (award VARCHAR, recipient VARCHAR)
SELECT game_site FROM table_name_76 WHERE week > 13 AND result = "l 20–0"
Which game site has a Week bigger than 13, and a Result of l 20–0?
CREATE TABLE table_name_76 (game_site VARCHAR, week VARCHAR, result VARCHAR)
SELECT MAX(game) FROM table_17288825_7 WHERE location_attendance = "Conseco Fieldhouse 14,486"
At what game number was the attendance at Conseco Fieldhouse 14,486?
CREATE TABLE table_17288825_7 (game INTEGER, location_attendance VARCHAR)
SELECT council_area FROM table_name_51 WHERE urban_sub_area = "larkhall"
What is the council area for the Larkhall urban sub-area?
CREATE TABLE table_name_51 (council_area VARCHAR, urban_sub_area VARCHAR)
SELECT MAX(b_score) FROM table_name_4 WHERE a_score < 6.5
What is the greatest B score when the A score was less than 6.5?
CREATE TABLE table_name_4 (b_score INTEGER, a_score INTEGER)
SELECT results FROM table_name_73 WHERE district = "washington 2"
What were the Results in the Washington 2 District?
CREATE TABLE table_name_73 (results VARCHAR, district VARCHAR)
SELECT MIN(gdp_per_capita_nominal__) AS $_ FROM table_1610496_3 WHERE population__millions_ = "63.056"
What is the nominal GDP per capita when the population is 63.056 million?
CREATE TABLE table_1610496_3 (gdp_per_capita_nominal__ INTEGER, population__millions_ VARCHAR)
SELECT skip FROM table_name_21 WHERE second = "vicki adams"
Which Skip has a Second of vicki adams?
CREATE TABLE table_name_21 (skip VARCHAR, second VARCHAR)
SELECT AVG(reaction) FROM table_name_53 WHERE heat > 1 AND name = "brigitte foster-hylton"
What is the average reaction for brigitte foster-hylton after heat 1?
CREATE TABLE table_name_53 (reaction INTEGER, heat VARCHAR, name VARCHAR)
SELECT opponent FROM table_name_35 WHERE date = "july 21"
What was the opponent for july 21?
CREATE TABLE table_name_35 (opponent VARCHAR, date VARCHAR)
SELECT finalist FROM table_name_57 WHERE host_city = "tartu" AND season = 2010
Who was the finalist in the 2010 season in the host city tartu?
CREATE TABLE table_name_57 (finalist VARCHAR, host_city VARCHAR, season VARCHAR)
SELECT no_party_preference FROM table_27003186_3 WHERE city = "Murrieta"
What is the no party preference when the city is murrieta?
CREATE TABLE table_27003186_3 (no_party_preference VARCHAR, city VARCHAR)
SELECT 2004 FROM table_name_19 WHERE 2003 = "36,026"
Name the 2004 which has a 2003 of 36,026?
CREATE TABLE table_name_19 (Id VARCHAR)
SELECT english FROM table_name_26 WHERE german = "leben"
Which English has German of leben?
CREATE TABLE table_name_26 (english VARCHAR, german VARCHAR)
SELECT service FROM table_name_88 WHERE language = "bengali"
What network is in the language of Bengali?
CREATE TABLE table_name_88 (service VARCHAR, language VARCHAR)
SELECT SUM(lost) FROM table_name_76 WHERE position = 3 AND drawn > 3
Which Lost has a Position of 3, and a Drawn larger than 3?
CREATE TABLE table_name_76 (lost INTEGER, position VARCHAR, drawn VARCHAR)
SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY COUNT(*) DESC LIMIT 1
Show the station name with greatest number of trains.
CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR)
SELECT total FROM table_name_24 WHERE finish = "t22"
Name the total with finish of t22
CREATE TABLE table_name_24 (total VARCHAR, finish VARCHAR)
SELECT AVG(pick__number) FROM table_name_54 WHERE position = "wide receiver" AND college = "southern miss" AND overall < 186
What was the Pick Number when the position was wide receiver, the college was Southern Miss with an overall less than 186?
CREATE TABLE table_name_54 (pick__number INTEGER, overall VARCHAR, position VARCHAR, college VARCHAR)
SELECT SUM(1980) FROM table_name_89 WHERE 1996[2] = 127 AND 1990 < 120
1996[2] of 127, and a 1990 smaller than 120 is the sum of 1990?
CREATE TABLE table_name_89 (Id VARCHAR)
SELECT game_site FROM table_14941284_1 WHERE date = "October 18, 1981"
When it is October 18, 1981 where is the game site?
CREATE TABLE table_14941284_1 (game_site VARCHAR, date VARCHAR)
SELECT MIN(against) FROM table_name_16 WHERE venue = "twickenham, london" AND status = "five nations" AND opposing_teams = "ireland"
What is the lowest against score for Twickenham, London with the status of Five Nations against Ireland?
CREATE TABLE table_name_16 (against INTEGER, opposing_teams VARCHAR, venue VARCHAR, status VARCHAR)
SELECT score FROM table_name_56 WHERE home = "tampa bay"
What was the score of the home game at Tampa Bay?
CREATE TABLE table_name_56 (score VARCHAR, home VARCHAR)
SELECT class FROM table_name_4 WHERE frequency_mhz < 103.1 AND city_of_license = "morro bay, california"
What class has a MHZ frequency under 103.1 licensed in morro bay, california?
CREATE TABLE table_name_4 (class VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT no FROM table_26914076_2 WHERE directed_by = "Simon Cellan Jones"
Name the number for simon cellan jones
CREATE TABLE table_26914076_2 (no VARCHAR, directed_by VARCHAR)
SELECT country FROM table_name_71 WHERE icao = "zgha"
Tell me the country with ICAO of zgha
CREATE TABLE table_name_71 (country VARCHAR, icao VARCHAR)
SELECT AVG(gold) FROM table_name_98 WHERE silver > 2 AND nation = "west germany"
What is the average value for Gold, when the value for Silver is greater than 2, and when the Nation is West Germany?
CREATE TABLE table_name_98 (gold INTEGER, silver VARCHAR, nation VARCHAR)
SELECT muzzle_device FROM table_name_18 WHERE barrel_twist = "1:10"
Name the muzzel device with barrel twist of 1:10
CREATE TABLE table_name_18 (muzzle_device VARCHAR, barrel_twist VARCHAR)
SELECT MIN(game) FROM table_13762472_5
What is the lowest numbered game on the list?
CREATE TABLE table_13762472_5 (game INTEGER)
SELECT home_record FROM table_22993636_2 WHERE percentage = ".168"
What's the home record of the team with percentage of .168?
CREATE TABLE table_22993636_2 (home_record VARCHAR, percentage VARCHAR)
SELECT SUM(swimsuit) FROM table_name_79 WHERE average = 9.733 AND interview > 9.654
What is the sum of Swimsuit scores where the average score is 9.733 and the interview score is higher than 9.654?
CREATE TABLE table_name_79 (swimsuit INTEGER, average VARCHAR, interview VARCHAR)
SELECT calorie FROM table_name_64 WHERE watt_hour = "1"
How many calories is 1 watt hour?
CREATE TABLE table_name_64 (calorie VARCHAR, watt_hour VARCHAR)
SELECT country FROM table_name_30 WHERE date = "october 24, 2008"
What is the country when the date shows October 24, 2008?
CREATE TABLE table_name_30 (country VARCHAR, date VARCHAR)
SELECT latest_stable_release FROM table_name_83 WHERE name = "crawltrack"
What is the latest stable release date for Crawltrack?
CREATE TABLE table_name_83 (latest_stable_release VARCHAR, name VARCHAR)
SELECT score FROM table_name_6 WHERE country = "australia" AND player = "peter lonard"
What was Australia's score when Peter Lonard played?
CREATE TABLE table_name_6 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT tournament FROM table_name_66 WHERE 2012 = "3r"
What is the Tournament, when 2012 is 3R?
CREATE TABLE table_name_66 (tournament VARCHAR)
SELECT vacator FROM table_1013168_3 WHERE district = "Louisiana 1st"
What is the name of the vacator for district Louisiana 1st?
CREATE TABLE table_1013168_3 (vacator VARCHAR, district VARCHAR)
SELECT first_elected FROM table_2668378_5 WHERE district = "Kentucky 3"
Name the first elected for kentucky 3
CREATE TABLE table_2668378_5 (first_elected VARCHAR, district VARCHAR)
SELECT score FROM table_name_32 WHERE home_team = "sheffield wednesday"
What was the score of the game when Sheffield Wednesday was the home team?
CREATE TABLE table_name_32 (score VARCHAR, home_team VARCHAR)
SELECT season FROM table_name_63 WHERE league = "bcla" AND goals = "6"
What is the Season with goals of 6 and BCLA as the league?
CREATE TABLE table_name_63 (season VARCHAR, league VARCHAR, goals VARCHAR)
SELECT rider FROM table_name_84 WHERE speed = "104.630mph"
Which rider had a speed of 104.630mph?
CREATE TABLE table_name_84 (rider VARCHAR, speed VARCHAR)
SELECT SUM(week) FROM table_name_20 WHERE date = "october 21, 1974" AND attendance < 50 OFFSET 623
What is the sum of the weeks that games occured on october 21, 1974 and less than 50,623 fans attended?
CREATE TABLE table_name_20 (week INTEGER, date VARCHAR, attendance VARCHAR)
SELECT club FROM table_name_80 WHERE name = "hafiz abu sujad"
Which club is associated with Hafiz Abu Sujad?
CREATE TABLE table_name_80 (club VARCHAR, name VARCHAR)
SELECT party FROM table_name_1 WHERE municipality = "tampere"
Municipality of tampere involves which party?
CREATE TABLE table_name_1 (party VARCHAR, municipality VARCHAR)
SELECT place FROM table_name_18 WHERE score > 67 AND country = "united states" AND to_par = "e" AND player = "bunky henry"
When Bunky Henry of the United States scored higher than 67 and his To par was e, what was his place?
CREATE TABLE table_name_18 (place VARCHAR, player VARCHAR, to_par VARCHAR, score VARCHAR, country VARCHAR)
SELECT round FROM table_name_72 WHERE h___a = "a" AND opponents = "notts county"
Which round has an H/A of A with Notts County as opponents?
CREATE TABLE table_name_72 (round VARCHAR, h___a VARCHAR, opponents VARCHAR)
SELECT date FROM table_name_34 WHERE record = "1-4"
Which Date has a Record of 1-4?
CREATE TABLE table_name_34 (date VARCHAR, record VARCHAR)
SELECT position FROM table_14342592_3 WHERE player = "Tom Hammond"
What positions does Tom Hammond play?
CREATE TABLE table_14342592_3 (position VARCHAR, player VARCHAR)
SELECT COUNT(transfer_fee___) AS €_million_ FROM table_name_13 WHERE player = "afonso alves" AND year > 2008
How many transfer fees did Afonso Alves have after 2008?
CREATE TABLE table_name_13 (transfer_fee___ VARCHAR, player VARCHAR, year VARCHAR)
SELECT visiting_team FROM table_name_49 WHERE stadium = "3com park" AND date = "october 7"
What visiting team played at 3com park on October 7?
CREATE TABLE table_name_49 (visiting_team VARCHAR, stadium VARCHAR, date VARCHAR)
SELECT year FROM table_name_79 WHERE organization = "legatum institute"
What year for the legatum institute?
CREATE TABLE table_name_79 (year VARCHAR, organization VARCHAR)
SELECT language FROM table_name_24 WHERE original_title = "la diagonale du fou"
What language is the film La Diagonale du Fou in?
CREATE TABLE table_name_24 (language VARCHAR, original_title VARCHAR)
SELECT score FROM table_name_97 WHERE date = "2 june 2008"
Name the score for 2 june 2008
CREATE TABLE table_name_97 (score VARCHAR, date VARCHAR)
SELECT date FROM table_name_36 WHERE home_team = "collingwood"
When did Collingwood play?
CREATE TABLE table_name_36 (date VARCHAR, home_team VARCHAR)
SELECT COUNT(round) FROM table_name_38 WHERE event = "k-1 mma romanex"
The K-1 MMA Romanex event went how many rounds?
CREATE TABLE table_name_38 (round VARCHAR, event VARCHAR)
SELECT surface FROM table_name_75 WHERE score = "4–6, 6–3, 6–7 (5–7)"
What is the Surface when the score was 4–6, 6–3, 6–7 (5–7)?
CREATE TABLE table_name_75 (surface VARCHAR, score VARCHAR)
SELECT AVG(silver) FROM table_name_57 WHERE bronze < 1 AND gold > 0
What is the average for silver when bronze is less than 1, and gold is more than 0?
CREATE TABLE table_name_57 (silver INTEGER, bronze VARCHAR, gold VARCHAR)
SELECT AVG(week) FROM table_name_75 WHERE attendance < 22 OFFSET 604
What is the average week number of all the matches where less than 22,604 people attended?
CREATE TABLE table_name_75 (week INTEGER, attendance INTEGER)
SELECT COUNT(draw) FROM table_name_44 WHERE televote > 18 AND artist = "elizabeth anastasiou" AND jury > 4
How much Draw has a Televote larger than 18, and an Artist of elizabeth anastasiou, and a Jury larger than 4?
CREATE TABLE table_name_44 (draw VARCHAR, jury VARCHAR, televote VARCHAR, artist VARCHAR)
SELECT record FROM table_name_40 WHERE date = "march 27"
What was the record on March 27?
CREATE TABLE table_name_40 (record VARCHAR, date VARCHAR)
SELECT winner FROM table_name_76 WHERE name = "fedex tour of calabarzon"
Who won the Fedex tour of Calabarzon?
CREATE TABLE table_name_76 (winner VARCHAR, name VARCHAR)
SELECT high_points FROM table_23211041_5 WHERE game = 4
Who had the most points in game 4?
CREATE TABLE table_23211041_5 (high_points VARCHAR, game VARCHAR)
SELECT runner_up FROM table_28601467_1 WHERE winner = "Ireland 59 points"
What is the runner-up record where winner record is Ireland 59 points?
CREATE TABLE table_28601467_1 (runner_up VARCHAR, winner VARCHAR)
SELECT SUM(area_km_2) FROM table_name_70 WHERE pop_density_people_km_2 > 91 AND member_state = "italy" AND population_in_millions < 58.8
What is the area km2 of the area with a pop density people/km2 larger than 91, is a member state of Italy, and had less than 58.8 population in millions?
CREATE TABLE table_name_70 (area_km_2 INTEGER, population_in_millions VARCHAR, pop_density_people_km_2 VARCHAR, member_state VARCHAR)
SELECT batsmen FROM table_name_76 WHERE location = "the brit oval"
Who was the batsmen at the Brit Oval location?
CREATE TABLE table_name_76 (batsmen VARCHAR, location VARCHAR)
SELECT democratic_ticket FROM table_name_68 WHERE liberal_ticket = "edward r. dudley"
Who ran under the Democratic ticket when Edward R. Dudley ran under the Liberal ticket?
CREATE TABLE table_name_68 (democratic_ticket VARCHAR, liberal_ticket VARCHAR)
SELECT 2011 FROM table_name_40 WHERE 2005 = "2r" AND 2003 = "2r"
What was 2011, when 2005 was 2R, and when 2003 was 2R?
CREATE TABLE table_name_40 (Id VARCHAR)
SELECT COUNT(DISTINCT RESULT) FROM battle
How many different results are there for the battles?
CREATE TABLE battle (RESULT VARCHAR)
SELECT international_tourist_arrivals__2011_ FROM table_name_6 WHERE international_tourist_arrivals__2012_ = "23.4 million"
In 2011, how many tourists visited the country that had 23.4 million tourists in 2012?
CREATE TABLE table_name_6 (international_tourist_arrivals__2011_ VARCHAR, international_tourist_arrivals__2012_ VARCHAR)
SELECT genre FROM table_name_14 WHERE game = "mass effect"
What is the genre of the Mass Effect game?
CREATE TABLE table_name_14 (genre VARCHAR, game VARCHAR)
SELECT COUNT(callsign) FROM table_1979203_1 WHERE branding = "Telemundo 47"
how many callsigns are for the branding telemundo 47
CREATE TABLE table_1979203_1 (callsign VARCHAR, branding VARCHAR)
SELECT distance FROM table_name_38 WHERE stages = "16" AND year = "1997"
How long was the 16 staged event in 1997?
CREATE TABLE table_name_38 (distance VARCHAR, stages VARCHAR, year VARCHAR)
SELECT round FROM table_name_32 WHERE opposition = "adelaide united" AND attendance = "18,345"
What round was adelaide united the opposition with an attendance of 18,345?
CREATE TABLE table_name_32 (round VARCHAR, opposition VARCHAR, attendance VARCHAR)
SELECT background FROM table_24501530_1 WHERE result = "Fired in week 5"
What is the background of the person fired in week 5?
CREATE TABLE table_24501530_1 (background VARCHAR, result VARCHAR)
SELECT SUM(rank) FROM table_name_39 WHERE built < 2007 AND building = "howard johnson hotel bucharest"
What is the sum of Rank with a build year earlier than 2007 for the howard johnson hotel bucharest?
CREATE TABLE table_name_39 (rank INTEGER, built VARCHAR, building VARCHAR)
SELECT home_team FROM table_name_40 WHERE venue = "punt road oval"
Which home team plays at Punt Road Oval?
CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR)
SELECT partner FROM table_name_35 WHERE surface = "hard" AND tournament = "amarante"
Who was Silva's Partner in the Amarante Tournament played on a Hard Surface?
CREATE TABLE table_name_35 (partner VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT award FROM table_name_81 WHERE result = "nominated" AND production = "an officer and a gentleman"
Which award was An Officer and a Gentleman nominated for?
CREATE TABLE table_name_81 (award VARCHAR, result VARCHAR, production VARCHAR)
SELECT COUNT(incarceration_rate_total) FROM table_25042332_31 WHERE incarceration_rate_female = 63
How many regions had an incarceration rate for females of 63?
CREATE TABLE table_25042332_31 (incarceration_rate_total VARCHAR, incarceration_rate_female VARCHAR)
SELECT MAX(against) FROM table_name_73 WHERE lost = 3 AND points < 30
What is the highest against when the lost is 3 with less than 30 points?
CREATE TABLE table_name_73 (against INTEGER, lost VARCHAR, points VARCHAR)
SELECT MAX(river_mile) FROM table_name_71 WHERE pool_length__miles_ = "42.2" AND lock_lift_drop__in_feet_ = "21"
What is the highest River Mile that has a pool length of 42.2 miles or a lock/lift drop of 21 feet?
CREATE TABLE table_name_71 (river_mile INTEGER, pool_length__miles_ VARCHAR, lock_lift_drop__in_feet_ VARCHAR)
SELECT to_par FROM table_name_76 WHERE country = "south africa"
What is the To Par score for the player from South Africa?
CREATE TABLE table_name_76 (to_par VARCHAR, country VARCHAR)
SELECT school_club_team FROM table_name_8 WHERE acquisition_via = "trade" AND name = "jondan salvador"
Which School/ Club Team acquired Jondan Salvador via trade?
CREATE TABLE table_name_8 (school_club_team VARCHAR, acquisition_via VARCHAR, name VARCHAR)
SELECT completions FROM table_name_36 WHERE yards = "10,098"
Which Completions has Yards of 10,098?
CREATE TABLE table_name_36 (completions VARCHAR, yards VARCHAR)
SELECT language FROM table_name_18 WHERE english_translation = "come to me"
what is the language when the english translation is come to me?
CREATE TABLE table_name_18 (language VARCHAR, english_translation VARCHAR)
SELECT position FROM table_name_38 WHERE goals = "0" AND tries < 1 AND player = "matt james"
With 0 Goals and less than 1 Tries, what is Matt James position?
CREATE TABLE table_name_38 (position VARCHAR, player VARCHAR, goals VARCHAR, tries VARCHAR)
SELECT player FROM table_name_35 WHERE place = "t9" AND country = "australia"
Which player is from Australia, and has a place of t9?
CREATE TABLE table_name_35 (player VARCHAR, place VARCHAR, country VARCHAR)
SELECT winning_team FROM table_name_74 WHERE circuit = "homestead-miami speedway"
Who was the winning team at the Homestead-Miami Speedway?
CREATE TABLE table_name_74 (winning_team VARCHAR, circuit VARCHAR)