A collection of examples of SPARQL queries to Wikidata
A collection of several SPARQL queries to WikiData. Those are queries over different domains or topics that I’ve used for different goals. I’ve just decided to make them here public so that I can quickly refer to and reused them in other queries.
Get the “known as” for legal entity types in different countries, e.g.: “LLC”, “Inc.”, “GmbH”, “Ldt.”
Selects all the companies in the DAX TecDAX, MDAX and CDAX, gets their headquarters location’s latitude and longitude and plots them in a map
Get countries and corresponding capital in English and German from Wikidata
Get airports and cities served in English and German from Wikidata
Capitals of counties in the USA, with state and state code, filtered by population
Number of connections served for a given airport
Get all dams in Portugal with the latitude and longitude
Electric power dams in Portugal
SPARQL
wikidata
reference-post