OperationalError: no such table: summary
SELECT COUNT(*) FROM ( SELECT * FROM ticket, summary ) AS tab