diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt
index 46fabbe..8c84726 100644
a
|
b
|
To select all blogs that contain an entry with *"Lennon"* in the headline
|
575 | 575 | Blog.objects.filter(entry__headline__contains='Lennon').filter( |
576 | 576 | entry__pub_date__year=2008) |
577 | 577 | |
578 | | In this second example, the first filter restricted the queryset to all those |
579 | | blogs linked to that particular type of entry. The second filter restricted |
580 | | the set of blogs *further* to those that are also linked to the second type of |
581 | | entry. The entries select by the second filter may or may not be the same as |
582 | | the entries in the first filter. We are filtering the ``Blog`` items with each |
583 | | filter statement, not the ``Entry`` items. |
| 578 | Suppose there is only one blog that had both entries containing *"Lennon"* and |
| 579 | entries from 2008, but that none of the entries from 2008 contained *"Lennon"*. |
| 580 | Then, the first query would not return any blogs, but the second query would |
| 581 | return that one blog. |
| 582 | |
| 583 | In the second example, the first filter restricted the queryset to all those |
| 584 | blogs linked to entries with *"Lennon"* in the headline. The second filter |
| 585 | restricted the set of blogs *further* to those that are also linked to entries |
| 586 | that were published in 2008. The entries selected by the second filter may or |
| 587 | may not be the same as the entries in the first filter. We are filtering the |
| 588 | ``Blog`` items with each filter statement, not the ``Entry`` items. |
584 | 589 | |
585 | 590 | All of this behavior also applies to |
586 | 591 | :meth:`~django.db.models.query.QuerySet.exclude`: all the conditions in a |