pub fn union_all(parts: Vec<String>, max_terms: usize) -> String
UNION ALL of several SELECTs within the backend’s compound-select limit: longer chains are nested (SELECT * FROM (a UNION ALL b …) UNION ALL …).
UNION ALL
SELECT * FROM (a UNION ALL b …) UNION ALL …