### Database Schema:
CREATE TABLE paragraphs (
	id	INTEGER	NULL	PRIMARY KEY,
	ParagraphNum	INTEGER	NOT NULL,
	PlainText	TEXT	NOT NULL,
	character_id	INTEGER	NOT NULL,
	chapter_id	INTEGER	NOT NULL	DEFAULT 0,
	foreign key (character_id) references characters (id),
	foreign key (chapter_id) references chapters (id)
);

CREATE TABLE chapters (
	id	INTEGER	NULL	PRIMARY KEY,
	Act	INTEGER	NOT NULL,
	Scene	INTEGER	NOT NULL,
	Description	TEXT	NOT NULL,
	work_id	INTEGER	NOT NULL,
	foreign key (work_id) references works (id)
);

CREATE TABLE works (
	id	INTEGER	NULL	PRIMARY KEY,
	Title	TEXT	NOT NULL,
	LongTitle	TEXT	NOT NULL,
	Date	INTEGER	NOT NULL,
	GenreType	TEXT	NOT NULL
);

CREATE TABLE characters (
	id	INTEGER	NULL	PRIMARY KEY,
	CharName	TEXT	NOT NULL,
	Abbrev	TEXT	NOT NULL,
	Description	TEXT	NOT NULL
);

### User's Query:
From 1593 onwards, what is the difference between the number of comedy works and history works?

### Extra Knowledge:
From 1593 onwards refers to Date > 1593; comedy works and history works refers to GenreType = 'comedy' and GenreType = 'History'
SELECT SUM(IIF(GenreType = 'Comedy', 1, 0)) - SUM(IIF(GenreType = 'History', 1, 0)) FROM works WHERE Date > 1593