DataBase movies.db
tables
directors (movie_id, person_id)
movies (id, title, year)
people
I did it without using any Join, just nesting the conditions.
SELECT people.name FROM people
WHERE people.id IN
(
SELECT stars.person_id FROM stars
WHERE stars.movie_id IN
(
SELECT stars.movie_id FROM stars
WHERE stars.person_id IN
(
SELECT people.id FROM people
WHERE people.name = "Kevin Bacon" AND
people.birth = 1958
)
)
)
AND people.name != "Kevin Bacon"
GROUP BY people.name