queries and maps!

oh my...