Simple Question (Direct)
Simple Question
Q5717801
P241
Q781132
USER
Which military branch is Henry Barnes, 2nd Baron Gorell affiliated to ?
(Q5717801,P241,c(Q781132))
action filter_type
action find
entity Q5717801
relation P241
type Q781132
['Q5717801', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?n WHERE { resource:Q5717801 property:P241 ?n . ?n rdf:type ontology:Q781132 }
Henry Barnes, 2nd Baron Gorell
action filter_type
action find
entity Henry Barnes, 2nd Baron Gorell
relation military branch
type military branch
['Henry Barnes, 2nd Baron Gorell', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?n WHERE { resource:Henry_Barnes,_2nd_Baron_Gorell property:military_branch ?n . ?n rdf:type ontology:military_branch }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
(Q5717801,P241,c(Q781132))
action filter_type
action find
entity Q5717801
relation P241
type Q781132
Henry Barnes , 2nd Baron Gorell is affiliated to the [ANSWER]
['Q5717801', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?n WHERE { resource:Q5717801 property:P241 ?n . ?n rdf:type ontology:Q781132 }
British Army
Henry Barnes , 2nd Baron Gorell is affiliated to the British Army
British Army
action filter_type
action find
entity Henry Barnes, 2nd Baron Gorell
relation military branch
type military branch
['Henry Barnes, 2nd Baron Gorell', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?n WHERE { resource:Henry_Barnes,_2nd_Baron_Gorell property:military_branch ?n . ?n rdf:type ontology:military_branch }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5717801
P607
Q198
USER
What battle was that person a part of ?
(Q222595,P607,c(Q198))
action filter_type
action find
entity Q5717801
relation P607
type Q198
['Q222595', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?v WHERE { resource:Q5717801 property:P607 ?v . ?v rdf:type ontology:Q198 }
Henry Barnes, 2nd Baron Gorell
action filter_type
action find
entity Henry Barnes, 2nd Baron Gorell
relation conflict
type war
['British Army', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?v WHERE { resource:Henry_Barnes,_2nd_Baron_Gorell property:conflict ?v . ?v rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q222595,P607,c(Q198))
action filter_type
action find
entity Q5717801
relation P607
type Q198
What battle was that person a part of
['Q222595', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?v WHERE { resource:Q5717801 property:P607 ?v . ?v rdf:type ontology:Q198 }
World War I
What battle was that person a part of
World War I
action filter_type
action find
entity Henry Barnes, 2nd Baron Gorell
relation conflict
type war
['British Army', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?v WHERE { resource:Henry_Barnes,_2nd_Baron_Gorell property:conflict ?v . ?v rdf:type ontology:war }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7032556 Q5717801
P69
Q1244442
USER
Which school buildings were Henry Barnes, 2nd Baron Gorell or Nigel Morritt Wace educated at ?
OR((Q5717801,P69,c(Q1244442)), (Q7032556,P69,c(Q1244442)))
action filter_type
action union
action find
entity Q5717801
relation P69
action find
entity Q7032556
relation P69
type Q1244442
{'OR': [['Q5717801', 'P69', {'concept': 'Q1244442'}], ['Q7032556', 'P69', {'concept': 'Q1244442'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q7032556 property:P69 ?z } UNION { resource:Q5717801 property:P69 ?z } } . ?z rdf:type ontology:Q1244442 }
Nigel Morritt Wace Henry Barnes, 2nd Baron Gorell
action filter_type
action union
action find
entity Henry Barnes, 2nd Baron Gorell
relation educated at
action find
entity Nigel Morritt Wace
relation educated at
type school building
{'OR': [['Henry Barnes, 2nd Baron Gorell', 'educated at', {'concept': 'school building'}], ['Nigel Morritt Wace', 'educated at', {'concept': 'school building'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Nigel_Morritt_Wace property:educated_at ?z } UNION { resource:Henry_Barnes,_2nd_Baron_Gorell property:educated_at ?z } } . ?z rdf:type ontology:school_building }
[]
school building
Q899030 Q73079
SYSTEM
Brasenose College, Trinity College
Q899030 Q73079
OR((Q5717801,P69,c(Q1244442)), (Q7032556,P69,c(Q1244442)))
action filter_type
action union
action find
entity Q5717801
relation P69
action find
entity Q7032556
relation P69
type Q1244442
The [ANSWERS] were Henry Barnes, 2nd Baron Gorell or Nigel Morritt Wace educated at
{'OR': [['Q5717801', 'P69', {'concept': 'Q1244442'}], ['Q7032556', 'P69', {'concept': 'Q1244442'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q7032556 property:P69 ?z } UNION { resource:Q5717801 property:P69 ?z } } . ?z rdf:type ontology:Q1244442 }
Brasenose College Trinity College
The Brasenose College and Trinity College were Henry Barnes, 2nd Baron Gorell or Nigel Morritt Wace educated at
Brasenose College Trinity College
action filter_type
action union
action find
entity Henry Barnes, 2nd Baron Gorell
relation educated at
action find
entity Nigel Morritt Wace
relation educated at
type school building
{'OR': [['Henry Barnes, 2nd Baron Gorell', 'educated at', {'concept': 'school building'}], ['Nigel Morritt Wace', 'educated at', {'concept': 'school building'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Nigel_Morritt_Wace property:educated_at ?z } UNION { resource:Henry_Barnes,_2nd_Baron_Gorell property:educated_at ?z } } . ?z rdf:type ontology:school_building }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q24944176 Q222595
P138
Q502895
USER
Which people are British Army or calle de Pérez Galdós named after ?
OR((Q222595,P138,c(Q502895)), (Q24944176,P138,c(Q502895)))
action filter_type
action union
action find
entity Q222595
relation P138
action find
entity Q24944176
relation P138
type Q502895
{'OR': [['Q222595', 'P138', {'concept': 'Q502895'}], ['Q24944176', 'P138', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q222595 property:P138 ?r } UNION { resource:Q24944176 property:P138 ?r } } . ?r rdf:type ontology:Q502895 }
calle de Pérez Galdós British Army
action filter_type
action union
action find
entity British Army
relation named after
action find
entity calle de Pérez Galdós
relation named after
type common name
{'OR': [['British Army', 'named after', {'concept': 'common name'}], ['calle de Pérez Galdós', 'named after', {'concept': 'common name'}]]}
SELECT DISTINCT ?r WHERE { { { resource:British_Army property:named_after ?r } UNION { resource:calle_de_Pérez_Galdós property:named_after ?r } } . ?r rdf:type ontology:common_name }
[]
common name
Q189869 Q9682
SYSTEM
Benito Pérez Galdós, Elizabeth II
Q189869 Q9682
OR((Q222595,P138,c(Q502895)), (Q24944176,P138,c(Q502895)))
action filter_type
action union
action find
entity Q222595
relation P138
action find
entity Q24944176
relation P138
type Q502895
British Army or calle de Pérez Galdós are named for [ANSWERS]
{'OR': [['Q222595', 'P138', {'concept': 'Q502895'}], ['Q24944176', 'P138', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q222595 property:P138 ?r } UNION { resource:Q24944176 property:P138 ?r } } . ?r rdf:type ontology:Q502895 }
Benito Pérez Galdós Elizabeth II
British Army or calle de Pérez Galdós are named for Benito Pérez Galdós and Elizabeth II
Benito Pérez Galdós Elizabeth II
action filter_type
action union
action find
entity British Army
relation named after
action find
entity calle de Pérez Galdós
relation named after
type common name
{'OR': [['British Army', 'named after', {'concept': 'common name'}], ['calle de Pérez Galdós', 'named after', {'concept': 'common name'}]]}
SELECT DISTINCT ?r WHERE { { { resource:British_Army property:named_after ?r } UNION { resource:calle_de_Pérez_Galdós property:named_after ?r } } . ?r rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q11218
P121
Q1875621 Q11436 Q781132
USER
How many military branches operate approximately the same number of aircraft classes or aircrafts as United States Marine Corps ?
(c(Q781132),P121,c(Q1875621)|c(Q11436))
action count
action approx
action union
action find_tuple_counts
relation P121
type Q781132
type Q1875621
action find_tuple_counts
relation P121
type Q781132
type Q11436
action count
action filter_multi_types
action find
entity Q11218
relation P121
type Q1875621
type Q11436
[{'concept': 'Q781132'}, 'P121', [{'concept': 'Q1875621'}, {'concept': 'Q11436'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?v WHERE { VALUES ( ?t ) { ( ontology:Q11436 ) ( ontology:Q1875621 ) } . ?l rdf:type ?t } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { resource:Q11218 property:P121 ?b . { { ?b rdf:type ontology:Q1875621 } UNION { ?b rdf:type ontology:Q11436 } } } } . FILTER ( ?o = ?a ) }
United States Marine Corps
action count
action approx
action union
action find_tuple_counts
relation item operated
type military branch
type aircraft class
action find_tuple_counts
relation item operated
type military branch
type aircraft
action count
action filter_multi_types
action find
entity United States Marine Corps
relation item operated
type aircraft class
type aircraft
[{'concept': 'military branch'}, 'item operated', [{'concept': 'aircraft class'}, {'concept': 'aircraft'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?v WHERE { VALUES ( ?t ) { ( ontology:aircraft ) ( ontology:aircraft_class ) } . ?l rdf:type ?t } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { resource:United_States_Marine_Corps property:item_operated ?b . { { ?b rdf:type ontology:aircraft_class } UNION { ?b rdf:type ontology:aircraft } } } } . FILTER ( ?o = ?a ) }
[]
aircraft class aircraft military branch
SYSTEM
12
Q11220 Q1129369 Q3958034 Q1546449 Q2704661 Q356359 Q2862927 Q1777326 Q2665572 Q4855270 Q11218 Q2301347
(c(Q781132),P121,c(Q1875621)|c(Q11436))
action count
action approx
action union
action find_tuple_counts
relation P121
type Q781132
type Q1875621
action find_tuple_counts
relation P121
type Q781132
type Q11436
action count
action filter_multi_types
action find
entity Q11218
relation P121
type Q1875621
type Q11436
[ANSWER]
[{'concept': 'Q781132'}, 'P121', [{'concept': 'Q1875621'}, {'concept': 'Q11436'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?v WHERE { VALUES ( ?t ) { ( ontology:Q11436 ) ( ontology:Q1875621 ) } . ?l rdf:type ?t } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { resource:Q11218 property:P121 ?b . { { ?b rdf:type ontology:Q1875621 } UNION { ?b rdf:type ontology:Q11436 } } } } . FILTER ( ?o = ?a ) }
United States Navy Hellenic Navy Argentine Army Aviation Hellenic Army Indonesian Navy Indian Navy Indonesian Army Argentine Navy Algerian National Navy Bangladesh Army United States Marine Corps Argentine Army
12
action count
action approx
action union
action find_tuple_counts
relation item operated
type military branch
type aircraft class
action find_tuple_counts
relation item operated
type military branch
type aircraft
action count
action filter_multi_types
action find
entity United States Marine Corps
relation item operated
type aircraft class
type aircraft
[{'concept': 'military branch'}, 'item operated', [{'concept': 'aircraft class'}, {'concept': 'aircraft'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?v WHERE { VALUES ( ?t ) { ( ontology:aircraft ) ( ontology:aircraft_class ) } . ?l rdf:type ?t } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { resource:United_States_Marine_Corps property:item_operated ?b . { { ?b rdf:type ontology:aircraft_class } UNION { ?b rdf:type ontology:aircraft } } } } . FILTER ( ?o = ?a ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q2408298
P121
Q1875621 Q11436 Q781132
USER
And also tell me about Islamic Republic of Iran Navy?
(c(Q781132),P121,c(Q1875621)|c(Q11436))
action count
action approx
action union
action find_tuple_counts
relation P121
type Q781132
type Q1875621
action find_tuple_counts
relation P121
type Q781132
type Q11436
action count
action filter_multi_types
action find
entity Q2408298
relation P121
type Q1875621
type Q11436
[{'concept': 'Q781132'}, 'P121', [{'concept': 'Q1875621'}, {'concept': 'Q11436'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?j ) WHERE { ?m rdf:type ?w . VALUES ( ?w ) { ( ontology:Q1875621 ) ( ontology:Q11436 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { { ?n rdf:type ontology:Q1875621 } UNION { ?n rdf:type ontology:Q11436 } } . resource:Q2408298 property:P121 ?n } } . FILTER ( ?j = ?z ) }
Islamic Republic of Iran Navy
action count
action approx
action union
action find_tuple_counts
relation item operated
type military branch
type aircraft class
action find_tuple_counts
relation item operated
type military branch
type aircraft
action count
action filter_multi_types
action find
entity Islamic Republic of Iran Navy
relation item operated
type aircraft class
type aircraft
[{'concept': 'military branch'}, 'item operated', [{'concept': 'aircraft class'}, {'concept': 'aircraft'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?j ) WHERE { ?m rdf:type ?w . VALUES ( ?w ) { ( ontology:aircraft_class ) ( ontology:aircraft ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { { ?n rdf:type ontology:aircraft_class } UNION { ?n rdf:type ontology:aircraft } } . resource:Islamic_Republic_of_Iran_Navy property:item_operated ?n } } . FILTER ( ?j = ?z ) }
[]
aircraft class aircraft military branch
SYSTEM
38
Q6082582 Q897614 Q17404781 Q18696932 Q4419309 Q1324290 Q18640177 Q2408298 Q18615980 Q172771 Q18640276 Q4709164 Q2055634 Q833040 Q2905423 Q4939559 Q3293231 Q376676 Q2862841 Q731647 Q3277832 Q1491482 Q1322103 Q4114459 Q2711719 Q2370391 Q4709134 Q2349884 Q17597972 Q5985661 Q355771 Q2071948 Q192366 Q2074039 Q17049310 Q18707175 Q3293247 Q569328
(c(Q781132),P121,c(Q1875621)|c(Q11436))
action count
action approx
action union
action find_tuple_counts
relation P121
type Q781132
type Q1875621
action find_tuple_counts
relation P121
type Q781132
type Q11436
action count
action filter_multi_types
action find
entity Q2408298
relation P121
type Q1875621
type Q11436
[ANSWER]
[{'concept': 'Q781132'}, 'P121', [{'concept': 'Q1875621'}, {'concept': 'Q11436'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?j ) WHERE { ?m rdf:type ?w . VALUES ( ?w ) { ( ontology:Q1875621 ) ( ontology:Q11436 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { { ?n rdf:type ontology:Q1875621 } UNION { ?n rdf:type ontology:Q11436 } } . resource:Q2408298 property:P121 ?n } } . FILTER ( ?j = ?z ) }
Islamic Republic of Iran Air Defense Force Iraqi Army Afghan Special Mission Wing Lao People's Army Kazakh Air and Air Defence Forces Vietnam People's Navy Guinean Navy Islamic Republic of Iran Navy Gambian Navy Royal Navy Bissau-Guinean Army Albanian Royal Army Royal Bahrain Naval Force Italian Navy Lebanese Navy Bolivian Army Bangladesh Navy Albanian Naval Force Congolese Army Japan Maritime Self-Defense Force Hungarian Ground Forces Lao People's Navy Spanish Army Eritrean Navy Lithuanian Naval Force Royal Bhutan Army Albanian Land Force Croatian Navy Angolan Army Iceland Air Defence System Indian Army Finnish Navy Royal Bahraini Army Latvian Land Forces Angolan Navy Malawi Army Naval Detachment Benin Naval Forces Air Force and Anti-Air Defence Brigade
38
action count
action approx
action union
action find_tuple_counts
relation item operated
type military branch
type aircraft class
action find_tuple_counts
relation item operated
type military branch
type aircraft
action count
action filter_multi_types
action find
entity Islamic Republic of Iran Navy
relation item operated
type aircraft class
type aircraft
[{'concept': 'military branch'}, 'item operated', [{'concept': 'aircraft class'}, {'concept': 'aircraft'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?j ) WHERE { ?m rdf:type ?w . VALUES ( ?w ) { ( ontology:aircraft_class ) ( ontology:aircraft ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { { ?n rdf:type ontology:aircraft_class } UNION { ?n rdf:type ontology:aircraft } } . resource:Islamic_Republic_of_Iran_Navy property:item_operated ?n } } . FILTER ( ?j = ?z ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2408298
P17
Q15617994
USER
Which administrative territory does that military branch belong to ?
action filter_type
action find
entity Q2408298
relation P17
type Q15617994
SELECT DISTINCT ?m WHERE { resource:Q2408298 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
Islamic Republic of Iran Navy
action filter_type
action find
entity Islamic Republic of Iran Navy
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?m WHERE { resource:Islamic_Republic_of_Iran_Navy property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q794
SYSTEM
Iran
Q794
action filter_type
action find
entity Q2408298
relation P17
type Q15617994
That military branch belongs to Army [ANSWER]
SELECT DISTINCT ?m WHERE { resource:Q2408298 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
Iran
That military branch belongs to Army Iran
Iran
action filter_type
action find
entity Islamic Republic of Iran Navy
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?m WHERE { resource:Islamic_Republic_of_Iran_Navy property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P366
Q350604 Q180684 Q781132
USER
How many military branches have their main functionality as approximately 2 armed conflicts or conflicts ?
(c(Q781132),P366,c(Q350604)|c(Q180684))
action count
action approx
action union
action find_tuple_counts
relation P366
type Q781132
type Q350604
action find_tuple_counts
relation P366
type Q781132
type Q180684
value 2
[{'concept': 'Q781132'}, 'P366', [{'concept': 'Q350604'}, {'concept': 'Q180684'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?e ) WHERE { { ?y property:P366 ?b . ?y rdf:type ontology:Q781132 . ?b rdf:type ontology:Q350604 } UNION { ?y property:P366 ?b . ?y rdf:type ontology:Q781132 . ?b rdf:type ontology:Q180684 } } GROUP BY ?y } . FILTER ( ?e = 2 ) }
action count
action approx
action union
action find_tuple_counts
relation use
type military branch
type armed conflict
action find_tuple_counts
relation use
type military branch
type conflict
value 2
[{'concept': 'military branch'}, 'use', [{'concept': 'armed conflict'}, {'concept': 'conflict'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?e ) WHERE { { ?y property:use ?b . ?y rdf:type ontology:military_branch . ?b rdf:type ontology:armed_conflict } UNION { ?y property:use ?b . ?y rdf:type ontology:military_branch . ?b rdf:type ontology:conflict } } GROUP BY ?y } . FILTER ( ?e = 2 ) }
[]
armed conflict conflict military branch
SYSTEM
1
Q222883
(c(Q781132),P366,c(Q350604)|c(Q180684))
action count
action approx
action union
action find_tuple_counts
relation P366
type Q781132
type Q350604
action find_tuple_counts
relation P366
type Q781132
type Q180684
value 2
[ANSWER]
[{'concept': 'Q781132'}, 'P366', [{'concept': 'Q350604'}, {'concept': 'Q180684'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?e ) WHERE { { ?y property:P366 ?b . ?y rdf:type ontology:Q781132 . ?b rdf:type ontology:Q350604 } UNION { ?y property:P366 ?b . ?y rdf:type ontology:Q781132 . ?b rdf:type ontology:Q180684 } } GROUP BY ?y } . FILTER ( ?e = 2 ) }
Special Air Service
1
action count
action approx
action union
action find_tuple_counts
relation use
type military branch
type armed conflict
action find_tuple_counts
relation use
type military branch
type conflict
value 2
[{'concept': 'military branch'}, 'use', [{'concept': 'armed conflict'}, {'concept': 'conflict'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?e ) WHERE { { ?y property:use ?b . ?y rdf:type ontology:military_branch . ?b rdf:type ontology:armed_conflict } UNION { ?y property:use ?b . ?y rdf:type ontology:military_branch . ?b rdf:type ontology:conflict } } GROUP BY ?y } . FILTER ( ?e = 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q157781
P26
Q502895
USER
Who are married to Christian VIII of Denmark ?
(c(Q502895),P26,Q157781)
action filter_type
action find
entity Q157781
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q157781']
SELECT DISTINCT ?m WHERE { resource:Q157781 property:P26 ?m . ?m rdf:type ontology:Q502895 }
Christian VIII of Denmark
action filter_type
action find
entity Christian VIII of Denmark
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Christian VIII of Denmark']
SELECT DISTINCT ?m WHERE { resource:Christian_VIII_of_Denmark property:spouse ?m . ?m rdf:type ontology:common_name }
[]
common name
Q57845 Q254563
SYSTEM
Caroline Amalie of Schleswig-Holstein-Sonderburg-Augustenburg, Duchess Charlotte Frederica of Mecklenburg-Schwerin
Q57845 Q254563
(c(Q502895),P26,Q157781)
action filter_type
action find
entity Q157781
relation P26
type Q502895
Duke [ANSWERS] are married to Christian VIII of Denmark
[{'concept': 'Q502895'}, 'P26', 'Q157781']
SELECT DISTINCT ?m WHERE { resource:Q157781 property:P26 ?m . ?m rdf:type ontology:Q502895 }
Caroline Amalie of Schleswig-Holstein-Sonderburg-Augustenburg Duchess Charlotte Frederica of Mecklenburg-Schwerin
Duke Caroline Amalie of Schleswig-Holstein-Sonderburg-Augustenburg and Duchess Charlotte Frederica of Mecklenburg-Schwerin are married to Christian VIII of Denmark
Caroline Amalie of Schleswig-Holstein-Sonderburg-Augustenburg Duchess Charlotte Frederica of Mecklenburg-Schwerin
action filter_type
action find
entity Christian VIII of Denmark
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Christian VIII of Denmark']
SELECT DISTINCT ?m WHERE { resource:Christian_VIII_of_Denmark property:spouse ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q57845 Q254563
P9
Q502895
USER
Which people had Caroline Amalie of Schleswig-Holstein-Sonderburg-Augustenburg and Duchess Charlotte Frederica of Mecklenburg-Schwerin as sister ?
(c(Q502895),P9,Q57845) (c(Q502895),P9,Q254563)
action union
action filter_type
action find_reverse
entity Q254563
relation P9
type Q502895
action filter_type
action find_reverse
entity Q57845
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q57845'] [{'concept': 'Q502895'}, 'P9', 'Q254563']
SELECT DISTINCT ?p WHERE { { ?p property:P9 resource:Q254563 . ?p rdf:type ontology:Q502895 } UNION { ?p property:P9 resource:Q57845 . ?p rdf:type ontology:Q502895 } }
Caroline Amalie of Schleswig-Holstein-Sonderburg-Augustenburg Duchess Charlotte Frederica of Mecklenburg-Schwerin
action union
action filter_type
action find_reverse
entity Duchess Charlotte Frederica of Mecklenburg-Schwerin
relation sister
type common name
action filter_type
action find_reverse
entity Caroline Amalie of Schleswig-Holstein-Sonderburg-Augustenburg
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Caroline Amalie of Schleswig-Holstein-Sonderburg-Augustenburg'] [{'concept': 'common name'}, 'sister', 'Duchess Charlotte Frederica of Mecklenburg-Schwerin']
SELECT DISTINCT ?p WHERE { { ?p property:sister resource:Duchess_Charlotte_Frederica_of_Mecklenburg-Schwerin . ?p rdf:type ontology:common_name } UNION { ?p property:sister resource:Caroline_Amalie_of_Schleswig-Holstein-Sonderburg-Augustenburg . ?p rdf:type ontology:common_name } }
[]
common name
Q61451 Q61097 Q61781
SYSTEM
Frederick Louis, Hereditary Grand Duke of Mecklenburg-Schwerin, Christian August II, Duke of Schleswig-Holstein-Sonderburg-Augustenburg, Duchess Louise Charlotte of Mecklenburg-Schwerin
Q551153 Q61097 Q61781 Q61451 Q16641026
(c(Q502895),P9,Q57845) (c(Q502895),P9,Q254563)
action union
action filter_type
action find_reverse
entity Q254563
relation P9
type Q502895
action filter_type
action find_reverse
entity Q57845
relation P9
type Q502895
Duke [ANSWERS] had Caroline Amalie of Schleswig-Holstein-Sonderburg-Augustenburg and Duchess Charlotte Frederica of Mecklenburg-Schwerin as sister
[{'concept': 'Q502895'}, 'P9', 'Q57845'] [{'concept': 'Q502895'}, 'P9', 'Q254563']
SELECT DISTINCT ?p WHERE { { ?p property:P9 resource:Q254563 . ?p rdf:type ontology:Q502895 } UNION { ?p property:P9 resource:Q57845 . ?p rdf:type ontology:Q502895 } }
Prince Frederick of Schleswig-Holstein-Sonderburg-Augustenburg Christian August II, Duke of Schleswig-Holstein-Sonderburg-Augustenburg Duchess Louise Charlotte of Mecklenburg-Schwerin Frederick Louis, Hereditary Grand Duke of Mecklenburg-Schwerin Gustav Wilhelm von Mecklemburg-Schwerin
Duke Frederick Louis, Hereditary Grand Duke of Mecklenburg-Schwerin, Christian August II, Duke of Schleswig-Holstein-Sonderburg-Augustenburg and Duchess Louise Charlotte of Mecklenburg-Schwerin had Caroline Amalie of Schleswig-Holstein-Sonderburg-Augustenburg and Duchess Charlotte Frederica of Mecklenburg-Schwerin as sister
Frederick Louis, Hereditary Grand Duke of Mecklenburg-Schwerin Christian August II, Duke of Schleswig-Holstein-Sonderburg-Augustenburg Duchess Louise Charlotte of Mecklenburg-Schwerin
action union
action filter_type
action find_reverse
entity Duchess Charlotte Frederica of Mecklenburg-Schwerin
relation sister
type common name
action filter_type
action find_reverse
entity Caroline Amalie of Schleswig-Holstein-Sonderburg-Augustenburg
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Caroline Amalie of Schleswig-Holstein-Sonderburg-Augustenburg'] [{'concept': 'common name'}, 'sister', 'Duchess Charlotte Frederica of Mecklenburg-Schwerin']
SELECT DISTINCT ?p WHERE { { ?p property:sister resource:Duchess_Charlotte_Frederica_of_Mecklenburg-Schwerin . ?p rdf:type ontology:common_name } UNION { ?p property:sister resource:Caroline_Amalie_of_Schleswig-Holstein-Sonderburg-Augustenburg . ?p rdf:type ontology:common_name } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q61451 Q61097 Q61781
P26
Q502895
USER
Which people are the life partner of those ones ?
(c(Q502895),P26,Q61451) (c(Q502895),P26,Q61097) (c(Q502895),P26,Q61781)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q61451'] [{'concept': 'Q502895'}, 'P26', 'Q61097'] [{'concept': 'Q502895'}, 'P26', 'Q61781']
SELECT DISTINCT ?q WHERE { ?c property:P26 ?q . VALUES ( ?c ) { ( resource:Q551153 ) ( resource:Q61097 ) ( resource:Q61781 ) } . ?q rdf:type ontology:Q502895 }
Frederick Louis, Hereditary Grand Duke of Mecklenburg-Schwerin Christian August II, Duke of Schleswig-Holstein-Sonderburg-Augustenburg Duchess Louise Charlotte of Mecklenburg-Schwerin
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Frederick Louis, Hereditary Grand Duke of Mecklenburg-Schwerin'] [{'concept': 'common name'}, 'spouse', 'Christian August II, Duke of Schleswig-Holstein-Sonderburg-Augustenburg'] [{'concept': 'common name'}, 'spouse', 'Duchess Louise Charlotte of Mecklenburg-Schwerin']
SELECT DISTINCT ?q WHERE { ?c property:spouse ?q . VALUES ( ?c ) { ( resource:Prince_Frederick_of_Schleswig-Holstein-Sonderburg-Augustenburg ) ( resource:Christian_August_II,_Duke_of_Schleswig-Holstein-Sonderburg-Augustenburg ) ( resource:Duchess_Louise_Charlotte_of_Mecklenburg-Schwerin ) } . ?q rdf:type ontology:common_name }
[]
common name
Q234442 Q299900 Q442227
SYSTEM
Grand Duchess Elena Pavlovna of Russia, Landgravine Auguste of Hesse-Homburg, Princess Caroline Louise of Saxe-Weimar-Eisenach
Q234442 Q442227 Q299900 Q19974199 Q62262
(c(Q502895),P26,Q61451) (c(Q502895),P26,Q61097) (c(Q502895),P26,Q61781)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[ANSWERS] are the life partner of those ones
[{'concept': 'Q502895'}, 'P26', 'Q61451'] [{'concept': 'Q502895'}, 'P26', 'Q61097'] [{'concept': 'Q502895'}, 'P26', 'Q61781']
SELECT DISTINCT ?q WHERE { ?c property:P26 ?q . VALUES ( ?c ) { ( resource:Q551153 ) ( resource:Q61097 ) ( resource:Q61781 ) } . ?q rdf:type ontology:Q502895 }
Grand Duchess Elena Pavlovna of Russia Princess Caroline Louise of Saxe-Weimar-Eisenach Landgravine Auguste of Hesse-Homburg Countess Louise Sophie of Danneskiold-Samsøe Augustus, Duke of Saxe-Gotha-Altenburg
Grand Duchess Elena Pavlovna of Russia, Landgravine Auguste of Hesse-Homburg and Princess Caroline Louise of Saxe-Weimar-Eisenach are the life partner of those ones
Grand Duchess Elena Pavlovna of Russia Landgravine Auguste of Hesse-Homburg Princess Caroline Louise of Saxe-Weimar-Eisenach
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Frederick Louis, Hereditary Grand Duke of Mecklenburg-Schwerin'] [{'concept': 'common name'}, 'spouse', 'Christian August II, Duke of Schleswig-Holstein-Sonderburg-Augustenburg'] [{'concept': 'common name'}, 'spouse', 'Duchess Louise Charlotte of Mecklenburg-Schwerin']
SELECT DISTINCT ?q WHERE { ?c property:spouse ?q . VALUES ( ?c ) { ( resource:Prince_Frederick_of_Schleswig-Holstein-Sonderburg-Augustenburg ) ( resource:Christian_August_II,_Duke_of_Schleswig-Holstein-Sonderburg-Augustenburg ) ( resource:Duchess_Louise_Charlotte_of_Mecklenburg-Schwerin ) } . ?q rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q234442
P40
Q502895
USER
Which people have that one as an offspring ?
(c(Q502895),P40,Q234442)
action filter_type
action find_reverse
entity Q234442
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q234442']
SELECT DISTINCT ?w WHERE { ?w property:P40 resource:Q234442 . ?w rdf:type ontology:Q502895 }
Grand Duchess Elena Pavlovna of Russia
action filter_type
action find_reverse
entity Grand Duchess Elena Pavlovna of Russia
relation child
type common name
[{'concept': 'common name'}, 'child', 'Grand Duchess Elena Pavlovna of Russia']
SELECT DISTINCT ?w WHERE { ?w property:child resource:Grand_Duchess_Elena_Pavlovna_of_Russia . ?w rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q234442
SYSTEM
Did you mean Grand Duchess Elena Pavlovna of Russia ?
Q234442 Q299900 Q442227
(c(Q502895),P40,Q234442) (c(Q502895),P40,Q299900) (c(Q502895),P40,Q442227)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q234442'] [{'concept': 'Q502895'}, 'P40', 'Q299900'] [{'concept': 'Q502895'}, 'P40', 'Q442227']
SELECT DISTINCT ?w WHERE { ?w property:P40 resource:Q234442 . ?w rdf:type ontology:Q502895 }
Grand Duchess Elena Pavlovna of Russia Landgravine Auguste of Hesse-Homburg Princess Caroline Louise of Saxe-Weimar-Eisenach
Did you mean Grand Duchess Elena Pavlovna of Russia ?
Grand Duchess Elena Pavlovna of Russia
[{'concept': 'common name'}, 'child', 'Grand Duchess Elena Pavlovna of Russia'] [{'concept': 'common name'}, 'child', 'Landgravine Auguste of Hesse-Homburg'] [{'concept': 'common name'}, 'child', 'Princess Caroline Louise of Saxe-Weimar-Eisenach']
SELECT DISTINCT ?w WHERE { ?w property:child resource:Grand_Duchess_Elena_Pavlovna_of_Russia . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P40,Q234442)
[{'concept': 'Q502895'}, 'P40', 'Q234442']
[{'concept': 'common name'}, 'child', 'Grand Duchess Elena Pavlovna of Russia']
[]
Q57632 Q15189
SYSTEM
Maria Feodorovna, Paul I of Russia
Q57632 Q15189
(c(Q502895),P40,Q234442)
action filter_type
action find_reverse
entity Q234442
relation P40
type Q502895
[ANSWERS] have that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q234442']
SELECT DISTINCT ?w WHERE { ?w property:P40 resource:Q234442 . ?w rdf:type ontology:Q502895 }
Maria Feodorovna Paul I of Russia
Maria Feodorovna and Paul I of Russia have that one as an offspring
Maria Feodorovna Paul I of Russia
action filter_type
action find_reverse
entity Grand Duchess Elena Pavlovna of Russia
relation child
type common name
[{'concept': 'common name'}, 'child', 'Grand Duchess Elena Pavlovna of Russia']
SELECT DISTINCT ?w WHERE { ?w property:child resource:Grand_Duchess_Elena_Pavlovna_of_Russia . ?w rdf:type ontology:common_name }
[]