No, you are still being very vague on what a client is in your
understanding, and what a server is. That answer did not clear anything up,
really.
Well, presumably the client tells the server to run a query for it. So of
course the server is the one that handles this request. The client in this
case just passes along the query it wants run, and that's it. This is the
only client/server scenario I can imagine, or else you don't really need a
server.
But, in this case, I am not sure why you would ask this question. Since the
whole concept is that the client asks the server to run the query - and the
server goes to the database. So there is no possible way the client can be
handling running the query.
The server, however, is responsible for connecting to the DB, etc, but of
course it is the database server that runs the actual query. The database
server parses the query, creates the execution plans, and goes gets the
data. The server component of an application is not itself a database
engine, it is just handling client requests.
Only the database server/engine ever truly executes queries. It returns the
result set to whoever requested it - in this case the server component of an
application, which in turn hands the data over to the client application.