Add the linkages query.