answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT T1.address_line_1, T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id HAVING COUNT(*) >= 2
Find the addresses and author IDs of the course authors that teach at least two courses.
CREATE TABLE Courses (author_id VARCHAR); CREATE TABLE Course_Authors_and_Tutors (address_line_1 VARCHAR, author_id VARCHAR)
SELECT COUNT(county) FROM table_19681738_1 WHERE starky__percentage = "20.96%"
How many times was country considered when starky % was 20.96%
CREATE TABLE table_19681738_1 (county VARCHAR, starky__percentage VARCHAR)
SELECT player FROM table_16441561_5 WHERE position = "DB"
Which player played DB
CREATE TABLE table_16441561_5 (player VARCHAR, position VARCHAR)
SELECT competition FROM table_name_37 WHERE date = "october 15, 2008"
What is the competition on October 15, 2008?
CREATE TABLE table_name_37 (competition VARCHAR, date VARCHAR)
SELECT AVG(wins) FROM table_name_2 WHERE tournament = "totals" AND cuts_made > 42
Which Wins has a Tournament of totals, and a Cuts made larger than 42?
CREATE TABLE table_name_2 (wins INTEGER, tournament VARCHAR, cuts_made VARCHAR)
SELECT special_edition FROM table_25173505_13 WHERE english_version = "James Baskett"
what is the special edition for the english version of james baskett?
CREATE TABLE table_25173505_13 (special_edition VARCHAR, english_version VARCHAR)
SELECT year_s__of_manufacture FROM table_name_35 WHERE railway_number_s_ = "26 (ii) …63 (ii) , 188–193"
What are the year(s) of manufacture for railway number(s) 26 (ii) …63 (ii) , 188–193?
CREATE TABLE table_name_35 (year_s__of_manufacture VARCHAR, railway_number_s_ VARCHAR)
SELECT stage FROM table_name_21 WHERE winner = "jeremy hunt"
Which Stage has a Winner of jeremy hunt?
CREATE TABLE table_name_21 (stage VARCHAR, winner VARCHAR)
SELECT date FROM table_name_17 WHERE record = "46-39"
On what date was their record 46-39?
CREATE TABLE table_name_17 (date VARCHAR, record VARCHAR)
SELECT Name FROM mountain WHERE Height > 5000 OR Prominence > 1000
Show the names of mountains with height more than 5000 or prominence more than 1000.
CREATE TABLE mountain (Name VARCHAR, Height VARCHAR, Prominence VARCHAR)
SELECT directed_by FROM table_26914076_4 WHERE us_viewers__millions_ = "0.57"
Who directed the episode that had 0.57 million U.S. viewers?
CREATE TABLE table_26914076_4 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT SUM(goals_against) FROM table_name_37 WHERE games = 64 AND lost < 12 AND points > 107
How many goals against have 64 for games, a loss less than 12, with points greater than 107?
CREATE TABLE table_name_37 (goals_against INTEGER, points VARCHAR, games VARCHAR, lost VARCHAR)
SELECT COUNT(pa) FROM table_24475186_2 WHERE blank_ends = 7 AND l = 5
How many pa were blank ends 7 and 5?
CREATE TABLE table_24475186_2 (pa VARCHAR, blank_ends VARCHAR, l VARCHAR)
SELECT COUNT(lane) FROM table_name_55 WHERE nationality = "australia" AND reaction < 0.138
How many lanes does Australia have with a reaction smaller than 0.138?
CREATE TABLE table_name_55 (lane VARCHAR, nationality VARCHAR, reaction VARCHAR)
SELECT COUNT(round) FROM table_name_14 WHERE college = "nebraska" AND overall > 40
What is the sum number of round with Nebraska as the college and the overall greater than 40?
CREATE TABLE table_name_14 (round VARCHAR, college VARCHAR, overall VARCHAR)
SELECT SUM(rank) FROM table_name_36 WHERE country = "italy"
What's Italy's rank?
CREATE TABLE table_name_36 (rank INTEGER, country VARCHAR)
SELECT MAX(rank) FROM table_name_94 WHERE location = "kingston"
What was the highest rink for Kingston?
CREATE TABLE table_name_94 (rank INTEGER, location VARCHAR)
SELECT competition FROM table_name_83 WHERE date = "august 25, 2007"
Name the competition on august 25, 2007
CREATE TABLE table_name_83 (competition VARCHAR, date VARCHAR)
SELECT report FROM table_name_18 WHERE date = "november 15, 2000"
What is the Report on November 15, 2000?
CREATE TABLE table_name_18 (report VARCHAR, date VARCHAR)
SELECT country FROM table_name_97 WHERE score = 72 - 72 = 144
What country is the player with a score of 72-72=144 from?
CREATE TABLE table_name_97 (country VARCHAR, score VARCHAR)
SELECT AVG(enrollment) FROM table_name_55 WHERE team_nickname = "wolverines" AND founded > 1817
what is the average enrollment when the team nickname is wolverines and founded is after 1817?
CREATE TABLE table_name_55 (enrollment INTEGER, team_nickname VARCHAR, founded VARCHAR)
SELECT COUNT(grid) FROM table_17244483_1 WHERE driver = "Scott Dixon"
Scott Dixon had how many Grid positions?
CREATE TABLE table_17244483_1 (grid VARCHAR, driver VARCHAR)
SELECT film FROM table_name_66 WHERE award = "Β£3,386"
Name the film for award of Β£3,386
CREATE TABLE table_name_66 (film VARCHAR, award VARCHAR)
SELECT T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code = T2.Budget_Type_code WHERE T2.budget_type_Description = "Government"
Show ids for all documents with budget types described as 'Government'.
CREATE TABLE Documents_with_expenses (document_id VARCHAR, Budget_Type_code VARCHAR); CREATE TABLE Ref_Budget_Codes (Budget_Type_code VARCHAR, budget_type_Description VARCHAR)
SELECT country FROM table_name_83 WHERE date = 1991 AND birth_date = "1976-07-23"
What country was the woman from who was born 1976-07-23 and became a grandmaster in 1991?
CREATE TABLE table_name_83 (country VARCHAR, date VARCHAR, birth_date VARCHAR)
SELECT college FROM table_name_38 WHERE player = "chito victolero"
What college has Chito Victolero?
CREATE TABLE table_name_38 (college VARCHAR, player VARCHAR)
SELECT MAX(week) FROM table_name_91 WHERE attendance = 20 OFFSET 112
Which Week has an Attendance of 20,112?
CREATE TABLE table_name_91 (week INTEGER, attendance VARCHAR)
SELECT MIN(points) FROM table_name_1 WHERE december < 6 AND score = "1–1 ot" AND game < 28
Which Points have a December smaller than 6, and a Score of 1–1 ot, and a Game smaller than 28?
CREATE TABLE table_name_1 (points INTEGER, game VARCHAR, december VARCHAR, score VARCHAR)
SELECT COUNT(*) FROM Owners WHERE NOT owner_id IN (SELECT owner_id FROM Dogs)
How many owners temporarily do not have any dogs?
CREATE TABLE Dogs (owner_id VARCHAR); CREATE TABLE Owners (owner_id VARCHAR)
SELECT race_name FROM table_name_17 WHERE constructor = "ferrari" AND date = "25 april"
Tell me the race name for ferrari on 25 april
CREATE TABLE table_name_17 (race_name VARCHAR, constructor VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_74 WHERE result = "2nd" AND year = 2009
What is Tournament, when Result is 2nd, and when Year is 2009?
CREATE TABLE table_name_74 (tournament VARCHAR, result VARCHAR, year VARCHAR)
SELECT owner FROM table_name_96 WHERE frequency = "fm 101.3"
Who owns the fm 101.3 frequency?
CREATE TABLE table_name_96 (owner VARCHAR, frequency VARCHAR)
SELECT team_name FROM table_name_42 WHERE school = "hammond bishop noll"
What is the team name from Hammond Bishop Noll?
CREATE TABLE table_name_42 (team_name VARCHAR, school VARCHAR)
SELECT english_translation FROM table_name_44 WHERE articles = 24
Can you tell me the English Translation that has the Articles of 24?
CREATE TABLE table_name_44 (english_translation VARCHAR, articles VARCHAR)
SELECT attendance FROM table_name_74 WHERE home_team = "witton albion"
How many people attended the game with home team Witton Albion?
CREATE TABLE table_name_74 (attendance VARCHAR, home_team VARCHAR)
SELECT lead FROM table_name_61 WHERE skip = "pete fenson" AND second = "joe polo" AND season = "2005–06"
Who was the lead with Pete Fenson as skip and Joe Polo as second in season 2005–06?
CREATE TABLE table_name_61 (lead VARCHAR, season VARCHAR, skip VARCHAR, second VARCHAR)
SELECT AVG(games) FROM table_name_88 WHERE name = "pablo prigioni" AND assists > 14
What is the mean number of games for pablo prigioni when there are more than 14 assists?
CREATE TABLE table_name_88 (games INTEGER, name VARCHAR, assists VARCHAR)
SELECT SUM(max_speed__km_h_) FROM table_name_22 WHERE quantity_built = "8+4" AND year_built < 1971
What is the max speed of the unit with an 8+4 quantity built before 1971?
CREATE TABLE table_name_22 (max_speed__km_h_ INTEGER, quantity_built VARCHAR, year_built VARCHAR)
SELECT opponent FROM table_name_45 WHERE loss = "wells (6-2)"
Which Opponent has a lost of wells (6-2)?
CREATE TABLE table_name_45 (opponent VARCHAR, loss VARCHAR)
SELECT MAX(_number) FROM table_26561506_1 WHERE patient_portrayer = "Doug Savant"
What is the highest numbered episode with patient portrayer doug savant?
CREATE TABLE table_26561506_1 (_number INTEGER, patient_portrayer VARCHAR)
SELECT rounds FROM table_name_94 WHERE driver = "nil montserrat"
How many rounds did Nil Montserrat drive in?
CREATE TABLE table_name_94 (rounds VARCHAR, driver VARCHAR)
SELECT hub_base_class FROM table_1153898_1 WHERE comparisons = "Wireless Combo keyboard and mouse support"
Is wireless combo keyboard and mouse support part of the hub base class?
CREATE TABLE table_1153898_1 (hub_base_class VARCHAR, comparisons VARCHAR)
SELECT party FROM table_1341663_6 WHERE district = "California 30"
What party was the winning one in the elections in the California 30 district?
CREATE TABLE table_1341663_6 (party VARCHAR, district VARCHAR)
SELECT rank FROM table_name_38 WHERE silver = 1 AND gold > 1
Which rank has 1 silver medal and more than 1 gold medal?
CREATE TABLE table_name_38 (rank VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT language FROM table_name_11 WHERE category = "best actor" AND original_title = "pelle erobreren"
What language was the film Pelle Erobreren, which received the best actor nomination, in?
CREATE TABLE table_name_11 (language VARCHAR, category VARCHAR, original_title VARCHAR)
SELECT time FROM table_name_54 WHERE song_title = "burning love"
How long is the song titled burning love?
CREATE TABLE table_name_54 (time VARCHAR, song_title VARCHAR)
SELECT score FROM table_name_66 WHERE home_team = "saskatoon accelerators" AND date = "january 6, 2008"
What was Saskatoon Accelerators score on January 6, 2008?
CREATE TABLE table_name_66 (score VARCHAR, home_team VARCHAR, date VARCHAR)
SELECT score FROM table_name_72 WHERE money___$__ = "112,500" AND player = "darren clarke"
What is the score of player darren clarke, who has $112,500?
CREATE TABLE table_name_72 (score VARCHAR, money___$__ VARCHAR, player VARCHAR)
SELECT MIN(wickets) FROM table_27922491_8
What is the least amount of wickets?
CREATE TABLE table_27922491_8 (wickets INTEGER)
SELECT MAX(area__msr_) FROM table_name_70 WHERE area__sqdeg_ < 291.045 AND family = "per" AND rank > 78
What is the largest Area (msr) that has an Area less than 291.045, is part of the Per family, and has a rank higher than 78?
CREATE TABLE table_name_70 (area__msr_ INTEGER, rank VARCHAR, area__sqdeg_ VARCHAR, family VARCHAR)
SELECT team FROM table_name_12 WHERE driver = "colin moore"
Which team does Colin Moore drive for?
CREATE TABLE table_name_12 (team VARCHAR, driver VARCHAR)
SELECT on_air_id FROM table_name_87 WHERE frequency = "100.1"
Frequency of 100.1 has what on-air id?
CREATE TABLE table_name_87 (on_air_id VARCHAR, frequency VARCHAR)
SELECT AVG(pick) FROM table_name_97 WHERE school_club_team = "pennsylvania"
What is the average pick number of Pennsylvania?
CREATE TABLE table_name_97 (pick INTEGER, school_club_team VARCHAR)
SELECT date FROM table_name_71 WHERE record = "38-22"
What date was the record 38-22?
CREATE TABLE table_name_71 (date VARCHAR, record VARCHAR)
SELECT theme FROM table_15778392_1 WHERE week__number = "Top 8"
WHERE THE WEEK NUMBER WAS TOP 8, WHAT WAS THE THEME?
CREATE TABLE table_15778392_1 (theme VARCHAR, week__number VARCHAR)
SELECT torque__nm__rpm FROM table_1212189_1 WHERE capacity = "1,753 cc"
What is the torque formula for the model/engine which has 1,753 cc capacity?
CREATE TABLE table_1212189_1 (torque__nm__rpm VARCHAR, capacity VARCHAR)
SELECT venue FROM table_name_11 WHERE away_team = "collingwood"
What venue featured collingwood as the away side?
CREATE TABLE table_name_11 (venue VARCHAR, away_team VARCHAR)
SELECT wheat_[c_] FROM table_name_20 WHERE potato_[d_] = "1.9"
What is the wheat amount when the potato amount of 1.9?
CREATE TABLE table_name_20 (wheat_ VARCHAR, c_ VARCHAR, potato_ VARCHAR, d_ VARCHAR)
SELECT general_classification FROM table_name_59 WHERE points_classification = "tony rominger" AND stage = "18"
What is the general classification at stage 18 that has a points classification of Tony Rominger?
CREATE TABLE table_name_59 (general_classification VARCHAR, points_classification VARCHAR, stage VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_25 WHERE round < 2 AND nationality = "united states"
What is the name of the team with round less than 2, and the nationality is the United States?
CREATE TABLE table_name_25 (college_junior_club_team__league_ VARCHAR, round VARCHAR, nationality VARCHAR)
SELECT time FROM table_name_95 WHERE away = "central blues"
What is Time, when Away is Central Blues?
CREATE TABLE table_name_95 (time VARCHAR, away VARCHAR)
SELECT player FROM table_name_90 WHERE score = 74 - 70 = 144 AND country = "scotland"
What player is from Scotland and has a score of 74-70=144?
CREATE TABLE table_name_90 (player VARCHAR, country VARCHAR, score VARCHAR)
SELECT title FROM table_16617025_1 WHERE us_viewers__millions_ = "17.93"
What episode titles have 17.93 million U.S. viewers?
CREATE TABLE table_16617025_1 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT chart_peak FROM table_name_46 WHERE release_date = "6/17/61" AND track > 20 AND writer_s_ = "woody harris"
On songs that have a release date of 6/17/61, a track larger than 20, and a writer of Woody Harris, what is the chart peak?
CREATE TABLE table_name_46 (chart_peak VARCHAR, writer_s_ VARCHAR, release_date VARCHAR, track VARCHAR)
SELECT date FROM table_name_63 WHERE away_team = "bristol rovers"
What date did the away team Bristol Rovers play?
CREATE TABLE table_name_63 (date VARCHAR, away_team VARCHAR)
SELECT location_attendance FROM table_22879323_9 WHERE score = "L 83–106 (OT)"
Name the location attendance for l 83–106 (ot)
CREATE TABLE table_22879323_9 (location_attendance VARCHAR, score VARCHAR)
SELECT Fname, Lname FROM Student
Show first name and last name for all students.
CREATE TABLE Student (Fname VARCHAR, Lname VARCHAR)
SELECT MAX(wins) FROM table_name_38 WHERE top_5 > 0 AND events < 4
What is the most wins associated with under 4 events with 0 top-5s?
CREATE TABLE table_name_38 (wins INTEGER, top_5 VARCHAR, events VARCHAR)
SELECT MIN(released) FROM table_name_15 WHERE pieces = 339 AND number < 7198
What was the earliest year with 339 pieces and a number smaller than 7198?
CREATE TABLE table_name_15 (released INTEGER, pieces VARCHAR, number VARCHAR)
SELECT date FROM table_23186738_9 WHERE location_attendance = "Air Canada Centre 18,736"
Name the date for air canada centre 18,736
CREATE TABLE table_23186738_9 (date VARCHAR, location_attendance VARCHAR)
SELECT venue FROM table_name_30 WHERE home_team = "new zealand breakers"
What is the home team venue for the New Zealand Breakers?
CREATE TABLE table_name_30 (venue VARCHAR, home_team VARCHAR)
SELECT goals FROM table_name_6 WHERE country = "france"
How many goals did a player from France have?
CREATE TABLE table_name_6 (goals VARCHAR, country VARCHAR)
SELECT COUNT(production_code__number) FROM table_2342078_6 WHERE episode__number = 109
Name the production code # for episode 109
CREATE TABLE table_2342078_6 (production_code__number VARCHAR, episode__number VARCHAR)
SELECT name FROM table_20095300_1 WHERE number = 25
What horse has the number 25?
CREATE TABLE table_20095300_1 (name VARCHAR, number VARCHAR)
SELECT MIN(losses) FROM table_name_38 WHERE scored > 13 AND draws > 7
What are the lowest losses with more than 13 scored, and more than 7 draws?
CREATE TABLE table_name_38 (losses INTEGER, scored VARCHAR, draws VARCHAR)
SELECT lost FROM table_name_78 WHERE tries_for = "75"
Which Lost has a Tries for of 75?
CREATE TABLE table_name_78 (lost VARCHAR, tries_for VARCHAR)
SELECT record FROM table_name_84 WHERE loss = "hargan (14–13)"
What is the record for the game when the loss was hargan (14–13)?
CREATE TABLE table_name_84 (record VARCHAR, loss VARCHAR)
SELECT 1 AS st_leg FROM table_name_45 WHERE home__2nd_leg_ = "instituto"
What is the 1st leg for Instituto?
CREATE TABLE table_name_45 (home__2nd_leg_ VARCHAR)
SELECT score FROM table_name_52 WHERE home = "quebec nordiques" AND visitor = "vancouver blazers" AND date = "february 28"
Which Score has a Home of quebec nordiques, and a Visitor of vancouver blazers on february 28?
CREATE TABLE table_name_52 (score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT written_by FROM table_28466323_2 WHERE production_code = "2J5568"
Who wrote the episode with production code 2j5568?
CREATE TABLE table_28466323_2 (written_by VARCHAR, production_code VARCHAR)
SELECT MAX(first_elected) FROM table_1341690_5 WHERE party = "Republican"
What republican candidate was first elected most recently?
CREATE TABLE table_1341690_5 (first_elected INTEGER, party VARCHAR)
SELECT winning_driver FROM table_name_93 WHERE year = "1956"
Who was the winning driver in 1956?
CREATE TABLE table_name_93 (winning_driver VARCHAR, year VARCHAR)
SELECT high_rebounds FROM table_23285805_6 WHERE record = "15-27"
Who had the most rebounds when the team record was 15-27?
CREATE TABLE table_23285805_6 (high_rebounds VARCHAR, record VARCHAR)
SELECT home_team FROM table_name_19 WHERE venue = "mcg"
Who is the home team that played at MCG?
CREATE TABLE table_name_19 (home_team VARCHAR, venue VARCHAR)
SELECT date FROM table_name_42 WHERE opponents = "chelsea" AND league_position = "14th"
What is the date of the game against Chelsea when the league position is 14th?
CREATE TABLE table_name_42 (date VARCHAR, opponents VARCHAR, league_position VARCHAR)
SELECT player FROM table_25730460_2 WHERE touchdowns = 1
Name the player for 1 touchdowns
CREATE TABLE table_25730460_2 (player VARCHAR, touchdowns VARCHAR)
SELECT date FROM table_name_99 WHERE partner = "corrado barazzutti"
What date shows corrado barazzutti's partner?
CREATE TABLE table_name_99 (date VARCHAR, partner VARCHAR)
SELECT COUNT(game) FROM table_23211041_5 WHERE team = "Houston"
How many games were played against houston?
CREATE TABLE table_23211041_5 (game VARCHAR, team VARCHAR)
SELECT constructor FROM table_name_34 WHERE race_name = "vii race of champions"
What is the constructor for the VII Race of Champions?
CREATE TABLE table_name_34 (constructor VARCHAR, race_name VARCHAR)
SELECT label FROM table_name_93 WHERE region = "spain"
What label is from the Region of Spain?
CREATE TABLE table_name_93 (label VARCHAR, region VARCHAR)
SELECT driver FROM table_name_99 WHERE points = "50+3"
What Driver had 50+3 Points?
CREATE TABLE table_name_99 (driver VARCHAR, points VARCHAR)
SELECT position FROM table_name_71 WHERE school = "petal high school"
Which position has a School of petal high school?
CREATE TABLE table_name_71 (position VARCHAR, school VARCHAR)
SELECT reverse FROM table_name_33 WHERE color = "green"
What reverse has a color of green?
CREATE TABLE table_name_33 (reverse VARCHAR, color VARCHAR)
SELECT competition FROM table_name_54 WHERE date = "14 june 2008"
Tell me the competition that happened on 14 june 2008
CREATE TABLE table_name_54 (competition VARCHAR, date VARCHAR)
SELECT MIN(year) FROM table_name_12 WHERE team = "norton" AND wins < 0
When is the earliest year associated with team norton and 0 wins?
CREATE TABLE table_name_12 (year INTEGER, team VARCHAR, wins VARCHAR)
SELECT SUM(goals_conceded) FROM table_name_60 WHERE lost > 7 AND points < 26
Name the sum of goals conceded when lost is more than 7 and points less than 26
CREATE TABLE table_name_60 (goals_conceded INTEGER, lost VARCHAR, points VARCHAR)
SELECT tie_no FROM table_name_5 WHERE attendance = "2 january 1999" AND home_team = "plymouth argyle"
For the attendance of 2 january 1999 with a home team of plymouth argyle what is the tie no. ?
CREATE TABLE table_name_5 (tie_no VARCHAR, attendance VARCHAR, home_team VARCHAR)
SELECT crowd FROM table_name_9 WHERE venue = "glenferrie oval"
How large of a crowd can the Glenferrie oval hold?
CREATE TABLE table_name_9 (crowd VARCHAR, venue VARCHAR)
SELECT opponent FROM table_name_37 WHERE week > 4 AND date = "october 15, 2000"
Who was the opponent in the game played after Week 4 on October 15, 2000?
CREATE TABLE table_name_37 (opponent VARCHAR, week VARCHAR, date VARCHAR)
SELECT date FROM table_name_58 WHERE score = "106–112"
Which Date has a Score of 106–112?
CREATE TABLE table_name_58 (date VARCHAR, score VARCHAR)