answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT clean_and_jerk FROM table_name_13 WHERE snatch = "190kg"
What was the Clean and Jerk weight for the year that had a Snatch result of 190kg?
CREATE TABLE table_name_13 (clean_and_jerk VARCHAR, snatch VARCHAR)
SELECT COUNT(bronze) FROM table_name_89 WHERE total = 4 AND silver = 1
What is the total number of bronze medals of the nation with 4 total medals and 1 silver?
CREATE TABLE table_name_89 (bronze VARCHAR, total VARCHAR, silver VARCHAR)
SELECT constructor FROM table_name_24 WHERE driver = "clay regazzoni"
Tell me the constructor for clay regazzoni
CREATE TABLE table_name_24 (constructor VARCHAR, driver VARCHAR)
SELECT MIN(division) FROM table_name_11 WHERE reg_season = "7th"
Who was the lowest division in the 7th season?
CREATE TABLE table_name_11 (division INTEGER, reg_season VARCHAR)
SELECT FirstName, LastName FROM EMPLOYEE WHERE City = "Calgary"
What are the first names and last names of the employees who live in Calgary city.
CREATE TABLE EMPLOYEE (FirstName VARCHAR, LastName VARCHAR, City VARCHAR)
SELECT away_team FROM table_name_79 WHERE home_team = "north melbourne"
Who is the away side when north melbourne is the home side?
CREATE TABLE table_name_79 (away_team VARCHAR, home_team VARCHAR)
SELECT airport FROM table_name_77 WHERE country = "singapore"
What is the Airport in Singapore?
CREATE TABLE table_name_77 (airport VARCHAR, country VARCHAR)
SELECT season_7 FROM table_name_89 WHERE seat > 1 AND season_3 = "w. brett wilson"
Which Season 7 has a Seat larger than 1, and a Season 3 of w. brett wilson?
CREATE TABLE table_name_89 (season_7 VARCHAR, seat VARCHAR, season_3 VARCHAR)
SELECT overall FROM table_10360823_1 WHERE college = "Traded to the Cleveland Browns"
Which overall pick was traded to the Cleveland Browns?
CREATE TABLE table_10360823_1 (overall VARCHAR, college VARCHAR)
SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id GROUP BY t3.city ORDER BY COUNT(*) DESC LIMIT 1
Which city has the most customers living in?
CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE addresses (city VARCHAR, address_id VARCHAR); CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR)
SELECT title FROM table_23255941_1 WHERE written_by = "Mark Goffman"
What was the title of the episode written by Mark Goffman?
CREATE TABLE table_23255941_1 (title VARCHAR, written_by VARCHAR)
SELECT period FROM table_24565004_21 WHERE name = "Nabatingue Toko"
During what years did nabatingue toko play.
CREATE TABLE table_24565004_21 (period VARCHAR, name VARCHAR)
SELECT home FROM table_name_30 WHERE date = "21.10.07" AND geust = "bsc young boys (asl)"
Who was the home team of the match on 21.10.07, which had bsc young boys (asl) as the geust?
CREATE TABLE table_name_30 (home VARCHAR, date VARCHAR, geust VARCHAR)
SELECT displacement_cc FROM table_name_94 WHERE year = "1965"
What is the CC displacement for 1965?
CREATE TABLE table_name_94 (displacement_cc VARCHAR, year VARCHAR)
SELECT date FROM table_name_94 WHERE result = "l 13–9"
Tell me the date with result of l 13–9
CREATE TABLE table_name_94 (date VARCHAR, result VARCHAR)
SELECT AVG(laps) FROM table_name_69 WHERE grid = 8
What is the average number of laps for grid 8?
CREATE TABLE table_name_69 (laps INTEGER, grid VARCHAR)
SELECT MIN(crowd) FROM table_name_2 WHERE home_team = "carlton"
What was the lowest crowd size for the Carlton at home?
CREATE TABLE table_name_2 (crowd INTEGER, home_team VARCHAR)
SELECT game FROM table_name_33 WHERE date = "april 28"
What game took place on April 28?
CREATE TABLE table_name_33 (game VARCHAR, date VARCHAR)
SELECT leading_scorer FROM table_name_55 WHERE visitor = "trail blazers"
Who was the leading scorer when the visiting team was the Trail Blazers?
CREATE TABLE table_name_55 (leading_scorer VARCHAR, visitor VARCHAR)
SELECT left_office FROM table_name_47 WHERE took_office = "11 june 2001" AND minister = "mirko tremaglia"
What is Left Office, when Took Office is "11 June 2001", and when Minister is "Mirko Tremaglia"?
CREATE TABLE table_name_47 (left_office VARCHAR, took_office VARCHAR, minister VARCHAR)
SELECT opponent FROM table_name_98 WHERE date = "may 25, 2007"
What is the opponent on May 25, 2007?
CREATE TABLE table_name_98 (opponent VARCHAR, date VARCHAR)
SELECT MAX(capacity) FROM table_name_95 WHERE stadium = "tsentral stadium (batumi)"
What is the highest capacity of the tsentral stadium (batumi)?
CREATE TABLE table_name_95 (capacity INTEGER, stadium VARCHAR)
SELECT MIN(floors) FROM table_name_33 WHERE rank > 1 AND building = "the trillium (residential)"
What is the lowest amount of floors after rank 1 in the Trillium (residential) building?
CREATE TABLE table_name_33 (floors INTEGER, rank VARCHAR, building VARCHAR)
SELECT mascot FROM table_name_13 WHERE previous_conference = "independent" AND location = "leo"
What is the Mascot for the team from leo that had a Previous Conference value of independent?
CREATE TABLE table_name_13 (mascot VARCHAR, previous_conference VARCHAR, location VARCHAR)
SELECT year_s__won FROM table_name_84 WHERE to_par = 12
Which Year(s) won with a To par of 12?
CREATE TABLE table_name_84 (year_s__won VARCHAR, to_par VARCHAR)
SELECT headquarters FROM company WHERE main_industry = 'Banking' GROUP BY headquarters HAVING COUNT(*) >= 2
Show headquarters with at least two companies in the banking industry.
CREATE TABLE company (headquarters VARCHAR, main_industry VARCHAR)
SELECT country FROM table_name_67 WHERE score = 70 - 68 - 70 = 208
What Country scored 70-68-70=208?
CREATE TABLE table_name_67 (country VARCHAR, score VARCHAR)
SELECT COUNT(round) FROM table_name_25 WHERE position = "defensive tackle" AND overall < 149
In what round was a defensive tackle drafted with an overall pick smaller than 149?
CREATE TABLE table_name_25 (round VARCHAR, position VARCHAR, overall VARCHAR)
SELECT opponent FROM table_name_50 WHERE record = "24-26-4"
Who is the opponent of the game that had a record of 24-26-4?
CREATE TABLE table_name_50 (opponent VARCHAR, record VARCHAR)
SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980
Which distinct car models are the produced after 1980?
CREATE TABLE CARS_DATA (id VARCHAR, year INTEGER); CREATE TABLE MODEL_LIST (model VARCHAR); CREATE TABLE CAR_NAMES (model VARCHAR, MakeId VARCHAR)
SELECT co_drivers FROM table_name_43 WHERE year > 1994 AND class = "wsc"
Who were the co drivers past 1994 in the WSC class?
CREATE TABLE table_name_43 (co_drivers VARCHAR, year VARCHAR, class VARCHAR)
SELECT COUNT(losses) FROM table_name_43 WHERE wins < 12 AND golden_rivers = "ultima" AND byes > 2
How many losses did the golden rivers of ultima have when wins were less than 12 and byes larger than 2?
CREATE TABLE table_name_43 (losses VARCHAR, byes VARCHAR, wins VARCHAR, golden_rivers VARCHAR)
SELECT title FROM item WHERE NOT i_id IN (SELECT i_id FROM review)
Find the names of the items that did not receive any review.
CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (title VARCHAR, i_id VARCHAR)
SELECT date FROM table_name_48 WHERE result = "0–3"
When was the result 0–3?
CREATE TABLE table_name_48 (date VARCHAR, result VARCHAR)
SELECT COUNT(city___municipality) FROM table_2562572_2 WHERE urban_settlement = "Srbobran"
What is the number of cities/municipalities having an urban settlement of Srbobran?
CREATE TABLE table_2562572_2 (city___municipality VARCHAR, urban_settlement VARCHAR)
SELECT game_site FROM table_name_64 WHERE attendance = "39,889"
Where was the game that had an attendance of 39,889?
CREATE TABLE table_name_64 (game_site VARCHAR, attendance VARCHAR)
SELECT space_agency FROM table_name_17 WHERE name = "herschel space observatory"
Which space agency launched the herschel space observatory?
CREATE TABLE table_name_17 (space_agency VARCHAR, name VARCHAR)
SELECT authority FROM table_name_50 WHERE scientic_name = "o. tricuspis"
What is the authority of the scientific name of O. Tricuspis?
CREATE TABLE table_name_50 (authority VARCHAR, scientic_name VARCHAR)
SELECT mountains_classification FROM table_19115414_4 WHERE points_classification = "Alexander Kristoff"
Name the mountains classification for alexander kristoff
CREATE TABLE table_19115414_4 (mountains_classification VARCHAR, points_classification VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_14 WHERE player = "mitch fadden"
What College/junior/club team (league) did mitch fadden play for?
CREATE TABLE table_name_14 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
SELECT event FROM table_name_37 WHERE year < 1989
What is the event in a year before 1989?
CREATE TABLE table_name_37 (event VARCHAR, year INTEGER)
SELECT game_site FROM table_name_90 WHERE opponent = "miami dolphins"
What Game site has an Opponent of Miami Dolphins?
CREATE TABLE table_name_90 (game_site VARCHAR, opponent VARCHAR)
SELECT SUM(races) FROM table_name_82 WHERE podiums < 3 AND wins = 0 AND season > 2001 AND points = "32"
What is the sum of Races, when Podiums is less than 3, when Wins is 0, when Season is after 2001, and when Points is 32?
CREATE TABLE table_name_82 (races INTEGER, points VARCHAR, season VARCHAR, podiums VARCHAR, wins VARCHAR)
SELECT location FROM table_name_44 WHERE res = "win" AND opponent = "mike large"
Where was the result a win against Mike Large?
CREATE TABLE table_name_44 (location VARCHAR, res VARCHAR, opponent VARCHAR)
SELECT COUNT(money_list_rank) FROM table_29499399_2 WHERE best_finish = "T10"
How many ranks on the money list had a best finish of t10?
CREATE TABLE table_29499399_2 (money_list_rank VARCHAR, best_finish VARCHAR)
SELECT type FROM table_name_99 WHERE name = "bo qin"
What type of state is bo qin?
CREATE TABLE table_name_99 (type VARCHAR, name VARCHAR)
SELECT SUM(rank) FROM table_name_20 WHERE games_played > 5
What is the rank of the person with more than 5 games played?
CREATE TABLE table_name_20 (rank INTEGER, games_played INTEGER)
SELECT high_points FROM table_17288825_9 WHERE game = 72
Who had the most poinst in game 72?
CREATE TABLE table_17288825_9 (high_points VARCHAR, game VARCHAR)
SELECT save FROM table_name_79 WHERE loss = "moran (1-2)"
What is the save of the game where moran (1-2) lost?
CREATE TABLE table_name_79 (save VARCHAR, loss VARCHAR)
SELECT discipline FROM table_name_17 WHERE championship = "international championship for makes"
What was the discipline for the Championship of international championship for makes?
CREATE TABLE table_name_17 (discipline VARCHAR, championship VARCHAR)
SELECT name FROM table_11585313_1 WHERE number_of_goals = 10
What is the name of person that scored 10 goals?
CREATE TABLE table_11585313_1 (name VARCHAR, number_of_goals VARCHAR)
SELECT distance__miles_ FROM table_name_68 WHERE winner = "no race" AND year > 1909
When the winner was No Race in a year after 1909, what was the distance?
CREATE TABLE table_name_68 (distance__miles_ VARCHAR, winner VARCHAR, year VARCHAR)
SELECT COUNT(wins) FROM table_name_42 WHERE losses < 10 AND against < 1253 AND byes < 0
What is the total number of Wins, when Losses is less than 10, when Against is less than 1253, and when Byes is less than 0?
CREATE TABLE table_name_42 (wins VARCHAR, byes VARCHAR, losses VARCHAR, against VARCHAR)
SELECT stage__winner_ FROM table_name_17 WHERE general_classification = "vladimir karpets" AND team_classification = "relax-gam" AND points_classification = "denis menchov"
Which Stage (Winner) has a Vladimir Karpets General classification and a Team classification of relax-gam, and a Points classification of Denis Menchov?
CREATE TABLE table_name_17 (stage__winner_ VARCHAR, points_classification VARCHAR, general_classification VARCHAR, team_classification VARCHAR)
SELECT MAX(seats) FROM table_name_83 WHERE votes = 244 OFFSET 867
Which highest number of Seats has votes of 244,867?
CREATE TABLE table_name_83 (seats INTEGER, votes VARCHAR)
SELECT points_for FROM table_name_24 WHERE points = "60" AND club = "bedwas rfc"
What is Points, when Points is 60, and when Club is Bedwas RFC?
CREATE TABLE table_name_24 (points_for VARCHAR, points VARCHAR, club VARCHAR)
SELECT trofeo_fast_team FROM table_12261926_2 WHERE stage = 8
What is the trofeo fast team on stage 8?
CREATE TABLE table_12261926_2 (trofeo_fast_team VARCHAR, stage VARCHAR)
SELECT title FROM table_name_79 WHERE role = "mylene"
What Title has a Role of Mylene?
CREATE TABLE table_name_79 (title VARCHAR, role VARCHAR)
SELECT d_45_o FROM table_name_5 WHERE d_44_o = "majority →"
Name the D 45 O with D 44 O majority →
CREATE TABLE table_name_5 (d_45_o VARCHAR, d_44_o VARCHAR)
SELECT pre__season FROM table_name_21 WHERE may_5 = "21"
Which pre-season has May 5 of 21?
CREATE TABLE table_name_21 (pre__season VARCHAR, may_5 VARCHAR)
SELECT stadium FROM table_28668784_1 WHERE home_team = "FK Rudar"
What stadium does FK Rudar play in?
CREATE TABLE table_28668784_1 (stadium VARCHAR, home_team VARCHAR)
SELECT COUNT(scores) FROM table_23575917_2 WHERE davids_team = "David Baddiel and Maureen Lipman"
Name the scores for david baddiel and maureen lipman
CREATE TABLE table_23575917_2 (scores VARCHAR, davids_team VARCHAR)
SELECT COUNT(player) FROM table_1965650_11 WHERE pick__number = 166
How many players have the pick number 166?
CREATE TABLE table_1965650_11 (player VARCHAR, pick__number VARCHAR)
SELECT to_par FROM table_name_87 WHERE player = "johanna head"
Which To par has a Player of johanna head?
CREATE TABLE table_name_87 (to_par VARCHAR, player VARCHAR)
SELECT title FROM table_25341765_1 WHERE written_by = "Alan Yang"
What was the name of the episode Alan Yang wrote?
CREATE TABLE table_25341765_1 (title VARCHAR, written_by VARCHAR)
SELECT money_requested__£_ FROM table_name_92 WHERE investing_dragon_s_ = "peter jones" AND episode = "episode 2"
How much was requested from Investing Dragon Peter Jones request in episode 2?
CREATE TABLE table_name_92 (money_requested__£_ VARCHAR, investing_dragon_s_ VARCHAR, episode VARCHAR)
SELECT COUNT(district) FROM table_1341718_43 WHERE incumbent = "Ed Jones"
How many districts does Ed Jones represent?
CREATE TABLE table_1341718_43 (district VARCHAR, incumbent VARCHAR)
SELECT population__maryborough_ FROM table_12576536_1 WHERE population__woocoo_ = 2700
Name the population of maryborough when population of woocoo is 2700
CREATE TABLE table_12576536_1 (population__maryborough_ VARCHAR, population__woocoo_ VARCHAR)
SELECT aug_2008 FROM table_23680576_2 WHERE sep_2008 = "5.0%"
What was the polling average in Aug 2009 when is was 5.0% in Sep 2009?
CREATE TABLE table_23680576_2 (aug_2008 VARCHAR, sep_2008 VARCHAR)
SELECT country FROM table_name_91 WHERE to_par = "+8"
For the player finishing at +8, what is his nationality?
CREATE TABLE table_name_91 (country VARCHAR, to_par VARCHAR)
SELECT SUM(area_in_km²) FROM table_name_68 WHERE original_name = "kecamatan bogor timur" AND number_of_settlements_and_villages > 6
Kecamatan Bogor Timur has more than 6 villages, what is the area in km²?
CREATE TABLE table_name_68 (area_in_km² INTEGER, original_name VARCHAR, number_of_settlements_and_villages VARCHAR)
SELECT score FROM table_name_9 WHERE visitor = "milwaukee"
What was the score of the game against Milwaukee?
CREATE TABLE table_name_9 (score VARCHAR, visitor VARCHAR)
SELECT COUNT(average) FROM table_name_27 WHERE tally = "3–11" AND matches > 4
What is the average when the tally is 3–11, with more than 4 matches??
CREATE TABLE table_name_27 (average VARCHAR, tally VARCHAR, matches VARCHAR)
SELECT 2 AS nd_leg FROM table_name_27 WHERE team_1 = "asante kotoko"
What was the 2nd leg score between Patronage Sainte-Anne and Asante Kotoko?
CREATE TABLE table_name_27 (team_1 VARCHAR)
SELECT nickname FROM table_1973842_2 WHERE joined = 2010
What's the nickname of the students of the school that joined the Conference in 2010?
CREATE TABLE table_1973842_2 (nickname VARCHAR, joined VARCHAR)
SELECT AVG(lost) FROM table_name_21 WHERE difference = "- 3" AND played < 10
What is the average Lost when the difference is - 3, and a Played is less than 10?
CREATE TABLE table_name_21 (lost INTEGER, difference VARCHAR, played VARCHAR)
SELECT score FROM table_name_90 WHERE venue = "n/a" AND team_2 = "yokohama f. marinos"
Team 2 of Yokohama F. Marinos in the n/a venue had what score?
CREATE TABLE table_name_90 (score VARCHAR, venue VARCHAR, team_2 VARCHAR)
SELECT skip FROM table_name_61 WHERE third = "john morris"
What is the Skip when the Third was john morris?
CREATE TABLE table_name_61 (skip VARCHAR, third VARCHAR)
SELECT party FROM table_1341930_33 WHERE incumbent = "Herbert Covington Bonner"
what's the party with incumbent being herbert covington bonner
CREATE TABLE table_1341930_33 (party VARCHAR, incumbent VARCHAR)
SELECT COUNT(player) FROM table_name_72 WHERE event > 2011 AND NOT aces < 9
How many players were in the event after 2011 with less than 9 aces?
CREATE TABLE table_name_72 (player VARCHAR, event VARCHAR, aces VARCHAR)
SELECT player FROM table_name_3 WHERE country = "united states" AND place = "t3"
Which United States player has a place of T3?
CREATE TABLE table_name_3 (player VARCHAR, country VARCHAR, place VARCHAR)
SELECT season FROM table_name_48 WHERE points = "95"
Which Season has 95 Points?
CREATE TABLE table_name_48 (season VARCHAR, points VARCHAR)
SELECT AVG(population) FROM table_name_59 WHERE area_km_2 > 3.09 AND status = "town"
What is the population of the town with an area larger than 3.09?
CREATE TABLE table_name_59 (population INTEGER, area_km_2 VARCHAR, status VARCHAR)
SELECT year FROM table_1986692_1 WHERE playoffs = "divisional Semifinals"
When divisional semifinals are the playoffs what is the year?
CREATE TABLE table_1986692_1 (year VARCHAR, playoffs VARCHAR)
SELECT SUM(value__) AS $m_ FROM table_name_3 WHERE revenue__$m_ < 307 AND team = "valencia" AND rank < 19
What was the sum of Value ($M), when the Revenue ($M) was less than 307, the Team was Valencia, and the Rank was smaller than 19?
CREATE TABLE table_name_3 (value__ INTEGER, rank VARCHAR, revenue__$m_ VARCHAR, team VARCHAR)
SELECT MIN(2006 AS _07_points) FROM table_23215145_2 WHERE team = "Overmach Parma"
What is the 2006-2007 points minimum is the team is Overmach Parma?
CREATE TABLE table_23215145_2 (team VARCHAR)
SELECT T1.name, T1.long, AVG(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id GROUP BY T2.start_station_id
For each station, return its longitude and the average duration of trips that started from the station.
CREATE TABLE station (name VARCHAR, long VARCHAR, id VARCHAR); CREATE TABLE trip (duration INTEGER, start_station_id VARCHAR)
SELECT length_of_stay_permitted FROM table_25965003_3 WHERE countries_and_territories = "Jersey"
What is the permitted length of stay in the Jersey territory?
CREATE TABLE table_25965003_3 (length_of_stay_permitted VARCHAR, countries_and_territories VARCHAR)
SELECT opponent FROM table_name_45 WHERE date = "january 16"
Who is the Opponent on January 16?
CREATE TABLE table_name_45 (opponent VARCHAR, date VARCHAR)
SELECT MAX(geohash_length) FROM table_name_99 WHERE lat_error = "±0.00068" AND lat_bits > 17
What is the highest geohash length when the lat error is ±0.00068, and the lat bits larger than 17?
CREATE TABLE table_name_99 (geohash_length INTEGER, lat_error VARCHAR, lat_bits VARCHAR)
SELECT general_classification FROM table_27573848_18 WHERE points_classification = "Marco Marcato" AND stage < 5.0
If the stage is smaller than 5.0, and the points classification is by Marco Marcato, who is the General classification by?
CREATE TABLE table_27573848_18 (general_classification VARCHAR, points_classification VARCHAR, stage VARCHAR)
SELECT year FROM table_name_64 WHERE country = "united states" AND dates = "aug 3–5"
What Year was the United States the country for aug 3–5?
CREATE TABLE table_name_64 (year VARCHAR, country VARCHAR, dates VARCHAR)
SELECT best_film FROM table_name_42 WHERE best_supporting_actress = "shamaine buencamino for niño"
Which Best Film has a Best Supporting Actress of shamaine buencamino for niño?
CREATE TABLE table_name_42 (best_film VARCHAR, best_supporting_actress VARCHAR)
SELECT position FROM table_name_32 WHERE birthplace = "toledo, ohio"
What is the Position when the person's birthplace was toledo, ohio?
CREATE TABLE table_name_32 (position VARCHAR, birthplace VARCHAR)
SELECT MAX(goals) FROM table_name_8 WHERE name = "josep samitier"
Name the most goals for josep samitier
CREATE TABLE table_name_8 (goals INTEGER, name VARCHAR)
SELECT no FROM table_142159_1 WHERE location = "Engine shed"
Which number has Engine Shed as the location
CREATE TABLE table_142159_1 (no VARCHAR, location VARCHAR)
SELECT 2 AS nd_leg FROM table_name_27 WHERE team_2 = "haro"
WHAT IS THE SECOND LEG WITH HARO AS TEAM TWO?
CREATE TABLE table_name_27 (team_2 VARCHAR)
SELECT MAX(height), AVG(height) FROM mountain
What are the maximum and average height of the mountains?
CREATE TABLE mountain (height INTEGER)
SELECT elevator FROM table_name_63 WHERE elector = "giovanni gaetano orsini"
When Giovanni Gaetano Orsini was the elector who was the elevator?
CREATE TABLE table_name_63 (elevator VARCHAR, elector VARCHAR)
SELECT series FROM table_name_20 WHERE name = "sam evans"
What series was Sam Evans on?
CREATE TABLE table_name_20 (series VARCHAR, name VARCHAR)