Task: Text to Code
Input (English): Step 1: For each row in ship table, find the corresponding rows in death table.
Step 2: find the summation of injured of each value of death's id in the results of step 1.
Step 3: find ship's id, name of step 1 results with largest value in the results of step 2
Output (English): SELECT T1.id , T1.name FROM ship AS T1 JOIN death AS T2 ON T1.id = T2.caused_by_ship_id GROUP BY T2.id ORDER BY Sum ( T2.injured ) Desc LIMIT 1