          });
                selectors.queries.map((_, i) => {
                    selectors.queries[i] = e.target.checked
                });
                renderSummary(filtered_data);
                updateHistory();
            });
            th_checkbox.appendChild(checkbox);
            details_head.appendChild(th_checkbox);
            details_head.appendChild(document.createElement('th'));
        }

        /// Table header
        sorted_indices.map(idx => {
            const elem = filtered_d