Queries Data Structure