Managing Data From Knowledge Bases: Querying and Extraction