mappings and query outline