Task: Text to Code
Input (English): Step 1: For each row in Documents table, find the corresponding rows in Paragraphs table.
Step 2: find the number of rows of each value of Paragraphs's Document_ID in the results of step 1.
Step 3: find Documents's Document_ID in the results of step 1 whose corresponding value in step 2 is greater than or equals 2
Output (English): SELECT T1.Document_ID FROM Documents AS T1 JOIN Paragraphs AS T2 ON T1.Document_ID = T2.Document_ID GROUP BY T2.Document_ID HAVING Count ( * ) > = 2