Task: Text to Code
Input (English): SQL: SELECT Template_ID FROM Documents GROUP BY Template_ID HAVING Count ( * ) > = 2
Feedback: Replace template id , documents table with document id , paragraphs table In step 1 and template id with document id in Step 2.
Output (English): SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*)  >=  2