Below are the list of utterance and encoded queries . Given a utterance , output the encoded query 

incidents closed on or before this year,"{'type': 'list', 'sumfield': '', 'aggregate': '', 'filter': 'closed_at<=javascript:gs.endOfThisYear()'}
incidents closed on or before next year,"{'type': 'list', 'sumfield': '', 'aggregate': '', 'filter': 'closed_at<=javascript:gs.endOfNextYear()'}"
high priority incidents as pie by category,"{'type': 'pie', 'sumfield': '', 'aggregate': 'COUNT', 'field': 'category', 'filter': 'priority=2'}"
incidents in progress pie by category,"{'type': 'pie', 'sumfield': '', 'aggregate': 'COUNT', 'field': 'category', 'filter': 'state=2'}"
incidents pie 2018 2019 by category,"{'type': 'pie', 'sumfield': '', 'aggregate': 'COUNT', 'field': 'category', 'filter': ""sys_created_onBETWEENjavascript:gs.dateGenerate('2018-01-01','00:00:00')@javascript:gs.dateGenerate('2018-12-31','23:59:59')^ORsys_created_onBETWEENjavascript:gs.dateGenerate('2019-01-01','00:00:00')@javascript:gs.dateGenerate('2019-12-31','23:59:59')""}"
plot active incidents by assignee,"{'type': 'bar', 'sumfield': '', 'aggregate': 'COUNT', 'field': 'assigned_to', 'filter': 'active=true'}"
active incidents by assignee as chart,"{'type': 'bar', 'sumfield': '', 'aggregate': 'COUNT', 'field': 'assigned_to', 'filter': 'active=true'}"
chart incidents by category,"{'type': 'bar', 'sumfield': '', 'aggregate': 'COUNT', 'field': 'category'}"
plot incidents by category,"{'type': 'bar', 'sumfield': '', 'aggregate': 'COUNT', 'field': 'category'}"
Open incidents by priority pie,"{'type': 'pie', 'sumfield': '', 'aggregate': 'COUNT', 'field': 'priority', 'filter': 'active=true'}"
active incidents by priority pie,"{'type': 'pie', 'sumfield': '', 'aggregate': 'COUNT', 'field': 'priority', 'filter': 'active=true'}"
incidents with priority 1$,"{'type': 'list', 'filter': 'priority=1'}"

Utternace: incidents opened in 2018 and assigned to country india

