Feature extraction and statistics with SPARQL