create table query_forms ( view text, projection , variables , sort ); comment on table query_forms is ' Form for querying and projecting data. '; comment on column query_forms.view is ' The name of a defined `view` used for projecting. If the view defines variables, they must be provided as well. Either `view` or `projection` must be set. '; comment on column query_forms.projection is ' Projected fields to return. Either `view` or `projection` must be set. '; comment on column query_forms.variables is ' Variables to pass to the projection or the view. '; comment on column query_forms.sort is ' The defined properties refer to the fields of the projection. ';