CREATE TABLE photos (id DECIMAL, camera_lens_id DECIMAL, mountain_id DECIMAL, color TEXT, name TEXT)
CREATE TABLE camera_lens (id DECIMAL, brand TEXT, name TEXT, focal_length_mm DECIMAL, max_aperture DECIMAL)
CREATE TABLE mountain (id DECIMAL, name TEXT, height DECIMAL, prominence DECIMAL, range TEXT, country TEXT)

List the brands of lenses that took both a picture of mountains with range 'Toubkal Atlas' and a picture of mountains with range 'Lasta Massif
SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T1.range = 'Toubkal Atlas' INTERSECT SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T1.range = 'Lasta Massif'
SELECT "T3"."brand" FROM "mountain" AS "T1" JOIN "photos" AS "T2" ON "T1"."id" = "T2"."mountain_id" JOIN "camera_lens" AS "T3" ON "T2"."camera_lens_id" = "T3"."id" WHERE "T1"."range" = 'Toubkal Atlas' INTERSECT SELECT "T3"."brand" FROM "mountain" AS "T1" JOIN "photos" AS "T2" ON "T1"."id" = "T2"."mountain_id" JOIN "camera_lens" AS "T3" ON "T2"."camera_lens_id" = "T3"."id" WHERE "T1"."range" = 'Lasta Massif'