complete query syntax