answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT andrew_and_georgies_guest FROM table_29141354_2 WHERE jamie_and_johns_guest = "Jessica Ennis"
Who was Andrew and Georgies guest when Jamie and Johns guest was Jessica Ennis?
CREATE TABLE table_29141354_2 (andrew_and_georgies_guest VARCHAR, jamie_and_johns_guest VARCHAR)
SELECT date FROM table_name_24 WHERE winner = "tom kite (10)"
What is the date where the winner was Tom Kite (10)?
CREATE TABLE table_name_24 (date VARCHAR, winner VARCHAR)
SELECT COUNT(attendance) FROM table_name_41 WHERE date = "december 14, 1975" AND week > 13
What was the total attendance on December 14, 1975 after week 13?
CREATE TABLE table_name_41 (attendance VARCHAR, date VARCHAR, week VARCHAR)
SELECT goals / Game AS Ratio FROM table_name_29 WHERE goals < 201 AND appearances < 170
Which goals/game ratio has fewer than 201 goals and fewer than 170 appearances?
CREATE TABLE table_name_29 (goals VARCHAR, Game VARCHAR, appearances VARCHAR)
SELECT winner_name, loser_name FROM matches ORDER BY minutes DESC LIMIT 1
find the names of loser and winner who played in the match with greatest number of minutes.
CREATE TABLE matches (winner_name VARCHAR, loser_name VARCHAR, minutes VARCHAR)
SELECT MIN(production_code) FROM table_25691838_8 WHERE original_airdate = "August 11"
What was the smallest production code for August 11's original episode?
CREATE TABLE table_25691838_8 (production_code INTEGER, original_airdate VARCHAR)
SELECT nationality FROM table_11545282_5 WHERE years_for_jazz = "1989-92; 1994-95"
What is the nationality of the player who played during the years 1989-92; 1994-95?
CREATE TABLE table_11545282_5 (nationality VARCHAR, years_for_jazz VARCHAR)
SELECT college_junior_club_team__league_ FROM table_17371135_30 WHERE position = "Goaltender"
The player who plays goaltender is from what college/junior/club team?
CREATE TABLE table_17371135_30 (college_junior_club_team__league_ VARCHAR, position VARCHAR)
SELECT home_campus FROM table_name_2 WHERE arena_venue = "san agustin gym"
Which campus has the San Agustin gym?
CREATE TABLE table_name_2 (home_campus VARCHAR, arena_venue VARCHAR)
SELECT MAX(total) FROM table_name_71 WHERE to_par = 7
What is the highest total of the player with a 7 to par?
CREATE TABLE table_name_71 (total INTEGER, to_par VARCHAR)
SELECT album FROM table_name_45 WHERE year > 2007
Name the album for years after 2007
CREATE TABLE table_name_45 (album VARCHAR, year INTEGER)
SELECT premiere_air_dates FROM table_1949994_7 WHERE no = 3
What's season 3's premiere date?
CREATE TABLE table_1949994_7 (premiere_air_dates VARCHAR, no VARCHAR)
SELECT venue FROM table_name_39 WHERE league = "wnba"
What are the venues that host WNBA games?
CREATE TABLE table_name_39 (venue VARCHAR, league VARCHAR)
SELECT SUM(laps) FROM table_name_33 WHERE winnings = "$67,675" AND points < 61
Which driver has less than 61 points, but winnings of $67,675?
CREATE TABLE table_name_33 (laps INTEGER, winnings VARCHAR, points VARCHAR)
SELECT MAX(position) FROM table_13018091_1 WHERE club = "Sheffield Eagles"
What position did the sheffield eagles finish in?
CREATE TABLE table_13018091_1 (position INTEGER, club VARCHAR)
SELECT constructor FROM table_name_91 WHERE chassis = "mp4/1c" AND driver = "niki lauda"
Who is the constructor for driver Niki Lauda and a chassis of mp4/1c?
CREATE TABLE table_name_91 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR)
SELECT written_by FROM table_27397948_2 WHERE no_in_season = 7
Who was the writer for season episode 7?
CREATE TABLE table_27397948_2 (written_by VARCHAR, no_in_season VARCHAR)
SELECT time_retired FROM table_name_60 WHERE grid = 16
What is the time/retired of the one with grid of 16?
CREATE TABLE table_name_60 (time_retired VARCHAR, grid VARCHAR)
SELECT MIN(wins) FROM table_name_25 WHERE tournament = "totals" AND top_25 > 3
What is the smallest number of wins for the Totals Tournament with a Top-25 value greater than 3?
CREATE TABLE table_name_25 (wins INTEGER, tournament VARCHAR, top_25 VARCHAR)
SELECT time FROM table_name_28 WHERE away_team = "mutual team b"
What was the time for the match with away team Mutual Team B?
CREATE TABLE table_name_28 (time VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_15 WHERE attendance = "4,286"
What is the date that 4,286 attended?
CREATE TABLE table_name_15 (date VARCHAR, attendance VARCHAR)
SELECT total__kg_ FROM table_name_86 WHERE snatch = 132.5
What's the Total (kg) of a Snatch of 132.5?
CREATE TABLE table_name_86 (total__kg_ VARCHAR, snatch VARCHAR)
SELECT result FROM table_1342370_41 WHERE incumbent = "Finis J. Garrett"
What was the result in the election where the incumbent was Finis J. Garrett?
CREATE TABLE table_1342370_41 (result VARCHAR, incumbent VARCHAR)
SELECT venue FROM table_17120964_8 WHERE result = "Lost 3-4"
What was the venue of the game that was lost 3-4?
CREATE TABLE table_17120964_8 (venue VARCHAR, result VARCHAR)
SELECT COUNT(years_for_rockets) FROM table_11734041_1 WHERE position = "Center" AND school_club_team_country = "Oral Roberts"
How many times did a center that attended Oral Roberts play for the Rockets?
CREATE TABLE table_11734041_1 (years_for_rockets VARCHAR, position VARCHAR, school_club_team_country VARCHAR)
SELECT score FROM table_name_64 WHERE country = "scotland"
Name the score for scotland
CREATE TABLE table_name_64 (score VARCHAR, country VARCHAR)
SELECT COUNT(fastest_qualifying) FROM table_26358264_2 WHERE country = "United Arab Emirates"
When united arab emirates is the country how many fastest qualifying are there?
CREATE TABLE table_26358264_2 (fastest_qualifying VARCHAR, country VARCHAR)
SELECT author FROM table_name_62 WHERE role = "narrator" AND year > 2009 AND release_air_date = "7 october 2010"
Role of narrator, and a Year larger than 2009, and a Release/Air Date of 7 october 2010 belongs to what author?
CREATE TABLE table_name_62 (author VARCHAR, release_air_date VARCHAR, role VARCHAR, year VARCHAR)
SELECT airport FROM table_name_78 WHERE iata = "nos"
What is the airport name that has nos listed as the IATA?
CREATE TABLE table_name_78 (airport VARCHAR, iata VARCHAR)
SELECT package_option, series_name FROM TV_Channel WHERE hight_definition_TV = "yes"
Find the package choice and series name of the TV channel that has high definition TV.
CREATE TABLE TV_Channel (package_option VARCHAR, series_name VARCHAR, hight_definition_TV VARCHAR)
SELECT total_casualties FROM table_name_47 WHERE total_deaths = 12 AND military_deaths > 1
What is the total number of casualties when there are 12 total deaths and more than 1 military death?
CREATE TABLE table_name_47 (total_casualties VARCHAR, total_deaths VARCHAR, military_deaths VARCHAR)
SELECT year_ended FROM table_name_80 WHERE passenger_load_factor___percentage_ > 72.8 AND revenue__€m_ < 906.8
Which Year Ended has a Passenger Load Factor (%) larger than 72.8, and a Revenue (€m) smaller than 906.8?
CREATE TABLE table_name_80 (year_ended VARCHAR, passenger_load_factor___percentage_ VARCHAR, revenue__€m_ VARCHAR)
SELECT college FROM table_name_70 WHERE conf = "swc" AND pos = "wr"
What is the College of the WR Player from SWC Conf?
CREATE TABLE table_name_70 (college VARCHAR, conf VARCHAR, pos VARCHAR)
SELECT save FROM table_name_49 WHERE attendance = "23,394"
What is the save of the game that 23,394 people attended?
CREATE TABLE table_name_49 (save VARCHAR, attendance VARCHAR)
SELECT to_par FROM table_name_56 WHERE runner_up = "ken duke"
What was the to par of the tournament that had Ken Duke as a runner-up?
CREATE TABLE table_name_56 (to_par VARCHAR, runner_up VARCHAR)
SELECT cName FROM College WHERE enr > 18000 ORDER BY cName
List the name of the colleges whose enrollment is greater 18000 sorted by the college's name.
CREATE TABLE College (cName VARCHAR, enr INTEGER)
SELECT capacity_percentage FROM table_28884858_2 WHERE team = "Denver Broncos"
What was the capacity for the Denver Broncos?
CREATE TABLE table_28884858_2 (capacity_percentage VARCHAR, team VARCHAR)
SELECT white FROM table_name_35 WHERE black = "38,05%"
WHich Category in White has a Black of 38,05%?
CREATE TABLE table_name_35 (white VARCHAR, black VARCHAR)
SELECT first_name, last_name, hire_date, salary, department_id FROM employees WHERE NOT first_name LIKE '%M%' ORDER BY department_id
display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M and make the result set in ascending order by department number.
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR, salary VARCHAR, department_id VARCHAR)
SELECT label FROM table_name_82 WHERE date < 2008 AND catalog = "fall cd 006"
Which Label has a Date smaller than 2008, and a Catalog of fall cd 006?
CREATE TABLE table_name_82 (label VARCHAR, date VARCHAR, catalog VARCHAR)
SELECT date_of_birth__age_ FROM table_name_57 WHERE caps = "3" AND name = "gabriel quak jun yi"
What is the date of birth and age of Gabriel Quak Jun Yi with 3 caps?
CREATE TABLE table_name_57 (date_of_birth__age_ VARCHAR, caps VARCHAR, name VARCHAR)
SELECT class FROM table_name_16 WHERE co_drivers = "eddie cheever raul boesel"
What class did eddie cheever raul boesel race in?
CREATE TABLE table_name_16 (class VARCHAR, co_drivers VARCHAR)
SELECT COUNT(league_cup) FROM table WHERE r = 4
How many times was the r 4?
CREATE TABLE table (league_cup VARCHAR, r VARCHAR)
SELECT country FROM table_name_76 WHERE score = 71 - 67 = 138
What Country had a Score of 71-67=138?
CREATE TABLE table_name_76 (country VARCHAR, score VARCHAR)
SELECT class FROM table_name_60 WHERE identifier = "cjbc-1-fm"
what is the class when the identifier is cjbc-1-fm?
CREATE TABLE table_name_60 (class VARCHAR, identifier VARCHAR)
SELECT no_in_season FROM table_2618152_1 WHERE written_by = "Matt Witten , Richard Sweren"
What is the season number of the episode written by Matt Witten , Richard Sweren?
CREATE TABLE table_2618152_1 (no_in_season VARCHAR, written_by VARCHAR)
SELECT MAX(played) FROM table_14323347_1
Name the most played
CREATE TABLE table_14323347_1 (played INTEGER)
SELECT pole_position FROM table_1140076_2 WHERE fastest_lap = "Nelson Piquet" AND constructor = "Ferrari"
What is the pole position for the race with the fastest lap by Nelson Piquet and the constructor is Ferrari?
CREATE TABLE table_1140076_2 (pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR)
SELECT AVG(final_rank) FROM table_name_8 WHERE lose > 10 AND point < 43
Tell me the average final rank for loe more than 10 and point less than 43
CREATE TABLE table_name_8 (final_rank INTEGER, lose VARCHAR, point VARCHAR)
SELECT team FROM table_14003108_1 WHERE stadium = "Borough Briggs"
what's the team with stadium being borough briggs
CREATE TABLE table_14003108_1 (team VARCHAR, stadium VARCHAR)
SELECT res FROM table_name_20 WHERE record = "8-6"
What was the resolution of the fight when Nate Mohr's record was 8-6?
CREATE TABLE table_name_20 (res VARCHAR, record VARCHAR)
SELECT record FROM table_name_18 WHERE loss = "plesac (1-5)"
For the Loss of Plesac (1-5), what is the Record?
CREATE TABLE table_name_18 (record VARCHAR, loss VARCHAR)
SELECT recurring_cast_seasons FROM table_12441518_1 WHERE character = "Nick Lucas"
What seasons does Nick Lucas appear in?
CREATE TABLE table_12441518_1 (recurring_cast_seasons VARCHAR, character VARCHAR)
SELECT opponent FROM table_name_52 WHERE score = "113-124"
Which opponent had a 113-124 score?
CREATE TABLE table_name_52 (opponent VARCHAR, score VARCHAR)
SELECT MIN(win__percentage) FROM table_name_53 WHERE away = "3-2" AND season = "2011"
What was the lowest win% with an away score of 3-2 in 2011 season?
CREATE TABLE table_name_53 (win__percentage INTEGER, away VARCHAR, season VARCHAR)
SELECT location FROM table_name_4 WHERE round = "3" AND event = "ufc 110"
Where is the UFC 110 event with 3 rounds located?
CREATE TABLE table_name_4 (location VARCHAR, round VARCHAR, event VARCHAR)
SELECT nationality FROM table_name_52 WHERE club_team = "linköpings hc (se)"
What is the nationality of a player from linköpings hc (se)?
CREATE TABLE table_name_52 (nationality VARCHAR, club_team VARCHAR)
SELECT AVG(year) FROM table_name_21 WHERE edition = "115th"
What year had an edition of 115th?
CREATE TABLE table_name_21 (year INTEGER, edition VARCHAR)
SELECT COUNT(runner_up) FROM table_178242_7 WHERE international_destination = "Japan"
How many runner-ups were there when the show went to Japan?
CREATE TABLE table_178242_7 (runner_up VARCHAR, international_destination VARCHAR)
SELECT incumbent FROM table_1341423_43 WHERE district = "Texas 22"
Name the incumbent for texas 22 district
CREATE TABLE table_1341423_43 (incumbent VARCHAR, district VARCHAR)
SELECT date FROM table_name_4 WHERE "type" = "type"
What is the date where the type is type?
CREATE TABLE table_name_4 (date VARCHAR)
SELECT imprint FROM table_name_22 WHERE title = "owari no chronicle (ahead series)"
what is the imprint when the title is owari no chronicle (ahead series)?
CREATE TABLE table_name_22 (imprint VARCHAR, title VARCHAR)
SELECT province FROM table_name_15 WHERE location = "260km ese of calgary"
Tell me the province for 260km ese of calgary
CREATE TABLE table_name_15 (province VARCHAR, location VARCHAR)
SELECT flying_hours FROM table_105344_2 WHERE aircraft_kilometers > 64379058.0
How many hours were flown in each of the years where more than 64379058.0 kilometers were flown?
CREATE TABLE table_105344_2 (flying_hours VARCHAR, aircraft_kilometers INTEGER)
SELECT home FROM table_name_16 WHERE visitor = "ny rangers"
What is the home team with the ny rangers as the visitor team?
CREATE TABLE table_name_16 (home VARCHAR, visitor VARCHAR)
SELECT MIN(total) FROM table_name_47 WHERE name = "eoin jess category:articles with hcards" AND scottish_cup > 23
Which Total has a Name of eoin jess category:articles with hcards, and a Scottish Cup larger than 23?
CREATE TABLE table_name_47 (total INTEGER, name VARCHAR, scottish_cup VARCHAR)
SELECT 1 AS st_leg FROM table_name_1 WHERE team_1 = "gor mahia"
What's the 1st leg score when Team 1 was Gor Mahia?
CREATE TABLE table_name_1 (team_1 VARCHAR)
SELECT 2007 FROM table_name_18 WHERE 2010 = "a" AND 2006 = "lq"
Which 2007 has a 2010 of A, and a 2006 of lq?
CREATE TABLE table_name_18 (Id VARCHAR)
SELECT outcome FROM table_name_45 WHERE score = "6–4, 6–4"
What is the Outcome of the game with a Score of 6–4, 6–4?
CREATE TABLE table_name_45 (outcome VARCHAR, score VARCHAR)
SELECT date FROM table_name_88 WHERE away_team = "carlton"
When did the away team carlton play?
CREATE TABLE table_name_88 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_16710829_2 WHERE game = 9
Name the date for game 9
CREATE TABLE table_16710829_2 (date VARCHAR, game VARCHAR)
SELECT episode FROM table_name_62 WHERE viewers__m_ > 5.63 AND households__rating_share_ = "4.5/7"
Name the episode for viewers bigger than 5.63 and the households rating is 4.5/7
CREATE TABLE table_name_62 (episode VARCHAR, viewers__m_ VARCHAR, households__rating_share_ VARCHAR)
SELECT MIN(tries_for) FROM table_name_48 WHERE team = "pau" AND points_against > 103
WHich Tries has a Team of pau and Points against larger than 103?
CREATE TABLE table_name_48 (tries_for INTEGER, team VARCHAR, points_against VARCHAR)
SELECT driver FROM table_20159025_1 WHERE no = "2‡"
Which driver was number 2‡?
CREATE TABLE table_20159025_1 (driver VARCHAR, no VARCHAR)
SELECT district FROM table_27050336_7 WHERE delegate = "McDonough, Patrick L. Pat McDonough"
For delegate is mcdonough, patrick l. pat mcdonough, specify all the district.
CREATE TABLE table_27050336_7 (district VARCHAR, delegate VARCHAR)
SELECT opponent FROM table_name_79 WHERE time = "1:50"
Which opponent has a time of 1:50?
CREATE TABLE table_name_79 (opponent VARCHAR, time VARCHAR)
SELECT city FROM table_name_42 WHERE type_of_game = "friendly" AND opponent = "tunisia"
what city has a game of friendly and an opponent of tunisia?
CREATE TABLE table_name_42 (city VARCHAR, type_of_game VARCHAR, opponent VARCHAR)
SELECT away_team AS score FROM table_name_34 WHERE crowd > 28 OFFSET 536
What team played in front of 28,536 at an away stadium?
CREATE TABLE table_name_34 (away_team VARCHAR, crowd INTEGER)
SELECT weight FROM table WHERE market_name = "Xperia U"
If the market name is Xperia U, what is the weight?
CREATE TABLE table (weight VARCHAR, market_name VARCHAR)
SELECT MIN(week) FROM table_name_1 WHERE attendance = 16 OFFSET 562
What is the least recent week number when the attendance is 16,562?
CREATE TABLE table_name_1 (week INTEGER, attendance VARCHAR)
SELECT 2005 FROM table_name_16 WHERE 2007 = "sf"
Name the 2005 with 2007 of sf
CREATE TABLE table_name_16 (Id VARCHAR)
SELECT COUNT(goals_scored) FROM table_name_15 WHERE draws > 3 AND loses > 1 AND points < 26
What is the total number of goals scored of the club with more than 3 draws, more than 1 loses, and less than 26 points?
CREATE TABLE table_name_15 (goals_scored VARCHAR, points VARCHAR, draws VARCHAR, loses VARCHAR)
SELECT type FROM table_1974782_1 WHERE location = "New London, Connecticut"
What's the type of the school in New London, Connecticut?
CREATE TABLE table_1974782_1 (type VARCHAR, location VARCHAR)
SELECT entrant FROM table_name_24 WHERE year = 1969
What entrant appeared in 1969?
CREATE TABLE table_name_24 (entrant VARCHAR, year VARCHAR)
SELECT height__m_ FROM table_name_66 WHERE city = "frankfurt" AND height__ft_ = 850
What is the height in meters for a building in Frankfurt that is 850 feet tall?
CREATE TABLE table_name_66 (height__m_ VARCHAR, city VARCHAR, height__ft_ VARCHAR)
SELECT entered_service FROM table_name_32 WHERE delivered_as = "t413"
What is the Entered service date of the T413?
CREATE TABLE table_name_32 (entered_service VARCHAR, delivered_as VARCHAR)
SELECT COUNT(extra_points) FROM table_25642873_2 WHERE player = "na"
How many extra points catagories are there for the na player?
CREATE TABLE table_25642873_2 (extra_points VARCHAR, player VARCHAR)
SELECT july FROM table_name_7 WHERE october = "jill de vries"
Who is in July where October is jill de vries?
CREATE TABLE table_name_7 (july VARCHAR, october VARCHAR)
SELECT nickname FROM table_11658094_3 WHERE institution = "Newberry College"
What is the nickname of the newberry college?
CREATE TABLE table_11658094_3 (nickname VARCHAR, institution VARCHAR)
SELECT date FROM table_name_81 WHERE label = "chrysalis, island records"
What is the date of the Chrysalis, Island Records label?
CREATE TABLE table_name_81 (date VARCHAR, label VARCHAR)
SELECT COUNT(height) FROM table_22496374_1 WHERE home_town = "Lagos, Nigeria"
How many height entries are there for players from lagos, nigeria?
CREATE TABLE table_22496374_1 (height VARCHAR, home_town VARCHAR)
SELECT partner FROM table_2127933_3 WHERE opponents = "Harry Johnson Hazel Hotchkiss Wightman"
Who were the partners during times that harry johnson hazel hotchkiss wightman was the opponent?
CREATE TABLE table_2127933_3 (partner VARCHAR, opponents VARCHAR)
SELECT start FROM table_25034983_2 WHERE nickname = "Voice of Muscatine"
In which year did the voice of muscatine show start?
CREATE TABLE table_25034983_2 (start VARCHAR, nickname VARCHAR)
SELECT address_line_1, address_line_2 FROM customers WHERE email_address = "vbogisich@example.org"
Find the address line 1 and 2 of the customer with email "vbogisich@example.org".
CREATE TABLE customers (address_line_1 VARCHAR, address_line_2 VARCHAR, email_address VARCHAR)
SELECT MIN(goals) FROM table_name_24 WHERE name = "kenny miller" AND average < 0.261
What is the low goal for kenny miller with an average smaller than 0.261?
CREATE TABLE table_name_24 (goals INTEGER, name VARCHAR, average VARCHAR)
SELECT teleplay FROM table_name_57 WHERE first_broadcast = "april 10, 1981"
What is Teleplay, when First Broadcast is April 10, 1981?
CREATE TABLE table_name_57 (teleplay VARCHAR, first_broadcast VARCHAR)
SELECT challenge_loser FROM table_name_81 WHERE challenge_winner = "roseny"
Which challenge loser has a Challenge Winner of roseny?
CREATE TABLE table_name_81 (challenge_loser VARCHAR, challenge_winner VARCHAR)
SELECT COUNT(team) FROM table_22056184_1 WHERE position = "7th"
How many teams have 7th position?
CREATE TABLE table_22056184_1 (team VARCHAR, position VARCHAR)
SELECT second_runner_up FROM table_1825751_4 WHERE binibining_pilipinas_world = "Janina San Miguel"
Who was second runner up when Janina San Miguel won Binibining Pilipinas-World?
CREATE TABLE table_1825751_4 (second_runner_up VARCHAR, binibining_pilipinas_world VARCHAR)
SELECT COUNT(census_ranking) FROM table_170961_2 WHERE area_km_2 = "191.43"
at area 191.43 what is the total number of census ranking?
CREATE TABLE table_170961_2 (census_ranking VARCHAR, area_km_2 VARCHAR)