Adding queries to writeup