answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT AVG(wins) FROM table_name_11 WHERE against = 1132 AND losses < 7
Can you tell me the average Wins that has the Against of 1132, and the Losses smaller than 7?
CREATE TABLE table_name_11 (wins INTEGER, against VARCHAR, losses VARCHAR)
SELECT COUNT(score) FROM table_17323042_7 WHERE team = "Houston"
How many scores are listed for the game against Houston
CREATE TABLE table_17323042_7 (score VARCHAR, team VARCHAR)
SELECT end_date FROM table_name_11 WHERE minister = "alex bodry"
What was the end date when Alex Bodry was the minister?
CREATE TABLE table_name_11 (end_date VARCHAR, minister VARCHAR)
SELECT report FROM table_name_77 WHERE name = "tourist trophy"
Name the Report of tourist trophy?
CREATE TABLE table_name_77 (report VARCHAR, name VARCHAR)
SELECT laps FROM table_name_99 WHERE points = "lead changes: 13 between 8 drivers"
Which Laps has a Points of lead changes: 13 between 8 drivers?
CREATE TABLE table_name_99 (laps VARCHAR, points VARCHAR)
SELECT date_performed FROM table_name_89 WHERE main_contestant = "jatin shah" AND co_contestant__yaar_vs_pyaar_ = "shalini chandran"
What is the date of the performance by Jatin Shah and co-contestant is Shalini Chandran?
CREATE TABLE table_name_89 (date_performed VARCHAR, main_contestant VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)
SELECT MIN(earnings__) AS $__ FROM table_name_50 WHERE wins = 4 AND rank > 4
Which player has the lowest earnings and has at least 4 wins and is ranked higher than 4?
CREATE TABLE table_name_50 (earnings__ INTEGER, wins VARCHAR, rank VARCHAR)
SELECT MAX(attendance) FROM table_name_45 WHERE record = "37-38"
Which Attendance is the highest one that has a Record of 37-38?
CREATE TABLE table_name_45 (attendance INTEGER, record VARCHAR)
SELECT attendance FROM table_name_8 WHERE score = "0-6"
What was the attendance for the game where the score was 0-6?
CREATE TABLE table_name_8 (attendance VARCHAR, score VARCHAR)
SELECT final_score FROM table_24918268_2 WHERE kickoff = "6:00 p.m."
What was the score for the game that kicked off at 6:00 p.m.?
CREATE TABLE table_24918268_2 (final_score VARCHAR, kickoff VARCHAR)
SELECT date FROM table_name_43 WHERE away_team = "northampton town"
What date was the game when away team northampton town played?
CREATE TABLE table_name_43 (date VARCHAR, away_team VARCHAR)
SELECT lga_name FROM table_1966992_1 WHERE census_2006_population > 425208.9417698913 AND administrative_capital = "Port Harcourt"
What is the LGA name where the 2006 census population is bigger than 425208.9417698913 and administrative capital is port harcourt?
CREATE TABLE table_1966992_1 (lga_name VARCHAR, census_2006_population VARCHAR, administrative_capital VARCHAR)
SELECT MIN(fastest_laps) FROM table_name_74 WHERE race_entries__starts_ = "32 (30)" AND podiums < 2
How many fastest laps for the nation with 32 (30) entries and starts and fewer than 2 podiums?
CREATE TABLE table_name_74 (fastest_laps INTEGER, race_entries__starts_ VARCHAR, podiums VARCHAR)
SELECT pens FROM table_name_38 WHERE tries = "1" AND player = "matt alexander" AND conv = "4"
Which pens has 1 tries and matt alexander as a player with conv of 4?
CREATE TABLE table_name_38 (pens VARCHAR, conv VARCHAR, tries VARCHAR, player VARCHAR)
SELECT rd FROM table_1132568_3 WHERE grand_prix = "Canadian grand_prix"
What number is the Canadian Grand Prix on the list?
CREATE TABLE table_1132568_3 (rd VARCHAR, grand_prix VARCHAR)
SELECT shooter FROM table_name_21 WHERE event = "wc beijing" AND total = "16" AND rank_points = "4"
What Shooter has an Event of wc beijing, a Total of 16, and Rank points of 4?
CREATE TABLE table_name_21 (shooter VARCHAR, rank_points VARCHAR, event VARCHAR, total VARCHAR)
SELECT MAX(bronze) FROM table_name_70 WHERE gold > 2 AND rank = "total"
Name the highest Bronze which has a Gold larger than 2 and a Rank of total?
CREATE TABLE table_name_70 (bronze INTEGER, gold VARCHAR, rank VARCHAR)
SELECT away_team AS score FROM table_name_52 WHERE home_team = "north melbourne"
What is the away team score when the home team is North Melbourne?
CREATE TABLE table_name_52 (away_team VARCHAR, home_team VARCHAR)
SELECT developer FROM table_18138132_2 WHERE title = "Windows Live Messenger"
Who is the developer for Windows live messenger?
CREATE TABLE table_18138132_2 (developer VARCHAR, title VARCHAR)
SELECT mens_doubles FROM table_13553701_1 WHERE mens_singles = "Lee Hyun-il"
Who are the mens doubles and and mens singles is lee hyun-il?
CREATE TABLE table_13553701_1 (mens_doubles VARCHAR, mens_singles VARCHAR)
SELECT customer_event_id, date_moved_in, property_id FROM customer_events
List the customer event id and the corresponding move in date and property id.
CREATE TABLE customer_events (customer_event_id VARCHAR, date_moved_in VARCHAR, property_id VARCHAR)
SELECT iata FROM table_name_23 WHERE city = "amsterdam"
What is the IATA for the city of Amsterdam?
CREATE TABLE table_name_23 (iata VARCHAR, city VARCHAR)
SELECT 2007 FROM table_name_16 WHERE 2011 = "f" AND 2009 = "w"
What was the result in 2007 when the 2011 was F and 2009 was W?
CREATE TABLE table_name_16 (Id VARCHAR)
SELECT MAX(_number_of_seats_won) FROM table_19769687_3
Name the most # of seats won
CREATE TABLE table_19769687_3 (_number_of_seats_won INTEGER)
SELECT COUNT(*) FROM editor
How many editors are there?
CREATE TABLE editor (Id VARCHAR)
SELECT date_successor_seated FROM table_225093_4 WHERE district = "Massachusetts 2nd"
What is the date successor seated where Massachusetts 2nd is the district?
CREATE TABLE table_225093_4 (date_successor_seated VARCHAR, district VARCHAR)
SELECT driver FROM table_name_92 WHERE grid = 5
Who drove grid 5?
CREATE TABLE table_name_92 (driver VARCHAR, grid VARCHAR)
SELECT MAX(top_25) FROM table_name_11 WHERE events < 22 AND top_10 > 1
What is the highest top-25 of the tournament with less than 22 events and more than 1 top-10?
CREATE TABLE table_name_11 (top_25 INTEGER, events VARCHAR, top_10 VARCHAR)
SELECT dma FROM table_19131921_1 WHERE branding = "Big Oldies 107.3" AND station = "WARV-FM"
What is the dma of branding is big oldies 107.3 with the station warv-fm?
CREATE TABLE table_19131921_1 (dma VARCHAR, branding VARCHAR, station VARCHAR)
SELECT COUNT(first_place) FROM table_2054561_2 WHERE no_of_weeks = 6
Who took first place in week 6?
CREATE TABLE table_2054561_2 (first_place VARCHAR, no_of_weeks VARCHAR)
SELECT score FROM table_name_47 WHERE tie_no = "19"
What's the score during a game than had a tie no of 19?
CREATE TABLE table_name_47 (score VARCHAR, tie_no VARCHAR)
SELECT height FROM table_name_43 WHERE player = "mike bibby"
Which Height has a Player of mike bibby?
CREATE TABLE table_name_43 (height VARCHAR, player VARCHAR)
SELECT channel_tv___dt__ FROM table_name_88 WHERE city_of_license__market = "baltimore"
Which Channel TV is located in Baltimore?
CREATE TABLE table_name_88 (channel_tv___dt__ VARCHAR, city_of_license__market VARCHAR)
SELECT MAX(last_competed) FROM table_14308895_2 WHERE country_territory = "New Zealand"
when did new zealand last compete?
CREATE TABLE table_14308895_2 (last_competed INTEGER, country_territory VARCHAR)
SELECT district FROM table_13618584_2 WHERE incumbent = "Terry Kilgore"
What district is incument terry kilgore from?
CREATE TABLE table_13618584_2 (district VARCHAR, incumbent VARCHAR)
SELECT SUM(mach) FROM table_name_88 WHERE vehicle_flight__number = "m2-f2 #8" AND altitude__meters_ > 13 OFFSET 716
What is the Mach with Vehicle Flight # m2-f2 #8 and an Altitude (meters) greater than 13,716?
CREATE TABLE table_name_88 (mach INTEGER, vehicle_flight__number VARCHAR, altitude__meters_ VARCHAR)
SELECT episodes FROM table_name_31 WHERE rank = "senior sergeant" AND actor_actress = "rodger corser"
What Rodger Corser Episode has a Rank of senior sergeant?
CREATE TABLE table_name_31 (episodes VARCHAR, rank VARCHAR, actor_actress VARCHAR)
SELECT SUM(byes) FROM table_name_27 WHERE draws < 0
How many byes were there recorded with 0 draws?
CREATE TABLE table_name_27 (byes INTEGER, draws INTEGER)
SELECT tongan FROM table_name_89 WHERE north_marquesan = "/haʔe/"
What kind of Tongan has a North Marquesan of /haʔe/?
CREATE TABLE table_name_89 (tongan VARCHAR, north_marquesan VARCHAR)
SELECT MIN(week) FROM table_name_82 WHERE date = "october 15, 1961"
What is the low week from october 15, 1961?
CREATE TABLE table_name_82 (week INTEGER, date VARCHAR)
SELECT AVG(game) FROM table_name_4 WHERE date = "march 2"
Which game was played on march 2?
CREATE TABLE table_name_4 (game INTEGER, date VARCHAR)
SELECT 2009 FROM table_name_18 WHERE 2012 = "a" AND 2003 = "a" AND tournament = "madrid masters"
What was 2009, when 2012 was A, when 2003 was A, and then the Tournament was the Madrid Masters?
CREATE TABLE table_name_18 (tournament VARCHAR)
SELECT COUNT(*) FROM singer
How many singers do we have?
CREATE TABLE singer (Id VARCHAR)
SELECT year_s__won FROM table_name_43 WHERE player = "raymond floyd"
Which years did raymond floyd win?
CREATE TABLE table_name_43 (year_s__won VARCHAR, player VARCHAR)
SELECT 1982 AS _83 FROM table_22606461_10 WHERE rank = 1
What is every entry for 1982-83 for rank 1?
CREATE TABLE table_22606461_10 (rank VARCHAR)
SELECT td_int FROM table_name_87 WHERE effic > 111.4
Which TD-INT has an Effic larger than 111.4?
CREATE TABLE table_name_87 (td_int VARCHAR, effic INTEGER)
SELECT date FROM table_26686908_2 WHERE circuit = "Mount Panorama circuit"
What is the date for the mount panorama circuit?
CREATE TABLE table_26686908_2 (date VARCHAR, circuit VARCHAR)
SELECT score FROM table_name_37 WHERE home_team = "sheffield united"
What was the score when Sheffield United was the home team?
CREATE TABLE table_name_37 (score VARCHAR, home_team VARCHAR)
SELECT location FROM table_25773116_2 WHERE round = 1
Where was the round 1 race?
CREATE TABLE table_25773116_2 (location VARCHAR, round VARCHAR)
SELECT team_captain FROM table_23214833_1 WHERE capacity = 17800
Who's captain of the team whose stadium has a capacity of 17800 people?
CREATE TABLE table_23214833_1 (team_captain VARCHAR, capacity VARCHAR)
SELECT SUM(round) FROM table_name_77 WHERE pick < 6
Which Round has a Pick smaller than 6?
CREATE TABLE table_name_77 (round INTEGER, pick INTEGER)
SELECT owner FROM table_name_80 WHERE entered_service__t_ = "30 october 1956"
Who owns the locomotive that entered service on 30 October 1956?
CREATE TABLE table_name_80 (owner VARCHAR, entered_service__t_ VARCHAR)
SELECT platform_s_ FROM table_name_53 WHERE year = "2006"
What is the platform of the game built in 2006?
CREATE TABLE table_name_53 (platform_s_ VARCHAR, year VARCHAR)
SELECT COUNT(natural_increase) FROM table_21258_1 WHERE births = "388 000"
where births is 388 000 how many number is natural increase
CREATE TABLE table_21258_1 (natural_increase VARCHAR, births VARCHAR)
SELECT 3 AS ’utr_sequence FROM table_14332822_1 WHERE genbank_id = "HQ021437"
What is the 3utr sequence when the genbank id is hq021437?
CREATE TABLE table_14332822_1 (genbank_id VARCHAR)
SELECT fastest_lap FROM table_1140077_2 WHERE race = "Dutch Grand Prix"
Who did the fastest lap in the dutch grand prix?
CREATE TABLE table_1140077_2 (fastest_lap VARCHAR, race VARCHAR)
SELECT score FROM table_name_99 WHERE money___$__ > 400 AND player = "gene sarazen"
What score has money ($) greater than 400, with gene sarazen as the player?
CREATE TABLE table_name_99 (score VARCHAR, money___$__ VARCHAR, player VARCHAR)
SELECT MIN(laps) FROM table_name_68 WHERE team = "panoz motor sports" AND year < 2002
What are panoz motor sports' lowest number of laps before 2002?
CREATE TABLE table_name_68 (laps INTEGER, team VARCHAR, year VARCHAR)
SELECT tournament FROM table_name_73 WHERE opponent_in_the_final = "toshiaki sakai" AND surface = "grass"
Which tournament had Toshiaki Sakai as an opponent in the final on a grass surface?
CREATE TABLE table_name_73 (tournament VARCHAR, opponent_in_the_final VARCHAR, surface VARCHAR)
SELECT series FROM table_name_52 WHERE home = "minnesota" AND date = "april 17"
What was the series score on april 17 with minnesota at home?
CREATE TABLE table_name_52 (series VARCHAR, home VARCHAR, date VARCHAR)
SELECT party FROM table_1341423_40 WHERE incumbent = "Jim DeMint"
what is the party with the incumbent jim demint?
CREATE TABLE table_1341423_40 (party VARCHAR, incumbent VARCHAR)
SELECT competition FROM table_name_6 WHERE year < 2007 AND venue = "gothenburg, sweden"
What competition did he compete in before 2007 in gothenburg, sweden?
CREATE TABLE table_name_6 (competition VARCHAR, year VARCHAR, venue VARCHAR)
SELECT owner FROM table_name_69 WHERE frequency = "fm 94.5"
who is the owner of fm 94.5?
CREATE TABLE table_name_69 (owner VARCHAR, frequency VARCHAR)
SELECT category FROM table_18638067_1 WHERE film_title_used_in_nomination = "Working Girl"
What category was the movie Working Girl nominated?
CREATE TABLE table_18638067_1 (category VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT surface FROM table_name_56 WHERE tournament = "united airlines tournament of champions" AND round = "final"
Name the surface for united airlines tournament of champions final round
CREATE TABLE table_name_56 (surface VARCHAR, tournament VARCHAR, round VARCHAR)
SELECT record FROM table_name_26 WHERE location_attendance = "air canada centre 19,800"
What was the season record when the location attendance was Air Canada Centre 19,800?
CREATE TABLE table_name_26 (record VARCHAR, location_attendance VARCHAR)
SELECT district FROM table_1341577_43 WHERE candidates = "Jim Cooper (D) Unopposed"
In what district would you find the candidates listed as jim cooper (d) unopposed?
CREATE TABLE table_1341577_43 (district VARCHAR, candidates VARCHAR)
SELECT COUNT(lecturers) FROM table_name_71 WHERE assistant_professors > 8 AND professors > 14 AND associate_professors < 35 AND total > 81
How may lecturers are there in the case when there are more than 8 assistant professors, fewer than 35 associate professors, more than 14 professors and total of more than 81?
CREATE TABLE table_name_71 (lecturers VARCHAR, total VARCHAR, associate_professors VARCHAR, assistant_professors VARCHAR, professors VARCHAR)
SELECT record FROM table_name_32 WHERE date = "november 15"
What record has November 15 as the date?
CREATE TABLE table_name_32 (record VARCHAR, date VARCHAR)
SELECT longitude FROM table_name_35 WHERE name = "angerona tholus"
What is the longitude of Angerona Tholus?
CREATE TABLE table_name_35 (longitude VARCHAR, name VARCHAR)
SELECT AVG(yellow_cards) FROM table_name_75 WHERE season = "1999/2000"
Which Yellow Cards has a Season of 1999/2000?
CREATE TABLE table_name_75 (yellow_cards INTEGER, season VARCHAR)
SELECT MIN(others_number) FROM table_name_12 WHERE others_percentage = "1.9%" AND bush_number < 160 OFFSET 390
How many votes went to other candidates in the county that gave 1.9% votes to them, and 160,390 total votes to Bush?
CREATE TABLE table_name_12 (others_number INTEGER, others_percentage VARCHAR, bush_number VARCHAR)
SELECT constructor FROM table_name_40 WHERE rounds = "10-12" AND chassis = "m7a"
Which constructor has 10-12 rounds and a M7A chassis?
CREATE TABLE table_name_40 (constructor VARCHAR, rounds VARCHAR, chassis VARCHAR)
SELECT COUNT(district) FROM table_1342256_10 WHERE first_elected = 1940
How many districts have an incumbent first elected in 1940?
CREATE TABLE table_1342256_10 (district VARCHAR, first_elected VARCHAR)
SELECT incumbent FROM table_1341865_20 WHERE district = "Louisiana 7"
Who was the winner in the Louisiana 7 district?
CREATE TABLE table_1341865_20 (incumbent VARCHAR, district VARCHAR)
SELECT DISTINCT asset_model FROM Assets
What are all the distinct asset models?
CREATE TABLE Assets (asset_model VARCHAR)
SELECT opponent FROM table_name_12 WHERE loss = "shields (1–1)"
Who was the opponent at the game that had a loss of Shields (1–1)?
CREATE TABLE table_name_12 (opponent VARCHAR, loss VARCHAR)
SELECT AVG(goals_for) FROM table_name_52 WHERE rank = 3
How many goals on average are there for rank 3?
CREATE TABLE table_name_52 (goals_for INTEGER, rank VARCHAR)
SELECT player FROM table_name_74 WHERE round = 7
Tell me the player for 7 round
CREATE TABLE table_name_74 (player VARCHAR, round VARCHAR)
SELECT result FROM table_name_19 WHERE date = "may 27, 2006"
What is the result for the game on May 27, 2006?
CREATE TABLE table_name_19 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_99 WHERE date = "september 20"
What was the result on September 20?
CREATE TABLE table_name_99 (result VARCHAR, date VARCHAR)
SELECT reg_season FROM table_21602734_1 WHERE playoffs = "Did not qualify" AND year = 2009
What was the regular season name where they did not qualify for the playoffs in 2009?
CREATE TABLE table_21602734_1 (reg_season VARCHAR, playoffs VARCHAR, year VARCHAR)
SELECT MIN(points) FROM table_name_37 WHERE chassis = "mclaren m14a"
What is the lowest points of using mclaren m14a as chassis?
CREATE TABLE table_name_37 (points INTEGER, chassis VARCHAR)
SELECT place FROM table_name_35 WHERE score = 65 - 70 - 72 = 207
What was the place when the score was 65-70-72=207?
CREATE TABLE table_name_35 (place VARCHAR, score VARCHAR)
SELECT first_day_cover_cancellation FROM table_name_31 WHERE design = "karen smith design"
What is the first day cover cancellation for the Karen Smith Design stamp?
CREATE TABLE table_name_31 (first_day_cover_cancellation VARCHAR, design VARCHAR)
SELECT MAX(overall_rank) FROM table_name_37 WHERE lane < 8 AND time < 27.16
Tell me the highest overall rank for lane less than 8 and time less than 27.16
CREATE TABLE table_name_37 (overall_rank INTEGER, lane VARCHAR, time VARCHAR)
SELECT points_classification FROM table_name_55 WHERE young_rider_classification = "lech piasecki" AND general_classification = "stephen roche" AND winner = "carrera jeans-vagabond"
How many points did lech piasecki, stephen roche, and carrera jeans-vagabond have?
CREATE TABLE table_name_55 (points_classification VARCHAR, winner VARCHAR, young_rider_classification VARCHAR, general_classification VARCHAR)
SELECT SUM(mintage) FROM table_name_75 WHERE artist = "steve hepburn"
What is the sum of Artist Steve Hepburn's Mintage?
CREATE TABLE table_name_75 (mintage INTEGER, artist VARCHAR)
SELECT score FROM table_name_80 WHERE country = "united states" AND place = "t4"
What is the score that the player who placed t4 from the united states get?
CREATE TABLE table_name_80 (score VARCHAR, country VARCHAR, place VARCHAR)
SELECT COUNT(incumbent) FROM table_1341663_26 WHERE candidates = "Dick Gephardt (D) 81.9% Lee Buchschacher (R) 18.1%"
How many times was the candidates dick gephardt (d) 81.9% lee buchschacher (r) 18.1%?
CREATE TABLE table_1341663_26 (incumbent VARCHAR, candidates VARCHAR)
SELECT COUNT(joined) FROM table_1971074_1 WHERE location = "Logan Township, Pennsylvania"
In how many different years did schools located in Logan Township, Pennsylvania join the Conference?
CREATE TABLE table_1971074_1 (joined VARCHAR, location VARCHAR)
SELECT MAX(by_election) FROM table_28898948_3 WHERE electorate = "Waikaia"
When waikaia is the electorate what is the highest by-election?
CREATE TABLE table_28898948_3 (by_election INTEGER, electorate VARCHAR)
SELECT frequency FROM table_23915973_1 WHERE branding = "106.3 Energy FM Naga"
What is the frequency when radio station branding is 106.3 energy fm naga?
CREATE TABLE table_23915973_1 (frequency VARCHAR, branding VARCHAR)
SELECT college FROM table_14655757_1 WHERE player = "Byron Williams"
What college did Byron Williams attend?
CREATE TABLE table_14655757_1 (college VARCHAR, player VARCHAR)
SELECT torque FROM table_21021796_1 WHERE stroke = "88.4mm"
List the torque possible when the stroke is 88.4mm?
CREATE TABLE table_21021796_1 (torque VARCHAR, stroke VARCHAR)
SELECT party FROM table_1341577_36 WHERE incumbent = "Del Latta"
Which party does Del Latta belong to?
CREATE TABLE table_1341577_36 (party VARCHAR, incumbent VARCHAR)
SELECT aprende FROM table_name_35 WHERE centennial = "1988"
WHich kind of Aprende has a Centennial of 1988?
CREATE TABLE table_name_35 (aprende VARCHAR, centennial VARCHAR)
SELECT datacenter FROM table_name_85 WHERE itanium = "yes" AND features = "memory modules: hot addition"
What is the Datacenter for the Memory modules: hot addition Feature that has Yes listed for Itanium?
CREATE TABLE table_name_85 (datacenter VARCHAR, itanium VARCHAR, features VARCHAR)
SELECT document_id FROM Documents WHERE document_status_code = "done" AND document_type_code = "Paper"
List the document ids for any documents with the status code done and the type code paper.
CREATE TABLE Documents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR)
SELECT status FROM table_171250_2 WHERE official_name = "Saint-Jacques"
What are that status(es) of saint-jacques?
CREATE TABLE table_171250_2 (status VARCHAR, official_name VARCHAR)