What is {next to} of {has capital} of {Francia} ?
What country has a capital adjacent to Francia?
What has a capital next to Francia?
SELECT ?l WHERE { ?p property:shares_border_with ?l . resource:Francia property:capital ?p }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q146246> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P36>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q146246 wdt:P36 ?X . ?X wdt:P47 ?answer}
Hauts-de-Seine Seine-Saint-Denis Val-de-Marne Saint-Mandé Neuilly-sur-Seine Le Kremlin-Bicêtre Issy-les-Moulineaux Saint-Denis Levallois-Perret Boulogne-Billancourt Le Pré-Saint-Gervais Saint-Cloud Montreuil Vincennes Ivry-sur-Seine Fontenay-sous-Bois Suresnes Clichy Aubervilliers Saint-Ouen-sur-Seine Bagnolet Pantin Nogent-sur-Marne Charenton-le-Pont Vanves Puteaux Montrouge Malakoff Les Lilas Saint-Maurice Joinville-le-Pont Gentilly Stolberg Eschweiler Herzogenrath Gulpen-Wittem Vaals Simpelveld Kerkrade Heerlen Würselen Raeren Kelmis Roetgen Plombières Antoing Brunehaut Celles Sailly-lez-Lannoy Estaimpuis Frasnes-lez-Anvaing Leuze-en-Hainaut Pecq Péruwelz Rumes Wannehain Baisieux Camphin-en-Pévèle Bachy Toufflers Willems