Active Learning by Querying Informative and Representative Examples