learning queries and search forms