This visual trace shows how Django's F expressions work for comparing fields in a query. First, the query starts with all products. Then, using filter(price__gt=F('cost')), Django prepares SQL that compares the price and cost columns directly. The database executes this SQL, returning only products where price is greater than cost. The key is that F('cost') tells Django to use the database field, not a fixed value. This makes the comparison efficient and dynamic. The variable 'queryset' changes from all products to the filtered set after the query runs. Understanding this flow helps beginners see how Django builds and runs queries with field comparisons.