answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT name FROM table_name_35 WHERE laps = 50 AND grid > 9 AND team = "jim beam racing" AND time_retired = "+ 18.0s"
What is Name, when Laps is "50", when Grid is greater than 9, when Team is "Jim Beam Racing", and when Time/Retired is "+ 18.0s"?
CREATE TABLE table_name_35 (name VARCHAR, time_retired VARCHAR, team VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT MAX(year) FROM table_name_37 WHERE event = "fila world championships" AND venue = "toledo, united states" AND weight_class__kg_ < 97
What is the highest year that has fila world championships as the event, with toledo, united states as the venue, and a weight class (kg) less than 97?
CREATE TABLE table_name_37 (year INTEGER, weight_class__kg_ VARCHAR, event VARCHAR, venue VARCHAR)
SELECT modulation FROM table_name_91 WHERE power = "32 kw horizontal" AND channel = 32
On channel 32, when the power is 32 kW horizontal, what is the modulation?
CREATE TABLE table_name_91 (modulation VARCHAR, power VARCHAR, channel VARCHAR)
SELECT field_goals FROM table_24850487_5 WHERE player = "Stacey Thomas"
How many field goals did Stacey Thomas have?
CREATE TABLE table_24850487_5 (field_goals VARCHAR, player VARCHAR)
SELECT date FROM table_name_86 WHERE number_ & _name = "no. 37817"
What is the date with identifying number of No. 37817?
CREATE TABLE table_name_86 (date VARCHAR, number_ VARCHAR, _name VARCHAR)
SELECT guest_3 FROM table_20466963_9 WHERE guest_1 = "Jim White"
On episodes where guest 1 is Jim White, who was guest 3?
CREATE TABLE table_20466963_9 (guest_3 VARCHAR, guest_1 VARCHAR)
SELECT waterford_score FROM table_name_7 WHERE year < 1963 AND competition = "all-ireland hurling final replay"
What is the waterford score that has a year prior to 1963, with all-ireland hurling final replay as the competition?
CREATE TABLE table_name_7 (waterford_score VARCHAR, year VARCHAR, competition VARCHAR)
SELECT place FROM table_name_86 WHERE country = "australia" AND player = "craig parry"
Player Craig Parry of Australia is in what place number?
CREATE TABLE table_name_86 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT founded FROM table_name_41 WHERE location = "balayan, batangas"
When was the Balayan, Batangas campus founded?
CREATE TABLE table_name_41 (founded VARCHAR, location VARCHAR)
SELECT us_hot_100 FROM table_name_81 WHERE album = "i like you"
Name the US Hot 100 for album of I like you
CREATE TABLE table_name_81 (us_hot_100 VARCHAR, album VARCHAR)
SELECT drawn FROM table_name_5 WHERE club = "senghenydd rfc"
How many draws are for the club senghenydd rfc?
CREATE TABLE table_name_5 (drawn VARCHAR, club VARCHAR)
SELECT stage AS winner FROM table_275506_1 WHERE distance__km_ = "162.5"
Who is every stage winner at the distance of 162.5?
CREATE TABLE table_275506_1 (stage VARCHAR, distance__km_ VARCHAR)
SELECT name FROM table_189598_7 WHERE land_area__km²_ = "14.85"
When 14.85 kilometers squared is the land area what is the name?
CREATE TABLE table_189598_7 (name VARCHAR, land_area__km²_ VARCHAR)
SELECT MAX(year) FROM table_name_3 WHERE director = "christophe barratier"
Director of christophe barratier had what highest year?
CREATE TABLE table_name_3 (year INTEGER, director VARCHAR)
SELECT region_4_release FROM table_name_99 WHERE region_2_release = "july 20, 2009"
What is the region 4 release that has july 20, 2009 as the region 2?
CREATE TABLE table_name_99 (region_4_release VARCHAR, region_2_release VARCHAR)
SELECT time_retired FROM table_name_28 WHERE laps < 51 AND team = "newman-haas racing"
What is the Time/Retired of the Newman-Haas Racing team in under 51 laps?
CREATE TABLE table_name_28 (time_retired VARCHAR, laps VARCHAR, team VARCHAR)
SELECT icao FROM table_name_28 WHERE country = "norway"
what is the icao when the country is norway?
CREATE TABLE table_name_28 (icao VARCHAR, country VARCHAR)
SELECT COUNT(home_team) AS score FROM table_29090919_1 WHERE away_team = "Fitzroy"
How many scores were there for the home team when the away team was fitzroy?
CREATE TABLE table_29090919_1 (home_team VARCHAR, away_team VARCHAR)
SELECT result FROM table_19508635_1 WHERE original_artist = "Dolly Parton"
Name the result for dolly parton
CREATE TABLE table_19508635_1 (result VARCHAR, original_artist VARCHAR)
SELECT week_5 FROM table_name_10 WHERE week_1 = "mysti sherwood"
What Week 5 has a Week 1 of mysti sherwood?
CREATE TABLE table_name_10 (week_5 VARCHAR, week_1 VARCHAR)
SELECT record FROM table_name_66 WHERE score = "1–0"
What was the record at the game when the score was 1–0?
CREATE TABLE table_name_66 (record VARCHAR, score VARCHAR)
SELECT T1.Name FROM STAFF AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = "US museum"
What is the name of the staff that is in charge of the attraction named "US museum"?
CREATE TABLE TOURIST_ATTRACTIONS (Tourist_Attraction_ID VARCHAR, Name VARCHAR); CREATE TABLE STAFF (Name VARCHAR, Tourist_Attraction_ID VARCHAR)
SELECT score FROM table_name_56 WHERE visitor = "bucks" AND home = "timberwolves"
Name the score for bucks with timberwolves
CREATE TABLE table_name_56 (score VARCHAR, visitor VARCHAR, home VARCHAR)
SELECT total_fat FROM table_name_63 WHERE polyunsaturated_fat = "11g" AND monounsaturated_fat = "73g"
What is the total fat when the polyunsaturated fat is 11g, and Monounsaturated fat is 73g?
CREATE TABLE table_name_63 (total_fat VARCHAR, polyunsaturated_fat VARCHAR, monounsaturated_fat VARCHAR)
SELECT score FROM table_23486853_8 WHERE location = "Verizon Center" AND points = 68
What is every score at the location of Verizon Center and points of 68?
CREATE TABLE table_23486853_8 (score VARCHAR, location VARCHAR, points VARCHAR)
SELECT original_nfl_team FROM table_name_86 WHERE conf = "midwestern"
What was the original nfl team that the player was in from the midwestern conference?
CREATE TABLE table_name_86 (original_nfl_team VARCHAR, conf VARCHAR)
SELECT score FROM table_name_69 WHERE date = "february 8"
What was the score of the game on February 8?
CREATE TABLE table_name_69 (score VARCHAR, date VARCHAR)
SELECT T1.city, COUNT(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY COUNT(*) DESC LIMIT 1
Which city lives most of staffs? List the city name and number of staffs.
CREATE TABLE Staff (staff_address_id VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR)
SELECT album FROM table_name_95 WHERE note = "tape [tape echo]"
Which album had the note tape [tape echo]?
CREATE TABLE table_name_95 (album VARCHAR, note VARCHAR)
SELECT venue FROM table_name_89 WHERE away_team = "south melbourne"
Which Venue has an Away team of south melbourne?
CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR)
SELECT COUNT(bronze) FROM table_name_8 WHERE rank = "11" AND total < 1
What is the total number of Bronze when rank is 11, and the total is less than 1?
CREATE TABLE table_name_8 (bronze VARCHAR, rank VARCHAR, total VARCHAR)
SELECT record FROM table_name_70 WHERE date = "13 may"
What is the record of the game on 13 May?
CREATE TABLE table_name_70 (record VARCHAR, date VARCHAR)
SELECT night_rank FROM table_11354111_3 WHERE rating = "6.2"
what's the night rank with rating of 6.2
CREATE TABLE table_11354111_3 (night_rank VARCHAR, rating VARCHAR)
SELECT english_title FROM table_name_18 WHERE director = "zhang yimou"
Name the english title for zhang yimou
CREATE TABLE table_name_18 (english_title VARCHAR, director VARCHAR)
SELECT Amount_Settled, Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1
Among all the claims, what is the settlement amount of the claim with the largest claim amount? List both the settlement amount and claim amount.
CREATE TABLE Claims (Amount_Settled VARCHAR, Amount_Claimed VARCHAR)
SELECT COUNT(derivatives) FROM table_11869952_1 WHERE rocket_launch = "Rehbar-5"
Which authority has a rocket launch called rehbar-5?
CREATE TABLE table_11869952_1 (derivatives VARCHAR, rocket_launch VARCHAR)
SELECT division FROM table_name_90 WHERE conference = "afc" AND wins = 10 AND appearances > 18
Which division in the AFC Conference had a total of 10 wins and appeared more than 18 times?
CREATE TABLE table_name_90 (division VARCHAR, appearances VARCHAR, conference VARCHAR, wins VARCHAR)
SELECT COUNT(league_goals) FROM table_name_14 WHERE name = "simon charlton"
What is the total number of league goals for Simon Charlton?
CREATE TABLE table_name_14 (league_goals VARCHAR, name VARCHAR)
SELECT MIN(win_percentage) FROM table_name_63 WHERE games_behind = "6½" AND wins > 77
What is the lowest percentage of wins for 6½ games and more than 77 total wins?
CREATE TABLE table_name_63 (win_percentage INTEGER, games_behind VARCHAR, wins VARCHAR)
SELECT venue FROM table_name_81 WHERE date = "27 may 2000"
What venue was on 27 May 2000?
CREATE TABLE table_name_81 (venue VARCHAR, date VARCHAR)
SELECT detroit__dtw_ FROM table_name_36 WHERE year < 2010 AND kalamazoo__azo_ = "$517.32"
Before the year 2010, and when Kalamazoo had a passenger fare of $517.32, what was the passenger fare for Detroit?
CREATE TABLE table_name_36 (detroit__dtw_ VARCHAR, year VARCHAR, kalamazoo__azo_ VARCHAR)
SELECT bats_throws FROM table_name_9 WHERE players = "ryan overland"
What side does Ryan Overland Bat/Throws from?
CREATE TABLE table_name_9 (bats_throws VARCHAR, players VARCHAR)
SELECT kickoff_[a_] FROM table_name_68 WHERE date = "september 15, 1985"
What time was the kickoff on September 15, 1985?
CREATE TABLE table_name_68 (kickoff_ VARCHAR, a_ VARCHAR, date VARCHAR)
SELECT date FROM table_name_98 WHERE home = "mavericks"
What is the date of the game when the Mavericks were the home team?
CREATE TABLE table_name_98 (date VARCHAR, home VARCHAR)
SELECT engine FROM table_name_87 WHERE year > 1984
What engine was used after 1984?
CREATE TABLE table_name_87 (engine VARCHAR, year INTEGER)
SELECT SUM(league_goals) FROM table_name_43 WHERE league_cup_goals < 0
How many League Goals have League Cup Goals smaller than 0?
CREATE TABLE table_name_43 (league_goals INTEGER, league_cup_goals INTEGER)
SELECT SUM(goal_difference) FROM table_name_27 WHERE goals_against < 33 AND draws > 13
What is the goal difference sum that has goals against smaller than 33, draws larger than 13?
CREATE TABLE table_name_27 (goal_difference INTEGER, goals_against VARCHAR, draws VARCHAR)
SELECT ticket_price_s_ FROM table_18277458_2 WHERE date_s_ = "August 7, 1987"
How much do the tickets cost for August 7, 1987?
CREATE TABLE table_18277458_2 (ticket_price_s_ VARCHAR, date_s_ VARCHAR)
SELECT MAX(points) FROM table_name_42 WHERE chassis = "focus rs wrc 08 and 09" AND stage_wins > 91
what is the highest points when the chassis is focus rs wrc 08 and 09 and the stage wins is more than 91?
CREATE TABLE table_name_42 (points INTEGER, chassis VARCHAR, stage_wins VARCHAR)
SELECT week_2 FROM table_name_63 WHERE week_4 = "piret aava"
What Week 2 has a Week 4 of piret aava?
CREATE TABLE table_name_63 (week_2 VARCHAR, week_4 VARCHAR)
SELECT country FROM table_name_31 WHERE score = 70 - 66 = 136
Which country has a score of 70-66=136?
CREATE TABLE table_name_31 (country VARCHAR, score VARCHAR)
SELECT MAX(grid) FROM table_name_59 WHERE team = "new zealand"
what is the highest grid for new zealand?
CREATE TABLE table_name_59 (grid INTEGER, team VARCHAR)
SELECT position FROM table_name_83 WHERE hometown = "beaumont, texas"
What is the position of the player from Beaumont, Texas?
CREATE TABLE table_name_83 (position VARCHAR, hometown VARCHAR)
SELECT ground FROM table_27409644_1 WHERE club = "Flora Tallinn"
What is the home location for team flora tallinn?
CREATE TABLE table_27409644_1 (ground VARCHAR, club VARCHAR)
SELECT 2007 FROM table_name_26 WHERE 2009 = "1r" AND tournament = "us open"
What is the 2007 value with 1r in 2009 in the US Open?
CREATE TABLE table_name_26 (tournament VARCHAR)
SELECT team FROM table_27755603_11 WHERE date = "April 6"
What team did they play on april 6?
CREATE TABLE table_27755603_11 (team VARCHAR, date VARCHAR)
SELECT MAX(points) FROM table_14342367_11
Who scored the most points?
CREATE TABLE table_14342367_11 (points INTEGER)
SELECT score FROM table_name_29 WHERE team = "@ memphis"
What is Score, when Team is "@ Memphis"?
CREATE TABLE table_name_29 (score VARCHAR, team VARCHAR)
SELECT time FROM table_name_81 WHERE score = "65-19"
What is the Time with a Score that is 65-19?
CREATE TABLE table_name_81 (time VARCHAR, score VARCHAR)
SELECT COUNT(drawn) FROM table_13018091_1 WHERE club = "Widnes Vikings"
How many teams drew the widnes vikings?
CREATE TABLE table_13018091_1 (drawn VARCHAR, club VARCHAR)
SELECT category FROM table_name_72 WHERE cancelable = "yes" AND type = "drag"
When Cancelable of yes, and a Type of drag, what was the Category?
CREATE TABLE table_name_72 (category VARCHAR, cancelable VARCHAR, type VARCHAR)
SELECT age_at_time_of_disaster FROM table_name_81 WHERE date_of_birth = "24 september 1851"
How old was the person born 24 September 1851 at the time of disaster?
CREATE TABLE table_name_81 (age_at_time_of_disaster VARCHAR, date_of_birth VARCHAR)
SELECT week_5 FROM table_name_36 WHERE week_2 = "audra lynn"
When Audra Lynn was featured in Week 2, who was the cyber girl for Week 5?
CREATE TABLE table_name_36 (week_5 VARCHAR, week_2 VARCHAR)
SELECT weight FROM table_name_88 WHERE denomination = "one rupee"
What weight has one rupee as the denomination?
CREATE TABLE table_name_88 (weight VARCHAR, denomination VARCHAR)
SELECT executed_person FROM table_2861364_1 WHERE under_president = "Charles de Gaulle" AND crime = "Child murder after rape"
who was executed during president charles de gaulle's reign for thr crime of child murder after rape?
CREATE TABLE table_2861364_1 (executed_person VARCHAR, under_president VARCHAR, crime VARCHAR)
SELECT COUNT(name) FROM table_25762852_1 WHERE runs = "118"
How many resorts have 118 runs?
CREATE TABLE table_25762852_1 (name VARCHAR, runs VARCHAR)
SELECT COUNT(wins) FROM table_name_57 WHERE top_10 < 6 AND cuts_made > 7 AND top_5 = 0
How many Wins have a Top-10 smaller than 6, and Cuts made larger than 7, and a Top-5 of 0?
CREATE TABLE table_name_57 (wins VARCHAR, top_5 VARCHAR, top_10 VARCHAR, cuts_made VARCHAR)
SELECT school FROM table_name_58 WHERE location = "alexandria"
what is the school with the location of alexandria?
CREATE TABLE table_name_58 (school VARCHAR, location VARCHAR)
SELECT COUNT(built) FROM table_name_55 WHERE floors < 22 AND rank < 8 AND name = "white, mediacityuk"
What is the total number of Built, when Floors is less than 22, when Rank is less than 8, and when Name is White, Mediacityuk?
CREATE TABLE table_name_55 (built VARCHAR, name VARCHAR, floors VARCHAR, rank VARCHAR)
SELECT AVG(week) FROM table_name_26 WHERE attendance = "22,286"
What is the week for the stadium that had an attendance of 22,286?
CREATE TABLE table_name_26 (week INTEGER, attendance VARCHAR)
SELECT club_team FROM table_11803648_21 WHERE player = "Jarrod Maidens"
What club team did JArrod Maidens play for?
CREATE TABLE table_11803648_21 (club_team VARCHAR, player VARCHAR)
SELECT drawn FROM table_name_78 WHERE played = "20" AND club = "rhigos rfc"
Which Drawn has a Played of 20, and a Club of rhigos rfc?
CREATE TABLE table_name_78 (drawn VARCHAR, played VARCHAR, club VARCHAR)
SELECT MIN(game) FROM table_name_42 WHERE october = 21
Name the least game for october 21
CREATE TABLE table_name_42 (game INTEGER, october VARCHAR)
SELECT tournament FROM table_name_11 WHERE winning_score = –9(69 - 72 - 68 - 70 = 279)
What tournament had a Winning score of –9 (69-72-68-70=279)?
CREATE TABLE table_name_11 (tournament VARCHAR, winning_score VARCHAR)
SELECT date FROM table_name_66 WHERE location_attendance = "verizon center 7,587"
Which Date has a Location/Attendance of verizon center 7,587?
CREATE TABLE table_name_66 (date VARCHAR, location_attendance VARCHAR)
SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Success' INTERSECT SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Fail'
Which services type had both successful and failure event details?
CREATE TABLE EVENTS (service_id VARCHAR, event_details VARCHAR); CREATE TABLE services (service_type_code VARCHAR, service_id VARCHAR)
SELECT points FROM table_23812628_1 WHERE team__number1 = "Zamora"
Name the points for zamora
CREATE TABLE table_23812628_1 (points VARCHAR, team__number1 VARCHAR)
SELECT partner FROM table_name_68 WHERE date = 1979 AND opponents_in_the_final = "heinz günthardt bob hewitt"
Name the Partner which is in 1979, and Opponents in the final of heinz günthardt bob hewitt?
CREATE TABLE table_name_68 (partner VARCHAR, date VARCHAR, opponents_in_the_final VARCHAR)
SELECT MIN(pick) FROM table_name_13 WHERE position = "of" AND team = "san francisco giants" AND player = "arturo mcdowell"
What is the lowest pick number for Arturo McDowell, who plays the OF position for the San Francisco Giants?
CREATE TABLE table_name_13 (pick INTEGER, player VARCHAR, position VARCHAR, team VARCHAR)
SELECT location_attendance FROM table_22654073_10 WHERE record = "51-15"
What was the location and attendance for the game against the team with a 51-15 record with the Cavaliers?
CREATE TABLE table_22654073_10 (location_attendance VARCHAR, record VARCHAR)
SELECT MIN(gold) FROM table_name_88 WHERE rank > 4 AND total < 1
What's the lowest Gold if the Rank is over 4 but the Total is less than 1?
CREATE TABLE table_name_88 (gold INTEGER, rank VARCHAR, total VARCHAR)
SELECT release_price___usd__ FROM table_name_3 WHERE release_date = "2008 q3" AND part_number_s_ = "nu80579ez009c"
Release date of 2008 q3, and a Part number(s) of nu80579ez009c has what Release price ( USD )?
CREATE TABLE table_name_3 (release_price___usd__ VARCHAR, release_date VARCHAR, part_number_s_ VARCHAR)
SELECT viewers__in_millions_ FROM table_1601935_1 WHERE run_time = "18:00"
How many millions of viewers were there for the episode with a run time of 18:00?
CREATE TABLE table_1601935_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR)
SELECT high_points FROM table_23248967_10 WHERE game = 78
Who scored the high points in game 78?
CREATE TABLE table_23248967_10 (high_points VARCHAR, game VARCHAR)
SELECT 102 AS kg FROM table_name_56 WHERE world_record = "olympic record" AND "snatch" = "snatch"
What's the 102kg when the snatch was snatch and the olympic record was the world record?
CREATE TABLE table_name_56 (world_record VARCHAR)
SELECT COUNT(report) FROM table_1140080_2 WHERE date = "29 April"
what's the total number of report with date  29 april
CREATE TABLE table_1140080_2 (report VARCHAR, date VARCHAR)
SELECT score FROM table_name_91 WHERE competition = "2014 world cup qualification"
What was the score of the 2014 World Cup Qualification?
CREATE TABLE table_name_91 (score VARCHAR, competition VARCHAR)
SELECT year FROM table_name_10 WHERE result = "1st" AND venue = "melbourne , australia" AND extra = "100 m"
Result of 1st, and a Venue of melbourne , australia, and a Extra of 100 m happened in which year?
CREATE TABLE table_name_10 (year VARCHAR, extra VARCHAR, result VARCHAR, venue VARCHAR)
SELECT Orchestra FROM orchestra WHERE NOT Orchestra_ID IN (SELECT Orchestra_ID FROM performance)
List the names of orchestras that have no performance.
CREATE TABLE orchestra (Orchestra VARCHAR, Orchestra_ID VARCHAR); CREATE TABLE performance (Orchestra VARCHAR, Orchestra_ID VARCHAR)
SELECT venue FROM table_13514348_7 WHERE captain = "Luke Blackwell"
Which venue did Luke Blackwell serve as captain?
CREATE TABLE table_13514348_7 (venue VARCHAR, captain VARCHAR)
SELECT attendance FROM table_name_21 WHERE opponent = "phillies 1:15 pm" AND date = "april 9"
When the phillies 1:15 pm played on April 9, what was the attendance?
CREATE TABLE table_name_21 (attendance VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT nationality FROM table_name_9 WHERE round = 7
What nationality is the pick from round 7?
CREATE TABLE table_name_9 (nationality VARCHAR, round VARCHAR)
SELECT average FROM table_10621256_1 WHERE high_score = 120
what's the average where high score is 120
CREATE TABLE table_10621256_1 (average VARCHAR, high_score VARCHAR)
SELECT format FROM table_11222744_3 WHERE title = "Callanetics: 10 years Younger In 10 Hours"
what is the format of "callanetics: 10 years younger in 10 hours"?
CREATE TABLE table_11222744_3 (format VARCHAR, title VARCHAR)
SELECT game FROM table_18894744_5 WHERE date = "June 16"
Name the game for june 16
CREATE TABLE table_18894744_5 (game VARCHAR, date VARCHAR)
SELECT Nationality FROM journalist ORDER BY Years_working DESC LIMIT 1
What is the nationality of the journalist with the largest number of years working?
CREATE TABLE journalist (Nationality VARCHAR, Years_working VARCHAR)
SELECT winning_constructor FROM table_name_24 WHERE name = "grand prix du salon"
Who was the winning constructor of the Grand Prix Du Salon ?
CREATE TABLE table_name_24 (winning_constructor VARCHAR, name VARCHAR)
SELECT call_sign FROM table_name_70 WHERE frequency_mhz = 89.5
Name the call sign with frequency of 89.5
CREATE TABLE table_name_70 (call_sign VARCHAR, frequency_mhz VARCHAR)
SELECT MAX(lane) FROM table_name_31 WHERE rank > 2 AND nationality = "guyana"
What is the highest lane with a rank larger than 2 in Guyana?
CREATE TABLE table_name_31 (lane INTEGER, rank VARCHAR, nationality VARCHAR)
SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top < 2
Show the famous titles of the artists with both volumes that lasted more than 2 weeks on top and volumes that lasted less than 2 weeks on top.
CREATE TABLE artist (Famous_Title VARCHAR, Artist_ID VARCHAR); CREATE TABLE volume (Artist_ID VARCHAR, Weeks_on_Top INTEGER)