This illustration is also described in the text. It shows the different ways of running SQL from an application:

The diagram shows how each successive method involves less network traffic.