user: You are a structured reasoning expert tasked with solving problems step by step. 
You first think about the reasoning process in the mind and then provide the answer. The reasoning process and answer should be enclosed within <think> </think> and <answer> </answer> tags, respectively, i.e., <think> reasoning process here </think> <answer> answer here </answer>. 
Given a question and the associated knowledge graph triplets (entity, relation, entity), you are asked to answer the question with these triplets and your own knowledge. 
You can break down the original question into several sub-questions and explore the given knowledge graph to solve them step-by-step. If there are multiple possible answers, choose one as the final answer. 
After thinking, when you finally reach a conclusion, clearly state the answer within <answer> </answer> tags, i.e., <answer> answer here </answer>. 
Question: Which country is ruled by Al-Husayn I ibn Ali and a trading partner with Portugal? 
Knowledge Triplets: Ali III ibn al-Husayn, common.topic.notable_types, Monarch
Portugal, location.statistical_region.merchandise_trade_percent_of_gdp, g.1hhc38d58
Portugal, location.country.second_level_divisions, Bragança District
Husainid Dynasty, royalty.royal_line.monarchs_from_this_line, Al-Husayn II ibn Mahmud
Portugal, book.book_subject.works, Mariana
Sopo, location.administrative_division.country, Portugal
Philip IV of Spain, royalty.monarch.kingdom, Portugal
Portugal, location.country.administrative_divisions, Santarém District
Portugal, royalty.kingdom.rulers, Maria I of Portugal
Hammuda ibn Ali, royalty.monarch.royal_line, Husainid Dynasty
Spanish invasion of Portugal, base.culturalevent.event.entity_involved, Kingdom of Portugal
Portugal, location.statistical_region.merchandise_trade_percent_of_gdp, g.1hhc38m8n
Portugal, location.country.administrative_divisions, Leiria
Portugal, royalty.kingdom.rulers, Joseph I of Portugal
Kingdom of Portugal, royalty.kingdom.rulers, Edward, King of Portugal
Uthman ibn Ali, royalty.monarch.kingdom, Tunisia
Portugal, location.country.administrative_divisions, Beja District
Husainid Dynasty, people.family.members, Muhammad II ibn al-Husayn
Portugal, location.country.administrative_divisions, Estrela
Portugal, book.book_subject.works, The Went to Portugal Too
Portugal, location.country.first_level_divisions, Azores
Portugal, royalty.kingdom.rulers, Denis of Portugal
Portugal, book.book_subject.works, They went to Portugal
Portugal, location.country.second_level_divisions, Braga District
Kingdom of Portugal, royalty.kingdom.rulers, Sancho II of Portugal
Portugal, royalty.kingdom.rulers, Henry, King of Portugal
Portugal, location.location.partiallycontains, m.0wg9ct6
Portugal, location.country.form_of_government, Parliamentary system
m.0wg9ctc, location.partial_containment_relationship.partially_contained_by, Portugal
Kingdom of Portugal, royalty.kingdom.rulers, John V of Portugal
Hammuda ibn Ali, people.person.gender, Male
Portugal, common.topic.notable_for, g.1255jzcqn
Portugal, location.country.administrative_divisions, Braga District
Earth, base.aareas.schema.administrative_area.administrative_parent, Tunisia
Leiria, location.administrative_division.country, Portugal
Kingdom of Portugal, royalty.kingdom.rulers, Manuel I of Portugal
Country, common.topic.notable_types, Tunisia
Portugal, book.book_subject.works, Spanish Inquisition
Portugal, location.statistical_region.merchandise_trade_percent_of_gdp, g.12tb6h532
Kingdom of Portugal, military.military_service.military_person, John I of Portugal
Edward, King of Portugal, people.person.children, Afonso V of Portugal
m.0wg9g8f, location.partial_containment_relationship.partially_contains, Portugal
Porto, location.administrative_division.country, Portugal
Portugal, location.statistical_region.merchandise_trade_percent_of_gdp, g.1hhc4d21s
Portugal, location.country.form_of_government, Democratic republic
Atalaia, location.administrative_division.country, Portugal
Portugal, location.country.second_level_divisions, Santarém District
Portugal, book.book_subject.works, Assuming the Light
Setúbal, location.administrative_division.country, Portugal
Portugal, common.topic.notable_types, Country
Abu l-Hasan Ali I, royalty.monarch.royal_line, Husainid Dynasty
Portugal, location.country.administrative_divisions, Faro District
Kingdom of Portugal, royalty.kingdom.rulers, Philip II of Spain
Portugal, base.aareas.schema.administrative_area.administrative_parent, Earth
Portugal, royalty.kingdom.rulers, John I of Portugal
Siege of Almeida, base.culturalevent.event.entity_involved, Kingdom of Portugal
Kingdom of Portugal, royalty.kingdom.rulers, Afonso I of Portugal
Portugal, book.book_subject.works, Houses and gardens of Portugal
m.0q3qxsp, olympics.olympic_medal_honor.country, Portugal
Al-Husayn I ibn Ali, people.family_member.family, Husainid Dynasty
Transatlantic Ties in the Spanish Empire, book.written_work.subjects, Portugal
Portugal, base.locations.countries.continent, Europe
Al-Husayn I ibn Ali, royalty.monarch.kingdom, Tunisia
Husainid Dynasty, royalty.royal_line.monarchs_from_this_line, Muhammad II ibn al-Husayn
Portugal, location.country.first_level_divisions, Madeira
Portalegre, Portugal, location.administrative_division.country, Portugal
Kingdom of Portugal, royalty.kingdom.rulers, Sebastian of Portugal
m.0b659ls, sports.competitor_competition_relationship.country, Portugal
Portugal, location.country.administrative_divisions, Vila Real
Portugal, book.book_subject.works, To remember Spain
Portugal, location.location.partiallycontains, m.0wg9ct1
Ali II ibn Hussein, royalty.monarch.royal_line, Husainid Dynasty
Edward, King of Portugal, people.person.nationality, Portugal
Afonso III of Portugal, royalty.monarch.kingdom, Portugal
Portugal, book.book_subject.works, Homage to Catalonia
Portugal, location.country.national_anthem, m.0bwnylt
Hammuda ibn Ali, royalty.monarch.kingdom, Tunisia
Portugal, location.country.form_of_government, Unitary state
Portugal, royalty.kingdom.rulers, Carlos I of Portugal
Portuguese Securities Market Commission, government.government_agency.jurisdiction, Portugal
Husainid Dynasty, royalty.royal_line.monarchs_from_this_line, Ali II ibn Hussein
Portugal, location.country.administrative_divisions, Viana do Castelo
Muhammad II ibn al-Husayn, people.person.gender, Male
Manuel II of Portugal, royalty.monarch.kingdom, Portugal
Portugal, location.country.administrative_divisions, Atalaia
Kingdom of Portugal, royalty.kingdom.rulers, John IV of Portugal
Muhammad II ibn al-Husayn, people.person.parents, Al-Husayn II ibn Mahmud
Government of Portugal, government.government.agency, Instituto Nacional de Estatística
Portugal, book.book_subject.works, In Portugal
Tunisia, royalty.kingdom.rulers, Ali II ibn Hussein
Portugal, royalty.kingdom.rulers, Afonso I of Portugal
Representative democracy, government.form_of_government.countries, Portugal
Portugal, location.country.administrative_divisions, Porto District
Kingdom of Portugal, royalty.kingdom.rulers, Philip IV of Spain
Husainid Dynasty, people.family.members, Hammuda ibn Ali
Ali II ibn Hussein, royalty.monarch.kingdom, Tunisia
Portugal, book.book_subject.works, Farewell Spain
Manuel I of Portugal, royalty.monarch.kingdom, Kingdom of Portugal
Portugal, book.book_subject.works, Portuguese
Portugal, royalty.kingdom.rulers, Afonso IV of Portugal
Portugal, royalty.kingdom.rulers, Ferdinand II of Portugal
Kingdom of Portugal, royalty.kingdom.rulers, Ferdinand I of Portugal
Portugal, location.country.second_level_divisions, Setúbal District
Ali II ibn Hussein, common.topic.notable_types, Monarch
Tunisia, royalty.kingdom.rulers, Ali III ibn al-Husayn
m.0bhdd3f, location.statistical_region.places_imported_from, Tunisia
Battle of Aljubarrota, base.culturalevent.event.entity_involved, Kingdom of Portugal
Al-Husayn I ibn Ali, common.topic.notable_for, g.12586wxpt
Portugal, royalty.kingdom.rulers, Henry, Count of Portugal
Portugal, location.country.administrative_divisions, Faro
Portugal, location.statistical_region.merchandise_trade_percent_of_gdp, g.1hhc39ksy
Afonso III of Portugal, royalty.monarch.kingdom, Kingdom of Portugal
Portugal, royalty.kingdom.rulers, John IV of Portugal
Edward, King of Portugal, royalty.monarch.kingdom, Kingdom of Portugal
In Portugal, book.written_work.subjects, Portugal
Afonso I of Portugal, royalty.monarch.kingdom, Portugal
m.0wg9ct6, location.partial_containment_relationship.partially_contained_by, Portugal
Portugal, book.book_subject.works, A history of Portugal
Portugal, book.book_subject.works, Over the Edge of the World
Portugal, common.topic.notable_types, Country
Portugal, royalty.kingdom.rulers, Philip III of Spain
Kingdom of Portugal, royalty.kingdom.rulers, John II of Portugal
Faro, location.administrative_division.country, Portugal
Portugal, book.book_subject.works, Imagining Spain
Portugal, book.book_subject.works, The Last Kabbalist of Lisbon
Afonso II of Portugal, royalty.monarch.kingdom, Kingdom of Portugal
Portugal, location.country.administrative_divisions, Campo de Ourique
Portugal, location.country.administrative_divisions, Setúbal
Portugal, location.country.administrative_divisions, Beja, Portugal
Portugal, location.statistical_region.merchandise_trade_percent_of_gdp, g.1hhc38m8m
Al-Husayn II ibn Mahmud, people.person.parents, Mahmud ibn Muhammad
1383–85 Crisis, base.culturalevent.event.entity_involved, Kingdom of Portugal
Kingdom of Portugal, location.location.containedby, Iberian Peninsula
Parliamentary system, government.form_of_government.countries, Portugal
Unitary state, government.form_of_government.countries, Portugal
To remember Spain, book.written_work.subjects, Portugal
m.0bhdd35, location.imports_and_exports.exported_to, Tunisia
Uthman ibn Ali, common.topic.notable_types, Monarch
Ali III ibn al-Husayn, royalty.monarch.kingdom, Tunisia
Portugal, book.book_subject.works, Alentejo Blue
Tunisia, royalty.kingdom.rulers, Al-Husayn I ibn Ali
Porto District, location.administrative_division.country, Portugal
Convento, film.film.country, Portugal
Portugal, location.country.form_of_government, Representative democracy
Portugal, location.country.administrative_divisions, Madeira
Portugal, book.book_subject.works, The Church Militant and Iberian Expansion, 1440-1770
Portugal, location.country.administrative_divisions, Coimbra
Ferdinand I of Portugal, royalty.monarch.kingdom, Portugal
Philip II of Spain, royalty.monarch.kingdom, Kingdom of Portugal
Ahmad II of Tunis, people.person.parents, Ali III ibn al-Husayn
Carlos I of Portugal, royalty.monarch.kingdom, Portugal
Kingdom of Portugal, royalty.kingdom.rulers, Pedro V of Portugal
Husainid Dynasty, royalty.royal_line.monarchs_from_this_line, Ali III ibn al-Husayn
Manuel I of Portugal, royalty.monarch.kingdom, Portugal
m.04g84tm, government.national_anthem_of_a_country.country, Portugal
m.0wg9cwz, location.partial_containment_relationship.partially_contained_by, Portugal
Portugal, location.country.administrative_divisions, Aveiro, Portugal
Portugal, location.country.capital, Lisbon
Afonso II of Portugal, royalty.monarch.kingdom, Portugal
Vila Real, location.administrative_division.country, Portugal
Portugal, location.country.second_level_divisions, Coimbra District
Kingdom of Portugal, royalty.kingdom.rulers, Pedro I of Brazil
Santo António, location.administrative_division.country, Portugal
Portugal, location.location.partiallycontains, m.0wg9csx
Al-Husayn I ibn Ali, royalty.monarch.royal_line, Husainid Dynasty
Portugal, book.book_subject.works, Remembering Spain
Portugal, location.country.administrative_divisions, Nogueira
House of Aviz, people.family.country, Portugal
Portugal, location.country.form_of_government, Semi-presidential system
Portugal, royalty.kingdom.rulers, John V of Portugal
Ferdinand II of Portugal, royalty.monarch.kingdom, Portugal
Abu l-Hasan Ali I, royalty.monarch.kingdom, Tunisia
Portugal, common.topic.webpage, m.09w7wc8
Portugal, royalty.kingdom.rulers, Afonso III of Portugal
Joseph I of Portugal, royalty.monarch.kingdom, Portugal
Al-Husayn II ibn Mahmud, royalty.monarch.royal_line, Husainid Dynasty
Government of Portugal, government.government.agency, Portuguese Ministry of Justice
Portugal, royalty.kingdom.rulers, Manuel I of Portugal
Portugal, book.book_subject.works, Transatlantic Ties in the Spanish Empire
Hammuda ibn Ali, common.topic.notable_types, Monarch
Muhammad II ibn al-Husayn, people.person.children, Muhammad V an-Nasir
Afonso IV of Portugal, royalty.monarch.kingdom, Kingdom of Portugal
Portugal, location.country.administrative_divisions, Castelo Branco District
Portugal, royalty.kingdom.rulers, Edward, King of Portugal
Portugal, location.country.form_of_government, Unitary state
Portuguese Second Republic, government.governmental_body.jurisdiction, Portugal
m.0728zmx, location.adjoining_relationship.adjoins, Portugal
Portugal, location.country.administrative_divisions, Castelo Branco Municipality
m.0wg9csq, location.partial_containment_relationship.partially_contained_by, Portugal
m.0wg97vw, location.partial_containment_relationship.partially_contains, Portugal
Portugal, royalty.kingdom.rulers, Afonso VI of Portugal
Kingdom of Portugal, royalty.kingdom.rulers, Afonso II of Portugal
Afonso I of Portugal, military.military_commander.military_commands, m.0gm7622
m.0wg9cvr, location.partial_containment_relationship.partially_contained_by, Portugal
Portugal, location.country.form_of_government, Constitutional republic
Al-Husayn II ibn Mahmud, people.person.children, Muhammad II ibn al-Husayn
Al-Husayn II ibn Mahmud, people.person.gender, Male
Portugal, location.statistical_region.merchandise_trade_percent_of_gdp, g.1hhc3d6bf
Portugal, royalty.kingdom.rulers, Maria II of Portugal
Portugal, location.statistical_region.trade_balance_as_percent_of_gdp, g.1hhc52mn2
Portugal, royalty.kingdom.rulers, John VI of Portugal
Portugal, location.country.administrative_divisions, Évora District
Mahmud ibn Muhammad, people.person.children, Al-Husayn II ibn Mahmud
Europe, base.locations.continents.countries_within, Portugal
Kingdom of Portugal, location.country.capital, Lisbon
Government of Portugal, government.government.agency, Polícia de Segurança Pública
Pinheiro, location.administrative_division.country, Portugal
Kingdom of Portugal, royalty.kingdom.rulers, John III of Portugal
Government of Portugal, government.government.agency, Portuguese Ministry of Education
Kingdom of Portugal, royalty.kingdom.rulers, Afonso V of Portugal
Portugal, book.book_subject.works, Tales of the Alhambra
Portugal, common.topic.article, m.05r55
Tunisia, royalty.kingdom.rulers, Uthman ibn Ali
Al-Husayn I ibn Ali, people.person.gender, Male
Philip II of Spain, royalty.monarch.kingdom, Portugal
Portugal, common.topic.webpage, m.0b48jql
Husainid Dynasty, people.family.founder, Al-Husayn I ibn Ali
Muhammad II ibn al-Husayn, people.family_member.family, Husainid Dynasty
Portugal, freebase.valuenotation.is_reviewed, Currency Used
Uthman ibn Ali, royalty.monarch.royal_line, Husainid Dynasty
Portugal, common.topic.image, Location of Portugal
Portugal, location.statistical_region.trade_balance_as_percent_of_gdp, g.1hhc52yx8
Iberian Peninsula, location.location.contains, Kingdom of Portugal
Tunisia, royalty.kingdom.rulers, Ahmad I ibn Mustafa
Portugal, location.country.second_level_divisions, Guarda District
Portugal, location.country.official_language, Portuguese Language
Kingdom of Portugal, royalty.kingdom.rulers, Philip III of Spain
Edward, King of Portugal, royalty.monarch.kingdom, Portugal
Democratic republic, government.form_of_government.countries, Portugal
Águeda, location.administrative_division.country, Portugal
Kingdom of Portugal, royalty.kingdom.rulers, Afonso III of Portugal
Portugal, royalty.kingdom.rulers, Afonso V of Portugal
Kingdom of Portugal, royalty.kingdom.rulers, Peter I of Portugal
Kingdom of Portugal, royalty.kingdom.rulers, Peter II of Portugal
Kingdom of Portugal, location.country.capital, Coimbra
Kingdom of Portugal, royalty.kingdom.rulers, Maria II of Portugal
m.0wg9cvx, location.partial_containment_relationship.partially_contained_by, Portugal
m.0wg9csx, location.partial_containment_relationship.partially_contained_by, Portugal
Portugal, location.country.currency_formerly_used, Portuguese escudo
Misericórdia, location.administrative_division.country, Portugal
Al-Husayn II ibn Mahmud, royalty.monarch.kingdom, Tunisia
Braga, location.administrative_division.country, Portugal
Portugal, book.book_subject.works, Empire
Portugal, location.country.currency_formerly_used, Cruzado
Portugal, location.location.primarily_containedby, Europe
Unitary state, location.country.form_of_government, Tunisia
Portugal, location.country.second_level_divisions, Lisbon District
Portugal, location.country.administrative_divisions, Barrô
Tunisia, royalty.kingdom.rulers, Muhammad II ibn al-Husayn
Al-Husayn I ibn Ali, common.topic.notable_types, Monarch
Portugal, olympics.olympic_participating_country.olympics_participated_in, 2008 Summer Olympics
Government of Portugal, government.government.agency, Portuguese Ministry of Finance and Public Administration
Portugal, location.location.containedby, Europe
Portugal, royalty.kingdom.rulers, Manuel II of Portugal
Portugal, location.country.second_level_divisions, Viana do Castelo District
House of Braganza, royalty.royal_line.kingdom_s_ruled, Kingdom of Portugal
In Portugal, common.topic.notable_types, Book
m.0gm7622, military.military_command.military_commander, Afonso I of Portugal
Government of Portugal, government.government.government_for, Portugal
Philip IV of Spain, royalty.monarch.kingdom, Kingdom of Portugal
Government of Portugal, government.government.agency, Portuguese Ministry of National Defence
Sancho II of Portugal, royalty.monarch.kingdom, Portugal
Kingdom of Portugal, royalty.kingdom.rulers, Afonso IV of Portugal
Muhammad II ibn al-Husayn, royalty.monarch.kingdom, Tunisia
Portugal, location.country.administrative_divisions, Guarda, Portugal
House of Braganza, people.family.country, Kingdom of Portugal
Portugal, book.book_subject.works, From Heaven to Earth
Pedro V of Portugal, royalty.monarch.kingdom, Portugal
Portugal, location.country.administrative_divisions, Águeda
Kingdom of Portugal, royalty.kingdom.rulers, Henry, King of Portugal
Portugal, location.country.administrative_divisions, Viseu
Tunisia, royalty.kingdom.rulers, Al-Husayn II ibn Mahmud
Azores, location.administrative_division.country, Portugal
Portugal, location.imports_and_exports.imported_from, m.0bhdd35
Husainid Dynasty, people.family.members, Al-Husayn I ibn Ali
Government of Portugal, government.government.agency, Portuguese Ministry of Agriculture, Rural Development and Fisheries
Portugal, location.country.administrative_divisions, Arcas
House of Braganza, people.family.country, Portugal
Ali III ibn al-Husayn, people.person.gender, Male
Operation Astute, base.culturalevent.event.entity_involved, Portugal
Portugal, royalty.kingdom.rulers, Philip II of Spain
Portugal, location.location.containedby, Western Europe
Portugal, location.country.second_level_divisions, Leiria District
Kingdom of Portugal, royalty.kingdom.rulers, Joseph I of Portugal
Constitutional republic, government.form_of_government.countries, Portugal
Muhammad V an-Nasir, people.person.parents, Muhammad II ibn al-Husayn
Ahmad I ibn Mustafa, royalty.monarch.kingdom, Tunisia
Portugal, royalty.kingdom.rulers, Miguel I of Portugal
Husainid Dynasty, royalty.royal_line.monarchs_from_this_line, Al-Husayn I ibn Ali
Portugal, location.country.administrative_divisions, Azores
Portugal, A Short History, book.written_work.subjects, Portugal
Portugal, common.topic.image, Sintra - Photo ICEP
Kingdom of Portugal, royalty.kingdom.rulers, Afonso VI of Portugal
Portugal, book.book_subject.works, The Reinvention of Spain
Portugal, location.country.second_level_divisions, Vila Real District
Portugal, common.topic.image, Angra - Photo ICEP
Portugal, common.topic.webpage, m.09wlx_3
Portugal, location.country.administrative_divisions, Braga
Portugal, government.form_of_government.countries, Semi-presidential system
Ali III ibn al-Husayn, royalty.monarch.royal_line, Husainid Dynasty
Portugal, location.country.administrative_divisions, Santo António
Portugal, royalty.kingdom.rulers, Peter II of Portugal
John I of Portugal, royalty.monarch.kingdom, Portugal
Portugal, book.book_subject.works, Golden Age Spain
Lisbon, base.biblioness.bibs_location.country, Portugal
Portugal, location.country.second_level_divisions, Faro District
m.0wg9fvz, location.partial_containment_relationship.partially_contains, Portugal
Al-Husayn I ibn Ali, common.topic.article, m.03cg_3y
Pedro I of Brazil, royalty.monarch.kingdom, Kingdom of Portugal
Afonso IV of Portugal, royalty.monarch.kingdom, Portugal
Portugal, location.statistical_region.merchandise_trade_percent_of_gdp, g.1hhc431p7
Portugal, royalty.kingdom.rulers, Pedro I of Brazil
Portugal, book.book_subject.works, Backwards out of the big world
Portugal, military.military_combatant.belongs_to_combatant_group, Allies of World War I
Government of Portugal, government.governmental_body.component_bodies, Portuguese Second Republic
Afonso I of Portugal, royalty.monarch.kingdom, Kingdom of Portugal
m.0q3qxsg, olympics.olympic_medal_honor.country, Portugal
Portugal, book.book_subject.works, Fascism in Spain, 1923-1977
Portugal, book.book_subject.works, Hunting midnight
World Trade Organization, organization.organization.founders, Portugal
Portugal, location.country.administrative_divisions, Santarém
Portugal, location.country.administrative_divisions, Coimbra District
Ali II ibn Hussein, people.person.gender, Male
Portugal, location.country.administrative_divisions, Portalegre District
Government of Portugal, government.government.agency, Portuguese Ministry of Culture
Portugal, royalty.kingdom.rulers, Sebastian of Portugal
Edward, King of Portugal, people.family_member.family, House of Aviz
Estrela, location.administrative_division.country, Portugal
Portugal, government.political_district.representatives, m.063x9d1
m.0wg9ctw, location.partial_containment_relationship.partially_contained_by, Portugal
Triple Entente, military.military_combatant.includes_allies, Portugal
Portugal, location.country.administrative_divisions, Santa Clara
m.03z95_p, location.adjoining_relationship.adjoins, Portugal
Portugal, location.country.administrative_divisions, Évora
Nogueira, location.administrative_division.country, Portugal
Portugal, location.location.partiallycontains, m.0wg9ctw
Kingdom of Portugal, royalty.kingdom.rulers, Carlos I of Portugal
Kingdom of Portugal, royalty.kingdom.rulers, Denis of Portugal
Portugal, location.country.administrative_divisions, Monsanto
Portugal, location.country.second_level_divisions, Portalegre District
Portugal, royalty.kingdom.rulers, Afonso II of Portugal
Portugal, location.location.partiallycontains, m.0wg9csq
Portugal, royalty.kingdom.rulers, Peter III of Portugal
Sancho I of Portugal, royalty.monarch.kingdom, Kingdom of Portugal
m.0z22jrs, location.adjoining_relationship.adjoins, Portugal
m.0wg9cwd, location.partial_containment_relationship.partially_contained_by, Portugal
Portugal, common.topic.webpage, m.0j1bzz5
m.0p67ydd, sports.competitor_competition_relationship.country, Portugal
Afonso I of Portugal, military.military_person.participated_in_conflicts, Siege of Lisbon
Kingdom of Portugal, royalty.kingdom.rulers, Sancho I of Portugal
Coimbra, location.administrative_division.country, Portugal
Portugal, royalty.kingdom.rulers, Ferdinand I of Portugal
Afonso I of Portugal, military.military_person.participated_in_conflicts, Battle of Ourique
Portugal, location.country.second_level_divisions, Porto District
Kingdom of Portugal, common.topic.notable_types, Country
Edward, King of Portugal, people.person.religion, Catholicism
Viana do Castelo, location.administrative_division.country, Portugal
Portugal, location.country.second_level_divisions, Viseu District
Kingdom of Portugal, royalty.kingdom.rulers, Peter III of Portugal
Portugal, location.location.partially_containedby, Southern Europe
Portugal, royalty.kingdom.rulers, Sancho I of Portugal
Campo de Ourique, location.administrative_division.country, Portugal
Portugal, location.country.administrative_divisions, Pinheiro
Sancho I of Portugal, royalty.monarch.kingdom, Portugal
Portugal, royalty.kingdom.rulers, Peter I of Portugal
Praia, location.administrative_division.country, Portugal
Portugal, book.book_subject.works, Corunna
LIVRE/Tempo de Avançar, government.political_party.country, Portugal
Portugal, location.country.administrative_divisions, Misericórdia
Santarém, location.administrative_division.country, Portugal
Muhammad II ibn al-Husayn, royalty.monarch.royal_line, Husainid Dynasty
Muhammad II ibn al-Husayn, common.topic.notable_types, Monarch
Portugal, location.country.administrative_divisions, Porto
Al-Husayn I ibn Ali, royalty.monarch.kingdom, Tunisia
Portugal, location.country.currency_used, Euro
Pedro I of Brazil, royalty.monarch.kingdom, Portugal
Portugal, royalty.kingdom.rulers, Philip IV of Spain
Semi-presidential system, government.form_of_government.countries, Portugal
Husainid Dynasty, royalty.royal_line.monarchs_from_this_line, Hammuda ibn Ali
m.0q3qxsx, olympics.olympic_medal_honor.country, Portugal
Portugal, royalty.kingdom.rulers, John III of Portugal
Portugal, common.topic.webpage, m.0b6rm11
Portugal, location.country.administrative_divisions, Viseu District
Portugal, location.statistical_region.trade_balance_as_percent_of_gdp, g.12tb6fzpc
Portugal, book.book_subject.works, Portugal, A Short History
Al-Husayn II ibn Mahmud, common.topic.notable_types, Monarch
Portugal, location.country.second_level_divisions, Beja District
Sovereign state, base.aareas.schema.administrative_area.administrative_area_type, Tunisia
Portugal, royalty.kingdom.rulers, John II of Portugal
Kingdom of Portugal, royalty.kingdom.rulers, Miguel I of Portugal
Portugal, location.statistical_region.merchandise_trade_percent_of_gdp, g.1hhc4891b
Portugal, location.statistical_region.merchandise_trade_percent_of_gdp, g.1hhc38d57
São Vicente, location.administrative_division.country, Portugal
Portugal, location.country.second_level_divisions, Aveiro District
m.0wg9ct1, location.partial_containment_relationship.partially_contained_by, Portugal
Portugal, government.political_district.representatives, m.011ccr9x
m.09wlx_3, common.webpage.topic, Portugal
Portugal, location.country.internet_tld, pt
Location of Portugal, common.image.appears_in_topic_gallery, Kingdom of Portugal
Portugal, royalty.kingdom.rulers, Sancho II of Portugal
Portugal, location.country.administrative_divisions, Bragança District
2008 Summer Olympics, olympics.olympic_participating_country.olympics_participated_in, Tunisia
m.09w7wc8, common.webpage.topic, Portugal
Madeira, location.administrative_division.country, Portugal
m.0lh6pj5, olympics.olympic_medal_honor.country, Portugal
Portugal, location.country.administrative_divisions, Guarda District
Barrô, location.administrative_division.country, Portugal
Kingdom of Portugal, common.topic.image, Location of Portugal
Currency Used, freebase.valuenotation.is_reviewed, Tunisia
Husainid Dynasty, royalty.royal_line.monarchs_from_this_line, Uthman ibn Ali
Kingdom of Portugal, royalty.kingdom.rulers, Manuel II of Portugal
Miguel I of Portugal, royalty.monarch.kingdom, Kingdom of Portugal
Portugal, location.country.administrative_divisions, Leiria District
Tunisia, royalty.kingdom.rulers, Hammuda ibn Ali
Edward, King of Portugal, royalty.monarch.royal_line, House of Aviz
Portugal, location.location.primarily_containedby, Western Europe
Philip III of Spain, royalty.monarch.kingdom, Portugal
Portugal, location.country.administrative_divisions, Portalegre, Portugal
Portugal, location.country.second_level_divisions, Castelo Branco District
Portugal, location.statistical_region.places_exported_to, m.0bhdd3f
Ali III ibn al-Husayn, people.person.children, Ahmad II of Tunis
Portugal, location.country.administrative_divisions, Lisbon District
Portugal, location.country.national_anthem, m.04g84tm
Évora, location.administrative_division.country, Portugal
Portugal, location.country.administrative_divisions, Praia
Portugal, book.book_subject.works, Travellers Catalonia, 2nd
Portugal, book.book_subject.works, A Mediterranean emporium
m.0bwnylt, government.national_anthem_of_a_country.country, Portugal
Carlos I of Portugal, royalty.monarch.kingdom, Kingdom of Portugal
m.0b6rm11, common.webpage.topic, Portugal
Portugal, location.country.administrative_divisions, Sopo
Arcas, location.administrative_division.country, Portugal
m.0j1bzz5, common.webpage.topic, Portugal
Semi-presidential system, government.form_of_government.countries, Tunisia
Kingdom of Portugal, royalty.kingdom.rulers, John I of Portugal
Portugal, location.country.administrative_divisions, Setúbal District
Viseu, location.administrative_division.country, Portugal
Western Europe, location.location.contains, Portugal
m.0b48jql, common.webpage.topic, Portugal
Portugal, location.country.administrative_divisions, São Vicente
Portugal, location.country.second_level_divisions, Évora District
Miguel I of Portugal, royalty.monarch.kingdom, Portugal
Portugal, location.country.administrative_divisions, Aveiro District
Hammuda ibn Ali, people.family_member.family, Husainid Dynasty
Portugal, base.aareas.schema.administrative_area.administrative_area_type, Sovereign state
Portugal, book.book_subject.works, Pereira Maintains
Portugal, royalty.kingdom.rulers, Pedro V of Portugal
Tunisia, royalty.kingdom.rulers, Abu l-Hasan Ali I

Answer: Tunisia