-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy path5a.sql
More file actions
24 lines (23 loc) · 675 Bytes
/
5a.sql
File metadata and controls
24 lines (23 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SELECT MIN(t.title) AS typical_european_movie
FROM company_type AS ct,
info_type AS it,
movie_companies AS mc,
movie_info AS mi,
title AS t
WHERE ct.kind = 'production companies'
AND mc.note LIKE '%(theatrical)%'
AND mc.note LIKE '%(France)%'
AND mi.info IN ('Sweden',
'Norway',
'Germany',
'Denmark',
'Swedish',
'Denish',
'Norwegian',
'German')
AND t.production_year > 2005
AND t.id = mi.movie_id
AND t.id = mc.movie_id
AND mc.movie_id = mi.movie_id
AND ct.id = mc.company_type_id
AND it.id = mi.info_type_id;