question
stringlengths 17
201
| answer
stringlengths 21
400
| context
stringlengths 32
286
|
---|---|---|
What is the date of the game when the record is 2-0? | SELECT date FROM table_name_53 WHERE record = "2-0" | CREATE TABLE table_name_53 (date VARCHAR, record VARCHAR) |
Whose permanent address is different from his or her current address? List his or her first name. | SELECT first_name FROM Students WHERE current_address_id <> permanent_address_id | CREATE TABLE Students (first_name VARCHAR, current_address_id VARCHAR, permanent_address_id VARCHAR) |
Find the first name and gender of the student who has allergy to milk but not cat. | SELECT fname, sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Milk" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = "Cat") | CREATE TABLE Student (fname VARCHAR, sex VARCHAR, StuID VARCHAR, Allergy VARCHAR); CREATE TABLE Has_allergy (fname VARCHAR, sex VARCHAR, StuID VARCHAR, Allergy VARCHAR) |
what was the score in the loss to tapani (0-1)? | SELECT score FROM table_name_39 WHERE loss = "tapani (0-1)" | CREATE TABLE table_name_39 (score VARCHAR, loss VARCHAR) |
Which building has 26 storeys? | SELECT building FROM table_name_42 WHERE storeys = 26 | CREATE TABLE table_name_42 (building VARCHAR, storeys VARCHAR) |
The building with 48 floors has an address in Las Vegas of what? | SELECT street_address FROM table_name_2 WHERE floors = 48 | CREATE TABLE table_name_2 (street_address VARCHAR, floors VARCHAR) |
Which tournament had a partner of Erika Sema? | SELECT tournament FROM table_name_9 WHERE partner = "erika sema" | CREATE TABLE table_name_9 (tournament VARCHAR, partner VARCHAR) |
How many years did Germany participate, when the team from Italy was Naples LL Naples and the team from England was London Area Youth London? | SELECT COUNT(germany) FROM table_28562675_3 WHERE italy = "Naples LL Naples" AND england = "London Area Youth London" | CREATE TABLE table_28562675_3 (germany VARCHAR, italy VARCHAR, england VARCHAR) |
When dydek (8) has the highest rebounds who has the highest amount of points? | SELECT high_points FROM table_18904831_6 WHERE high_rebounds = "Dydek (8)" | CREATE TABLE table_18904831_6 (high_points VARCHAR, high_rebounds VARCHAR) |
What was the air date of part 2 of the episode whose part 1 was aired on January 31, 2008? | SELECT part_2 FROM table_13241993_3 WHERE part_1 = "January 31, 2008" | CREATE TABLE table_13241993_3 (part_2 VARCHAR, part_1 VARCHAR) |
What is the total attendance before week 1? | SELECT SUM(attendance) FROM table_name_16 WHERE week < 1 | CREATE TABLE table_name_16 (attendance INTEGER, week INTEGER) |
Who was the opponent on week 5? | SELECT opponent FROM table_name_4 WHERE week = "5" | CREATE TABLE table_name_4 (opponent VARCHAR, week VARCHAR) |
What number episode in the season was watched by 0.49 million U.S. viewers? | SELECT MAX(_number) FROM table_26914076_4 WHERE us_viewers__millions_ = "0.49" | CREATE TABLE table_26914076_4 (_number INTEGER, us_viewers__millions_ VARCHAR) |
Tell me the result for attendance of 54,462 | SELECT result FROM table_name_32 WHERE attendance = "54,462" | CREATE TABLE table_name_32 (result VARCHAR, attendance VARCHAR) |
what is the tries fow when losing bonus is losing bonus? | SELECT tries_for FROM table_name_47 WHERE losing_bonus = "losing bonus" | CREATE TABLE table_name_47 (tries_for VARCHAR, losing_bonus VARCHAR) |
Emerson has what transfer window? | SELECT transfer_window FROM table_name_90 WHERE name = "emerson" | CREATE TABLE table_name_90 (transfer_window VARCHAR, name VARCHAR) |
What was the date when the attendance was 73,529? | SELECT date FROM table_name_89 WHERE attendance = "73,529" | CREATE TABLE table_name_89 (date VARCHAR, attendance VARCHAR) |
Who is the director with the Min Dally Nseek title, and won? | SELECT director FROM table_name_57 WHERE title = "min dally nseek" AND result = "won" | CREATE TABLE table_name_57 (director VARCHAR, title VARCHAR, result VARCHAR) |
Show all customer ids and the number of cards owned by each customer. | SELECT customer_id, COUNT(*) FROM Customers_cards GROUP BY customer_id | CREATE TABLE Customers_cards (customer_id VARCHAR) |
What is the average maximum height of a shell that travels for more than 16.3 seconds at 55° and has a maximum velocity of 2200 ft/s? | SELECT AVG(max_height__ft_) FROM table_name_19 WHERE time_to_ft__m__at_55°__seconds_ > 16.3 AND m_v_ft_s = 2200 | CREATE TABLE table_name_19 (max_height__ft_ INTEGER, time_to_ft__m__at_55°__seconds_ VARCHAR, m_v_ft_s VARCHAR) |
In what City/town was their institution founded in 1860? | SELECT city__town FROM table_name_34 WHERE year_founded = 1860 | CREATE TABLE table_name_34 (city__town VARCHAR, year_founded VARCHAR) |
How many different items appear in the enrollment column that joined in 1931, 1949 1? | SELECT COUNT(enrollment) FROM table_261941_1 WHERE joined = "1931, 1949 1" | CREATE TABLE table_261941_1 (enrollment VARCHAR, joined VARCHAR) |
What season had a downhill of 35 and overall greater than 21? | SELECT COUNT(season) FROM table_name_53 WHERE downhill = "35" AND overall > 21 | CREATE TABLE table_name_53 (season VARCHAR, downhill VARCHAR, overall VARCHAR) |
Which Asian countries have a population that is larger than any country in Africa? | SELECT Name FROM country WHERE Continent = "Asia" AND population > (SELECT MAX(population) FROM country WHERE Continent = "Africa") | CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER) |
What was the score of Game 16? | SELECT score FROM table_name_4 WHERE game = "16" | CREATE TABLE table_name_4 (score VARCHAR, game VARCHAR) |
Who is the winning driver of the race with no race as the winning manufacturer? | SELECT winning_driver FROM table_name_66 WHERE winning_manufacturer = "no race" | CREATE TABLE table_name_66 (winning_driver VARCHAR, winning_manufacturer VARCHAR) |
What is the second leg that Valencia was on? | SELECT 2 AS nd_leg FROM table_name_33 WHERE team_2 = "valencia" | CREATE TABLE table_name_33 (team_2 VARCHAR) |
What is the 2012 club of the cf pos. player? | SELECT 2012 AS _club FROM table_name_85 WHERE pos = "cf" | CREATE TABLE table_name_85 (pos VARCHAR) |
What is Marc's Surname? | SELECT surname FROM table_name_38 WHERE first = "marc" | CREATE TABLE table_name_38 (surname VARCHAR, first VARCHAR) |
Which Lead has Katarina Radonic as Skip? | SELECT lead FROM table_name_10 WHERE skip = "katarina radonic" | CREATE TABLE table_name_10 (lead VARCHAR, skip VARCHAR) |
What is the highest Aug 2013 with a Nov 2011 smaller than 968, and a Jul 2012 with 31, and a Jun 2011 larger than 30? | SELECT MAX(aug_2013) FROM table_name_27 WHERE nov_2011 < 968 AND jul_2012 = 31 AND jun_2011 > 30 | CREATE TABLE table_name_27 (aug_2013 INTEGER, jun_2011 VARCHAR, nov_2011 VARCHAR, jul_2012 VARCHAR) |
What is every year named for the latitude of 66.5N? | SELECT year_named FROM table_16799784_12 WHERE latitude = "66.5N" | CREATE TABLE table_16799784_12 (year_named VARCHAR, latitude VARCHAR) |
How tall is the freshman guard Cetera Degraffenreid? | SELECT height FROM table_name_56 WHERE position = "guard" AND year = "freshman" AND name = "cetera degraffenreid" | CREATE TABLE table_name_56 (height VARCHAR, name VARCHAR, position VARCHAR, year VARCHAR) |
What are the other awards for 1995? | SELECT other_awards FROM table_name_77 WHERE year = 1995 | CREATE TABLE table_name_77 (other_awards VARCHAR, year VARCHAR) |
What is the high 10 profile when high profile is 160? | SELECT high_10_profile FROM table_237036_2 WHERE high_profile = 160 | CREATE TABLE table_237036_2 (high_10_profile VARCHAR, high_profile VARCHAR) |
What was Laura Diaz's score for place t9? | SELECT score FROM table_name_72 WHERE place = "t9" AND player = "laura diaz" | CREATE TABLE table_name_72 (score VARCHAR, place VARCHAR, player VARCHAR) |
What was the main date of the round with 20 fixtures? | SELECT main_date FROM table_name_81 WHERE number_of_fixtures = 20 | CREATE TABLE table_name_81 (main_date VARCHAR, number_of_fixtures VARCHAR) |
How many men from the Ukraine? | SELECT COUNT(event_4_carwalk) FROM table_24302700_2 WHERE nationality = "Ukraine" | CREATE TABLE table_24302700_2 (event_4_carwalk VARCHAR, nationality VARCHAR) |
The driver Jacky Ickx had what time/retired? | SELECT time_retired FROM table_name_64 WHERE driver = "jacky ickx" | CREATE TABLE table_name_64 (time_retired VARCHAR, driver VARCHAR) |
What is the name of the boat that was built by Chatham and Laid down of 25 april 1887? | SELECT name FROM table_name_75 WHERE builder = "chatham" AND laid_down = "25 april 1887" | CREATE TABLE table_name_75 (name VARCHAR, builder VARCHAR, laid_down VARCHAR) |
what is the class of w269ax | SELECT class FROM table_name_90 WHERE call_sign = "w269ax" | CREATE TABLE table_name_90 (class VARCHAR, call_sign VARCHAR) |
What Record has an Event of Pride Shockwave 2004? | SELECT record FROM table_name_22 WHERE event = "pride shockwave 2004" | CREATE TABLE table_name_22 (record VARCHAR, event VARCHAR) |
What is the IcAO of Frankfurt? | SELECT icao FROM table_name_91 WHERE city = "frankfurt" | CREATE TABLE table_name_91 (icao VARCHAR, city VARCHAR) |
What grade did jockey Robby Albarado get when racing with Ravens Pass? | SELECT grade FROM table_name_78 WHERE jockey = "robby albarado" AND runner_up_winner = "ravens pass" | CREATE TABLE table_name_78 (grade VARCHAR, jockey VARCHAR, runner_up_winner VARCHAR) |
Which Class Pos has a Year larger than 1997, a Team of corvette racing, a Class of gt1, and 327 laps? | SELECT class AS pos FROM table_name_25 WHERE year > 1997 AND team = "corvette racing" AND class = "gt1" AND laps = 327 | CREATE TABLE table_name_25 (class VARCHAR, laps VARCHAR, year VARCHAR, team VARCHAR) |
What is the earliest season with an advertising account manager profile? | SELECT MIN(season) FROM table_name_38 WHERE profile = "advertising account manager" | CREATE TABLE table_name_38 (season INTEGER, profile VARCHAR) |
What is the Country, when Place is "1"? | SELECT country FROM table_name_46 WHERE place = "1" | CREATE TABLE table_name_46 (country VARCHAR, place VARCHAR) |
List the id of students who registered some courses and the number of their registered courses? | SELECT T1.student_id, COUNT(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id | CREATE TABLE students (student_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR) |
Which Visiting Team is on december 23? | SELECT visiting_team FROM table_name_59 WHERE date = "december 23" | CREATE TABLE table_name_59 (visiting_team VARCHAR, date VARCHAR) |
Which Score has a Visitor of toronto st. pats, and a Home of montreal canadiens, and a Record of 3–2–0? | SELECT score FROM table_name_83 WHERE visitor = "toronto st. pats" AND home = "montreal canadiens" AND record = "3–2–0" | CREATE TABLE table_name_83 (score VARCHAR, record VARCHAR, visitor VARCHAR, home VARCHAR) |
What's the nickname of the students of the school founded in 1933? | SELECT nickname FROM table_1973816_1 WHERE founded = 1933 | CREATE TABLE table_1973816_1 (nickname VARCHAR, founded VARCHAR) |
What is the average year of the film from France/Hong Kong? | SELECT AVG(year) FROM table_name_74 WHERE country = "france/hong kong" | CREATE TABLE table_name_74 (year INTEGER, country VARCHAR) |
What is the Place of the couple with a Rank smaller than 7 and 514.55 Points? | SELECT SUM(placings) FROM table_name_22 WHERE rank < 7 AND points = 514.55 | CREATE TABLE table_name_22 (placings INTEGER, rank VARCHAR, points VARCHAR) |
What is the number of starts for 1987? | SELECT COUNT(starts) FROM table_13026799_3 WHERE year = 1987 | CREATE TABLE table_13026799_3 (starts VARCHAR, year VARCHAR) |
When was the general foods pga seniors' championship tournament? | SELECT date FROM table_name_66 WHERE tournament = "general foods pga seniors' championship" | CREATE TABLE table_name_66 (date VARCHAR, tournament VARCHAR) |
What is the total number of 2nd place finishes for riders active in years 2009-2010 and more than 0 wins? | SELECT SUM(2 AS nd_pl) FROM table_name_83 WHERE years_active = "2009-2010" AND wins > 0 | CREATE TABLE table_name_83 (years_active VARCHAR, wins VARCHAR) |
Which teams had a difference of 8 between goals scored and goals conceeded | SELECT team FROM table_15420044_1 WHERE difference = "8" | CREATE TABLE table_15420044_1 (team VARCHAR, difference VARCHAR) |
Which game took place on April 22? | SELECT game FROM table_name_8 WHERE date = "april 22" | CREATE TABLE table_name_8 (game VARCHAR, date VARCHAR) |
Name the incumbent for north carolina 9 | SELECT incumbent FROM table_19753079_36 WHERE district = "North Carolina 9" | CREATE TABLE table_19753079_36 (incumbent VARCHAR, district VARCHAR) |
What is the result for Steve Gonzalez? | SELECT result FROM table_22603701_1 WHERE name = "Steve Gonzalez" | CREATE TABLE table_22603701_1 (result VARCHAR, name VARCHAR) |
Who is the main contestant eliminated with a score of 1 + 7 + 5 = 13? | SELECT main_contestant FROM table_name_11 WHERE status = "eliminated" AND scores_by_each_individual_judge = 1 + 7 + 5 = 13 | CREATE TABLE table_name_11 (main_contestant VARCHAR, status VARCHAR, scores_by_each_individual_judge VARCHAR) |
What season had a game in the first round with a result of 4–1, 0–1? | SELECT season FROM table_name_87 WHERE round = "first round" AND result = "4–1, 0–1" | CREATE TABLE table_name_87 (season VARCHAR, round VARCHAR, result VARCHAR) |
What are the names of wines that are more expensive then all wines made in the year 2006? | SELECT Name FROM WINE WHERE Price > (SELECT MAX(Price) FROM WINE WHERE YEAR = 2006) | CREATE TABLE WINE (Name VARCHAR, Price INTEGER, YEAR VARCHAR) |
Who wears the jersey number 20 and has the position of SG? | SELECT player FROM table_name_5 WHERE position = "sg" AND jersey_number_s_ = "20" | CREATE TABLE table_name_5 (player VARCHAR, position VARCHAR, jersey_number_s_ VARCHAR) |
Who wrote the episode with 9.81 million US viewers? | SELECT written_by FROM table_28688313_1 WHERE us_viewers__in_millions_ = "9.81" | CREATE TABLE table_28688313_1 (written_by VARCHAR, us_viewers__in_millions_ VARCHAR) |
Which Round is the lowest one that has a Circuit of donington? | SELECT MIN(round) FROM table_name_18 WHERE circuit = "donington" | CREATE TABLE table_name_18 (round INTEGER, circuit VARCHAR) |
what's the record on july 10? | SELECT record FROM table_name_65 WHERE date = "july 10" | CREATE TABLE table_name_65 (record VARCHAR, date VARCHAR) |
What is Run 1, when Athletes is "Theo Kitt & Friedrich Kuhn"? | SELECT run_1 FROM table_name_89 WHERE athletes = "theo kitt & friedrich kuhn" | CREATE TABLE table_name_89 (run_1 VARCHAR, athletes VARCHAR) |
When doeas Mascot of blue devils in Gary Froebel School? | SELECT joined FROM table_name_74 WHERE mascot = "blue devils" | CREATE TABLE table_name_74 (joined VARCHAR, mascot VARCHAR) |
what is the total number of rounds when method is tko (punches) and time is 0:40? | SELECT COUNT(round) FROM table_name_22 WHERE method = "tko (punches)" AND time = "0:40" | CREATE TABLE table_name_22 (round VARCHAR, method VARCHAR, time VARCHAR) |
What is the Time/ Behind, when Jockey is "Jose Lezcano"? | SELECT time__behind FROM table_name_44 WHERE jockey = "jose lezcano" | CREATE TABLE table_name_44 (time__behind VARCHAR, jockey VARCHAR) |
When was nese malifa born? | SELECT date_of_birth__age_ FROM table_name_19 WHERE player = "nese malifa" | CREATE TABLE table_name_19 (date_of_birth__age_ VARCHAR, player VARCHAR) |
What is the Place of the Player with a To par of –6? | SELECT place FROM table_name_96 WHERE to_par = "–6" | CREATE TABLE table_name_96 (place VARCHAR, to_par VARCHAR) |
What is the points difference for a loss less than 6, and points less than 11? | SELECT points_difference FROM table_name_30 WHERE lost < 6 AND points < 11 | CREATE TABLE table_name_30 (points_difference VARCHAR, lost VARCHAR, points VARCHAR) |
What is the English Name of the Location in Chester? | SELECT name__english_ FROM table_name_76 WHERE location = "chester" | CREATE TABLE table_name_76 (name__english_ VARCHAR, location VARCHAR) |
Name the most game for w 113–96 (ot) | SELECT MAX(game) FROM table_23281862_10 WHERE score = "W 113–96 (OT)" | CREATE TABLE table_23281862_10 (game INTEGER, score VARCHAR) |
What date was the Piston's record at 23-47? | SELECT date FROM table_22822559_8 WHERE record = "23-47" | CREATE TABLE table_22822559_8 (date VARCHAR, record VARCHAR) |
Where is the track located with 18 turns? | SELECT track FROM table_name_34 WHERE turns = "18" | CREATE TABLE table_name_34 (track VARCHAR, turns VARCHAR) |
Who constructed stefan johansson's car with a grid under 14? | SELECT constructor FROM table_name_52 WHERE grid < 14 AND driver = "stefan johansson" | CREATE TABLE table_name_52 (constructor VARCHAR, grid VARCHAR, driver VARCHAR) |
Which FIS Nordic World Ski Championships has Winter Olympics of 1960? | SELECT fis_nordic_world_ski_championships FROM table_name_44 WHERE winter_olympics = "1960" | CREATE TABLE table_name_44 (fis_nordic_world_ski_championships VARCHAR, winter_olympics VARCHAR) |
what is the average bronze when the team is northwest territories and gold is more than 34? | SELECT AVG(bronze) FROM table_name_23 WHERE team = "northwest territories" AND gold > 34 | CREATE TABLE table_name_23 (bronze INTEGER, team VARCHAR, gold VARCHAR) |
How many elections have resulted in retired democratic hold? | SELECT COUNT(party) FROM table_1341453_34 WHERE results = "Retired Democratic hold" | CREATE TABLE table_1341453_34 (party VARCHAR, results VARCHAR) |
What is the number of production codes for episode #73? | SELECT COUNT(prod_code) FROM table_2623498_5 WHERE episode__number = "73" | CREATE TABLE table_2623498_5 (prod_code VARCHAR, episode__number VARCHAR) |
What's the average mph of 1964? | SELECT average_speed__mph_ FROM table_2267465_1 WHERE year = "1964" | CREATE TABLE table_2267465_1 (average_speed__mph_ VARCHAR, year VARCHAR) |
The indicative of si måchan has what as the inverse subjunctive? | SELECT inverse_subjunctive FROM table_name_8 WHERE indicative = "si måchan" | CREATE TABLE table_name_8 (inverse_subjunctive VARCHAR, indicative VARCHAR) |
What Date has a Winning driver of ugo sivocci? | SELECT date FROM table_name_61 WHERE winning_driver = "ugo sivocci" | CREATE TABLE table_name_61 (date VARCHAR, winning_driver VARCHAR) |
What is the largest number of laps with a Grid larger than 14, a Time/Retired of + 2 laps, and a Driver of helmut marko? | SELECT MAX(laps) FROM table_name_30 WHERE grid > 14 AND time_retired = "+ 2 laps" AND driver = "helmut marko" | CREATE TABLE table_name_30 (laps INTEGER, driver VARCHAR, grid VARCHAR, time_retired VARCHAR) |
What was the date during week 13? | SELECT date FROM table_name_70 WHERE week = 13 | CREATE TABLE table_name_70 (date VARCHAR, week VARCHAR) |
What is the smallest amount of freight carried on the road that closed on March 31 and reached super B capacity on February 17 after 2011? | SELECT MIN(freight_carried_s_tonne) FROM table_name_80 WHERE road_closed = "march 31" AND super_b_capacity_reached_[_citation_needed_] = "february 17" AND year > 2011 | CREATE TABLE table_name_80 (freight_carried_s_tonne INTEGER, year VARCHAR, road_closed VARCHAR, super_b_capacity_reached_ VARCHAR, _citation_needed_ VARCHAR) |
How many products are there under the category "Seeds"? | SELECT COUNT(*) FROM products WHERE product_category_code = "Seeds" | CREATE TABLE products (product_category_code VARCHAR) |
What type has an overall length of 1.605 m? | SELECT type FROM table_name_92 WHERE length_overall = "1.605 m" | CREATE TABLE table_name_92 (type VARCHAR, length_overall VARCHAR) |
What is the branding for the station located in san jose del monte? | SELECT branding FROM table_27588823_2 WHERE location = "San Jose Del Monte" | CREATE TABLE table_27588823_2 (branding VARCHAR, location VARCHAR) |
What is the sum of To Par, when Player is "Bob Rosburg"? | SELECT SUM(to_par) FROM table_name_4 WHERE player = "bob rosburg" | CREATE TABLE table_name_4 (to_par INTEGER, player VARCHAR) |
What was the date of game #3? | SELECT date FROM table_27712180_13 WHERE game = 3 | CREATE TABLE table_27712180_13 (date VARCHAR, game VARCHAR) |
How many times is the rank higher than 3 and bronze more than 1? | SELECT COUNT(gold) FROM table_name_82 WHERE rank > 3 AND bronze > 1 | CREATE TABLE table_name_82 (gold VARCHAR, rank VARCHAR, bronze VARCHAR) |
What School did Player Alonzo Mourning attend? | SELECT school FROM table_name_74 WHERE player = "alonzo mourning" | CREATE TABLE table_name_74 (school VARCHAR, player VARCHAR) |
What was the earliest week on September 26, 1965? | SELECT MIN(week) FROM table_name_3 WHERE date = "september 26, 1965" | CREATE TABLE table_name_3 (week INTEGER, date VARCHAR) |
WHAT IS THE SOURCE WITH A TYPE OF TRANSFER AND MEX? | SELECT source FROM table_name_14 WHERE type = "transfer" AND nat = "mex" | CREATE TABLE table_name_14 (source VARCHAR, type VARCHAR, nat VARCHAR) |
What contestant was premiered on July 25? | SELECT contestant_name FROM table_18513028_3 WHERE date_premiered__2009_ = "July 25" | CREATE TABLE table_18513028_3 (contestant_name VARCHAR, date_premiered__2009_ VARCHAR) |
What Car Model has the Manufacturer of Saab, and Driver Dean Randle? | SELECT car_model FROM table_name_35 WHERE manufacturer = "saab" AND driver = "dean randle" | CREATE TABLE table_name_35 (car_model VARCHAR, manufacturer VARCHAR, driver VARCHAR) |
Subsets and Splits