answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT time FROM table_name_38 WHERE length = "21.40km" AND name = "santa rosa 1"
In the 21.40km Santa Rosa 1 Stage, what was the Time?
CREATE TABLE table_name_38 (time VARCHAR, length VARCHAR, name VARCHAR)
SELECT Amount_Settled, Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1
Among all the claims, what is the settlement amount of the claim with the largest claim amount? List both the settlement amount and claim amount.
CREATE TABLE Claims (Amount_Settled VARCHAR, Amount_Claimed VARCHAR)
SELECT COUNT(incumbent) FROM table_1341718_14 WHERE candidates = "Phil Crane (R) 58.0% Edward A. Warman (D) 42.0%"
how many times was the candidates phil crane (r) 58.0% edward a. warman (d) 42.0%?
CREATE TABLE table_1341718_14 (incumbent VARCHAR, candidates VARCHAR)
SELECT id, color, name FROM photos
List the id, color scheme, and name for all the photos.
CREATE TABLE photos (id VARCHAR, color VARCHAR, name VARCHAR)
SELECT score FROM table_name_6 WHERE record = "17-27"
Name the score with record of 17-27
CREATE TABLE table_name_6 (score VARCHAR, record VARCHAR)
SELECT COUNT(rank) FROM table_name_86 WHERE ø_pts > 1.26 AND games = 1458
What was the rank for 1.26 Ø-Pts in game 1458?
CREATE TABLE table_name_86 (rank VARCHAR, ø_pts VARCHAR, games VARCHAR)
SELECT AVG(bronze) FROM table_name_27 WHERE silver > 0 AND total = 6 AND gold > 0
Name the average bronze with silver more than 0, total of 6 and gold more than 0
CREATE TABLE table_name_27 (bronze INTEGER, gold VARCHAR, silver VARCHAR, total VARCHAR)
SELECT opponent_in_the_final FROM table_name_17 WHERE date = "november 14, 1994"
Who was played against in the final on November 14, 1994?
CREATE TABLE table_name_17 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT MIN(points) FROM table_name_76 WHERE against = 23 AND played < 8
When the played number is less than 8 and against is 23, what is the least amount of points?
CREATE TABLE table_name_76 (points INTEGER, against VARCHAR, played VARCHAR)
SELECT home_team FROM table_name_95 WHERE venue = "glenferrie oval"
Who is the home team who plays at Glenferrie Oval?
CREATE TABLE table_name_95 (home_team VARCHAR, venue VARCHAR)
SELECT party FROM table_name_10 WHERE results = "re-elected" AND first_elected > 1990 AND district = "minnesota 4"
What is Party, when Results is "Re-Elected", when First Elected is greater than 1990, and when District is "Minnesota 4"?
CREATE TABLE table_name_10 (party VARCHAR, district VARCHAR, results VARCHAR, first_elected VARCHAR)
SELECT COUNT(record) FROM table_17778417_1 WHERE opponent = "Dallas Texans"
How many times did the Denver Broncos face the Dallas Texans this season?
CREATE TABLE table_17778417_1 (record VARCHAR, opponent VARCHAR)
SELECT MIN(land___sqmi__) FROM table_name_27 WHERE longitude = -99.172785 AND water__sqmi_ < 0.973
What is the lowest land in sq mi with a longitude of -99.172785 and less than 0.973 sq mi of water?
CREATE TABLE table_name_27 (land___sqmi__ INTEGER, longitude VARCHAR, water__sqmi_ VARCHAR)
SELECT MIN(capacity) FROM table_name_35 WHERE team = "šibenik"
what is the capacity for the team šibenik?
CREATE TABLE table_name_35 (capacity INTEGER, team VARCHAR)
SELECT MIN(game) FROM table_name_97 WHERE high_assists = "s. threatt (9)"
Which Game has High assists of s. threatt (9)?
CREATE TABLE table_name_97 (game INTEGER, high_assists VARCHAR)
SELECT school FROM table_name_96 WHERE location = "wabash" AND mascot = "knights"
Which School in Wabash has a Mascot of knights?
CREATE TABLE table_name_96 (school VARCHAR, location VARCHAR, mascot VARCHAR)
SELECT away_team AS score FROM table_name_40 WHERE home_team = "essendon"
What was Essendon's opponents away score?
CREATE TABLE table_name_40 (away_team VARCHAR, home_team VARCHAR)
SELECT roomName FROM Rooms ORDER BY maxOccupancy DESC LIMIT 1
Find the name of the room with the maximum occupancy.
CREATE TABLE Rooms (roomName VARCHAR, maxOccupancy VARCHAR)
SELECT MAX(date) FROM table_name_64 WHERE cores_per_die___dies_per_module = "2 / 1" AND clock = "1.4-1.6ghz"
What is the latest date with Cores per die / Dies per module of 2 / 1, and a Clock of 1.4-1.6ghz?
CREATE TABLE table_name_64 (date INTEGER, cores_per_die___dies_per_module VARCHAR, clock VARCHAR)
SELECT date FROM table_1590652_4 WHERE winning_score = 67 - 67 - 63 = 197
Name the date of winning score being 67-67-63=197
CREATE TABLE table_1590652_4 (date VARCHAR, winning_score VARCHAR)
SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = "APG"
What are flight numbers of flights departing from Airport "APG"?
CREATE TABLE FLIGHTS (FlightNo VARCHAR, SourceAirport VARCHAR)
SELECT COUNT(unlock_order) FROM table_24463470_1 WHERE unlocks = "Paris"
How many instances is paris the unlock?
CREATE TABLE table_24463470_1 (unlock_order VARCHAR, unlocks VARCHAR)
SELECT score FROM table_11603006_1 WHERE location = "Michigan" AND purse__$__ < 1813335.221493934
What was the score for the tournament in Michigan where the purse was smaller than 1813335.221493934?
CREATE TABLE table_11603006_1 (score VARCHAR, location VARCHAR, purse__$__ VARCHAR)
SELECT grid FROM table_name_17 WHERE car_no = "3"
What is the grid of car no. 3?
CREATE TABLE table_name_17 (grid VARCHAR, car_no VARCHAR)
SELECT COUNT(mccain_number) FROM table_20688030_1 WHERE obama_percentage = "39.13%"
What is McCains percent when Obamas is 39.13%
CREATE TABLE table_20688030_1 (mccain_number VARCHAR, obama_percentage VARCHAR)
SELECT result FROM table_26842217_4 WHERE visiting_team = "Tennessee Tech"
What were the results of the tennessee tech as a visiting team?
CREATE TABLE table_26842217_4 (result VARCHAR, visiting_team VARCHAR)
SELECT MAX(episode) FROM table_15739098_1 WHERE adapted_by = "Leon Griffiths"
Name the msot episode that was adapted by leon griffiths
CREATE TABLE table_15739098_1 (episode INTEGER, adapted_by VARCHAR)
SELECT COUNT(nfl_team) FROM table_20996923_25 WHERE player = "Stevie Brown"
How many NFL teams does Stevie Brown play for?
CREATE TABLE table_20996923_25 (nfl_team VARCHAR, player VARCHAR)
SELECT laps FROM table_2267857_1 WHERE date = "October 26"
Name the laps of october 26
CREATE TABLE table_2267857_1 (laps VARCHAR, date VARCHAR)
SELECT region FROM table_2588674_1 WHERE village = "Inarajan"
What region is inarajan in?
CREATE TABLE table_2588674_1 (region VARCHAR, village VARCHAR)
SELECT entrant FROM table_name_42 WHERE chassis = "maserati 250f" AND points = "6" AND year < 1957
What is the entrant of a chassis maserati 250f, also has 6 points and older than year 1957?
CREATE TABLE table_name_42 (entrant VARCHAR, year VARCHAR, chassis VARCHAR, points 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 1999 FROM table_name_40 WHERE 2000 = "year-end championship"
Which 1999 has 2000 as the year-end championship?
CREATE TABLE table_name_40 (Id VARCHAR)
SELECT score FROM table_27734577_2 WHERE high_points = "Josh Powell (13)"
what was the final score of the game where josh powell (13) scored the most points?
CREATE TABLE table_27734577_2 (score VARCHAR, high_points VARCHAR)
SELECT MAX(episode__number) FROM table_27155243_4 WHERE written_by = "Matt MacLennan"
What episode was written by Matt Maclennan?
CREATE TABLE table_27155243_4 (episode__number INTEGER, written_by VARCHAR)
SELECT original_air_date__uk_ FROM table_2570269_3 WHERE episode__number = "3-02"
What is the original air date of episode 3-02?
CREATE TABLE table_2570269_3 (original_air_date__uk_ VARCHAR, episode__number VARCHAR)
SELECT COUNT(episode_number) FROM table_24798489_1 WHERE location = "New York, New York"
How many episodes had New York, New York as the location?
CREATE TABLE table_24798489_1 (episode_number VARCHAR, location VARCHAR)
SELECT record FROM table_name_1 WHERE january < 7
What was the record after the game before Jan 7?
CREATE TABLE table_name_1 (record VARCHAR, january INTEGER)
SELECT township FROM table_18600760_19 WHERE latitude = "47.377790"
how is called the township where the latitude is 47.377790
CREATE TABLE table_18600760_19 (township VARCHAR, latitude VARCHAR)
SELECT loss FROM table_name_8 WHERE attendance = "24,406"
When the attendance was 24,406 who lost?
CREATE TABLE table_name_8 (loss VARCHAR, attendance VARCHAR)
SELECT country FROM table_name_97 WHERE format = "2lp" AND label = "hydra head records"
Which country has Hydra Head Records with a 2lp format?
CREATE TABLE table_name_97 (country VARCHAR, format VARCHAR, label VARCHAR)
SELECT method FROM table_name_49 WHERE event = "reality submission fighting 2"
What is Method, when Event is "Reality Submission Fighting 2"?
CREATE TABLE table_name_49 (method VARCHAR, event VARCHAR)
SELECT mkhedruli FROM table_name_41 WHERE asomtavruli = "ⴒ"
What is the Mkhedruli symbol for the Asomtavruli ⴒ?
CREATE TABLE table_name_41 (mkhedruli VARCHAR, asomtavruli VARCHAR)
SELECT left_office FROM table_name_96 WHERE romanized__hangul_ = "chang myon (장면)"
When did chang myon (장면) leave office?
CREATE TABLE table_name_96 (left_office VARCHAR, romanized__hangul_ VARCHAR)
SELECT MAX(bronze) FROM table_name_29 WHERE nation = "israel" AND silver < 3
What is the highest number of bronze medals that israel acheived when they got less than 3 silver medals?
CREATE TABLE table_name_29 (bronze INTEGER, nation VARCHAR, silver VARCHAR)
SELECT gold FROM table_name_58 WHERE bronze = 1 AND silver > 0
Who ha the gold and 1 bronze, and more than 0 silver?
CREATE TABLE table_name_58 (gold VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT h___a FROM table_name_25 WHERE opponents = "bohemians"
What the H/A when the opponent is the Bohemians?
CREATE TABLE table_name_25 (h___a VARCHAR, opponents VARCHAR)
SELECT sr FROM table_name_46 WHERE average < 23.63 AND runs_scored = 49
Which S.R. has a Average smaller than 23.63 Runs Scored of 49?
CREATE TABLE table_name_46 (sr VARCHAR, average VARCHAR, runs_scored VARCHAR)
SELECT area_km_2 FROM table_171236_2 WHERE census_ranking = "1,016 of 5,008"
What is the Area KM 2 of the place that has a Census ranking of 1,016 of 5,008?
CREATE TABLE table_171236_2 (area_km_2 VARCHAR, census_ranking VARCHAR)
SELECT play_by_play_announcer FROM table_2941848_2 WHERE trophy_presentation = "Chris Rose"
Who is every play-by-play announcer when Chris Rose is the trophy presenter?
CREATE TABLE table_2941848_2 (play_by_play_announcer VARCHAR, trophy_presentation VARCHAR)
SELECT name FROM playlists
List the name of all playlist.
CREATE TABLE playlists (name VARCHAR)
SELECT date FROM table_name_12 WHERE week < 4 AND game_site = "rca dome" AND opponent = "new england patriots"
Week smaller than 4, and a Game Site of rca dome, and a Opponent of new england patriots involves what date?
CREATE TABLE table_name_12 (date VARCHAR, opponent VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_31 WHERE round = 8
What College team has 8 rounds?
CREATE TABLE table_name_31 (college_junior_club_team__league_ VARCHAR, round VARCHAR)
SELECT SUM(pick) FROM table_name_56 WHERE name = "ed hickerson" AND round < 10
Which Pick has a Name of ed hickerson, and a Round smaller than 10?
CREATE TABLE table_name_56 (pick INTEGER, name VARCHAR, round VARCHAR)
SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY COUNT(*) DESC LIMIT 1
What is the most popular payment method?
CREATE TABLE Payments (Payment_Method_Code VARCHAR)
SELECT date FROM table_name_42 WHERE road_team = "new york" AND result = "79-75"
Which Date has a Road Team of new york, and a Result of 79-75?
CREATE TABLE table_name_42 (date VARCHAR, road_team VARCHAR, result VARCHAR)
SELECT date FROM table_name_55 WHERE score = "6–3, 3–6, 6–0"
What date was the score 6–3, 3–6, 6–0?
CREATE TABLE table_name_55 (date VARCHAR, score VARCHAR)
SELECT station_type FROM table_2610582_2 WHERE branding = "ABS-CBN TV-32 Tagaytay"
What is the station type for the branding ABS-CBN TV-32 Tagaytay?
CREATE TABLE table_2610582_2 (station_type VARCHAR, branding VARCHAR)
SELECT region FROM table_name_8 WHERE format = "cd maxi"
Which region had a release format of CD Maxi?
CREATE TABLE table_name_8 (region VARCHAR, format VARCHAR)
SELECT name FROM table_name_32 WHERE took_office = "march 4, 1903"
Who has a Took Office of march 4, 1903?
CREATE TABLE table_name_32 (name VARCHAR, took_office VARCHAR)
SELECT time_retired FROM table_name_29 WHERE laps < 33 AND grid = 14
What was the time/retired with laps less than 33 and a grid of 14?
CREATE TABLE table_name_29 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT location FROM table_name_12 WHERE fatalities = "unknown" AND aircraft = "ju-52"
In what location were the fatalities unknown for the Ju-52 aircraft?
CREATE TABLE table_name_12 (location VARCHAR, fatalities VARCHAR, aircraft VARCHAR)
SELECT MIN(week) FROM table_name_77 WHERE attendance < 32 OFFSET 738
Tell me the lowest week for attedance less thaan 32,738
CREATE TABLE table_name_77 (week INTEGER, attendance INTEGER)
SELECT club FROM table_name_55 WHERE nationality = "united states" AND player = "ty harden"
What club did united states player ty harden play for?
CREATE TABLE table_name_55 (club VARCHAR, nationality VARCHAR, player VARCHAR)
SELECT MAX(election) FROM table_name_97 WHERE third_member = "sir robert price, bt" AND first_party = "conservative"
What was the highest election with third party member Sir Robert Price, BT, and first party member conservative?
CREATE TABLE table_name_97 (election INTEGER, third_member VARCHAR, first_party VARCHAR)
SELECT MIN(wins) FROM table_name_5 WHERE rank < 3 AND events > 10
Who has the least wins when ranked above 3 with over 10 events?
CREATE TABLE table_name_5 (wins INTEGER, rank VARCHAR, events VARCHAR)
SELECT nationality FROM table_2897457_5 WHERE player = "Keith Carney"
What nationality is keith carney?
CREATE TABLE table_2897457_5 (nationality VARCHAR, player VARCHAR)
SELECT position FROM table_name_22 WHERE goals_against > 32 AND points > 30
Which Position has Goals against larger than 32, and points larger than 30?
CREATE TABLE table_name_22 (position VARCHAR, goals_against VARCHAR, points VARCHAR)
SELECT city FROM table_name_65 WHERE year_left = "1949"
In what city was the team that left the conference in 1949 based?
CREATE TABLE table_name_65 (city VARCHAR, year_left VARCHAR)
SELECT MAX(caps) FROM table_name_55 WHERE position = "lock" AND club_province = "vicenza rangers"
What is the high cap total for a lock with the vicenza rangers?
CREATE TABLE table_name_55 (caps INTEGER, position VARCHAR, club_province VARCHAR)
SELECT district FROM table_name_40 WHERE incumbent = "jim moran"
What district is Jim Moran the incumbent for.
CREATE TABLE table_name_40 (district VARCHAR, incumbent VARCHAR)
SELECT 2012 FROM table_name_36 WHERE tournament = "us open"
Name the 2012 for us open
CREATE TABLE table_name_36 (tournament VARCHAR)
SELECT visiting_team FROM table_name_31 WHERE date = "december 6"
Who was the visiting team on December 6?
CREATE TABLE table_name_31 (visiting_team VARCHAR, date VARCHAR)
SELECT week FROM table_name_88 WHERE result = "l 35–37"
What week's game had a result of l 35–37?
CREATE TABLE table_name_88 (week VARCHAR, result VARCHAR)
SELECT away_team FROM table_name_51 WHERE venue = "princes park"
What was the away team that played at Princes Park?
CREATE TABLE table_name_51 (away_team VARCHAR, venue VARCHAR)
SELECT aircraft FROM table_name_88 WHERE seating = "148/9"
Which aircraft has 148/9 seating?
CREATE TABLE table_name_88 (aircraft VARCHAR, seating VARCHAR)
SELECT SUM(crowd) FROM table_name_46 WHERE home_team = "collingwood"
How many people were in the crowd at collingwood's home game?
CREATE TABLE table_name_46 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(played) FROM table_name_89 WHERE lost < 13 AND goal_difference = "+46"
What is the highest number played when there were less than 13 losses and a goal difference of +46?
CREATE TABLE table_name_89 (played INTEGER, lost VARCHAR, goal_difference VARCHAR)
SELECT MIN(best) FROM table_name_34 WHERE team = "n/h/l racing" AND name = "graham rahal" AND qual_2 > 59.384
Graham rahal for n/h/l racing has a qual 2 greater than 59.384 and how much lowest best?
CREATE TABLE table_name_34 (best INTEGER, qual_2 VARCHAR, team VARCHAR, name VARCHAR)
SELECT description FROM table_28652521_1 WHERE storage_case = "cardboard box" AND for_shank_type = "low"
What are all the different descriptions for the buttonholer with cardboard box for storage and a low shank type?
CREATE TABLE table_28652521_1 (description VARCHAR, storage_case VARCHAR, for_shank_type VARCHAR)
SELECT winning_driver FROM table_name_73 WHERE name = "st. petersburg - moscow"
WHo is Winning driver that is in st. petersburg - moscow?
CREATE TABLE table_name_73 (winning_driver VARCHAR, name VARCHAR)
SELECT record FROM table_name_75 WHERE date = "april 15"
What was the record after the April 15 game?
CREATE TABLE table_name_75 (record VARCHAR, date VARCHAR)
SELECT artist FROM table_name_38 WHERE catalog__number = "zk 34354"
Who is the artist with catalog number ZK 34354?
CREATE TABLE table_name_38 (artist VARCHAR, catalog__number VARCHAR)
SELECT objectnumber FROM table_name_95 WHERE location = "barrow hill" AND wheels = "4-4-0"
What is the Object Number for the item with wheels 4-4-0 and a location of Barrow Hill?
CREATE TABLE table_name_95 (objectnumber VARCHAR, location VARCHAR, wheels VARCHAR)
SELECT COUNT(runners_up) FROM table_name_92 WHERE winning_years = "2010"
What is the total number of runners-up for a club with winning years of 2010?
CREATE TABLE table_name_92 (runners_up VARCHAR, winning_years VARCHAR)
SELECT engine FROM table_name_78 WHERE displacement = "1,585 cc" AND model = "90i"
Which of the engines has a displacement of 1,585 cc, with a model number of 90i?
CREATE TABLE table_name_78 (engine VARCHAR, displacement VARCHAR, model VARCHAR)
SELECT MAX(round) FROM table_name_14 WHERE school_club_team = "louisville" AND pick > 75
What's the highest round that louisville drafted into when their pick was over 75?
CREATE TABLE table_name_14 (round INTEGER, school_club_team VARCHAR, pick VARCHAR)
SELECT incumbent FROM table_1341663_44 WHERE district = "Texas 3"
What was the incumbent of texas 3?
CREATE TABLE table_1341663_44 (incumbent VARCHAR, district VARCHAR)
SELECT english_version FROM table_25173505_15 WHERE character = "Drizella"
Who voiced Drizella in the English version?
CREATE TABLE table_25173505_15 (english_version VARCHAR, character VARCHAR)
SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1
Show the result of the submission with the highest score.
CREATE TABLE acceptance (Result VARCHAR, Submission_ID VARCHAR); CREATE TABLE submission (Submission_ID VARCHAR, Scores VARCHAR)
SELECT date FROM table_name_67 WHERE results¹ = "3:0"
What day were the results 3:0?
CREATE TABLE table_name_67 (date VARCHAR, results¹ VARCHAR)
SELECT left_office FROM table_name_58 WHERE years_in_office = "2" AND death = "october 23, 1887"
On what date did the person leave office who died on October 23, 1887 and who served 2 years?
CREATE TABLE table_name_58 (left_office VARCHAR, years_in_office VARCHAR, death VARCHAR)
SELECT title FROM table_13755296_1 WHERE teleplay_by = "David Simon"
What's the title of the episode written by David Simon?
CREATE TABLE table_13755296_1 (title VARCHAR, teleplay_by VARCHAR)
SELECT audition_city FROM table_27455867_1 WHERE episode_air_date = "January 27, 2011"
Where were the auditions held in the episode that aired on january 27, 2011?
CREATE TABLE table_27455867_1 (audition_city VARCHAR, episode_air_date VARCHAR)
SELECT COUNT(record) FROM table_27733909_1 WHERE date = "October 6"
what is the overall number of times when the calendar showed october 6
CREATE TABLE table_27733909_1 (record VARCHAR, date VARCHAR)
SELECT league FROM table_1908049_1 WHERE playoffs = "Semifinals"
in what playoffs the league was in the semifinals
CREATE TABLE table_1908049_1 (league VARCHAR, playoffs VARCHAR)
SELECT name FROM table_26176081_29 WHERE tfl_yds = "2-2"
What is the name when tfl-yds is 2-2?
CREATE TABLE table_26176081_29 (name VARCHAR, tfl_yds VARCHAR)
SELECT COUNT(goals) FROM table_name_48 WHERE games < 6 AND debut_year = 1939 AND years_at_club = "1939, 1941"
How many Goals have Games smaller than 6, and a Debut year of 1939, and Years at club of 1939, 1941?
CREATE TABLE table_name_48 (goals VARCHAR, years_at_club VARCHAR, games VARCHAR, debut_year VARCHAR)
SELECT score FROM table_11960407_4 WHERE location_attendance = "Air Canada Centre 18,067"
What was the score when the location attendance was Air Canada Centre 18,067?
CREATE TABLE table_11960407_4 (score VARCHAR, location_attendance VARCHAR)
SELECT COUNT(class_aAAA) FROM table_14603057_2 WHERE school_year = "2002-03"
How many Class AAAA winners where in 2002-03?
CREATE TABLE table_14603057_2 (class_aAAA VARCHAR, school_year VARCHAR)