extended example with multiple fetches for one query