answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT tuesday_tiw__tyr FROM table_name_61 WHERE sunday_sunna_sól = "sondag"
Which Tuesday Tiw/Tyr has a Sunday Sunna/Sol of sondag?
CREATE TABLE table_name_61 (tuesday_tiw__tyr VARCHAR, sunday_sunna_sól VARCHAR)
SELECT representative FROM table_name_32 WHERE presentation_of_credentials = "february 23, 1854"
Who is the representative with a presentation of credentials date on February 23, 1854?
CREATE TABLE table_name_32 (representative VARCHAR, presentation_of_credentials VARCHAR)
SELECT quantity_made FROM table_name_65 WHERE quantity_preserved = "4-6-0 — ooooo — ten-wheeler"
What is the quantity made number for the quantity preserved 4-6-0 — ooooo — ten-wheeler?
CREATE TABLE table_name_65 (quantity_made VARCHAR, quantity_preserved VARCHAR)
SELECT directed_by FROM table_27988559_1 WHERE no_in_season = 2
Who directed episode 2 of the season?
CREATE TABLE table_27988559_1 (directed_by VARCHAR, no_in_season VARCHAR)
SELECT opponent FROM table_name_71 WHERE date = "october 31, 1993"
Who was the Opponent on October 31, 1993?
CREATE TABLE table_name_71 (opponent VARCHAR, date VARCHAR)
SELECT foreign_players__max_2_ FROM table_19526911_1 WHERE town = "Moscow"
Who are the foreign players on team/s that play in Moscow?
CREATE TABLE table_19526911_1 (foreign_players__max_2_ VARCHAR, town VARCHAR)
SELECT MIN(series__number) FROM table_20704243_3 WHERE directed_by = "Mark Roskin"
What series was directed by Mark Roskin?
CREATE TABLE table_20704243_3 (series__number INTEGER, directed_by VARCHAR)
SELECT MAX(round) FROM table_name_36 WHERE time = "5:00" AND opponent = "sergio vinagre"
What was the round that Sergio Vinagre had a time of 5:00?
CREATE TABLE table_name_36 (round INTEGER, time VARCHAR, opponent VARCHAR)
SELECT tujunga FROM table_name_33 WHERE la_crescenta__montrose = "28%"
What is the percentage of Tukunga when La Crescenta-Montrose is 28%?
CREATE TABLE table_name_33 (tujunga VARCHAR, la_crescenta__montrose VARCHAR)
SELECT location FROM table_name_21 WHERE year < 1998 AND international_captain = "david graham"
what is the location when the year is less than 1998 and the international captain is david graham?
CREATE TABLE table_name_21 (location VARCHAR, year VARCHAR, international_captain VARCHAR)
SELECT time_retired FROM table_name_73 WHERE laps = 86 AND team = "hvm racing"
What Time/Retired has a Laps of 86 and the Team of HVM Racing?
CREATE TABLE table_name_73 (time_retired VARCHAR, laps VARCHAR, team VARCHAR)
SELECT MAX(total) FROM table_name_31 WHERE rank = "6" AND gold < 1
What is the largest total when the rank is 6 and there's less than 1 gold?
CREATE TABLE table_name_31 (total INTEGER, rank VARCHAR, gold VARCHAR)
SELECT date FROM table_name_43 WHERE surface = "clay" AND opponent = "irina falconi"
What was the date of the tournament with a clay surface and an opponent of Irina Falconi?
CREATE TABLE table_name_43 (date VARCHAR, surface VARCHAR, opponent VARCHAR)
SELECT points_for FROM table_name_86 WHERE club = "bridgend athletic rfc"
How many points for did Bridgend Athletic RFC score?
CREATE TABLE table_name_86 (points_for VARCHAR, club VARCHAR)
SELECT score FROM table_21256068_3 WHERE opponent = "Crusaders"
what's the score against crusaders
CREATE TABLE table_21256068_3 (score VARCHAR, opponent VARCHAR)
SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = "United Airlines"
What are flight numbers of Airline "United Airlines"?
CREATE TABLE AIRLINES (uid VARCHAR, Airline VARCHAR); CREATE TABLE FLIGHTS (FlightNo VARCHAR, Airline VARCHAR)
SELECT fourth_district FROM table_15442974_1 WHERE first_district = "Beverly Bodem"
Name the fourth district for beverly bodem
CREATE TABLE table_15442974_1 (fourth_district VARCHAR, first_district VARCHAR)
SELECT date, theme, sales FROM journal EXCEPT SELECT T1.date, T1.theme, T1.sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID
List the date, theme and sales of the journal which did not have any of the listed editors serving on committee.
CREATE TABLE journal_committee (journal_ID VARCHAR); CREATE TABLE journal (date VARCHAR, theme VARCHAR, sales VARCHAR); CREATE TABLE journal (date VARCHAR, theme VARCHAR, sales VARCHAR, journal_ID VARCHAR)
SELECT mixed_doubles FROM table_27753492_2 WHERE tour = "Korea Super Series"
Who is the mixed doubled on the tour korea super series?
CREATE TABLE table_27753492_2 (mixed_doubles VARCHAR, tour VARCHAR)
SELECT MIN(overall) FROM table_name_44 WHERE college = "baylor"
What is the number that is the lowest overall for the College of Baylor?
CREATE TABLE table_name_44 (overall INTEGER, college VARCHAR)
SELECT team_s_ FROM table_2649597_1 WHERE start = "39.1"
What teams started at 39.1?
CREATE TABLE table_2649597_1 (team_s_ VARCHAR, start VARCHAR)
SELECT name FROM table_name_40 WHERE spouse = "charles ii"
Which member of house of Habsburg-Lorraine had the spouse Charles II?
CREATE TABLE table_name_40 (name VARCHAR, spouse VARCHAR)
SELECT MAX(year) AS Inducted FROM table_name_28 WHERE year < 1965
Which Year Inducted is the highest one that has a Year smaller than 1965?
CREATE TABLE table_name_28 (year INTEGER)
SELECT cell_type FROM table_name_15 WHERE conduction_speed__m_s_ = "35"
Which cell type has a conduction speed of 35?
CREATE TABLE table_name_15 (cell_type VARCHAR, conduction_speed__m_s_ VARCHAR)
SELECT album FROM table_name_56 WHERE release_info = "heavenly (hvn95)"
Which album had a release of heavenly (hvn95)?
CREATE TABLE table_name_56 (album VARCHAR, release_info VARCHAR)
SELECT year FROM table_name_57 WHERE genre = "adventure"
What's year was the genre Adventure?
CREATE TABLE table_name_57 (year VARCHAR, genre VARCHAR)
SELECT COUNT(written_by) FROM table_28037619_2 WHERE us_viewers__million_ = "7.26"
How many people wrote the episode that had 7.26 million u.s. viewers?
CREATE TABLE table_28037619_2 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT COUNT(capacity) FROM table_name_93 WHERE leagues = "b national - basketball"
What is the capacity for b national - basketball?
CREATE TABLE table_name_93 (capacity VARCHAR, leagues VARCHAR)
SELECT home_team FROM table_name_39 WHERE away_team = "geelong"
Which home team played against Geelong?
CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR)
SELECT first_win FROM table_12707313_2 WHERE pos = 6
What was the first win for pos 6?
CREATE TABLE table_12707313_2 (first_win VARCHAR, pos VARCHAR)
SELECT MAX(2012) FROM table_name_69 WHERE 2011 = 81 OFFSET 094
What is the highest 2012 immigration for a country with an immigration of 81,094 in 2011?
CREATE TABLE table_name_69 (Id VARCHAR)
SELECT contestant FROM table_18626383_2 WHERE hometown = "Santiago del Estero"
When santiago del estero is the hometown who is the contestant?
CREATE TABLE table_18626383_2 (contestant VARCHAR, hometown VARCHAR)
SELECT no_6 FROM table_name_78 WHERE no_2 = "emma" AND no_3 = "sophia"
What was the No. 6 name when Emma was No. 2 and Sophia was No. 3?
CREATE TABLE table_name_78 (no_6 VARCHAR, no_2 VARCHAR, no_3 VARCHAR)
SELECT MIN(col__m_) FROM table_name_88 WHERE elevation__m_ < 1 OFFSET 624
Which Col (m) has an Elevation (m) smaller than 1,624?
CREATE TABLE table_name_88 (col__m_ INTEGER, elevation__m_ INTEGER)
SELECT type FROM table_name_44 WHERE course = "marostica to bibione"
tell me the type that has the marostica to bibione course.
CREATE TABLE table_name_44 (type VARCHAR, course VARCHAR)
SELECT name FROM table_name_2 WHERE time = 25.74
Tell me the name for time of 25.74
CREATE TABLE table_name_2 (name VARCHAR, time VARCHAR)
SELECT pitcher FROM table_19864214_3 WHERE seasons = "1982, 1984, 1985, 1987, 1988, 1989"
who was the pitcher in seasons 1982, 1984, 1985, 1987, 1988, 1989
CREATE TABLE table_19864214_3 (pitcher VARCHAR, seasons VARCHAR)
SELECT to_par FROM table_name_3 WHERE place = "t2" AND player = "ernie els"
When Ernie Els placed t2, what was his To par?
CREATE TABLE table_name_3 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT district FROM table_name_37 WHERE incumbent = "thomas larkin thompson"
What is the district of the incumbent Thomas Larkin Thompson?
CREATE TABLE table_name_37 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(name_of_film) FROM table_25926120_3 WHERE language = "Hindi"
How many films were in hindi?
CREATE TABLE table_25926120_3 (name_of_film VARCHAR, language VARCHAR)
SELECT event FROM table_name_16 WHERE inductee_s_ = "jerry lynn"
What even was Jerry Lynn the inductee?
CREATE TABLE table_name_16 (event VARCHAR, inductee_s_ VARCHAR)
SELECT lane FROM table_name_4 WHERE rank < 4 AND nationality = "netherlands"
Which lane ranked less than 4 for the Netherlands?
CREATE TABLE table_name_4 (lane VARCHAR, rank VARCHAR, nationality VARCHAR)
SELECT party FROM table_name_3 WHERE minister = "parker moloney" AND title = "minister for markets"
What was Parker Moloney's party affiliation when he was the Minister for Markets?
CREATE TABLE table_name_3 (party VARCHAR, minister VARCHAR, title VARCHAR)
SELECT away_team FROM table_name_53 WHERE tie_no = "replay" AND home_team = "northampton town"
Who was the away team that played Northampton Town at home with a tie number of replay?
CREATE TABLE table_name_53 (away_team VARCHAR, tie_no VARCHAR, home_team VARCHAR)
SELECT foundation FROM table_name_17 WHERE enterprise = "2"
Which Foundation has an Enterprise of 2?
CREATE TABLE table_name_17 (foundation VARCHAR, enterprise VARCHAR)
SELECT school_club_team FROM table_name_66 WHERE pick > 229 AND round < 12 AND position = "defensive back"
Pick larger than 229, and a Round smaller than 12, and a Position of defensive back is what school/club team?
CREATE TABLE table_name_66 (school_club_team VARCHAR, position VARCHAR, pick VARCHAR, round VARCHAR)
SELECT AVG(area__km_2__) FROM table_name_91 WHERE code > 19025 AND region < 12
What is the average area larger than Code 19025 but a smaller region than 12?
CREATE TABLE table_name_91 (area__km_2__ INTEGER, code VARCHAR, region VARCHAR)
SELECT SUM(assists) FROM table_name_82 WHERE club = "chicago fire" AND goals > 2
what is the assists when the club is chicago fire and goals is more than 2?
CREATE TABLE table_name_82 (assists INTEGER, club VARCHAR, goals VARCHAR)
SELECT august_21_22 FROM table_22651355_3 WHERE june_10_11 = "June 11, 1983"
What value can you find under the column "august 21-22" and the row of June 11, 1983?
CREATE TABLE table_22651355_3 (august_21_22 VARCHAR, june_10_11 VARCHAR)
SELECT COUNT(*) FROM professor WHERE prof_high_degree = 'Ph.D.'
How many professors do have a Ph.D. degree?
CREATE TABLE professor (prof_high_degree VARCHAR)
SELECT team FROM table_name_75 WHERE date = "march 27"
What is Team, when Date is "March 27"?
CREATE TABLE table_name_75 (team VARCHAR, date VARCHAR)
SELECT country FROM table_name_17 WHERE player = "jack nicklaus"
What country is Jack Nicklaus from?
CREATE TABLE table_name_17 (country VARCHAR, player VARCHAR)
SELECT COUNT(second) FROM table_name_5 WHERE first > 18 AND season = "1992-93" AND premier > 16
What is the total number of Second, when First is greater than 18, when Season is 1992-93, and when Premier is greater than 16?
CREATE TABLE table_name_5 (second VARCHAR, premier VARCHAR, first VARCHAR, season VARCHAR)
SELECT COUNT(network) FROM table_28190363_1 WHERE judges = "Pete Goffe-Wood Andrew Atkinson Benny Masekwameng"
How many networks are there that include the judges pete goffe-wood andrew atkinson benny masekwameng?
CREATE TABLE table_28190363_1 (network VARCHAR, judges VARCHAR)
SELECT venue FROM table_name_65 WHERE result = "0-0"
What is Venue, when Result is "0-0"?
CREATE TABLE table_name_65 (venue VARCHAR, result VARCHAR)
SELECT SUM(round) FROM table_name_79 WHERE method = "submission (banana split)"
What is the sum of Round(s), when Method is "Submission (Banana Split)"?
CREATE TABLE table_name_79 (round INTEGER, method VARCHAR)
SELECT AVG(bronze) FROM table_name_73 WHERE rank = 4 AND silver < 1
What is the average bronze with a rank of 4 and less than 1 silver?
CREATE TABLE table_name_73 (bronze INTEGER, rank VARCHAR, silver VARCHAR)
SELECT pos FROM table_name_57 WHERE school_country = "arkansas"
What position does the player from arkansas play?
CREATE TABLE table_name_57 (pos VARCHAR, school_country VARCHAR)
SELECT MIN(week) FROM table_14945881_1 WHERE date = "September 19, 1976"
Name the least week for september 19, 1976
CREATE TABLE table_14945881_1 (week INTEGER, date VARCHAR)
SELECT MAX(rank) FROM table_name_68 WHERE density < 376.37 AND province = "valverde" AND area > 823
What is the highest Rank with a density less than 376.37, the province was valverde, and an Area larger than 823?
CREATE TABLE table_name_68 (rank INTEGER, area VARCHAR, density VARCHAR, province VARCHAR)
SELECT rider FROM table_name_86 WHERE laps = "22" AND time_retired = "+19.435"
Who is the rider with 22 laps and a +19.435 time/retired?
CREATE TABLE table_name_86 (rider VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT starting_weight__kg_ FROM table_24370270_10 WHERE weight_lost__kg_ = "54.6"
What is the starting weight if weight lost is 54.6?
CREATE TABLE table_24370270_10 (starting_weight__kg_ VARCHAR, weight_lost__kg_ VARCHAR)
SELECT 2 AS nd_leg FROM table_name_97 WHERE team_1 = "h"
What is 2nd Leg, when Team 1 is "H"?
CREATE TABLE table_name_97 (team_1 VARCHAR)
SELECT position FROM table_2679061_4 WHERE college_junior_club_team = "Regina Pats (WHL)"
What position is the player from the Regina Pats (WHL)?
CREATE TABLE table_2679061_4 (position VARCHAR, college_junior_club_team VARCHAR)
SELECT name FROM table_name_69 WHERE round > 4 AND position = "ot"
What is the name of the ot position player with a round greater than 4?
CREATE TABLE table_name_69 (name VARCHAR, round VARCHAR, position VARCHAR)
SELECT country FROM table_name_47 WHERE ship = "john s. mccain"
What Country is the John S. McCain Ship from?
CREATE TABLE table_name_47 (country VARCHAR, ship VARCHAR)
SELECT teleplay FROM table_name_37 WHERE season > 1.1 AND first_broadcast = "february 20, 1981"
What is Teleplay, when Season is greater than 1.1, and when First Broadcast is "February 20, 1981"?
CREATE TABLE table_name_37 (teleplay VARCHAR, season VARCHAR, first_broadcast VARCHAR)
SELECT quantity FROM table_name_50 WHERE railway_number_s_ = "263"
What is the quantity for railway 263?
CREATE TABLE table_name_50 (quantity VARCHAR, railway_number_s_ VARCHAR)
SELECT AVG(sr) FROM table_name_48 WHERE average = 39.13 AND balls_faced > 318
Which average S.R. has an Average of 39.13 and Balls Faced larger than 318?
CREATE TABLE table_name_48 (sr INTEGER, average VARCHAR, balls_faced VARCHAR)
SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id WHERE T1.name LIKE '%Led%'
List the name of albums that are released by aritist whose name has 'Led'
CREATE TABLE artists (id VARCHAR, name VARCHAR); CREATE TABLE albums (title VARCHAR, artist_id VARCHAR)
SELECT location FROM table_24195232_1 WHERE team_name = "Eagles"
What is the location for the team name of eagles?
CREATE TABLE table_24195232_1 (location VARCHAR, team_name VARCHAR)
SELECT competition FROM table_name_6 WHERE date = "13 december 2012"
Name the competition for 13 december 2012
CREATE TABLE table_name_6 (competition VARCHAR, date VARCHAR)
SELECT MIN(electorate) FROM table_name_45 WHERE quota = "78,076" AND candidates < 13
What is the smallest electorate with 78,076 quota and less than 13 candidates?
CREATE TABLE table_name_45 (electorate INTEGER, quota VARCHAR, candidates VARCHAR)
SELECT AVG(loss) FROM table_name_80 WHERE last_5 = "4-1" AND streak = "w2" AND pa_per_game < 88.43
Which Loss has a Last 5 of 4-1, a Streak of w2, and a PA per game smaller than 88.43?
CREATE TABLE table_name_80 (loss INTEGER, pa_per_game VARCHAR, last_5 VARCHAR, streak VARCHAR)
SELECT start FROM table_name_31 WHERE rank = "11"
What is the start value for rank 11?
CREATE TABLE table_name_31 (start VARCHAR, rank VARCHAR)
SELECT SUM(starts) FROM table_name_52 WHERE tournament = "hsbc champions" AND wins < 0
In the tournament of HSBC Champions, what was the sum of the Starts with Wins lower than 0?
CREATE TABLE table_name_52 (starts INTEGER, tournament VARCHAR, wins VARCHAR)
SELECT MAX(grid) FROM table_name_4 WHERE time_retired = "+6 laps" AND laps < 69
What is the high grid that has a Time/Retired of +6 laps, and under 69 laps?
CREATE TABLE table_name_4 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT shigella FROM table_name_52 WHERE yersinia = "yopb"
Tell me the shigella for yersinia yopb
CREATE TABLE table_name_52 (shigella VARCHAR, yersinia VARCHAR)
SELECT AVG(score) FROM table_name_70 WHERE champion = "joanne carner"
What is Joanne Carner's average score in Canadian Women's Open games that she has won?
CREATE TABLE table_name_70 (score INTEGER, champion VARCHAR)
SELECT AVG(games) FROM table_name_68 WHERE date_of_birth = "17 march 1915" AND debut_year < 1935
What is the average games a player born on 17 March 1915 and debut before 1935 had?
CREATE TABLE table_name_68 (games INTEGER, date_of_birth VARCHAR, debut_year VARCHAR)
SELECT AVG(attendance) FROM table_name_23 WHERE date = "september 16"
What is the average number in attendance on September 16?
CREATE TABLE table_name_23 (attendance INTEGER, date VARCHAR)
SELECT date FROM table_name_36 WHERE time = "16:24.12"
On what date was the time of 16:24.12 achieved?
CREATE TABLE table_name_36 (date VARCHAR, time VARCHAR)
SELECT championship FROM table_24638867_4 WHERE surface = "Clay" AND opponent = "Virginia Ruano Pascual Paola Suárez"
What championships were played on clay and the opponent was virginia ruano pascual paola suárez?
CREATE TABLE table_24638867_4 (championship VARCHAR, surface VARCHAR, opponent VARCHAR)
SELECT score_in_the_final FROM table_name_46 WHERE date = "february 19, 2012"
What was the final score on the February 19, 2012 final?
CREATE TABLE table_name_46 (score_in_the_final VARCHAR, date VARCHAR)
SELECT high_points FROM table_15869204_8 WHERE game = 68
Who was the high point scorer in game number 68?
CREATE TABLE table_15869204_8 (high_points VARCHAR, game VARCHAR)
SELECT average FROM table_26611679_3 WHERE category = "Assists per game"
Name the average for assists per game
CREATE TABLE table_26611679_3 (average VARCHAR, category VARCHAR)
SELECT surface FROM table_name_37 WHERE opponent_in_the_final = "cédric pioline"
What is the surface of the tournament with cédric pioline as the opponent in the final?
CREATE TABLE table_name_37 (surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT f_id FROM files ORDER BY duration DESC LIMIT 1
What is the id of the longest song?
CREATE TABLE files (f_id VARCHAR, duration VARCHAR)
SELECT winning_driver FROM table_1140119_5 WHERE circuit = "Jersey"
Who won the race at the Jersey circuit?
CREATE TABLE table_1140119_5 (winning_driver VARCHAR, circuit VARCHAR)
SELECT position FROM table_1473672_4 WHERE player = "Ron Lalonde"
Name the position for ron lalonde
CREATE TABLE table_1473672_4 (position VARCHAR, player VARCHAR)
SELECT 2012 FROM table_name_6 WHERE 2003 = "2r" AND tournament = "wimbledon"
What is the tournament in 2012 results that has a 2003 results of 2r and played at Wimbledon?
CREATE TABLE table_name_6 (tournament VARCHAR)
SELECT COUNT(no) FROM table_1569625_1 WHERE runner_s__up = "Howard Clark"
Name the number of numbers for howard clark
CREATE TABLE table_1569625_1 (no VARCHAR, runner_s__up VARCHAR)
SELECT MIN(no) FROM table_25851971_1 WHERE written_by = "Anthony Sparks"
What episode number was written by Anthony Sparks?
CREATE TABLE table_25851971_1 (no INTEGER, written_by VARCHAR)
SELECT MIN(total) FROM table_name_31 WHERE position < 1
What's the total that the position is less than 1?
CREATE TABLE table_name_31 (total INTEGER, position INTEGER)
SELECT MAX(attendance) FROM table_name_25 WHERE date = "october 25, 1981" AND week < 8
What was the highest number of attendance in a week before 8 and game on October 25, 1981?
CREATE TABLE table_name_25 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO
Find the name of the department that has no students minored in?
CREATE TABLE DEPARTMENT (DName VARCHAR, DNO VARCHAR); CREATE TABLE MINOR_IN (DNO VARCHAR); CREATE TABLE DEPARTMENT (DName VARCHAR)
SELECT COUNT(*) FROM visitor WHERE age < 30
How many visitors below age 30 are there?
CREATE TABLE visitor (age INTEGER)
SELECT call_sign FROM table_name_9 WHERE frequency = "1200 am"
What is the call sign of 1200 am?
CREATE TABLE table_name_9 (call_sign VARCHAR, frequency VARCHAR)
SELECT MAX(points) FROM table_name_28 WHERE draws < 9 AND wins = 11 AND goals_for > 40
What is the highest points of the club with less than 9 draws, 11 wins, and more than 40 goals?
CREATE TABLE table_name_28 (points INTEGER, goals_for VARCHAR, draws VARCHAR, wins VARCHAR)
SELECT MIN(decile) FROM table_name_78 WHERE authority = "state" AND area = "eketahuna" AND roll > 44
Name the least decile for state authority and area of eketahuna with roll more than 44
CREATE TABLE table_name_78 (decile INTEGER, roll VARCHAR, authority VARCHAR, area VARCHAR)