Simple Question (Direct)
Simple Question
Q202147
P47
Q20667921
USER
Who share the border with Saint-Hilaire-de-la-Noaille ?
(Q202147,P47,c(Q20667921))
action filter_type
action find
entity Q202147
relation P47
type Q20667921
['Q202147', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?u WHERE { resource:Q202147 property:P47 ?u . ?u rdf:type ontology:Q20667921 }
Saint-Hilaire-de-la-Noaille
action filter_type
action find
entity Saint-Hilaire-de-la-Noaille
relation shares border with
type type of french administrative division
['Saint-Hilaire-de-la-Noaille', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?u WHERE { resource:Saint-Hilaire-de-la-Noaille property:shares_border_with ?u . ?u rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q263456 Q763231 Q601722
SYSTEM
La Réole, Roquebrune, Loubens
Q194218 Q763231 Q720532 Q601722 Q717173 Q389887 Q263456
(Q202147,P47,c(Q20667921))
action filter_type
action find
entity Q202147
relation P47
type Q20667921
[ANSWERS] share the border with Saint-Hilaire-de-la-Noaille
['Q202147', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?u WHERE { resource:Q202147 property:P47 ?u . ?u rdf:type ontology:Q20667921 }
Fossès-et-Baleyssac Roquebrune Montagoudin Loubens Mongauzy Saint-Sève La Réole
La Réole, Roquebrune and Loubens share the border with Saint-Hilaire-de-la-Noaille
La Réole Roquebrune Loubens
action filter_type
action find
entity Saint-Hilaire-de-la-Noaille
relation shares border with
type type of french administrative division
['Saint-Hilaire-de-la-Noaille', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?u WHERE { resource:Saint-Hilaire-de-la-Noaille property:shares_border_with ?u . ?u rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Simple Question|Single Entity|Indirect
Q263456
P1376
Q20667921
USER
Which french administrative division has that one as its capital ?
(Q263456,P1376,c(Q20667921))
action filter_type
action find
entity Q263456
relation P1376
type Q20667921
['Q263456', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { resource:Q263456 property:P1376 ?m . ?m rdf:type ontology:Q20667921 }
La Réole
action filter_type
action find
entity La Réole
relation capital of
type type of french administrative division
['La Réole', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { resource:La_Réole property:capital_of ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Clarification for simple ques.
Q763231
SYSTEM
Did you mean Roquebrune ?
Q263456 Q763231 Q601722
(Q263456,P1376,c(Q20667921)) (Q763231,P1376,c(Q20667921)) (Q601722,P1376,c(Q20667921))
[ANSWER]
['Q263456', 'P1376', {'concept': 'Q20667921'}] ['Q763231', 'P1376', {'concept': 'Q20667921'}] ['Q601722', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { resource:Q263456 property:P1376 ?m . ?m rdf:type ontology:Q20667921 }
La Réole Roquebrune Loubens
Did you mean Roquebrune ?
Roquebrune
['La Réole', 'capital of', {'concept': 'type of french administrative division'}] ['Roquebrune', 'capital of', {'concept': 'type of french administrative division'}] ['Loubens', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { resource:La_Réole property:capital_of ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
USER
No, I meant La Réole. Could you tell me the answer for that?
(Q263456,P1376,c(Q20667921))
Q263456
['Q263456', 'P1376', {'concept': 'Q20667921'}]
['La Réole', 'capital of', {'concept': 'type of french administrative division'}]
[]
Q571697
SYSTEM
canton of La Réole
Q571697
(Q263456,P1376,c(Q20667921))
action filter_type
action find
entity Q263456
relation P1376
type Q20667921
[ANSWER] has that one as its capital
['Q263456', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { resource:Q263456 property:P1376 ?m . ?m rdf:type ontology:Q20667921 }
canton of La Réole
Canton of La Réole has that one as its capital
canton of La Réole
action filter_type
action find
entity La Réole
relation capital of
type type of french administrative division
['La Réole', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { resource:La_Réole property:capital_of ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q742635 Q763231
P47
Q20667921
USER
Which french administrative divisions are adjacent to Roquebrune or Arbonne ?
OR((Q763231,P47,c(Q20667921)), (Q742635,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q763231
relation P47
action find
entity Q742635
relation P47
type Q20667921
{'OR': [['Q763231', 'P47', {'concept': 'Q20667921'}], ['Q742635', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q763231 property:P47 ?t } UNION { resource:Q742635 property:P47 ?t } } . ?t rdf:type ontology:Q20667921 }
Arbonne Roquebrune
action filter_type
action union
action find
entity Roquebrune
relation shares border with
action find
entity Arbonne
relation shares border with
type type of french administrative division
{'OR': [['Roquebrune', 'shares border with', {'concept': 'type of french administrative division'}], ['Arbonne', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Roquebrune property:shares_border_with ?t } UNION { resource:Arbonne property:shares_border_with ?t } } . ?t rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q601722 Q194799 Q746192 Q197339 Q661672 Q196639 Q194218 Q839448 Q177516 Q932076
SYSTEM
Some of them are Loubens, Neuffons, Ahetze, Arcangues, Saint-Sulpice-de-Guilleragues, Mesterrieux, Fossès-et-Baleyssac, Bassussarry, Coutures, Bidart
Q194218 Q839448 Q661672 Q194799 Q132790 Q197339 Q196639 Q601722 Q932076 Q202147 Q746192 Q177516
OR((Q763231,P47,c(Q20667921)), (Q742635,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q763231
relation P47
action find
entity Q742635
relation P47
type Q20667921
[ANSWERS] are adjacent to Roquebrune or Arbonne
{'OR': [['Q763231', 'P47', {'concept': 'Q20667921'}], ['Q742635', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q763231 property:P47 ?t } UNION { resource:Q742635 property:P47 ?t } } . ?t rdf:type ontology:Q20667921 }
Fossès-et-Baleyssac Bassussarry Saint-Sulpice-de-Guilleragues Neuffons Biarritz Arcangues Mesterrieux Loubens Bidart Saint-Hilaire-de-la-Noaille Ahetze Coutures
Loubens, Neuffons, Ahetze, Arcangues, Saint-Sulpice-de-Guilleragues, Mesterrieux, Fossès-et-Baleyssac, Bassussarry, Coutures and Bidart are adjacent to Roquebrune or Arbonne
Loubens Neuffons Ahetze Arcangues Saint-Sulpice-de-Guilleragues Mesterrieux Fossès-et-Baleyssac Bassussarry Coutures Bidart
action filter_type
action union
action find
entity Roquebrune
relation shares border with
action find
entity Arbonne
relation shares border with
type type of french administrative division
{'OR': [['Roquebrune', 'shares border with', {'concept': 'type of french administrative division'}], ['Arbonne', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Roquebrune property:shares_border_with ?t } UNION { resource:Arbonne property:shares_border_with ?t } } . ?t rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q8043409 Q839448
P17
Q15617994
USER
Which administrative territories are Bassussarry or Xe Kaman River present in ?
OR((Q839448,P17,c(Q15617994)), (Q8043409,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q839448
relation P17
action find
entity Q8043409
relation P17
type Q15617994
{'OR': [['Q839448', 'P17', {'concept': 'Q15617994'}], ['Q8043409', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { ?a property:P17 ?m . VALUES ( ?a ) { ( resource:Q839448 ) ( resource:Q8043409 ) } } . ?m rdf:type ontology:Q15617994 }
Xe Kaman River Bassussarry
action filter_type
action union
action find
entity Bassussarry
relation country
action find
entity Xe Kaman River
relation country
type designation for an administrative territorial entity
{'OR': [['Bassussarry', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Xe Kaman River', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { ?a property:country ?m . VALUES ( ?a ) { ( resource:Bassussarry ) ( resource:Xe_Kaman_River ) } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q819
SYSTEM
France, Laos
Q142 Q819
OR((Q839448,P17,c(Q15617994)), (Q8043409,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q839448
relation P17
action find
entity Q8043409
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q839448', 'P17', {'concept': 'Q15617994'}], ['Q8043409', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { ?a property:P17 ?m . VALUES ( ?a ) { ( resource:Q839448 ) ( resource:Q8043409 ) } } . ?m rdf:type ontology:Q15617994 }
France Laos
Which administrative territories are Bassussarry or Xe Kaman River present in
France Laos
action filter_type
action union
action find
entity Bassussarry
relation country
action find
entity Xe Kaman River
relation country
type designation for an administrative territorial entity
{'OR': [['Bassussarry', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Xe Kaman River', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { ?a property:country ?m . VALUES ( ?a ) { ( resource:Bassussarry ) ( resource:Xe_Kaman_River ) } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q408
P530
Q1048835
USER
Are Australia known to have diplomatic connections with those administrative territories ?
(Q408,P530,Q142) (Q408,P530,Q819)
action is_in
entity prev_answer
action find
entity Q408
relation P530
['Q408', 'P530', 'Q142'] ['Q408', 'P530', 'Q819']
ASK WHERE { VALUES ( ?z ) { ( resource:Q142 ) ( resource:Q819 ) } . resource:Q408 property:P530 ?z }
Australia
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'France'] ['Australia', 'diplomatic relation', 'Laos']
ASK WHERE { VALUES ( ?z ) { ( resource:France ) ( resource:Laos ) } . resource:Australia property:diplomatic_relation ?z }
[]
political territorial entity
SYSTEM
YES
(Q408,P530,Q142) (Q408,P530,Q819)
action is_in
entity prev_answer
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q142'] ['Q408', 'P530', 'Q819']
ASK WHERE { VALUES ( ?z ) { ( resource:Q142 ) ( resource:Q819 ) } . resource:Q408 property:P530 ?z }
Yes
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'France'] ['Australia', 'diplomatic relation', 'Laos']
ASK WHERE { VALUES ( ?z ) { ( resource:France ) ( resource:Laos ) } . resource:Australia property:diplomatic_relation ?z }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q193877
P138
Q20667921 Q151885 Q79007
USER
How many french administrative divisions are namesakes of around the same number of concepts or streets as Ivry-sur-Seine ?
(c(Q151885)|c(Q79007),P138,c(Q20667921))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q151885
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q79007
action count
action filter_multi_types
action find_reverse
entity Q193877
relation P138
type Q151885
type Q79007
[[{'concept': 'Q151885'}, {'concept': 'Q79007'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?l ) AS ?u ) WHERE { VALUES ( ?g ) { ( ontology:Q151885 ) ( ontology:Q79007 ) } . ?l rdf:type ?g } GROUP BY ?f } . FILTER ( ?u = ?o ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { ?w property:P138 resource:Q193877 . { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:Q151885 ) ( ontology:Q79007 ) } } } } }
Ivry-sur-Seine
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type concept
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type street
action count
action filter_multi_types
action find_reverse
entity Ivry-sur-Seine
relation named after
type concept
type street
[[{'concept': 'concept'}, {'concept': 'street'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?l ) AS ?u ) WHERE { VALUES ( ?g ) { ( ontology:concept ) ( ontology:street ) } . ?l rdf:type ?g } GROUP BY ?f } . FILTER ( ?u = ?o ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { ?w property:named_after resource:Ivry-sur-Seine . { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:concept ) ( ontology:street ) } } } } }
[]
type of french administrative division concept street
SYSTEM
30
Q3769 Q817418 Q679894 Q166997 Q48958 Q212274 Q274327 Q193899 Q212987 Q201982 Q211604 Q189153 Q575565 Q18199435 Q193877 Q784536 Q1105062 Q773318 Q688262 Q968881 Q18199186 Q13103683 Q317975 Q18102 Q917770 Q3413171 Q532352 Q266958 Q1440685 Q3555080
(c(Q151885)|c(Q79007),P138,c(Q20667921))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q151885
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q79007
action count
action filter_multi_types
action find_reverse
entity Q193877
relation P138
type Q151885
type Q79007
[ANSWER]
[[{'concept': 'Q151885'}, {'concept': 'Q79007'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?l ) AS ?u ) WHERE { VALUES ( ?g ) { ( ontology:Q151885 ) ( ontology:Q79007 ) } . ?l rdf:type ?g } GROUP BY ?f } . FILTER ( ?u = ?o ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { ?w property:P138 resource:Q193877 . { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:Q151885 ) ( ontology:Q79007 ) } } } } }
French Guiana Joinville Aurignac Nevers Neuilly-sur-Seine Nogent-sur-Marne Saint-Maurice Fontenay-sous-Bois Choisy-le-Roi Clichy Montparnasse Saint-Cloud Batignolles Charonne Ivry-sur-Seine Auteuil Wattignies-la-Victoire Bercy Champaubert Ternes Grenelle La Chapelle Châtelperron Saint-Mandé Solutré-Pouilly Picpus La Villette Rolleboise Belleville Vaugirard
30
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type concept
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type street
action count
action filter_multi_types
action find_reverse
entity Ivry-sur-Seine
relation named after
type concept
type street
[[{'concept': 'concept'}, {'concept': 'street'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?l ) AS ?u ) WHERE { VALUES ( ?g ) { ( ontology:concept ) ( ontology:street ) } . ?l rdf:type ?g } GROUP BY ?f } . FILTER ( ?u = ?o ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { ?w property:named_after resource:Ivry-sur-Seine . { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:concept ) ( ontology:street ) } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q6616
P138
Q20667921 Q151885 Q79007
USER
And how about Poitiers?
(c(Q151885)|c(Q79007),P138,c(Q20667921))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q151885
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q79007
action count
action filter_multi_types
action find_reverse
entity Q6616
relation P138
type Q151885
type Q79007
[[{'concept': 'Q151885'}, {'concept': 'Q79007'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) ?d WHERE { ?n rdf:type ?u . VALUES ( ?u ) { ( ontology:Q151885 ) ( ontology:Q79007 ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { { ?g rdf:type ontology:Q151885 } UNION { ?g rdf:type ontology:Q79007 } } . ?g property:P138 resource:Q6616 } } . FILTER ( ?c = ?b ) }
Poitiers
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type concept
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type street
action count
action filter_multi_types
action find_reverse
entity Poitiers
relation named after
type concept
type street
[[{'concept': 'concept'}, {'concept': 'street'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) ?d WHERE { ?n rdf:type ?u . VALUES ( ?u ) { ( ontology:concept ) ( ontology:street ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { { ?g rdf:type ontology:concept } UNION { ?g rdf:type ontology:street } } . ?g property:named_after resource:Poitiers } } . FILTER ( ?c = ?b ) }
[]
type of french administrative division concept street
SYSTEM
237
Q205551 Q521432 Q201352 Q901416 Q456477 Q132801 Q191119 Q1172337 Q236579 Q1075237 Q321067 Q840218 Q326687 Q181946 Q160199 Q842942 Q183910 Q626987 Q633254 Q190974 Q196360 Q180871 Q1440905 Q269364 Q2426877 Q138648 Q1391563 Q212793 Q2961727 Q6454 Q208812 Q9155 Q208943 Q3241770 Q160506 Q193880 Q167152 Q840597 Q329664 Q1241308 Q209069 Q273702 Q181285 Q126668 Q59221 Q903665 Q7158 Q616668 Q264778 Q174032 Q229339 Q135265 Q161884 Q28520 Q46135 Q205116 Q1476 Q154715 Q30974 Q182744 Q459683 Q205632 Q623376 Q130994 Q217077 Q809414 Q213317 Q1073264 Q501933 Q694818 Q474524 Q22640 Q181886 Q187796 Q193819 Q234270 Q238377 Q762471 Q234274 Q591741 Q729239 Q243866 Q474503 Q251731 Q126675 Q149419 Q1463559 Q134674 Q474555 Q636299 Q605656 Q174257 Q471685 Q154724 Q165271 Q163108 Q154728 Q12193 Q142410 Q207632 Q476887 Q22739 Q22636 Q209086 Q195098 Q625570 Q569751 Q209005 Q181269 Q736370 Q1111541 Q203645 Q16532200 Q13917 Q241021 Q208793 Q387460 Q1080717 Q285 Q648164 Q567956 Q204051 Q781078 Q202565 Q468229 Q174247 Q900479 Q185721 Q1066223 Q1165029 Q148787 Q45797 Q163795 Q530593 Q463304 Q44401 Q212966 Q34001 Q213288 Q470959 Q47465 Q14112 Q845975 Q689491 Q404783 Q16121 Q22160 Q478105 Q238339 Q271649 Q70285 Q23047 Q989788 Q1100414 Q154748 Q840164 Q134346 Q165090 Q202378 Q6588 Q212959 Q541007 Q822303 Q474773 Q666180 Q12130 Q453492 Q208798 Q22690 Q22380 Q207570 Q22754 Q42807 Q22756 Q208794 Q233909 Q79815 Q177573 Q206493 Q1217220 Q188750 Q241940 Q3413275 Q128466 Q370224 Q288 Q171545 Q204979 Q167141 Q193903 Q131329 Q256175 Q216966 Q83432 Q279681 Q372111 Q1014746 Q6548 Q175999 Q199682 Q6397 Q325946 Q6544 Q1348608 Q837748 Q498869 Q40898 Q192548 Q93351 Q1047171 Q256004 Q272528 Q41139 Q191126 Q471902 Q399366 Q461413 Q947091 Q207620 Q467132 Q135104 Q1056120 Q181306 Q3413163 Q475599 Q845191 Q130272 Q221683 Q990774 Q6616 Q182872 Q331232 Q1110622 Q273917 Q20892 Q193826 Q832386
(c(Q151885)|c(Q79007),P138,c(Q20667921))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q151885
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q79007
action count
action filter_multi_types
action find_reverse
entity Q6616
relation P138
type Q151885
type Q79007
[ANSWER]
[[{'concept': 'Q151885'}, {'concept': 'Q79007'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) ?d WHERE { ?n rdf:type ?u . VALUES ( ?u ) { ( ontology:Q151885 ) ( ontology:Q79007 ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { { ?g rdf:type ontology:Q151885 } UNION { ?g rdf:type ontology:Q79007 } } . ?g property:P138 resource:Q6616 } } . FILTER ( ?c = ?b ) }
Mérignac Saint-Marcellin Pontoise Lacaune Chooz Albi Rambouillet Morogues Semur-en-Auxois Bailleau-Armenonville Nemours Barrême Banon Argenteuil Cherbourg-Octeville Bonneville-la-Louvet Bayeux Herment Morbier Oradour-sur-Glane Aisy-sur-Armançon Compiègne Ramonville-Saint-Agne Joué-lès-Tours Épinettes Maubeuge Coulmiers Charenton-le-Pont Chavignol Calais Corbeil-Essonnes Lagny-sur-Marne Bagnolet Lion Saint-Denis 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 Bagneux Abbeville Créteil Amboise Le Mans Montbéliard Rouen Saint-Quentin Sancerre Aubervilliers Volvic Colmar Camembert Thiézac Ambert Civry Taizé Sassenage 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 Bayonne Castelnau-le-Lez Le Pradet Gèdre Beauvais Rambervillers Bobigny Lens Saint-Malo Toul Brest Dreux Apt Roquefort-sur-Soulzon Hettange-Grande Wissembourg Pantin Frouard 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 Euville Coutances Corneville-sur-Risle Mâcon Noisiel Bar-le-Duc Andrézieux-Bouthéon Le Pouliguen Ottmarsheim Dunkirk Valenciennes Chaource Fontaine-de-Vaucluse Cayenne Pompey Roubaix Montbrison Voves Aix-en-Provence Corsica Caussols Tautavel Aiguillon Beaune Phalsbourg Rungis Azincourt 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 Saint-Nectaire Roquebrune-sur-Argens Maroilles Brittany Matignon Cavaillon Metz Créhange Thann Bitche Nîmes Spicheren Lunéville Alfortville Mulhouse Bagnoles Sèvres Laqueuille Saint-Estèphe Givet Gros-Caillou Villejuif Noisy-le-Sec Tours Belfort Vézelay Laon Cergy Arras Barbizon Uzès Viroflay Thouars Romainville Cilaos Orléans Le Pré-Saint-Gervais Floirac Avignon Landerneau Libourne Varize Brétigny-sur-Orge Brienne-le-Château Nancy Saint-Émilion Vichy Balma Les Lilas Pauillac Melun Saintes Salles 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
237
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type concept
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type street
action count
action filter_multi_types
action find_reverse
entity Poitiers
relation named after
type concept
type street
[[{'concept': 'concept'}, {'concept': 'street'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) ?d WHERE { ?n rdf:type ?u . VALUES ( ?u ) { ( ontology:concept ) ( ontology:street ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { { ?g rdf:type ontology:concept } UNION { ?g rdf:type ontology:street } } . ?g property:named_after resource:Poitiers } } . FILTER ( ?c = ?b ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with max number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?i ) WHERE { ?c rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 . ?c property:P530 ?t } GROUP BY ?c } . FILTER ( ?i = ?s ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?s ) { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?p ) WHERE { ?o rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 . ?o property:P530 ?k } GROUP BY ?o } } }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?i ) WHERE { ?c rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:diplomatic_relation ?t } GROUP BY ?c } . FILTER ( ?i = ?s ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?s ) { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?p ) WHERE { ?o rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:diplomatic_relation ?k } GROUP BY ?o } } }
[]
designation for an administrative territorial entity political territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have diplomatic relations with max number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?i ) WHERE { ?c rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 . ?c property:P530 ?t } GROUP BY ?c } . FILTER ( ?i = ?s ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?s ) { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?p ) WHERE { ?o rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 . ?o property:P530 ?k } GROUP BY ?o } } }
Germany
Germany have diplomatic relations with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?i ) WHERE { ?c rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:diplomatic_relation ?t } GROUP BY ?c } . FILTER ( ?i = ?s ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?s ) { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?p ) WHERE { ?o rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:diplomatic_relation ?k } GROUP BY ?o } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P123
Q2342494
USER
Which collectable was published by France ?
(c(Q2342494),P123,Q142)
action filter_type
action find_reverse
entity Q142
relation P123
type Q2342494
[{'concept': 'Q2342494'}, 'P123', 'Q142']
SELECT DISTINCT ?l WHERE { ?l property:P123 resource:Q142 . ?l rdf:type ontology:Q2342494 }
France
action filter_type
action find_reverse
entity France
relation publisher
type collectable
[{'concept': 'collectable'}, 'publisher', 'France']
SELECT DISTINCT ?l WHERE { ?l property:publisher resource:France . ?l rdf:type ontology:collectable }
[]
collectable
Q22338335
SYSTEM
Recueil général des anciennes lois françaises, depuis l'an 420 jusqu'à la Révolution de 1789, Tome XIX
Q22338335
(c(Q2342494),P123,Q142)
action filter_type
action find_reverse
entity Q142
relation P123
type Q2342494
[ANSWER] was published by France
[{'concept': 'Q2342494'}, 'P123', 'Q142']
SELECT DISTINCT ?l WHERE { ?l property:P123 resource:Q142 . ?l rdf:type ontology:Q2342494 }
Recueil général des anciennes lois françaises, depuis l'an 420 jusqu'à la Révolution de 1789, Tome XIX
Recueil général des anciennes lois françaises, depuis l'an 420 jusqu'à la Révolution de 1789, Tome XIX was published by France
Recueil général des anciennes lois françaises, depuis l'an 420 jusqu'à la Révolution de 1789, Tome XIX
action filter_type
action find_reverse
entity France
relation publisher
type collectable
[{'concept': 'collectable'}, 'publisher', 'France']
SELECT DISTINCT ?l WHERE { ?l property:publisher resource:France . ?l rdf:type ontology:collectable }
[]