Task: Text to Code
Input (English): Step 1: For each row in Ref_Shipping_Agents table, find the corresponding rows in Documents table.
Step 2: for each value of Documents's shipping_agent_code in the results of step 1, calculate number of rows.
Step 3: show each value of Documents's shipping_agent_code in the results of step 1 along with the number of rows with largest value in the results of step 2
Output (English): SELECT T1.shipping_agent_name , Count ( * ) FROM Ref_Shipping_Agents AS T1 JOIN Documents AS T2 ON T1.shipping_agent_code = T2.shipping_agent_code GROUP BY T2.shipping_agent_code ORDER BY Count ( * ) Desc LIMIT 1