convert a natural language query to a json schema