answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT gregorian_calendar FROM table_name_77 WHERE sign_of_zodiac = "aquarius" | WHAT IS THE GREGORIAN CALENDAR FOR AQUARIUS? | CREATE TABLE table_name_77 (gregorian_calendar VARCHAR, sign_of_zodiac VARCHAR) |
SELECT COUNT(original_air_date) FROM table_13426649_1 WHERE _number = 6 | How many different original air dates did the episode number 6 have? | CREATE TABLE table_13426649_1 (original_air_date VARCHAR, _number VARCHAR) |
SELECT employee_ID FROM Employees WHERE employee_name = "Ebba" | What is the id for the employee called Ebba? | CREATE TABLE Employees (employee_ID VARCHAR, employee_name VARCHAR) |
SELECT location_attendance FROM table_name_13 WHERE score = "113-106" | What was the location of the game with a score of 113-106? | CREATE TABLE table_name_13 (location_attendance VARCHAR, score VARCHAR) |
SELECT COUNT(assists) FROM table_name_21 WHERE position = "striker" AND goals < 4 AND player = "edmundo rodriguez" AND minutes < 473 | What is the total number of assists when Edmundo Rodriguez is playing the position of striker, less than 4 goals were scored, and the minutes were less than 473? | CREATE TABLE table_name_21 (assists VARCHAR, minutes VARCHAR, player VARCHAR, position VARCHAR, goals VARCHAR) |
SELECT COUNT(*) FROM Allergy_type WHERE allergytype = "animal" | How many allergies have type animal? | CREATE TABLE Allergy_type (allergytype VARCHAR) |
SELECT T3.name, T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year | Show all member names and registered branch names sorted by register year. | CREATE TABLE member (name VARCHAR, member_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, member_id VARCHAR, register_year VARCHAR); CREATE TABLE branch (name VARCHAR, branch_id VARCHAR) |
SELECT MIN(top_10) FROM table_name_43 WHERE wins > 0 | With wins greater than 0 what is the minimum Top-10? | CREATE TABLE table_name_43 (top_10 INTEGER, wins INTEGER) |
SELECT MIN(avg_finish) FROM table_name_7 WHERE top_5 < 0 | What is the lowest average finish having top 5s of 0? | CREATE TABLE table_name_7 (avg_finish INTEGER, top_5 INTEGER) |
SELECT SUM(decile) FROM table_name_6 WHERE area = "waikanae" | What is the total Decile with Waikanae Area? | CREATE TABLE table_name_6 (decile INTEGER, area VARCHAR) |
SELECT AVG(average) FROM table_name_33 WHERE start_value = 9.9 AND total = 9.612 | What is the average for the gymnast with a 9.9 start value and a total of 9.612? | CREATE TABLE table_name_33 (average INTEGER, start_value VARCHAR, total VARCHAR) |
SELECT driver FROM table_name_38 WHERE grid = "22" | Which driver has a grid value of 22? | CREATE TABLE table_name_38 (driver VARCHAR, grid VARCHAR) |
SELECT episode FROM table_23292220_4 WHERE daves_team = "Boy George and Lee Mack" | Which episode has boy george and lee mack on dave's team? | CREATE TABLE table_23292220_4 (episode VARCHAR, daves_team VARCHAR) |
SELECT lms_nos FROM table_name_63 WHERE date = "1879-81" AND no_built = 4 | In 1879-81 with number built 4, what is the LMS nos? | CREATE TABLE table_name_63 (lms_nos VARCHAR, date VARCHAR, no_built VARCHAR) |
SELECT result FROM table_2668416_7 WHERE district = "Maryland 7" | What is the result for the district Maryland 7? | CREATE TABLE table_2668416_7 (result VARCHAR, district VARCHAR) |
SELECT first_elected FROM table_1431467_4 WHERE incumbent = "John J. Hemphill" | Who was everyone first elected when incumbent was John J. Hemphill? | CREATE TABLE table_1431467_4 (first_elected VARCHAR, incumbent VARCHAR) |
SELECT COUNT(game) FROM table_17360840_4 WHERE record = "1-3-3" | How many games with record 1-3-3 | CREATE TABLE table_17360840_4 (game VARCHAR, record VARCHAR) |
SELECT location_attendance FROM table_name_49 WHERE date = "february 10" | On February 10, what was the location attendance? | CREATE TABLE table_name_49 (location_attendance VARCHAR, date VARCHAR) |
SELECT directed_by FROM table_28140588_1 WHERE production_code = 60034 | Who is the director when the production code is 60034? | CREATE TABLE table_28140588_1 (directed_by VARCHAR, production_code VARCHAR) |
SELECT team_name FROM table_22014431_3 WHERE total = "243" | What is the team name when 243 is the total? | CREATE TABLE table_22014431_3 (team_name VARCHAR, total VARCHAR) |
SELECT MIN(up_for_reelection) FROM table_name_80 WHERE took_office > 2011 AND position = "chairman" | What is the earliest year a Chairman who took office after 2011 is up for reelection? | CREATE TABLE table_name_80 (up_for_reelection INTEGER, took_office VARCHAR, position VARCHAR) |
SELECT statistic FROM table_name_79 WHERE opponent = "ssc-r" | When the opposing team was SSC-R what was the statistic? | CREATE TABLE table_name_79 (statistic VARCHAR, opponent VARCHAR) |
SELECT T2.title, MAX(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id | What are the title and maximum price of each film? | CREATE TABLE film (title VARCHAR, film_id VARCHAR); CREATE TABLE schedule (price INTEGER, film_id VARCHAR) |
SELECT torque FROM table_20007413_3 WHERE year = "1986" | Name the torque for 1986 | CREATE TABLE table_20007413_3 (torque VARCHAR, year VARCHAR) |
SELECT ukraine_career FROM table_name_26 WHERE lost > 1 AND drawn > 11 | What years had a manager who lost more than 1 and drawn more than 11? | CREATE TABLE table_name_26 (ukraine_career VARCHAR, lost VARCHAR, drawn VARCHAR) |
SELECT location FROM table_18893428_1 WHERE constructor = "Lorraine-Dietrich" | What is the location of the car that has a constructor of Lorraine-Dietrich? | CREATE TABLE table_18893428_1 (location VARCHAR, constructor VARCHAR) |
SELECT MIN(attendance) FROM table_name_97 WHERE home = "los angeles" | What is the least number of people to attend a game when Los Angeles was the home team? | CREATE TABLE table_name_97 (attendance INTEGER, home VARCHAR) |
SELECT competition FROM table_name_37 WHERE opponents = "sv werder bremen" AND score = "1-2" | What is the name of the competition with opponents of Sv Werder Bremen and a score of 1-2? | CREATE TABLE table_name_37 (competition VARCHAR, opponents VARCHAR, score VARCHAR) |
SELECT SUM(crowd) FROM table_name_69 WHERE venue = "kardinia park" | How large was the crowd at the Kardinia Park venue games? | CREATE TABLE table_name_69 (crowd INTEGER, venue VARCHAR) |
SELECT Investor FROM entrepreneur WHERE Money_Requested > 140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested < 120000 | Show the investors shared by entrepreneurs that requested more than 140000 and entrepreneurs that requested less than 120000. | CREATE TABLE entrepreneur (Investor VARCHAR, Money_Requested INTEGER) |
SELECT time FROM table_name_14 WHERE method = "submission (knees)" | What is Time, when Method is "submission (knees)"? | CREATE TABLE table_name_14 (time VARCHAR, method VARCHAR) |
SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = "Confirmed" | Show the distinct apartment numbers of the apartments that have bookings with status code "Confirmed". | CREATE TABLE Apartments (apt_number VARCHAR, apt_id VARCHAR); CREATE TABLE Apartment_Bookings (apt_id VARCHAR, booking_status_code VARCHAR) |
SELECT COUNT(game) FROM table_name_56 WHERE opponent = "montreal canadiens" | What is the fame number when the Montreal Canadiens were the opponent? | CREATE TABLE table_name_56 (game VARCHAR, opponent VARCHAR) |
SELECT id FROM trip ORDER BY duration LIMIT 1 | What is the id of the trip that has the shortest duration? | CREATE TABLE trip (id VARCHAR, duration VARCHAR) |
SELECT COUNT(candidates) FROM table_1342198_38 WHERE district = "Pennsylvania 3" | What is the number of candidates for pennsylvania 3 | CREATE TABLE table_1342198_38 (candidates VARCHAR, district VARCHAR) |
SELECT district FROM table_1341598_11 WHERE first_elected = 1980 | Which district shows a first elected of 1980? | CREATE TABLE table_1341598_11 (district VARCHAR, first_elected VARCHAR) |
SELECT COUNT(position) FROM table_18254488_2 WHERE player = "Koki Mizuno" | When koki mizuno is the player how man positions are there? | CREATE TABLE table_18254488_2 (position VARCHAR, player VARCHAR) |
SELECT record FROM table_name_65 WHERE game > 24 | What is the record when the game is greater than 24? | CREATE TABLE table_name_65 (record VARCHAR, game INTEGER) |
SELECT COUNT(title) FROM table_29273243_1 WHERE production_code = "IP04004" | How many episodes have the production code ip04004? | CREATE TABLE table_29273243_1 (title VARCHAR, production_code VARCHAR) |
SELECT score FROM table_name_66 WHERE date = "15 aug" AND time = "17:30" | What is the score on 15 Aug with a 17:30 time? | CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR, time VARCHAR) |
SELECT years FROM table_name_45 WHERE authority = "state integrated" AND decile = "9" | What are the years when the authority was state integrated and a decile of 9? | CREATE TABLE table_name_45 (years VARCHAR, authority VARCHAR, decile VARCHAR) |
SELECT driver FROM table_name_44 WHERE laps = 58 AND grid < 21 | Who is the driver with 58 laps and a grid smaller than 21? | CREATE TABLE table_name_44 (driver VARCHAR, laps VARCHAR, grid VARCHAR) |
SELECT account_id, account_details FROM Accounts | Show all account ids and account details. | CREATE TABLE Accounts (account_id VARCHAR, account_details VARCHAR) |
SELECT second_year FROM table_12148147_2 WHERE fourth_year = "Physics" | What is the second year course in the program where physics is taken in the fourth year? | CREATE TABLE table_12148147_2 (second_year VARCHAR, fourth_year VARCHAR) |
SELECT MIN(attendance) FROM table_name_61 WHERE date = "november 19, 1961" | Which Attendance has a Date of november 19, 1961? | CREATE TABLE table_name_61 (attendance INTEGER, date VARCHAR) |
SELECT result FROM table_name_14 WHERE opponent = "buffalo bills" | Which result was there when the opponents were the Buffalo Bills? | CREATE TABLE table_name_14 (result VARCHAR, opponent VARCHAR) |
SELECT new_pageant FROM table_14308895_2 WHERE country_territory = "Spain" | which is the new pageant from spain? | CREATE TABLE table_14308895_2 (new_pageant VARCHAR, country_territory VARCHAR) |
SELECT metric_value FROM table_name_54 WHERE ratio = "1/20" | How big in metric terms is the unit that has a ratio of 1/20? | CREATE TABLE table_name_54 (metric_value VARCHAR, ratio VARCHAR) |
SELECT score FROM table_name_65 WHERE player = "scott verplank" | What is Scott Verplank's score? | CREATE TABLE table_name_65 (score VARCHAR, player VARCHAR) |
SELECT opponent FROM table_name_50 WHERE tournament = "auckland, new zealand" | Who was the Opponent in the Auckland, New Zealand Tournament? | CREATE TABLE table_name_50 (opponent VARCHAR, tournament VARCHAR) |
SELECT COUNT(wins) FROM table_name_43 WHERE series = "formula 3 euro series" AND podiums > 2 | How many wins where there total for Series named formula 3 euro series as well as having more than 2 Podiums? | CREATE TABLE table_name_43 (wins VARCHAR, series VARCHAR, podiums VARCHAR) |
SELECT competition FROM table_name_46 WHERE venue = "rome, italy" | What was the name of the Competition in Rome, Italy? | CREATE TABLE table_name_46 (competition VARCHAR, venue 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(attendance) FROM table_25331766_3 | What is the lowest attendance? | CREATE TABLE table_25331766_3 (attendance INTEGER) |
SELECT MIN(matches) FROM table_name_26 WHERE goalkeeper = "josé bermúdez" AND goals > 18 | What is the smallest Matches with a Goalkeeper of josé bermúdez, and Goals larger than 18? | CREATE TABLE table_name_26 (matches INTEGER, goalkeeper VARCHAR, goals VARCHAR) |
SELECT COUNT(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = "T" | What is the total number of unique official languages spoken in the countries that are founded before 1930? | CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR, IsOfficial VARCHAR) |
SELECT COUNT(rebounds) FROM table_22824199_1 WHERE points = 147 | How many rebound did the person who scored 147 points have? | CREATE TABLE table_22824199_1 (rebounds VARCHAR, points VARCHAR) |
SELECT oberliga_bayern FROM table_name_24 WHERE season = "1981-82" | Which Oberliga Bayern has a Season of 1981-82? | CREATE TABLE table_name_24 (oberliga_bayern VARCHAR, season VARCHAR) |
SELECT location FROM table_12562214_1 WHERE date__to_ = "8 October 1922" | what is the location for the date (to) 8 october 1922? | CREATE TABLE table_12562214_1 (location VARCHAR, date__to_ VARCHAR) |
SELECT date FROM table_name_16 WHERE score = "130-100" | What was the date with a resulted score of 130-100? | CREATE TABLE table_name_16 (date VARCHAR, score VARCHAR) |
SELECT COUNT(february) FROM table_name_44 WHERE score = "5–2" AND points = 70 | How much February has a Score of 5–2, and Points of 70? | CREATE TABLE table_name_44 (february VARCHAR, score VARCHAR, points VARCHAR) |
SELECT laps FROM table_name_98 WHERE driver = "olivier panis" | Which lap number had Olivier Panis as a driver? | CREATE TABLE table_name_98 (laps VARCHAR, driver VARCHAR) |
SELECT tournament_location FROM table_12243817_1 WHERE winners_share__$_ = 7000 | What is the location of the tournament that the share of winning is 7000? | CREATE TABLE table_12243817_1 (tournament_location VARCHAR, winners_share__$_ VARCHAR) |
SELECT opposing_team FROM table_name_7 WHERE against = 20 | What opposing team has 20 against? | CREATE TABLE table_name_7 (opposing_team VARCHAR, against VARCHAR) |
SELECT passenger FROM table_name_55 WHERE season = "2009" AND races = 17 | Who is the passenger in 2009 season with 17 races? | CREATE TABLE table_name_55 (passenger VARCHAR, season VARCHAR, races VARCHAR) |
SELECT country FROM table_name_67 WHERE player = "larry mize" | What Country does Larry Mize play for? | CREATE TABLE table_name_67 (country VARCHAR, player VARCHAR) |
SELECT drobo__2nd_ FROM table_name_17 WHERE drobo_5d = "2012-11-02" | Which Drobo (2nd) has a Drobo 5d of 2012-11-02? | CREATE TABLE table_name_17 (drobo__2nd_ VARCHAR, drobo_5d VARCHAR) |
SELECT score FROM table_name_31 WHERE round = "semifinal 1" | What was the Score of the Semifinal 1? | CREATE TABLE table_name_31 (score VARCHAR, round VARCHAR) |
SELECT SUM(round) FROM table_name_19 WHERE name = "jim duncan" AND overall > 107 | With an Overall larger than 107, in what Round was Jim Duncan picked? | CREATE TABLE table_name_19 (round INTEGER, name VARCHAR, overall VARCHAR) |
SELECT grid FROM table_name_6 WHERE driver = "johnny herbert" | What is the grid for johnny herbert? | CREATE TABLE table_name_6 (grid VARCHAR, driver VARCHAR) |
SELECT sport FROM table_name_70 WHERE date = "march 17, 2006" AND winning_team = "iowa state" | WHich port is on march 17, 2006 and has a Winning team of iowa state? | CREATE TABLE table_name_70 (sport VARCHAR, date VARCHAR, winning_team VARCHAR) |
SELECT MAX(burglary) FROM table_26060884_2 WHERE property_crimes = 168630 | What was the maximum burglary statistics if the property crimes is 168630? | CREATE TABLE table_26060884_2 (burglary INTEGER, property_crimes VARCHAR) |
SELECT time_retired FROM table_name_89 WHERE grid < 10 AND laps > 20 AND constructor = "talbot-lago - talbot" | What is the Time/Retired for a Grid smaller than 10, a Laps larger than 20, and a Constructor of talbot-lago - talbot? | CREATE TABLE table_name_89 (time_retired VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR) |
SELECT platforms FROM table_19495707_1 WHERE application = "CityEngine" | Name the platforms for cityengine | CREATE TABLE table_19495707_1 (platforms VARCHAR, application VARCHAR) |
SELECT drawn FROM table_15352382_1 WHERE team = "Portuguesa Santista" | How many Drawn does the team Portuguesa Santista have? | CREATE TABLE table_15352382_1 (drawn VARCHAR, team VARCHAR) |
SELECT batting_style FROM table_name_77 WHERE date_of_birth = "14 november 1971" | What is the batting style of the player born on 14 November 1971? | CREATE TABLE table_name_77 (batting_style VARCHAR, date_of_birth VARCHAR) |
SELECT COUNT(nationality) FROM table_1013129_3 WHERE nhl_team = "New Jersey Devils" | How many different nationalities do the players of New Jersey Devils come from? | CREATE TABLE table_1013129_3 (nationality VARCHAR, nhl_team VARCHAR) |
SELECT opponents FROM table_name_50 WHERE h___a = "h" AND referee = "beguiristain iceta" AND kick_off = "1993-04-18 17:00" | Who is the opponent of the match with a H/A of h, Beguiristain Iceta as the referee, and a kick off at 1993-04-18 17:00? | CREATE TABLE table_name_50 (opponents VARCHAR, kick_off VARCHAR, h___a VARCHAR, referee VARCHAR) |
SELECT MIN(grid) FROM table_name_10 WHERE laps = 21 AND manufacturer = "yamaha" AND time = "+18.802" | What is the lowest Grid, when Laps is 21, when Manufacturer is Yamaha, and when Time is +18.802? | CREATE TABLE table_name_10 (grid INTEGER, time VARCHAR, laps VARCHAR, manufacturer VARCHAR) |
SELECT stadium FROM table_name_91 WHERE opposition = "79,122" | Which stadium had the opposition of 79,122? | CREATE TABLE table_name_91 (stadium VARCHAR, opposition VARCHAR) |
SELECT COUNT(bronze) FROM table_name_34 WHERE gold < 2 AND nation = "uganda" AND total > 2 | What is the number of Bronze for the Nation of Uganda with less than 2 Gold and Total medals? | CREATE TABLE table_name_34 (bronze VARCHAR, total VARCHAR, gold VARCHAR, nation VARCHAR) |
SELECT county FROM table_name_36 WHERE year_left = "1998" | what is the county when the year left is 1998? | CREATE TABLE table_name_36 (county VARCHAR, year_left VARCHAR) |
SELECT semi_finalists FROM table_name_1 WHERE fourth_place = "2 (1993, 2003)" | What semi-finalists has 2 (1993, 2003) as the fourth-place? | CREATE TABLE table_name_1 (semi_finalists VARCHAR, fourth_place VARCHAR) |
SELECT score FROM table_name_68 WHERE player = "tom lehman" | What was the score for Tom Lehman? | CREATE TABLE table_name_68 (score VARCHAR, player VARCHAR) |
SELECT MAX(draws) FROM table_name_24 WHERE ballarat_fl = "sebastapol" AND against < 1802 | What was the highest number of Draws scored by Sebastapol when the value for Against was less than 1802? | CREATE TABLE table_name_24 (draws INTEGER, ballarat_fl VARCHAR, against VARCHAR) |
SELECT nationality FROM table_name_96 WHERE time = "1:55.35" | What nationality has 1:55.35 as the time? | CREATE TABLE table_name_96 (nationality VARCHAR, time VARCHAR) |
SELECT period FROM table_name_13 WHERE built = "354" | In what time period were 354 built? | CREATE TABLE table_name_13 (period VARCHAR, built VARCHAR) |
SELECT rebuildjahr_e_ FROM table_name_17 WHERE class = "t2aa" | What was the Rebuildjahr(e) for the T2AA class? | CREATE TABLE table_name_17 (rebuildjahr_e_ VARCHAR, class VARCHAR) |
SELECT name FROM table_name_22 WHERE year * __est_ = "2012" | what name was on the year 2012 | CREATE TABLE table_name_22 (name VARCHAR, year VARCHAR, __est_ VARCHAR) |
SELECT bleeding_time FROM table_1099080_1 WHERE condition = "Factor XII deficiency" | What was the bleeding time for factor xii deficiency | CREATE TABLE table_1099080_1 (bleeding_time VARCHAR, condition VARCHAR) |
SELECT identity_ies_ FROM table_name_93 WHERE dvd_volume > 5 | What identities have more than 5 DVD volumes? | CREATE TABLE table_name_93 (identity_ies_ VARCHAR, dvd_volume INTEGER) |
SELECT nominee FROM table_name_65 WHERE category = "outstanding featured actor in a musical" AND result = "nominated" | What was nominee nominated for outstanding featured actor in a musical? | CREATE TABLE table_name_65 (nominee VARCHAR, category VARCHAR, result VARCHAR) |
SELECT opponent FROM table_name_63 WHERE date = "mar 10" | Which Opponent is on mar 10? | CREATE TABLE table_name_63 (opponent VARCHAR, date VARCHAR) |
SELECT opponent FROM table_name_28 WHERE date = "september 10, 1979" | Who was the opponent on september 10, 1979? | CREATE TABLE table_name_28 (opponent VARCHAR, date VARCHAR) |
SELECT expected_end_date FROM table_name_3 WHERE target_approach = "notes" | What is Expected End Date, when Target/Approach is Notes? | CREATE TABLE table_name_3 (expected_end_date VARCHAR, target_approach VARCHAR) |
SELECT episode_no FROM table_name_23 WHERE original_airdate = "february 4, 2008" | What is the episode number of the episode that originally aired on February 4, 2008? | CREATE TABLE table_name_23 (episode_no VARCHAR, original_airdate VARCHAR) |
SELECT comp_att FROM table_name_10 WHERE avg_g = "36.5" | What is the completion/attempts value for the year with an average per game of 36.5? | CREATE TABLE table_name_10 (comp_att VARCHAR, avg_g VARCHAR) |
SELECT result FROM table_name_34 WHERE opponent = "bye" | What's the result of the game against Bye? | CREATE TABLE table_name_34 (result VARCHAR, opponent VARCHAR) |
SELECT obama FROM table_name_87 WHERE undecided = "1%" | What kind of Obama has a Undecided of 1%? | CREATE TABLE table_name_87 (obama VARCHAR, undecided VARCHAR) |
SELECT COUNT(_percentage_of_all_immigrants_2007) FROM table_23619212_1 WHERE _percentage_of_all_immigrants_2005 = "1.2%" | How many different percentages of immigrants are there for the year of 2007 in the countries with 1.2% of the immigrants in the year of 2005? | CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2007 VARCHAR, _percentage_of_all_immigrants_2005 VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.