Query Rewriting Example
v1:<C cview {<competitor V>}> :- <C company {<competitor V>}>
v2:<C bview {<buyout B>}> :- <C company {<buyout B>}>
Find all my new potential competitors
<new_comp {<company X>}>:-
<B company {<competitor X>}> & <“myinc” company {<buyout B>}>
- Go to v2 to get myinc’s buyout targets
- Go to v1 to get their competitors
<new_comp {<company X>}>:- <“myinc” bview {<buyout B>}>@v1
& <B cview {<competitor X>}>@v2