compute.c sample program

The compute.c sample program demonstrates how computed results are processed:

This is the query that is sent to the server:

select type, price from titles 
where type like "%cook" 
order by type, price 
compute sum(price) by type 
compute sum(price)

This query returns both regular rows and computed rows. The computed rows are generated by the two compute clauses.