Simple Question (Direct)
Simple Question
Q1422659
P190
Q15617994
USER
Which administrative territory is the sister city of Les Grandes-Ventes ?
(Q1422659,P190,c(Q15617994))
action filter_type
action find
entity Q1422659
relation P190
type Q15617994
['Q1422659', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q1422659 property:P190 ?e . ?e rdf:type ontology:Q15617994 }
Les Grandes-Ventes
action filter_type
action find
entity Les Grandes-Ventes
relation sister city
type designation for an administrative territorial entity
['Les Grandes-Ventes', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Les_Grandes-Ventes property:sister_city ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q547619
SYSTEM
Osterwieck
Q547619
(Q1422659,P190,c(Q15617994))
action filter_type
action find
entity Q1422659
relation P190
type Q15617994
[ANSWER] is the sister city of Les Grandes-Ventes
['Q1422659', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q1422659 property:P190 ?e . ?e rdf:type ontology:Q15617994 }
Osterwieck
Osterwieck is the sister city of Les Grandes-Ventes
Osterwieck
action filter_type
action find
entity Les Grandes-Ventes
relation sister city
type designation for an administrative territorial entity
['Les Grandes-Ventes', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Les_Grandes-Ventes property:sister_city ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1422659
P6
Q502895
USER
Who is the head of the government of that french administrative division ?
(Q547619,P6,c(Q502895))
action filter_type
action find
entity Q1422659
relation P6
type Q502895
['Q547619', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q1422659 property:P6 ?b . ?b rdf:type ontology:Q502895 }
Les Grandes-Ventes
action filter_type
action find
entity Les Grandes-Ventes
relation head of government
type common name
['Osterwieck', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Les_Grandes-Ventes property:head_of_government ?b . ?b rdf:type ontology:common_name }
[]
common name
Q2851565
SYSTEM
Annick Bocandé
Q2851565
(Q547619,P6,c(Q502895))
action filter_type
action find
entity Q1422659
relation P6
type Q502895
The head of the government of that french administrative division is Captain [ANSWER]
['Q547619', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q1422659 property:P6 ?b . ?b rdf:type ontology:Q502895 }
Annick Bocandé
The head of the government of that french administrative division is Captain Annick Bocandé
Annick Bocandé
action filter_type
action find
entity Les Grandes-Ventes
relation head of government
type common name
['Osterwieck', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Les_Grandes-Ventes property:head_of_government ?b . ?b rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P159
Q20667921 Q43229 Q874405
USER
Which french administrative divisions are the headquarters of atmost 12 organizations or social groups located ?
(c(Q43229)|c(Q874405),P159,c(Q20667921))
action atmost
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q43229
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q874405
value 12
[[{'concept': 'Q43229'}, {'concept': 'Q874405'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?b <= 12 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) ?x WHERE { { ?x rdf:type ontology:Q20667921 . ?m rdf:type ontology:Q43229 . ?m property:P159 ?x } UNION { ?m property:P159 ?x . ?m rdf:type ontology:Q874405 . ?x rdf:type ontology:Q20667921 } } GROUP BY ?x } }
action atmost
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type organization
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type social group
value 12
[[{'concept': 'organization'}, {'concept': 'social group'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?b <= 12 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) ?x WHERE { { ?x rdf:type ontology:type_of_french_administrative_division . ?m rdf:type ontology:organization . ?m property:headquarters_location ?x } UNION { ?m property:headquarters_location ?x . ?m rdf:type ontology:social_group . ?x rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?x } }
[]
type of french administrative division organization social group
Q42716 Q234735 Q6730
SYSTEM
Saint-Étienne, Meudon, Perpignan
Q22438 Q205537 Q753708 Q184359 Q234743 Q1047751 Q317433 Q1226504 Q192393 Q1416478 Q206961 Q1004486 Q182872 Q816117 Q632276 Q22660 Q207605 Q216844 Q214600 Q212793 Q404445 Q363100 Q372882 Q615159 Q838334 Q1727156 Q22810 Q46712 Q253939 Q1018637 Q259107 Q274683 Q271068 Q50189 Q256137 Q696996 Q45656 Q316452 Q675232 Q337636 Q194002 Q9733 Q219383 Q42807 Q636993 Q126675 Q659327 Q71469 Q213555 Q201982 Q134674 Q211121 Q21948474 Q152027 Q269430 Q163108 Q1152867 Q21347 Q21346 Q1389275 Q194141 Q208794 Q194145 Q1342783 Q6593 Q241575 Q960827 Q124126 Q578683 Q233733 Q429770 Q188750 Q383388 Q247627 Q1169872 Q816094 Q191415 Q47465 Q635643 Q658928 Q212274 Q668446 Q1111084 Q383369 Q202374 Q234735 Q43295 Q219045 Q47135 Q613323 Q491948 Q22697 Q22690 Q238429 Q207156 Q819837 Q565982 Q38380 Q369954 Q132671 Q477013 Q1469245 Q13947 Q1146338 Q819946 Q386778 Q694905 Q220592 Q175999 Q42168 Q274774 Q474768 Q735931 Q269166 Q274412 Q476687 Q235739 Q185066 Q236658 Q192426 Q163795 Q752979 Q184047 Q1066554 Q467132 Q457389 Q10235 Q107501 Q609134 Q117551 Q83432 Q205551 Q241064 Q171800 Q366383 Q1081604 Q1103338 Q279681 Q630193 Q324027 Q727297 Q200832 Q20441 Q609047 Q334301 Q213285 Q174234 Q203529 Q132404 Q273017 Q794124 Q231554 Q6730 Q208943 Q160506 Q239908 Q863574 Q752150 Q1384871 Q637676 Q174247 Q207614 Q185721 Q208889 Q1106922 Q161884 Q651379 Q175081 Q242497 Q192481 Q240286 Q1008824 Q1064869 Q1602947 Q392169 Q265657 Q910089 Q244725 Q1323215 Q1615759 Q326520 Q760624 Q213515 Q549536 Q730148 Q323727 Q478105 Q12193 Q828625 Q13917 Q579807 Q372218 Q174019 Q205592 Q202565 Q243868 Q476895 Q191856 Q627252 Q477174 Q37719 Q208538 Q284762 Q235382 Q243915 Q193877 Q269952 Q1119799 Q225451 Q16121 Q22776 Q245297 Q211706 Q669021 Q134346 Q39984 Q165090 Q212959 Q1476 Q746946 Q272420 Q241021 Q239091 Q285 Q265332 Q227795 Q269862 Q1067807 Q549750 Q460795 Q648073 Q661392 Q239123 Q384516 Q183910 Q268062 Q454445 Q274249 Q46135 Q223692 Q1428824 Q240189 Q93351 Q1171684 Q268362 Q1078810 Q1066090 Q1144900 Q264637 Q193819 Q167024 Q181946 Q291197 Q728517 Q532070 Q526378 Q242536 Q626342 Q1138493 Q1471382 Q160199 Q387447 Q237394 Q72248 Q841518 Q1069988 Q21298 Q193370 Q728033 Q132790 Q675537 Q192378 Q193920 Q71724 Q271604 Q658561 Q193929 Q21569 Q733833 Q818443 Q694800 Q194160 Q666278 Q188658 Q189715 Q30974 Q81621 Q182744 Q376986 Q1058168 Q213315 Q1087218 Q632445 Q212987 Q22727 Q863563 Q264416 Q21511 Q463951 Q238310 Q1421965 Q331087 Q868513 Q958857 Q777493 Q174251 Q46375 Q246199 Q191765 Q174257 Q189153 Q1423628 Q238366 Q963292 Q44160 Q382855 Q166997 Q332416 Q637695 Q8848 Q242569 Q368160 Q291094 Q724403 Q211134 Q1166034 Q1110747 Q900479 Q763901 Q1066223 Q47383 Q1026879 Q34001 Q1467149 Q752053 Q272906 Q221968 Q59724 Q174002 Q271649 Q183557 Q258059 Q81997 Q240798 Q963534 Q1055925 Q851278 Q237303 Q208314 Q273748 Q209086 Q79815 Q338877 Q234728 Q128466 Q212947 Q947069 Q997294 Q1067432 Q517466 Q1344726 Q1172798 Q21997 Q205584 Q205580 Q382095 Q3581 Q193861 Q1066398 Q280296 Q41139 Q833394 Q1022934 Q399366 Q632969 Q1469428 Q328022 Q961186 Q664934 Q193826 Q177656 Q544220 Q655572 Q208866 Q253721 Q55905 Q279310 Q1063150 Q250106 Q245080 Q1069745 Q842003 Q114877 Q495474 Q217173 Q1014814 Q22413 Q130800 Q626582 Q675950 Q184023 Q181955 Q605677 Q138648 Q841345 Q208812 Q852904 Q637279 Q791277 Q22390 Q273897 Q817733 Q1094779 Q680266 Q69990 Q271678 Q42716 Q1063932 Q205632 Q783452 Q193895 Q180083 Q828253 Q632175 Q188776 Q234270 Q21359 Q234274 Q211923 Q6625 Q207584 Q6588 Q474555 Q249884 Q243135 Q120161 Q193183 Q47045 Q184159 Q82185 Q636592 Q208770 Q968116 Q70152 Q582299 Q184154 Q182287 Q13596 Q236058 Q22730 Q214597 Q209005 Q631274 Q203645 Q239078 Q41185 Q133069 Q269732 Q182481 Q2087041 Q1058597 Q240546 Q457 Q956943 Q1469416 Q250399 Q45797 Q319933 Q44401 Q1047719 Q268281 Q1388467 Q269833 Q220159 Q14112 Q264277 Q1157701 Q133824 Q28520 Q271407 Q69601 Q1169745 Q473919 Q626156 Q208851 Q231720 Q243597 Q288 Q791403 Q205116 Q83427 Q193899 Q767320 Q912302 Q206493 Q1103869 Q836443 Q658651 Q185075 Q6397 Q1651173 Q372281 Q62958 Q134698 Q372111 Q6548 Q577452 Q192982 Q6544 Q188743 Q193256 Q769160 Q40898 Q752466 Q193313 Q629891 Q5489 Q193903 Q21262
(c(Q43229)|c(Q874405),P159,c(Q20667921))
action atmost
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q43229
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q874405
value 12
[ANSWERS] are the headquarters of atmost 12 organizations or social groups located
[[{'concept': 'Q43229'}, {'concept': 'Q874405'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?b <= 12 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) ?x WHERE { { ?x rdf:type ontology:Q20667921 . ?m rdf:type ontology:Q43229 . ?m property:P159 ?x } UNION { ?m property:P159 ?x . ?m rdf:type ontology:Q874405 . ?x rdf:type ontology:Q20667921 } } GROUP BY ?x } }
Entzheim Épernay Giromagny Le Puy-en-Velay Puteaux Chappes Les Mureaux Ruaudin Évry Incheville Épinay-sur-Seine Macau Fontainebleau Neauphle-le-Château Fontevraud-l'Abbaye Illkirch-Graffenstaden Noisy-le-Grand Les Ulis Romorantin-Lanthenay Charenton-le-Pont Aiglepierre Miribel Mondeville Ludes Pouzauges canton of Saint-Germain-Laval Dorlisheim Fontaine-lès-Dijon Pierrefitte-sur-Seine Méolans-Revel Le Plessis-Robinson Abrest Blagnac Annecy Buc Lesquin Limoges Thiais Bondoufle Saint-Sébastien-sur-Loire Batilly Nouméa Saint-Uze Nîmes Marnes-la-Coquette Chantilly Chens-sur-Léman Corbie Corte Clichy Bayonne Aubenas Val-d'Oust Saint-Nazaire Bourg-lès-Valence Saint-Malo Montesquieu-Volvestre Eckbolsheim Reichstett Verneuil-en-Halatte Draguignan Lunéville 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 Asnières-sur-Seine Aix-en-Provence Roquefort Ay Nogent-sur-Marne Saint-Berthevin La Crèche Wimereux Châteaulin Meudon Villeneuve-d'Ascq Longjumeau Châlons-en-Champagne Aniche Les Clayes-sous-Bois Molsheim Metz Bezons Pessac Durtal Annecy-le-Vieux Angers Bry-sur-Marne Pau Champagnole Ormes Centre-Val de Loire Cerizay Urville Pertuis Fourchambault Blanquefort Le Pré-Saint-Gervais Clermont-Ferrand Viviers Plouzané L'Isle-Jourdain Fontenay-aux-Roses Bédarieux Trégueux Saint-Chamond Cholet La Garenne-Colombes Le Val-d'Ajol Valenciennes Montoire-sur-le-Loir Aubagne Auberchicourt Arcueil Marcoussis Beynost Sarcelles Joinville-le-Pont Champs-sur-Yonne Viroflay Mérignac Villepinte Évreux Mézidon-Canon Seyssinet-Pariset Onnaing Thouars 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-Denis Saint-Pol-de-Léon Saint-Martin-de-Valgalgues Paray-Vieille-Poste La Ménitré Sommières Mâcon Figeac Bar-le-Duc Saint-Ouen L'Horme Bagneux Janville 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 Rungis Brest Villebon-sur-Yvette Île-de-France Crolles Plaisir Béziers Antony Coutances Saint-Martin-d'Hères Nogent-sur-Seine Oyonnax Aubière Lambres Beaurainville Vierzon Baerenthal Quimperlé Aimargues Ivry-sur-Seine Magny-Cours Toussus-le-Noble Villeneuve-la-Garenne Beaune Benfeld Roscoff Briord Mauléon Angoulême Cannes Chambéry Denain Le Mans Coulounieix-Chamiers Châteaufort Montrouge Croix Cognac Gray, Haute-Saône Cesson-Sévigné Allauch Saint-Jean-de-Moirans Milly-la-Forêt Bonneville Saint-Marcel Rochetoirin Ermont Saint-Louis Bayeux Bréhal Buzançais Massy Créteil Cornillé Escalquens Douarnenez Vichy Chémeré-le-Roi Le Petit-Quevilly Panazol Fraisses Jarnac-Champagne Wissous Vincennes Basse-Terre Argenteuil Bouguenais Saint-André-lez-Lille Poisy Limay Champs-sur-Marne Trébeurden Courcouronnes Reyniès Cherbourg-Octeville Vélizy-Villacoublay Bondy Vitry-sur-Seine Rumilly Écaquelon Reichshoffen Montreuil Le Bar-sur-Loup Biarritz Averton Champigny-sur-Marne Rueil-Malmaison Lorient Émerainville Lezennes Suresnes Sarre-Union Pibrac Briare Ugine Clamart Bétheny Aïcirits-Camou-Suhast Courbevoie Rouen Fort-de-France Saint-Quentin Lédenon Roissy-en-Brie Parthenay 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 Darois Garches Anglet Beauvais 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 Échirolles Igny Azereix Noisiel Templemars Andrézieux-Bouthéon Charleville-Mézières Lestrem Roubaix Labège Saint-Ours Le Bourget Gennevilliers Étain Colombes Marcq-en-Barœul Dieppe Tournan-en-Brie Boulogne-sur-Mer Montigny-le-Bretonneux Villiers-le-Bâcle Mont-Saint-Aignan Arques Guyancourt Maisons-Alfort Écully Pantin Mulhouse Châteauneuf-du-Pape Vanves Villejuif Châtillon Le Lamentin Pluguffan Crespin Mouzeil Donneville Longueil Saint-Louis-lès-Bitche Étampes Palaiseau Trégunc Roanne Castelnaudary Saint-Priest-en-Jarez Tain-l'Hermitage Melun Gretz-Armainvilliers Faaa Chevreuse Plombières-les-Bains Montagny Tournefeuille Oulins Raismes Douai Spézet Anzin Le Grand-Quevilly La Seyne-sur-Mer Malakoff Pontivy Marcigny La Selle-en-Luitré Samois-sur-Seine Bourbon-l'Archambault Saint-Égrève La Madeleine Bièvres Sausheim Jarnac Les Avirons Wasselonne Papeete Lohéac Grans Tarbes Aix-les-Bains Limonest Maubeuge Domancy Corbeil-Essonnes Fresnoy-le-Grand Furiani Avon, Seine-et-Marne Mutzig Feucherolles La Farlède Vaumeilh Pringy, Haute-Savoie Guer Servon Saint-Étienne Chouilly Aubervilliers Villieu-Loyes-Mollon Lattes Menton Chavanod Meylan Castres Montélimar Merkwiller-Pechelbronn Manosque Les Sables-d'Olonne Agen Brignoles Périgueux Castelnau-le-Lez Saint-Pierre Ambès Saint-Florent-le-Vieil Alès Saint-Denis Niort La Rochelle Balbigny Villefranche-sur-Saône Messimy La Gacilly La Baume Laval Crépy-en-Valois Vaulx-en-Velin Orly Haguenau Bellac Cachan Couëron Chalon-sur-Saône Romans-sur-Isère Caen Bourg-en-Bresse Fécamp Tourcoing Dembeni Bordes Élancourt Poissy Le Port Marcy-l'Étoile Brie-Comte-Robert Dunkirk Yerres Cayenne Hem Lognes Saint-Marcel Chauny Saint-Grégoire Corsica Gémenos La Chapelle-Saint-Mesmin Issoire Abbeville Orvault Elven Villefrancœur Lectoure Pierre-Buffière Gif-sur-Yvette Honfleur Culoz Tours Avrillé Amboise Bazainville Fontenay-sous-Bois Ruillé-sur-Loir Metz-Tessy Sèvres Avrainville Chalezeule Cogolin Saint-Germain-en-Laye Avignon Corbas Orsay Auray Bastia Romainville Orléans Les Herbiers Cluny Libourne Lisieux Montluçon Grande-Synthe Nancy Voreppe Saint-Maur-des-Fossés Le Plessis-Belleville Troyes Cergy Hangenbieten
Saint-Étienne, Meudon and Perpignan are the headquarters of atmost 12 organizations or social groups located
Saint-Étienne Meudon Perpignan
action atmost
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type organization
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type social group
value 12
[[{'concept': 'organization'}, {'concept': 'social group'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?b <= 12 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) ?x WHERE { { ?x rdf:type ontology:type_of_french_administrative_division . ?m rdf:type ontology:organization . ?m property:headquarters_location ?x } UNION { ?m property:headquarters_location ?x . ?m rdf:type ontology:social_group . ?x rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?x } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q42716
P1427
Q31629 Q878123
USER
How many types of sport or racings have their origin at Saint-Étienne ?
(c(Q31629),P1427,Q42716) (c(Q878123),P1427,Q42716)
action count
action union
action filter_type
action find_reverse
entity Q42716
relation P1427
type Q31629
action filter_type
action find_reverse
entity Q42716
relation P1427
type Q878123
[{'concept': 'Q31629'}, 'P1427', 'Q42716'] [{'concept': 'Q878123'}, 'P1427', 'Q42716']
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r rdf:type ?g . VALUES ( ?g ) { ( ontology:Q31629 ) ( ontology:Q878123 ) } }
Saint-Étienne
action count
action union
action filter_type
action find_reverse
entity Saint-Étienne
relation start point
type type of sport
action filter_type
action find_reverse
entity Saint-Étienne
relation start point
type racing
[{'concept': 'type of sport'}, 'start point', 'Saint-Étienne'] [{'concept': 'racing'}, 'start point', 'Saint-Étienne']
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r rdf:type ?g . VALUES ( ?g ) { ( ontology:type_of_sport ) ( ontology:racing ) } }
[]
type of sport racing
SYSTEM
3
Q446637 Q2807503 Q17340057
(c(Q31629),P1427,Q42716) (c(Q878123),P1427,Q42716)
action count
action union
action filter_type
action find_reverse
entity Q42716
relation P1427
type Q31629
action filter_type
action find_reverse
entity Q42716
relation P1427
type Q878123
[ANSWER]
[{'concept': 'Q31629'}, 'P1427', 'Q42716'] [{'concept': 'Q878123'}, 'P1427', 'Q42716']
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r rdf:type ?g . VALUES ( ?g ) { ( ontology:Q31629 ) ( ontology:Q878123 ) } }
2005 Tour de France, Stage 20 1995 Tour de France, Stage 12 2014 Tour de France, Stage 13
3
action count
action union
action filter_type
action find_reverse
entity Saint-Étienne
relation start point
type type of sport
action filter_type
action find_reverse
entity Saint-Étienne
relation start point
type racing
[{'concept': 'type of sport'}, 'start point', 'Saint-Étienne'] [{'concept': 'racing'}, 'start point', 'Saint-Étienne']
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r rdf:type ?g . VALUES ( ?g ) { ( ontology:type_of_sport ) ( ontology:racing ) } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q42716
P17
Q15617994
USER
Which administrative territory is that french administrative division situated in ?
action filter_type
action find
entity Q42716
relation P17
type Q15617994
SELECT DISTINCT ?j WHERE { resource:Q42716 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Saint-Étienne
action filter_type
action find
entity Saint-Étienne
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?j WHERE { resource:Saint-Étienne property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
action filter_type
action find
entity Q42716
relation P17
type Q15617994
That french administrative division is situated in [ANSWER]
SELECT DISTINCT ?j WHERE { resource:Q42716 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
France
That french administrative division is situated in France
France
action filter_type
action find
entity Saint-Étienne
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?j WHERE { resource:Saint-Étienne property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q42716
P47
Q20667921
USER
How many french administrative divisions share the border with Saint-Étienne ?
(Q42716,P47,c(Q20667921))
action count
action filter_type
action find
entity Q42716
relation P47
type Q20667921
['Q42716', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { resource:Q42716 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Saint-Étienne
action count
action filter_type
action find
entity Saint-Étienne
relation shares border with
type type of french administrative division
['Saint-Étienne', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { resource:Saint-Étienne property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
18
Q1107320 Q1116324 Q1066464 Q1066212 Q1106041 Q522853 Q1066398 Q1116412 Q1066366 Q1106517 Q235739 Q1105662 Q430475 Q1106016 Q655706 Q1105684 Q1388485 Q1106343
(Q42716,P47,c(Q20667921))
action count
action filter_type
action find
entity Q42716
relation P47
type Q20667921
[ANSWER]
['Q42716', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { resource:Q42716 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Roche-la-Molière Saint-Genest-Lerpt Saint-Jean-Bonnefonds Le Bessat Unieux La Ricamarie Saint-Priest-en-Jarez Planfoy Villars Saint-Genest-Malifaux Saint-Chamond La Valla-en-Gier Çaloire Tarentaise Chambles La Tour-en-Jarez La Talaudière Saint-Just-Saint-Rambert
18
action count
action filter_type
action find
entity Saint-Étienne
relation shares border with
type type of french administrative division
['Saint-Étienne', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { resource:Saint-Étienne property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q531901
Q20667921
USER
And what about Plessis-Saint-Benoist?
(Q531901,P47,c(Q20667921))
action count
action filter_type
action find
entity Q531901
relation P47
type Q20667921
['Q531901', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:Q531901 property:P47 ?o . ?o rdf:type ontology:Q20667921 }
Plessis-Saint-Benoist
action count
action filter_type
action find
entity Plessis-Saint-Benoist
relation shares border with
type type of french administrative division
['Plessis-Saint-Benoist', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:Plessis-Saint-Benoist property:shares_border_with ?o . ?o rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
6
(Q531901,P47,c(Q20667921))
action count
action filter_type
action find
entity Q531901
relation P47
type Q20667921
[ANSWER]
['Q531901', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:Q531901 property:P47 ?o . ?o rdf:type ontology:Q20667921 }
6
action count
action filter_type
action find
entity Plessis-Saint-Benoist
relation shares border with
type type of french administrative division
['Plessis-Saint-Benoist', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:Plessis-Saint-Benoist property:shares_border_with ?o . ?o rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q15617994 Q2342494 Q15416
USER
Which administrative territories are the countries of origin of exactly 8 collectables and television programs ?
(c(Q2342494)|c(Q15416),P495,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
value 8
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?k = 8 ) . { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?k ) WHERE { ?u rdf:type ?q . VALUES ( ?q ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } } GROUP BY ?g } }
action equal
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
value 8
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?k = 8 ) . { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?k ) WHERE { ?u rdf:type ?q . VALUES ( ?q ) { ( ontology:collectable ) ( ontology:television_program ) } } GROUP BY ?g } }
[]
designation for an administrative territorial entity collectable television program
Q837 Q241
SYSTEM
Nepal, Cuba
Q837 Q241
(c(Q2342494)|c(Q15416),P495,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
value 8
[ANSWERS] are the countries of origin of exactly 8 collectables and television programs
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?k = 8 ) . { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?k ) WHERE { ?u rdf:type ?q . VALUES ( ?q ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } } GROUP BY ?g } }
Nepal Cuba
Nepal and Cuba are the countries of origin of exactly 8 collectables and television programs
Nepal Cuba
action equal
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
value 8
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?k = 8 ) . { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?k ) WHERE { ?u rdf:type ?q . VALUES ( ?q ) { ( ontology:collectable ) ( ontology:television_program ) } } GROUP BY ?g } }
[]