Query builder

Build a filter over CDEK's data without writing SQL. Every field and operator here is explicitly allow-listed server-side — see the migration plan's Phase 2 notes on why this replaces the legacy app's raw-SQL query tool.

One row per trial × sponsoring-organization × linked-drug combination — legacy's default query-tool view. A trial with multiple sponsors or drugs naturally produces multiple rows; use "Return distinct" thinking when interpreting counts.

Field reference — Trials (merged)

New to the query builder? See the guide for how conditions work.

FieldTypeOperators
Trial numbernumberis, is not, >, >=, <, <=, is empty, is not empty
Trial phaseenumis, is not, is one of
Trial phase groupenumis, is not, is one of
Trial typestringis, is not, contains, is empty, is not empty
Treatment groupenumis, is not, is one of
Completion datedateis, >, >=, <, <=, is empty, is not empty
Enrollmentnumberis, is not, >, >=, <, <=, is empty, is not empty
Start datedateis, >, >=, <, <=, is empty, is not empty
Org relationship typeenumis, is not, is one of
API IDnumberis, is not, >, >=, <, <=, is empty, is not empty
Drug namestringis, is not, contains, is empty, is not empty
Drug typeenumis, is not, is one of
Drug type categoryenumis, is not, is one of
Drug approval statusenumis, is not, is one of
Drug max phaseenumis, is not, is one of
Drug FDA approvedbooleanis
Drug FDA approval yearnumberis, is not, >, >=, <, <=, is empty, is not empty
Drug US marketedbooleanis
Drug US marketing yearnumberis, is not, >, >=, <, <=, is empty, is not empty
Organizationnumberis, is not, >, >=, <, <=, is empty, is not empty
Organization namestringis, is not, contains, is empty, is not empty
Org typeenumis, is not, is one of
Parent organizationnumberis, is not, >, >=, <, <=, is empty, is not empty
Org contributed to NME?booleanis
Org statusenumis, is not, is one of
Org Trials Statusenumis, is not, is one of
Org founded yearnumberis, is not, >, >=, <, <=, is empty, is not empty
Org entered yearnumberis, is not, >, >=, <, <=, is empty, is not empty
Org last activity yearnumberis, is not, >, >=, <, <=, is empty, is not empty
Org exited yearnumberis, is not, >, >=, <, <=, is empty, is not empty