SPARQL is a query language for RDF data. It has some resemblance to SQL. The Wikidata project uses it for queries. on the Wikibase database.