A machine-readable medium including instructions which when executed in a processing system process a query input by a user to a dialog system by: receiving the query from the user, wherein the query requests data related to a domain; decomposing the query into a plurality of constraints, each constraint of the plurality of constraints representing a characteristic of the domain, the domain compri