Statistics of Inquiries and Applications