METAMODEL-60: Adding Balendra Singh's contribution to TOP/DISTINCT ms
sql server query rewriting.