Task: Text to Code
Input (English): Step 1: find the number of rows of each value of Template_ID in Documents table.
Step 2: find Template_ID in Documents table whose corresponding value in step 1 is greater than or equals 2
Output (English): SELECT Template_ID FROM Documents GROUP BY Template_ID HAVING Count ( * ) > = 2