Extract SPARQL queries from logs