2つの図形の面積を比べるSQLクエリを作成してください。
2つの図形を表すテーブルshapesがあります：shape1とshape2。
SELECT IF(SUM(shape1.area)>SUM(shape2.area), 'shape1', 'shape2') AS bigger_shape FROM shapes shape1 JOIN shapes shape2 ON shape1.name <> shape2.name GROUP BY shape1.name