Measures Concepts
GitHub icon

ddfql

ddfql - Query language

< >

ddfql is a query language created in 2016.

#1223on PLDB 8Years Old


Example from the web:
{ "select": { "key": ["geo", "year"], "value": [ "population", "life_expectancy", "gdp_per_cap", "gov_type" ] }, "from": "datapoints", "where": { "$or": [ { // implicit $and "geo": "$geo", "year": { "$eq": 2015 }, }, { "population": { "$gt": 100000 } }, { "gdp_per_cap": { "$gt": 1000 } }, { "$and": [ // explicit $and { "$and": [ { "geo": โ€œ$geoโ€ } ], // redundant and { "gdp_per_cap": { "$gt": 400, "$lt": 500 } }, { "life_expectancy": { "$gt": 30, "$lt": 70 } } ]} ] }, "order_by": ["life_expectancy", "population"], "join": { "$geo": { key: "geo", where: { "is--country": true, "latitude": { "$lte": 0 }, } } }, "language": "en" }

Language features

Feature Supported Token Example
Comments โœ“
// A comment
Line Comments โœ“ //
// A comment
Semantic Indentation X

View source

- Build the next great programming language ยท Search ยท Add Language ยท Features ยท Creators ยท Resources ยท About ยท Blog ยท Acknowledgements ยท Queries ยท Stats ยท Sponsor ยท Day 605 ยท feedback@pldb.io ยท Logout