What is the document id with least number of paragraphs?
CREATE TABLE Paragraphs (document_id VARCHAR)
SELECT TOP 1 document_id FROM Paragraphs GROUP BY document_id ORDER BY COUNT(*)
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Paragraphs (document_id VARCHAR) Question: What is the document id with least number of paragraphs? [/INST] SELECT TOP 1 document_id FROM Paragraphs GROUP BY document_id ORDER BY COUNT(*) </s>