Legends and query results