Query on semantic edges