Remove relation string from expanded query.