Simple Question (Direct)
Simple Question
Q298784
P241
Q781132
USER
Which military branch did Jacques MacDonald belong to ?
(Q298784,P241,c(Q781132))
action filter_type
action find
entity Q298784
relation P241
type Q781132
['Q298784', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?s WHERE { resource:Q298784 property:P241 ?s . ?s rdf:type ontology:Q781132 }
Jacques MacDonald
action filter_type
action find
entity Jacques MacDonald
relation military branch
type military branch
['Jacques MacDonald', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?s WHERE { resource:Jacques_MacDonald property:military_branch ?s . ?s rdf:type ontology:military_branch }
[]
military branch
Q1076619
SYSTEM
French Army
Q1076619
(Q298784,P241,c(Q781132))
action filter_type
action find
entity Q298784
relation P241
type Q781132
[ANSWER]
['Q298784', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?s WHERE { resource:Q298784 property:P241 ?s . ?s rdf:type ontology:Q781132 }
French Army
French Army
action filter_type
action find
entity Jacques MacDonald
relation military branch
type military branch
['Jacques MacDonald', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?s WHERE { resource:Jacques_MacDonald property:military_branch ?s . ?s rdf:type ontology:military_branch }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1076619
P361
Q23905071
USER
What are a component of that military branch ?
(c(Q23905071),P361,Q1076619)
action filter_type
action find_reverse
entity Q1076619
relation P361
type Q23905071
[{'concept': 'Q23905071'}, 'P361', 'Q1076619']
SELECT DISTINCT ?i WHERE { ?i property:P361 resource:Q1076619 . ?i rdf:type ontology:Q23905071 }
French Army
action filter_type
action find_reverse
entity French Army
relation part of
type military unit type-size class
[{'concept': 'military unit type-size class'}, 'part of', 'French Army']
SELECT DISTINCT ?i WHERE { ?i property:part_of resource:French_Army . ?i rdf:type ontology:military_unit_type-size_class }
[]
military unit type-size class
Q2818624 Q2818628 Q2815201
SYSTEM
8th Infantry Division, 8th Infantry Regiment, 242nd Infantry Regiment
Q2818624 Q2818628 Q16147679 Q2815201 Q2816186 Q2815881
(c(Q23905071),P361,Q1076619)
action filter_type
action find_reverse
entity Q1076619
relation P361
type Q23905071
[ANSWERS]
[{'concept': 'Q23905071'}, 'P361', 'Q1076619']
SELECT DISTINCT ?i WHERE { ?i property:P361 resource:Q1076619 . ?i rdf:type ontology:Q23905071 }
8th Infantry Division 8th Infantry Regiment 4th Infantry Regiment 242nd Infantry Regiment 32nd Infantry Division 2nd Infantry Division
8th Infantry Division 8th Infantry Regiment 242nd Infantry Regiment
action filter_type
action find_reverse
entity French Army
relation part of
type military unit type-size class
[{'concept': 'military unit type-size class'}, 'part of', 'French Army']
SELECT DISTINCT ?i WHERE { ?i property:part_of resource:French_Army . ?i rdf:type ontology:military_unit_type-size_class }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2818624 Q2818628 Q2815201
P361
Q781132
USER
Which military branches are those military unit type-size classes a component of ?
(Q2818624,P361,c(Q781132)) (Q2818628,P361,c(Q781132)) (Q2815201,P361,c(Q781132))
action filter_type
action find
entity prev_answer
relation P361
type Q781132
['Q2818624', 'P361', {'concept': 'Q781132'}] ['Q2818628', 'P361', {'concept': 'Q781132'}] ['Q2815201', 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ?s WHERE { VALUES ( ?l ) { ( resource:Q2818624 ) ( resource:Q2818628 ) ( resource:Q16147679 ) } . ?l property:P361 ?s . ?s rdf:type ontology:Q781132 }
8th Infantry Division 8th Infantry Regiment 242nd Infantry Regiment
action filter_type
action find
entity prev_answer
relation part of
type military branch
['8th Infantry Division', 'part of', {'concept': 'military branch'}] ['8th Infantry Regiment', 'part of', {'concept': 'military branch'}] ['242nd Infantry Regiment', 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ?s WHERE { VALUES ( ?l ) { ( resource:8th_Infantry_Division ) ( resource:8th_Infantry_Regiment ) ( resource:4th_Infantry_Regiment ) } . ?l property:part_of ?s . ?s rdf:type ontology:military_branch }
[]
military branch
Q1076619 Q1076619 Q1076619
SYSTEM
French Army
Q1076619 Q1076619 Q1076619
(Q2818624,P361,c(Q781132)) (Q2818628,P361,c(Q781132)) (Q2815201,P361,c(Q781132))
action filter_type
action find
entity prev_answer
relation P361
type Q781132
[ANSWER]
['Q2818624', 'P361', {'concept': 'Q781132'}] ['Q2818628', 'P361', {'concept': 'Q781132'}] ['Q2815201', 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ?s WHERE { VALUES ( ?l ) { ( resource:Q2818624 ) ( resource:Q2818628 ) ( resource:Q16147679 ) } . ?l property:P361 ?s . ?s rdf:type ontology:Q781132 }
French Army French Army French Army
French Army French Army French Army
action filter_type
action find
entity prev_answer
relation part of
type military branch
['8th Infantry Division', 'part of', {'concept': 'military branch'}] ['8th Infantry Regiment', 'part of', {'concept': 'military branch'}] ['242nd Infantry Regiment', 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ?s WHERE { VALUES ( ?l ) { ( resource:8th_Infantry_Division ) ( resource:8th_Infantry_Regiment ) ( resource:4th_Infantry_Regiment ) } . ?l property:part_of ?s . ?s rdf:type ontology:military_branch }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2815201
P607
Q198
USER
What battle was 242nd Infantry Regiment a part of ?
(Q2815201,P607,c(Q198))
action filter_type
action find
entity Q2815201
relation P607
type Q198
['Q2815201', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?r WHERE { resource:Q2815201 property:P607 ?r . ?r rdf:type ontology:Q198 }
242nd Infantry Regiment
action filter_type
action find
entity 242nd Infantry Regiment
relation conflict
type war
['242nd Infantry Regiment', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?r WHERE { resource:242nd_Infantry_Regiment property:conflict ?r . ?r rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q2815201,P607,c(Q198))
action filter_type
action find
entity Q2815201
relation P607
type Q198
[ANSWER]
['Q2815201', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?r WHERE { resource:Q2815201 property:P607 ?r . ?r rdf:type ontology:Q198 }
World War I
World War I
action filter_type
action find
entity 242nd Infantry Regiment
relation conflict
type war
['242nd Infantry Regiment', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?r WHERE { resource:242nd_Infantry_Regiment property:conflict ?r . ?r rdf:type ontology:war }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q2545487 Q2818624
P607
Q198
USER
Which wars did 8th Infantry Division and William A. Eddy take part in ?
AND((Q2818624,P607,c(Q198)), (Q2545487,P607,c(Q198)))
action filter_type
action intersection
action find
entity Q2818624
relation P607
action find
entity Q2545487
relation P607
type Q198
{'AND': [['Q2818624', 'P607', {'concept': 'Q198'}], ['Q2545487', 'P607', {'concept': 'Q198'}]]}
SELECT DISTINCT ?y WHERE { resource:Q2818624 property:P607 ?y . resource:Q2545487 property:P607 ?y . ?y rdf:type ontology:Q198 }
William A. Eddy 8th Infantry Division
action filter_type
action intersection
action find
entity 8th Infantry Division
relation conflict
action find
entity William A. Eddy
relation conflict
type war
{'AND': [['8th Infantry Division', 'conflict', {'concept': 'war'}], ['William A. Eddy', 'conflict', {'concept': 'war'}]]}
SELECT DISTINCT ?y WHERE { resource:8th_Infantry_Division property:conflict ?y . resource:William_A._Eddy property:conflict ?y . ?y rdf:type ontology:war }
[]
war
Q362 Q361
SYSTEM
World War II, World War I
Q362 Q361
AND((Q2818624,P607,c(Q198)), (Q2545487,P607,c(Q198)))
action filter_type
action intersection
action find
entity Q2818624
relation P607
action find
entity Q2545487
relation P607
type Q198
[ANSWERS]
{'AND': [['Q2818624', 'P607', {'concept': 'Q198'}], ['Q2545487', 'P607', {'concept': 'Q198'}]]}
SELECT DISTINCT ?y WHERE { resource:Q2818624 property:P607 ?y . resource:Q2545487 property:P607 ?y . ?y rdf:type ontology:Q198 }
World War II World War I
World War II World War I
action filter_type
action intersection
action find
entity 8th Infantry Division
relation conflict
action find
entity William A. Eddy
relation conflict
type war
{'AND': [['8th Infantry Division', 'conflict', {'concept': 'war'}], ['William A. Eddy', 'conflict', {'concept': 'war'}]]}
SELECT DISTINCT ?y WHERE { resource:8th_Infantry_Division property:conflict ?y . resource:William_A._Eddy property:conflict ?y . ?y rdf:type ontology:war }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q7521081 Q1076619
P241 P735
Q502895
USER
Which people are affiliated to the military branch named French Army and do not have name of Jean ?
AND((c(Q502895),P241,Q1076619), NOT((c(Q502895),P735,Q7521081)))
action filter_type
action difference
action find_reverse
entity Q1076619
relation P241
action find_reverse
entity Q7521081
relation P735
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P241', 'Q1076619'], {'NOT': [[{'concept': 'Q502895'}, 'P735', 'Q7521081']]}]}
SELECT DISTINCT ?t WHERE { ?t property:P241 resource:Q1076619 . FILTER NOT EXISTS { ?t property:P735 resource:Q7521081 } . ?t rdf:type ontology:Q502895 }
Jean French Army
action filter_type
action difference
action find_reverse
entity French Army
relation military branch
action find_reverse
entity Jean
relation given name
type common name
{'AND': [[{'concept': 'common name'}, 'military branch', 'French Army'], {'NOT': [[{'concept': 'common name'}, 'given name', 'Jean']]}]}
SELECT DISTINCT ?t WHERE { ?t property:military_branch resource:French_Army . FILTER NOT EXISTS { ?t property:given_name resource:Jean } . ?t rdf:type ontology:common_name }
[]
common name
Q567331 Q3188994 Q4492595 Q7966364 Q81042 Q2871595 Q2035422 Q560639 Q3387146 Q14540751
SYSTEM
Some of them are Louis d'Aurelle de Paladines, Jules de Laveaucoupet, Henry Freydenberg, Walter Waddington, Michel-Joseph Maunoury, Augustin Guillaume, Joseph de Goislard de Monsabert, Francis de Gaston, Chevalier de Levis, Pierre Tourret, Raymond H. A. Carter
Q356933 Q3122281 Q482181 Q545751 Q3188994 Q12886175 Q3371160 Q1224806 Q18671578 Q2959547 Q941947 Q7067490 Q453589 Q879979 Q3588604 Q630750 Q16059556 Q3386726 Q3287688 Q2164750 Q475784 Q239760 Q348431 Q8016260 Q567331 Q115691 Q2083438 Q365740 Q318122 Q205783 Q2871595 Q3184673 Q1094964 Q14540751 Q3107497 Q2507485 Q4925921 Q3372536 Q1329875 Q320823 Q81042 Q3559586 Q715329 Q186652 Q705910 Q17577 Q176522 Q1415335 Q573644 Q3573681 Q3554228 Q169906 Q22666795 Q115701 Q725115 Q212386 Q3384578 Q2042 Q7966364 Q19365644 Q1684617 Q3387146 Q464335 Q19936351 Q3385539 Q3340295 Q18527424 Q472540 Q7141712 Q316518 Q349216 Q3426776 Q298784 Q3387740 Q3017939 Q281781 Q3700511 Q4492595 Q3291374 Q3371609 Q377585 Q3456175 Q3440010 Q16973547 Q585607 Q2926728 Q19841814 Q3386538 Q3439531 Q330788 Q18671960 Q560639 Q16059210 Q3093660 Q115687 Q5526725 Q49448 Q3380969 Q563726 Q17619047 Q474389 Q158778 Q1079578 Q3383018 Q3089886 Q23956657 Q2976959 Q13508587 Q2958635 Q693529 Q379463 Q3070707 Q17708970 Q3426023 Q945147 Q328915 Q667883 Q685654 Q3102280 Q3188608 Q378572 Q698422 Q3345914 Q1891159 Q3093849 Q16826331 Q704264 Q374441 Q3133130 Q3014500 Q669516 Q16008176 Q3131366 Q3357062 Q82992 Q553522 Q2848073 Q2702473 Q369781 Q2847860 Q19060410 Q2958791 Q2979502 Q503201 Q349167 Q2847652 Q81184 Q3047482 Q3385771 Q241944 Q523467 Q81518 Q128772 Q12789780 Q698862 Q2871649 Q3121126 Q4204123 Q3386970 Q7313746 Q175286 Q2035422 Q2898572 Q3069169 Q265104 Q3131855 Q218280 Q710667 Q5546815 Q115706 Q3379808 Q318402 Q1064944 Q717539 Q170357 Q4685180 Q2441102 Q128764 Q249976 Q572684 Q312391 Q3121927 Q1961477 Q1354290 Q360859 Q18526580 Q4775491 Q3287735 Q3085375 Q202582 Q4705635 Q3271285 Q2572143 Q3159824 Q7298723 Q3176302 Q1237007 Q312082 Q3427087 Q551525 Q3588614 Q207958 Q353924 Q2896131
AND((c(Q502895),P241,Q1076619), NOT((c(Q502895),P735,Q7521081)))
action filter_type
action difference
action find_reverse
entity Q1076619
relation P241
action find_reverse
entity Q7521081
relation P735
type Q502895
[ANSWERS]
{'AND': [[{'concept': 'Q502895'}, 'P241', 'Q1076619'], {'NOT': [[{'concept': 'Q502895'}, 'P735', 'Q7521081']]}]}
SELECT DISTINCT ?t WHERE { ?t property:P241 resource:Q1076619 . FILTER NOT EXISTS { ?t property:P735 resource:Q7521081 } . ?t rdf:type ontology:Q502895 }
François Christophe de Kellermann Guy de Montlaur Amédée Despans-Cubières Louis Faidherbe Jules de Laveaucoupet Christos Palaskas Paul Emile Diou Fernand de Langle de Cary James Hepburn Charles Lacheroy Marie Victor de Fay, marquis de Latour-Maubourg Noël Garnier-Duplessix Louis-Joseph de Montcalm Léonard-Léopold Forgemol de Bostquénard Émile Laure Noël Bouton de Chamilly Henri Vanwaetermeulen Pierre Quantin Marc-Edmond Dominé François Guillaume Barthélémy Laurent Joseph Vinoy Antoine Chanzy Adam Philippe, Comte de Custine William O'Shaughnessy Louis d'Aurelle de Paladines Jacques Louis Randon Henri Joseph Fenet Adolphe Guillaumat Henri Giraud Toussaint Louverture Augustin Guillaume Joseph Brugère Paul Déroulède Raymond H. A. Carter Marcel Carpentier Maurice Pellé Charles Piroth Paul Ely Roger Blaizot Louis Brière de l'Isle Michel-Joseph Maunoury Vincent Desportes Alfred-Amédée Dodds Gilbert du Motier Eugène Daumas Joseph Gallieni Maurice Sarrail Jacques Camou Charles Auguste Frossard Yves Godard Valérie André Jacques Lacan Christian Piquemal Adolphe Niel Maurice Le Glay Marcel Pourchier Pierre Crousillac Charles de Gaulle Walter Waddington Joseph Sohet Jean-Baptiste Billot Pierre Tourret Louis-Michel Letort de Lorville Guy Schlesser Pierre Ismert Nicolas Ernault de Rignac Des Bruslys Daniel O'Donnell Pierre Cambronne Pascal Olivier Count de Negroni Louis-Gabriel Suchet Armand Louis de Gontaut René Prioux Jacques MacDonald Pierre de Villiers David Galula Honoré Charles Reille Charles-Théodore Millot Henry Freydenberg Mariano Goybet Paul Lacombe de La Tour Maurice Challe Rémy Raffalli Roland Corbineau Joseph Dérigoin Antoine Argoud Bruno Dary Louis Victor Plessier Pierre Jeanpierre Roger Vandenberghe Abraham de Fabert John Lanier Francis de Gaston, Chevalier de Levis Joseph Maurice Pambet Gabriel Brunet de Sairigné Jacques Leroy de Saint Arnaud Gaston Cros Robert Nivelle Antoine James de Marigny Pierre Louis Charles de Failly Achille Pierre Deffontaines Alfred Heurtaux Louis-Nicolas Davout Noël Édouard, vicomte de Curières de Castelnau Pierre Garbay Frédéric Henri Walther Bertrand Soubelet Claude Barrès Louis Dominique Munnier Charles Buland Jacques Massu Ferdinand Walsin Esterhazy Jacques Duchesne Bernard Barrera René Cogny Gustave Léon Niox Alain Pellegrini Jacques Faure Balthasar Alexis Henri Antoine von Schauenburg Georges Bergé Jules Gaucher Charles François Dumouriez Auguste-Alexandre Ducrot Noël Jourda de Vaux Paul Aussaresses Gabriel Malleterre Charles Rondony Charles Huntziger Roger Trinquier Henry Victor Deligny Daniel O'Mahony Charles Ragon de Bange André Demetz Henri Jules Bataille Oscar de Négrier Élie Frédéric Forey Georges Catroux André Lalande André Corap Charles de Lorencez André Goineaud-Bérard Didier Tauzin Charles Pierre Corvisart Lucien Poirier Charles Leclerc Thomas Robert Bugeaud André Devigny Émile Fayolle Edgar Puaud Pierre Langlais Raoul Salan André Zeller François Achille Bazaine Pierre Bosquet Georges Barré Jean-Baptiste Vaquette de Gribeauval Augustin Tuncq Gustave Borgnis-Desbordes Félix Debax Pierre Segrétain René Laverdure Antoine-François Andréossy Joseph de Goislard de Monsabert Bernard Saint-Hillier Fernand Gambiez Hubert Lyautey Henri Putz Maurice Gamelin Christian de Castries Georges Hamacek Edmond Le Bœuf Philippe Erulin Abel Douay Joseph Souham Georges Picquart Maxime Weygand Adrian Liddell Hart Marie-Eugène Debeney Aimable Pélissier Charles Denis Bourbaki Thomas-Alexandre Dumas Philippe Leclerc de Hauteclocque Guy Le Borgne Charles Lallemand Henri Navarre Louis Franchet d'Espèrey Auguste Frederic Lendy Antoine Huré Marc Amand Élisée Scherb François Mireur Lansana Conté Alain Bouquin Léon Amédée François Raffenel Henri Gouraud Jacques Pâris de Bollardière Raymond Duc Jeannou Lacaze Armand-Octave-Marie d’Allonville Lazare Ponticelli René de Segonzac François Certain Canrobert Émile Lemonnier Joseph Joffre André Beaufre Paul François Grossetti
Louis d'Aurelle de Paladines Jules de Laveaucoupet Henry Freydenberg Walter Waddington Michel-Joseph Maunoury Augustin Guillaume Joseph de Goislard de Monsabert Francis de Gaston, Chevalier de Levis Pierre Tourret Raymond H. A. Carter
action filter_type
action difference
action find_reverse
entity French Army
relation military branch
action find_reverse
entity Jean
relation given name
type common name
{'AND': [[{'concept': 'common name'}, 'military branch', 'French Army'], {'NOT': [[{'concept': 'common name'}, 'given name', 'Jean']]}]}
SELECT DISTINCT ?t WHERE { ?t property:military_branch resource:French_Army . FILTER NOT EXISTS { ?t property:given_name resource:Jean } . ?t rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q10859
P921
Q198 Q2342494 Q838948
USER
Which wars were the main subjects of more number of collectables or works of art 's work than Spanish Civil War ?
(c(Q2342494)|c(Q838948),P921,c(Q198))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q198
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q198
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q10859
relation P921
type Q2342494
type Q838948
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?g ) WHERE { { ?n rdf:type ontology:Q198 . ?a rdf:type ontology:Q2342494 . ?a property:P921 ?n } UNION { ?a property:P921 ?n . ?n rdf:type ontology:Q198 . ?a rdf:type ontology:Q838948 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:P921 resource:Q10859 . { { ?j rdf:type ontology:Q2342494 } UNION { ?j rdf:type ontology:Q838948 } } } } . FILTER ( ?g > ?m ) }
Spanish Civil War
action greater
action union
action find_reverse_tuple_counts
relation main subject
type war
type collectable
action find_reverse_tuple_counts
relation main subject
type war
type work of art
action count
action filter_multi_types
action find_reverse
entity Spanish Civil War
relation main subject
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'war'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?g ) WHERE { { ?n rdf:type ontology:war . ?a rdf:type ontology:collectable . ?a property:main_subject ?n } UNION { ?a property:main_subject ?n . ?n rdf:type ontology:war . ?a rdf:type ontology:work_of_art } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:main_subject resource:Spanish_Civil_War . { { ?j rdf:type ontology:collectable } UNION { ?j rdf:type ontology:work_of_art } } } } . FILTER ( ?g > ?m ) }
[]
war collectable work of art
Q8683 Q362 Q361
SYSTEM
Cold War, World War II, World War I
Q8683 Q362 Q361
(c(Q2342494)|c(Q838948),P921,c(Q198))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q198
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q198
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q10859
relation P921
type Q2342494
type Q838948
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?g ) WHERE { { ?n rdf:type ontology:Q198 . ?a rdf:type ontology:Q2342494 . ?a property:P921 ?n } UNION { ?a property:P921 ?n . ?n rdf:type ontology:Q198 . ?a rdf:type ontology:Q838948 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:P921 resource:Q10859 . { { ?j rdf:type ontology:Q2342494 } UNION { ?j rdf:type ontology:Q838948 } } } } . FILTER ( ?g > ?m ) }
Cold War World War II World War I
Cold War World War II World War I
action greater
action union
action find_reverse_tuple_counts
relation main subject
type war
type collectable
action find_reverse_tuple_counts
relation main subject
type war
type work of art
action count
action filter_multi_types
action find_reverse
entity Spanish Civil War
relation main subject
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'war'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?g ) WHERE { { ?n rdf:type ontology:war . ?a rdf:type ontology:collectable . ?a property:main_subject ?n } UNION { ?a property:main_subject ?n . ?n rdf:type ontology:war . ?a rdf:type ontology:work_of_art } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:main_subject resource:Spanish_Civil_War . { { ?j rdf:type ontology:collectable } UNION { ?j rdf:type ontology:work_of_art } } } } . FILTER ( ?g > ?m ) }
[]
Logical Reasoning (All)
Logical|Difference|Single_Relation
Q18651954 Q2818624
P607
Q198
USER
Which wars did 8th Infantry Division but not Marcel Roux take part in ?
AND((Q2818624,P607,c(Q198)), NOT((Q18651954,P607,c(Q198))))
action filter_type
action difference
action find
entity Q2818624
relation P607
action find
entity Q18651954
relation P607
type Q198
{'AND': [['Q2818624', 'P607', {'concept': 'Q198'}], {'NOT': [['Q18651954', 'P607', {'concept': 'Q198'}]]}]}
SELECT DISTINCT ?c WHERE { resource:Q2818624 property:P607 ?c . MINUS { resource:Q18651954 property:P607 ?c } . ?c rdf:type ontology:Q198 }
Marcel Roux 8th Infantry Division
action filter_type
action difference
action find
entity 8th Infantry Division
relation conflict
action find
entity Marcel Roux
relation conflict
type war
{'AND': [['8th Infantry Division', 'conflict', {'concept': 'war'}], {'NOT': [['Marcel Roux', 'conflict', {'concept': 'war'}]]}]}
SELECT DISTINCT ?c WHERE { resource:8th_Infantry_Division property:conflict ?c . MINUS { resource:Marcel_Roux property:conflict ?c } . ?c rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
AND((Q2818624,P607,c(Q198)), NOT((Q18651954,P607,c(Q198))))
action filter_type
action difference
action find
entity Q2818624
relation P607
action find
entity Q18651954
relation P607
type Q198
[ANSWER]
{'AND': [['Q2818624', 'P607', {'concept': 'Q198'}], {'NOT': [['Q18651954', 'P607', {'concept': 'Q198'}]]}]}
SELECT DISTINCT ?c WHERE { resource:Q2818624 property:P607 ?c . MINUS { resource:Q18651954 property:P607 ?c } . ?c rdf:type ontology:Q198 }
World War II
World War II
action filter_type
action difference
action find
entity 8th Infantry Division
relation conflict
action find
entity Marcel Roux
relation conflict
type war
{'AND': [['8th Infantry Division', 'conflict', {'concept': 'war'}], {'NOT': [['Marcel Roux', 'conflict', {'concept': 'war'}]]}]}
SELECT DISTINCT ?c WHERE { resource:8th_Infantry_Division property:conflict ?c . MINUS { resource:Marcel_Roux property:conflict ?c } . ?c rdf:type ontology:war }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3859215 Q18651954
P19
Q56061
USER
Which administrative territories were Marcel Roux or Missincat born ?
OR((Q18651954,P19,c(Q56061)), (Q3859215,P19,c(Q56061)))
action filter_type
action union
action find
entity Q18651954
relation P19
action find
entity Q3859215
relation P19
type Q56061
{'OR': [['Q18651954', 'P19', {'concept': 'Q56061'}], ['Q3859215', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . { ?e property:P19 ?q . VALUES ( ?e ) { ( resource:Q18651954 ) ( resource:Q3859215 ) } } }
Missincat Marcel Roux
action filter_type
action union
action find
entity Marcel Roux
relation place of birth
action find
entity Missincat
relation place of birth
type administrative territorial entity
{'OR': [['Marcel Roux', 'place of birth', {'concept': 'administrative territorial entity'}], ['Missincat', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . { ?e property:place_of_birth ?q . VALUES ( ?e ) { ( resource:Marcel_Roux ) ( resource:Missincat ) } } }
[]
administrative territorial entity
Q490 Q90
SYSTEM
Milan, Paris
Q490 Q90
OR((Q18651954,P19,c(Q56061)), (Q3859215,P19,c(Q56061)))
action filter_type
action union
action find
entity Q18651954
relation P19
action find
entity Q3859215
relation P19
type Q56061
[ANSWERS]
{'OR': [['Q18651954', 'P19', {'concept': 'Q56061'}], ['Q3859215', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . { ?e property:P19 ?q . VALUES ( ?e ) { ( resource:Q18651954 ) ( resource:Q3859215 ) } } }
Milan Paris
Milan Paris
action filter_type
action union
action find
entity Marcel Roux
relation place of birth
action find
entity Missincat
relation place of birth
type administrative territorial entity
{'OR': [['Marcel Roux', 'place of birth', {'concept': 'administrative territorial entity'}], ['Missincat', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . { ?e property:place_of_birth ?q . VALUES ( ?e ) { ( resource:Marcel_Roux ) ( resource:Missincat ) } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q490 Q90
P190
Q56061
USER
Which administrative territories are partner towns of those ones ?
(Q490,P190,c(Q56061)) (Q90,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
['Q490', 'P190', {'concept': 'Q56061'}] ['Q90', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?h ) { ( resource:Q490 ) ( resource:Q90 ) } . ?h property:P190 ?r . ?r rdf:type ontology:Q56061 }
Milan Paris
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Milan', 'sister city', {'concept': 'administrative territorial entity'}] ['Paris', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?h ) { ( resource:Milan ) ( resource:Paris ) } . ?h property:sister_city ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8686 Q220 Q956
SYSTEM
Shanghai, Rome, Beijing
Q8686 Q3718 Q472 Q3130 Q1297 Q340 Q34820 Q193289 Q2634 Q546 Q3141 Q33935 Q185289 Q174 Q172 Q956 Q121157 Q3805 Q5776 Q220
(Q490,P190,c(Q56061)) (Q90,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
[ANSWERS]
['Q490', 'P190', {'concept': 'Q56061'}] ['Q90', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?h ) { ( resource:Q490 ) ( resource:Q90 ) } . ?h property:P190 ?r . ?r rdf:type ontology:Q56061 }
Shanghai Dakar Sofia Sydney Chicago Montreal Santo Domingo Iquitos Naples Trieste Melbourne Tel Aviv Pernik São Paulo Toronto Beijing Mashhad Amman Bethlehem Rome
Shanghai Rome Beijing
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Milan', 'sister city', {'concept': 'administrative territorial entity'}] ['Paris', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?h ) { ( resource:Milan ) ( resource:Paris ) } . ?h property:sister_city ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q8686 Q220 Q956
P190
Q56061
USER
Which administrative territories are twin cities of those ones ?
(Q8686,P190,c(Q56061)) (Q220,P190,c(Q56061)) (Q956,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
['Q8686', 'P190', {'concept': 'Q56061'}] ['Q220', 'P190', {'concept': 'Q56061'}] ['Q956', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . ?l property:P190 ?c . VALUES ( ?l ) { ( resource:Q8686 ) ( resource:Q3718 ) ( resource:Q472 ) } }
Shanghai Rome Beijing
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Shanghai', 'sister city', {'concept': 'administrative territorial entity'}] ['Rome', 'sister city', {'concept': 'administrative territorial entity'}] ['Beijing', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . ?l property:sister_city ?c . VALUES ( ?l ) { ( resource:Shanghai ) ( resource:Dakar ) ( resource:Sofia ) } }
[]
administrative territorial entity
Q649 Q2807 Q490
SYSTEM
Moscow, Madrid, Milan
Q12892 Q3889 Q648 Q1861 Q35381 Q52535 Q24826 Q1297 Q1850 Q269 Q13580 Q36433 Q340 Q597491 Q109356 Q84 Q78 Q133073 Q49227 Q41621 Q37806 Q47034 Q612 Q585 Q43509 Q87 Q58976 Q34370 Q3856 Q406 Q34713 Q174 Q490 Q36647 Q33986 Q131694 Q1492 Q23311 Q959 Q62 Q484799 Q8717 Q90 Q34647 Q1490 Q132830 Q727 Q649 Q1861 Q365 Q3114 Q1490 Q34820 Q1520 Q1524 Q1748 Q1781 Q1489 Q33935 Q3630 Q3711 Q3561 Q3805 Q84 Q85 Q1930 Q174 Q2868 Q8678 Q239 Q34647 Q490 Q2807 Q2280 Q3640 Q64 Q210987 Q60 Q61
(Q8686,P190,c(Q56061)) (Q220,P190,c(Q56061)) (Q956,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
[ANSWERS]
['Q8686', 'P190', {'concept': 'Q56061'}] ['Q220', 'P190', {'concept': 'Q56061'}] ['Q956', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . ?l property:P190 ?c . VALUES ( ?l ) { ( resource:Q8686 ) ( resource:Q3718 ) ( resource:Q472 ) } }
Antwerp Maputo Lille Bangkok Colombo Rosario Liverpool Chicago Phnom Penh Tashkent Metro Manila Porto Montreal Okahandja Hamhung London Basel Dunedin Winston-Salem Haifa Port Vila Espoo Dubai Oslo Guayaquil Alexandria Piraeus Rotterdam Nicosia Istanbul Salzburg São Paulo Milan Cork Valparaíso Aden Barcelona City of London Vladivostok San Francisco Marbella Seville Paris Johannesburg Tokyo Douala Amsterdam Moscow Bangkok Cologne Canberra Tokyo Santo Domingo Astana Athens Copenhagen Budapest Mexico City Tel Aviv Jakarta Belgrade Algiers Amman London Cairo Ottawa São Paulo Lima Rio de Janeiro Brussels Johannesburg Milan Madrid Minsk Ankara Berlin Salo New York City Washington, D.C.
Moscow Madrid Milan
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Shanghai', 'sister city', {'concept': 'administrative territorial entity'}] ['Rome', 'sister city', {'concept': 'administrative territorial entity'}] ['Beijing', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . ?l property:sister_city ?c . VALUES ( ?l ) { ( resource:Shanghai ) ( resource:Dakar ) ( resource:Sofia ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q649 Q2807 Q490
P6
Q502895
USER
Which people do those administrative territories serve as the head of government for ?
(Q649,P6,c(Q502895)) (Q2807,P6,c(Q502895)) (Q490,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
['Q649', 'P6', {'concept': 'Q502895'}] ['Q2807', 'P6', {'concept': 'Q502895'}] ['Q490', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . ?y property:P6 ?w . VALUES ( ?y ) { ( resource:Q12892 ) ( resource:Q3889 ) ( resource:Q648 ) } }
Moscow Madrid Milan
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Moscow', 'head of government', {'concept': 'common name'}] ['Madrid', 'head of government', {'concept': 'common name'}] ['Milan', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . ?y property:head_of_government ?w . VALUES ( ?y ) { ( resource:Antwerp ) ( resource:Maputo ) ( resource:Lille ) } }
[]
common name
Q156379 Q697597 Q319497
SYSTEM
Yury Luzhkov, Gabriele Albertini, Sergey Sobyanin
Q156379 Q319497 Q735373 Q467829 Q2748778 Q5992655 Q1344166 Q9025210 Q41266 Q19592761 Q2733245 Q2827364 Q3391346 Q3186388 Q302754 Q2527720 Q697597 Q239024 Q17146774 Q3388096 Q666504 Q3609106 Q3619683 Q3762509 Q3659902 Q2427172 Q2249674
(Q649,P6,c(Q502895)) (Q2807,P6,c(Q502895)) (Q490,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
[ANSWERS]
['Q649', 'P6', {'concept': 'Q502895'}] ['Q2807', 'P6', {'concept': 'Q502895'}] ['Q490', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . ?y property:P6 ?w . VALUES ( ?y ) { ( resource:Q12892 ) ( resource:Q3889 ) ( resource:Q648 ) } }
Yury Luzhkov Sergey Sobyanin Gavriil Kharitonovich Popov Alberto Ruiz-Gallardón José María Álvarez del Manzano Manuel Cobo Enrique Tierno Galván Luis María Huete Ana Botella Manuela Carmena Juan Barranco Gallardo Agustín Rodríguez Sahagún Juan de Arespacochaga José Luis Álvarez Gino Cassinis Virgilio Ferrari Gabriele Albertini Letizia Moratti Giuseppe Sala Pietro Bucalossi Giuliano Pisapia Aldo Aniasi Antonio Greppi Giampiero Borghini Carlo Tognoli Paolo Pillitteri Marco Formentini
Yury Luzhkov Gabriele Albertini Sergey Sobyanin
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Moscow', 'head of government', {'concept': 'common name'}] ['Madrid', 'head of government', {'concept': 'common name'}] ['Milan', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . ?y property:head_of_government ?w . VALUES ( ?y ) { ( resource:Antwerp ) ( resource:Maputo ) ( resource:Lille ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q156379 Q697597 Q319497
P106
Q12737077
USER
What do those people do for a living ?
(Q156379,P106,c(Q12737077)) (Q697597,P106,c(Q12737077)) (Q319497,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
['Q156379', 'P106', {'concept': 'Q12737077'}] ['Q697597', 'P106', {'concept': 'Q12737077'}] ['Q319497', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q12737077 . VALUES ( ?x ) { ( resource:Q156379 ) ( resource:Q319497 ) ( resource:Q735373 ) } . ?x property:P106 ?t }
Yury Luzhkov Gabriele Albertini Sergey Sobyanin
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Yury Luzhkov', 'occupation', {'concept': 'occupation'}] ['Gabriele Albertini', 'occupation', {'concept': 'occupation'}] ['Sergey Sobyanin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:occupation . VALUES ( ?x ) { ( resource:Yury_Luzhkov ) ( resource:Sergey_Sobyanin ) ( resource:Gavriil_Kharitonovich_Popov ) } . ?x property:occupation ?t }
[]
occupation
Q82955 Q901 Q82955
SYSTEM
politician for 1st, 3rd, scientist for 2nd
Q82955 Q901 Q82955 Q131524 Q81096 Q82955
(Q156379,P106,c(Q12737077)) (Q697597,P106,c(Q12737077)) (Q319497,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
[ANSWERS]
['Q156379', 'P106', {'concept': 'Q12737077'}] ['Q697597', 'P106', {'concept': 'Q12737077'}] ['Q319497', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q12737077 . VALUES ( ?x ) { ( resource:Q156379 ) ( resource:Q319497 ) ( resource:Q735373 ) } . ?x property:P106 ?t }
politician scientist politician entrepreneur engineer politician
politician scientist politician
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Yury Luzhkov', 'occupation', {'concept': 'occupation'}] ['Gabriele Albertini', 'occupation', {'concept': 'occupation'}] ['Sergey Sobyanin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:occupation . VALUES ( ?x ) { ( resource:Yury_Luzhkov ) ( resource:Sergey_Sobyanin ) ( resource:Gavriil_Kharitonovich_Popov ) } . ?x property:occupation ?t }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q156379
P140
Q879146
USER
Which Christian denomination is the religion of Yury Luzhkov ?
(Q156379,P140,c(Q879146))
action filter_type
action find
entity Q156379
relation P140
type Q879146
['Q156379', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?n WHERE { resource:Q156379 property:P140 ?n . ?n rdf:type ontology:Q879146 }
Yury Luzhkov
action filter_type
action find
entity Yury Luzhkov
relation religion
type Christian denomination
['Yury Luzhkov', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?n WHERE { resource:Yury_Luzhkov property:religion ?n . ?n rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q60995
SYSTEM
Russian Orthodox Church
Q60995
(Q156379,P140,c(Q879146))
action filter_type
action find
entity Q156379
relation P140
type Q879146
[ANSWER]
['Q156379', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?n WHERE { resource:Q156379 property:P140 ?n . ?n rdf:type ontology:Q879146 }
Russian Orthodox Church
Russian Orthodox Church
action filter_type
action find
entity Yury Luzhkov
relation religion
type Christian denomination
['Yury Luzhkov', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?n WHERE { resource:Yury_Luzhkov property:religion ?n . ?n rdf:type ontology:Christian_denomination }
[]