add queries for in memory graphs