Download examples/duckdb.sql from lynx1231/historical-interest-rate-futures-data-sample: direct link, hf CLI and curl.
- Browser
- Download file 441 Bytes
-
https://huggingface.co/datasets/lynx1231/historical-interest-rate-futures-data-sample/resolve/main/examples/duckdb.sql
- Command line
-
hf download hf://datasets/lynx1231/historical-interest-rate-futures-data-sample/examples/duckdb.sql
-
curl -L -o duckdb.sql https://huggingface.co/datasets/lynx1231/historical-interest-rate-futures-data-sample/resolve/main/examples/duckdb.sql
441 Bytes
| -- Run from the dataset release directory. | |
| SELECT | |
| contract_name, | |
| contract_code, | |
| COUNT(*) AS observations, | |
| MIN(timestamp) AS first_timestamp, | |
| MAX(timestamp) AS last_timestamp | |
| FROM read_parquet('data/minute/*.parquet') | |
| GROUP BY contract_name, contract_code | |
| ORDER BY contract_name, contract_code; | |
| SELECT * | |
| FROM read_parquet('data/daily/*.parquet') | |
| ORDER BY contract_name, contract_code, timestamp | |
| LIMIT 100; | |