iterate empty query result