A small collection of simple usages of the dataview query language.
---
Show all games in the games folder, sorted by rating, with some metadata:
Query
```
TABLE
time-played AS "Time Played",
length AS "Length",
rating AS "Rating"
FROM "games"
SORT rating DESC
```
Output
---
List games which are MOBAs or CRPGs.
Query
```
LIST FROM #games/mobas OR #games/crpg
```
Output
---
List all tasks in un-completed projects:
---
List all of the files in the `books` folder, sorted by the last time you modified the file:
Query
```
TABLE file.mtime AS "Last Modified"
FROM "books"
SORT file.mtime DESC
```
Output
---
List all files which have a date in their title (of the form `yyyy-mm-dd`), and list them by date order.
Query
```
LIST file.day WHERE file.day
SORT file.day DESC
```
Output
- [2021-08-07](https://blacksmithgu.github.io/obsidian-dataview/resources/examples/#): August 07, 2021
- [2020-08-10](https://blacksmithgu.github.io/obsidian-dataview/resources/examples/#): August 10, 2020