Q&A for those using, extending or developing Emacs
DECLARE @From DATETIME = convert(DATETIME, '##StartDate?2015-04-01##') DECLARE @To DATETIME = dateadd(mm, 3, @From) SELECT TOP ##Count:int?50## A.Id AS [Post Link], A.CreationDate AS Created, U.Id as [User Link], A.Score AS [Answer Score], Q.Score AS [Question Score], Q.ViewCount AS Views FROM Posts A INNER JOIN Posts Q ON A.ParentId = Q.Id INNER JOIN Users U on A.OwnerUserId = U.Id WHERE A.PostTypeId = 2 AND A.CreationDate BETWEEN @From AND @To ORDER BY A.Score DESC