question
stringlengths 12
243
| answer
stringlengths 18
557
| context
stringlengths 27
489
|
---|---|---|
What was the score when the opponent was Detroit Pistons? | SELECT score FROM table_name_46 WHERE opponent = "detroit pistons" | CREATE TABLE table_name_46 (score VARCHAR, opponent VARCHAR) |
When was the first election in the district whose incumbent is Ron Kind? | SELECT MIN(first_elected) FROM table_1341423_49 WHERE incumbent = "Ron Kind" | CREATE TABLE table_1341423_49 (first_elected INTEGER, incumbent VARCHAR) |
What was Domenico Fioravanti's time on lane 5? | SELECT time FROM table_name_66 WHERE lane = 5 AND name = "domenico fioravanti" | CREATE TABLE table_name_66 (time VARCHAR, lane VARCHAR, name VARCHAR) |
What team has Carlos Sánchez as a goalkeeper and an average below 1.12? | SELECT team FROM table_name_64 WHERE average < 1.12 AND goalkeeper = "carlos sánchez" | CREATE TABLE table_name_64 (team VARCHAR, average VARCHAR, goalkeeper VARCHAR) |
Which Year is the lowest one that has a Length of 3:50? | SELECT MIN(year) FROM table_name_17 WHERE length = "3:50" | CREATE TABLE table_name_17 (year INTEGER, length VARCHAR) |
What NFL Teams have the player Aaron Williams? | SELECT nfl_team FROM table_2508633_11 WHERE player = "Aaron Williams" | CREATE TABLE table_2508633_11 (nfl_team VARCHAR, player VARCHAR) |
Who plays at Victoria Park? | SELECT away_team FROM table_name_14 WHERE venue = "victoria park" | CREATE TABLE table_name_14 (away_team VARCHAR, venue VARCHAR) |
what is the score when the time is 2:22? | SELECT score FROM table_name_47 WHERE time = "2:22" | CREATE TABLE table_name_47 (score VARCHAR, time VARCHAR) |
What is the most frequent status of bookings? | SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE BOOKINGS (Status_Code VARCHAR) |
Who has the high assists when April 26 is the date? | SELECT high_assists FROM table_23285761_11 WHERE date = "April 26" | CREATE TABLE table_23285761_11 (high_assists VARCHAR, date VARCHAR) |
What was the Pick Number when the position was wide receiver, the college was Southern Miss with an overall less than 186? | SELECT AVG(pick__number) FROM table_name_54 WHERE position = "wide receiver" AND college = "southern miss" AND overall < 186 | CREATE TABLE table_name_54 (pick__number INTEGER, overall VARCHAR, position VARCHAR, college VARCHAR) |
Attendance of 60,671 had what average week? | SELECT AVG(week) FROM table_name_9 WHERE attendance = 60 OFFSET 671 | CREATE TABLE table_name_9 (week INTEGER, attendance VARCHAR) |
Which Total has a Nation of japan, and a Silver larger than 2? | SELECT MIN(total) FROM table_name_55 WHERE nation = "japan" AND silver > 2 | CREATE TABLE table_name_55 (total INTEGER, nation VARCHAR, silver VARCHAR) |
Find the name and id of accounts whose checking balance is below the maximum checking balance. | SELECT T1.custid, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT MAX(balance) FROM checking) | CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE checking (balance INTEGER); CREATE TABLE checking (custid VARCHAR, balance INTEGER) |
What is Result, when Venue is Götzis , Austria? | SELECT result FROM table_name_77 WHERE venue = "götzis , austria" | CREATE TABLE table_name_77 (result VARCHAR, venue VARCHAR) |
Who is the replaced by when the date of vacancy is 27 december 2010? | SELECT replaced_by FROM table_26998135_2 WHERE date_of_vacancy = "27 December 2010" | CREATE TABLE table_26998135_2 (replaced_by VARCHAR, date_of_vacancy VARCHAR) |
What was the Opponent when the Cavaliers had a Record of 3-9? | SELECT opponent FROM table_name_10 WHERE record = "3-9" | CREATE TABLE table_name_10 (opponent VARCHAR, record VARCHAR) |
Which Land (sqmi) has a Water (sqmi) smaller than 0.04, and a Longitude of -96.794706? | SELECT MIN(land___sqmi__) FROM table_name_79 WHERE water__sqmi_ < 0.04 AND longitude = -96.794706 | CREATE TABLE table_name_79 (land___sqmi__ INTEGER, water__sqmi_ VARCHAR, longitude VARCHAR) |
Which Career Games has a Date and Opponent of 12/15/92 vs. uw–milwaukee? | SELECT career_games FROM table_name_58 WHERE date_and_opponent = "12/15/92 vs. uw–milwaukee" | CREATE TABLE table_name_58 (career_games VARCHAR, date_and_opponent VARCHAR) |
What is the laid down date of the destroyer with a r29 pennant? | SELECT laid_down FROM table_name_37 WHERE pennant = "r29" | CREATE TABLE table_name_37 (laid_down VARCHAR, pennant VARCHAR) |
what is the birth date when the weight (kg) is 100 and the world rank is 2? | SELECT birth_date FROM table_name_3 WHERE weight__kg_ = "100" AND world_rank = "2" | CREATE TABLE table_name_3 (birth_date VARCHAR, weight__kg_ VARCHAR, world_rank VARCHAR) |
Who is the player who was born before 1980 who currently plays for the Toronto Raptors? | SELECT player FROM table_name_22 WHERE year_born < 1980 AND current_club = "toronto raptors" | CREATE TABLE table_name_22 (player VARCHAR, year_born VARCHAR, current_club VARCHAR) |
What is Points Against, when Try Diff is +22? | SELECT points_against FROM table_name_88 WHERE try_diff = "+22" | CREATE TABLE table_name_88 (points_against VARCHAR, try_diff VARCHAR) |
What round has a pick less than 189, with arizona cardinals as the NFL club? | SELECT round FROM table_name_4 WHERE pick < 189 AND nfl_club = "arizona cardinals" | CREATE TABLE table_name_4 (round VARCHAR, pick VARCHAR, nfl_club VARCHAR) |
Who is the player that attended Notre Dame with a pick smaller than 304? | SELECT player FROM table_name_76 WHERE pick__number < 304 AND college = "notre dame" | CREATE TABLE table_name_76 (player VARCHAR, pick__number VARCHAR, college VARCHAR) |
Show names of actors and names of musicals they are in. | SELECT T1.Name, T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID | CREATE TABLE actor (Name VARCHAR, Musical_ID VARCHAR); CREATE TABLE musical (Name VARCHAR, Musical_ID VARCHAR) |
On what deate was the centerfold featured Luci Victoria? | SELECT date FROM table_1566852_4 WHERE centerfold_model = "Luci Victoria" | CREATE TABLE table_1566852_4 (date VARCHAR, centerfold_model VARCHAR) |
What is the clean & jerk when the total (kg) is more than 204, and snatch is more than 98? | SELECT AVG(clean_) & _jerk FROM table_name_8 WHERE total__kg_ > 204 AND snatch > 98 | CREATE TABLE table_name_8 (_jerk VARCHAR, clean_ INTEGER, total__kg_ VARCHAR, snatch VARCHAR) |
Among all the claims, what is the amount claimed in the claim with the least amount settled? List both the settlement amount and claim amount. | SELECT Amount_Settled, Amount_Claimed FROM Claims ORDER BY Amount_Settled LIMIT 1 | CREATE TABLE Claims (Amount_Settled VARCHAR, Amount_Claimed VARCHAR) |
Show the nicknames of schools that are not in division 1. | SELECT Nickname FROM school_details WHERE Division <> "Division 1" | CREATE TABLE school_details (Nickname VARCHAR, Division VARCHAR) |
How many million u.s. viewers watched the episode with a production code of 2t7004? | SELECT us_viewers__millions_ FROM table_2828803_1 WHERE production_code = "2T7004" | CREATE TABLE table_2828803_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR) |
How many people were in attendance at Hawthorn's home match? | SELECT MIN(crowd) FROM table_name_60 WHERE home_team = "hawthorn" | CREATE TABLE table_name_60 (crowd INTEGER, home_team VARCHAR) |
What Unit has a Ratio of 1/32? | SELECT unit FROM table_name_55 WHERE ratio = "1/32" | CREATE TABLE table_name_55 (unit VARCHAR, ratio VARCHAR) |
What is the PI code in the hindhead area? | SELECT pi_code FROM table_name_54 WHERE area = "hindhead" | CREATE TABLE table_name_54 (pi_code VARCHAR, area VARCHAR) |
How many sets of presenters are there for the version of the show named Celebrity Masterchef? | SELECT COUNT(presenter_s_) FROM table_28190363_1 WHERE name = "Celebrity MasterChef" | CREATE TABLE table_28190363_1 (presenter_s_ VARCHAR, name VARCHAR) |
What year was she ranked 16th with over 12 points? | SELECT COUNT(year) FROM table_name_29 WHERE rank = "16th" AND points > 12 | CREATE TABLE table_name_29 (year VARCHAR, rank VARCHAR, points VARCHAR) |
What's the 1861 had 1991 in 1881 and a year of year? | SELECT 1861 FROM table_name_82 WHERE "year" = "year" AND 1881 = "1991" | CREATE TABLE table_name_82 (Id VARCHAR) |
what is the game when on november 27? | SELECT SUM(game) FROM table_name_26 WHERE november = 27 | CREATE TABLE table_name_26 (game INTEGER, november VARCHAR) |
What is the engine for the car with 3 points? | SELECT engine FROM table_name_6 WHERE points = 3 | CREATE TABLE table_name_6 (engine VARCHAR, points VARCHAR) |
What was the 2007 result in the district where the incumbent was elected in 1996? | SELECT 2007 AS _result FROM table_13618584_1 WHERE elected = 1996 | CREATE TABLE table_13618584_1 (elected VARCHAR) |
What is the Score for the 1999 fifa confederations cup? | SELECT score FROM table_name_96 WHERE competition = "1999 fifa confederations cup" | CREATE TABLE table_name_96 (score VARCHAR, competition VARCHAR) |
Name the most maidens when e.r. 5.11 | SELECT MAX(maidens) FROM table_15700367_4 WHERE er = "5.11" | CREATE TABLE table_15700367_4 (maidens INTEGER, er VARCHAR) |
What is the Rank with a Goal number smaller than 66? | SELECT rank FROM table_name_29 WHERE goals < 66 | CREATE TABLE table_name_29 (rank VARCHAR, goals INTEGER) |
What is the total number of cuts made for events played more than 3 times and under 2 top-25s? | SELECT COUNT(cuts_made) FROM table_name_44 WHERE events > 3 AND top_25 < 2 | CREATE TABLE table_name_44 (cuts_made VARCHAR, events VARCHAR, top_25 VARCHAR) |
How many violent crimes occurred the year that the index was 191037? | SELECT violent FROM table_25271777_1 WHERE index = 191037 | CREATE TABLE table_25271777_1 (violent VARCHAR, index VARCHAR) |
Name the title for 2005 | SELECT title FROM table_name_2 WHERE year = 2005 | CREATE TABLE table_name_2 (title VARCHAR, year VARCHAR) |
Show the names of employees that work for companies with sales bigger than 200. | SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID WHERE T3.Sales_in_Billion > 200 | CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR); CREATE TABLE company (Company_ID VARCHAR, Sales_in_Billion INTEGER); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR) |
List all employees in the circulation history of the document with id 1. List the employee's name. | SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id WHERE Circulation_History.document_id = 1 | CREATE TABLE Circulation_History (Id VARCHAR); CREATE TABLE Employees (Id VARCHAR) |
What format has conference iii as the conference? | SELECT format FROM table_name_42 WHERE conference = "conference iii" | CREATE TABLE table_name_42 (format VARCHAR, conference VARCHAR) |
Name the player for 1945 for player | SELECT "player" FROM table_19611329_1 WHERE year_inducted = 1945 AND inducted_as = "player" | CREATE TABLE table_19611329_1 (year_inducted VARCHAR, inducted_as VARCHAR) |
What was the date when the attendance was 48,041? | SELECT date FROM table_name_84 WHERE attendance = "48,041" | CREATE TABLE table_name_84 (date VARCHAR, attendance VARCHAR) |
For how many years was the location at Beijing? | SELECT SUM(year) FROM table_name_7 WHERE location = "beijing" | CREATE TABLE table_name_7 (year INTEGER, location VARCHAR) |
What was the time when the score was 0–3? | SELECT time FROM table_name_67 WHERE score = "0–3" | CREATE TABLE table_name_67 (time VARCHAR, score VARCHAR) |
What is the least amount of points made by Herrnstein? | SELECT MIN(points) FROM table_14342210_6 WHERE player = "Herrnstein" | CREATE TABLE table_14342210_6 (points INTEGER, player VARCHAR) |
What is the plural if the singular is nyaqot? | SELECT plural FROM table_name_47 WHERE singular = "nyaqot" | CREATE TABLE table_name_47 (plural VARCHAR, singular VARCHAR) |
What is the total number drawn with goals against less than 55, and a total of 14 losses? | SELECT COUNT(drawn) FROM table_name_75 WHERE goals_against < 55 AND lost = 14 | CREATE TABLE table_name_75 (drawn VARCHAR, goals_against VARCHAR, lost VARCHAR) |
Which deputy took office in 1976? | SELECT name FROM table_name_97 WHERE took_office = "1976" | CREATE TABLE table_name_97 (name VARCHAR, took_office VARCHAR) |
When was the 'first season of current spell in top division' if the first season in top division is in 1964-65? | SELECT first_season_of_current_spell_in_top_division FROM table_18143210_2 WHERE first_season_in_top_division = "1964-65" | CREATE TABLE table_18143210_2 (first_season_of_current_spell_in_top_division VARCHAR, first_season_in_top_division VARCHAR) |
What was the record for game 59? | SELECT record FROM table_name_61 WHERE game = 59 | CREATE TABLE table_name_61 (record VARCHAR, game VARCHAR) |
What are all the order #s from the week "top 6"? | SELECT order__number FROM table_29756040_1 WHERE week__number = "Top 6" | CREATE TABLE table_29756040_1 (order__number VARCHAR, week__number VARCHAR) |
How many ansi codes are there for latitude 48.142938? | SELECT COUNT(ansi_code) FROM table_18600760_20 WHERE latitude = "48.142938" | CREATE TABLE table_18600760_20 (ansi_code VARCHAR, latitude VARCHAR) |
When was the game played at the Western Oval venue? | SELECT date FROM table_name_23 WHERE venue = "western oval" | CREATE TABLE table_name_23 (date VARCHAR, venue VARCHAR) |
Find the number of reviews. | SELECT COUNT(*) FROM review | CREATE TABLE review (Id VARCHAR) |
What is the highest number of losses for teams with under 3 draws and 51 points? | SELECT MAX(loses) FROM table_name_49 WHERE draws < 3 AND points = 51 | CREATE TABLE table_name_49 (loses INTEGER, draws VARCHAR, points VARCHAR) |
Who was the winner in the 2008 season? | SELECT winner FROM table_name_53 WHERE season = 2008 | CREATE TABLE table_name_53 (winner VARCHAR, season VARCHAR) |
What is every media type for the Psychedelic Trance genre? | SELECT media_type FROM table_23829490_1 WHERE genre = "Psychedelic Trance" | CREATE TABLE table_23829490_1 (media_type VARCHAR, genre VARCHAR) |
What is the location with a frequency (kHz) greater than 1370? | SELECT licensed_location FROM table_name_44 WHERE frequency__khz_ > 1370 | CREATE TABLE table_name_44 (licensed_location VARCHAR, frequency__khz_ INTEGER) |
How many games were played against when the team played more than 22 total? | SELECT SUM(against) FROM table_name_97 WHERE played > 22 | CREATE TABLE table_name_97 (against INTEGER, played INTEGER) |
What year was Patricia Mcgourty nominated for a Tony award? | SELECT year FROM table_name_41 WHERE nominee = "patricia mcgourty" AND award = "tony award" | CREATE TABLE table_name_41 (year VARCHAR, nominee VARCHAR, award VARCHAR) |
Which position does number 23 play? | SELECT position FROM table_name_13 WHERE number = "23" | CREATE TABLE table_name_13 (position VARCHAR, number VARCHAR) |
What is the city_code of the city that the most students live in? | SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE STUDENT (city_code VARCHAR) |
What Edition had a Result of 6-3, 6-0, 6-2? | SELECT edition FROM table_name_45 WHERE result = "6-3, 6-0, 6-2" | CREATE TABLE table_name_45 (edition VARCHAR, result VARCHAR) |
What's the Ball Diameter with the Location oof El Manati, and the Period of 1200 BCE? | SELECT ball_diameter FROM table_name_87 WHERE location = "el manati" AND period = "1200 bce" | CREATE TABLE table_name_87 (ball_diameter VARCHAR, location VARCHAR, period VARCHAR) |
What is the canton of grande dixence? | SELECT canton FROM table_10020178_1 WHERE name = "Grande Dixence" | CREATE TABLE table_10020178_1 (canton VARCHAR, name VARCHAR) |
Which Runner(s)-up has a Date of may 19, 1973? | SELECT runner_s__up FROM table_name_21 WHERE date = "may 19, 1973" | CREATE TABLE table_name_21 (runner_s__up VARCHAR, date VARCHAR) |
What is the date Listed of the Bridge Built CA.1876? | SELECT listed FROM table_name_46 WHERE built = "ca.1876" | CREATE TABLE table_name_46 (listed VARCHAR, built VARCHAR) |
What was the Result of the game dated 21st? | SELECT result FROM table_name_97 WHERE date = "21st" | CREATE TABLE table_name_97 (result VARCHAR, date VARCHAR) |
Who was the home team when the VFL played Kardinia Park? | SELECT home_team AS score FROM table_name_27 WHERE venue = "kardinia park" | CREATE TABLE table_name_27 (home_team VARCHAR, venue VARCHAR) |
Find the first names of all instructors who have taught some course and the course description. | SELECT T2.emp_fname, T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code | CREATE TABLE course (crs_description VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR, crs_code VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR) |
What was Robin's score when she was eliminated? | SELECT robin FROM table_21234111_10 WHERE result = "Eliminated" | CREATE TABLE table_21234111_10 (robin VARCHAR, result VARCHAR) |
What is the title when u.s. viewers (millions) is 3.97? | SELECT title FROM table_18481791_3 WHERE us_viewers__in_millions_ = "3.97" | CREATE TABLE table_18481791_3 (title VARCHAR, us_viewers__in_millions_ VARCHAR) |
What was the 2006 population for the local government area of alexandrina council whose rank was smaller than 19? | SELECT AVG(population_2006_census) FROM table_name_66 WHERE local_government_area = "alexandrina council" AND rank < 19 | CREATE TABLE table_name_66 (population_2006_census INTEGER, local_government_area VARCHAR, rank VARCHAR) |
What is the name of the bike that has a grid number smaller than 9 with a time of +7.764? | SELECT bike FROM table_name_18 WHERE grid < 9 AND time = "+7.764" | CREATE TABLE table_name_18 (bike VARCHAR, grid VARCHAR, time VARCHAR) |
Who was the shooter for the WC Beijing event? | SELECT shooter FROM table_name_75 WHERE event = "wc beijing" | CREATE TABLE table_name_75 (shooter VARCHAR, event VARCHAR) |
What was the average round for john markham draft pick? | SELECT AVG(round) FROM table_name_36 WHERE player = "john markham" | CREATE TABLE table_name_36 (round INTEGER, player VARCHAR) |
What is the last year a sponsorship ended? | SELECT MAX(sponsorship) AS Ended FROM table_28005160_2 | CREATE TABLE table_28005160_2 (sponsorship INTEGER) |
Which Player has a Round of 7, a Pick larger than 187, a Nationality of united states, and a Draft larger than 2000? | SELECT player FROM table_name_16 WHERE round = "7" AND pick > 187 AND nationality = "united states" AND draft > 2000 | CREATE TABLE table_name_16 (player VARCHAR, draft VARCHAR, nationality VARCHAR, round VARCHAR, pick VARCHAR) |
Which record had a visitor of New Jersey Devils on May 7? | SELECT record FROM table_name_78 WHERE visitor = "new jersey devils" AND date = "may 7" | CREATE TABLE table_name_78 (record VARCHAR, visitor VARCHAR, date VARCHAR) |
What are the network protocols for the model that has been discontinued in favor of the EN1700? | SELECT network_protocols FROM table_1300080_1 WHERE notes = "Discontinued in favor of the en1700" | CREATE TABLE table_1300080_1 (network_protocols VARCHAR, notes VARCHAR) |
What was the average capacity for vélez sársfield? | SELECT AVG(capacity) FROM table_name_72 WHERE home_team_s_ = "vélez sársfield" | CREATE TABLE table_name_72 (capacity INTEGER, home_team_s_ VARCHAR) |
What was Bert Yancey's finishing score to par? | SELECT to_par FROM table_name_21 WHERE player = "bert yancey" | CREATE TABLE table_name_21 (to_par VARCHAR, player VARCHAR) |
What was the decay for the sattelite that was 180 kg? | SELECT decay FROM table_2150068_1 WHERE mass_kg_ = "180" | CREATE TABLE table_2150068_1 (decay VARCHAR, mass_kg_ VARCHAR) |
Who has the high points when 3-2 is the series? | SELECT high_points FROM table_22871316_11 WHERE series = "3-2" | CREATE TABLE table_22871316_11 (high_points VARCHAR, series VARCHAR) |
Who was the clerk when the highway commissioner was Albert Lewis? | SELECT clerk FROM table_name_14 WHERE highway_commissioners = "albert lewis" | CREATE TABLE table_name_14 (clerk VARCHAR, highway_commissioners VARCHAR) |
What position does Bobby Micho, who was picked later than 186 others, play on the Broncos team? | SELECT position FROM table_name_30 WHERE pick__number > 186 AND player = "bobby micho" | CREATE TABLE table_name_30 (position VARCHAR, pick__number VARCHAR, player VARCHAR) |
What is the highest Goal Difference when the goals against were less than 76, and the position larger than 5, and a Played larger than 30? | SELECT MAX(goal_difference) FROM table_name_72 WHERE goals_against < 76 AND position > 5 AND played > 30 | CREATE TABLE table_name_72 (goal_difference INTEGER, played VARCHAR, goals_against VARCHAR, position VARCHAR) |
How many draws has a Club of real valladolid that was played less than 38? | SELECT MAX(draws) FROM table_name_35 WHERE club = "real valladolid" AND played < 38 | CREATE TABLE table_name_35 (draws INTEGER, club VARCHAR, played VARCHAR) |
What is the voltage range (v) if the clock multiplier is 3x or 2x mode and part number is a80486dx4wb-100? | SELECT COUNT(voltage_range__v_) FROM table_15261_1 WHERE clock_multiplier = "3X or 2X mode" AND part_number = "A80486DX4WB-100" | CREATE TABLE table_15261_1 (voltage_range__v_ VARCHAR, clock_multiplier VARCHAR, part_number VARCHAR) |
If the latitude is 77°28′n, what is the longitude? | SELECT longitude FROM table_name_27 WHERE latitude = "77°28′n" | CREATE TABLE table_name_27 (longitude VARCHAR, latitude VARCHAR) |
The EVA that started on 8 July 12:38 went for how long? | SELECT duration FROM table_name_83 WHERE start_date_time = "8 july 12:38" | CREATE TABLE table_name_83 (duration VARCHAR, start_date_time VARCHAR) |
Subsets and Splits