answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT SUM(december) FROM table_name_56 WHERE record = "22-12-5" | What is the sum for December when the record was 22-12-5? | CREATE TABLE table_name_56 (december INTEGER, record VARCHAR) |
SELECT home_team FROM table_name_36 WHERE venue = "vfl park" | Which home team plays at VFL Park? | CREATE TABLE table_name_36 (home_team VARCHAR, venue VARCHAR) |
SELECT m60a3_patton FROM table_name_28 WHERE leclerc = "40 rounds" | What is the M60A3 that has 40 rounds as Leclerc? | CREATE TABLE table_name_28 (m60a3_patton VARCHAR, leclerc VARCHAR) |
SELECT season FROM table_name_24 WHERE pos = 13 AND head_coach = "protasov lyutyi talalayev balakhnin baidachny" | Which season led to a position of 13, and a head coach of Protasov Lyutyi Talalayev Balakhnin Baidachny? | CREATE TABLE table_name_24 (season VARCHAR, pos VARCHAR, head_coach VARCHAR) |
SELECT result FROM table_name_64 WHERE week = 13 | What is the result when 13 is the week? | CREATE TABLE table_name_64 (result VARCHAR, week VARCHAR) |
SELECT MIN(game) FROM table_27713030_7 | What game in the season does this list start? | CREATE TABLE table_27713030_7 (game INTEGER) |
SELECT lead_envoy FROM table_name_10 WHERE ryūkyūan_king = "shō kei" AND mission_type = "congratulation" AND year = 1718 | Who was the lead envoy of the congratulation mission in 1718 with the Ryūkyūan King shō kei? | CREATE TABLE table_name_10 (lead_envoy VARCHAR, year VARCHAR, ryūkyūan_king VARCHAR, mission_type VARCHAR) |
SELECT type FROM table_name_45 WHERE bie_recognised = "yes" AND festival_name = "floriade" AND year_s_ = "2002" | what is the type when the bie recognised is yes, festival name is floriade and the year(s) is 2002? | CREATE TABLE table_name_45 (type VARCHAR, year_s_ VARCHAR, bie_recognised VARCHAR, festival_name VARCHAR) |
SELECT MAX(field_goals) FROM table_23184448_4 WHERE player = "Alexis Yackley" | Name the field goals for alexis yackley | CREATE TABLE table_23184448_4 (field_goals INTEGER, player VARCHAR) |
SELECT first_elected FROM table_1341423_36 WHERE district = "Oklahoma 1" | when was the first elected for districk oklahoma 1? | CREATE TABLE table_1341423_36 (first_elected VARCHAR, district VARCHAR) |
SELECT COUNT(date) FROM table_21058823_1 WHERE record = "0-2-0" | How many games did they play when their record 0-2-0? | CREATE TABLE table_21058823_1 (date VARCHAR, record VARCHAR) |
SELECT AVG(total) FROM table_name_61 WHERE fa_cup = 1 AND fa_trophy > 0 | What is the average total with 1 FA cup and more than 0 FA trophies? | CREATE TABLE table_name_61 (total INTEGER, fa_cup VARCHAR, fa_trophy VARCHAR) |
SELECT MIN(championship) FROM table_name_68 WHERE league_cup > 0 AND fa_cup > 0 | Which Championship has a League Cup larger than 0, and a FA Cup larger than 0? | CREATE TABLE table_name_68 (championship INTEGER, league_cup VARCHAR, fa_cup VARCHAR) |
SELECT MAX(track) FROM table_name_12 WHERE japanese_title = "メロディー" | Which track has a Japanese title of メロディー? | CREATE TABLE table_name_12 (track INTEGER, japanese_title VARCHAR) |
SELECT transfer_fee FROM table_name_53 WHERE country = "nir" | What is the transfer fee for the country of Nir? | CREATE TABLE table_name_53 (transfer_fee VARCHAR, country VARCHAR) |
SELECT result FROM table_24501530_1 WHERE hometown = "Maylands, Western Australia" | What was the result of the player from Maylands, Western Australia? | CREATE TABLE table_24501530_1 (result VARCHAR, hometown VARCHAR) |
SELECT opponent_team FROM table_name_18 WHERE match > 2 AND location = "pasir gudang, malaysia" | Who was the opponent at Pasir Gudang, Malaysia with a match larger than 2? | CREATE TABLE table_name_18 (opponent_team VARCHAR, match VARCHAR, location VARCHAR) |
SELECT date FROM table_name_56 WHERE game = 2 | On what day was game 2 played? | CREATE TABLE table_name_56 (date VARCHAR, game VARCHAR) |
SELECT losses FROM table_name_51 WHERE conference = "western" AND season = "2004–05" | What is the Losses at the western conference and the 2004–05 season? | CREATE TABLE table_name_51 (losses VARCHAR, conference VARCHAR, season VARCHAR) |
SELECT Fname, Lname FROM FACULTY WHERE sex = "M" AND Building = "NEB" | Find the first names and last names of male (sex is M) faculties who live in building NEB. | CREATE TABLE FACULTY (Fname VARCHAR, Lname VARCHAR, sex VARCHAR, Building VARCHAR) |
SELECT candidates FROM table_1342198_18 WHERE district = "Louisiana 3" | who is the candidate where district is louisiana 3? | CREATE TABLE table_1342198_18 (candidates VARCHAR, district VARCHAR) |
SELECT record FROM table_name_7 WHERE date = "february 25" | What record has February 25 as the date? | CREATE TABLE table_name_7 (record VARCHAR, date VARCHAR) |
SELECT date FROM table_name_42 WHERE opponent_number = "iowa" | what is the date when the opponent# is iowa? | CREATE TABLE table_name_42 (date VARCHAR, opponent_number VARCHAR) |
SELECT height FROM table_29598261_1 WHERE last_school_college = "Columbia River HS" | what is the height of columbia river hs? | CREATE TABLE table_29598261_1 (height VARCHAR, last_school_college VARCHAR) |
SELECT position FROM table_name_58 WHERE player = "pierre daigneault" | What is the position of Pierre Daigneault? | CREATE TABLE table_name_58 (position VARCHAR, player VARCHAR) |
SELECT date_of_birth__age_ FROM table_name_26 WHERE club_province = "ulster" AND position = "centre" | What is the date of birth for the player from Ulster and plays at Centre position? | CREATE TABLE table_name_26 (date_of_birth__age_ VARCHAR, club_province VARCHAR, position VARCHAR) |
SELECT MIN(played) FROM table_name_59 WHERE wins > 15 AND goals_against < 42 | What is the lowest number played of the club with more than 15 wins and less than 42 goals against? | CREATE TABLE table_name_59 (played INTEGER, wins VARCHAR, goals_against VARCHAR) |
SELECT chassis FROM table_1405704_1 WHERE season = 1979 AND engine = "Foyt" | What kind of chassis did a winning car with a Foyt engine have in 1979? | CREATE TABLE table_1405704_1 (chassis VARCHAR, season VARCHAR, engine VARCHAR) |
SELECT MAX(goal_difference) FROM table_name_52 WHERE points = "33-5" AND wins < 12 | What is the highest goal difference that the club with 33-5 points and less than 12 wins? | CREATE TABLE table_name_52 (goal_difference INTEGER, points VARCHAR, wins VARCHAR) |
SELECT t1.address, t1.shop_id FROM shop AS t1 JOIN happy_hour AS t2 ON t1.shop_id = t2.shop_id WHERE MONTH = 'May' | What are the id and address of the shops which have a happy hour in May? | CREATE TABLE shop (address VARCHAR, shop_id VARCHAR); CREATE TABLE happy_hour (shop_id VARCHAR) |
SELECT player FROM table_name_54 WHERE total = "158" | What player has a total of 158/ | CREATE TABLE table_name_54 (player VARCHAR, total VARCHAR) |
SELECT wins FROM table_name_20 WHERE f_laps = "test driver" AND team = "lotus racing" | what is the wins when the f/laps is test driver and team is lotus racing? | CREATE TABLE table_name_20 (wins VARCHAR, f_laps VARCHAR, team VARCHAR) |
SELECT rank FROM table_name_29 WHERE goals < 66 | What is the Rank with a Goal number smaller than 66? | CREATE TABLE table_name_29 (rank VARCHAR, goals INTEGER) |
SELECT COUNT(hometown) FROM table_29970488_2 WHERE previous_school = "Charis Prep" | How many hometowns are there when Charis Prep was the previous school? | CREATE TABLE table_29970488_2 (hometown VARCHAR, previous_school VARCHAR) |
SELECT year FROM table_name_40 WHERE distance = "1-1/16" AND jockey = "ramon dominguez" | What year did jockey Ramon Dominguez have a distance of 1-1/16? | CREATE TABLE table_name_40 (year VARCHAR, distance VARCHAR, jockey VARCHAR) |
SELECT Date, Name, venue FROM event ORDER BY Event_Attendance DESC | Show the dates, places, and names of events in descending order of the attendance. | CREATE TABLE event (Date VARCHAR, Name VARCHAR, venue VARCHAR, Event_Attendance VARCHAR) |
SELECT COUNT(candidates) FROM table_1342198_6 WHERE incumbent = "Cecil R. King" | How many candidates were there in the race where Cecil R. King is the incumbent? | CREATE TABLE table_1342198_6 (candidates VARCHAR, incumbent VARCHAR) |
SELECT place FROM table_name_59 WHERE to_par = "e" AND score = 69 - 69 - 72 = 210 | What is the place with a to par of E and a score of 69-69-72=210? | CREATE TABLE table_name_59 (place VARCHAR, to_par VARCHAR, score VARCHAR) |
SELECT city FROM table_name_96 WHERE prize = "€288,180" | What city did an event have a prize of €288,180? | CREATE TABLE table_name_96 (city VARCHAR, prize VARCHAR) |
SELECT competition FROM table_name_80 WHERE venue = "serravalle, san marino" | What is the competition that was at serravalle, san marino? | CREATE TABLE table_name_80 (competition VARCHAR, venue VARCHAR) |
SELECT high_points FROM table_17311797_8 WHERE date = "February 6" | Who had the high points on February 6? | CREATE TABLE table_17311797_8 (high_points VARCHAR, date VARCHAR) |
SELECT directed___undirected FROM table_name_25 WHERE induced___non_induced = "induced" AND name = "fpf (mavisto)" | What is the directed/undirected of fpf (mavisto), which has an induced/non-induced of induced? | CREATE TABLE table_name_25 (directed___undirected VARCHAR, induced___non_induced VARCHAR, name VARCHAR) |
SELECT distance FROM table_name_97 WHERE event = "bass pro shops" | What distance does the Bass Pro Shops event have? | CREATE TABLE table_name_97 (distance VARCHAR, event VARCHAR) |
SELECT COUNT(winner) FROM table_2267345_2 WHERE team_classification = "Kelme-Costa Blanca" AND combativity_award = "Jacky Durand" | What is the total number of winners when the team classification leader was Kelme-Costa Blanca and the combativity award was won by Jacky Durand? | CREATE TABLE table_2267345_2 (winner VARCHAR, team_classification VARCHAR, combativity_award VARCHAR) |
SELECT MIN(year) FROM table_name_71 WHERE points > 68 AND rank = "7th" | What earliest year with points larger than 68 and a rank of 7th? | CREATE TABLE table_name_71 (year INTEGER, points VARCHAR, rank VARCHAR) |
SELECT club FROM table_name_91 WHERE city = "rovigo" | What is Rovigo's Club? | CREATE TABLE table_name_91 (club VARCHAR, city VARCHAR) |
SELECT MAX(extra_points) FROM table_name_38 WHERE player = "albert herrnstein" AND points > 15 | What was the highest number of extra points scored by Albert Herrnstein, when he scored more than 15 points total? | CREATE TABLE table_name_38 (extra_points INTEGER, player VARCHAR, points VARCHAR) |
SELECT player FROM table_name_35 WHERE year_s__won = "2007" | In 2007, what player won player of the year? | CREATE TABLE table_name_35 (player VARCHAR, year_s__won VARCHAR) |
SELECT language FROM table_name_69 WHERE percentage___percentage_ = "6.49" | What's the Language with a percentage of 6.49? | CREATE TABLE table_name_69 (language VARCHAR, percentage___percentage_ VARCHAR) |
SELECT years FROM table_name_12 WHERE finals = "9 (0)" AND a_league = "133 (1)" | What years have 9 (0) as the finals and 133 (1) as the A-League? | CREATE TABLE table_name_12 (years VARCHAR, finals VARCHAR, a_league VARCHAR) |
SELECT couple FROM table_name_13 WHERE choreographer_s_ = "nakul dev mahajan" | What is Couple, when Choreographer(s) is Nakul Dev Mahajan? | CREATE TABLE table_name_13 (couple VARCHAR, choreographer_s_ VARCHAR) |
SELECT away_team AS score FROM table_name_89 WHERE venue = "victoria park" | What was the away team's score for the match played at Victoria Park? | CREATE TABLE table_name_89 (away_team VARCHAR, venue VARCHAR) |
SELECT competition FROM table_name_84 WHERE goal = 3 | What type of Competition has a Goal of 3? | CREATE TABLE table_name_84 (competition VARCHAR, goal VARCHAR) |
SELECT enrollment FROM table_261946_3 WHERE location__all_in_ohio_ = "Ashland" | What is the enrollment for Ashland University? | CREATE TABLE table_261946_3 (enrollment VARCHAR, location__all_in_ohio_ VARCHAR) |
SELECT studio FROM table_name_97 WHERE director = "oliver stone" | Which Studio has a Director of oliver stone? | CREATE TABLE table_name_97 (studio VARCHAR, director VARCHAR) |
SELECT catalog FROM table_name_19 WHERE region = "france" | What is the Catalog number in France? | CREATE TABLE table_name_19 (catalog VARCHAR, region VARCHAR) |
SELECT date FROM table_name_48 WHERE leading_scorer = "ricky davis (20)" | When has a Leading scorer of ricky davis (20)? | CREATE TABLE table_name_48 (date VARCHAR, leading_scorer VARCHAR) |
SELECT premierships FROM table_name_40 WHERE venue = "queensland raceway" | How many premierships for the queensland raceway? | CREATE TABLE table_name_40 (premierships VARCHAR, venue VARCHAR) |
SELECT title FROM table_26448179_4 WHERE us_viewers__millions_ = "3.2" | What is the title of the episode watched by 3.2 million viewers? | CREATE TABLE table_26448179_4 (title VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT land___sqmi__ FROM table_18600760_10 WHERE county = "Grand Forks" | How big is the land in square miles of Grand Forks county? | CREATE TABLE table_18600760_10 (land___sqmi__ VARCHAR, county VARCHAR) |
SELECT COUNT(week) FROM table_name_87 WHERE record = "0-11" | What is the total number for the week with a record of 0-11? | CREATE TABLE table_name_87 (week VARCHAR, record VARCHAR) |
SELECT total FROM table_name_62 WHERE set_4 = "na" AND score = "3-0" AND set_2 = "26-24" | What is the total of NA for set 4, a score of 3-0 and a 26-24 for set 2? | CREATE TABLE table_name_62 (total VARCHAR, set_2 VARCHAR, set_4 VARCHAR, score VARCHAR) |
SELECT name FROM buildings ORDER BY Height DESC | List the names of buildings in descending order of building height. | CREATE TABLE buildings (name VARCHAR, Height VARCHAR) |
SELECT COUNT(wins) FROM table_name_51 WHERE goals_against < 49 AND draws = 9 AND goals_for = 39 AND points < 31 | What is the total number of wins for the entry that has fewer than 49 goals against, 39 goals for, 9 draws, and fewer than 31 points? | CREATE TABLE table_name_51 (wins VARCHAR, points VARCHAR, goals_for VARCHAR, goals_against VARCHAR, draws VARCHAR) |
SELECT original_title FROM table_17641206_6 WHERE viewership = "6.05 million" | Name the original title for 6.05 million viewership | CREATE TABLE table_17641206_6 (original_title VARCHAR, viewership VARCHAR) |
SELECT T1.address_id, T1.line_1, T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_id ORDER BY COUNT(*) DESC LIMIT 1 | Which address holds the most number of students currently? List the address id and all lines. | CREATE TABLE Addresses (address_id VARCHAR, line_1 VARCHAR, line_2 VARCHAR); CREATE TABLE Students (current_address_id VARCHAR) |
SELECT school FROM table_name_11 WHERE location = "ligonier" | What school is in Ligonier? | CREATE TABLE table_name_11 (school VARCHAR, location VARCHAR) |
SELECT AVG(bronze) FROM table_name_43 WHERE points < 5 AND gold < 0 | For clubs that have 0 gold and less than 5 points, what is the average amount of bronze medals? | CREATE TABLE table_name_43 (bronze INTEGER, points VARCHAR, gold VARCHAR) |
SELECT country FROM table_name_65 WHERE score = 70 - 74 - 69 = 213 | What is the country with a 70-74-69=213 score? | CREATE TABLE table_name_65 (country VARCHAR, score VARCHAR) |
SELECT MIN(episode_number) FROM table_25751274_2 WHERE rating / SHARE(18 - 49) = 1.1 / 3 | What is the lowest episode number that had a ratings/share (18-49) of 1.1/3? | CREATE TABLE table_25751274_2 (episode_number INTEGER, rating VARCHAR) |
SELECT COUNT(wins) FROM table_name_45 WHERE sunrayia_fl = "wentworth" AND byes < 0 | What's the total wins for Wentworth with less than 0 byes? | CREATE TABLE table_name_45 (wins VARCHAR, sunrayia_fl VARCHAR, byes VARCHAR) |
SELECT name FROM table_name_67 WHERE position = "guard/forward" | Which player is in the position of Guard/Forward? | CREATE TABLE table_name_67 (name VARCHAR, position VARCHAR) |
SELECT date FROM table_name_61 WHERE goal = 6 | What was the date of the game with 6 goals? | CREATE TABLE table_name_61 (date VARCHAR, goal VARCHAR) |
SELECT AVG(byes) FROM table_name_7 WHERE losses > 0 AND against > 3049 | Which Byes have Losses larger than 0, and an Against larger than 3049? | CREATE TABLE table_name_7 (byes INTEGER, losses VARCHAR, against VARCHAR) |
SELECT SUM(draws) FROM table_name_25 WHERE wins < 8 AND goals_for = 31 | How many draws have less than 8 wins, and 31 goals for? | CREATE TABLE table_name_25 (draws INTEGER, wins VARCHAR, goals_for VARCHAR) |
SELECT COUNT(ebit__us_) AS $m_ FROM table_name_46 WHERE year_to_april = 2011 AND earnings_per_share__¢_ > 47 | Name the total number of EBIT (US $m) in 2011 and a Earnings per share (¢) larger than 47? | CREATE TABLE table_name_46 (ebit__us_ VARCHAR, year_to_april VARCHAR, earnings_per_share__¢_ VARCHAR) |
SELECT channel FROM table_14523485_9 WHERE country = "New Zealand" | Where is the show aired in New Zealand? | CREATE TABLE table_14523485_9 (channel VARCHAR, country VARCHAR) |
SELECT MAX(no_in_series) FROM table_1876825_6 WHERE original_air_date = "February 8, 2004" | What episode number in the series aired on February 8, 2004? | CREATE TABLE table_1876825_6 (no_in_series INTEGER, original_air_date VARCHAR) |
SELECT score FROM table_name_7 WHERE to_par > 17 AND player = "mike brady" | Which Score has a To par larger than 17, and a Player of mike brady? | CREATE TABLE table_name_7 (score VARCHAR, to_par VARCHAR, player VARCHAR) |
SELECT stage AS winner FROM table_275506_1 WHERE distance__km_ = "162.5" | Who is every stage winner at the distance of 162.5? | CREATE TABLE table_275506_1 (stage VARCHAR, distance__km_ VARCHAR) |
SELECT tournament FROM table_name_70 WHERE location = "arizona" | What tournament is in Arizona? | CREATE TABLE table_name_70 (tournament VARCHAR, location VARCHAR) |
SELECT MIN(season_no) FROM table_11630008_4 WHERE written_by = "Joseph Hampton & Dani Renee" | What is the first season written by joseph hampton & dani renee? | CREATE TABLE table_11630008_4 (season_no INTEGER, written_by VARCHAR) |
SELECT COUNT(league_cup) FROM table_name_70 WHERE fa_cup < 0 | How many league cups have an FA Cup less than 0? | CREATE TABLE table_name_70 (league_cup VARCHAR, fa_cup INTEGER) |
SELECT MAX(OMIM) FROM enzyme | What is the maximum Online Mendelian Inheritance in Man (OMIM) value of the enzymes? | CREATE TABLE enzyme (OMIM INTEGER) |
SELECT MAX(points) FROM table_name_22 WHERE year < 1953 AND chassis = "ferrari 375/50" | What is the most points earlier than 1953 with a Ferrari 375/50 chassis? | CREATE TABLE table_name_22 (points INTEGER, year VARCHAR, chassis VARCHAR) |
SELECT MIN(gold) FROM table_name_21 WHERE silver < 1 AND total < 4 AND bronze > 1 | What is the fewest gold medals for a team with fewer than 1 silver, more than 1 bronze and a total less than 4? | CREATE TABLE table_name_21 (gold INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR) |
SELECT final FROM table_name_34 WHERE no2 = "alzira ricardo b." | What was the final of play No. 2, Alzira Ricardo B.? | CREATE TABLE table_name_34 (final VARCHAR, no2 VARCHAR) |
SELECT place FROM table_name_86 WHERE score = 68 - 73 - 76 = 217 | What is the Place of the Player with a Score of 68-73-76=217? | CREATE TABLE table_name_86 (place VARCHAR, score VARCHAR) |
SELECT july__°c_ FROM table_21980_1 WHERE july__°f_ = "71/55" | What were the July (°C) temperatures when the July (°F) temperatures were 71/55? | CREATE TABLE table_21980_1 (july__°c_ VARCHAR, july__°f_ VARCHAR) |
SELECT podiums FROM table_21795650_1 WHERE series = "Italian Formula Renault 2.0 Winter series" | How many podiums were there in the Italian Formula Renault 2.0 Winter Series? | CREATE TABLE table_21795650_1 (podiums VARCHAR, series VARCHAR) |
SELECT COUNT(grid) FROM table_name_12 WHERE laps = 61 AND driver = "heinz-harald frentzen" | How many grids for heinz-harald frentzen with 61 laps? | CREATE TABLE table_name_12 (grid VARCHAR, laps VARCHAR, driver VARCHAR) |
SELECT player FROM table_name_75 WHERE score = 69 - 71 = 140 | Who scored 69-71=140? | CREATE TABLE table_name_75 (player VARCHAR, score VARCHAR) |
SELECT written_by FROM table_27462209_1 WHERE prod_code = 322 | Name who wrote the production code 322 | CREATE TABLE table_27462209_1 (written_by VARCHAR, prod_code VARCHAR) |
SELECT decile FROM table_name_90 WHERE name = "mayfield school" | Which decile features Mayfield School? | CREATE TABLE table_name_90 (decile VARCHAR, name VARCHAR) |
SELECT calls FROM table_name_88 WHERE frequency = "1290 khz" | Tell me the calls for frequency of 1290 khz | CREATE TABLE table_name_88 (calls VARCHAR, frequency VARCHAR) |
SELECT SUM(total) FROM table_name_20 WHERE player = "david toms" | What is the total of David Toms? | CREATE TABLE table_name_20 (total INTEGER, player VARCHAR) |
SELECT COUNT(australasia) FROM table_27184837_1 WHERE americas = 115 | How many times did Australasia received a program if the Americas received 115 program? | CREATE TABLE table_27184837_1 (australasia VARCHAR, americas VARCHAR) |
SELECT method FROM table_name_36 WHERE time = "5:00" AND opponent = "adriano martins" | What method had Adriano Martins as an opponent and a time of 5:00? | CREATE TABLE table_name_36 (method VARCHAR, time VARCHAR, opponent VARCHAR) |
SELECT AVG(ties) FROM table_name_55 WHERE wins = 6 AND season > 2004 | What's the average amount of ties had when a team wins 6 and it's past the 2004 season? | CREATE TABLE table_name_55 (ties INTEGER, wins VARCHAR, season VARCHAR) |
SELECT MIN(pick__number) FROM table_16729063_1 WHERE player = "Chris Brewer" | What draft pick was Chris Brewer? | CREATE TABLE table_16729063_1 (pick__number INTEGER, player VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.