1. NEED TO GO THROUGH A FILTER.
country[
    ethnicgroups[
        percentage(@ethnicPercentage=x1)],
    religions[
        percentage(@religPercentage=x2)],
    languages[
        percentage(@langPercentage=x3)],
    province[
        city[
            name(@name=x4){functional},
            population(@cityPop=x5,@year=x6),
            is_country_cap(@capCountry=x7){functional},
            country(@inCountry=x8){functional}]],
    name(@countryName=x9){functional},
    area(@area=x10){functional},
    population(@countryPop=x11,@year=x12),
    gdp_total(@gdp=x13),
    inflation(@inflation=x14),
    government(@gov=x15)]
:-
Population(Y1),LanguagePercent(Y2),Population(Y3),
Country(Y4),EthnicGroupPercent(Y5),Country(Y6),
Country(Y7),ReligionPercent(Y8),City(Y9),
CurrencyValue(Y10),hasCurrency(Y7,Y10),hasCurrency(Y4,Y10),
ethnicgroups(Y7,Y5),religions(Y7,Y8),languages(Y7,Y2),
located_in(Y9,Y7),hasPopulation(Y7,Y3),located_in(Y9,Y4),
located_in(Y9,Y6),hasPopulation(Y9,Y1),hasPopulation(Y7,Y1),
populationNumber(Y1,x5),percent(Y2,x3),year(Y3,x6),
area(Y4,x10),percent(Y5,x1),populationNumber(Y3,x11),
countryName(Y4,x7),countryName(Y6,x8),countryName(Y7,x9),
percent(Y8,x2),cityName(Y9,x4).

2. NEED TO GO THROUGH A FILTER.
country[
    ethnicgroups[
        percentage(@ethnicPercentage=x1)],
    religions[
        percentage(@religPercentage=x2)],
    languages[
        percentage(@langPercentage=x3)],
    province[
        city[
            name(@name=x4){functional},
            population(@cityPop=x5,@year=x6),
            is_country_cap(@capCountry=x7){functional},
            country(@inCountry=x8){functional}]],
    name(@countryName=x9){functional},
    area(@area=x10){functional},
    population(@countryPop=x11,@year=x12),
    gdp_total(@gdp=x13),
    inflation(@inflation=x14),
    government(@gov=x15)]
:-
Population(Y1),LanguagePercent(Y2),Population(Y3),
Country(Y4),EthnicGroupPercent(Y5),Country(Y6),
Country(Y7),ReligionPercent(Y8),City(Y9),
CurrencyValue(Y10),hasCurrency(Y4,Y10),hasCurrency(Y7,Y10),
ethnicgroups(Y4,Y5),religions(Y4,Y8),languages(Y4,Y2),
located_in(Y9,Y4),hasPopulation(Y4,Y3),located_in(Y9,Y6),
hasPopulation(Y9,Y1),hasPopulation(Y7,Y1),hasPopulation(Y7,Y3),
populationNumber(Y1,x5),percent(Y2,x3),year(Y3,x6),
area(Y4,x10),percent(Y5,x1),populationNumber(Y3,x11),
countryName(Y4,x7),countryName(Y6,x8),countryName(Y7,x9),
percent(Y8,x2),cityName(Y9,x4).

3. NEED TO GO THROUGH A FILTER.
country[
    ethnicgroups[
        percentage(@ethnicPercentage=x1)],
    religions[
        percentage(@religPercentage=x2)],
    languages[
        percentage(@langPercentage=x3)],
    province[
        city[
            name(@name=x4){functional},
            population(@cityPop=x5,@year=x6),
            is_country_cap(@capCountry=x7){functional},
            country(@inCountry=x8){functional}]],
    name(@countryName=x9){functional},
    area(@area=x10){functional},
    population(@countryPop=x11,@year=x12),
    gdp_total(@gdp=x13),
    inflation(@inflation=x14),
    government(@gov=x15)]
:-
Population(Y1),LanguagePercent(Y2),Population(Y3),
Country(Y4),EthnicGroupPercent(Y5),Country(Y6),
Country(Y7),ReligionPercent(Y8),City(Y9),
CurrencyValue(Y10),hasCurrency(Y7,Y10),hasCurrency(Y4,Y10),
ethnicgroups(Y7,Y5),religions(Y7,Y8),languages(Y7,Y2),
located_in(Y9,Y7),hasPopulation(Y7,Y3),located_in(Y9,Y4),
located_in(Y9,Y6),hasPopulation(Y9,Y1),hasPopulation(Y9,Y3),
populationNumber(Y1,x5),percent(Y2,x3),year(Y3,x6),
area(Y4,x10),percent(Y5,x1),populationNumber(Y3,x11),
countryName(Y4,x7),countryName(Y6,x8),countryName(Y7,x9),
percent(Y8,x2),cityName(Y9,x4).

4. NEED TO GO THROUGH A FILTER.
country[
    ethnicgroups[
        percentage(@ethnicPercentage=x1)],
    religions[
        percentage(@religPercentage=x2)],
    languages[
        percentage(@langPercentage=x3)],
    province[
        city[
            name(@name=x4){functional},
            population(@cityPop=x5,@year=x6),
            is_country_cap(@capCountry=x7){functional},
            country(@inCountry=x8){functional}]],
    name(@countryName=x9){functional},
    area(@area=x10){functional},
    population(@countryPop=x11,@year=x12),
    gdp_total(@gdp=x13),
    inflation(@inflation=x14),
    government(@gov=x15)]
:-
Population(Y1),LanguagePercent(Y2),Population(Y3),
Country(Y4),EthnicGroupPercent(Y5),Country(Y6),
Country(Y7),ReligionPercent(Y8),City(Y9),
CurrencyValue(Y10),hasCurrency(Y4,Y10),hasCurrency(Y7,Y10),
ethnicgroups(Y4,Y5),religions(Y4,Y8),languages(Y4,Y2),
located_in(Y9,Y4),hasPopulation(Y4,Y3),located_in(Y9,Y6),
hasPopulation(Y9,Y1),hasPopulation(Y9,Y3),populationNumber(Y1,x5),
percent(Y2,x3),year(Y3,x6),area(Y4,x10),
percent(Y5,x1),populationNumber(Y3,x11),countryName(Y4,x7),
countryName(Y6,x8),countryName(Y7,x9),percent(Y8,x2),
cityName(Y9,x4).

5. NEED TO GO THROUGH A FILTER.
country[
    ethnicgroups[
        percentage(@ethnicPercentage=x1)],
    religions[
        percentage(@religPercentage=x2)],
    languages[
        percentage(@langPercentage=x3)],
    province[
        city[
            name(@name=x4){functional},
            population(@cityPop=x5,@year=x6),
            is_country_cap(@capCountry=x7){functional},
            country(@inCountry=x8){functional}]],
    name(@countryName=x9){functional},
    area(@area=x10){functional},
    population(@countryPop=x11,@year=x12),
    gdp_total(@gdp=x13),
    inflation(@inflation=x14),
    government(@gov=x15)]
:-
Population(Y1),LanguagePercent(Y2),Population(Y3),
Country(Y4),EthnicGroupPercent(Y5),Country(Y6),
Country(Y7),ReligionPercent(Y8),City(Y9),
CurrencyValue(Y10),CapitalCity(Y11),hasCurrency(Y7,Y10),
hasCurrency(Y4,Y10),ethnicgroups(Y7,Y5),religions(Y7,Y8),
languages(Y7,Y2),located_in(Y9,Y7),hasPopulation(Y7,Y3),
located_in(Y9,Y4),located_in(Y9,Y6),hasPopulation(Y9,Y1),
hasPopulation(Y11,Y1),hasPopulation(Y11,Y3),populationNumber(Y1,x5),
percent(Y2,x3),year(Y3,x6),area(Y4,x10),
percent(Y5,x1),populationNumber(Y3,x11),countryName(Y4,x7),
countryName(Y6,x8),countryName(Y7,x9),percent(Y8,x2),
cityName(Y9,x4).

6. NEED TO GO THROUGH A FILTER.
country[
    ethnicgroups[
        percentage(@ethnicPercentage=x1)],
    religions[
        percentage(@religPercentage=x2)],
    languages[
        percentage(@langPercentage=x3)],
    province[
        city[
            name(@name=x4){functional},
            population(@cityPop=x5,@year=x6),
            is_country_cap(@capCountry=x7){functional},
            country(@inCountry=x8){functional}]],
    name(@countryName=x9){functional},
    area(@area=x10){functional},
    population(@countryPop=x11,@year=x12),
    gdp_total(@gdp=x13),
    inflation(@inflation=x14),
    government(@gov=x15)]
:-
Population(Y1),LanguagePercent(Y2),Population(Y3),
Country(Y4),EthnicGroupPercent(Y5),Country(Y6),
Country(Y7),ReligionPercent(Y8),City(Y9),
CurrencyValue(Y10),CapitalCity(Y11),hasCurrency(Y4,Y10),
hasCurrency(Y7,Y10),ethnicgroups(Y4,Y5),religions(Y4,Y8),
languages(Y4,Y2),located_in(Y9,Y4),hasPopulation(Y4,Y3),
located_in(Y9,Y6),hasPopulation(Y9,Y1),hasPopulation(Y11,Y1),
hasPopulation(Y11,Y3),populationNumber(Y1,x5),percent(Y2,x3),
year(Y3,x6),area(Y4,x10),percent(Y5,x1),
populationNumber(Y3,x11),countryName(Y4,x7),countryName(Y6,x8),
countryName(Y7,x9),percent(Y8,x2),cityName(Y9,x4).

7. NEED TO GO THROUGH A FILTER.
country[
    ethnicgroups[
        percentage(@ethnicPercentage=x1)],
    religions[
        percentage(@religPercentage=x2)],
    languages[
        percentage(@langPercentage=x3)],
    province[
        city[
            name(@name=x4){functional},
            population(@cityPop=x5,@year=x6),
            is_country_cap(@capCountry=x7){functional},
            country(@inCountry=x8){functional}]],
    name(@countryName=x9){functional},
    area(@area=x10){functional},
    population(@countryPop=x11,@year=x12),
    gdp_total(@gdp=x13),
    inflation(@inflation=x14),
    government(@gov=x15)]
:-
Population(Y1),LanguagePercent(Y2),Population(Y3),
Country(Y4),EthnicGroupPercent(Y5),Country(Y6),
Country(Y7),ReligionPercent(Y8),City(Y9),
CurrencyValue(Y10),hasCurrency(Y7,Y10),hasCurrency(Y4,Y10),
ethnicgroups(Y7,Y5),religions(Y7,Y8),languages(Y7,Y2),
located_in(Y9,Y7),hasPopulation(Y7,Y3),located_in(Y9,Y4),
located_in(Y9,Y6),hasPopulation(Y9,Y1),hasPopulation(Y4,Y1),
hasPopulation(Y4,Y3),populationNumber(Y1,x5),percent(Y2,x3),
year(Y3,x6),area(Y4,x10),percent(Y5,x1),
populationNumber(Y3,x11),countryName(Y4,x7),countryName(Y6,x8),
countryName(Y7,x9),percent(Y8,x2),cityName(Y9,x4).

8. NEED TO GO THROUGH A FILTER.
country[
    ethnicgroups[
        percentage(@ethnicPercentage=x1)],
    religions[
        percentage(@religPercentage=x2)],
    languages[
        percentage(@langPercentage=x3)],
    province[
        city[
            name(@name=x4){functional},
            population(@cityPop=x5,@year=x6),
            is_country_cap(@capCountry=x7){functional},
            country(@inCountry=x8){functional}]],
    name(@countryName=x9){functional},
    area(@area=x10){functional},
    population(@countryPop=x11,@year=x12),
    gdp_total(@gdp=x13),
    inflation(@inflation=x14),
    government(@gov=x15)]
:-
Population(Y1),LanguagePercent(Y2),Population(Y3),
Country(Y4),EthnicGroupPercent(Y5),Country(Y6),
Country(Y7),ReligionPercent(Y8),City(Y9),
CurrencyValue(Y10),hasCurrency(Y4,Y10),hasCurrency(Y7,Y10),
ethnicgroups(Y4,Y5),religions(Y4,Y8),languages(Y4,Y2),
located_in(Y9,Y4),hasPopulation(Y4,Y3),located_in(Y9,Y6),
hasPopulation(Y9,Y1),hasPopulation(Y4,Y1),populationNumber(Y1,x5),
percent(Y2,x3),year(Y3,x6),area(Y4,x10),
percent(Y5,x1),populationNumber(Y3,x11),countryName(Y4,x7),
countryName(Y6,x8),countryName(Y7,x9),percent(Y8,x2),
cityName(Y9,x4).

9. NEED TO GO THROUGH A FILTER.
country[
    ethnicgroups[
        percentage(@ethnicPercentage=x1)],
    religions[
        percentage(@religPercentage=x2)],
    languages[
        percentage(@langPercentage=x3)],
    province[
        city[
            name(@name=x4){functional},
            population(@cityPop=x5,@year=x6),
            is_country_cap(@capCountry=x7){functional},
            country(@inCountry=x8){functional}]],
    name(@countryName=x9){functional},
    area(@area=x10){functional},
    population(@countryPop=x11,@year=x12),
    gdp_total(@gdp=x13),
    inflation(@inflation=x14),
    government(@gov=x15)]
:-
Population(Y1),LanguagePercent(Y2),Population(Y3),
Country(Y4),EthnicGroupPercent(Y5),Country(Y6),
Country(Y7),ReligionPercent(Y8),City(Y9),
CurrencyValue(Y10),hasCurrency(Y7,Y10),hasCurrency(Y4,Y10),
ethnicgroups(Y7,Y5),religions(Y7,Y8),languages(Y7,Y2),
located_in(Y9,Y7),hasPopulation(Y7,Y3),located_in(Y9,Y4),
located_in(Y9,Y6),hasPopulation(Y9,Y1),hasPopulation(Y6,Y1),
hasPopulation(Y6,Y3),populationNumber(Y1,x5),percent(Y2,x3),
year(Y3,x6),area(Y4,x10),percent(Y5,x1),
populationNumber(Y3,x11),countryName(Y4,x7),countryName(Y6,x8),
countryName(Y7,x9),percent(Y8,x2),cityName(Y9,x4).

10. NEED TO GO THROUGH A FILTER.
country[
    ethnicgroups[
        percentage(@ethnicPercentage=x1)],
    religions[
        percentage(@religPercentage=x2)],
    languages[
        percentage(@langPercentage=x3)],
    province[
        city[
            name(@name=x4){functional},
            population(@cityPop=x5,@year=x6),
            is_country_cap(@capCountry=x7){functional},
            country(@inCountry=x8){functional}]],
    name(@countryName=x9){functional},
    area(@area=x10){functional},
    population(@countryPop=x11,@year=x12),
    gdp_total(@gdp=x13),
    inflation(@inflation=x14),
    government(@gov=x15)]
:-
Population(Y1),LanguagePercent(Y2),Population(Y3),
Country(Y4),EthnicGroupPercent(Y5),Country(Y6),
Country(Y7),ReligionPercent(Y8),City(Y9),
CurrencyValue(Y10),hasCurrency(Y4,Y10),hasCurrency(Y7,Y10),
ethnicgroups(Y4,Y5),religions(Y4,Y8),languages(Y4,Y2),
located_in(Y9,Y4),hasPopulation(Y4,Y3),located_in(Y9,Y6),
hasPopulation(Y9,Y1),hasPopulation(Y6,Y1),hasPopulation(Y6,Y3),
populationNumber(Y1,x5),percent(Y2,x3),year(Y3,x6),
area(Y4,x10),percent(Y5,x1),populationNumber(Y3,x11),
countryName(Y4,x7),countryName(Y6,x8),countryName(Y7,x9),
percent(Y8,x2),cityName(Y9,x4).

