answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT COUNT(february) FROM table_name_40 WHERE points = 63 AND score = "1–2" | How many February days have Points of 63 and a Score of 1–2? | CREATE TABLE table_name_40 (february VARCHAR, points VARCHAR, score VARCHAR) |
SELECT city FROM table_name_74 WHERE jul = "88 °f / 31.1 °c" | Name the city with july of 88 °f / 31.1 °c | CREATE TABLE table_name_74 (city VARCHAR, jul VARCHAR) |
SELECT series FROM table_name_73 WHERE visitor = "vancouver" AND date = "april 16" | What is the series score of the game with Vancouver as the visiting team on April 16? | CREATE TABLE table_name_73 (series VARCHAR, visitor VARCHAR, date VARCHAR) |
SELECT date FROM table_name_22 WHERE opponent = "new orleans saints" | Tell me the date for new orleans saints | CREATE TABLE table_name_22 (date VARCHAR, opponent VARCHAR) |
SELECT solar FROM table_name_48 WHERE year = 2011 AND hydroelectricity < 119.6 | In 2011 with a hydroelectricity less than 119.6, what was the solar? | CREATE TABLE table_name_48 (solar VARCHAR, year VARCHAR, hydroelectricity VARCHAR) |
SELECT tallangatta_dfl FROM table_name_49 WHERE against > 1013 AND losses > 2 | What is the Tallangatta DFL losses greater than 2 and an against greater than 1013 | CREATE TABLE table_name_49 (tallangatta_dfl VARCHAR, against VARCHAR, losses VARCHAR) |
SELECT h___a FROM table_name_50 WHERE scorers = "hughes" | What was the H/A when the scorer was Hughes? | CREATE TABLE table_name_50 (h___a VARCHAR, scorers VARCHAR) |
SELECT COUNT(county) FROM table_18600760_8 WHERE pop__2010_ = 90 | Name the number of county for 90 population | CREATE TABLE table_18600760_8 (county VARCHAR, pop__2010_ VARCHAR) |
SELECT AVG(week) FROM table_name_98 WHERE date = "september 3, 2000" | What week has a date of September 3, 2000? | CREATE TABLE table_name_98 (week INTEGER, date VARCHAR) |
SELECT MAX(top_10) FROM table_name_89 WHERE events < 39 AND top_5 = 1 AND cuts_made > 5 | What is the best top-10 result when events are fewer than 39, top-5 is 1 and more than 5 cuts are made? | CREATE TABLE table_name_89 (top_10 INTEGER, cuts_made VARCHAR, events VARCHAR, top_5 VARCHAR) |
SELECT MAX(year) FROM table_name_89 WHERE director = "christopher kulikowski" | What is the most recent year featuring the director Christopher Kulikowski? | CREATE TABLE table_name_89 (year INTEGER, director VARCHAR) |
SELECT home_team FROM table_name_77 WHERE venue = "windy hill" | What home team plays at Windy Hill? | CREATE TABLE table_name_77 (home_team VARCHAR, venue VARCHAR) |
SELECT city FROM table_name_80 WHERE host = "university of montana" | Which city is the University of Montana located in? | CREATE TABLE table_name_80 (city VARCHAR, host VARCHAR) |
SELECT T2.product_description FROM products_booked AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.booked_amount = 102.76 | What is the product description of the product booked with an amount of 102.76? | CREATE TABLE products_for_hire (product_description VARCHAR, product_id VARCHAR); CREATE TABLE products_booked (product_id VARCHAR, booked_amount VARCHAR) |
SELECT distance FROM table_name_13 WHERE stage = "4" | What was the distance of the course for stage 4? | CREATE TABLE table_name_13 (distance VARCHAR, stage VARCHAR) |
SELECT street_address FROM table_name_9 WHERE name = "van antwerp building" | What is the street address of the van antwerp building? | CREATE TABLE table_name_9 (street_address VARCHAR, name VARCHAR) |
SELECT name FROM enzyme ORDER BY name DESC | List the name of enzymes in descending lexicographical order. | CREATE TABLE enzyme (name VARCHAR) |
SELECT record FROM table_name_91 WHERE method = "decision" AND res = "win" | What's the record for the match when the res was a win and the method was a decision? | CREATE TABLE table_name_91 (record VARCHAR, method VARCHAR, res VARCHAR) |
SELECT COUNT(first_elected) FROM table_name_91 WHERE district = "16" | How many values of first elected are for district 16? | CREATE TABLE table_name_91 (first_elected VARCHAR, district VARCHAR) |
SELECT SUM(year) FROM table_name_37 WHERE local_host_s_ = "sai" | What is the sum of year with the local host Sai? | CREATE TABLE table_name_37 (year INTEGER, local_host_s_ VARCHAR) |
SELECT SUM(population) FROM table_name_98 WHERE per_capita_income = "$18,884" AND number_of_households < 14 OFFSET 485 | What is the population when the Per capita income of $18,884, and a Number of households smaller than 14,485? | CREATE TABLE table_name_98 (population INTEGER, per_capita_income VARCHAR, number_of_households VARCHAR) |
SELECT winner FROM table_name_32 WHERE date = "29 may" | who won on 29 may? | CREATE TABLE table_name_32 (winner VARCHAR, date VARCHAR) |
SELECT position FROM table_1708014_2 WHERE starts = 3 | what is the posisiotn where the start is 3? | CREATE TABLE table_1708014_2 (position VARCHAR, starts VARCHAR) |
SELECT team_classification FROM table_22464308_2 WHERE malaysian_team_classification = "MNCF Continental Team" | Which team classification has malaysian team classification of mncf continental team? | CREATE TABLE table_22464308_2 (team_classification VARCHAR, malaysian_team_classification VARCHAR) |
SELECT winning_driver FROM table_name_96 WHERE race = "argentine grand prix" | Who was the winning driver of the Argentine Grand Prix? | CREATE TABLE table_name_96 (winning_driver VARCHAR, race VARCHAR) |
SELECT MIN(viewers__millions_) FROM table_name_11 WHERE weekly_rank = "#3" AND share = 9 AND rating > 5 | Which rating larger than 5 have the lowest amount of views in #3 rank with a share of 9? | CREATE TABLE table_name_11 (viewers__millions_ INTEGER, rating VARCHAR, weekly_rank VARCHAR, share VARCHAR) |
SELECT COUNT(candidates) FROM table_1342013_10 WHERE incumbent = "J. L. Pilcher" | How many candidates ran in the race where the incumbent is J. L. Pilcher? | CREATE TABLE table_1342013_10 (candidates VARCHAR, incumbent VARCHAR) |
SELECT COUNT(position) FROM table_2850912_4 WHERE nhl_team = "St. Louis Blues" | How many positions are associated with the St. Louis Blues? | CREATE TABLE table_2850912_4 (position VARCHAR, nhl_team VARCHAR) |
SELECT starts FROM table_27786562_1 WHERE driver = "Bobby Labonte" | Name the starts for bobby labonte | CREATE TABLE table_27786562_1 (starts VARCHAR, driver VARCHAR) |
SELECT album FROM table_name_20 WHERE lifetime_achievement_award = "paul mcguinness" | Which album awarded Paul McGuinness a Lifetime Achievement Award? | CREATE TABLE table_name_20 (album VARCHAR, lifetime_achievement_award VARCHAR) |
SELECT rate FROM table_name_55 WHERE year = "17 years" | What is the rate of 17 years? | CREATE TABLE table_name_55 (rate VARCHAR, year VARCHAR) |
SELECT home FROM table_name_56 WHERE date = "january 6" | Who played the home team during the game on January 6? | CREATE TABLE table_name_56 (home VARCHAR, date VARCHAR) |
SELECT date FROM table_name_79 WHERE opposing_teams = "australia" AND venue = "twickenham , london" | What is Date, when Opposing Teams is "Australia", and when Venue is "Twickenham , London"? | CREATE TABLE table_name_79 (date VARCHAR, opposing_teams VARCHAR, venue VARCHAR) |
SELECT season FROM table_name_98 WHERE goals = "1" | What season had a goal of 1? | CREATE TABLE table_name_98 (season VARCHAR, goals VARCHAR) |
SELECT engine FROM table_name_57 WHERE chassis = "porsche 718" AND points = 0 AND year < 1964 | what is the engine that saw a Chassis of porsche 718, and 0 points, prior to 1964? | CREATE TABLE table_name_57 (engine VARCHAR, year VARCHAR, chassis VARCHAR, points VARCHAR) |
SELECT SUM(attendance) FROM table_name_9 WHERE result = "w 24–21" AND week < 6 | Result of w 24–21, and a Week smaller than 6 had what sum of attendance? | CREATE TABLE table_name_9 (attendance INTEGER, result VARCHAR, week VARCHAR) |
SELECT Aircraft FROM aircraft WHERE NOT Aircraft_ID IN (SELECT Winning_Aircraft FROM MATCH) | List the names of aircrafts and that did not win any match. | CREATE TABLE aircraft (Aircraft VARCHAR, Aircraft_ID VARCHAR, Winning_Aircraft VARCHAR); CREATE TABLE MATCH (Aircraft VARCHAR, Aircraft_ID VARCHAR, Winning_Aircraft VARCHAR) |
SELECT result FROM table_name_96 WHERE venue = "a" AND opponent = "manchester united" | Which Result has a Venue of A, and an Opponent of manchester united? | CREATE TABLE table_name_96 (result VARCHAR, venue VARCHAR, opponent VARCHAR) |
SELECT location FROM table_name_1 WHERE ihsaa_class = "aaa" AND enrollment > 590 | Where is the IHSAA Class of aaa school with more than 590 enrolled? | CREATE TABLE table_name_1 (location VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR) |
SELECT year FROM table_name_3 WHERE score = "204 (-6)" | In what year was the score 204 (-6)? | CREATE TABLE table_name_3 (year VARCHAR, score VARCHAR) |
SELECT 2 AS __f_ FROM table_name_7 WHERE verb = "chena" | What is the 2nd verb for chena? | CREATE TABLE table_name_7 (verb VARCHAR) |
SELECT college_junior_club_team__league_ FROM table_name_86 WHERE position = "defense" AND player = "mike crowley" | Mike Crowley plays defense for league? | CREATE TABLE table_name_86 (college_junior_club_team__league_ VARCHAR, position VARCHAR, player VARCHAR) |
SELECT T1.name, T1.city, T2.dst_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid GROUP BY T2.dst_apid ORDER BY COUNT(*) DESC LIMIT 1 | Find the name and city of the airport which is the destination of the most number of routes. | CREATE TABLE airports (name VARCHAR, city VARCHAR, apid VARCHAR); CREATE TABLE routes (dst_apid VARCHAR) |
SELECT COUNT(directed_by) FROM table_22347090_6 WHERE us_viewers__million_ = "1.59" | How many directors are there for the episode that had 1.59 million U.S. viewers? | CREATE TABLE table_22347090_6 (directed_by VARCHAR, us_viewers__million_ VARCHAR) |
SELECT aedt_time FROM table_name_62 WHERE away_team = "collingwood" | Name the AEDT Time which has an Away team of collingwood? | CREATE TABLE table_name_62 (aedt_time VARCHAR, away_team VARCHAR) |
SELECT time_retired FROM table_name_51 WHERE driver = "toulo de graffenried" | what is the time/retired when the driver is toulo de graffenried? | CREATE TABLE table_name_51 (time_retired VARCHAR, driver VARCHAR) |
SELECT MAX(against) FROM table_name_7 WHERE opposing_team = "bristol city" | What is the highest Against for a game against Bristol City? | CREATE TABLE table_name_7 (against INTEGER, opposing_team VARCHAR) |
SELECT COUNT(commander) FROM table_2596811_12 WHERE killed = "0 off 63 men" | What is the number of commanders that had 0 off 63 men killed? | CREATE TABLE table_2596811_12 (commander VARCHAR, killed VARCHAR) |
SELECT SUM(cars_per_set) FROM table_name_3 WHERE operator = "london midland" | Tell me the sum of cars per set for operator of london midland | CREATE TABLE table_name_3 (cars_per_set INTEGER, operator VARCHAR) |
SELECT venue FROM table_name_93 WHERE score = "7-1" | What was the venue when the score was 7-1? | CREATE TABLE table_name_93 (venue VARCHAR, score VARCHAR) |
SELECT MAX(pick) FROM table_name_53 WHERE college = "united states international university" | For the United States International University, what was the highest pick number allowed? | CREATE TABLE table_name_53 (pick INTEGER, college VARCHAR) |
SELECT AVG(attendance) FROM table_name_51 WHERE date = "18 october 2000" | What was the average attendance on 18 October 2000? | CREATE TABLE table_name_51 (attendance INTEGER, date VARCHAR) |
SELECT DISTINCT year FROM cars_data WHERE weight BETWEEN 3000 AND 4000 | In which years cars were produced weighing no less than 3000 and no more than 4000 ? | CREATE TABLE cars_data (year VARCHAR, weight INTEGER) |
SELECT chassis FROM table_21977627_1 WHERE engine = "Maserati L6s" | What chasis did the maserati l6s have? | CREATE TABLE table_21977627_1 (chassis VARCHAR, engine VARCHAR) |
SELECT COUNT(player) FROM table_27922491_8 WHERE wickets = 12 | How many players had 12 wickets? | CREATE TABLE table_27922491_8 (player VARCHAR, wickets VARCHAR) |
SELECT venue FROM table_name_43 WHERE home_team = "richmond" | Where did Richmond play as the home team? | CREATE TABLE table_name_43 (venue VARCHAR, home_team VARCHAR) |
SELECT AVG(yards) FROM table_name_94 WHERE long < 18 AND avg > 13 | How many yards were averaged by the player that had a higher than 13 average with less than 18 long? | CREATE TABLE table_name_94 (yards INTEGER, long VARCHAR, avg VARCHAR) |
SELECT attendance FROM table_name_66 WHERE date = "july 13" | How many people were at the match on July 13/ | CREATE TABLE table_name_66 (attendance VARCHAR, date VARCHAR) |
SELECT directed_by FROM table_28859177_2 WHERE original_air_date = "November 21, 2003" | Who directed the episode that aired November 21, 2003? | CREATE TABLE table_28859177_2 (directed_by VARCHAR, original_air_date VARCHAR) |
SELECT away_team FROM table_name_27 WHERE tie_no = "7" | Which away team that had a tie of 7? | CREATE TABLE table_name_27 (away_team VARCHAR, tie_no VARCHAR) |
SELECT date FROM table_name_12 WHERE grand_prix = "australian grand prix" | Name the date for the australian grand prix. | CREATE TABLE table_name_12 (date VARCHAR, grand_prix VARCHAR) |
SELECT away_team AS score FROM table_name_94 WHERE away_team = "footscray" | What was Footscray's score as the away team? | CREATE TABLE table_name_94 (away_team VARCHAR) |
SELECT incumbent FROM table_name_84 WHERE party = "democratic" AND district = "south carolina 5" | Who was the Democratic incumbent in the South Carolina 5 District? | CREATE TABLE table_name_84 (incumbent VARCHAR, party VARCHAR, district VARCHAR) |
SELECT opponent FROM table_name_9 WHERE game = 37 | What is Opponent, when Game is "37"? | CREATE TABLE table_name_9 (opponent VARCHAR, game VARCHAR) |
SELECT father FROM table_name_58 WHERE mother = "presendia huntington buell" | Who is the father of the child whose mother is Presendia Huntington Buell? | CREATE TABLE table_name_58 (father VARCHAR, mother VARCHAR) |
SELECT report FROM table_name_9 WHERE round = 9 | What is the report for round 9? | CREATE TABLE table_name_9 (report VARCHAR, round VARCHAR) |
SELECT format FROM table_name_96 WHERE catalog = "cl 2372" | What is the format for Catalog CL 2372? | CREATE TABLE table_name_96 (format VARCHAR, catalog VARCHAR) |
SELECT score FROM table_name_95 WHERE time = "18:27" | WHAT SCORE HAS A TIME OF 18:27? | CREATE TABLE table_name_95 (score VARCHAR, time VARCHAR) |
SELECT template_type_code FROM Ref_template_types WHERE template_type_description = "Book" | What is the template type code for template type description "Book". | CREATE TABLE Ref_template_types (template_type_code VARCHAR, template_type_description VARCHAR) |
SELECT SUM(race) FROM table_name_64 WHERE podium = 4 AND pole = 5 AND flap > 3 | How many races had 4 podiums, 5 poles and more than 3 Flaps? | CREATE TABLE table_name_64 (race INTEGER, flap VARCHAR, podium VARCHAR, pole VARCHAR) |
SELECT venue FROM table_name_81 WHERE home_team = "footscray" | What was the venue when the home team was footscray? | CREATE TABLE table_name_81 (venue VARCHAR, home_team VARCHAR) |
SELECT away FROM table_name_28 WHERE club = "ekranas" | The Club of Ekranas was an away with a score of what? | CREATE TABLE table_name_28 (away VARCHAR, club VARCHAR) |
SELECT COUNT(district) FROM table_1342359_2 WHERE incumbent = "William B. Oliver" | How many districts does william b. oliver represent? | CREATE TABLE table_1342359_2 (district VARCHAR, incumbent VARCHAR) |
SELECT operator FROM table_name_81 WHERE berths > 1 AND depth__m_ = "12.5-15.5" | Name the operator with berths more than 1 and depth of 12.5-15.5 | CREATE TABLE table_name_81 (operator VARCHAR, berths VARCHAR, depth__m_ VARCHAR) |
SELECT manager FROM table_name_33 WHERE home_city = "osijek" | What is the name of the manager in the city of Osijek? | CREATE TABLE table_name_33 (manager VARCHAR, home_city VARCHAR) |
SELECT episode FROM table_name_38 WHERE money_requested__£_ = "150,000" | Which Episode has requested £150,000? | CREATE TABLE table_name_38 (episode VARCHAR, money_requested__£_ VARCHAR) |
SELECT Giant AS slalom FROM table_name_28 WHERE overall > 3 AND super_g = 12 | What was her Giant Slalom score when her Overall was greater than 3 and her Super G score was 12? | CREATE TABLE table_name_28 (Giant VARCHAR, overall VARCHAR, super_g VARCHAR) |
SELECT original_air_date FROM table_27910411_1 WHERE us_viewers__millions_ = "8.28" | What date did the episode with 8.28 million u.s. viewers originally air? | CREATE TABLE table_27910411_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT COUNT(crowd) FROM table_name_29 WHERE home_team = "fitzroy" | What is the size of the crowd when the home team is Fitzroy? | CREATE TABLE table_name_29 (crowd VARCHAR, home_team VARCHAR) |
SELECT city FROM table_name_79 WHERE club = "braga" | What City is the Club braga in? | CREATE TABLE table_name_79 (city VARCHAR, club VARCHAR) |
SELECT station_code FROM table_name_37 WHERE departure = "destination station" | What is the Station Code of the Destination Station Departure? | CREATE TABLE table_name_37 (station_code VARCHAR, departure VARCHAR) |
SELECT COUNT(points) FROM table_name_38 WHERE match > 18 | What is the total number of Points from a Match that is larger than 18? | CREATE TABLE table_name_38 (points VARCHAR, match INTEGER) |
SELECT time FROM table_name_94 WHERE winner = "salford ii" | What was the time for the winning horse Salford ii? | CREATE TABLE table_name_94 (time VARCHAR, winner VARCHAR) |
SELECT name FROM table_10020178_1 WHERE crest_length__meters_ = 375 | What is the name of the 375 crest length? | CREATE TABLE table_10020178_1 (name VARCHAR, crest_length__meters_ VARCHAR) |
SELECT club_team FROM table_name_7 WHERE position = "(d)" AND nationality = "canada" AND player = "andrew macwilliam" | Which Club Team has a Position of (d), a Nationality of canada, and a Player of andrew macwilliam? | CREATE TABLE table_name_7 (club_team VARCHAR, player VARCHAR, position VARCHAR, nationality VARCHAR) |
SELECT COUNT(pick) FROM table_2840500_3 WHERE player = "Scott Parker" | what is the overall number of chosen ideas where the person is scott parker | CREATE TABLE table_2840500_3 (pick VARCHAR, player VARCHAR) |
SELECT home FROM table_name_95 WHERE decision = "ward" AND date = "october 24" | On October 24, who played at home when there was a decision of Ward? | CREATE TABLE table_name_95 (home VARCHAR, decision VARCHAR, date VARCHAR) |
SELECT production_code FROM table_2468961_7 WHERE no_in_series = 137 | When 137 is the number in series what is the production code? | CREATE TABLE table_2468961_7 (production_code VARCHAR, no_in_series VARCHAR) |
SELECT feature FROM table_name_60 WHERE name = "bird ridge" | what is the feature named bird ridge? | CREATE TABLE table_name_60 (feature VARCHAR, name VARCHAR) |
SELECT episode FROM table_25391981_20 WHERE rating / SHARE(18 AS –49) = 2.8 / 8 | For what episode was the rating/share for 18-49 at 2.8/8 | CREATE TABLE table_25391981_20 (episode VARCHAR, rating VARCHAR) |
SELECT COUNT(high_points) FROM table_23284271_6 WHERE location_attendance = "Pepsi Center 19,756" | Name the total number of high points for pepsi center 19,756 | CREATE TABLE table_23284271_6 (high_points VARCHAR, location_attendance VARCHAR) |
SELECT COUNT(car__number) FROM table_name_74 WHERE make = "chevrolet" AND driver = "mike skinner" | What is Mike Skinner's Chevrolet's Car #? | CREATE TABLE table_name_74 (car__number VARCHAR, make VARCHAR, driver VARCHAR) |
SELECT COUNT(nfl_team) FROM table_2508633_6 WHERE player = "Ellis Gardner" | Name the total number for nfl team for ellis gardner | CREATE TABLE table_2508633_6 (nfl_team VARCHAR, player VARCHAR) |
SELECT result FROM table_19625976_1 WHERE film_title_used_in_nomination = "Baran" | If the film title nominated is Baran, what was the result? | CREATE TABLE table_19625976_1 (result VARCHAR, film_title_used_in_nomination VARCHAR) |
SELECT name FROM table_name_71 WHERE former_local_authority = "st neots urban district" | What is the name of the parish that has a former local authority of St Neots urban district? | CREATE TABLE table_name_71 (name VARCHAR, former_local_authority VARCHAR) |
SELECT final_round FROM table_name_59 WHERE members = "chris webber" | What was the final round value for member Chris Webber? | CREATE TABLE table_name_59 (final_round VARCHAR, members VARCHAR) |
SELECT MIN(week) FROM table_name_69 WHERE opponent = "pittsburgh steelers" AND attendance > 47 OFFSET 727 | Which Week has an Opponent of pittsburgh steelers, and an Attendance larger than 47,727? | CREATE TABLE table_name_69 (week INTEGER, opponent VARCHAR, attendance VARCHAR) |
SELECT AVG(pick) FROM table_name_30 WHERE name = "lybrant robinson" AND overall < 139 | What is the average Pick, when Name is "Lybrant Robinson", and when Overall is less than 139? | CREATE TABLE table_name_30 (pick INTEGER, name VARCHAR, overall VARCHAR) |
SELECT partner FROM table_name_94 WHERE outcome = "winner" AND year < 1993 AND score = "6–4, 6–2" | Who was the Partner that was a winner, a Year smaller than 1993, and a Score of 6–4, 6–2? | CREATE TABLE table_name_94 (partner VARCHAR, score VARCHAR, outcome VARCHAR, year VARCHAR) |
SELECT 2012 AS _election_results FROM table_19283806_4 WHERE representative = "Barbara Lee" | What is the 2012 election results for locations whose representative is Barbara Lee? | CREATE TABLE table_19283806_4 (representative VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.