Created the undirected construct query.