answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT SUM(bronze) FROM table_name_22 WHERE silver = 0 AND gold = 0 AND nation = "denmark" AND total > 1
How many Bronzes that has a Silver of 0, and a Gold of 0, and a Nation of denmark, and a Total larger than 1?
CREATE TABLE table_name_22 (bronze INTEGER, total VARCHAR, nation VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT tennis FROM table_16423070_4 WHERE softball = "Ashland" AND volleyball = "Wooster"
who won tennis when ashland won softball and wooster won volleybal
CREATE TABLE table_16423070_4 (tennis VARCHAR, softball VARCHAR, volleyball VARCHAR)
SELECT event FROM table_name_62 WHERE location = "chandigarh , india"
Which Event is in chandigarh , india?
CREATE TABLE table_name_62 (event VARCHAR, location VARCHAR)
SELECT director FROM table_name_67 WHERE writer = "russell t davies and james moran"
Who was the director of the episode written by Russell T Davies and James Moran?
CREATE TABLE table_name_67 (director VARCHAR, writer VARCHAR)
SELECT MIN(top_10) FROM table_name_44 WHERE top_25 = 6 AND tournament = "u.s. open" AND cuts_made > 9
What is the lowest Top-10 when the Top-25 is 6, and a Tournament of u.s. open, and a Cut made larger than 9?
CREATE TABLE table_name_44 (top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR, tournament VARCHAR)
SELECT MIN(season) FROM table_1004033_1 WHERE team = "MetroStars"
When did the Metrostars have their first Rookie of the Year winner?
CREATE TABLE table_1004033_1 (season INTEGER, team VARCHAR)
SELECT MAX(attendance) FROM table_name_3 WHERE loss = "batista (4-5)"
Which Attendance is the highest one that has a Loss of batista (4-5)?
CREATE TABLE table_name_3 (attendance INTEGER, loss VARCHAR)
SELECT college FROM table_name_36 WHERE pick__number = 331
Pick # of 331 went to which college?
CREATE TABLE table_name_36 (college VARCHAR, pick__number VARCHAR)
SELECT score FROM table_name_34 WHERE team = "toronto"
What was the score when the jazz played against toronto?
CREATE TABLE table_name_34 (score VARCHAR, team VARCHAR)
SELECT 20 AS _questions FROM table_1566852_5 WHERE interview_subject = "Derek Jeter"
Name the 20 questions for derek jeter
CREATE TABLE table_1566852_5 (interview_subject VARCHAR)
SELECT wins FROM table_17751942_4 WHERE team = "Erie Otters"
How many wins do the Erie Otters have?
CREATE TABLE table_17751942_4 (wins VARCHAR, team VARCHAR)
SELECT country FROM table_name_60 WHERE place = "2"
Which Country has a Place of 2?
CREATE TABLE table_name_60 (country VARCHAR, place VARCHAR)
SELECT college FROM table_name_80 WHERE round < 2
Which college had rounds smaller than 2?
CREATE TABLE table_name_80 (college VARCHAR, round INTEGER)
SELECT country FROM table_name_15 WHERE name = "glory alozie"
What country does Glory Alozie play for?
CREATE TABLE table_name_15 (country VARCHAR, name VARCHAR)
SELECT class FROM table_name_20 WHERE stages_won = "2" AND position = "dnf"
What is the class that that won 2 stages and has a position of DNF?
CREATE TABLE table_name_20 (class VARCHAR, stages_won VARCHAR, position VARCHAR)
SELECT tries_for FROM table_name_58 WHERE "club" = "club"
What are the tries for a club of a club?
CREATE TABLE table_name_58 (tries_for VARCHAR)
SELECT result FROM table_1342013_12 WHERE incumbent = "Leo E. Allen"
What was the result when Leo E. Allen was elected?
CREATE TABLE table_1342013_12 (result VARCHAR, incumbent VARCHAR)
SELECT try_diff FROM table_name_42 WHERE points_against = "213"
What is Try Diff, when Points Against is 213?
CREATE TABLE table_name_42 (try_diff VARCHAR, points_against VARCHAR)
SELECT rank FROM table_name_78 WHERE chassis = "cadillac northstar lmp02"
What is the rank of the cadillac northstar lmp02 chassis?
CREATE TABLE table_name_78 (rank VARCHAR, chassis VARCHAR)
SELECT english FROM table_name_61 WHERE italian = "cavallo"
what is the english word for cavallo
CREATE TABLE table_name_61 (english VARCHAR, italian VARCHAR)
SELECT party FROM table_1342198_13 WHERE incumbent = "Sid Simpson"
What party does sid simpson represent?
CREATE TABLE table_1342198_13 (party VARCHAR, incumbent VARCHAR)
SELECT date FROM table_name_25 WHERE label = "grilled cheese"
What Date has a Label of grilled cheese?
CREATE TABLE table_name_25 (date VARCHAR, label VARCHAR)
SELECT points FROM table_25352324_5 WHERE rebounds = 6 AND blocks = 0
What is every value for points if rebounds is 6 and blocks is 0?
CREATE TABLE table_25352324_5 (points VARCHAR, rebounds VARCHAR, blocks VARCHAR)
SELECT tyre FROM table_name_55 WHERE rounds = "all" AND team = "nismo" AND drivers = "satoshi motoyama"
What is the tyre of nismo team member satoshi motoyama when he has rounds of all?
CREATE TABLE table_name_55 (tyre VARCHAR, drivers VARCHAR, rounds VARCHAR, team VARCHAR)
SELECT SUM(byes) FROM table_name_24 WHERE wins < 16 AND losses = 8 AND mininera_dfl = "penshurst" AND against < 1405
WHAT ARE THE BYES WITH A WIN SMALLER THAN 16, 8 LOSSES, AND AT PENSHURST, WITH AGAINST SMALLER THAN 1405?
CREATE TABLE table_name_24 (byes INTEGER, against VARCHAR, mininera_dfl VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT league FROM table_name_51 WHERE playoffs = "national semi-finals"
Which league's playoffs was national semi-finals?
CREATE TABLE table_name_51 (league VARCHAR, playoffs VARCHAR)
SELECT height__ft_ FROM table_name_83 WHERE contestant = "cynthia mobumba"
What is Cynthia Mobumba's height?
CREATE TABLE table_name_83 (height__ft_ VARCHAR, contestant VARCHAR)
SELECT position_in_table FROM table_name_13 WHERE date_of_vacancy = "4 december 2008"
What is the table position for 4 December 2008 vacancy?
CREATE TABLE table_name_13 (position_in_table VARCHAR, date_of_vacancy VARCHAR)
SELECT score FROM table_name_91 WHERE result = "3-0 win"
What was the score of the 3-0 Win result?
CREATE TABLE table_name_91 (score VARCHAR, result VARCHAR)
SELECT COUNT(match) FROM table_name_32 WHERE lost = 0
How many matches have 0 as the lost?
CREATE TABLE table_name_32 (match VARCHAR, lost VARCHAR)
SELECT place FROM table_name_98 WHERE player = "gary player"
what is the place for gary player?
CREATE TABLE table_name_98 (place VARCHAR, player VARCHAR)
SELECT COUNT(round) FROM table_name_95 WHERE school_club_team = "tennessee state" AND overall < 261
What is the sum of all rounds where a Tennessee State player with an overall rank less than 261 was drafted?
CREATE TABLE table_name_95 (round VARCHAR, school_club_team VARCHAR, overall VARCHAR)
SELECT MIN(game) FROM table_27722734_12
What number was the first game?
CREATE TABLE table_27722734_12 (game INTEGER)
SELECT COUNT(country) FROM table_1081235_1 WHERE name_of_lava_dome = "Tata Sabaya lava domes"
How many countries are the Tata Sabaya Lava domes located in?
CREATE TABLE table_1081235_1 (country VARCHAR, name_of_lava_dome VARCHAR)
SELECT builder FROM table_name_22 WHERE year_built = "1929"
what was the builder in 1929
CREATE TABLE table_name_22 (builder VARCHAR, year_built VARCHAR)
SELECT MAX(lost) FROM table_name_63 WHERE points = 6
What is the highest lost that has 6 for points?
CREATE TABLE table_name_63 (lost INTEGER, points VARCHAR)
SELECT points FROM table_name_71 WHERE club = "seven sisters rfc"
What are the points for the Seven Sisters RFC club?
CREATE TABLE table_name_71 (points VARCHAR, club VARCHAR)
SELECT coverage__transmitter_site_ FROM table_name_14 WHERE power__kw_ = "10kw" AND callsign = "dyfx-tv"
What is Coverage (Transmitter Site), when Power (kW) is "10kW", and when Callsign is "DYFX-TV"?
CREATE TABLE table_name_14 (coverage__transmitter_site_ VARCHAR, power__kw_ VARCHAR, callsign VARCHAR)
SELECT german FROM table_name_10 WHERE icelandic = "efja"
What word in German translates into the Icelandic word efja?
CREATE TABLE table_name_10 (german VARCHAR, icelandic VARCHAR)
SELECT year_completion_expected FROM table_name_79 WHERE country = "china"
What was the year that China will have a building completed?
CREATE TABLE table_name_79 (year_completion_expected VARCHAR, country VARCHAR)
SELECT opponent FROM table_name_92 WHERE team = "milwaukee braves"
Which team opposed the Milwaukee Braves?
CREATE TABLE table_name_92 (opponent VARCHAR, team VARCHAR)
SELECT departure FROM table_18332845_2 WHERE arrival = "14.40"
What was the departure time when the arrival was 14.40?
CREATE TABLE table_18332845_2 (departure VARCHAR, arrival VARCHAR)
SELECT laps FROM table_name_72 WHERE manufacturer = "aprilia" AND grid = 10
What were the laps of aprilia with a grid of 10?
CREATE TABLE table_name_72 (laps VARCHAR, manufacturer VARCHAR, grid VARCHAR)
SELECT T2.student_details FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1
What is detail of the student who most recently registered course?
CREATE TABLE student_course_registrations (student_id VARCHAR, registration_date VARCHAR); CREATE TABLE students (student_details VARCHAR, student_id VARCHAR)
SELECT 2007 FROM table_name_14 WHERE 2010 = "olympic games"
Tell me the 2007 for 2010 olympic games
CREATE TABLE table_name_14 (Id VARCHAR)
SELECT home_team AS score FROM table_name_6 WHERE away_team = "south melbourne"
What did the home team score when South Melbourne was the away team?
CREATE TABLE table_name_6 (home_team VARCHAR, away_team VARCHAR)
SELECT MAX(_number) FROM table_12407546_1 WHERE riding = "68.46 (1144 pts)"
What's the number of the player with 68.46 (1144 pts) in riding?
CREATE TABLE table_12407546_1 (_number INTEGER, riding VARCHAR)
SELECT location FROM table_name_21 WHERE _number___county = "68 randolph" AND enrollment = 316
What is the location with enrollment of 316 and county is 68 Randolph?
CREATE TABLE table_name_21 (location VARCHAR, _number___county VARCHAR, enrollment VARCHAR)
SELECT director FROM table_21655290_1 WHERE original_title = "Kon-Tiki"
Who is the director of kon-tiki original title?
CREATE TABLE table_21655290_1 (director VARCHAR, original_title VARCHAR)
SELECT last_appearance FROM table_11240028_3 WHERE relationship = "Late wife of Mac Taylor"
What episode had the last appearances of the late wife of mac taylor?
CREATE TABLE table_11240028_3 (last_appearance VARCHAR, relationship VARCHAR)
SELECT MIN(no) FROM table_23730973_5 WHERE rating = "4.2"
What number episode had a 4.2 rating?
CREATE TABLE table_23730973_5 (no INTEGER, rating VARCHAR)
SELECT clubs FROM table_name_59 WHERE position_in_1959_1960 = "1"
Which club was in Position 1 in 1959-1960?
CREATE TABLE table_name_59 (clubs VARCHAR, position_in_1959_1960 VARCHAR)
SELECT frequency_mhz FROM table_name_79 WHERE city_of_license = "surfside beach, sc"
What is surfside beach, SC frequency?
CREATE TABLE table_name_79 (frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT production_code FROM table_20726262_2 WHERE no_in_series = 1
What was the production code for episode #1?
CREATE TABLE table_20726262_2 (production_code VARCHAR, no_in_series VARCHAR)
SELECT 20 AS _questions FROM table_1566852_5 WHERE date = "8-04"
Name the 20 questions for 8-04
CREATE TABLE table_1566852_5 (date VARCHAR)
SELECT spacewalkers FROM table_22385461_8 WHERE end__utc_ = "January 31, 2007 23:09"
If the end (UTC) is January 31, 2007 23:09, what is the name of the spacewalkers?
CREATE TABLE table_22385461_8 (spacewalkers VARCHAR, end__utc_ VARCHAR)
SELECT record FROM table_name_99 WHERE method = "ko" AND opponent = "rich guerin"
What is Record, when Method is KO, and when Opponent is Rich Guerin?
CREATE TABLE table_name_99 (record VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT player FROM table_name_63 WHERE country = "france"
What player is from France?
CREATE TABLE table_name_63 (player VARCHAR, country VARCHAR)
SELECT COUNT(model) FROM table_1147705_1 WHERE engine_type = "B5234 T3"
How many engine b5234 t3?
CREATE TABLE table_1147705_1 (model VARCHAR, engine_type VARCHAR)
SELECT tournament FROM table_name_4 WHERE week = "may 5"
What is the Tournament, on the Week of May 5?
CREATE TABLE table_name_4 (tournament VARCHAR, week VARCHAR)
SELECT home_team FROM table_name_65 WHERE away_team = "hawthorn"
Who was the home team that played against hawthorn?
CREATE TABLE table_name_65 (home_team VARCHAR, away_team VARCHAR)
SELECT away_team FROM table_name_35 WHERE venue = "windy hill"
Who is the away side at windy hill?
CREATE TABLE table_name_35 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_16 WHERE venue = "mcg"
What was the score of the away team at the MCG?
CREATE TABLE table_name_16 (away_team VARCHAR, venue VARCHAR)
SELECT result FROM table_1342359_39 WHERE incumbent = "Thomas S. McMillan"
What is the result for thomas s. mcmillan?
CREATE TABLE table_1342359_39 (result VARCHAR, incumbent VARCHAR)
SELECT AVG(pick) FROM table_name_63 WHERE college = "san diego state"
What is the average pick of San Diego State?
CREATE TABLE table_name_63 (pick INTEGER, college VARCHAR)
SELECT COUNT(party) FROM table_2841865_2 WHERE congress = "69th"
How many entries are listed for party during the 69th congress?
CREATE TABLE table_2841865_2 (party VARCHAR, congress VARCHAR)
SELECT score FROM table_name_44 WHERE date = "june 22" AND attendance = 0
What was the score for the June 22 game with attendance 0?
CREATE TABLE table_name_44 (score VARCHAR, date VARCHAR, attendance VARCHAR)
SELECT missing FROM table_11793221_4 WHERE commander = "Lieutenant General Sir Thomas Picton"
What was the missing for lieutenant general sir thomas picton?
CREATE TABLE table_11793221_4 (missing VARCHAR, commander VARCHAR)
SELECT MIN(attendance) FROM table_name_82 WHERE result = "l 42-35" AND week < 13
What is the lowest attendance that has l 42-35 as the result, with a week less than 13?
CREATE TABLE table_name_82 (attendance INTEGER, result VARCHAR, week VARCHAR)
SELECT score FROM table_name_99 WHERE stadium = "cn centre" AND date = "april 5, 2008"
What was the score at CN Centre on April 5, 2008?
CREATE TABLE table_name_99 (score VARCHAR, stadium VARCHAR, date VARCHAR)
SELECT MAX(oilers_points) FROM table_name_72 WHERE opponent = "san francisco 49ers" AND opponents > 19
Which Oilers points have an Opponent of san francisco 49ers, and Opponents larger than 19?
CREATE TABLE table_name_72 (oilers_points INTEGER, opponent VARCHAR, opponents VARCHAR)
SELECT location_code FROM Document_locations GROUP BY location_code HAVING COUNT(*) >= 3
Show the location codes with at least 3 documents.
CREATE TABLE Document_locations (location_code VARCHAR)
SELECT conformity_to_original_design FROM table_22180353_1 WHERE registration = "HB-DAI"
What is every conformity to original design if registration is HB-DAI?
CREATE TABLE table_22180353_1 (conformity_to_original_design VARCHAR, registration VARCHAR)
SELECT MIN(bush_number) FROM table_name_55 WHERE bush_percentage = "66.0%" AND others_number < 65
What is the smallest bush# with 66.0% bush and less than 65 others#?
CREATE TABLE table_name_55 (bush_number INTEGER, bush_percentage VARCHAR, others_number VARCHAR)
SELECT termini FROM table_name_40 WHERE population_area = "aguilares"
What termini does the route with a population Area of aguilares have?
CREATE TABLE table_name_40 (termini VARCHAR, population_area VARCHAR)
SELECT school_club_team FROM table_name_22 WHERE years_for_grizzlies = "2006-2009"
Which School/Club Team holds the 2006-2009 Years of Grizzlies ?
CREATE TABLE table_name_22 (school_club_team VARCHAR, years_for_grizzlies VARCHAR)
SELECT MAX(total_wins) FROM table_22839669_12
What is the maximum total wins he had for any year?
CREATE TABLE table_22839669_12 (total_wins INTEGER)
SELECT hometown FROM table_name_20 WHERE year = "fr" AND club = "brown's gymnastics"
What hometown was FR Year, and ha Brown's Gymnastics club?
CREATE TABLE table_name_20 (hometown VARCHAR, year VARCHAR, club VARCHAR)
SELECT district FROM table_12679326_1 WHERE committee = "Economic Matters" AND party = "Democratic"
What are the districts represented by the Democratic Party and a Committee in Economic Matters?
CREATE TABLE table_12679326_1 (district VARCHAR, committee VARCHAR, party VARCHAR)
SELECT queens FROM table_name_57 WHERE brooklyn = "201,866"
What was the Queens number when Brooklyn was 201,866?
CREATE TABLE table_name_57 (queens VARCHAR, brooklyn VARCHAR)
SELECT military_and_or_civilian_wounded FROM table_name_39 WHERE civilian_deaths = "unknown" AND total_deaths__not_including_foreigners_ = "unknown"
How many military or civilians were wounded in the conflict that had an unknown number of civilian and total deaths?
CREATE TABLE table_name_39 (military_and_or_civilian_wounded VARCHAR, civilian_deaths VARCHAR, total_deaths__not_including_foreigners_ VARCHAR)
SELECT MAX(points) FROM table_name_11 WHERE wins = 0 AND year < 1992
What is the highest number of points the team with 0 wins had before 1992?
CREATE TABLE table_name_11 (points INTEGER, wins VARCHAR, year VARCHAR)
SELECT SUM(wins) FROM table_name_62 WHERE against > 1136 AND losses < 15 AND golden_rivers = "ultima" AND byes < 2
What was the total number of wins that had an against greater than 1136 but losses less than 15 with Ultima with less than 2 byes?
CREATE TABLE table_name_62 (wins INTEGER, byes VARCHAR, golden_rivers VARCHAR, against VARCHAR, losses VARCHAR)
SELECT player FROM table_name_79 WHERE school = "la costa canyon high school"
Who is the player from La Costa Canyon High School?
CREATE TABLE table_name_79 (player VARCHAR, school VARCHAR)
SELECT COUNT(podiums) FROM table_name_86 WHERE fastest_laps > 4 AND races < 149
What are the total number of podiums for more than 4 laps, and less than 149 races?
CREATE TABLE table_name_86 (podiums VARCHAR, fastest_laps VARCHAR, races VARCHAR)
SELECT took_office FROM table_name_8 WHERE governor = "matthew e. welsh"
Who took office under the government of Matthew E. Welsh?
CREATE TABLE table_name_8 (took_office VARCHAR, governor VARCHAR)
SELECT time FROM table_26842217_6 WHERE home_team = "Kentucky"
List all times with Kentucky as the home team.
CREATE TABLE table_26842217_6 (time VARCHAR, home_team VARCHAR)
SELECT college FROM table_name_10 WHERE name = "kevin landolt"
Which college did kevin landolt attend?
CREATE TABLE table_name_10 (college VARCHAR, name VARCHAR)
SELECT score FROM table_name_68 WHERE venue = "hampden park, glasgow"
What was the score in Hampden Park, Glasgow?
CREATE TABLE table_name_68 (score VARCHAR, venue VARCHAR)
SELECT comedians FROM table_23122988_1 WHERE location = "Birmingham Hippodrome"
Who were the comedians during the episode located in Birmingham Hippodrome?
CREATE TABLE table_23122988_1 (comedians VARCHAR, location VARCHAR)
SELECT SUM(round) FROM table_name_4 WHERE pick > 1
Which Round has a Pick larger than 1?
CREATE TABLE table_name_4 (round INTEGER, pick INTEGER)
SELECT score FROM table_name_63 WHERE date = "december 19, 2009"
What was the score of the match on December 19, 2009?
CREATE TABLE table_name_63 (score VARCHAR, date VARCHAR)
SELECT score FROM table_25461946_5 WHERE team = "Virginia Tech"
What was the final score when the Temple Owls beat Virginia Tech?
CREATE TABLE table_25461946_5 (score VARCHAR, team VARCHAR)
SELECT date FROM table_name_53 WHERE away_team = "essendon"
When did essendon play away?
CREATE TABLE table_name_53 (date VARCHAR, away_team VARCHAR)
SELECT MIN(march) FROM table_name_88 WHERE score = "5–6" AND points < 100
Which March is the lowest one that has a Score of 5–6, and Points smaller than 100?
CREATE TABLE table_name_88 (march INTEGER, score VARCHAR, points VARCHAR)
SELECT title FROM table_name_50 WHERE weeks_on_chart__uk_ = 23
Which single was on the Charts for 23 weeks ?
CREATE TABLE table_name_50 (title VARCHAR, weeks_on_chart__uk_ VARCHAR)
SELECT rookie FROM table_name_5 WHERE goalkeeper = "rob scherr" AND week < 6
Who is the rookie goalkeeper Rob Scherr who played before week 6?
CREATE TABLE table_name_5 (rookie VARCHAR, goalkeeper VARCHAR, week VARCHAR)
SELECT COUNT(*) FROM country
How many countries are there in total?
CREATE TABLE country (Id VARCHAR)
SELECT truck_s_ FROM table_24535095_2 WHERE crew_chief = "Eric Phillips"
Name the truck for eric phillips
CREATE TABLE table_24535095_2 (truck_s_ VARCHAR, crew_chief VARCHAR)
SELECT city FROM airports GROUP BY city HAVING COUNT(*) > 2 ORDER BY COUNT(*)
List the cities which have more than 2 airports sorted by the number of airports.
CREATE TABLE airports (city VARCHAR)