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 countries share borders with spain? 
Knowledge Triplets: Spain, location.country.administrative_divisions, Province of Santa Cruz de Tenerife
Spain, location.location.partially_containedby, Pyrenees
Spain, location.country.capital, Madrid
Čedok, travel.travel_destination.tour_operators, France
Basque Language, location.country.languages_spoken, France
Spain, location.country.administrative_divisions, Province of Almería
Spain, common.topic.image, Location of Spain
m.03z95_p, location.adjoining_relationship.adjoins, Spain
Spain, common.topic.webpage, m.09yggjx
Western Europe, location.location.contains, Spain
Asterix at the Olympic Games, film.film.country, France
m.0wfd2d8, sports.competitor_country_relationship.country, Spain
Spain, location.country.second_level_divisions, Province of Guadalajara
Spain, location.country.second_level_divisions, Province of Teruel
Spain, location.country.second_level_divisions, Province of Badajoz
Spain, location.country.second_level_divisions, Province of Pontevedra
Segre, location.location.partially_contains, France
Spain, location.country.national_anthem, m.03z95_9
Spain, location.country.administrative_divisions, Province of Lleida
m.0h3_13h, common.webpage.topic, Spain
Spain, location.country.second_level_divisions, Province of Almería
m.09yggjx, common.webpage.topic, Spain
m.0b47bft, common.webpage.topic, Spain
Spain, location.location.primarily_containedby, Europe
Spain, location.country.administrative_divisions, Province of Palencia
Spain, location.country.second_level_divisions, Province of Castellón
Spain, organization.organization.founders, World Trade Organization
Spain, location.country.administrative_divisions, Canary Islands
Parliamentary system, government.form_of_government.countries, Gibraltar
2010 Winter Olympics, olympics.olympic_games.participating_countries, Spain
Western European Time Zone, location.location.time_zones, Morocco
Spain, location.country.first_level_divisions, Region of Murcia
Spain, location.country.second_level_divisions, Asturias
Spain, location.country.administrative_divisions, Province of Málaga
World Trade Organization, organization.organization_founder.organizations_founded, Morocco
Spain, location.location.partially_contains, Pico Carris
Basque Shepherd Dog, biology.breed_origin.breeds_originating_here, France
Central European Time Zone, location.location.time_zones, France
m.0wcfl8s, sports.competitor_competition_relationship.country, Spain
Spain, location.country.first_level_divisions, Community of Madrid
Euro, location.country.currency_used, France
Spain, location.country.languages_spoken, Basque Language
Spain, location.location.containedby, Western Europe
Limia, geography.river.basin_countries, Spain
Spain, location.country.form_of_government, Unitary state
m.0h28xql, location.adjoining_relationship.adjoins, Spain
Bunnik Tours, travel.travel_destination.tour_operators, Portugal
Spain, location.location.partially_containedby, Guadiana
Spain, location.location.partially_containedby, Gran Valira
Pyrenees, location.location.containedby, Andorra
Spain, olympics.olympic_participating_country.olympics_participated_in, 1980 Winter Olympics
Spain, location.country.second_level_divisions, Province of Córdoba
Monarchy, location.country.form_of_government, Andorra
Spain, location.country.administrative_divisions, Melilla
Spain, government.form_of_government.countries, Parliamentary system
  Adventures by Disney - 5-Night Mediterranean Magic Cruise, travel.tour_operator.travel_destinations, France
Spain, location.country.languages_spoken, Spanish Language
Pico Carris, location.location.partially_contains, Portugal
Spain, government.governmental_jurisdiction.agencies, Ministry of Territorial Policy
m.0b486m5, common.webpage.topic, Spain
Spain, location.country.first_level_divisions, Castilla-La Mancha
Caia, location.location.partially_containedby, Portugal
Catalan language, language.human_language.countries_spoken_in, France
1980 Winter Olympics, olympics.olympic_games.participating_countries, Andorra
Spain, location.country.second_level_divisions, Province of Málaga
Spain, location.country.second_level_divisions, La Rioja
Spain, location.country.administrative_divisions, Begoña
Spain, location.country.second_level_divisions, Province of Tarragona
Spain, location.country.administrative_divisions, La Jara
Spain, location.location.partially_contains, Iberian Peninsula
Spain, location.country.second_level_divisions, Province of Seville
m.0j1bzdy, common.webpage.topic, Spain
Spain, location.statistical_region.net_migration, g.1s067zrh5
Spain, location.country.currency_formerly_used, Peseta
Spain, location.country.languages_spoken, Occitan language
Spain, location.country.administrative_divisions, Province of Jaén
m.011nrnb0, sports.competitor_competition_relationship.country, Spain
Iberian Peninsula, location.location.contains, Gibraltar
2002 Winter Olympics, olympics.olympic_games.participating_countries, Spain
Pica d'Estats, location.location.partially_containedby, France
Unitary state, government.form_of_government.countries, Morocco
Europe, location.location.primarily_containedby, Portugal
Guadiana, geography.river.basin_countries, Portugal
Segre, geography.river.basin_countries, Andorra
Spain, location.country.internet_tld, es
Spain, location.country.second_level_divisions, Zaragoza
Spain, base.aareas.schema.administrative_area.administrative_children, Basque Country
Earth, base.aareas.schema.administrative_area.administrative_parent, France
Spain, location.location.partially_containedby, Minho
Spain, common.topic.webpage, m.09ypy5w
Spain, location.country.second_level_divisions, Province of Huesca
m.04fj_hj, location.statistical_region.places_imported_from, Andorra
Spain, common.topic.webpage, m.09yr599
Galicia, base.biblioness.bibs_location.country, Spain
1952 Summer Olympics, olympics.olympic_games.participating_countries, France
m.0b659cg, sports.competitor_competition_relationship.country, Spain
Basque Country, location.administrative_division.first_level_division_of, Spain
Spain, location.country.form_of_government, Constitutional monarchy
m.09yr599, common.webpage.topic, Spain
m.03w5dqt, location.adjoining_relationship.adjoins, Spain
Spain, location.country.first_level_divisions, Peñón de Alhucemas
Spain, location.location.partially_contains, Pic del Port Vell
Spain, location.country.second_level_divisions, Province of Zamora
Basque Country, location.administrative_division.country, Spain
Central European Time Zone, location.location.time_zones, Gibraltar
2010 Winter Olympics, olympics.olympic_games.participating_countries, France
Spain, location.country.administrative_divisions, La Venta
Spain, location.country.first_level_divisions, Basque Country
Andalusia, location.administrative_division.country, Spain
Spain, location.location.partially_containedby, Tâmega
m.0wf78db, sports.competitor_country_relationship.country, Spain
Spain, location.country.administrative_divisions, Serranía de Ronda
Spain, location.location.adjoin_s, m.043w88_
Spain, location.country.second_level_divisions, Province of Segovia
Spain, common.topic.webpage, m.0fwm0pg
Spain, location.country.first_level_divisions, Galicia
Spain, location.location.partially_containedby, Caia
1900 Summer Olympics, olympics.olympic_games.participating_countries, France
Spain, location.location.partiallycontains, m.0wg9117
m.03w5dqt, location.location.adjoin_s, Morocco
Spain, location.country.administrative_divisions, Navarre
Spain, location.country.administrative_divisions, Province of Ourense
Spain, location.country.administrative_divisions, Province of Seville
Spain, location.country.second_level_divisions, Province of Salamanca
Spain, location.location.partially_contains, g.122p30g8
Spain, location.country.first_level_divisions, Aragon
Spain, location.country.second_level_divisions, Province of Ávila
Spain, location.country.second_level_divisions, Province of Cáceres
m.09ygs93, common.webpage.topic, Spain
Limia, location.location.partially_containedby, Portugal
Spain, travel.tour_operator.travel_destinations,   Adventures by Disney - 5-Night Mediterranean Magic Cruise
1948 Winter Olympics, olympics.olympic_participating_country.olympics_participated_in, France
Spain, location.country.administrative_divisions, Province of Albacete
m.0113yl60, sports.competitor_country_relationship.country, Spain
m.0y56x1r, sports.competitor_competition_relationship.country, Spain
Southern Europe, location.location.partially_contains, Portugal
m.09x8f1v, common.webpage.topic, Spain
Spain, biology.breed_origin.breeds_originating_here, Pyrenean Shepherd
Spain, location.country.second_level_divisions, Province of A Coruña
Spain, common.topic.webpage, m.09x4wj7
Puigmal, location.location.partially_contains, France
m.03q9tk0, location.adjoining_relationship.adjoins, Spain
Spain, common.topic.webpage, m.09x8f1v
2008 Summer Olympics, olympics.olympic_participating_country.olympics_participated_in, Portugal
2014 Winter Olympics, olympics.olympic_games.participating_countries, Spain
m.0ch99k8, royalty.system_title_relationship.system, Spain
Spain, location.country.second_level_divisions, Cantabria
m.09wkgx5, common.webpage.topic, Spain
Unitary state, government.form_of_government.countries, Andorra
m.09y4hr_, common.webpage.topic, Spain
Sovereign state, base.aareas.schema.administrative_area.administrative_area_type, France
Spain, location.location.containedby, Perejil Island
Spain, location.country.form_of_government, Monarchy
Spain, common.topic.webpage, m.09x0hjr
Balearic Islands, location.administrative_division.country, Spain
Parliamentary system, location.country.form_of_government, Andorra
Spain, geography.river.basin_countries, Segre
Spain, location.country.administrative_divisions, Álava
m.09x259h, common.webpage.topic, Spain
Spain, location.country.first_level_divisions, Asturias
Spain, location.adjoining_relationship.adjoins, m.03z9605
Western Europe, location.location.contains_major_portion_of, Portugal
Spain, location.country.administrative_divisions, Cantabria
m.0wcfrgd, sports.competitor_country_relationship.country, Spain
Löwchen, biology.breed_origin.breeds_originating_here, France
Spain, geography.river.basin_countries, Limia
Spain, biology.breed_origin.breeds_originating_here, Basque Shepherd Dog
Spain, location.location.containedby, Europe
Spain, location.country.official_language, Spanish Language
Spain, location.location.time_zones, Western European Time Zone
Spain, location.country.first_level_divisions, Balearic Islands
m.09y2ysq, common.webpage.topic, Spain
m.03z9605, location.adjoining_relationship.adjoins, Spain
m.0zb23rl, location.mailing_address.country, Spain
Perdiguero, location.location.partially_containedby, France
Spain, base.locations.countries.continent, Europe
Spain, common.topic.webpage, m.0b6rps3
House of Bourbon, people.family.country, France
Spain, royalty.royal_line.kingdom_s_ruled, House of Bourbon
Spain, location.country.administrative_divisions, Province of A Coruña
Spain, location.country.second_level_divisions, Province of Lleida
Spain, location.country.administrative_divisions, Province of Córdoba
Phalène, biology.animal_breed.place_of_origin, France
Spain, biology.animal_breed.place_of_origin, Phalène
m.0zlw8r7, sports.competitor_competition_relationship.country, Spain
Spain, location.location.partially_contains, Vignemale Massif
Canary Islands, location.administrative_division.country, Spain
Spain, location.country.second_level_divisions, Province of Albacete
Peseta, finance.currency.countries_formerly_used, Spain
Spain, geography.river.basin_countries, Garonne
Spain, location.country.internet_tld, eu
m.0fwm0pg, common.webpage.topic, Spain
Euro, finance.currency.countries_used, Spain
Spain, location.location.containedby, Chafarinas Islands
Spain, location.country.first_level_divisions, Peñón de Vélez de la Gomera
Spain, location.country.first_level_divisions, Cantabria
Parliamentary system, location.country.form_of_government, Portugal
Spain, olympics.olympic_participating_country.olympics_participated_in, 2008 Summer Olympics
m.0wcflf5, sports.competitor_competition_relationship.country, Spain
Spain, location.country.administrative_divisions, Province of Badajoz
m.043w88_, location.adjoining_relationship.adjoins, Spain
Spain, location.location.partially_contains, Atlantic Ocean
m.09x0hjr, common.webpage.topic, Spain
eu, location.country.internet_tld, Gibraltar
Earth, base.aareas.schema.administrative_area.administrative_parent, Morocco
Bunnik Tours, travel.travel_destination.tour_operators, France
Spain, location.location.partially_containedby, Puigpedrós
Monarchy, location.country.form_of_government, Morocco
Spain, biology.animal_breed.place_of_origin, Löwchen
Spain, travel.travel_destination.tour_operators, Čedok
Official website, freebase.valuenotation.is_reviewed, France
Spain, finance.currency.countries_used, Euro
Spain, common.topic.webpage, m.09wkgx5
m.010vf5zr, sports.competitor_competition_relationship.country, Spain
Spain, location.location.partially_containedby, Pic de Médécourbe
Catalan Sheepdog, biology.breed_origin.breeds_originating_here, Andorra
Spain, location.location.primarily_containedby, Europe
Atlantic Ocean, location.location.partially_containedby, Portugal
Earth, base.aareas.schema.administrative_area.administrative_parent, Andorra
Spain, common.topic.webpage, m.09x4g8d
Unitary state, government.form_of_government.countries, Portugal
Spain, location.location.partially_contains, Pic de Sanfonts
Spain, film.film.country, Lucía y el sexo
m.011nrn7p, sports.competitor_competition_relationship.country, Spain
Spain, location.country.administrative_divisions, Biscay
Spain, location.country.administrative_divisions, Province of Cáceres
Location of Spain, common.image.size, m.03t4500
Spain, common.topic.webpage, m.0h3_13h
Lucía y el sexo, film.film.country, France
1952 Summer Olympics, olympics.olympic_participating_country.olympics_participated_in, Portugal
Pyrenees, location.location.partially_contains, France
Tâmega, geography.river.basin_countries, Portugal
Spain, language.human_language.countries_spoken_in, Catalan language
Asturias, location.administrative_division.country, Spain
Spain, location.location.partially_contains, Balaïtous
Spain, location.country.second_level_divisions, Gipuzkoa
Spain, base.aareas.schema.administrative_area.administrative_area_type, Sovereign state
Occitan language, location.country.languages_spoken, France
m.09ypy5w, common.webpage.topic, Spain
Spanish place of sovereignty, base.aareas.schema.administrative_area_type.iso_country, Spain
Spain, common.topic.webpage, m.09x259h
m.03z95_9, government.national_anthem_of_a_country.country, Spain
Minho, geography.river.basin_countries, Portugal
Spain, location.country.internet_tld, cat
Mediterranean Sea, location.location.partially_containedby, France
Spain, common.topic.webpage, m.0j1bzdy
Spain, location.country.second_level_divisions, Province of Valladolid
Garonne, location.location.partially_containedby, France
Spain, base.aareas.schema.administrative_area.administrative_parent, Earth
Country, common.topic.notable_types, Morocco
Roca Entravessada, location.location.partially_containedby, Andorra
eu, location.country.internet_tld, France
Spain, common.topic.article, m.06mkv
m.03z9605, location.adjoining_relationship.adjoins, Andorra
cat, location.country.internet_tld, France
Spain, common.topic.webpage, m.09ym47f
Spain, location.country.administrative_divisions, Province of Soria
2010 Winter Olympics, olympics.olympic_games.participating_countries, Portugal
Spain, location.statistical_region.net_migration, g.1q5jsykxg
Spain, location.country.second_level_divisions, Balearic Islands
Spain, biology.animal_breed.place_of_origin, Great Pyrenees
Sovereign state, base.aareas.schema.administrative_area.administrative_area_type, Morocco
Parliamentary system, location.country.form_of_government, Morocco
Spain, location.country.currency_formerly_used, Peseta
Spain, location.country.second_level_divisions, Province of Soria
Spain, location.country.second_level_divisions, Province of Toledo
Unitary state, government.form_of_government.countries, Spain
Date founded, freebase.valuenotation.is_reviewed, France
Spain, location.location.partially_containedby, Perdiguero
Spain, location.country.second_level_divisions, Province of Alicante
Spain, location.country.form_of_government, Parliamentary system
m.0fp9_m_, sports.competitor_competition_relationship.country, Spain
Spain, government.governmental_jurisdiction.agencies, Spanish National Research Council
Spain, location.country.second_level_divisions, Álava
Águeda, geography.river.basin_countries, Spain
Spain, location.location.partially_contains, Puigmal
m.0wcfrkd, sports.competitor_country_relationship.country, Spain
m.0z22q_t, location.adjoining_relationship.adjoins, Spain
Spain, location.country.second_level_divisions, Province of Lugo
Spain, location.country.second_level_divisions, Community of Madrid
Spain, location.country.first_level_divisions, Canary Islands
Spain, location.country.second_level_divisions, Province of Granada
Spain, location.adjoining_relationship.adjoins, m.03q9tk0
Spain, location.country.administrative_divisions, Province of Ciudad Real
Spain, common.topic.webpage, m.09ygs93
Spain, location.country.second_level_divisions, Province of Cádiz
m.09ym47f, common.webpage.topic, Spain
Spain, location.country.second_level_divisions, Province of Barcelona
Spain, location.country.internet_tld, eu
Spain, location.country.administrative_divisions, Castilla-La Mancha
Parliamentary system, government.form_of_government.countries, Spain
Spain, location.country.second_level_divisions, Province of Santa Cruz de Tenerife
Estrela Mountain Dog, biology.breed_origin.breeds_originating_here, Portugal
2008 Summer Olympics, olympics.olympic_participating_country.olympics_participated_in, France
m.0_bwqj5, location.mailing_address.country, Spain
Central European Time Zone, location.location.time_zones, Andorra
Garonne, geography.river.basin_countries, Spain
Spain, location.country.administrative_divisions, Community of Madrid
Europe, base.locations.continents.countries_within, Spain
Spain, location.location.partially_contains, Águeda
Spain, location.country.administrative_divisions, Andalusia
Perejil Island, location.location.contains_major_portion_of, Morocco
m.0bj7bbz, sports.competitor_country_relationship.country, Spain
Águeda, location.location.partially_contains, Portugal
m.0zlw6jn, sports.competitor_competition_relationship.country, Spain
Country, common.topic.notable_types, France
2008 Summer Olympics, olympics.olympic_participating_country.olympics_participated_in, Andorra
Spain, location.country.first_level_divisions, Ceuta
m.09x4wj7, common.webpage.topic, Spain
Pyrenean Shepherd, biology.breed_origin.breeds_originating_here, France
m.0z22rjw, location.adjoining_relationship.adjoins, Spain
Spain, location.country.administrative_divisions, Balearic Islands
Spain, film.film.country, Asterix at the Olympic Games
Spain, location.country.administrative_divisions, Province of Huesca
m.03q9tk0, location.adjoining_relationship.adjoins, France
Spain, olympics.olympic_games.participating_countries, 2010 Winter Olympics
Spain, location.country.first_level_divisions, Catalonia
Spain, location.country.administrative_divisions, Region of Murcia
Spain, location.location.partially_contains, Batoua SW
Spain, location.country.administrative_divisions, Catalonia
Spain, location.country.form_of_government, Unitary state
Spain, location.country.second_level_divisions, Biscay
Pic Schrader, location.location.partially_containedby, France
Spain, location.country.internet_tld, cat
Spain, location.country.languages_spoken, Occitan language
Spain, biology.animal_breed.place_of_origin, Papillon
Chafarinas Islands, location.location.contains_major_portion_of, Morocco
m.0j1bzdy, common.webpage.resource, Statoids of Spain
Spain, location.country.second_level_divisions, Province of Palencia
Euro, location.country.currency_used, Portugal
m.0y56wj1, sports.competitor_country_relationship.country, Spain
Spain, location.location.partially_containedby, Mediterranean Sea
Spain, location.country.languages_spoken, Spanish Language
Spain, location.country.administrative_divisions, Santiago
m.03z95_p, location.location.adjoin_s, Portugal
Pic del Port Vell, location.location.partially_containedby, Andorra
Spain, freebase.valuenotation.has_no_value, Date dissolved
Bay of Biscay, location.location.partially_containedby, France
Biscay, location.administrative_division.country, Spain
Spain, location.country.administrative_divisions, Extremadura
Barcelona, base.biblioness.bibs_location.country, Spain
Sovereign state, base.aareas.schema.administrative_area.administrative_area_type, Andorra
m.0wfd2nz, sports.competitor_country_relationship.country, Spain
Spanish Language, location.country.languages_spoken, Andorra
Basque Country, location.location.containedby, Spain
Spain, location.location.partially_containedby, Bay of Biscay
Balaïtous, location.location.partially_containedby, France
Spanish province, base.aareas.schema.administrative_area_type.iso_country, Spain
Bunnik Tours, travel.travel_destination.tour_operators, Morocco
Spain, location.country.second_level_divisions, Province of León
Spain, location.location.partially_containedby, Southern Europe
Spain, location.country.second_level_divisions, Province of Jaén
Spain, olympics.olympic_participating_country.olympics_participated_in, 1952 Summer Olympics
Segre, geography.river.basin_countries, Spain
Spain, olympics.olympic_games.participating_countries, 1900 Summer Olympics
Spain, location.adjoining_relationship.adjoins, m.03z95_p
Spain, location.country.currency_used, Euro
Spain, location.country.second_level_divisions, Province of Valencia
Spain, location.country.administrative_divisions, Barcelona
Spain, location.country.administrative_divisions, Aragon
Spain, location.country.administrative_divisions, Province of Alicante
Europe, location.location.contains_major_portion_of, Spain
Bichon Frise, biology.breed_origin.breeds_originating_here, France
Spain, biology.breed_origin.breeds_originating_here, Estrela Mountain Dog
Spain, location.country.administrative_divisions, Basque Country
Spain, location.country.administrative_divisions, Ceuta
Spain, location.country.form_of_government, Constitutional monarchy
Spain, location.country.second_level_divisions, Province of Ourense
m.0113yl3f, sports.competitor_country_relationship.country, Spain
Spain, location.country.administrative_divisions, Asturias
Spain, location.country.first_level_divisions, Navarre
m.09x4g8d, common.webpage.topic, Spain
Peseta, finance.currency.countries_formerly_used, Andorra
Catalonia, base.biblioness.bibs_location.country, Spain
m.0b658lf, sports.competitor_competition_relationship.country, Spain
Spanish autonomous city, base.aareas.schema.administrative_area_type.iso_country, Spain
Spain, location.country.second_level_divisions, Province of Burgos
Spain, location.country.administrative_divisions, Suances
Spain, common.topic.notable_types, Country
Gran Valira, location.location.partially_contains, Andorra
Spain, travel.travel_destination.tour_operators, Bunnik Tours
Spain, location.location.time_zones, Central European Time Zone
Spain, location.country.administrative_divisions, La Rioja
Vignemale, location.location.partially_contains, France
Spain, location.country.administrative_divisions, Province of Barcelona
Euro, location.country.currency_used, Andorra
Spain, location.country.administrative_divisions, Ruiloba
Vignemale Massif, location.location.partially_contains, France
Spain, location.location.partially_containedby, Southern Europe
Country, common.topic.notable_types, Andorra
Spain, location.country.second_level_divisions, Navarre
Spain, common.topic.webpage, m.09y2ysq
Western Europe, location.location.partially_containedby, France
Great Pyrenees, biology.breed_origin.breeds_originating_here, France
Spain, location.country.administrative_divisions, Gipuzkoa
Constitutional monarchy, location.country.form_of_government, Andorra
Spain, biology.breed_origin.breeds_originating_here, Catalan Sheepdog
Spain, olympics.olympic_games.participating_countries, 2014 Winter Olympics
Douro, geography.river.basin_countries, Spain
Spain, location.location.containedby, Western Europe
Sovereign state, base.aareas.schema.administrative_area.administrative_area_type, Portugal
Spain, location.location.partially_containedby, Pic Schrader
Spain, location.country.first_level_divisions, Castile and León
Guadiana, geography.river.basin_countries, Spain
Spain, freebase.valuenotation.has_value, Date founded
Spain, location.location.adjoin_s, m.03w5dqt
m.043w88_, location.adjoining_relationship.adjoins, Gibraltar
Spain, location.country.second_level_divisions, Province of Girona
Spain, location.location.partially_containedby, Vignemale
Spain, location.country.languages_spoken, Galician Language
Spain, location.country.first_level_divisions, Andalusia
Spain, location.country.first_level_divisions, Extremadura
Suances, location.administrative_division.country, Spain
Spain, location.country.second_level_divisions, Region of Murcia
2002 Winter Olympics, olympics.olympic_participating_country.olympics_participated_in, France
Basque Country, common.topic.notable_types, Spanish autonomous community
Spain, location.country.first_level_divisions, La Rioja
2014 Winter Olympics, olympics.olympic_games.participating_countries, Portugal
Spain, location.location.partially_contains, Pica d'Estats
m.0zfx37b, sports.competitor_competition_relationship.country, Spain
Spanish autonomous community, base.aareas.schema.administrative_area_type.iso_country, Spain
Spain, common.topic.webpage, m.0b486m5
Spain, location.imports_and_exports.imported_from, m.04fj_hj
Tagus, geography.river.basin_countries, Portugal
Navarre, base.biblioness.bibs_location.country, Spain
Catalan language, location.country.languages_spoken, Andorra
Madrid, base.biblioness.bibs_location.country, Spain
Pic de Médécourbe, location.location.partially_contains, Andorra
Spain, location.country.first_level_divisions, Melilla
m.0bj7bcd, sports.competitor_country_relationship.country, Spain
Extremadura, location.administrative_division.country, Spain
Country, common.topic.notable_types, Gibraltar
m.0zd6x5r, location.mailing_address.country, Spain
Spanish Language, location.country.languages_spoken, Gibraltar
Douro, location.location.partially_containedby, Portugal
Spain, location.country.second_level_divisions, Province of Las Palmas
Spain, biology.animal_breed.place_of_origin, Bichon Frise
Spain, location.country.second_level_divisions, Province of Huelva
Spain, location.country.form_of_government, Monarchy
Puigpedrós, location.location.partially_containedby, France
Spain, olympics.olympic_games.participating_countries, 2002 Winter Olympics
Tagus, geography.river.basin_countries, Spain
2014 Winter Olympics, olympics.olympic_participating_country.olympics_participated_in, Morocco
2014 Winter Olympics, olympics.olympic_participating_country.olympics_participated_in, France
Europe, location.location.contains_major_portion_of, France
Spain, common.topic.notable_types, Country
Country, common.topic.notable_types, Portugal
Čedok, travel.travel_destination.tour_operators, Morocco
Basque Country, base.aareas.schema.administrative_area.administrative_parent, Spain
g.122p30g8, location.location.partially_contains, Portugal
Iberian Peninsula, location.location.primarily_containedby, Portugal
Pic de Médécourbe, location.location.partially_containedby, France
Spain, geography.river.basin_countries, Tagus
m.0wfd2wc, sports.competitor_country_relationship.country, Spain
Europe, location.location.containedby, Gibraltar
Spain, location.location.partially_containedby, Roca Entravessada
Europe, base.locations.continents.countries_within, Andorra
Spain, geography.river.basin_countries, Douro
Government of Spain, government.government.agency, Ministry of Territorial Policy
Date dissolved, freebase.valuenotation.has_no_value, France
Spain, location.country.administrative_divisions, Castile and León
Pic de Sanfonts, location.location.partially_contains, Andorra
Spain, location.country.second_level_divisions, Province of Ciudad Real
Spain, location.country.administrative_divisions, Province of Segovia
Spain, location.country.second_level_divisions, Province of Cuenca
World Trade Organization, organization.organization.founders, France
2014 Winter Olympics, olympics.olympic_games.participating_countries, Andorra
Spain, common.topic.webpage, m.0b47bft
Spain, common.topic.notable_for, g.1256shf1y
Papillon, biology.animal_breed.place_of_origin, France
m.0w_kp2q, sports.competitor_country_relationship.country, Spain
Spain, location.location.partially_containedby, North Africa
Spain, freebase.valuenotation.is_reviewed, Official website
Spain, location.country.administrative_divisions, Province of Huelva
Constitutional monarchy, location.country.form_of_government, Gibraltar
Constitutional monarchy, location.country.form_of_government, Morocco
m.0b6rps3, common.webpage.topic, Spain
Catalonia, location.administrative_division.country, Spain
Spain, location.country.administrative_divisions, Galicia
Western European Time Zone, location.location.time_zones, Portugal
Spain, common.topic.webpage, m.09y4hr_
World Trade Organization, organization.organization.founders, Portugal
Unitary state, location.country.form_of_government, France
Batoua SW, location.location.partially_containedby, France
2008 Summer Olympics, olympics.olympic_participating_country.olympics_participated_in, Morocco
Spain, location.country.administrative_divisions, Zaragoza
Spain, location.country.administrative_divisions, Province of Valladolid
Spain, olympics.olympic_participating_country.olympics_participated_in, 1948 Winter Olympics
2002 Winter Olympics, olympics.olympic_participating_country.olympics_participated_in, Andorra
Earth, base.aareas.schema.administrative_area.administrative_parent, Portugal

Answer: France
Andorra
Gibraltar
Portugal
Morocco