typeside t schema s : t constraints eds : s ---------------------------------- query (fromConstraints eds 0) : s -> literal : typesideOf s { entities back front foreign_keys unit : back -> front}Turns an ED into a query, such that the ED holds when the query's one foreign key is surjective.