1. A method performed by a system comprising one or more computers, the method comprising: determining that a first search query includes a respective text reference to each of one or more predetermined attributes, wherein each attribute is associated with a first entity type, wherein determining that the first search query includes the respective text reference to each of the one or more predetermined attributes comprises determining that at least one term in the first search query appears in an attribute data store, and wherein the attribute data store contains terms from previously submitted queries determined to relate to entities of the first entity type by a query classifier; obtaining search results for the first search query from a search engine, each search result identifying a respective resource; for each of a plurality of the obtained search results, determining an initial score for each of a plurality of entities of the first entity type based on occurrences of names of the entity in the resource identified by the search result; generating a final score for each of the plurality of entities based on the initial scores; and selecting one or more names of entities of the first entity type to include in a response to the first search query based on the final scores.