11. The system of claim 10 , wherein the demotion in score for a city-to-city relationship is less than a country-to-country relationship.
10. A system comprising: one or more computers and one or more storage devices storing instructions that are operable, when executed by the one or more computers, to cause the one or more computers to perform operations comprising: receiving a query that includes a first geographic entity name; determining that a second geographic entity name that was identified as a substitute term for the first geographic entity name by a first substitution framework, was also identified as not a substitute term for the first geographic entity name by a second substitution framework; revising the query using the second geographic entity name to generate a revised query; obtaining search results that satisfy the revised query; and demoting a score of an obtained search result that corresponds to a document that includes the second geographic entity name based at least in part on determining that the second geographic entity name that was identified as a substitute term for the first geographic entity name by a first substitution framework was also identified as not a substitute term for the first geographic entity name by the second substitution framework.