📅  最后修改于: 2022-03-11 14:58:59.203000             🧑  作者: Mango
SELECT name,
region
FROM bbc x
WHERE population >
-- this sub query finds each neighbour (not including itself) and returns the max populations multiplied by 3
(SELECT 3 * MAX(population)
FROM bbc y
WHERE x.region = y.region
AND x.name <> y.name)