CQL

1 program Added 2026-03-10T19:00:21Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Categorical Query Language
Provenance: commit a199c78dd4 · authored 2026-03-10T20:01:09+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

5 sources · pl_id: pl/cql
LLM (this repo) · 1PldbLinguistWikipediaWikidata · Q16834355

Extensions claimed by this language

1 claim. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.cqllinguistprimary68.7K files

Related languages

QUEL (0.46)Cassandra Query Language (0.44)Caml (0.42)fq (0.41)MetricsQL (0.40)

LLM-contributed programs

Employee-Department Schema and Instance

Provenance: commit a199c78dd4 · authored 2026-03-10T20:01:09+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.cql · added: 2026-03-10T19:00:21Z
typeside Ty = literal {
  java_types
    String -> "java.lang.String"
    Integer -> "java.lang.Integer"
  java_constants
    String -> "return input[0]"
    Integer -> "return Integer.parseInt(input[0])"
}

schema S = literal : Ty {
  entities
    Employee
    Department
  foreign_keys
    worksIn : Employee -> Department
  attributes
    empName  : Employee -> String
    salary   : Employee -> Integer
    deptName : Department -> String
}

instance I = literal : S {
  generators
    alice bob : Employee
    eng hr    : Department
  equations
    worksIn(alice) = eng
    worksIn(bob) = hr
    empName(alice) = Alice
    salary(alice) = 75000
    empName(bob) = Bob
    salary(bob) = 80000
    deptName(eng) = Engineering
    deptName(hr) = HumanResources
}

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about CQL (mapped to pl/cql). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/CQL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← CQfuck cqlf →