In this tutorial, you can learn how to leverage Scilab for data mining on a dataset from the UN:

// Loading data
S = csvRead('data_UN.csv',',','.', 'string');
D = csvRead('data_UN.csv');
data = D(2:$,:);
// Sorting the population size
[p,ind] = gsort(data(:,5));
// Plotting the Pie Chart
pie([p(1:10);sum(p(11:$))])
legend([S(ind(1:10)+1,2);"Rest of the world"]);

Read on scilab.io