Create a Drawing Layer to submit queries geometrically
Add a Drawing Layer so that queries are executed with coordinate-ranges returned by the getPath() & getPaths() methods (see third-party demo).
If a box is drawn around the U.S. while "Los Angeles" is specified as a literal argument (noun), accept "Los Angeles" as a Where clause and visualize Los Angeles, only. If a box exists above California while "Fast Food" is the noun, query for "Fast Food" within the coordinate ranges of California. If a box exists above New York while "Los Angeles" exists as a literal argument, return 0.
Flash a 3 second reminder above the input fields to clear the noun box if a filter is not intended, "Clear any names from the noun box if you intend a purely geographic query."
Create a delete shape button (see third party answer & demo). Create a reset button.