def debug_query_result(rows: Sequence[Any]) -> None:
    """Writes a query result to the log."""
    log.info("Retrieved {} rows", len(rows))
    for i in range(len(rows)):
        log.info("Row {}: {}", i, rows[i])