# Extract Wikidata Entities for Top Universities

**Use case:** 

Retrieve detailed data on top universities, including QIDs, labels, descriptions, and claims from Wikidata for better insights.

## Input

```json
{
  "mode": "entities",
  "query": "Douglas Adams",
  "qids": [
    "Q4614",
    "Q49210",
    "Q35794",
    "Q4952",
    "Q168756",
    "Q34433",
    "Q13371",
    "Q21578",
    "Q152087",
    "Q654115"
  ],
  "sparql": "SELECT ?person ?personLabel ?birthDate ?birthPlaceLabel ?deathDate ?occupationLabel ?awardLabel ?countryLabel WHERE {\n  VALUES ?award { wd:Q38104 wd:Q35637 wd:Q44585 wd:Q37922 wd:Q80061 wd:Q135444 }\n  ?person wdt:P166 ?award .\n  ?person wdt:P31 wd:Q5 .\n  OPTIONAL { ?person wdt:P569 ?birthDate . }\n  OPTIONAL { ?person wdt:P19 ?birthPlace . }\n  OPTIONAL { ?person wdt:P570 ?deathDate . }\n  OPTIONAL { ?person wdt:P106 ?occupation . }\n  OPTIONAL { ?person wdt:P27 ?country . }\n  SERVICE wikibase:label { bd:serviceParam wikibase:language \"en\". }\n}\nORDER BY DESC(?birthDate)\nLIMIT 300",
  "language": "en",
  "maxResults": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "qid": {
    "label": "QID",
    "format": "text"
  },
  "label": {
    "label": "Label",
    "format": "text"
  },
  "description": {
    "label": "Description",
    "format": "text"
  },
  "instanceOf": {
    "label": "Instance Of",
    "format": "text"
  },
  "aliases": {
    "label": "Aliases",
    "format": "text"
  },
  "wikidataUrl": {
    "label": "Wikidata URL",
    "format": "link"
  },
  "claims": {
    "label": "Claims (JSON)",
    "format": "text"
  },
  "sparqlBindings": {
    "label": "SPARQL Bindings",
    "format": "text"
  },
  "mode": {
    "label": "Mode",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [Wikidata Scraper — Search, Entities & SPARQL API](https://apify.com/logiover/wikidata-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/logiover/wikidata-scraper) to learn more, explore other use cases, and run it yourself.