Simple Question (Direct)
Simple Question
Q1240369
P47
Q20667921
USER
Who share the border with Rapale ?
(Q1240369,P47,c(Q20667921))
action filter_type
action find
entity Q1240369
relation P47
type Q20667921
['Q1240369', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?i WHERE { resource:Q1240369 property:P47 ?i . ?i rdf:type ontology:Q20667921 }
Rapale
action filter_type
action find
entity Rapale
relation shares border with
type type of french administrative division
['Rapale', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?i WHERE { resource:Rapale property:shares_border_with ?i . ?i rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q637428 Q252460 Q650588
SYSTEM
Murato, Piève, Oletta
Q650588 Q693431 Q686605 Q637428 Q1240397 Q252460 Q677952
(Q1240369,P47,c(Q20667921))
action filter_type
action find
entity Q1240369
relation P47
type Q20667921
[ANSWERS] share the border with Rapale
['Q1240369', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?i WHERE { resource:Q1240369 property:P47 ?i . ?i rdf:type ontology:Q20667921 }
Oletta Santo-Pietro-di-Tenda Olmeta-di-Tuda Murato Vallecalle Piève Saint-Florent
Murato, Piève and Oletta share the border with Rapale
Murato Piève Oletta
action filter_type
action find
entity Rapale
relation shares border with
type type of french administrative division
['Rapale', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?i WHERE { resource:Rapale property:shares_border_with ?i . ?i rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q637428 Q252460 Q650588
P47
Q20667921
USER
Which french administrative divisions have an adjacent border with Murato, Piève and Oletta ?
(c(Q20667921),P47,Q637428) (c(Q20667921),P47,Q252460) (c(Q20667921),P47,Q650588)
action union
action filter_type
action find
entity Q637428
relation P47
type Q20667921
action filter_type
action find
entity Q252460
relation P47
type Q20667921
action filter_type
action find
entity Q650588
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q637428'] [{'concept': 'Q20667921'}, 'P47', 'Q252460'] [{'concept': 'Q20667921'}, 'P47', 'Q650588']
SELECT DISTINCT ?m WHERE { ?w property:P47 ?m . VALUES ( ?w ) { ( resource:Q637428 ) ( resource:Q252460 ) } }
Murato Piève Oletta
action union
action filter_type
action find
entity Murato
relation shares border with
type type of french administrative division
action filter_type
action find
entity Piève
relation shares border with
type type of french administrative division
action filter_type
action find
entity Oletta
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Murato'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Piève'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Oletta']
SELECT DISTINCT ?m WHERE { ?w property:shares_border_with ?m . VALUES ( ?w ) { ( resource:Murato ) ( resource:Piève ) } }
[]
type of french administrative division
Q252460 Q631214 Q637428
SYSTEM
Piève, Pietralba, Murato
Q634070 Q252460 Q264864 Q271086 Q1240369 Q1240397 Q476358 Q245697 Q631214 Q637428 Q266831 Q677880 Q1240369 Q693431 Q476358 Q476364 Q686605 Q677952 Q637279 Q1240172 Q1240369
(c(Q20667921),P47,Q637428) (c(Q20667921),P47,Q252460) (c(Q20667921),P47,Q650588)
action union
action filter_type
action find
entity Q637428
relation P47
type Q20667921
action filter_type
action find
entity Q252460
relation P47
type Q20667921
action filter_type
action find
entity Q650588
relation P47
type Q20667921
[ANSWERS] have an adjacent border with Murato, Piève and Oletta
[{'concept': 'Q20667921'}, 'P47', 'Q637428'] [{'concept': 'Q20667921'}, 'P47', 'Q252460'] [{'concept': 'Q20667921'}, 'P47', 'Q650588']
SELECT DISTINCT ?m WHERE { ?w property:P47 ?m . VALUES ( ?w ) { ( resource:Q637428 ) ( resource:Q252460 ) } }
Scolca Piève Rutali Campitello Rapale Vallecalle Bigorno San-Gavino-di-Tenda Pietralba Murato Sorio Lento Rapale Santo-Pietro-di-Tenda Bigorno Biguglia Olmeta-di-Tuda Saint-Florent Furiani Poggio-d'Oletta Rapale
Piève, Pietralba and Murato have an adjacent border with Murato, Piève and Oletta
Piève Pietralba Murato
action union
action filter_type
action find
entity Murato
relation shares border with
type type of french administrative division
action filter_type
action find
entity Piève
relation shares border with
type type of french administrative division
action filter_type
action find
entity Oletta
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Murato'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Piève'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Oletta']
SELECT DISTINCT ?m WHERE { ?w property:shares_border_with ?m . VALUES ( ?w ) { ( resource:Murato ) ( resource:Piève ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q637428
P36
Q20667921
USER
Which french administrative division has that one as its capital ?
(c(Q20667921),P36,Q637428)
action filter_type
action find_reverse
entity Q637428
relation P36
type Q20667921
[{'concept': 'Q20667921'}, 'P36', 'Q637428']
SELECT DISTINCT ?j WHERE { ?j property:P36 resource:Q637428 . ?j rdf:type ontology:Q20667921 }
Murato
action filter_type
action find_reverse
entity Murato
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Murato']
SELECT DISTINCT ?j WHERE { ?j property:capital resource:Murato . ?j rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Clarification for simple ques.
Q637428
SYSTEM
Did you mean Murato ?
Q252460 Q631214 Q637428
(c(Q20667921),P36,Q252460) (c(Q20667921),P36,Q631214) (c(Q20667921),P36,Q637428)
[ANSWER]
[{'concept': 'Q20667921'}, 'P36', 'Q252460'] [{'concept': 'Q20667921'}, 'P36', 'Q631214'] [{'concept': 'Q20667921'}, 'P36', 'Q637428']
SELECT DISTINCT ?j WHERE { ?j property:P36 resource:Q637428 . ?j rdf:type ontology:Q20667921 }
Piève Pietralba Murato
Did you mean Murato ?
Murato
[{'concept': 'type of french administrative division'}, 'capital', 'Piève'] [{'concept': 'type of french administrative division'}, 'capital', 'Pietralba'] [{'concept': 'type of french administrative division'}, 'capital', 'Murato']
SELECT DISTINCT ?j WHERE { ?j property:capital resource:Murato . ?j rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q20667921),P36,Q637428)
[{'concept': 'Q20667921'}, 'P36', 'Q637428']
[{'concept': 'type of french administrative division'}, 'capital', 'Murato']
[]
Q1725808
SYSTEM
canton of Le Haut-Nebbio
Q1725808
(c(Q20667921),P36,Q637428)
action filter_type
action find_reverse
entity Q637428
relation P36
type Q20667921
The [ANSWER] has that one as its capital
[{'concept': 'Q20667921'}, 'P36', 'Q637428']
SELECT DISTINCT ?j WHERE { ?j property:P36 resource:Q637428 . ?j rdf:type ontology:Q20667921 }
canton of Le Haut-Nebbio
The canton of Le Haut-Nebbio has that one as its capital
canton of Le Haut-Nebbio
action filter_type
action find_reverse
entity Murato
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Murato']
SELECT DISTINCT ?j WHERE { ?j property:capital resource:Murato . ?j rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P159
Q20667921 Q4830453 Q874405
USER
Which french administrative divisions are the headquarter locations of min number of business enterprises or social groups ?
(c(Q4830453)|c(Q874405),P159,c(Q20667921))
action argmin
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q4830453
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q874405
[[{'concept': 'Q4830453'}, {'concept': 'Q874405'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?w ) { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?y ) WHERE { ?s rdf:type ?u . VALUES ( ?u ) { ( ontology:Q4830453 ) ( ontology:Q874405 ) } } GROUP BY ?q } } . { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?k ) WHERE { { ?d rdf:type ontology:Q20667921 . ?r rdf:type ontology:Q4830453 . ?r property:P159 ?d } UNION { ?d rdf:type ontology:Q20667921 . ?r rdf:type ontology:Q874405 . ?r property:P159 ?d } } GROUP BY ?d } . FILTER ( ?k = ?w ) }
action argmin
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type business enterprise
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type social group
[[{'concept': 'business enterprise'}, {'concept': 'social group'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?w ) { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?y ) WHERE { ?s rdf:type ?u . VALUES ( ?u ) { ( ontology:business_enterprise ) ( ontology:social_group ) } } GROUP BY ?q } } . { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?k ) WHERE { { ?d rdf:type ontology:type_of_french_administrative_division . ?r rdf:type ontology:business_enterprise . ?r property:headquarters_location ?d } UNION { ?d rdf:type ontology:type_of_french_administrative_division . ?r rdf:type ontology:social_group . ?r property:headquarters_location ?d } } GROUP BY ?d } . FILTER ( ?k = ?w ) }
[]
type of french administrative division business enterprise social group
Q42716 Q234735 Q6730
SYSTEM
Saint-Étienne, Meudon, Perpignan
Q22438 Q205537 Q1047751 Q317433 Q1226504 Q1004486 Q182872 Q632276 Q22660 Q207605 Q216844 Q214600 Q212793 Q404445 Q363100 Q372882 Q615159 Q838334 Q22810 Q46712 Q1018637 Q274683 Q271068 Q256137 Q696996 Q316452 Q675232 Q337636 Q194002 Q9733 Q219383 Q636993 Q126675 Q659327 Q213555 Q134674 Q211121 Q269430 Q163108 Q21347 Q21346 Q1389275 Q194141 Q194145 Q1342783 Q6593 Q241575 Q960827 Q124126 Q578683 Q233733 Q429770 Q188750 Q383388 Q247627 Q1169872 Q816094 Q635643 Q658928 Q212274 Q668446 Q1111084 Q202374 Q234735 Q47135 Q491948 Q22697 Q22690 Q238429 Q819837 Q565982 Q369954 Q132671 Q477013 Q13947 Q1146338 Q386778 Q694905 Q220592 Q274774 Q474768 Q735931 Q274412 Q476687 Q185066 Q163795 Q184047 Q1066554 Q467132 Q457389 Q10235 Q107501 Q609134 Q117551 Q241064 Q171800 Q366383 Q1081604 Q1103338 Q630193 Q324027 Q727297 Q200832 Q20441 Q609047 Q334301 Q213285 Q174234 Q203529 Q132404 Q273017 Q794124 Q231554 Q6730 Q208943 Q239908 Q752150 Q1384871 Q174247 Q207614 Q1106922 Q161884 Q175081 Q242497 Q192481 Q240286 Q1008824 Q1064869 Q1602947 Q392169 Q265657 Q910089 Q244725 Q1323215 Q1615759 Q326520 Q760624 Q213515 Q549536 Q730148 Q323727 Q12193 Q828625 Q579807 Q372218 Q174019 Q205592 Q202565 Q243868 Q476895 Q191856 Q627252 Q37719 Q235382 Q243915 Q269952 Q1119799 Q225451 Q16121 Q22776 Q245297 Q211706 Q669021 Q134346 Q39984 Q212959 Q746946 Q239091 Q285 Q227795 Q269862 Q1067807 Q549750 Q460795 Q648073 Q239123 Q384516 Q268062 Q454445 Q46135 Q223692 Q1428824 Q240189 Q93351 Q1171684 Q268362 Q1078810 Q1144900 Q264637 Q193819 Q167024 Q291197 Q728517 Q526378 Q242536 Q1138493 Q1471382 Q160199 Q387447 Q237394 Q72248 Q841518 Q1069988 Q21298 Q193370 Q728033 Q675537 Q71724 Q271604 Q658561 Q21569 Q733833 Q818443 Q694800 Q194160 Q188658 Q81621 Q376986 Q1058168 Q1087218 Q632445 Q212987 Q22727 Q863563 Q264416 Q21511 Q463951 Q238310 Q1421965 Q331087 Q868513 Q958857 Q777493 Q174251 Q191765 Q189153 Q1423628 Q238366 Q963292 Q44160 Q382855 Q166997 Q332416 Q637695 Q8848 Q242569 Q368160 Q291094 Q724403 Q1166034 Q1110747 Q900479 Q763901 Q1066223 Q1026879 Q1467149 Q752053 Q272906 Q59724 Q183557 Q258059 Q81997 Q240798 Q1055925 Q851278 Q237303 Q208314 Q273748 Q338877 Q234728 Q128466 Q947069 Q997294 Q1067432 Q517466 Q1344726 Q1172798 Q21997 Q205580 Q382095 Q3581 Q193861 Q280296 Q41139 Q833394 Q1022934 Q399366 Q632969 Q328022 Q961186 Q664934 Q193826 Q655572 Q208866 Q253721 Q55905 Q279310 Q1063150 Q250106 Q245080 Q1069745 Q495474 Q1014814 Q22413 Q130800 Q626582 Q675950 Q184023 Q181955 Q605677 Q841345 Q852904 Q637279 Q791277 Q273897 Q817733 Q1094779 Q69990 Q271678 Q42716 Q1063932 Q783452 Q193895 Q180083 Q828253 Q632175 Q188776 Q21359 Q234274 Q207584 Q6588 Q474555 Q249884 Q243135 Q120161 Q193183 Q82185 Q636592 Q968116 Q70152 Q582299 Q184154 Q182287 Q13596 Q236058 Q22730 Q209005 Q239078 Q41185 Q269732 Q182481 Q2087041 Q240546 Q956943 Q1469416 Q45797 Q319933 Q44401 Q1047719 Q268281 Q1388467 Q220159 Q14112 Q264277 Q1157701 Q133824 Q28520 Q271407 Q1169745 Q473919 Q208851 Q231720 Q288 Q205116 Q83427 Q767320 Q912302 Q1103869 Q836443 Q658651 Q185075 Q6397 Q1651173 Q372281 Q62958 Q134698 Q372111 Q192982 Q6544 Q193256 Q769160 Q752466 Q193313 Q629891 Q5489 Q193903
(c(Q4830453)|c(Q874405),P159,c(Q20667921))
action argmin
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q4830453
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q874405
[ANSWERS] are the headquarter locations of min number of business enterprises or social groups
[[{'concept': 'Q4830453'}, {'concept': 'Q874405'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?w ) { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?y ) WHERE { ?s rdf:type ?u . VALUES ( ?u ) { ( ontology:Q4830453 ) ( ontology:Q874405 ) } } GROUP BY ?q } } . { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?k ) WHERE { { ?d rdf:type ontology:Q20667921 . ?r rdf:type ontology:Q4830453 . ?r property:P159 ?d } UNION { ?d rdf:type ontology:Q20667921 . ?r rdf:type ontology:Q874405 . ?r property:P159 ?d } } GROUP BY ?d } . FILTER ( ?k = ?w ) }
Entzheim Épernay Chappes Les Mureaux Ruaudin Macau Fontainebleau Fontevraud-l'Abbaye Illkirch-Graffenstaden Noisy-le-Grand Les Ulis Romorantin-Lanthenay Charenton-le-Pont Aiglepierre Miribel Mondeville Ludes Pouzauges Dorlisheim Fontaine-lès-Dijon Méolans-Revel Abrest Blagnac Buc Lesquin Thiais Bondoufle Saint-Sébastien-sur-Loire Batilly Nouméa Saint-Uze Marnes-la-Coquette Chantilly Chens-sur-Léman Corte Bayonne Aubenas Bourg-lès-Valence Saint-Malo Eckbolsheim Reichstett Verneuil-en-Halatte Draguignan Château-Thierry Tours-sur-Marne Vannes Divonne-les-Bains Saint-Chef Kingersheim Marolles-en-Hurepoix Ferney-Voltaire La Possession Saint-Estèphe Lillers Longpont-sur-Orge Villebarou Signes Roquefort Ay Nogent-sur-Marne Saint-Berthevin La Crèche Châteaulin Meudon Châlons-en-Champagne Les Clayes-sous-Bois Molsheim Metz Bezons Durtal Annecy-le-Vieux Bry-sur-Marne Pau Champagnole Centre-Val de Loire Cerizay Pertuis Fourchambault Blanquefort Viviers Plouzané L'Isle-Jourdain Bédarieux Trégueux Cholet Valenciennes Aubagne Auberchicourt Arcueil Marcoussis Beynost Sarcelles Joinville-le-Pont Champs-sur-Yonne Villepinte Évreux Mézidon-Canon Seyssinet-Pariset Onnaing Saint-Aignan-Grandlieu Pierrelatte Romilly-sur-Seine Morteau Quetigny Carros Berck Castelsarrasin Aurillac Lons-le-Saunier Bourges Évian-les-Bains Saint-Rémy-lès-Chevreuse La Ciotat Perpignan Bagnolet Saint-Pol-de-Léon Paray-Vieille-Poste La Ménitré Mâcon Figeac L'Horme Bagneux Gap Tremblay-en-France Talence Lamballe Bernin Montesquieu Saint-Vallier Sentheim Vert-le-Petit Saint-Genis-Laval La Courneuve Saint-Pé-de-Bigorre Saint-Cyr-au-Mont-d'Or Cestas Mantes-la-Ville Ancenis Limeil-Brévannes Contres Loos-en-Gohelle Brest Villebon-sur-Yvette Crolles Plaisir Béziers Antony Coutances Saint-Martin-d'Hères Nogent-sur-Seine Oyonnax Aubière Beaurainville Quimperlé Aimargues Magny-Cours Toussus-le-Noble Villeneuve-la-Garenne Beaune Benfeld Roscoff Briord Mauléon Angoulême Cannes Denain Coulounieix-Chamiers Croix Cognac Cesson-Sévigné Allauch Saint-Jean-de-Moirans Milly-la-Forêt Bonneville Saint-Marcel Ermont Saint-Louis Bréhal Buzançais Créteil Cornillé Escalquens Douarnenez Vichy Chémeré-le-Roi Le Petit-Quevilly Panazol Jarnac-Champagne Wissous Vincennes Basse-Terre Bouguenais Saint-André-lez-Lille Limay Champs-sur-Marne Courcouronnes Reyniès Cherbourg-Octeville Vélizy-Villacoublay Bondy Vitry-sur-Seine Rumilly Écaquelon Reichshoffen Montreuil Le Bar-sur-Loup Averton Lorient Émerainville Lezennes Sarre-Union Pibrac Briare Ugine Clamart Aïcirits-Camou-Suhast Fort-de-France Lédenon Roissy-en-Brie Aigrefeuille-d'Aunis Mimizan Choisy-le-Roi Obernai Anneyron Chalonnes-sur-Loire Oberhausbergen Maisons-Laffitte Grigny Le Perray-en-Yvelines Creil Ergué-Gabéric Roumazières-Loubert Taissy Châteauroux Anglet Saint-Cloud Charnay-lès-Mâcon Annonay Terssac Toulon Lagorce Nevers Saint-Genis-Pouilly Saint-Genest-d'Ambière Valence Montgeron Saint-Julien-en-Genevois Étuz Hautot-le-Vatois Igny Azereix Noisiel Templemars Andrézieux-Bouthéon Lestrem Labège Saint-Ours Le Bourget Étain Dieppe Tournan-en-Brie Boulogne-sur-Mer Montigny-le-Bretonneux Mont-Saint-Aignan Arques Guyancourt Maisons-Alfort Écully Châteauneuf-du-Pape Vanves Villejuif Le Lamentin Pluguffan Crespin Mouzeil Donneville Longueil Saint-Louis-lès-Bitche Palaiseau Trégunc Roanne Castelnaudary Tain-l'Hermitage Melun Gretz-Armainvilliers Faaa Chevreuse Plombières-les-Bains Tournefeuille Oulins Raismes Douai Le Grand-Quevilly La Seyne-sur-Mer Malakoff Pontivy Marcigny La Selle-en-Luitré Samois-sur-Seine Bourbon-l'Archambault Saint-Égrève Sausheim Les Avirons Wasselonne Papeete Lohéac Grans Tarbes Aix-les-Bains Limonest Domancy Fresnoy-le-Grand Furiani Avon, Seine-et-Marne Feucherolles La Farlède Vaumeilh Guer Servon Saint-Étienne Chouilly Villieu-Loyes-Mollon Lattes Menton Chavanod Meylan Castres Merkwiller-Pechelbronn Manosque Brignoles Périgueux Castelnau-le-Lez Saint-Pierre Ambès Saint-Florent-le-Vieil Alès La Rochelle Balbigny Messimy La Gacilly La Baume Laval Crépy-en-Valois Vaulx-en-Velin Orly Haguenau Cachan Romans-sur-Isère Caen Fécamp Tourcoing Dembeni Élancourt Le Port Marcy-l'Étoile Dunkirk Yerres Cayenne Hem Lognes Saint-Marcel Saint-Grégoire Corsica Gémenos La Chapelle-Saint-Mesmin Issoire Abbeville Orvault Villefrancœur Lectoure Gif-sur-Yvette Honfleur Tours Amboise Bazainville Ruillé-sur-Loir Metz-Tessy Avrainville Chalezeule Cogolin Saint-Germain-en-Laye Avignon Corbas Orsay Auray Bastia Romainville Cluny Libourne Montluçon Grande-Synthe Voreppe Saint-Maur-des-Fossés Le Plessis-Belleville Troyes Cergy
Saint-Étienne, Meudon and Perpignan are the headquarter locations of min number of business enterprises or social groups
Saint-Étienne Meudon Perpignan
action argmin
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type business enterprise
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type social group
[[{'concept': 'business enterprise'}, {'concept': 'social group'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?w ) { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?y ) WHERE { ?s rdf:type ?u . VALUES ( ?u ) { ( ontology:business_enterprise ) ( ontology:social_group ) } } GROUP BY ?q } } . { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?k ) WHERE { { ?d rdf:type ontology:type_of_french_administrative_division . ?r rdf:type ontology:business_enterprise . ?r property:headquarters_location ?d } UNION { ?d rdf:type ontology:type_of_french_administrative_division . ?r rdf:type ontology:social_group . ?r property:headquarters_location ?d } } GROUP BY ?d } . FILTER ( ?k = ?w ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q42716
P1376
Q20667921
USER
Which french administrative divisions have Saint-Étienne as their county seat ?
(Q42716,P1376,c(Q20667921))
action filter_type
action find
entity Q42716
relation P1376
type Q20667921
['Q42716', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { resource:Q42716 property:P1376 ?d . ?d rdf:type ontology:Q20667921 }
Saint-Étienne
action filter_type
action find
entity Saint-Étienne
relation capital of
type type of french administrative division
['Saint-Étienne', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { resource:Saint-Étienne property:capital_of ?d . ?d rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1482860 Q1482938 Q1482833
SYSTEM
canton of Saint-Étienne-Sud-Est-1, canton of Saint-Étienne-Sud-Ouest-1, canton of Saint-Étienne-Sud-Est-2
Q1482860 Q1482938 Q1482833 Q1482790 Q283087 Q1482734 Q1482761 Q918773 Q1482969
(Q42716,P1376,c(Q20667921))
action filter_type
action find
entity Q42716
relation P1376
type Q20667921
[ANSWERS] have Saint-Étienne as their county seat
['Q42716', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { resource:Q42716 property:P1376 ?d . ?d rdf:type ontology:Q20667921 }
canton of Saint-Étienne-Sud-Est-1 canton of Saint-Étienne-Sud-Ouest-1 canton of Saint-Étienne-Sud-Est-2 canton of Saint-Étienne-Sud-Est-3 canton of Saint-Étienne-Nord-Est-1 canton of Saint-Étienne-Nord-Ouest-1 canton of Saint-Étienne-Nord-Ouest-2 canton of Saint-Étienne-Nord-Est-2 canton of Saint-Étienne-Sud-Ouest-2
Canton of Saint-Étienne-Sud-Est-1, canton of Saint-Étienne-Sud-Ouest-1 and canton of Saint-Étienne-Sud-Est-2 have Saint-Étienne as their county seat
canton of Saint-Étienne-Sud-Est-1 canton of Saint-Étienne-Sud-Ouest-1 canton of Saint-Étienne-Sud-Est-2
action filter_type
action find
entity Saint-Étienne
relation capital of
type type of french administrative division
['Saint-Étienne', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { resource:Saint-Étienne property:capital_of ?d . ?d rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1482860 Q1482938 Q1482833
P17
Q15617994
USER
Which administrative territories are those french administrative divisions present in ?
(Q1482860,P17,c(Q15617994)) (Q1482938,P17,c(Q15617994)) (Q1482833,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q1482860', 'P17', {'concept': 'Q15617994'}] ['Q1482938', 'P17', {'concept': 'Q15617994'}] ['Q1482833', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?w property:P17 ?k . VALUES ( ?w ) { ( resource:Q1482860 ) ( resource:Q1482938 ) ( resource:Q1482833 ) } . ?k rdf:type ontology:Q15617994 }
canton of Saint-Étienne-Sud-Est-1 canton of Saint-Étienne-Sud-Ouest-1 canton of Saint-Étienne-Sud-Est-2
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['canton of Saint-Étienne-Sud-Est-1', 'country', {'concept': 'designation for an administrative territorial entity'}] ['canton of Saint-Étienne-Sud-Ouest-1', 'country', {'concept': 'designation for an administrative territorial entity'}] ['canton of Saint-Étienne-Sud-Est-2', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?w property:country ?k . VALUES ( ?w ) { ( resource:canton_of_Saint-Étienne-Sud-Est-1 ) ( resource:canton_of_Saint-Étienne-Sud-Ouest-1 ) ( resource:canton_of_Saint-Étienne-Sud-Est-2 ) } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q142 Q142
SYSTEM
France
Q142 Q142 Q142
(Q1482860,P17,c(Q15617994)) (Q1482938,P17,c(Q15617994)) (Q1482833,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
Which administrative territories are those french administrative divisions present in
['Q1482860', 'P17', {'concept': 'Q15617994'}] ['Q1482938', 'P17', {'concept': 'Q15617994'}] ['Q1482833', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?w property:P17 ?k . VALUES ( ?w ) { ( resource:Q1482860 ) ( resource:Q1482938 ) ( resource:Q1482833 ) } . ?k rdf:type ontology:Q15617994 }
France France France
Which administrative territories are those french administrative divisions present in
France France France
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['canton of Saint-Étienne-Sud-Est-1', 'country', {'concept': 'designation for an administrative territorial entity'}] ['canton of Saint-Étienne-Sud-Ouest-1', 'country', {'concept': 'designation for an administrative territorial entity'}] ['canton of Saint-Étienne-Sud-Est-2', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?w property:country ?k . VALUES ( ?w ) { ( resource:canton_of_Saint-Étienne-Sud-Est-1 ) ( resource:canton_of_Saint-Étienne-Sud-Ouest-1 ) ( resource:canton_of_Saint-Étienne-Sud-Est-2 ) } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]