docs: updated query

main
daniel-michel 2023-11-16 17:24:38 +01:00
parent a50da48eed
commit 74260ea1b8
1 changed files with 2 additions and 6 deletions

View File

@ -23,17 +23,13 @@ First the SPARQL API is used to retrieve upcoming movies using the endpoint "htt
```sql
SELECT
?movie
?movieLabel
(MIN(?releaseDate) as ?minReleaseDate)
WHERE {
?movie wdt:P31 wd:Q11424; # Q11424 is the item for "film"
wdt:P577 ?releaseDate; # P577 is the "publication date" property
wdt:P1476 ?title.
wdt:P577 ?releaseDate. # P577 is the "publication date" property
FILTER (xsd:date(?releaseDate) >= xsd:date("$date"^^xsd:dateTime))
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
GROUP BY ?movie ?movieLabel
GROUP BY ?movie
ORDER BY ?minReleaseDate
LIMIT $limit
```