Text this: Learning constraints through partial queries.