answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MIN(first_aired) FROM table_191105_3 WHERE performed_by = "Zachary Sanders"
When zachary sanders is the performer what is the lowerst first aired?
CREATE TABLE table_191105_3 (first_aired INTEGER, performed_by VARCHAR)
SELECT position FROM table_1213511_4 WHERE player = "Neil Komadoski"
What position does Neil Komadoski play?
CREATE TABLE table_1213511_4 (position VARCHAR, player VARCHAR)
SELECT MIN(grid) FROM table_name_24 WHERE bike = "ducati 1098 rs 08" AND rider = "max biaggi"
Name the lowest Grid which has a Bike of ducati 1098 rs 08 and a Rider of max biaggi?
CREATE TABLE table_name_24 (grid INTEGER, bike VARCHAR, rider VARCHAR)
SELECT record FROM table_name_58 WHERE high_rebounds = "george hill (11)"
What is the record when George Hill (11) had the high rebounds?
CREATE TABLE table_name_58 (record VARCHAR, high_rebounds VARCHAR)
SELECT rank FROM table_24431264_18 WHERE withdrew_due_to = "right wrist surgery"
List the rank of the player that left due to right wrist surgery?
CREATE TABLE table_24431264_18 (rank VARCHAR, withdrew_due_to VARCHAR)
SELECT d_43 FROM table_name_45 WHERE d_48 = "r 28"
Name the D 43 and D 48 of r 28
CREATE TABLE table_name_45 (d_43 VARCHAR, d_48 VARCHAR)
SELECT country FROM table_name_32 WHERE content = "televendite"
What Country's content is Televendite?
CREATE TABLE table_name_32 (country VARCHAR, content VARCHAR)
SELECT written_by FROM table_21979779_1 WHERE us_viewers__million_ = "3.07"
who are the writers of the episode that had 3.07 millions of North American spectators?
CREATE TABLE table_21979779_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT language FROM table_14160327_4 WHERE genre = "Glam"
What language for the glam genre?
CREATE TABLE table_14160327_4 (language VARCHAR, genre VARCHAR)
SELECT recipient FROM table_name_78 WHERE date = "12/11/03"
What movie won with a date of 12/11/03
CREATE TABLE table_name_78 (recipient VARCHAR, date VARCHAR)
SELECT season FROM table_2817196_1 WHERE goals_against = 254
What sesaon(s) did they have 254 goals against?
CREATE TABLE table_2817196_1 (season VARCHAR, goals_against VARCHAR)
SELECT COUNT(province) FROM table_1939367_1 WHERE _percentage_2011 = "0.0%"
What is the province amount if the % 2011 is 0.0%
CREATE TABLE table_1939367_1 (province VARCHAR, _percentage_2011 VARCHAR)
SELECT MAX(new_points) FROM table_20855452_4 WHERE points = 2200
What was the max when they score 2200?
CREATE TABLE table_20855452_4 (new_points INTEGER, points VARCHAR)
SELECT AVG(rank) FROM table_name_97 WHERE city = "mashhad" AND 1976 < 667770
What is teh average rank of the city of mashhad, which had less than 667770 in 1976?
CREATE TABLE table_name_97 (rank INTEGER, city VARCHAR)
SELECT team_1 FROM table_name_17 WHERE team_2 = "fluminense (rj)"
Who is team 1 where team 2 is Fluminense (RJ)?
CREATE TABLE table_name_17 (team_1 VARCHAR, team_2 VARCHAR)
SELECT AVG(goals) FROM table_name_41 WHERE apps < 1
Which Goals have Apps smaller than 1?
CREATE TABLE table_name_41 (goals INTEGER, apps INTEGER)
SELECT 1966 FROM table_name_72 WHERE 1969 = "0"
What was the value in 1966 with a 0 value in 1969?
CREATE TABLE table_name_72 (Id VARCHAR)
SELECT score FROM table_name_27 WHERE tie_no = "6"
What was the score for Tie no. 6?
CREATE TABLE table_name_27 (score VARCHAR, tie_no VARCHAR)
SELECT player FROM table_name_80 WHERE school_country = "gonzaga"
Which player went to Gonzaga?
CREATE TABLE table_name_80 (player VARCHAR, school_country VARCHAR)
SELECT constructor FROM table_name_49 WHERE circuit = "pergusa"
Which Constructor has Pergusa in the Circuit?
CREATE TABLE table_name_49 (constructor VARCHAR, circuit VARCHAR)
SELECT title FROM table_name_31 WHERE year < 2008 AND platform = "xbox 360"
Which title has a year prior to 2008 and xbox 360 as the platform?
CREATE TABLE table_name_31 (title VARCHAR, year VARCHAR, platform VARCHAR)
SELECT original_airdate FROM table_26866205_1 WHERE series__number = 26
What is every original air date for series# of 26?
CREATE TABLE table_26866205_1 (original_airdate VARCHAR, series__number VARCHAR)
SELECT team FROM table_name_61 WHERE year > 1990 AND chassis = "jordan 193"
What team has jordan 193 chassis after 1990?
CREATE TABLE table_name_61 (team VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT track FROM table_name_83 WHERE state = "washington"
What is the track in Washington state?
CREATE TABLE table_name_83 (track VARCHAR, state VARCHAR)
SELECT fastest_laps FROM table_name_95 WHERE races_† = "12/12"
For the 12/12 races, what is the fastest lap?
CREATE TABLE table_name_95 (fastest_laps VARCHAR, races_† VARCHAR)
SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "Spanish"
What is the date of enrollment of the course named "Spanish"?
CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, course_id VARCHAR); CREATE TABLE Courses (course_id VARCHAR, course_name VARCHAR)
SELECT T1.name, T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY AVG(T2.salary) LIMIT 1
What are the name and id of the team offering the lowest average salary?
CREATE TABLE team (name VARCHAR, team_id VARCHAR); CREATE TABLE salary (team_id VARCHAR, salary INTEGER)
SELECT rank FROM table_name_1 WHERE silver > 1 AND nation = "total"
Which rank has more than 1 silver and a total nation?
CREATE TABLE table_name_1 (rank VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT player FROM table_14655757_1 WHERE college = "Tennessee"
Which players college is Tennessee?
CREATE TABLE table_14655757_1 (player VARCHAR, college VARCHAR)
SELECT scoring_average FROM table_10021158_3 WHERE money_list_rank = "n/a"
When the money list rank was n/a, what was the scoring average?
CREATE TABLE table_10021158_3 (scoring_average VARCHAR, money_list_rank VARCHAR)
SELECT title FROM table_name_98 WHERE episode__number > 2 AND part_6 = "january 6, 2008"
What is the Title, when the Episode # is after 2, and when Part 6 is on January 6, 2008?
CREATE TABLE table_name_98 (title VARCHAR, episode__number VARCHAR, part_6 VARCHAR)
SELECT MAX(year) FROM table_name_19 WHERE venue = "athens, greece"
What year is the event in athens, greece?
CREATE TABLE table_name_19 (year INTEGER, venue VARCHAR)
SELECT COUNT(*), POSITION FROM player WHERE points < 30 GROUP BY POSITION
find the number of players whose points are lower than 30 in each position.
CREATE TABLE player (POSITION VARCHAR, points INTEGER)
SELECT score FROM table_name_67 WHERE champion = "flavia pennetta"
What was the score when Flavia Pennetta won the championship?
CREATE TABLE table_name_67 (score VARCHAR, champion VARCHAR)
SELECT date_of_birth FROM table_name_12 WHERE years_at_club = "1951"
What is the birthday of the player who has Years at Club of 1951?
CREATE TABLE table_name_12 (date_of_birth VARCHAR, years_at_club VARCHAR)
SELECT COUNT(original_air_date) FROM table_15584067_7 WHERE no_in_series = "102"
Name the total number of air dates for 102 episode
CREATE TABLE table_15584067_7 (original_air_date VARCHAR, no_in_series VARCHAR)
SELECT gross FROM table_name_73 WHERE director = "richard tuggle"
WHAT IS THE GROSS WITH A DIRECTOR OF RICHARD TUGGLE?
CREATE TABLE table_name_73 (gross VARCHAR, director VARCHAR)
SELECT MAX(total) FROM table_name_78 WHERE country = "australia"
What is the highest Total for Australia?
CREATE TABLE table_name_78 (total INTEGER, country VARCHAR)
SELECT record FROM table_27539272_5 WHERE score = "5-3"
what is the record that had a score of 5-3?
CREATE TABLE table_27539272_5 (record VARCHAR, score VARCHAR)
SELECT total FROM table_28352386_1 WHERE guest_judge = "10"
What was the total score when the guest judge gave a score of 10?
CREATE TABLE table_28352386_1 (total VARCHAR, guest_judge VARCHAR)
SELECT name FROM table_name_16 WHERE heat > 4 AND lane = 4 AND nationality = "australia"
What is the name of the swimmer from Australia in lane 4 with a heat larger than 4?
CREATE TABLE table_name_16 (name VARCHAR, nationality VARCHAR, heat VARCHAR, lane VARCHAR)
SELECT lines_served FROM table_14748457_1 WHERE station_users_2008_9 = "210076"
what are the lines served where station users is 210076?
CREATE TABLE table_14748457_1 (lines_served VARCHAR, station_users_2008_9 VARCHAR)
SELECT frequency FROM table_name_72 WHERE call_sign = "cihr-fm"
Which frequency belongs to the cihr-fm call sign?
CREATE TABLE table_name_72 (frequency VARCHAR, call_sign VARCHAR)
SELECT tries_for FROM table_14070062_3 WHERE points = "70"
What's the tries for count for the team with 70 points?
CREATE TABLE table_14070062_3 (tries_for VARCHAR, points VARCHAR)
SELECT outcome FROM table_name_16 WHERE surface = "hard (i)"
What was the Outcome of the match played on Hard (i) Surface?
CREATE TABLE table_name_16 (outcome VARCHAR, surface VARCHAR)
SELECT signatories FROM table_name_71 WHERE purpose = "police security" AND payee = "infotalent"
What signatory has a purpose of police security and Infotalent payee?
CREATE TABLE table_name_71 (signatories VARCHAR, purpose VARCHAR, payee VARCHAR)
SELECT opponent FROM table_name_28 WHERE loss = "corcoran (4-4)"
Which opponent has a Loss of corcoran (4-4)?
CREATE TABLE table_name_28 (opponent VARCHAR, loss VARCHAR)
SELECT opponent_in_the_final FROM table_name_66 WHERE outcome = "runner-up"
What is the Opponent in the final when the outcome was runner-up?
CREATE TABLE table_name_66 (opponent_in_the_final VARCHAR, outcome VARCHAR)
SELECT player FROM table_name_99 WHERE pick > 15 AND hometown_school = "dayton, oh"
What is the Player from Dayton, Oh with a Pick of 15 or larger?
CREATE TABLE table_name_99 (player VARCHAR, pick VARCHAR, hometown_school VARCHAR)
SELECT oberliga_baden_württemberg FROM table_name_41 WHERE season = "1991-92"
which Oberliga Baden-Württemberg has a Season of 1991-92?
CREATE TABLE table_name_41 (oberliga_baden_württemberg VARCHAR, season VARCHAR)
SELECT high_points FROM table_23248910_9 WHERE team = "Pistons"
Who is every high points for the Pistons team?
CREATE TABLE table_23248910_9 (high_points VARCHAR, team VARCHAR)
SELECT date FROM table_name_40 WHERE loss = "flanagan (6-7)"
On what date was the Loss by Flanagan (6-7)?
CREATE TABLE table_name_40 (date VARCHAR, loss VARCHAR)
SELECT catalog FROM table_name_5 WHERE label = "geffen records / universal music special markets"
What Catalog has a Label of geffen records / universal music special markets?
CREATE TABLE table_name_5 (catalog VARCHAR, label VARCHAR)
SELECT release_price___usd__ FROM table_name_69 WHERE release_date = "2008 q3"
Release date of 2008 q3 has what release price?
CREATE TABLE table_name_69 (release_price___usd__ VARCHAR, release_date VARCHAR)
SELECT green_communist FROM table_name_41 WHERE polling_institute = "euroteste/jn"
What's the green communist when Euroteste/JN is the polling Institute?
CREATE TABLE table_name_41 (green_communist VARCHAR, polling_institute VARCHAR)
SELECT COUNT(hancock__percentage) FROM table_19681738_1 WHERE starky__percentage = "20.96%"
how many times was hancock % considered when starky % was 20.96%
CREATE TABLE table_19681738_1 (hancock__percentage VARCHAR, starky__percentage VARCHAR)
SELECT COUNT(publisher) FROM table_1217448_1 WHERE first_appearance = "Daredevil #1"
what is the total number of publisher where first appearance is daredevil #1
CREATE TABLE table_1217448_1 (publisher VARCHAR, first_appearance VARCHAR)
SELECT T2.order_id, T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id GROUP BY T2.order_id HAVING COUNT(*) > 2
What is the order id and order details for the order more than two invoices.
CREATE TABLE Orders (order_id VARCHAR, order_details VARCHAR); CREATE TABLE Invoices (order_id VARCHAR)
SELECT record FROM table_name_50 WHERE opponent = "devil rays" AND date = "september 6"
What was the home team's record when they played the Devil Rays on September 6?
CREATE TABLE table_name_50 (record VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT country FROM table_name_21 WHERE package_option = "qualsiasi tranne sky hd"
Which country has a qualsiasi tranne sky hd package/option?
CREATE TABLE table_name_21 (country VARCHAR, package_option VARCHAR)
SELECT T1.id, T1.score, T1.date FROM game AS T1 JOIN injury_accident AS T2 ON T2.game_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 2
What are the ids, scores, and dates of the games which caused at least two injury accidents?
CREATE TABLE game (id VARCHAR, score VARCHAR, date VARCHAR); CREATE TABLE injury_accident (game_id VARCHAR)
SELECT l3_cache FROM table_name_3 WHERE release_price___usd__ = "$440"
What is the L3 cache of the processor with a release price of $440?
CREATE TABLE table_name_3 (l3_cache VARCHAR, release_price___usd__ VARCHAR)
SELECT status FROM table_name_46 WHERE venue = "sydney sports ground , sydney"
Name the Status of Venue of sydney sports ground , sydney?
CREATE TABLE table_name_46 (status VARCHAR, venue VARCHAR)
SELECT series FROM table_name_59 WHERE opponent = "new york rangers" AND score = "3–2 ot"
Which Series has an Opponent of new york rangers, and a Score of 3–2 ot?
CREATE TABLE table_name_59 (series VARCHAR, opponent VARCHAR, score VARCHAR)
SELECT game FROM table_name_77 WHERE road_team = "syracuse" AND result = "109-82"
What is Game, when Road Team is "Syracuse", and when Result is "109-82"?
CREATE TABLE table_name_77 (game VARCHAR, road_team VARCHAR, result VARCHAR)
SELECT MIN(road_wins) FROM table_1585112_2
Name the least road wins
CREATE TABLE table_1585112_2 (road_wins INTEGER)
SELECT _number_of_new_stations FROM table_1817879_2 WHERE date_opened = "June 24, 2000"
How many news stations opened on the date of June 24, 2000?
CREATE TABLE table_1817879_2 (_number_of_new_stations VARCHAR, date_opened VARCHAR)
SELECT result FROM table_name_25 WHERE week < 16 AND date = "october 31, 2005"
What result has a week less than 16, and October 31, 2005 as the date?
CREATE TABLE table_name_25 (result VARCHAR, week VARCHAR, date VARCHAR)
SELECT SUM(attendance) FROM table_name_69 WHERE opponent = "astros" AND date = "april 29"
What attendance has astros as the opponent, and april 29 as the date?
CREATE TABLE table_name_69 (attendance INTEGER, opponent VARCHAR, date VARCHAR)
SELECT loss FROM table_name_38 WHERE date = "may 28"
Who lost the game on May 28?
CREATE TABLE table_name_38 (loss VARCHAR, date VARCHAR)
SELECT AVG(laps) FROM table_name_91 WHERE driver = "lorenzo bandini" AND grid < 3
What is the average laps for lorenzo bandini with a grid under 3?
CREATE TABLE table_name_91 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT member_countries FROM table_name_71 WHERE population = "1,341,664"
What is the name of the member country that has a Population of 1,341,664?
CREATE TABLE table_name_71 (member_countries VARCHAR, population VARCHAR)
SELECT broadcast_date FROM table_2102782_1 WHERE viewers__in_millions_ = "7.4"
Name the broadcast date for 7.4 viewers
CREATE TABLE table_2102782_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR)
SELECT points_against FROM table_name_61 WHERE lost = "17"
Which points against has 17 as the lost?
CREATE TABLE table_name_61 (points_against VARCHAR, lost VARCHAR)
SELECT MIN(title_playoff) FROM table_name_93 WHERE total < 3 AND league > 2
What is the lowest Title Playoff, when Total is less than 3, and when League is greater than "2"?
CREATE TABLE table_name_93 (title_playoff INTEGER, total VARCHAR, league VARCHAR)
SELECT developer_s_ FROM table_name_50 WHERE platform_s_ = "wii"
Who was the developer of Wii?
CREATE TABLE table_name_50 (developer_s_ VARCHAR, platform_s_ VARCHAR)
SELECT venue FROM table_name_40 WHERE away_team = "north melbourne"
Where was the game played where North Melbourne was the away team?
CREATE TABLE table_name_40 (venue VARCHAR, away_team VARCHAR)
SELECT COUNT(points) FROM table_name_20 WHERE year > 1972 AND chassis = "mclaren m23"
How many points are there for a Mclaren m23 chassis later than 1972?
CREATE TABLE table_name_20 (points VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT MIN(game) FROM table_name_64 WHERE score = "118–114" AND record = "8–1"
Score of 118–114, and a Record of 8–1 is what lowest game?
CREATE TABLE table_name_64 (game INTEGER, score VARCHAR, record VARCHAR)
SELECT nation FROM table_name_10 WHERE bronze = 1 AND total = 3 AND silver = 1
Which country had 1 Bronze, 1 Silver, with a total of 3 medals?
CREATE TABLE table_name_10 (nation VARCHAR, silver VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT tournament FROM table_name_28 WHERE 2009 = "q1" AND 2008 = "1r"
Which Tournament has a 2009 of q1, and a 2008 of 1r?
CREATE TABLE table_name_28 (tournament VARCHAR)
SELECT final_round FROM table_name_61 WHERE weight = 245
What final round had a weight of 245?
CREATE TABLE table_name_61 (final_round VARCHAR, weight VARCHAR)
SELECT network FROM table_name_70 WHERE title = "schlag den raab"
Which network aired the program Schlag den Raab?
CREATE TABLE table_name_70 (network VARCHAR, title VARCHAR)
SELECT driver FROM table_name_2 WHERE time_retired = "fuel system"
Which driver had a time/retired of fuel system?
CREATE TABLE table_name_2 (driver VARCHAR, time_retired VARCHAR)
SELECT track FROM table_name_28 WHERE artist = "lcd soundsystem"
What is the track that from lcd soundsystem?
CREATE TABLE table_name_28 (track VARCHAR, artist VARCHAR)
SELECT place_of_action FROM table_name_80 WHERE rank = "sergeant" AND unit = "5th company, 2nd marines"
Tell me the place of action for sergeant rank and 5th company, 2nd marines unit
CREATE TABLE table_name_80 (place_of_action VARCHAR, rank VARCHAR, unit VARCHAR)
SELECT team_d FROM table_name_61 WHERE team_c = "carmen ada"
Who is Team D when Carmen Ada is team C?
CREATE TABLE table_name_61 (team_d VARCHAR, team_c VARCHAR)
SELECT receipt_date FROM Documents WHERE document_id = 3
What is the receipt date of the document with id 3?
CREATE TABLE Documents (receipt_date VARCHAR, document_id VARCHAR)
SELECT MAX(year) FROM table_name_10 WHERE issue_price = "$2,995.95" AND theme = "grizzly bear"
What year had an issue price of $2,995.95, and a theme of grizzly bear?
CREATE TABLE table_name_10 (year INTEGER, issue_price VARCHAR, theme VARCHAR)
SELECT points FROM table_20500097_1 WHERE poles > 1.0
How many points did he win in the race with more than 1.0 poles?
CREATE TABLE table_20500097_1 (points VARCHAR, poles INTEGER)
SELECT bonus_points FROM table_27293285_2 WHERE points_for = "379"
How many bonus points did the club who had 379 points for have?
CREATE TABLE table_27293285_2 (bonus_points VARCHAR, points_for VARCHAR)
SELECT ief_2011 FROM table_name_96 WHERE fsi_2012 = "99.2"
What is the IEF 2011 of the country with an FSI 2012 of 99.2?
CREATE TABLE table_name_96 (ief_2011 VARCHAR, fsi_2012 VARCHAR)
SELECT time_retired FROM table_name_30 WHERE grid = 9
What is the time/retired for grid 9?
CREATE TABLE table_name_30 (time_retired VARCHAR, grid VARCHAR)
SELECT COUNT(attendance) FROM table_15647838_3 WHERE bowl_game = "1986 Peach Bowl"
How many values for attendance correspond to the 1986 Peach Bowl?
CREATE TABLE table_15647838_3 (attendance VARCHAR, bowl_game VARCHAR)
SELECT kickoff_time FROM table_name_53 WHERE week = 1
What was the kickoff time on week 1?
CREATE TABLE table_name_53 (kickoff_time VARCHAR, week VARCHAR)
SELECT constellation FROM table_name_3 WHERE ngc_number < 2775 AND declination___j2000__ = "°05′07″"
Which Constellation has a NGC number smaller than 2775, and a Declination (J2000) of °05′07″?
CREATE TABLE table_name_3 (constellation VARCHAR, ngc_number VARCHAR, declination___j2000__ VARCHAR)
SELECT name FROM instructor WHERE salary > (SELECT MIN(salary) FROM instructor WHERE dept_name = 'Biology')
Find names of instructors with salary greater than that of some (at least one) instructor in the Biology department.
CREATE TABLE instructor (name VARCHAR, salary INTEGER, dept_name VARCHAR)
SELECT MIN(earnings__) AS $_ FROM table_name_93 WHERE money_list_rank = "6" AND starts < 22
What is the smallest Earnings that has a Money list rank of 6 and Starts smaller than 22?
CREATE TABLE table_name_93 (earnings__ INTEGER, money_list_rank VARCHAR, starts VARCHAR)
SELECT track FROM table_name_47 WHERE year = 1978
What's the track for 1978?
CREATE TABLE table_name_47 (track VARCHAR, year VARCHAR)
SELECT pos FROM table_name_37 WHERE weight < 205
What is the pos with weight less than 205?
CREATE TABLE table_name_37 (pos VARCHAR, weight INTEGER)