A service that offers the ability to run complex queries on items in Wikidata.

This is running experimental code. It might generate wrong results, or die horribly at any time.
Also, the data used here is from WikiData "dumps", so it can be a few hours old.

Example queries

For the impatient.

Query construction

A query URL is always based on:

/api?q=QUERY
QUERY is a plain-text string, vaguely similar to an SQL query (Note: you can also use POST). It currently offers the following commands:

Note

&props=P1,P2,...

Adding a "props" parameter to the URL will return the specified statements (items, properties, and their values) for the resulting items.

&noitems=1

Suppresses the item list; still returns number of items and property values (if requested).

Results