answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = "660 Shea Crescent" OR T2.How_to_Get_There = "walk" | What are the names of tourist attractions that can be reached by walk or is at address 660 Shea Crescent? | CREATE TABLE Tourist_Attractions (Name VARCHAR, Location_ID VARCHAR, How_to_Get_There VARCHAR); CREATE TABLE Locations (Location_ID VARCHAR, Address VARCHAR) |
SELECT state FROM table_name_8 WHERE mountain_peak = "mount chiginagak" | Which state is Mount Chiginagak located in? | CREATE TABLE table_name_8 (state VARCHAR, mountain_peak VARCHAR) |
SELECT AVG(sample_size) FROM table_name_5 WHERE republican = "mike huckabee" AND margin_of_error > 4 AND date = "dec 13-15, 2007" | What is the sample size of the poll taken on Dec 13-15, 2007 that had a margin of error of more than 4 and resulted with Republican Mike Huckabee? | CREATE TABLE table_name_5 (sample_size INTEGER, date VARCHAR, republican VARCHAR, margin_of_error VARCHAR) |
SELECT opponent FROM table_name_7 WHERE venue = "cua stadium" | Who is the opponent of the match at cua stadium? | CREATE TABLE table_name_7 (opponent VARCHAR, venue VARCHAR) |
SELECT nhl_team FROM table_name_22 WHERE league_from = "ontario hockey league" AND player = "tony dehart" | Which team has a League from of ontario hockey league, and a Player of tony dehart? | CREATE TABLE table_name_22 (nhl_team VARCHAR, league_from VARCHAR, player VARCHAR) |
SELECT occupation FROM table_name_11 WHERE riding = "labrador" | What is the occupation of the candidate that has a riding of labrador? | CREATE TABLE table_name_11 (occupation VARCHAR, riding VARCHAR) |
SELECT lost FROM table_name_8 WHERE points_against = "387" | when points against was 387 what was the lost? | CREATE TABLE table_name_8 (lost VARCHAR, points_against VARCHAR) |
SELECT AVG(yards__red_tees_) FROM table_name_27 WHERE hole = "1" AND par__white_tees_ > 4 | What is the average number of yards on a red tee that has a hole of 1 and a par above 4? | CREATE TABLE table_name_27 (yards__red_tees_ INTEGER, hole VARCHAR, par__white_tees_ VARCHAR) |
SELECT place FROM table_name_52 WHERE player = "miller barber" | Where is Miller Barber from? | CREATE TABLE table_name_52 (place VARCHAR, player VARCHAR) |
SELECT time FROM table_name_15 WHERE set_2 = "20–25" AND date = "05 jun" | Which Time has a Set 2 of 20–25, and a Date of 05 jun? | CREATE TABLE table_name_15 (time VARCHAR, set_2 VARCHAR, date VARCHAR) |
SELECT margin_of_victory FROM table_1514634_2 WHERE tournament = "Hawaiian Open" | What was the margin of victory at the Hawaiian Open tournament? | CREATE TABLE table_1514634_2 (margin_of_victory VARCHAR, tournament VARCHAR) |
SELECT armenian FROM table_27366772_3 WHERE area__km²_ = "8.37" | What is the Armenian name of the district that is 8.37 km² large? | CREATE TABLE table_27366772_3 (armenian VARCHAR, area__km²_ VARCHAR) |
SELECT t20_matches FROM table_name_18 WHERE total = "23" | What T20 Match has a total of 23? | CREATE TABLE table_name_18 (t20_matches VARCHAR, total VARCHAR) |
SELECT MIN(points) FROM table_name_41 WHERE wins < 2 | which Points has Wins smaller than 2? | CREATE TABLE table_name_41 (points INTEGER, wins INTEGER) |
SELECT nhl_team_s_ FROM table_1205598_1 WHERE nba_team_s_ = "Nuggets" | What is the the name of the NHL team that is in the same market as the NBA team, Nuggets? | CREATE TABLE table_1205598_1 (nhl_team_s_ VARCHAR, nba_team_s_ VARCHAR) |
SELECT nfl_club FROM table_name_60 WHERE pick = 153 | What is the NFL club with pick # 153? | CREATE TABLE table_name_60 (nfl_club VARCHAR, pick VARCHAR) |
SELECT f_laps FROM table_27571406_1 WHERE podiums = 8 | What's the f/laps count for the team with 8 podiums? | CREATE TABLE table_27571406_1 (f_laps VARCHAR, podiums VARCHAR) |
SELECT crew FROM table_name_73 WHERE end_time = "21:11" | What is the crew with the end time of 21:11? | CREATE TABLE table_name_73 (crew VARCHAR, end_time VARCHAR) |
SELECT tonnes FROM table_18047346_5 WHERE airport_name = "Louisville International Airport" | Louisville International Airport had how many tonnes of cargo in 2011? | CREATE TABLE table_18047346_5 (tonnes VARCHAR, airport_name VARCHAR) |
SELECT driver FROM table_name_59 WHERE grid = 9 | I want the driver for grid of 9 | CREATE TABLE table_name_59 (driver VARCHAR, grid VARCHAR) |
SELECT MIN(cr_no) FROM table_1886270_1 | What is the lowest cr number? | CREATE TABLE table_1886270_1 (cr_no INTEGER) |
SELECT MIN(year) FROM table_name_12 WHERE wins < 5 AND points = 89 | What is the earliest year with fewer than 5 wins and 89 points? | CREATE TABLE table_name_12 (year INTEGER, wins VARCHAR, points VARCHAR) |
SELECT winnings FROM table_name_93 WHERE starts > 34 AND poles < 1 AND top_10 = 5 | Which Winnings have Starts larger than 34, and Poles smaller than 1, and a Top 10 of 5? | CREATE TABLE table_name_93 (winnings VARCHAR, top_10 VARCHAR, starts VARCHAR, poles VARCHAR) |
SELECT no_in_series FROM table_25246990_2 WHERE prod_code = "111" | What number episode in the series had a production code of 111? | CREATE TABLE table_25246990_2 (no_in_series VARCHAR, prod_code VARCHAR) |
SELECT MAX(no_in_season) FROM table_10842344_1 WHERE us_viewers__millions_ = "14.37" | What's the latest episode in a season where the U.S. viewers totaled 14.37 million? | CREATE TABLE table_10842344_1 (no_in_season INTEGER, us_viewers__millions_ VARCHAR) |
SELECT airport FROM table_name_87 WHERE city = "toronto" | What airport is in Toronto? | CREATE TABLE table_name_87 (airport VARCHAR, city VARCHAR) |
SELECT barrel_twist FROM table_name_63 WHERE barrel_length = "11.5 in." | Can you tell me the Barrel twist that has the Barrel lenght of 11.5 in.? | CREATE TABLE table_name_63 (barrel_twist VARCHAR, barrel_length VARCHAR) |
SELECT motor FROM table_name_57 WHERE quantity > 8 AND class = "bs 1915" | Which motor's quantity was more than 8, and a class of bs 1915? | CREATE TABLE table_name_57 (motor VARCHAR, quantity VARCHAR, class VARCHAR) |
SELECT AVG(wins) FROM table_name_17 WHERE top_10 < 5 AND winnings = "$39,190" AND starts < 2 | What is the average number of wins of the year with less than 5 top 10s, a winning of $39,190 and less than 2 starts? | CREATE TABLE table_name_17 (wins INTEGER, starts VARCHAR, top_10 VARCHAR, winnings VARCHAR) |
SELECT rider FROM table_name_31 WHERE rounds = "7" AND motorcycle = "ducati 999 rs" | Who is riding the Ducati 999 RS in Round 7? | CREATE TABLE table_name_31 (rider VARCHAR, rounds VARCHAR, motorcycle VARCHAR) |
SELECT MIN(points) FROM table_name_98 WHERE games > 34 AND name = "andrew panko" | What is the lowest value for Points, when Games is greater than 34, and when Name is Andrew Panko? | CREATE TABLE table_name_98 (points INTEGER, games VARCHAR, name VARCHAR) |
SELECT polyunsaturated_fat FROM table_name_31 WHERE saturated_fat = "25g" | Name the polyunsaturated fat with a saturated fat of 25g | CREATE TABLE table_name_31 (polyunsaturated_fat VARCHAR, saturated_fat VARCHAR) |
SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' AND T1.stu_lname LIKE 'S%' | What is the first name of the student whose last name starting with the letter S and is taking ACCT-211 class? | CREATE TABLE enroll (stu_num VARCHAR, class_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR, stu_lname VARCHAR) |
SELECT opponent FROM table_name_57 WHERE score = "4–6, 4–6" AND tournament = "banja luka" | What is the Opponent of the Banja Luka Tournament with a Score of 4–6, 4–6? | CREATE TABLE table_name_57 (opponent VARCHAR, score VARCHAR, tournament VARCHAR) |
SELECT variant FROM table_28035004_1 WHERE bodybuilder = "Alexander" | What is the variant when Alexander was the bodybuilder? | CREATE TABLE table_28035004_1 (variant VARCHAR, bodybuilder VARCHAR) |
SELECT week_1 FROM table_name_53 WHERE week_3 = "candice hunnicutt" | What is the week 1 with candice hunnicutt in week 3? | CREATE TABLE table_name_53 (week_1 VARCHAR, week_3 VARCHAR) |
SELECT regular_season_winner FROM table_21091982_3 WHERE conference = "Ivy League" | Who is the regular season winner for the Ivy League conference? | CREATE TABLE table_21091982_3 (regular_season_winner VARCHAR, conference VARCHAR) |
SELECT height__ft_ FROM table_13463790_2 WHERE name = "Leadenhall Building" | what's the height (ft) with name being leadenhall building | CREATE TABLE table_13463790_2 (height__ft_ VARCHAR, name VARCHAR) |
SELECT player FROM table_name_58 WHERE pick = 175 | Which player has a pick of 175? | CREATE TABLE table_name_58 (player VARCHAR, pick VARCHAR) |
SELECT operator FROM table_name_47 WHERE peak = "55" | What is the Operator with a Peak that is 55? | CREATE TABLE table_name_47 (operator VARCHAR, peak VARCHAR) |
SELECT venue FROM table_name_15 WHERE score = "9-2" | Where was the game held that resulted in a score of 9-2? | CREATE TABLE table_name_15 (venue VARCHAR, score VARCHAR) |
SELECT call_sign FROM table_name_17 WHERE power__kw_ = "20kw" | What's the call sign that has 20kw of power? | CREATE TABLE table_name_17 (call_sign VARCHAR, power__kw_ VARCHAR) |
SELECT opponent FROM table_name_13 WHERE res = "win" AND time = "3:02" | Who is the opponent of the match with a win result and a time of 3:02? | CREATE TABLE table_name_13 (opponent VARCHAR, res VARCHAR, time VARCHAR) |
SELECT COUNT(original_artist) FROM table_26250176_1 WHERE theme = "Group Performance" | How many original artists were there for the Group Performance? | CREATE TABLE table_26250176_1 (original_artist VARCHAR, theme VARCHAR) |
SELECT current_club FROM table_12962773_1 WHERE height = "2.09" | what's current club with height being 2.09 | CREATE TABLE table_12962773_1 (current_club VARCHAR, height VARCHAR) |
SELECT date FROM table_name_50 WHERE discipline = "super g" AND season = 2010 | What is the date of Super G in the 2010 season? | CREATE TABLE table_name_50 (date VARCHAR, discipline VARCHAR, season VARCHAR) |
SELECT to_par FROM table_name_47 WHERE player = "phil mickelson" | Phil Mickelson has what To par? | CREATE TABLE table_name_47 (to_par VARCHAR, player VARCHAR) |
SELECT venue FROM table_name_87 WHERE score = "1 – 1" AND result = "2 – 2" | What is the Venue when the score was 1 – 1, and the result was 2 – 2? | CREATE TABLE table_name_87 (venue VARCHAR, score VARCHAR, result VARCHAR) |
SELECT rank FROM table_name_63 WHERE mountain_peak = "isthmus peak" | what is the rank when the mountain peak is isthmus peak? | CREATE TABLE table_name_63 (rank VARCHAR, mountain_peak VARCHAR) |
SELECT player FROM table_14342210_6 WHERE touchdowns = 4 AND position = "Left halfback" | Which player made 4 touchdowns while playing left halfback? | CREATE TABLE table_14342210_6 (player VARCHAR, touchdowns VARCHAR, position VARCHAR) |
SELECT reason FROM table_275023_1 WHERE province = "Otago" | Why was Otago formed? | CREATE TABLE table_275023_1 (reason VARCHAR, province VARCHAR) |
SELECT AVG(guests) FROM table_name_46 WHERE ship_name = "viking ingvar" AND year_built < 1990 | What is the number of guests for the Viking Ingvar, built earlier than 1990? | CREATE TABLE table_name_46 (guests INTEGER, ship_name VARCHAR, year_built VARCHAR) |
SELECT COUNT(junctions) FROM table_11336756_6 WHERE remarks = "Replaced by BSI-35" | How many junctions have "replaced by bsi-35" listed in their remarks section? | CREATE TABLE table_11336756_6 (junctions VARCHAR, remarks VARCHAR) |
SELECT record FROM table_name_8 WHERE score = "7 - 2" | What record was reached with a score of 7 - 2? | CREATE TABLE table_name_8 (record VARCHAR, score VARCHAR) |
SELECT COUNT(*) FROM event | How many events are there? | CREATE TABLE event (Id VARCHAR) |
SELECT location FROM table_25643046_1 WHERE origin_time = "14:07" | Where was the quake that began at 14:07? | CREATE TABLE table_25643046_1 (location VARCHAR, origin_time VARCHAR) |
SELECT MIN(rank) FROM table_name_33 WHERE name = "richard virenque" | What is richard virenque's lowest rank? | CREATE TABLE table_name_33 (rank INTEGER, name VARCHAR) |
SELECT home FROM table_name_56 WHERE score = "81-80" | Who is the home team when the score is 81-80? | CREATE TABLE table_name_56 (home VARCHAR, score VARCHAR) |
SELECT chassis FROM table_name_26 WHERE entrant = "cooper car company" AND year = 1963 | Which Chassis has an Entrant of cooper car company, and a Year of 1963? | CREATE TABLE table_name_26 (chassis VARCHAR, entrant VARCHAR, year VARCHAR) |
SELECT record FROM table_name_74 WHERE score = "2-3" | What was the record after the game that ended in a 2-3 loss? | CREATE TABLE table_name_74 (record VARCHAR, score VARCHAR) |
SELECT report FROM table_name_67 WHERE date = "6 october" | Who reported the game on 6 october? | CREATE TABLE table_name_67 (report VARCHAR, date VARCHAR) |
SELECT opponent FROM table_name_60 WHERE date = "december 23, 1995" | Who did the Tampa Bay Buccaneers play on december 23, 1995? | CREATE TABLE table_name_60 (opponent VARCHAR, date VARCHAR) |
SELECT COUNT(production_code) FROM table_21550870_1 WHERE written_by = "Steve Cohen & Andrew Dettman" | Name the total number of production code for episode by steve cohen & andrew dettman | CREATE TABLE table_21550870_1 (production_code VARCHAR, written_by VARCHAR) |
SELECT MIN(capacity) FROM table_name_96 WHERE city = "brisbane" AND rank < 1 | Which Capacity is the lowest one that has a City of brisbane, and a Rank smaller than 1? | CREATE TABLE table_name_96 (capacity INTEGER, city VARCHAR, rank VARCHAR) |
SELECT county FROM table_19681738_1 WHERE hancock__percentage = "3.09%" | where did hancock get 3.09% | CREATE TABLE table_19681738_1 (county VARCHAR, hancock__percentage VARCHAR) |
SELECT winning_driver FROM table_name_36 WHERE constructor = "maserati" AND race = "monaco grand prix" | What driver was the winner when constructor was Maserati at the Monaco grand prix? | CREATE TABLE table_name_36 (winning_driver VARCHAR, constructor VARCHAR, race VARCHAR) |
SELECT SUM(pommel_horse) FROM table_name_6 WHERE rings < 59.85 AND team_total > 361.2 | Count the Pommel Horse that has Rings smaller than 59.85 and a Team Total larger than 361.2? | CREATE TABLE table_name_6 (pommel_horse INTEGER, rings VARCHAR, team_total VARCHAR) |
SELECT score FROM table_name_93 WHERE player = "sandy lyle" | What is the score for Sandy Lyle? | CREATE TABLE table_name_93 (score VARCHAR, player VARCHAR) |
SELECT position FROM table_name_78 WHERE competition = "european indoor championships" AND year < 1979 | Before 1979, what position was the European Indoor Championships? | CREATE TABLE table_name_78 (position VARCHAR, competition VARCHAR, year VARCHAR) |
SELECT try_bonus FROM table_name_37 WHERE points_against = "451" | What shows for Try bonus when the points against are 451? | CREATE TABLE table_name_37 (try_bonus VARCHAR, points_against VARCHAR) |
SELECT time_retired FROM table_17244483_1 WHERE car_no = 15 | Car number 15 earned what time? | CREATE TABLE table_17244483_1 (time_retired VARCHAR, car_no VARCHAR) |
SELECT szdsz FROM table_name_60 WHERE jobbik = "5%" AND fidesz = "68%" | What is the SZDSZ percentage with a Jobbik of 5% and a Fidesz of 68%? | CREATE TABLE table_name_60 (szdsz VARCHAR, jobbik VARCHAR, fidesz VARCHAR) |
SELECT COUNT(partner) FROM table_2820584_3 WHERE year = 1973 | How many different partners played in the finale in 1973? | CREATE TABLE table_2820584_3 (partner VARCHAR, year VARCHAR) |
SELECT AVG(capacity) FROM table_name_14 WHERE stadium = "kadrioru stadium" AND current_manager = "sergei ratnikov" | What is the capacity for the stadium of kadrioru stadium and a current manager of sergei ratnikov? | CREATE TABLE table_name_14 (capacity INTEGER, stadium VARCHAR, current_manager VARCHAR) |
SELECT score FROM table_name_72 WHERE opponent_in_the_final = "dane propoggia" | What was the score of the final against Dane Propoggia? | CREATE TABLE table_name_72 (score VARCHAR, opponent_in_the_final VARCHAR) |
SELECT MAX(2003) FROM table_name_84 WHERE 1990 > 74 AND 1985 = 125 AND 1995 > 130 | What is the highest 2003 value with a 1990 greater than 74, a 125 value in 1985, and a 1995 value greater than 130? | CREATE TABLE table_name_84 (Id VARCHAR) |
SELECT round FROM table_name_7 WHERE position = "offensive tackle" | Which round has an offensive tackle position? | CREATE TABLE table_name_7 (round VARCHAR, position VARCHAR) |
SELECT away_team AS score FROM table_name_25 WHERE venue = "punt road oval" | When did the away team score at Punt Road Oval? | CREATE TABLE table_name_25 (away_team VARCHAR, venue VARCHAR) |
SELECT segment_c FROM table_name_78 WHERE segment_a = "ski goggles" | Name the segment c for ski goggles | CREATE TABLE table_name_78 (segment_c VARCHAR, segment_a VARCHAR) |
SELECT period FROM table_24565004_17 WHERE name = "Michel Prost" | Name the period for michel prost | CREATE TABLE table_24565004_17 (period VARCHAR, name VARCHAR) |
SELECT Name FROM WINE ORDER BY Score LIMIT 1 | What is the name of the highest rated wine? | CREATE TABLE WINE (Name VARCHAR, Score VARCHAR) |
SELECT formula FROM table_name_7 WHERE chemical_class = "thial" | Which formula has thial as a chemical class? | CREATE TABLE table_name_7 (formula VARCHAR, chemical_class VARCHAR) |
SELECT COUNT(county) FROM table_2572788_1 WHERE milepost = "69.5" | How many counties are at milepost 69.5? | CREATE TABLE table_2572788_1 (county VARCHAR, milepost VARCHAR) |
SELECT grid FROM table_name_45 WHERE laps = 67 | What grid is associated with 67 laps? | CREATE TABLE table_name_45 (grid VARCHAR, laps VARCHAR) |
SELECT MIN(erp_w) FROM table_name_27 WHERE frequency_mhz = "89.3 fm" | What is the least ERP W when the freguency MHz is 89.3 fm? | CREATE TABLE table_name_27 (erp_w INTEGER, frequency_mhz VARCHAR) |
SELECT south FROM table_name_92 WHERE season = "2004-05" | Who was in the South in the 2004-05 season? | CREATE TABLE table_name_92 (south VARCHAR, season VARCHAR) |
SELECT COUNT(director) FROM table_23141790_1 WHERE original_title = "Vesničko má středisková" | Name the total number of director for vesničko má středisková | CREATE TABLE table_23141790_1 (director VARCHAR, original_title VARCHAR) |
SELECT MAX(points) FROM table_25711913_8 WHERE position = "Right halfback" | What is the most points recorded for a right halfback? | CREATE TABLE table_25711913_8 (points INTEGER, position VARCHAR) |
SELECT date FROM table_name_40 WHERE surface = "hard" AND opponent = "eva hrdinová" | What date was the surface hard and Eva Hrdinová was the opponent? | CREATE TABLE table_name_40 (date VARCHAR, surface VARCHAR, opponent VARCHAR) |
SELECT home FROM table_name_99 WHERE attendance = 507 | Which home has an attendance of 507? | CREATE TABLE table_name_99 (home VARCHAR, attendance VARCHAR) |
SELECT MIN(appearances¹) FROM table_24565004_7 | What is the lowest number of appearances a player had | CREATE TABLE table_24565004_7 (appearances¹ INTEGER) |
SELECT COUnT AS name FROM table_22810095_8 WHERE country = "CIV" | How many names have a country of civ? | CREATE TABLE table_22810095_8 (COUnT VARCHAR, country VARCHAR) |
SELECT COUNT(events) FROM table_name_42 WHERE player = "al geiberger" AND earnings___$__ > 527 OFFSET 033 | What is the total number of events that Al Geiberger has played with earnings larger than 527,033? | CREATE TABLE table_name_42 (events VARCHAR, player VARCHAR, earnings___$__ VARCHAR) |
SELECT SUM(league_apps) FROM table_name_22 WHERE cup_goals > 2 AND cup_apps > 6 | How many league apps in the season with more than 2 cup goals and more than 6 cup apps? | CREATE TABLE table_name_22 (league_apps INTEGER, cup_goals VARCHAR, cup_apps VARCHAR) |
SELECT MIN(first_game) FROM table_name_96 WHERE played < 2 | What are the earliest year with games played fewer than 2? | CREATE TABLE table_name_96 (first_game INTEGER, played INTEGER) |
SELECT us_viewers__millions_ FROM table_29569969_2 WHERE production_code = 105 | How many million people in the US saw the episode with production code 105? | CREATE TABLE table_29569969_2 (us_viewers__millions_ VARCHAR, production_code VARCHAR) |
SELECT date FROM table_27715173_8 WHERE location_attendance = "EnergySolutions Arena 19,911" | what is the date when the location attendance is energysolutions arena 19,911? | CREATE TABLE table_27715173_8 (date VARCHAR, location_attendance VARCHAR) |
SELECT cfl_team FROM table_name_98 WHERE pick__number = 48 | What is the CFL Team with #48 as the pick number? | CREATE TABLE table_name_98 (cfl_team VARCHAR, pick__number VARCHAR) |
SELECT MIN(overall) FROM table_name_32 WHERE college = "san diego state" AND pick__number < 30 | College of san diego state, and a Pick # smaller than 30 is what lowest overall? | CREATE TABLE table_name_32 (overall INTEGER, college VARCHAR, pick__number VARCHAR) |
SELECT post_town FROM table_name_54 WHERE dialcode = "020" AND location = "hook" | Which Post Town has a Dialcode of 020 and is located in Hook? | CREATE TABLE table_name_54 (post_town VARCHAR, dialcode VARCHAR, location VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.