answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT builder FROM table_142159_1 WHERE location = "Irton Road shed"
Who is the builder for the location Irton Road shed
CREATE TABLE table_142159_1 (builder VARCHAR, location VARCHAR)
SELECT date FROM table_name_13 WHERE rank > 2 AND network = "itv"
When has a Rank larger than 2 and a Network of itv?
CREATE TABLE table_name_13 (date VARCHAR, rank VARCHAR, network VARCHAR)
SELECT COUNT(*), t2.fullname FROM model_list AS t1 JOIN car_makers AS t2 ON t1.maker = t2.id GROUP BY t2.id
How many car models are produced by each maker ? Only list the count and the maker full name .
CREATE TABLE model_list (maker VARCHAR); CREATE TABLE car_makers (fullname VARCHAR, id VARCHAR)
SELECT runner_up FROM table_name_14 WHERE score = "kapunda 7-7-49 angaston 6-8-44"
When the Score was kapunda 7-7-49 angaston 6-8-44, who was the Runner-up?
CREATE TABLE table_name_14 (runner_up VARCHAR, score VARCHAR)
SELECT founded FROM table_1971074_1 WHERE type = "Private/Non-sectarian"
When was the private/non-sectarian school founded?
CREATE TABLE table_1971074_1 (founded VARCHAR, type VARCHAR)
SELECT result FROM table_21269143_1 WHERE round = "13"
Name the result for round 13
CREATE TABLE table_21269143_1 (result VARCHAR, round VARCHAR)
SELECT wimbledon FROM table_2092557_12 WHERE player = "Martina Navratilova"
What year did Martina Navratilova win Wimbledon?
CREATE TABLE table_2092557_12 (wimbledon VARCHAR, player VARCHAR)
SELECT COUNT(year) FROM table_name_9 WHERE score = "734-5d"
How many years had a score of 734-5d?
CREATE TABLE table_name_9 (year VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_89 WHERE player = "mike souchak"
What is Mike Souchak's to par?
CREATE TABLE table_name_89 (to_par VARCHAR, player VARCHAR)
SELECT census_ranking FROM table_name_94 WHERE area_km_2 > 753.06 AND official_name = "stanley"
Which Census Ranking has an Area km 2 larger than 753.06, and an Official Name of stanley?
CREATE TABLE table_name_94 (census_ranking VARCHAR, area_km_2 VARCHAR, official_name VARCHAR)
SELECT heavy_vehicle__3_4_axles_ FROM table_1211545_2 WHERE name = "Verkeerdevlei Toll Plaza"
What is the toll for heavy vehicles with 3/4 axles at Verkeerdevlei toll plaza?
CREATE TABLE table_1211545_2 (heavy_vehicle__3_4_axles_ VARCHAR, name VARCHAR)
SELECT COUNT(round) FROM table_name_34 WHERE player = "joe barnes"
What is the total number of rounds that Joe Barnes was picked?
CREATE TABLE table_name_34 (round VARCHAR, player VARCHAR)
SELECT year FROM table_name_26 WHERE top_25 = 0 AND earnings__$_ > 0
What year has a Top 25 of 0, and a Earnings ($) larger than 0?
CREATE TABLE table_name_26 (year VARCHAR, top_25 VARCHAR, earnings__$_ VARCHAR)
SELECT date FROM table_name_98 WHERE loser = "indianapolis colts" AND year = 2004
On what date was the game that the Indianapolis Colts lost in 2004?
CREATE TABLE table_name_98 (date VARCHAR, loser VARCHAR, year VARCHAR)
SELECT date FROM table_2266976_1 WHERE average_speed__mph_ = "81.388"
When was an average speed of 81.388 mph recorded?
CREATE TABLE table_2266976_1 (date VARCHAR, average_speed__mph_ VARCHAR)
SELECT record FROM table_name_77 WHERE date = "december 11"
What is the record on December 11?
CREATE TABLE table_name_77 (record VARCHAR, date VARCHAR)
SELECT MAX(poles) FROM table_19487922_1 WHERE country = "Netherlands"
How many poles for the Netherlands?
CREATE TABLE table_19487922_1 (poles INTEGER, country VARCHAR)
SELECT COUNT(gold) FROM table_name_82 WHERE rank > 3 AND bronze > 1
How many times is the rank higher than 3 and bronze more than 1?
CREATE TABLE table_name_82 (gold VARCHAR, rank VARCHAR, bronze VARCHAR)
SELECT athlete FROM table_name_87 WHERE country = "lithuania"
Who was the athlete from Lithuania?
CREATE TABLE table_name_87 (athlete VARCHAR, country VARCHAR)
SELECT Denomination FROM school GROUP BY Denomination HAVING COUNT(*) > 1
Show the denomination shared by more than one school.
CREATE TABLE school (Denomination VARCHAR)
SELECT election_date FROM table_1193568_1 WHERE electorate = "Omata"
what's the election date where electorate is omata
CREATE TABLE table_1193568_1 (election_date VARCHAR, electorate VARCHAR)
SELECT total_viewers_on_hallmark + 1 FROM table_24222929_4 WHERE title = "Pilot"
Name the total viewers on hallmark for pilot
CREATE TABLE table_24222929_4 (total_viewers_on_hallmark VARCHAR, title VARCHAR)
SELECT record FROM table_28768469_9 WHERE team = "Washington"
What was the record after the game against Washington?
CREATE TABLE table_28768469_9 (record VARCHAR, team VARCHAR)
SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM employment)
List the names of people that are not employed by any company
CREATE TABLE employment (Name VARCHAR, People_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT club FROM table_name_67 WHERE points = "56"
What club had 56 points?
CREATE TABLE table_name_67 (club VARCHAR, points VARCHAR)
SELECT languages FROM song GROUP BY languages ORDER BY COUNT(*) DESC LIMIT 1
What is the language used most often in the songs?
CREATE TABLE song (languages VARCHAR)
SELECT attendance FROM table_name_76 WHERE decision = "weekes"
How many attended the game with weekes recording the decision?
CREATE TABLE table_name_76 (attendance VARCHAR, decision VARCHAR)
SELECT MAX(power__hp_) FROM table_name_5 WHERE engine = "om314"
What is the highest power (hp) of an OM314 engine?
CREATE TABLE table_name_5 (power__hp_ INTEGER, engine VARCHAR)
SELECT position FROM table_name_38 WHERE mls_team = "colorado rapids"
What is the position of the Colorado Rapids team?
CREATE TABLE table_name_38 (position VARCHAR, mls_team VARCHAR)
SELECT size__mw_ FROM table_name_87 WHERE turbines > 19 AND turbine_vendor = "enercon" AND county = "wexford"
What is the size of the windfarm in wexford that has more than 19 turbines and a vendor of Enercon?
CREATE TABLE table_name_87 (size__mw_ VARCHAR, county VARCHAR, turbines VARCHAR, turbine_vendor VARCHAR)
SELECT winning_driver FROM table_1137702_3 WHERE grand_prix = "Belgian grand_prix"
Who was the winning driver when the grand Prix was at Belgian Grand Prix?
CREATE TABLE table_1137702_3 (winning_driver VARCHAR, grand_prix VARCHAR)
SELECT COUNT(partner) FROM table_22597626_17 WHERE opponents_in_the_final = "Forget Leconte"
What was the partner count when the opponents in the final was forget leconte?
CREATE TABLE table_22597626_17 (partner VARCHAR, opponents_in_the_final VARCHAR)
SELECT COUNT(runner_up) FROM table_name_71 WHERE last_win < 1998 AND wins = 1 AND rank > 13
Which Runner-up has a Last win smaller than 1998, and Wins of 1, and a Rank larger than 13?
CREATE TABLE table_name_71 (runner_up VARCHAR, rank VARCHAR, last_win VARCHAR, wins VARCHAR)
SELECT h___a FROM table_name_4 WHERE date = "29 july 1992"
What was the H/A on 29 july 1992?
CREATE TABLE table_name_4 (h___a VARCHAR, date VARCHAR)
SELECT MIN(games) FROM table_name_43 WHERE drawn = 1 AND points < 7
What game is the lowest with 1 draw and less than 7 points?
CREATE TABLE table_name_43 (games INTEGER, drawn VARCHAR, points VARCHAR)
SELECT MIN(rank) FROM table_name_69 WHERE bronze = 0 AND silver = 1 AND gold > 0
What is the lowest rank of the team with 0 bronze, 1 silver, and more than 0 gold?
CREATE TABLE table_name_69 (rank INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT COUNT(height) FROM table_12962773_12 WHERE no = 5
What is the height for player number 5?
CREATE TABLE table_12962773_12 (height VARCHAR, no VARCHAR)
SELECT population FROM table_name_93 WHERE county = "tioga"
What is the population of Tioga county?
CREATE TABLE table_name_93 (population VARCHAR, county VARCHAR)
SELECT release_format FROM table_name_48 WHERE release_date > 1979
What type of format was released after 1979?
CREATE TABLE table_name_48 (release_format VARCHAR, release_date INTEGER)
SELECT others FROM table_name_93 WHERE fidesz = "62%" AND jobbik = "4%"
What is the percentage of others with a Fidesz of 62% and a Jobbik of 4%?
CREATE TABLE table_name_93 (others VARCHAR, fidesz VARCHAR, jobbik VARCHAR)
SELECT SUM(to_par) FROM table_name_23 WHERE country = "united states" AND year_s__won = "1973"
What is the sum of To Par, when Country is "United States", and when Year(s) Won is "1973"?
CREATE TABLE table_name_23 (to_par INTEGER, country VARCHAR, year_s__won VARCHAR)
SELECT COUNT(skipper) FROM table_14882588_2 WHERE yacht = "City Index Leopard"
How many different skippers of the yacht City Index Leopard?
CREATE TABLE table_14882588_2 (skipper VARCHAR, yacht VARCHAR)
SELECT SUM(byes) FROM table_name_39 WHERE against = 972 AND wins > 11
How many Byes have an Against of 972, and more than 11 wins?
CREATE TABLE table_name_39 (byes INTEGER, against VARCHAR, wins VARCHAR)
SELECT candidate FROM table_25818630_2 WHERE result____percentage = "2.9%"
Who as the candidate when the result - % was 2.9%?
CREATE TABLE table_25818630_2 (candidate VARCHAR, result____percentage VARCHAR)
SELECT MIN(capacity) FROM table_name_37 WHERE stadium = "hampden park" AND highest > 1 OFFSET 763
What's the capacity that has the highest greater than 1,763 and is at Hampden Park?
CREATE TABLE table_name_37 (capacity INTEGER, stadium VARCHAR, highest VARCHAR)
SELECT socket FROM table_24101118_1 WHERE brand_name = "Core 2 Extreme"
what is the socket that has a brand name of core 2 extreme?
CREATE TABLE table_24101118_1 (socket VARCHAR, brand_name VARCHAR)
SELECT date FROM table_name_75 WHERE opponent = "wimbledon" AND result = "drew 0-0"
What is the Date with an Opponent with wimbledon, and a Result of drew 0-0?
CREATE TABLE table_name_75 (date VARCHAR, opponent VARCHAR, result VARCHAR)
SELECT uni_number FROM table_name_40 WHERE surname = "ough"
Which Uni # has a Surname of ough?
CREATE TABLE table_name_40 (uni_number VARCHAR, surname VARCHAR)
SELECT school_club_team FROM table_name_13 WHERE player = "lawrence roberts"
Which school was Lawrence Roberts from ?
CREATE TABLE table_name_13 (school_club_team VARCHAR, player VARCHAR)
SELECT COUNT(year) FROM table_2241101_1 WHERE date = "February 27"
In how many different years did the race happen on February 27?
CREATE TABLE table_2241101_1 (year VARCHAR, date VARCHAR)
SELECT venue FROM table_name_18 WHERE winner = "gary cowan" AND year = "1966"
Where was the 1966 competition with a winner of Gary Cowan held?
CREATE TABLE table_name_18 (venue VARCHAR, winner VARCHAR, year VARCHAR)
SELECT manufacturer FROM table_name_31 WHERE style = "steel sit down" AND opened > 2008
Which Manufacturer has a Style of steel sit down, and an Opened larger than 2008?
CREATE TABLE table_name_31 (manufacturer VARCHAR, style VARCHAR, opened VARCHAR)
SELECT location FROM table_name_90 WHERE nickname = "tigers"
Which location did the Tigers have?
CREATE TABLE table_name_90 (location VARCHAR, nickname VARCHAR)
SELECT venue FROM table_name_58 WHERE year = 2009 AND home_team = "st. louis rams"
What is the Venue of the 2009 St. Louis Rams Home game?
CREATE TABLE table_name_58 (venue VARCHAR, year VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_29 WHERE date = "20th"
What was the venue on the 20th?
CREATE TABLE table_name_29 (venue VARCHAR, date VARCHAR)
SELECT COUNT(area__acres__) FROM table_30120566_1 WHERE townland = "Rathcoola East"
How many different sizes (in acres) are noted for Rathcoola East?
CREATE TABLE table_30120566_1 (area__acres__ VARCHAR, townland VARCHAR)
SELECT agency FROM table_name_32 WHERE birthday = "1998.11.09"
What's the agency of the member born on 1998.11.09?
CREATE TABLE table_name_32 (agency VARCHAR, birthday VARCHAR)
SELECT COUNT(first_elected) FROM table_1342338_3 WHERE result = "Lost renomination"
How many in total were elected first in lost renomination?
CREATE TABLE table_1342338_3 (first_elected VARCHAR, result VARCHAR)
SELECT trans_2 FROM table_name_76 WHERE swim__15km_ = "18:55" AND run__10km_ = "32:37"
With a swim (1.5km) of 18:55 and a run (10km) of 32:37, what is the trans 2?
CREATE TABLE table_name_76 (trans_2 VARCHAR, swim__15km_ VARCHAR, run__10km_ VARCHAR)
SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 3 UNION SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country JOIN model_list AS t3 ON t2.id = t3.maker WHERE t3.model = 'fiat'
What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?
CREATE TABLE model_list (maker VARCHAR, model VARCHAR); CREATE TABLE countries (countryid VARCHAR, countryname VARCHAR); CREATE TABLE car_makers (country VARCHAR, id VARCHAR)
SELECT municipality FROM table_name_2 WHERE area = "outer circle south" AND area_km² < 368 AND county = "akershus" AND population > 14 OFFSET 398
Which municipality's area is outer circle south and smaller than 368 km in Akershus County with more than 14,398 people?
CREATE TABLE table_name_2 (municipality VARCHAR, population VARCHAR, county VARCHAR, area VARCHAR, area_km² VARCHAR)
SELECT zone FROM table_name_80 WHERE max_people > 23 AND group_s_ < 2 AND name = "robbers roost"
Which zone has max capacity of 23 in a group under 2 at Robbers Roost?
CREATE TABLE table_name_80 (zone VARCHAR, name VARCHAR, max_people VARCHAR, group_s_ VARCHAR)
SELECT club FROM table_name_75 WHERE points_against = "556"
Which of the clubs had 556 points against?
CREATE TABLE table_name_75 (club VARCHAR, points_against VARCHAR)
SELECT binibining_pilipinas_world FROM table_name_72 WHERE second_runner_up = "sonia santiago"
Which Binibining Pilipinas-World has a Second runner-up of sonia santiago?
CREATE TABLE table_name_72 (binibining_pilipinas_world VARCHAR, second_runner_up VARCHAR)
SELECT MIN(clock_speed__mhz_) FROM table_name_75 WHERE introduced = "january 1986"
What is the least clock speed (MHz) with January 1986 as introduced?
CREATE TABLE table_name_75 (clock_speed__mhz_ INTEGER, introduced VARCHAR)
SELECT june_10_11 FROM table_25355392_2 WHERE august_21_22 = "August 21, 2017"
What is the june 10-11 when august 21-22 is august 21, 2017?
CREATE TABLE table_25355392_2 (june_10_11 VARCHAR, august_21_22 VARCHAR)
SELECT incumbent FROM table_1342426_18 WHERE candidates = "Henry Garland Dupré (D) Unopposed"
Who was the incumbent in the election of henry garland dupré (d) unopposed?
CREATE TABLE table_1342426_18 (incumbent VARCHAR, candidates VARCHAR)
SELECT event FROM table_name_70 WHERE time = "1:16"
What Event is at the Time 1:16?
CREATE TABLE table_name_70 (event VARCHAR, time VARCHAR)
SELECT date FROM table_name_23 WHERE opponent_in_the_final = "barbara paulus"
What date was the opponent in the final Barbara Paulus?
CREATE TABLE table_name_23 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT country FROM table_name_48 WHERE television_service = "reteconomy"
What is the Country with Reteconomy as the Television service?
CREATE TABLE table_name_48 (country VARCHAR, television_service VARCHAR)
SELECT result FROM table_name_50 WHERE venue = "valley parade" AND date = "4/7/02"
What is the result at valley parade on 4/7/02?
CREATE TABLE table_name_50 (result VARCHAR, venue VARCHAR, date VARCHAR)
SELECT away FROM table_name_48 WHERE round = "round 16"
What was the visiting team that played a round 16 game?
CREATE TABLE table_name_48 (away VARCHAR, round VARCHAR)
SELECT record FROM table_name_96 WHERE home = "columbus" AND date = "march 7"
What is the record of the match with Columbus as the home team on March 7?
CREATE TABLE table_name_96 (record VARCHAR, home VARCHAR, date VARCHAR)
SELECT height FROM table_12962773_5 WHERE current_club = "DKV Joventut"
what's the height with current club being dkv joventut
CREATE TABLE table_12962773_5 (height VARCHAR, current_club VARCHAR)
SELECT 2010 FROM table_name_24 WHERE 2006 = "3r"
what is 2010 when 2006 is 3r?
CREATE TABLE table_name_24 (Id VARCHAR)
SELECT lost FROM table_name_5 WHERE tries_against = "77"
What is the team that lost with 77 tries against?
CREATE TABLE table_name_5 (lost VARCHAR, tries_against VARCHAR)
SELECT score FROM table_name_30 WHERE place = "t5" AND country = "united states"
Which Score has a Place of t5, and a Country of united states?
CREATE TABLE table_name_30 (score VARCHAR, place VARCHAR, country VARCHAR)
SELECT screen_size FROM table_name_8 WHERE bluetooth = "no" AND model = "s45 (australia only)"
What is the screen size of the s45 (Australia only) Model with no bluetooth?
CREATE TABLE table_name_8 (screen_size VARCHAR, bluetooth VARCHAR, model VARCHAR)
SELECT SUM(top_25) FROM table_name_24 WHERE events > 91
How many top-25s are associated with more than 91 events?
CREATE TABLE table_name_24 (top_25 INTEGER, events INTEGER)
SELECT incumbent FROM table_name_84 WHERE first_elected = 1987
Which incumbent was first elected in 1987?
CREATE TABLE table_name_84 (incumbent VARCHAR, first_elected VARCHAR)
SELECT report FROM table_name_96 WHERE winning_constructor = "bugatti" AND circuit = "brooklands"
Tell me the report for bugatti and brooklands
CREATE TABLE table_name_96 (report VARCHAR, winning_constructor VARCHAR, circuit VARCHAR)
SELECT nhl_team FROM table_2850912_10 WHERE player = "Joakim Persson"
Which team drafted Joakim Persson?
CREATE TABLE table_2850912_10 (nhl_team VARCHAR, player VARCHAR)
SELECT player FROM table_name_44 WHERE pick__number > 207
What player has a pick # greater than 207?
CREATE TABLE table_name_44 (player VARCHAR, pick__number INTEGER)
SELECT election_date FROM table_name_49 WHERE member = "william richmond category:articles with hcards"
What is the Election date for Member william richmond category:articles with hcards?
CREATE TABLE table_name_49 (election_date VARCHAR, member VARCHAR)
SELECT T1.detention_type_code, T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY COUNT(*) LIMIT 1
What are the code and description of the least frequent detention type ?
CREATE TABLE Ref_Detention_Type (detention_type_description VARCHAR, detention_type_code VARCHAR); CREATE TABLE Detention (detention_type_code VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_92 WHERE nationality = "sweden"
Which College/Junior/Club Team (League) are from sweden?
CREATE TABLE table_name_92 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR)
SELECT resident_country FROM table_name_79 WHERE local_location = "copenhagen"
What is Resident Country, when Local Location is "Copenhagen"?
CREATE TABLE table_name_79 (resident_country VARCHAR, local_location VARCHAR)
SELECT part_4 FROM table_1745843_8 WHERE part_1 = "lesan"
What is the part 4 when part 1 is "lesan"?
CREATE TABLE table_1745843_8 (part_4 VARCHAR, part_1 VARCHAR)
SELECT year_named FROM table_name_42 WHERE longitude = "227.5e"
What is Year Named, when Longitude is 227.5E?
CREATE TABLE table_name_42 (year_named VARCHAR, longitude VARCHAR)
SELECT COUNT(rec) FROM table_name_84 WHERE player = "chris watton" AND yards < 1
How many receptions does Chris Watton with yards of less than 1?
CREATE TABLE table_name_84 (rec VARCHAR, player VARCHAR, yards VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_51 WHERE round = 10 AND player = "paul cain"
What league has a 10 for round with Paul Cain?
CREATE TABLE table_name_51 (college_junior_club_team__league_ VARCHAR, round VARCHAR, player VARCHAR)
SELECT team FROM table_name_35 WHERE score = "l 79–92 (ot)"
What is the Team with a Score that is l 79–92 (ot)?
CREATE TABLE table_name_35 (team VARCHAR, score VARCHAR)
SELECT COUNT(members) FROM table_24329520_8 WHERE borough = "Bandon Bridge"
What is the number of members that have boroughs of Bandon Bridge?
CREATE TABLE table_24329520_8 (members VARCHAR, borough VARCHAR)
SELECT COUNT(catches) FROM table_27770426_1 WHERE no = 46
How many total catches did the player with no. 46 have?
CREATE TABLE table_27770426_1 (catches VARCHAR, no VARCHAR)
SELECT round FROM table_name_30 WHERE track = "winton"
What Round has the Track Winton?
CREATE TABLE table_name_30 (round VARCHAR, track VARCHAR)
SELECT thurs_27_aug FROM table_23465864_6 WHERE tues_25_aug = "23' 00.59 98.384mph"
What was the event on Thurs 27 Aug when Tues 25 Aug was 23' 00.59 98.384mph?
CREATE TABLE table_23465864_6 (thurs_27_aug VARCHAR, tues_25_aug VARCHAR)
SELECT 2 AS nd_leg FROM table_24426072_1 WHERE team__number1 = "River Plate"
What was the 2nd leg for team #1 River Plate?
CREATE TABLE table_24426072_1 (team__number1 VARCHAR)
SELECT date FROM table_name_70 WHERE competition = "friendly"
On what date was the Competition of Friendly held?
CREATE TABLE table_name_70 (date VARCHAR, competition VARCHAR)
SELECT MAX(pick) FROM table_name_57 WHERE player = "parnell dickinson" AND round < 7
When parnell dickinson was the player and the rounds were under 7, what's the highest pick?
CREATE TABLE table_name_57 (pick INTEGER, player VARCHAR, round VARCHAR)
SELECT T2.Author, T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID
Show the authors of submissions and the acceptance results of their submissions.
CREATE TABLE acceptance (Result VARCHAR, Submission_ID VARCHAR); CREATE TABLE submission (Author VARCHAR, Submission_ID VARCHAR)