Question: what is the  capital city of libya which  Barbary pirates was also based primarily in 
Sentence (from "Tripoli"): Tripoli, with its metropolitan area, has a population of about 1.1 million people.
Relevant evidence: No