Simple Question (Direct)
Simple Question
Q8299178
P106
Q12737077
USER
What is the job of Fénelon François Germain Passaga ?
(Q8299178,P106,c(Q12737077))
action filter_type
action find
entity Q8299178
relation P106
type Q12737077
['Q8299178', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . resource:Q8299178 property:P106 ?s }
Fénelon François Germain Passaga
action filter_type
action find
entity Fénelon François Germain Passaga
relation occupation
type occupation
['Fénelon François Germain Passaga', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . resource:Fénelon_François_Germain_Passaga property:occupation ?s }
[]
occupation
Q47064
SYSTEM
military personnel
Q47064
(Q8299178,P106,c(Q12737077))
action filter_type
action find
entity Q8299178
relation P106
type Q12737077
The job of Fénelon François Germain Passaga is of [ANSWER]
['Q8299178', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . resource:Q8299178 property:P106 ?s }
military personnel
The job of Fénelon François Germain Passaga is of military personnel
military personnel
action filter_type
action find
entity Fénelon François Germain Passaga
relation occupation
type occupation
['Fénelon François Germain Passaga', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . resource:Fénelon_François_Germain_Passaga property:occupation ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q47064
P425
Q43229
USER
Who has that one as the associated field of occupation ?
(Q47064,P425,c(Q43229))
action filter_type
action find
entity Q47064
relation P425
type Q43229
['Q47064', 'P425', {'concept': 'Q43229'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q43229 . resource:Q47064 property:P425 ?k }
military personnel
action filter_type
action find
entity military personnel
relation field of this occupation
type organization
['military personnel', 'field of this occupation', {'concept': 'organization'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:organization . resource:military_personnel property:field_of_this_occupation ?k }
[]
organization
Q8473
SYSTEM
military
Q8473
(Q47064,P425,c(Q43229))
action filter_type
action find
entity Q47064
relation P425
type Q43229
[ANSWER] has that one as the associated field of occupation
['Q47064', 'P425', {'concept': 'Q43229'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q43229 . resource:Q47064 property:P425 ?k }
military
Military has that one as the associated field of occupation
military
action filter_type
action find
entity military personnel
relation field of this occupation
type organization
['military personnel', 'field of this occupation', {'concept': 'organization'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:organization . resource:military_personnel property:field_of_this_occupation ?k }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q8473 Q772547
P361
Q43229
USER
Is that one a component of armed forces ?
(Q8473,P361,Q772547)
action is_in
entity Q772547
action find
entity Q8473
relation P361
['Q8473', 'P361', 'Q772547']
ASK WHERE { resource:Q8473 property:P361 resource:Q772547 }
military armed forces
action is_in
entity armed forces
action find
entity military
relation part of
['military', 'part of', 'armed forces']
ASK WHERE { resource:military property:part_of resource:armed_forces }
[]
organization
SYSTEM
YES
(Q8473,P361,Q772547)
action is_in
entity Q772547
action find
entity Q8473
relation P361
[ANSWER]
['Q8473', 'P361', 'Q772547']
ASK WHERE { resource:Q8473 property:P361 resource:Q772547 }
Yes
action is_in
entity armed forces
action find
entity military
relation part of
['military', 'part of', 'armed forces']
ASK WHERE { resource:military property:part_of resource:armed_forces }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8473
P921
Q1002697
USER
Which periodical literature was mainly based on military ?
(c(Q1002697),P921,Q8473)
action filter_type
action find_reverse
entity Q8473
relation P921
type Q1002697
[{'concept': 'Q1002697'}, 'P921', 'Q8473']
SELECT DISTINCT ?i WHERE { ?i property:P921 resource:Q8473 . ?i rdf:type ontology:Q1002697 }
military
action filter_type
action find_reverse
entity military
relation main subject
type periodical literature
[{'concept': 'periodical literature'}, 'main subject', 'military']
SELECT DISTINCT ?i WHERE { ?i property:main_subject resource:military . ?i rdf:type ontology:periodical_literature }
[]
periodical literature
Q18921075
SYSTEM
Reconquista
Q18921075
(c(Q1002697),P921,Q8473)
action filter_type
action find_reverse
entity Q8473
relation P921
type Q1002697
[ANSWER] was mainly based on military
[{'concept': 'Q1002697'}, 'P921', 'Q8473']
SELECT DISTINCT ?i WHERE { ?i property:P921 resource:Q8473 . ?i rdf:type ontology:Q1002697 }
Reconquista
Reconquista was mainly based on military
Reconquista
action filter_type
action find_reverse
entity military
relation main subject
type periodical literature
[{'concept': 'periodical literature'}, 'main subject', 'military']
SELECT DISTINCT ?i WHERE { ?i property:main_subject resource:military . ?i rdf:type ontology:periodical_literature }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8299178
P69
Q1935049
USER
What is the military school where Fénelon François Germain Passaga was educated ?
(Q8299178,P69,c(Q1935049))
action filter_type
action find
entity Q8299178
relation P69
type Q1935049
['Q8299178', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?z WHERE { resource:Q8299178 property:P69 ?z . ?z rdf:type ontology:Q1935049 }
Fénelon François Germain Passaga
action filter_type
action find
entity Fénelon François Germain Passaga
relation educated at
type military school
['Fénelon François Germain Passaga', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?z WHERE { resource:Fénelon_François_Germain_Passaga property:educated_at ?z . ?z rdf:type ontology:military_school }
[]
military school
Q1132066
SYSTEM
Ecole Spéciale Militaire de Saint-Cyr
Q1132066
(Q8299178,P69,c(Q1935049))
action filter_type
action find
entity Q8299178
relation P69
type Q1935049
The military school Fénelon François Germain Passaga was educated is the [ANSWER]
['Q8299178', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?z WHERE { resource:Q8299178 property:P69 ?z . ?z rdf:type ontology:Q1935049 }
Ecole Spéciale Militaire de Saint-Cyr
The military school Fénelon François Germain Passaga was educated is the Ecole Spéciale Militaire de Saint-Cyr
Ecole Spéciale Militaire de Saint-Cyr
action filter_type
action find
entity Fénelon François Germain Passaga
relation educated at
type military school
['Fénelon François Germain Passaga', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?z WHERE { resource:Fénelon_François_Germain_Passaga property:educated_at ?z . ?z rdf:type ontology:military_school }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q3507913 Q8299178
P69
Q1935049
USER
And also Symphorien Boittelle
AND((Q8299178,P69,c(Q1935049)), (Q3507913,P69,c(Q1935049)))
action filter_type
action intersection
action find
entity Q8299178
relation P69
action find
entity Q3507913
relation P69
type Q1935049
{'AND': [['Q8299178', 'P69', {'concept': 'Q1935049'}], ['Q3507913', 'P69', {'concept': 'Q1935049'}]]}
SELECT DISTINCT ?h WHERE { resource:Q8299178 property:P69 ?h . resource:Q3507913 property:P69 ?h . ?h rdf:type ontology:Q1935049 }
Symphorien Boittelle Fénelon François Germain Passaga
action filter_type
action intersection
action find
entity Fénelon François Germain Passaga
relation educated at
action find
entity Symphorien Boittelle
relation educated at
type military school
{'AND': [['Fénelon François Germain Passaga', 'educated at', {'concept': 'military school'}], ['Symphorien Boittelle', 'educated at', {'concept': 'military school'}]]}
SELECT DISTINCT ?h WHERE { resource:Fénelon_François_Germain_Passaga property:educated_at ?h . resource:Symphorien_Boittelle property:educated_at ?h . ?h rdf:type ontology:military_school }
[]
military school
Q1132066
SYSTEM
Ecole Spéciale Militaire de Saint-Cyr
Q1132066
AND((Q8299178,P69,c(Q1935049)), (Q3507913,P69,c(Q1935049)))
action filter_type
action intersection
action find
entity Q8299178
relation P69
action find
entity Q3507913
relation P69
type Q1935049
[ANSWER]
{'AND': [['Q8299178', 'P69', {'concept': 'Q1935049'}], ['Q3507913', 'P69', {'concept': 'Q1935049'}]]}
SELECT DISTINCT ?h WHERE { resource:Q8299178 property:P69 ?h . resource:Q3507913 property:P69 ?h . ?h rdf:type ontology:Q1935049 }
Ecole Spéciale Militaire de Saint-Cyr
Ecole Spéciale Militaire de Saint-Cyr
action filter_type
action intersection
action find
entity Fénelon François Germain Passaga
relation educated at
action find
entity Symphorien Boittelle
relation educated at
type military school
{'AND': [['Fénelon François Germain Passaga', 'educated at', {'concept': 'military school'}], ['Symphorien Boittelle', 'educated at', {'concept': 'military school'}]]}
SELECT DISTINCT ?h WHERE { resource:Fénelon_François_Germain_Passaga property:educated_at ?h . resource:Symphorien_Boittelle property:educated_at ?h . ?h rdf:type ontology:military_school }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1132066
P159
Q20667921
USER
Which french administrative division is the headquarter location of that military school ?
(Q1132066,P159,c(Q20667921))
action filter_type
action find
entity Q1132066
relation P159
type Q20667921
['Q1132066', 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ?n WHERE { resource:Q1132066 property:P159 ?n . ?n rdf:type ontology:Q20667921 }
Ecole Spéciale Militaire de Saint-Cyr
action filter_type
action find
entity Ecole Spéciale Militaire de Saint-Cyr
relation headquarters location
type type of french administrative division
['Ecole Spéciale Militaire de Saint-Cyr', 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?n WHERE { resource:Ecole_Spéciale_Militaire_de_Saint-Cyr property:headquarters_location ?n . ?n rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q69990
SYSTEM
Guer
Q69990
(Q1132066,P159,c(Q20667921))
action filter_type
action find
entity Q1132066
relation P159
type Q20667921
[ANSWER] is the headquarter location of that military school
['Q1132066', 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ?n WHERE { resource:Q1132066 property:P159 ?n . ?n rdf:type ontology:Q20667921 }
Guer
Guer is the headquarter location of that military school
Guer
action filter_type
action find
entity Ecole Spéciale Militaire de Saint-Cyr
relation headquarters location
type type of french administrative division
['Ecole Spéciale Militaire de Saint-Cyr', 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?n WHERE { resource:Ecole_Spéciale_Militaire_de_Saint-Cyr property:headquarters_location ?n . ?n rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q69990 Q11160
P36
Q20667921
USER
How many french administrative divisions contain Guer or Cassel as their capital ?
(c(Q20667921),P36,Q69990) (c(Q20667921),P36,Q11160)
action count
action union
action filter_type
action find_reverse
entity Q69990
relation P36
type Q20667921
action filter_type
action find_reverse
entity Q11160
relation P36
type Q20667921
[{'concept': 'Q20667921'}, 'P36', 'Q69990'] [{'concept': 'Q20667921'}, 'P36', 'Q11160']
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { ?b rdf:type ontology:Q20667921 . ?b property:P36 resource:Q69990 } UNION { ?b rdf:type ontology:Q20667921 . ?b property:P36 resource:Q11160 } }
Guer Cassel
action count
action union
action filter_type
action find_reverse
entity Guer
relation capital
type type of french administrative division
action filter_type
action find_reverse
entity Cassel
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Guer'] [{'concept': 'type of french administrative division'}, 'capital', 'Cassel']
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { ?b rdf:type ontology:type_of_french_administrative_division . ?b property:capital resource:Guer } UNION { ?b rdf:type ontology:type_of_french_administrative_division . ?b property:capital resource:Cassel } }
[]
type of french administrative division
SYSTEM
2
Q13999 Q656180
(c(Q20667921),P36,Q69990) (c(Q20667921),P36,Q11160)
action count
action union
action filter_type
action find_reverse
entity Q69990
relation P36
type Q20667921
action filter_type
action find_reverse
entity Q11160
relation P36
type Q20667921
[ANSWER]
[{'concept': 'Q20667921'}, 'P36', 'Q69990'] [{'concept': 'Q20667921'}, 'P36', 'Q11160']
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { ?b rdf:type ontology:Q20667921 . ?b property:P36 resource:Q69990 } UNION { ?b rdf:type ontology:Q20667921 . ?b property:P36 resource:Q11160 } }
canton of Cassel canton of Guer
2
action count
action union
action filter_type
action find_reverse
entity Guer
relation capital
type type of french administrative division
action filter_type
action find_reverse
entity Cassel
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Guer'] [{'concept': 'type of french administrative division'}, 'capital', 'Cassel']
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { ?b rdf:type ontology:type_of_french_administrative_division . ?b property:capital resource:Guer } UNION { ?b rdf:type ontology:type_of_french_administrative_division . ?b property:capital resource:Cassel } }
[]