Index: tests/regressiontests/queries/models.py
===================================================================
--- tests/regressiontests/queries/models.py	(revision 9904)
+++ tests/regressiontests/queries/models.py	(working copy)
@@ -1044,6 +1044,13 @@
 >>> Annotation.objects.filter(notes__in=Note.objects.filter(note="n1").values_list('note').values('id'))
 [<Annotation: a1>]
 
+Bug #10352: Query.as_sql() breaks annotations
+>>> from django.db.models import Count
+>>> test = Item.objects.annotate(cnt=Count("id"))
+>>> test.as_sql()
+>>> test[0].cnt
+1
+
 """}
 
 # In Python 2.3 and the Python 2.6 beta releases, exceptions raised in __len__
