DAPLEX
1 program
Added 2026-03-11T17:31:35Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: Functional Data Model Language
Provenance: commit 1864fd9f79 · authored 2026-03-11T18:32:03+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Employee Salary Queries
Provenance: commit 1864fd9f79 · authored 2026-03-11T18:32:03+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
-- DAPLEX schema declarations and query example
-- Functional Data Model by D. W. Shipman (1981)
DECLARE EMPLOYEE() -> ENTITY
DECLARE EMP_NAME(EMPLOYEE) -> STRING
DECLARE SALARY(EMPLOYEE) -> INTEGER
DECLARE DEPT(EMPLOYEE) -> DEPARTMENT
DECLARE DEPARTMENT() -> ENTITY
DECLARE DEPT_NAME(DEPARTMENT) -> STRING
DECLARE MANAGER(DEPARTMENT) -> EMPLOYEE
-- Query: retrieve name and department of employees with salary > 30000
FOR EACH E IN EMPLOYEE()
SUCH THAT SALARY(E) > 30000
PRINT(EMP_NAME(E), DEPT_NAME(DEPT(E)))
-- Query: find all managers earning more than their department average
FOR EACH D IN DEPARTMENT()
FOR EACH M IN MANAGER(D)
SUCH THAT SALARY(M) > AVG(SALARY(E) FOR EACH E IN EMPLOYEE()
SUCH THAT DEPT(E) = D)
PRINT(EMP_NAME(M), DEPT_NAME(D))