:- module(sbpp0,[]). en("the target language is: prolog. the templates are: the indirect small business participation percentage of *an entity* in *an other entity* is *a percentage*. the indirect small business participation percentage 1 of *an entity* in *an other entity* is *a percentage*. the indirect small business participation percentage 2 of *an entity* in *an other entity* is *a percentage*. the direct small business participation percentage of *an entity* in *an other entity* is *a percentage*. *an entity* holds the legal and equitable interests in shares in *a company*. the percentage of the voting power of *an entity* in *a company* is *a percentage*. *an entity* jointly holds the legal and equitable interests in the shares of *a company* with *an other entity*. the percentage of any dividend *a company* may pay is *a percentage*. the percentage of any distribution of capital *a company* may make is *a percentage*. *a percentage* is the smallest among *a first percentage* and *a second percentage* and *a third percentage*. *a percentage* is the smallest among *a first percentage* and *a second percentage*. *an entity* has entitlements to all the income and capital of *a trust*. the percentage of any distribution of income *a trustee* may make to which *an entity* would be beneficially entitled is *a percentage*. the percentage of any distribution of capital *a trustee* may make to which *an entity* would be beneficially entitled is *a percentage*. *a trustee* makes distribution of income during the relevant year. *a trustee* makes distribution of capital during the relevant year. the percentage of *an entity* capital profits for *an other entity* is *a number*. the percentage of *an entity* revenue profits for *an other entity* is *a number*. the knowledge base sbpp includes: % http://classic.austlii.edu.au/au/legis/cth/consol_act/itaa1997240/s152.75.html % the indirect small business participation percentage 1 of an entity in an other entity is a percentage I if the direct small business participation percentage of the entity in an intermediate entity is a number MyD and a number L1 is the sum of each Pi such that the direct small business participation percentage of the intermediate entity in the other entity is Pi and a number L2 is the sum of each Po such that the indirect small business participation percentage 1 of the intermediate entity in the other entity is Po and I = MyD * (L1 + L2). the indirect small business participation percentage 2 of an entity in an other entity is a percentage I if the direct small business participation percentage of the entity in the other entity is I or I = 0. the indirect small business participation percentage of an entity in an other entity is a percentage I if the indirect small business participation percentage 1 of the entity in the other entity is a percentage I1 and the indirect small business participation percentage 2 of the entity in the other entity is a percentage I2 and I = I1 + I2. % 3 the direct small business participation percentage of an entity in a trust T is a percentage I if the percentage of any distribution of income T may make to which the entity would be beneficially entitled is a DI and T makes distribution of income during the relevant year and I = DI. the percentage of any distribution of income a trustee may make to which an entity would be beneficially entitled is a percentage X if the percentage of the entity revenue profits for the trustee is X. scenario test is: %the direct small business participation percentage of individual in private is 0.8. the percentage of individual revenue profits for private is 0.8. private makes distribution of income during the relevant year. %the direct small business participation percentage of private in discretionary is 0.9. the percentage of private revenue profits for discretionary is 0.9. discretionary makes distribution of income during the relevant year. %the direct small business participation percentage of discretionary in unit is 0.6. the percentage of discretionary revenue profits for unit is 0.6. unit makes distribution of income during the relevant year. %the direct small business participation percentage of individual in unit is 0.1. query indirect is: the indirect small business participation percentage of individual in unit is which number. query direct is: the direct small business participation percentage of individual in unit is which number. "). /** ?- show prolog. ?- answer(indirect, with(test), le(E), R). ?- answer(direct, with(test), le(E), R). ?- answer("direct with scenario test"). ?- answer("indirect with scenario test"). */