answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT COUNT(attendance) FROM table_name_29 WHERE date = "september 19, 1976" | How many people attended the game on September 19, 1976? | CREATE TABLE table_name_29 (attendance VARCHAR, date VARCHAR) |
SELECT original_broadway_performer FROM table_22460085_1 WHERE original_west_end_performer = "Sharon D. Clarke" | Who was the Broadway equivalent of Sharon D. Clarke's character? | CREATE TABLE table_22460085_1 (original_broadway_performer VARCHAR, original_west_end_performer VARCHAR) |
SELECT capital FROM table_14532_1 WHERE region = "Umbria" | What is the capital of Umbria? | CREATE TABLE table_14532_1 (capital VARCHAR, region VARCHAR) |
SELECT COUNT(year) FROM table_23015396_1 WHERE date = "June 30" | Name the number of year for june 30 | CREATE TABLE table_23015396_1 (year VARCHAR, date VARCHAR) |
SELECT AVG(total) FROM table_name_26 WHERE bronze = 4 AND silver > 2 AND gold < 7 | What is the average total number of medals when there were 4 bronze, more than 2 silver, and less than 7 gold medals? | CREATE TABLE table_name_26 (total INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR) |
SELECT place FROM table_name_41 WHERE player = "chi-chi rodríguez" | What is the place of player chi-chi rodríguez? | CREATE TABLE table_name_41 (place VARCHAR, player VARCHAR) |
SELECT directed_by FROM table_name_77 WHERE season > 8 AND episode = "xvi" | Who was the director of the episode with a season after 8 and an episode of XVI? | CREATE TABLE table_name_77 (directed_by VARCHAR, season VARCHAR, episode VARCHAR) |
SELECT season FROM table_name_91 WHERE apps = 7 | What season did he have 7 appearances? | CREATE TABLE table_name_91 (season VARCHAR, apps VARCHAR) |
SELECT AVG(episodes) FROM table_name_65 WHERE last_airdate = "april 29, 1986" | How many episodes were in the season that ended on April 29, 1986? | CREATE TABLE table_name_65 (episodes INTEGER, last_airdate VARCHAR) |
SELECT college_junior_club_team FROM table_2850912_5 WHERE position = "Right Wing" AND nhl_team = "Chicago Black Hawks" | What college/junior/club team played right wing position with NHL team Chicago Black Hawks? | CREATE TABLE table_2850912_5 (college_junior_club_team VARCHAR, position VARCHAR, nhl_team VARCHAR) |
SELECT position FROM table_name_7 WHERE pick = "10th overall" | Which position ranked 10th overall? | CREATE TABLE table_name_7 (position VARCHAR, pick VARCHAR) |
SELECT quarterfinalists FROM table_21584646_10 WHERE runner_up = "Mike De Palmer Gary Donnelly" | Who were the quarterfinalists for the runner-ups of mike de palmer gary donnelly? | CREATE TABLE table_21584646_10 (quarterfinalists VARCHAR, runner_up VARCHAR) |
SELECT attendance FROM table_name_49 WHERE date = "september 11, 1983" | What was the Attendance on September 11, 1983? | CREATE TABLE table_name_49 (attendance VARCHAR, date VARCHAR) |
SELECT visitor FROM table_name_77 WHERE home = "chicago black hawks" AND date = "march 20" | What is the name of the visitor team who played home team Chicago Black Hawks on March 20? | CREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR, date VARCHAR) |
SELECT MIN(year) FROM table_name_93 WHERE playoffs = "did not qualify" | Which year is the lowest one when the playoffs did not qualify? | CREATE TABLE table_name_93 (year INTEGER, playoffs VARCHAR) |
SELECT release_date FROM table_name_81 WHERE title = "sniffles and the bookworm" | When was sniffles and the bookworm released? | CREATE TABLE table_name_81 (release_date VARCHAR, title VARCHAR) |
SELECT SUM(runners_up) FROM table_name_2 WHERE champions > 5 | What is the sum of Runners-Up, when Champions is greater than 5? | CREATE TABLE table_name_2 (runners_up INTEGER, champions INTEGER) |
SELECT kickoff_[a_] FROM table_name_66 WHERE record = "1-7" | When was the kickoff during a game with a record of 1-7? | CREATE TABLE table_name_66 (kickoff_ VARCHAR, a_ VARCHAR, record VARCHAR) |
SELECT hometown FROM table_19810459_1 WHERE background = "Financial consultant" | What is the hometown of the contestant whose background is as a financial consultant? | CREATE TABLE table_19810459_1 (hometown VARCHAR, background VARCHAR) |
SELECT first FROM table_name_62 WHERE position = "c" AND bats = "l" | Which First has a Position of c, and Bats of l? | CREATE TABLE table_name_62 (first VARCHAR, position VARCHAR, bats VARCHAR) |
SELECT COUNT(elevation_ft) FROM table_27435931_1 WHERE country = "Tanzania" | what is elevation of tanzania? | CREATE TABLE table_27435931_1 (elevation_ft VARCHAR, country VARCHAR) |
SELECT COUNT(candidates) FROM table_1342149_13 WHERE incumbent = "Noah M. Mason" | What are the candidates for noah m. mason? | CREATE TABLE table_1342149_13 (candidates VARCHAR, incumbent VARCHAR) |
SELECT driver FROM table_name_21 WHERE tyre = "p" AND entrant = "officine alfieri maserati" | Who was the driver of the Officine Alfieri Maserati with a Tyre of P? | CREATE TABLE table_name_21 (driver VARCHAR, tyre VARCHAR, entrant VARCHAR) |
SELECT mid_atlantic_south__washington, _dc_ FROM table_16105186_2 WHERE alaska___juneau__ = "90 g/mi (56 g/km)" AND california__san_francisco_ = "110 g/mi (68 g/km)" | What was the emission rating in Mid-Atlantic South for the vehicle that was rated 90 g/mi (56 g/km) in Alaska and 110 g/mi (68 g/km) in California? | CREATE TABLE table_16105186_2 (mid_atlantic_south__washington VARCHAR, _dc_ VARCHAR, alaska___juneau__ VARCHAR, california__san_francisco_ VARCHAR) |
SELECT date FROM table_name_36 WHERE crowd > 35 OFFSET 151 | When was the attendance at a venue bigger than 35,151? | CREATE TABLE table_name_36 (date VARCHAR, crowd INTEGER) |
SELECT specifically_stains FROM table_13570_1 WHERE cytoplasm = "Pink" | Pink cytoplasm is seen in a test that specifically stains what? | CREATE TABLE table_13570_1 (specifically_stains VARCHAR, cytoplasm VARCHAR) |
SELECT COUNT(affiliation) FROM table_16383772_1 WHERE enrollment = 14898 | Name the total number of affiliation for enrollment being 14898 | CREATE TABLE table_16383772_1 (affiliation VARCHAR, enrollment VARCHAR) |
SELECT AVG(HS) FROM Player | What is the average training hours of all players? | CREATE TABLE Player (HS INTEGER) |
SELECT years FROM table_name_51 WHERE playoffs = 115 | what is the years when playoffs is 115? | CREATE TABLE table_name_51 (years VARCHAR, playoffs VARCHAR) |
SELECT outcome FROM table_name_61 WHERE score_in_the_final = "1–6, 6–4, 7–5" | Which Outcome has a Score in the final of 1–6, 6–4, 7–5? | CREATE TABLE table_name_61 (outcome VARCHAR, score_in_the_final VARCHAR) |
SELECT record FROM table_name_39 WHERE opponent = "toronto huskies" | What is the record of the game with the toronto huskies as the opponent? | CREATE TABLE table_name_39 (record VARCHAR, opponent VARCHAR) |
SELECT venue FROM table_name_7 WHERE event = "4x400 m relay" AND competition = "asian championships" | what is the venue when the event is 4x400 m relay and the competition is asian championships? | CREATE TABLE table_name_7 (venue VARCHAR, event VARCHAR, competition VARCHAR) |
SELECT manager FROM table_name_7 WHERE team = "sheffield wednesday" | Which manager has sheffield wednesday as the team? | CREATE TABLE table_name_7 (manager VARCHAR, team VARCHAR) |
SELECT COUNT(target) FROM table_1661124_1 WHERE approval_date = 1997 | How many targets are there with an approval date of 1997? | CREATE TABLE table_1661124_1 (target VARCHAR, approval_date VARCHAR) |
SELECT former_school FROM table_25177625_1 WHERE hometown = "East Brunswick, NJ" | What were the former schools of the player from East Brunswick, NJ? | CREATE TABLE table_25177625_1 (former_school VARCHAR, hometown VARCHAR) |
SELECT MIN(crowd) FROM table_name_72 WHERE away_team = "hawthorn" | What was the crowd when the away team was hawthorn? | CREATE TABLE table_name_72 (crowd INTEGER, away_team VARCHAR) |
SELECT COUNT(group) FROM table_1358608_4 WHERE distance = "2020 m" | How many races were for a distance of 2020 m? | CREATE TABLE table_1358608_4 (group VARCHAR, distance VARCHAR) |
SELECT je_armstrong FROM table_1320857_1 WHERE wh_archer = "D.M. Lawson" | Who is J.E. Armstrong when W.H. Archer is D.M. Lawson? | CREATE TABLE table_1320857_1 (je_armstrong VARCHAR, wh_archer VARCHAR) |
SELECT wounded FROM table_name_24 WHERE killed = "0 off 0 men" AND unit = "artillery corps" | How many were Wounded in the Artillery Corps unit while having 0 off 0 men Killed? | CREATE TABLE table_name_24 (wounded VARCHAR, killed VARCHAR, unit VARCHAR) |
SELECT COUNT(lost) FROM table_name_21 WHERE drawn = 7 AND points_1 < 33 | What is the total number of losses for a draw of 7, and 1 points less than 33? | CREATE TABLE table_name_21 (lost VARCHAR, drawn VARCHAR, points_1 VARCHAR) |
SELECT race_winner FROM table_28925058_1 WHERE date = "August 15" | Who won the race on August 15? | CREATE TABLE table_28925058_1 (race_winner VARCHAR, date VARCHAR) |
SELECT home_city FROM table_2522473_1 WHERE home_ground = "Klepp Stadion" | What Home city has the home ground Klepp stadion? | CREATE TABLE table_2522473_1 (home_city VARCHAR, home_ground VARCHAR) |
SELECT finish FROM table_name_82 WHERE manager = "tom kotchman" AND record = "43-33" | what is the finish when the manager is tom kotchman and record is 43-33? | CREATE TABLE table_name_82 (finish VARCHAR, manager VARCHAR, record VARCHAR) |
SELECT release_date FROM table_20174050_7 WHERE title = "The Way Through the Woods" | If the title is The Way Through The Woods, what is the release date? | CREATE TABLE table_20174050_7 (release_date VARCHAR, title VARCHAR) |
SELECT AVG(week) FROM table_name_4 WHERE result = "w 17-14" | On what Week was the Result W 17-14? | CREATE TABLE table_name_4 (week INTEGER, result VARCHAR) |
SELECT date_of_appointment FROM table_18788823_5 WHERE team = "Milton Keynes Dons" | What date did the Milton Keynes Dons appoint? | CREATE TABLE table_18788823_5 (date_of_appointment VARCHAR, team VARCHAR) |
SELECT personal_name, family_name FROM Students ORDER BY family_name | List the personal names and family names of all the students in alphabetical order of family name. | CREATE TABLE Students (personal_name VARCHAR, family_name VARCHAR) |
SELECT name FROM table_name_76 WHERE ref_number > 8 AND location = "anawan street" | What is the name of the mill located on Anawan Street with a reference number larger than 8? | CREATE TABLE table_name_76 (name VARCHAR, ref_number VARCHAR, location VARCHAR) |
SELECT no_in_series FROM table_25810656_3 WHERE production_code = 204 | Name the number in series for production code being 204 | CREATE TABLE table_25810656_3 (no_in_series VARCHAR, production_code VARCHAR) |
SELECT Team FROM player ORDER BY Team | What are the teams of the players, sorted in ascending alphabetical order? | CREATE TABLE player (Team VARCHAR) |
SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2003 ORDER BY T2.faculty DESC LIMIT 1 | Which campus has the most faculties in year 2003? | CREATE TABLE faculty (campus VARCHAR, year VARCHAR, faculty VARCHAR); CREATE TABLE campuses (campus VARCHAR, id VARCHAR) |
SELECT district FROM table_1342013_5 WHERE incumbent = "Harlan Hagen" | What district does Harlan Hagen represent? | CREATE TABLE table_1342013_5 (district VARCHAR, incumbent VARCHAR) |
SELECT historical_references FROM table_name_7 WHERE run_time = "6:07" | What is the topic of the episode that runs 6:07? | CREATE TABLE table_name_7 (historical_references VARCHAR, run_time VARCHAR) |
SELECT MIN(goals_for) FROM table_name_43 WHERE goals_against = 37 AND victories < 15 | What is the lowest goal for a goal against 37 and less than 15 victories? | CREATE TABLE table_name_43 (goals_for INTEGER, goals_against VARCHAR, victories VARCHAR) |
SELECT artist_s_ FROM table_name_39 WHERE team_s_ = "seattle seahawks" | Who is the artist of the Seattle Seahawks track? | CREATE TABLE table_name_39 (artist_s_ VARCHAR, team_s_ VARCHAR) |
SELECT MIN(year) FROM table_name_1 WHERE location = "guangzhou" | What is the oldest year that the location was at Guangzhou? | CREATE TABLE table_name_1 (year INTEGER, location VARCHAR) |
SELECT MIN(game) FROM table_name_48 WHERE record = "23–6–4" | What was the earliest game with a record of 23–6–4? | CREATE TABLE table_name_48 (game INTEGER, record VARCHAR) |
SELECT report FROM table_1140078_2 WHERE race = "United States Grand Prix West" | What is the report of the united states grand prix west? | CREATE TABLE table_1140078_2 (report VARCHAR, race VARCHAR) |
SELECT position FROM table_name_97 WHERE round > 6 AND player = "neil pilon" | Which Position has a Round larger than 6, and a Player of neil pilon? | CREATE TABLE table_name_97 (position VARCHAR, round VARCHAR, player VARCHAR) |
SELECT country FROM table_name_32 WHERE to_par = "+2" AND player = "lee trevino" | What is the country of player lee trevino, who has a to par of +2? | CREATE TABLE table_name_32 (country VARCHAR, to_par VARCHAR, player VARCHAR) |
SELECT record FROM table_name_96 WHERE opponent = "chris mounce" | What was the record of the match against Chris Mounce? | CREATE TABLE table_name_96 (record VARCHAR, opponent VARCHAR) |
SELECT driver FROM table_name_14 WHERE laps < 18 AND grid < 16 | What driver has less than 18 laps and a grid number under 16? | CREATE TABLE table_name_14 (driver VARCHAR, laps VARCHAR, grid VARCHAR) |
SELECT memory FROM table_16729930_17 WHERE part_number_s_ = "CT80618003201AA" | Name the memory for part number of ct80618003201aa | CREATE TABLE table_16729930_17 (memory VARCHAR, part_number_s_ VARCHAR) |
SELECT position FROM table_name_39 WHERE total_apps = "5" | Which position has 5 total apps? | CREATE TABLE table_name_39 (position VARCHAR, total_apps VARCHAR) |
SELECT MIN(played) FROM table_name_92 WHERE draw > 7 | What is the lowest number of games played where they tied more than 7 of them? | CREATE TABLE table_name_92 (played INTEGER, draw INTEGER) |
SELECT week_4_sept_21 FROM table_name_30 WHERE week_10_nov_2 = "michigan state (8-2)" | What is the week 4 opponent for the year with a week 10 opponent of Michigan State (8-2)? | CREATE TABLE table_name_30 (week_4_sept_21 VARCHAR, week_10_nov_2 VARCHAR) |
SELECT name FROM table_name_24 WHERE location = "uk" AND release_date = "december 1966" | What is the name in the UK, with a release date of December 1966? | CREATE TABLE table_name_24 (name VARCHAR, location VARCHAR, release_date VARCHAR) |
SELECT away_team FROM table_name_65 WHERE ground = "gabba" | Which Away team has a Ground of gabba? | CREATE TABLE table_name_65 (away_team VARCHAR, ground VARCHAR) |
SELECT crowd FROM table_name_29 WHERE away_team = "footscray" | How many people attended the game where Footscray was away? | CREATE TABLE table_name_29 (crowd VARCHAR, away_team VARCHAR) |
SELECT race FROM table_name_52 WHERE date_of_execution = "december 27, 1827" | What was the race of the person executed on December 27, 1827? | CREATE TABLE table_name_52 (race VARCHAR, date_of_execution VARCHAR) |
SELECT course_id FROM course EXCEPT SELECT course_id FROM prereq | Find the id of the courses that do not have any prerequisite? | CREATE TABLE prereq (course_id VARCHAR); CREATE TABLE course (course_id VARCHAR) |
SELECT bbi FROM table_28846752_9 WHERE economy = "5.68" | What is the BBI whent the economy is 5.68? | CREATE TABLE table_28846752_9 (bbi VARCHAR, economy VARCHAR) |
SELECT COUNT(*) FROM player WHERE birth_country = 'USA' AND bats = 'R' | How many players born in USA are right-handed batters? That is, have the batter value 'R'. | CREATE TABLE player (birth_country VARCHAR, bats VARCHAR) |
SELECT hdtv FROM table_name_50 WHERE television_service = "daystar television network" | Does daystar television network provide HDTV? | CREATE TABLE table_name_50 (hdtv VARCHAR, television_service VARCHAR) |
SELECT name_in_polish FROM table_name_36 WHERE seat = "radom" | Tell me the name in polish for radom seat | CREATE TABLE table_name_36 (name_in_polish VARCHAR, seat VARCHAR) |
SELECT match_report FROM table_name_23 WHERE date = "28 february 2009" | What is the match report from the game played on 28 february 2009? | CREATE TABLE table_name_23 (match_report VARCHAR, date VARCHAR) |
SELECT origin FROM table_name_82 WHERE owner = "hunan broadcasting system (hbs)" | What is the origin for the item with an owner of Hunan Broadcasting System (HBS)? | CREATE TABLE table_name_82 (origin VARCHAR, owner VARCHAR) |
SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Der Kapitan" AND T1.StagePosition = "back" | Who is performing in the back stage position for the song "Der Kapitan"? Show the first name and last name. | CREATE TABLE Band (firstname VARCHAR, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR, StagePosition VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR) |
SELECT home_team FROM table_name_42 WHERE match_no = "23" | Who is the Home Team for Match No. 23? | CREATE TABLE table_name_42 (home_team VARCHAR, match_no VARCHAR) |
SELECT COUNT(*) FROM COURSE | How many courses are there in total? | CREATE TABLE COURSE (Id VARCHAR) |
SELECT venue FROM table_name_6 WHERE date = "december 7, 1998" | what is the venue when the date is december 7, 1998? | CREATE TABLE table_name_6 (venue VARCHAR, date VARCHAR) |
SELECT country FROM table_name_98 WHERE finish = "t4" | Which country has a finish of t4? | CREATE TABLE table_name_98 (country VARCHAR, finish VARCHAR) |
SELECT score_qualifying FROM table_name_94 WHERE apparatus = "hoop" | Which Qualifying score had hoop as an apparatus? | CREATE TABLE table_name_94 (score_qualifying VARCHAR, apparatus VARCHAR) |
SELECT operator FROM table_28035004_1 WHERE bodybuilder = "Willowbrook" | Who is the operator when willowbrook was the bodybuilder? | CREATE TABLE table_28035004_1 (operator VARCHAR, bodybuilder VARCHAR) |
SELECT actor FROM table_name_43 WHERE year = 1966 | Which actor won in 1966? | CREATE TABLE table_name_43 (actor VARCHAR, year VARCHAR) |
SELECT employee__real_name_ FROM table_26397277_3 WHERE brand__from_ = "Raw" AND role_s_ = "Superstar" | Name the employee real name for raw and superstar | CREATE TABLE table_26397277_3 (employee__real_name_ VARCHAR, brand__from_ VARCHAR, role_s_ VARCHAR) |
SELECT AVG(december) FROM table_name_49 WHERE points = 38 AND record = "18–6–2" | Which December has Points of 38, and a Record of 18–6–2? | CREATE TABLE table_name_49 (december INTEGER, points VARCHAR, record VARCHAR) |
SELECT capacity FROM table_23214833_1 WHERE team_captain = "Vasil Vasilev" | How many people can attend games in the stadium of the team whose captain is Vasil Vasilev? | CREATE TABLE table_23214833_1 (capacity VARCHAR, team_captain VARCHAR) |
SELECT Name FROM pilot ORDER BY Age DESC | List names of all pilot in descending order of age. | CREATE TABLE pilot (Name VARCHAR, Age VARCHAR) |
SELECT first_elected FROM table_name_6 WHERE party = "labor" AND member = "jill hall" | When was Jill Hall of the Labor Party first elected? | CREATE TABLE table_name_6 (first_elected VARCHAR, party VARCHAR, member VARCHAR) |
SELECT points_for FROM table_name_30 WHERE played = "22" AND tries_against = "43" | If played is 22 and the tries against are 43, what are the points? | CREATE TABLE table_name_30 (points_for VARCHAR, played VARCHAR, tries_against VARCHAR) |
SELECT Nationality, COUNT(*) FROM journalist GROUP BY Nationality | Show the different nationalities and the number of journalists of each nationality. | CREATE TABLE journalist (Nationality VARCHAR) |
SELECT MAX(year) FROM table_name_18 WHERE winners = "hawthorn" AND season_result = "preliminary finalist" AND crowd < 27 OFFSET 407 | What's the highest year than hawthorn won with a season result of preliminary finalist and a crowd smaller than 27,407? | CREATE TABLE table_name_18 (year INTEGER, crowd VARCHAR, winners VARCHAR, season_result VARCHAR) |
SELECT venue FROM table_name_58 WHERE opponent = "linfield" | Where was the venue that Linfield was the opponent? | CREATE TABLE table_name_58 (venue VARCHAR, opponent VARCHAR) |
SELECT 2012 FROM table_name_96 WHERE 2009 = "a" AND 2010 = "2r" | What is the 2012 with A in 2009 and 2r in 2010? | CREATE TABLE table_name_96 (Id VARCHAR) |
SELECT population__percentage_of_eu FROM table_1606824_1 WHERE member_state = "Greece" | Name the population % of eu for greece | CREATE TABLE table_1606824_1 (population__percentage_of_eu VARCHAR, member_state VARCHAR) |
SELECT week_5 FROM table_name_21 WHERE week_3 = "shelly louise" | Who was the girl on week 5 that came after week 3's Shelly Louise? | CREATE TABLE table_name_21 (week_5 VARCHAR, week_3 VARCHAR) |
SELECT team FROM table_name_79 WHERE game = 39 | What team played in game 39? | CREATE TABLE table_name_79 (team VARCHAR, game VARCHAR) |
SELECT class FROM table_name_44 WHERE year > 1985 AND wins > 0 | What engine class is associated with a year after 1985 and over 0 wins? | CREATE TABLE table_name_44 (class VARCHAR, year VARCHAR, wins VARCHAR) |
SELECT away_team AS score FROM table_name_7 WHERE away_team = "hawthorn" | What is the score for Hawthorn as an away team? | CREATE TABLE table_name_7 (away_team VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.