Simple Question (Direct)
Simple Question
Q1616439
P47
Q20667921
USER
Who share the border with Laréole ?
(Q1616439,P47,c(Q20667921))
action filter_type
action find
entity Q1616439
relation P47
type Q20667921
['Q1616439', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?o WHERE { resource:Q1616439 property:P47 ?o . ?o rdf:type ontology:Q20667921 }
Laréole
action filter_type
action find
entity Laréole
relation shares border with
type type of french administrative division
['Laréole', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?o WHERE { resource:Laréole property:shares_border_with ?o . ?o rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1371233 Q1441003 Q616835
SYSTEM
Cadours, Brignemont, Sainte-Anne
Q859857 Q1371233 Q1344959 Q616835 Q524478 Q1441003
(Q1616439,P47,c(Q20667921))
action filter_type
action find
entity Q1616439
relation P47
type Q20667921
[ANSWERS] share the border with Laréole
['Q1616439', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?o WHERE { resource:Q1616439 property:P47 ?o . ?o rdf:type ontology:Q20667921 }
Ardizas Cadours Cox Sainte-Anne Puysségur Brignemont
Cadours, Brignemont and Sainte-Anne share the border with Laréole
Cadours Brignemont Sainte-Anne
action filter_type
action find
entity Laréole
relation shares border with
type type of french administrative division
['Laréole', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?o WHERE { resource:Laréole property:shares_border_with ?o . ?o rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1371233 Q1441003 Q616835
P47
Q20667921
USER
Which french administrative divisions do Cadours, Brignemont and Sainte-Anne share a border with ?
(c(Q20667921),P47,Q1371233) (c(Q20667921),P47,Q1441003) (c(Q20667921),P47,Q616835)
action union
action filter_type
action find
entity Q1371233
relation P47
type Q20667921
action filter_type
action find
entity Q1441003
relation P47
type Q20667921
action filter_type
action find
entity Q616835
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q1371233'] [{'concept': 'Q20667921'}, 'P47', 'Q1441003'] [{'concept': 'Q20667921'}, 'P47', 'Q616835']
SELECT DISTINCT ?p WHERE { { resource:Q1371233 property:P47 ?p . ?p rdf:type ontology:Q20667921 } UNION { resource:Q1441003 property:P47 ?p . ?p rdf:type ontology:Q20667921 } }
Cadours Brignemont Sainte-Anne
action union
action filter_type
action find
entity Cadours
relation shares border with
type type of french administrative division
action filter_type
action find
entity Brignemont
relation shares border with
type type of french administrative division
action filter_type
action find
entity Sainte-Anne
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Cadours'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Brignemont'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Sainte-Anne']
SELECT DISTINCT ?p WHERE { { resource:Cadours property:shares_border_with ?p . ?p rdf:type ontology:type_of_french_administrative_division } UNION { resource:Brignemont property:shares_border_with ?p . ?p rdf:type ontology:type_of_french_administrative_division } }
[]
type of french administrative division
Q1041918 Q1428970 Q1602627
SYSTEM
Encausse, Lagraulet-Saint-Nicolas, Maubec
Q513618 Q1616439 Q1041918 Q859857 Q1418957 Q524478 Q1467338 Q1344959 Q1616439 Q1428970 Q739080 Q1162031 Q616835 Q1602627 Q632087 Q1616439 Q859857 Q1441003 Q1070283 Q780504 Q632087
(c(Q20667921),P47,Q1371233) (c(Q20667921),P47,Q1441003) (c(Q20667921),P47,Q616835)
action union
action filter_type
action find
entity Q1371233
relation P47
type Q20667921
action filter_type
action find
entity Q1441003
relation P47
type Q20667921
action filter_type
action find
entity Q616835
relation P47
type Q20667921
[ANSWERS] Caurs, Brignemont and Sainte-Anne share a border with
[{'concept': 'Q20667921'}, 'P47', 'Q1371233'] [{'concept': 'Q20667921'}, 'P47', 'Q1441003'] [{'concept': 'Q20667921'}, 'P47', 'Q616835']
SELECT DISTINCT ?p WHERE { { resource:Q1371233 property:P47 ?p . ?p rdf:type ontology:Q20667921 } UNION { resource:Q1441003 property:P47 ?p . ?p rdf:type ontology:Q20667921 } }
Pelleport Laréole Encausse Ardizas Le Grès Puysségur Caubiac Cox Laréole Lagraulet-Saint-Nicolas Cabanac-Séguenville Le Causé Sainte-Anne Maubec Sarrant Laréole Ardizas Brignemont Cologne Saint-Georges Sarrant
Encausse, Lagraulet-Saint-Nicolas and Maubec Caurs, Brignemont and Sainte-Anne share a border with
Encausse Lagraulet-Saint-Nicolas Maubec
action union
action filter_type
action find
entity Cadours
relation shares border with
type type of french administrative division
action filter_type
action find
entity Brignemont
relation shares border with
type type of french administrative division
action filter_type
action find
entity Sainte-Anne
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Cadours'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Brignemont'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Sainte-Anne']
SELECT DISTINCT ?p WHERE { { resource:Cadours property:shares_border_with ?p . ?p rdf:type ontology:type_of_french_administrative_division } UNION { resource:Brignemont property:shares_border_with ?p . ?p rdf:type ontology:type_of_french_administrative_division } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1041918
P17
Q15617994
USER
Which administrative territory is that french administrative division located in ?
(Q1041918,P17,c(Q15617994))
action filter_type
action find
entity Q1041918
relation P17
type Q15617994
['Q1041918', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q1041918 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Encausse
action filter_type
action find
entity Encausse
relation country
type designation for an administrative territorial entity
['Encausse', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Encausse property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1602627
SYSTEM
Did you mean Maubec ?
Q1041918 Q1428970 Q1602627
(Q1041918,P17,c(Q15617994)) (Q1428970,P17,c(Q15617994)) (Q1602627,P17,c(Q15617994))
[ANSWER]
['Q1041918', 'P17', {'concept': 'Q15617994'}] ['Q1428970', 'P17', {'concept': 'Q15617994'}] ['Q1602627', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q1041918 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Encausse Lagraulet-Saint-Nicolas Maubec
Did you mean Maubec ?
Maubec
['Encausse', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Lagraulet-Saint-Nicolas', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Maubec', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Encausse property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Encausse. Could you tell me the answer for that?
(Q1041918,P17,c(Q15617994))
Q1041918
['Q1041918', 'P17', {'concept': 'Q15617994'}]
['Encausse', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142
SYSTEM
France
Q142
(Q1041918,P17,c(Q15617994))
action filter_type
action find
entity Q1041918
relation P17
type Q15617994
That french administrative division is located in [ANSWER]
['Q1041918', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q1041918 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
France
That french administrative division is located in France
France
action filter_type
action find
entity Encausse
relation country
type designation for an administrative territorial entity
['Encausse', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Encausse property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q142 Q21456610
P27
Q502895
USER
Is Edwin James Dummett a civilian of that administrative territory ?
(Q21456610,P27,Q142)
action is_in
entity Q21456610
action find
entity Q142
relation P27
['Q21456610', 'P27', 'Q142']
ASK WHERE { resource:Q142 property:P27 resource:Q21456610 }
France Edwin James Dummett
action is_in
entity Edwin James Dummett
action find
entity France
relation country of citizenship
['Edwin James Dummett', 'country of citizenship', 'France']
ASK WHERE { resource:France property:country_of_citizenship resource:Edwin_James_Dummett }
[]
common name
SYSTEM
NO
(Q21456610,P27,Q142)
action is_in
entity Q21456610
action find
entity Q142
relation P27
[ANSWER]
['Q21456610', 'P27', 'Q142']
ASK WHERE { resource:Q142 property:P27 resource:Q21456610 }
No
action is_in
entity Edwin James Dummett
action find
entity France
relation country of citizenship
['Edwin James Dummett', 'country of citizenship', 'France']
ASK WHERE { resource:France property:country_of_citizenship resource:Edwin_James_Dummett }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q20667921 Q486972 Q15617994
USER
Which french administrative divisions are namesakes of min number of human settlements and administrative territories ?
(c(Q486972)|c(Q15617994),P138,c(Q20667921))
action argmin
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q486972
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q15617994
[[{'concept': 'Q486972'}, {'concept': 'Q15617994'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) ?i WHERE { VALUES ( ?n ) { ( ontology:Q15617994 ) ( ontology:Q486972 ) } . ?b rdf:type ?n } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?a WHERE { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:Q486972 ) ( ontology:Q15617994 ) } } GROUP BY ?a } . FILTER ( ?f = ?d ) }
action argmin
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type human settlement
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type designation for an administrative territorial entity
[[{'concept': 'human settlement'}, {'concept': 'designation for an administrative territorial entity'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) ?i WHERE { VALUES ( ?n ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:human_settlement ) } . ?b rdf:type ?n } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?a WHERE { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:human_settlement ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?a } . FILTER ( ?f = ?d ) }
[]
type of french administrative division human settlement designation for an administrative territorial entity
Q12193 Q154748 Q42807
SYSTEM
Brest, Verdun, Nîmes
Q205551 Q3769 Q521432 Q201352 Q901416 Q253721 Q456477 Q132801 Q191119 Q1172337 Q236579 Q1075237 Q321067 Q840218 Q326687 Q181946 Q160199 Q817418 Q842942 Q183910 Q626987 Q633254 Q190974 Q196360 Q180871 Q679894 Q166997 Q1440905 Q269364 Q2426877 Q138648 Q1391563 Q212793 Q2961727 Q6454 Q48958 Q208812 Q9155 Q208943 Q3241770 Q193880 Q167152 Q840597 Q329664 Q1241308 Q209069 Q273702 Q181285 Q126668 Q59221 Q903665 Q7158 Q616668 Q264778 Q174032 Q229339 Q135265 Q208889 Q212274 Q161884 Q274327 Q28520 Q46135 Q205116 Q1476 Q154715 Q193899 Q30974 Q182744 Q459683 Q205632 Q623376 Q130994 Q217077 Q809414 Q213317 Q1073264 Q501933 Q694818 Q212987 Q474524 Q22640 Q181886 Q187796 Q193819 Q234270 Q238377 Q762471 Q234274 Q591741 Q729239 Q243866 Q474503 Q251731 Q126675 Q149419 Q1463559 Q201982 Q134674 Q474555 Q636299 Q605656 Q174257 Q471685 Q154724 Q165271 Q163108 Q211604 Q154728 Q12193 Q142410 Q207632 Q476887 Q22739 Q189153 Q22636 Q575565 Q209086 Q195098 Q18199435 Q625570 Q569751 Q209005 Q181269 Q736370 Q1111541 Q203645 Q16532200 Q13917 Q241021 Q208793 Q387460 Q1080717 Q285 Q648164 Q567956 Q204051 Q193877 Q781078 Q202565 Q784536 Q1105062 Q468229 Q174247 Q900479 Q185721 Q1066223 Q1165029 Q148787 Q45797 Q163795 Q530593 Q44401 Q212966 Q34001 Q213288 Q470959 Q47465 Q773318 Q845975 Q689491 Q688262 Q404783 Q16121 Q22160 Q478105 Q271649 Q70285 Q23047 Q989788 Q1100414 Q154748 Q840164 Q134346 Q165090 Q202378 Q6588 Q212959 Q541007 Q968881 Q18199186 Q822303 Q474773 Q666180 Q12130 Q13103683 Q453492 Q208798 Q22690 Q22380 Q207570 Q22754 Q42807 Q22756 Q208794 Q317975 Q233909 Q79815 Q177573 Q206493 Q1217220 Q188750 Q241940 Q18102 Q3413275 Q128466 Q370224 Q288 Q204979 Q167141 Q193903 Q131329 Q256175 Q216966 Q917770 Q3413171 Q532352 Q83432 Q279681 Q372111 Q1014746 Q6548 Q175999 Q199682 Q266958 Q6397 Q325946 Q6544 Q316891 Q3413267 Q1348608 Q837748 Q498869 Q40898 Q192548 Q93351 Q1047171 Q256004 Q272528 Q41139 Q191126 Q471902 Q3555080 Q399366 Q461413 Q947091 Q207620 Q467132 Q135104 Q1056120 Q181306 Q3413163 Q475599 Q845191 Q130272 Q221683 Q990774 Q6616 Q182872 Q331232 Q1110622 Q273917 Q20892 Q193826 Q832386
(c(Q486972)|c(Q15617994),P138,c(Q20667921))
action argmin
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q486972
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q15617994
[ANSWERS] are namesakes of min number of human settlements and administrative territories
[[{'concept': 'Q486972'}, {'concept': 'Q15617994'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) ?i WHERE { VALUES ( ?n ) { ( ontology:Q15617994 ) ( ontology:Q486972 ) } . ?b rdf:type ?n } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?a WHERE { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:Q486972 ) ( ontology:Q15617994 ) } } GROUP BY ?a } . FILTER ( ?f = ?d ) }
Mérignac French Guiana Saint-Marcellin Pontoise Lacaune Malakoff Chooz Albi Rambouillet Morogues Semur-en-Auxois Bailleau-Armenonville Nemours Barrême Banon Argenteuil Cherbourg-Octeville Joinville Bonneville-la-Louvet Bayeux Herment Morbier Oradour-sur-Glane Aisy-sur-Armançon Compiègne Aurignac Nevers Ramonville-Saint-Agne Joué-lès-Tours Épinettes Maubeuge Coulmiers Charenton-le-Pont Chavignol Calais Neuilly-sur-Seine Corbeil-Essonnes Lagny-sur-Marne Bagnolet Lion Chaumont Soissons Le Croisic Le Creusot Passy Domrémy-la-Pucelle Rocroi Cambrai Senlis Vaucouleurs Liverdun Oms Pouligny-Saint-Pierre Loudes Crozant Champigneulles Issy-les-Moulineaux Saint-Ouen Nogent-sur-Marne Bagneux Saint-Maurice Abbeville Créteil Amboise Le Mans Montbéliard Fontenay-sous-Bois Rouen Saint-Quentin Sancerre Aubervilliers Volvic Colmar Camembert Thiézac Ambert Civry Taizé Sassenage Choisy-le-Roi Sainte-Maure-de-Touraine Thionville Châteaudun Orange Vincennes Montélimar Pont-Aven Ver-sur-Mer Manosque Goutte-d'Or Vimoutiers Olivet Valençay Coulommiers Chantilly Munster Villette Clichy Bayonne Castelnau-le-Lez Le Pradet Gèdre Beauvais Rambervillers Bobigny Lens Saint-Malo Montparnasse Toul Brest Dreux Apt Roquefort-sur-Soulzon Hettange-Grande Saint-Cloud Wissembourg Batignolles Pantin Frouard Charonne Langeac Termignon Cachan Alençon Bonneval-sur-Arc Costaros Chalon-sur-Saône Bercy Île-de-France Montrouge Saint-Omer Sainte-Foy-lès-Lyon Champagne Cognac Antrain Isigny-sur-Mer Bonifacio Ivry-sur-Seine Euville Coutances Auteuil Wattignies-la-Victoire Corneville-sur-Risle Mâcon Noisiel Bar-le-Duc Andrézieux-Bouthéon Le Pouliguen Ottmarsheim Dunkirk Valenciennes Chaource Cayenne Pompey Roubaix Montbrison Voves Aix-en-Provence Bercy Caussols Tautavel Champaubert Aiguillon Beaune Phalsbourg Rungis Marcq-en-Barœul Étel Cahors Villersexel Taisnières-sur-Hon Verdun La Cadière-d'Azur Angoulême Chambéry Ouessant Périgueux Denain Le Malzieu-Ville Ternes Grenelle Saint-Nectaire Roquebrune-sur-Argens Maroilles Brittany La Chapelle Matignon Cavaillon Metz Créhange Thann Bitche Nîmes Spicheren Lunéville Châtelperron Alfortville Mulhouse Bagnoles Sèvres Laqueuille Saint-Estèphe Givet Saint-Mandé Gros-Caillou Villejuif Noisy-le-Sec Tours Vézelay Laon Cergy Arras Barbizon Uzès Solutré-Pouilly Picpus La Villette Viroflay Thouars Romainville Cilaos Orléans Le Pré-Saint-Gervais Floirac Rolleboise Avignon Landerneau Libourne Montmorency Bel-Air Varize Brétigny-sur-Orge Brienne-le-Château Nancy Saint-Émilion Vichy Balma Les Lilas Pauillac Melun Saintes Salles Vaugirard Chevreuse Pont-à-Mousson Romanèche-Thorins Meaux Arcueil Le Kremlin-Bicêtre Décines-Charpieu Digne-les-Bains Clignancourt Gien Javel Chartres Audierne Laguiole Poitiers Fontainebleau Chablis La Bouille Berrias-et-Casteljau Le Mont-Saint-Michel Douai Selles-sur-Cher
Brest, Verdun and Nîmes are namesakes of min number of human settlements and administrative territories
Brest Verdun Nîmes
action argmin
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type human settlement
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type designation for an administrative territorial entity
[[{'concept': 'human settlement'}, {'concept': 'designation for an administrative territorial entity'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) ?i WHERE { VALUES ( ?n ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:human_settlement ) } . ?b rdf:type ?n } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?a WHERE { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:human_settlement ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?a } . FILTER ( ?f = ?d ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P159
Q4830453 Q1269299
USER
How many business enterprises and business organizations have HQ at that french administrative division ?
(c(Q4830453),P159,Q42807) (c(Q1269299),P159,Q42807) (c(Q4830453),P159,Q12193) (c(Q1269299),P159,Q12193) (c(Q4830453),P159,Q154748) (c(Q1269299),P159,Q154748) (c(Q4830453),P159,Q42807) (c(Q1269299),P159,Q42807)
[{'concept': 'Q4830453'}, 'P159', 'Q42807'] [{'concept': 'Q1269299'}, 'P159', 'Q42807'] [{'concept': 'Q4830453'}, 'P159', 'Q12193'] [{'concept': 'Q1269299'}, 'P159', 'Q12193'] [{'concept': 'Q4830453'}, 'P159', 'Q154748'] [{'concept': 'Q1269299'}, 'P159', 'Q154748'] [{'concept': 'Q4830453'}, 'P159', 'Q42807'] [{'concept': 'Q1269299'}, 'P159', 'Q42807']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P159 resource:Q42807 } UNION { ?y property:P159 resource:Q42807 } UNION { ?z property:P159 resource:Q12193 } UNION { ?y property:P159 resource:Q12193 } UNION { ?z property:P159 resource:Q1368088 } UNION { ?y property:P159 resource:Q1368088 } UNION { ?z property:P159 resource:Q42807 } UNION { ?y property:P159 resource:Q42807 } } . ?z rdf:type ontology:Q4830453 . ?y rdf:type ontology:Q1269299 }
[{'concept': 'business enterprise'}, 'headquarters location', 'Nîmes'] [{'concept': 'type of business entity'}, 'headquarters location', 'Nîmes'] [{'concept': 'business enterprise'}, 'headquarters location', 'Brest'] [{'concept': 'type of business entity'}, 'headquarters location', 'Brest'] [{'concept': 'business enterprise'}, 'headquarters location', 'Verdun'] [{'concept': 'type of business entity'}, 'headquarters location', 'Verdun'] [{'concept': 'business enterprise'}, 'headquarters location', 'Nîmes'] [{'concept': 'type of business entity'}, 'headquarters location', 'Nîmes']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:headquarters_location resource:Nîmes } UNION { ?y property:headquarters_location resource:Nîmes } UNION { ?z property:headquarters_location resource:Brest } UNION { ?y property:headquarters_location resource:Brest } UNION { ?z property:headquarters_location resource:Verdun } UNION { ?y property:headquarters_location resource:Verdun } UNION { ?z property:headquarters_location resource:Nîmes } UNION { ?y property:headquarters_location resource:Nîmes } } . ?z rdf:type ontology:business_enterprise . ?y rdf:type ontology:type_of_business_entity }
[]
business enterprise type of business entity
Quantitative|Count|Mult. entity type|Clarification
Q154748
SYSTEM
Did you mean Verdun ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P159 resource:Q42807 } UNION { ?y property:P159 resource:Q42807 } UNION { ?z property:P159 resource:Q12193 } UNION { ?y property:P159 resource:Q12193 } UNION { ?z property:P159 resource:Q1368088 } UNION { ?y property:P159 resource:Q1368088 } UNION { ?z property:P159 resource:Q42807 } UNION { ?y property:P159 resource:Q42807 } } . ?z rdf:type ontology:Q4830453 . ?y rdf:type ontology:Q1269299 }
Did you mean Verdun ?
Verdun
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:headquarters_location resource:Nîmes } UNION { ?y property:headquarters_location resource:Nîmes } UNION { ?z property:headquarters_location resource:Brest } UNION { ?y property:headquarters_location resource:Brest } UNION { ?z property:headquarters_location resource:Verdun } UNION { ?y property:headquarters_location resource:Verdun } UNION { ?z property:headquarters_location resource:Nîmes } UNION { ?y property:headquarters_location resource:Nîmes } } . ?z rdf:type ontology:business_enterprise . ?y rdf:type ontology:type_of_business_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Nîmes. Could you tell me the answer for that?
(c(Q4830453),P159,Q42807) (c(Q1269299),P159,Q42807) (c(Q4830453),P159,Q12193) (c(Q1269299),P159,Q12193) (c(Q4830453),P159,Q154748) (c(Q1269299),P159,Q154748) (c(Q4830453),P159,Q42807) (c(Q1269299),P159,Q42807)
Q42807
[{'concept': 'Q4830453'}, 'P159', 'Q42807'] [{'concept': 'Q1269299'}, 'P159', 'Q42807'] [{'concept': 'Q4830453'}, 'P159', 'Q12193'] [{'concept': 'Q1269299'}, 'P159', 'Q12193'] [{'concept': 'Q4830453'}, 'P159', 'Q154748'] [{'concept': 'Q1269299'}, 'P159', 'Q154748'] [{'concept': 'Q4830453'}, 'P159', 'Q42807'] [{'concept': 'Q1269299'}, 'P159', 'Q42807']
[{'concept': 'business enterprise'}, 'headquarters location', 'Nîmes'] [{'concept': 'type of business entity'}, 'headquarters location', 'Nîmes'] [{'concept': 'business enterprise'}, 'headquarters location', 'Brest'] [{'concept': 'type of business entity'}, 'headquarters location', 'Brest'] [{'concept': 'business enterprise'}, 'headquarters location', 'Verdun'] [{'concept': 'type of business entity'}, 'headquarters location', 'Verdun'] [{'concept': 'business enterprise'}, 'headquarters location', 'Nîmes'] [{'concept': 'type of business entity'}, 'headquarters location', 'Nîmes']
[]
SYSTEM
1 business enterprises and 1 business organizations
Q2342323 Q3091816
(c(Q4830453),P159,Q42807) (c(Q1269299),P159,Q42807) (c(Q4830453),P159,Q12193) (c(Q1269299),P159,Q12193) (c(Q4830453),P159,Q154748) (c(Q1269299),P159,Q154748) (c(Q4830453),P159,Q42807) (c(Q1269299),P159,Q42807)
[ANSWER]
[{'concept': 'Q4830453'}, 'P159', 'Q42807'] [{'concept': 'Q1269299'}, 'P159', 'Q42807'] [{'concept': 'Q4830453'}, 'P159', 'Q12193'] [{'concept': 'Q1269299'}, 'P159', 'Q12193'] [{'concept': 'Q4830453'}, 'P159', 'Q154748'] [{'concept': 'Q1269299'}, 'P159', 'Q154748'] [{'concept': 'Q4830453'}, 'P159', 'Q42807'] [{'concept': 'Q1269299'}, 'P159', 'Q42807']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P159 resource:Q42807 } UNION { ?y property:P159 resource:Q42807 } UNION { ?z property:P159 resource:Q12193 } UNION { ?y property:P159 resource:Q12193 } UNION { ?z property:P159 resource:Q1368088 } UNION { ?y property:P159 resource:Q1368088 } UNION { ?z property:P159 resource:Q42807 } UNION { ?y property:P159 resource:Q42807 } } . ?z rdf:type ontology:Q4830453 . ?y rdf:type ontology:Q1269299 }
Sherco Fédération française de la course camarguaise
1 business enterprises and 1 business organizations
[{'concept': 'business enterprise'}, 'headquarters location', 'Nîmes'] [{'concept': 'type of business entity'}, 'headquarters location', 'Nîmes'] [{'concept': 'business enterprise'}, 'headquarters location', 'Brest'] [{'concept': 'type of business entity'}, 'headquarters location', 'Brest'] [{'concept': 'business enterprise'}, 'headquarters location', 'Verdun'] [{'concept': 'type of business entity'}, 'headquarters location', 'Verdun'] [{'concept': 'business enterprise'}, 'headquarters location', 'Nîmes'] [{'concept': 'type of business entity'}, 'headquarters location', 'Nîmes']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:headquarters_location resource:Nîmes } UNION { ?y property:headquarters_location resource:Nîmes } UNION { ?z property:headquarters_location resource:Brest } UNION { ?y property:headquarters_location resource:Brest } UNION { ?z property:headquarters_location resource:Verdun } UNION { ?y property:headquarters_location resource:Verdun } UNION { ?z property:headquarters_location resource:Nîmes } UNION { ?y property:headquarters_location resource:Nîmes } } . ?z rdf:type ontology:business_enterprise . ?y rdf:type ontology:type_of_business_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12193
P1427
Q18608583
USER
Which recurring sporting events originate at Brest ?
(c(Q18608583),P1427,Q12193)
action filter_type
action find_reverse
entity Q12193
relation P1427
type Q18608583
[{'concept': 'Q18608583'}, 'P1427', 'Q12193']
SELECT DISTINCT ?j WHERE { ?j property:P1427 resource:Q12193 . ?j rdf:type ontology:Q18608583 }
Brest
action filter_type
action find_reverse
entity Brest
relation start point
type recurring sporting event
[{'concept': 'recurring sporting event'}, 'start point', 'Brest']
SELECT DISTINCT ?j WHERE { ?j property:start_point resource:Brest . ?j rdf:type ontology:recurring_sporting_event }
[]
recurring sporting event
Q221530 Q754426 Q523804
SYSTEM
2008 Tour de France, 1974 Tour de France, 1952 Tour de France
Q221530 Q754426 Q523804
(c(Q18608583),P1427,Q12193)
action filter_type
action find_reverse
entity Q12193
relation P1427
type Q18608583
[ANSWERS] originate at Brest
[{'concept': 'Q18608583'}, 'P1427', 'Q12193']
SELECT DISTINCT ?j WHERE { ?j property:P1427 resource:Q12193 . ?j rdf:type ontology:Q18608583 }
2008 Tour de France 1974 Tour de France 1952 Tour de France
2008 Tour de France, 1974 Tour de France and 1952 Tour de France originate at Brest
2008 Tour de France 1974 Tour de France 1952 Tour de France
action filter_type
action find_reverse
entity Brest
relation start point
type recurring sporting event
[{'concept': 'recurring sporting event'}, 'start point', 'Brest']
SELECT DISTINCT ?j WHERE { ?j property:start_point resource:Brest . ?j rdf:type ontology:recurring_sporting_event }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q221530 Q754426 Q523804
P641
Q31629
USER
Which types of sport were 2008 Tour de France, 1974 Tour de France and 1952 Tour de France a part of ?
(Q221530,P641,c(Q31629)) (Q754426,P641,c(Q31629)) (Q523804,P641,c(Q31629))
action union
action filter_type
action find
entity Q221530
relation P641
type Q31629
action filter_type
action find
entity Q754426
relation P641
type Q31629
action filter_type
action find
entity Q523804
relation P641
type Q31629
['Q221530', 'P641', {'concept': 'Q31629'}] ['Q754426', 'P641', {'concept': 'Q31629'}] ['Q523804', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?m WHERE { { resource:Q221530 property:P641 ?m . ?m rdf:type ontology:Q31629 } UNION { resource:Q754426 property:P641 ?m . ?m rdf:type ontology:Q31629 } }
2008 Tour de France 1974 Tour de France 1952 Tour de France
action union
action filter_type
action find
entity 2008 Tour de France
relation sport
type type of sport
action filter_type
action find
entity 1974 Tour de France
relation sport
type type of sport
action filter_type
action find
entity 1952 Tour de France
relation sport
type type of sport
['2008 Tour de France', 'sport', {'concept': 'type of sport'}] ['1974 Tour de France', 'sport', {'concept': 'type of sport'}] ['1952 Tour de France', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?m WHERE { { resource:2008_Tour_de_France property:sport ?m . ?m rdf:type ontology:type_of_sport } UNION { resource:1974_Tour_de_France property:sport ?m . ?m rdf:type ontology:type_of_sport } }
[]
type of sport
Q3609 Q3609 Q3609
SYSTEM
road bicycle racing
Q3609 Q3609 Q3609
(Q221530,P641,c(Q31629)) (Q754426,P641,c(Q31629)) (Q523804,P641,c(Q31629))
action union
action filter_type
action find
entity Q221530
relation P641
type Q31629
action filter_type
action find
entity Q754426
relation P641
type Q31629
action filter_type
action find
entity Q523804
relation P641
type Q31629
And [ANSWER], [ANSWER] and [ANSWER] were 2008 Tour de France, 1974 Tour de France and 1952 Tour de France a part of
['Q221530', 'P641', {'concept': 'Q31629'}] ['Q754426', 'P641', {'concept': 'Q31629'}] ['Q523804', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?m WHERE { { resource:Q221530 property:P641 ?m . ?m rdf:type ontology:Q31629 } UNION { resource:Q754426 property:P641 ?m . ?m rdf:type ontology:Q31629 } }
road bicycle racing road bicycle racing road bicycle racing
And road bicycle racing, road bicycle racing and road bicycle racing were 2008 Tour de France, 1974 Tour de France and 1952 Tour de France a part of
road bicycle racing road bicycle racing road bicycle racing
action union
action filter_type
action find
entity 2008 Tour de France
relation sport
type type of sport
action filter_type
action find
entity 1974 Tour de France
relation sport
type type of sport
action filter_type
action find
entity 1952 Tour de France
relation sport
type type of sport
['2008 Tour de France', 'sport', {'concept': 'type of sport'}] ['1974 Tour de France', 'sport', {'concept': 'type of sport'}] ['1952 Tour de France', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?m WHERE { { resource:2008_Tour_de_France property:sport ?m . ?m rdf:type ontology:type_of_sport } UNION { resource:1974_Tour_de_France property:sport ?m . ?m rdf:type ontology:type_of_sport } }
[]