answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT SUM(year) FROM table_name_54 WHERE date = "september 26" | In what Year was the Game on September 26? | CREATE TABLE table_name_54 (year INTEGER, date VARCHAR) |
SELECT 20 AS _29 FROM table_name_11 WHERE season = "1997" | Which 20-29 had a season of 1997? | CREATE TABLE table_name_11 (season VARCHAR) |
SELECT lead FROM table_name_81 WHERE home = "lockerbie" | Who is the lead of the team from Lockerbie? | CREATE TABLE table_name_81 (lead VARCHAR, home VARCHAR) |
SELECT MIN(lane) FROM table_name_52 WHERE rank < 4 AND time < 24.42 | With a less than 4 rank, and a time less than 24.42 what is the smallest lane? | CREATE TABLE table_name_52 (lane INTEGER, rank VARCHAR, time VARCHAR) |
SELECT game_cost FROM table_243664_1 WHERE real_life_eventual_outcome = "Merged with New York Central to form Penn Central" | Name the game cost for merged with new york central to form penn central | CREATE TABLE table_243664_1 (game_cost VARCHAR, real_life_eventual_outcome VARCHAR) |
SELECT college FROM table_name_65 WHERE overall = 17 | Name the college with overall of 17 | CREATE TABLE table_name_65 (college VARCHAR, overall VARCHAR) |
SELECT SUM(game) FROM table_name_47 WHERE score = "4–1" | Which Game has a Score of 4–1? | CREATE TABLE table_name_47 (game INTEGER, score VARCHAR) |
SELECT AVG(february) FROM table_name_77 WHERE game = 64 | Which February has a Game of 64? | CREATE TABLE table_name_77 (february INTEGER, game VARCHAR) |
SELECT MAX(money___) AS £__ FROM table_name_95 WHERE player = "peter hedblom" | What is the highest Money ( £ ), when Player is "Peter Hedblom"? | CREATE TABLE table_name_95 (money___ INTEGER, player VARCHAR) |
SELECT w_l__doubles_ FROM table_name_73 WHERE debut = 1999 | Tell me the WL doubles with a debut of 1999 | CREATE TABLE table_name_73 (w_l__doubles_ VARCHAR, debut VARCHAR) |
SELECT MAX(points_for) FROM table_name_25 WHERE record = "12–2" AND points_against > 6 | What is the highest Points when the record was 12–2, and the Points Against are larger than 6? | CREATE TABLE table_name_25 (points_for INTEGER, record VARCHAR, points_against VARCHAR) |
SELECT location FROM table_name_98 WHERE odds = "p + 1" AND score = "1/3" | Where was the match located when the odds were p + 1 and the score was 1/3? | CREATE TABLE table_name_98 (location VARCHAR, odds VARCHAR, score VARCHAR) |
SELECT AVG(stories) FROM table_name_30 WHERE completed > 2003 AND rank = "16" | Name the average stories done after 2003 with a 16 rank | CREATE TABLE table_name_30 (stories INTEGER, completed VARCHAR, rank VARCHAR) |
SELECT place FROM table_name_19 WHERE to_par = "–8" | Which Place has a To par of –8? | CREATE TABLE table_name_19 (place VARCHAR, to_par VARCHAR) |
SELECT MIN(rank) FROM table_name_36 WHERE industry = "banking" AND company = "bank of america" AND profits__billion_$_ > 16.47 | What is the smallest rank for an industry of banking, a company of bank of america, and profits (billion $) larger than 16.47? | CREATE TABLE table_name_36 (rank INTEGER, profits__billion_$_ VARCHAR, industry VARCHAR, company VARCHAR) |
SELECT district FROM table_1341672_10 WHERE incumbent = "Richard Kelly" | what is the district where the incumbent is richard kelly? | CREATE TABLE table_1341672_10 (district VARCHAR, incumbent VARCHAR) |
SELECT name FROM table_name_57 WHERE roll = "637" | With what Name does the Roll of 637 belong? | CREATE TABLE table_name_57 (name VARCHAR, roll VARCHAR) |
SELECT AVG(games) FROM table_name_65 WHERE season = "2003/2004" AND red_cards < 5 | Which Games has a Season of 2003/2004, and a Red Cards smaller than 5? | CREATE TABLE table_name_65 (games INTEGER, season VARCHAR, red_cards VARCHAR) |
SELECT SUM(bronze) FROM table_name_77 WHERE silver = 1 AND rank < 6 AND gold < 6 | What is the total number of bronzes associated with 1 silver, ranks under 6 and under 6 golds? | CREATE TABLE table_name_77 (bronze INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR) |
SELECT record FROM table_name_8 WHERE date = "august 28" | Which record has a Date of august 28? | CREATE TABLE table_name_8 (record VARCHAR, date VARCHAR) |
SELECT COUNT(week) FROM table_name_26 WHERE attendance = "68,932" AND opponent = "indianapolis colts" | What week is the opponent the Indianapolis Colts with an attendance of 68,932? | CREATE TABLE table_name_26 (week VARCHAR, attendance VARCHAR, opponent VARCHAR) |
SELECT AVG(byes) FROM table_name_92 WHERE losses > 14 AND wins > 0 | How many byes for the team with more than 14 losses and more than 0 wins? | CREATE TABLE table_name_92 (byes INTEGER, losses VARCHAR, wins VARCHAR) |
SELECT MIN(year) FROM table_name_33 WHERE category = "1" AND stage = 12 | What is the lowest year for stage 12, category 1? | CREATE TABLE table_name_33 (year INTEGER, category VARCHAR, stage VARCHAR) |
SELECT surface FROM table_26309085_1 WHERE partner = "John Alexander" | What was the surface when he played with John Alexander? | CREATE TABLE table_26309085_1 (surface VARCHAR, partner VARCHAR) |
SELECT 1986 FROM table_name_17 WHERE 1991 = "a" AND 1987 = "a" | What is the 1986 value with A in 1991 and A in 1987? | CREATE TABLE table_name_17 (Id VARCHAR) |
SELECT game FROM table_name_29 WHERE result = "113-106" | Which game has a result of 113-106? | CREATE TABLE table_name_29 (game VARCHAR, result VARCHAR) |
SELECT home_team FROM table_name_36 WHERE away_team = "richmond" | What team was the home team when Richmond was the away team? | CREATE TABLE table_name_36 (home_team VARCHAR, away_team VARCHAR) |
SELECT points_classification FROM table_18733814_2 WHERE stage = 19 | When 19 is the stage who is the points classification? | CREATE TABLE table_18733814_2 (points_classification VARCHAR, stage VARCHAR) |
SELECT successor FROM table_2417340_4 WHERE vacator = "Vacant" AND district = "Louisiana 5th" | Who was the successor for vacant louisiana 5th | CREATE TABLE table_2417340_4 (successor VARCHAR, vacator VARCHAR, district VARCHAR) |
SELECT title FROM table_24649082_1 WHERE directed_by = "Charles Beeson" | What is the title of the episode directed by Charles Beeson? | CREATE TABLE table_24649082_1 (title VARCHAR, directed_by VARCHAR) |
SELECT home_team FROM table_name_44 WHERE tie_no = "replay" AND attendance = "2,048" | What is Home Team, when Tie No is Replay, and when Attendance is 2,048? | CREATE TABLE table_name_44 (home_team VARCHAR, tie_no VARCHAR, attendance VARCHAR) |
SELECT high_rebounds FROM table_27734577_8 WHERE game = 45 | What are the high rebounds in the 45 game? | CREATE TABLE table_27734577_8 (high_rebounds VARCHAR, game VARCHAR) |
SELECT occupation FROM table_name_35 WHERE candidate = "mary louise lorefice" | What occupation does Mary Louise Lorefice have? | CREATE TABLE table_name_35 (occupation VARCHAR, candidate VARCHAR) |
SELECT MIN(wins) FROM table_name_69 WHERE points = 6 | Name the least wins for 6 points | CREATE TABLE table_name_69 (wins INTEGER, points VARCHAR) |
SELECT _percentage_40_59_years FROM table_29615165_5 WHERE quartier = "Menpenti" | the quartier menpenti has how many 40-59 year olds? | CREATE TABLE table_29615165_5 (_percentage_40_59_years VARCHAR, quartier VARCHAR) |
SELECT team FROM table_name_28 WHERE car_no = "11" | What team operates car 11? | CREATE TABLE table_name_28 (team VARCHAR, car_no VARCHAR) |
SELECT launch_date FROM table_name_93 WHERE deorbit_date = "29 september 2008" | When did the ATV that deorbited on 29 september 2008, launch? | CREATE TABLE table_name_93 (launch_date VARCHAR, deorbit_date VARCHAR) |
SELECT year_made FROM table_name_20 WHERE manufacturer = "2-6-2 — oooo — mogul" | what is the year made when the manufacturer is 2-6-2 — oooo — mogul? | CREATE TABLE table_name_20 (year_made VARCHAR, manufacturer VARCHAR) |
SELECT area__km²_ FROM table_1888051_1 WHERE capital = "Nagua" | Nagua has the area (km²) of? | CREATE TABLE table_1888051_1 (area__km²_ VARCHAR, capital VARCHAR) |
SELECT high_points FROM table_name_36 WHERE date = "june 20" | What were the high points on june 20? | CREATE TABLE table_name_36 (high_points VARCHAR, date VARCHAR) |
SELECT visiting_team FROM table_name_13 WHERE host_team = "minnesota vikings" | Who was the visiting team against the Minnesota Vikings? | CREATE TABLE table_name_13 (visiting_team VARCHAR, host_team VARCHAR) |
SELECT chinese FROM table_name_7 WHERE chapter > 4 AND english_translation = "food transformations" | Can you tell me the Chinese that has the Chapter larger than 4, and the English Translation of food transformations? | CREATE TABLE table_name_7 (chinese VARCHAR, chapter VARCHAR, english_translation VARCHAR) |
SELECT player FROM table_name_52 WHERE position = "guard" AND school_club_team = "byu" | What Utah Jazz guard, played at BYU? | CREATE TABLE table_name_52 (player VARCHAR, position VARCHAR, school_club_team VARCHAR) |
SELECT country FROM table_name_49 WHERE skip = "andy kapp" | For what country is the skip Andy Kapp? | CREATE TABLE table_name_49 (country VARCHAR, skip VARCHAR) |
SELECT purpose FROM table_name_50 WHERE freq_currently = "8rn" AND area_served = "katherine" | What is the purpose for the katherine freq of 8rn? | CREATE TABLE table_name_50 (purpose VARCHAR, freq_currently VARCHAR, area_served VARCHAR) |
SELECT seasons FROM table_19487922_1 WHERE country = "Monaco" | How many seasons for Monaco? | CREATE TABLE table_19487922_1 (seasons VARCHAR, country VARCHAR) |
SELECT comparable_country FROM table_171666_1 WHERE national_share___percentage_ = "1.08" | What comparable country has a national share of 1.08? | CREATE TABLE table_171666_1 (comparable_country VARCHAR, national_share___percentage_ VARCHAR) |
SELECT date FROM table_name_26 WHERE attendance = "58,025" | When was the game that had 58,025 people in attendance? | CREATE TABLE table_name_26 (date VARCHAR, attendance VARCHAR) |
SELECT MIN(season) FROM table_17632217_1 | What is the lowest season? | CREATE TABLE table_17632217_1 (season INTEGER) |
SELECT opposition FROM table_name_64 WHERE competition = "division 1" AND venue = "stamford bridge" | Who is the opposition on the division 1 game at Stamford Bridge? | CREATE TABLE table_name_64 (opposition VARCHAR, competition VARCHAR, venue VARCHAR) |
SELECT MAX(year) FROM table_name_81 WHERE engine = "cosworth v8" AND chassis = "hesketh 308e" | What is the latest year that has an engine of cosworth v8, with a chassis of hesketh 308e? | CREATE TABLE table_name_81 (year INTEGER, engine VARCHAR, chassis VARCHAR) |
SELECT votes FROM table_name_78 WHERE occupation = "security guard" | How many votes did the security guard get? | CREATE TABLE table_name_78 (votes VARCHAR, occupation VARCHAR) |
SELECT COUNT(Appointed) AS archbishop FROM table_1656555_1 WHERE ordained_priest = "December 20, 1959" | How many appointed archbishops were ordained as priests on December 20, 1959 | CREATE TABLE table_1656555_1 (Appointed VARCHAR, ordained_priest VARCHAR) |
SELECT COUNT(years_active) FROM table_272865_20 WHERE asian_cup_played_as_a_captain = "Japan 1992" | What is the total number of years active listings where Asian Cup played as a captain is Japan 1992? | CREATE TABLE table_272865_20 (years_active VARCHAR, asian_cup_played_as_a_captain VARCHAR) |
SELECT location FROM table_name_61 WHERE team = "seve ballesteros & manuel piñero" | What is the Location when the team was seve ballesteros & manuel piñero? | CREATE TABLE table_name_61 (location VARCHAR, team VARCHAR) |
SELECT language FROM table_2509350_3 WHERE villa_alcalá_municipality = 1167 | Name the language for villa 1167 | CREATE TABLE table_2509350_3 (language VARCHAR, villa_alcalá_municipality VARCHAR) |
SELECT AVG(loses) FROM table_name_75 WHERE wins = 3 AND pos > 3 | Wins of 3, and a Pos. larger than 3 is what average loses? | CREATE TABLE table_name_75 (loses INTEGER, wins VARCHAR, pos VARCHAR) |
SELECT result FROM table_name_53 WHERE attendance = "55,353" | What is the Result of the game with an Attendance of 55,353? | CREATE TABLE table_name_53 (result VARCHAR, attendance VARCHAR) |
SELECT type FROM table_1974632_1 WHERE institution = "Alvernia University" | what type of institution is alvernia university | CREATE TABLE table_1974632_1 (type VARCHAR, institution VARCHAR) |
SELECT AVG(cuts_made) FROM table_name_15 WHERE top_10 > 9 | What is the average Cuts that were made with a Top-10 that is larger than 9? | CREATE TABLE table_name_15 (cuts_made INTEGER, top_10 INTEGER) |
SELECT score FROM table_name_45 WHERE runner_up = "magdalena maleeva" | What is the score having a runner-up of Magdalena Maleeva? | CREATE TABLE table_name_45 (score VARCHAR, runner_up VARCHAR) |
SELECT MAX(state_delegate) FROM table_16186152_1 WHERE candidate = "Mitt Romney" | How many state delegates did Candidate Mitt Romney have? | CREATE TABLE table_16186152_1 (state_delegate INTEGER, candidate VARCHAR) |
SELECT composition FROM table_name_76 WHERE mintage > 999 AND artist = "jody broomfield" AND year > 2008 | What is the composition of the coin that was issued after 2008, had a mintage larger than 999, and was designed by Jody Broomfield? | CREATE TABLE table_name_76 (composition VARCHAR, year VARCHAR, mintage VARCHAR, artist VARCHAR) |
SELECT MIN(no_in_season) FROM table_11664625_2 WHERE directed_by = "Anthony Hemingway" | Where is the first season that Anthony Hemingway appears? | CREATE TABLE table_11664625_2 (no_in_season INTEGER, directed_by VARCHAR) |
SELECT date FROM table_name_25 WHERE venue = "home" AND opponent = "peterborough phantoms" | When did the peterborough phantoms play at a venue of home? | CREATE TABLE table_name_25 (date VARCHAR, venue VARCHAR, opponent VARCHAR) |
SELECT date FROM table_name_39 WHERE name = "granville" | What is the date for the name of Granville? | CREATE TABLE table_name_39 (date VARCHAR, name VARCHAR) |
SELECT replaced_by FROM table_name_68 WHERE date_of_vacancy = "23 february 2009" | What is Replaced By, when Date of Vacancy is "23 February 2009"? | CREATE TABLE table_name_68 (replaced_by VARCHAR, date_of_vacancy VARCHAR) |
SELECT services FROM table_name_94 WHERE local_authority = "chiltern" AND zone_2010 = "9" | Which Services have a Local authority of chiltern, and a Zone 2010 of 9? | CREATE TABLE table_name_94 (services VARCHAR, local_authority VARCHAR, zone_2010 VARCHAR) |
SELECT SUM(attendance) FROM table_name_86 WHERE loss = "divis (0–3–0)" AND points < 38 | How much Attendance has a Loss of divis (0–3–0), and Points smaller than 38? | CREATE TABLE table_name_86 (attendance INTEGER, loss VARCHAR, points VARCHAR) |
SELECT unit FROM table_name_61 WHERE construction_started = "01.07.1967" | Which Unit's Construction started on 01.07.1967? | CREATE TABLE table_name_61 (unit VARCHAR, construction_started VARCHAR) |
SELECT result FROM table_name_60 WHERE hometown = "chicago, illinois" | What is the result for Chicago, Illinois? | CREATE TABLE table_name_60 (result VARCHAR, hometown VARCHAR) |
SELECT MAX(matches) FROM table_28846752_8 | What is the highest number listed for matches? | CREATE TABLE table_28846752_8 (matches INTEGER) |
SELECT MIN(place) FROM table_name_52 WHERE total = 16 AND average < 16 | What is the smallest place number when the total is 16 and average is less than 16? | CREATE TABLE table_name_52 (place INTEGER, total VARCHAR, average VARCHAR) |
SELECT us_exclusive FROM table_24600706_1 WHERE artist_band = "Miley Cyrus" | Name the us exclusive for miley cyrus | CREATE TABLE table_24600706_1 (us_exclusive VARCHAR, artist_band VARCHAR) |
SELECT SUM(frequency_mhz) FROM table_name_91 WHERE city_of_license = "woodstock, georgia" | What is the number of Frequency MHz in woodstock, georgia? | CREATE TABLE table_name_91 (frequency_mhz INTEGER, city_of_license VARCHAR) |
SELECT country FROM airlines WHERE active = 'Y' GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1 | Which countries has the most number of airlines whose active status is 'Y'? | CREATE TABLE airlines (country VARCHAR, active VARCHAR) |
SELECT length_of_game FROM table_name_31 WHERE home_team = "houston oilers" | How long did the game go that was played with the Houston Oilers at home? | CREATE TABLE table_name_31 (length_of_game VARCHAR, home_team VARCHAR) |
SELECT tally FROM table_name_44 WHERE county = "kilkenny" AND total = 10 AND opposition = "waterford" | What is the tally in Kilkenny county with 10 as the total and opposition of Waterford? | CREATE TABLE table_name_44 (tally VARCHAR, opposition VARCHAR, county VARCHAR, total VARCHAR) |
SELECT team FROM table_name_92 WHERE qual_2 = "58.385" | What team had a qual 2 time of 58.385? | CREATE TABLE table_name_92 (team VARCHAR, qual_2 VARCHAR) |
SELECT flight FROM table_name_26 WHERE aircraft = "vickers viscount type 794" | Which flight had an aircraft of vickers viscount type 794? | CREATE TABLE table_name_26 (flight VARCHAR, aircraft VARCHAR) |
SELECT percentage_of_votes FROM table_13746866_2 WHERE number_of_deputies = 112 | what's the percentage of votes with number of deputies being 112 | CREATE TABLE table_13746866_2 (percentage_of_votes VARCHAR, number_of_deputies VARCHAR) |
SELECT home_team AS score FROM table_name_95 WHERE home_team = "st kilda" | What did st kilda score at home? | CREATE TABLE table_name_95 (home_team VARCHAR) |
SELECT length FROM table_name_26 WHERE bullet = "6.5 (.257)" | Which length has a Bullet of 6.5 (.257)? | CREATE TABLE table_name_26 (length VARCHAR, bullet 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 FROM table_name_13 WHERE pick__number > 25 AND round = 7 AND name = "chris white" | Which College has a Pick # larger than 25, and a Round of 7, and a Name of chris white? | CREATE TABLE table_name_13 (college VARCHAR, name VARCHAR, pick__number VARCHAR, round VARCHAR) |
SELECT losing_bonus FROM table_name_89 WHERE played = "20" AND points_for = "353" | What was the losing bonus for the 20 played, and 353 points? | CREATE TABLE table_name_89 (losing_bonus VARCHAR, played VARCHAR, points_for VARCHAR) |
SELECT COUNT(round) FROM table_name_72 WHERE college = "usc" | In how many rounds did USC participate in? | CREATE TABLE table_name_72 (round VARCHAR, college VARCHAR) |
SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY COUNT(*) LIMIT 1 | List the language used least number of TV Channel. List language and number of TV Channel. | CREATE TABLE TV_Channel (LANGUAGE VARCHAR) |
SELECT T2.allergytype, COUNT(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype | Show all allergy type with number of students affected. | CREATE TABLE Has_allergy (allergy VARCHAR); CREATE TABLE Allergy_type (allergytype VARCHAR, allergy VARCHAR) |
SELECT goal_difference FROM table_name_61 WHERE position = 22 | What was the Goal Difference for Postion 22? | CREATE TABLE table_name_61 (goal_difference VARCHAR, position VARCHAR) |
SELECT MAX(game) FROM table_name_81 WHERE high_assists = "morris peterson (8)" | What is the highest Game when Morris Peterson (8) had the high assists? | CREATE TABLE table_name_81 (game INTEGER, high_assists VARCHAR) |
SELECT landesliga_nord FROM table_20181270_3 WHERE landesliga_mitte = "ASV Neumarkt" | Name the landesliga nord for asv neumarkt | CREATE TABLE table_20181270_3 (landesliga_nord VARCHAR, landesliga_mitte VARCHAR) |
SELECT open_year FROM branch GROUP BY open_year HAVING COUNT(*) >= 2 | List all open years when at least two shops are opened. | CREATE TABLE branch (open_year VARCHAR) |
SELECT result FROM table_name_26 WHERE attendance > 33 OFFSET 435 | Which had an attendance of larger than 33,435? | CREATE TABLE table_name_26 (result VARCHAR, attendance INTEGER) |
SELECT score FROM table_name_83 WHERE opponent = "buffalo sabres" | What was the Score in the game against the Buffalo Sabres? | CREATE TABLE table_name_83 (score VARCHAR, opponent VARCHAR) |
SELECT city FROM table_name_1 WHERE host = "university of texas" | Which city is the host of the University of Texas? | CREATE TABLE table_name_1 (city VARCHAR, host VARCHAR) |
SELECT local_investment__us$_ FROM table_17118006_2 WHERE bid_pronar_investment__us$_ = "912,185" | What was the local investment (in $) in the projects of the department with $912,185 BID/PRONAR investment? | CREATE TABLE table_17118006_2 (local_investment__us$_ VARCHAR, bid_pronar_investment__us$_ VARCHAR) |
SELECT date FROM table_name_24 WHERE rank__number = "5" AND opponent_number = "stanford" | On what date was the game played where the opponent was Stanford, ranked #5? | CREATE TABLE table_name_24 (date VARCHAR, rank__number VARCHAR, opponent_number VARCHAR) |
SELECT date FROM table_name_67 WHERE away_team = "st kilda" | When st kilda played as the away team, what date was that? | CREATE TABLE table_name_67 (date VARCHAR, away_team VARCHAR) |
SELECT original_title FROM table_name_22 WHERE year < 1986 AND country = "france" AND director_s_ = "alain resnais" | What was the original title that was directed by Alain Resnais in France before 1986? | CREATE TABLE table_name_22 (original_title VARCHAR, director_s_ VARCHAR, year VARCHAR, country VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.