metadata: define type
table: move Match and Select in their own file
table/definition: simplify where
table/definition: define type