Define data type for use in query of queries

ACF/PostgreSQL had an issue with UNIONing two record sets with columns it saw as being of different types