Move the phantom Query type from HDBC-schema-th into relational-join.