Simple Question (Direct)
Simple Question
Q3567317
P607
Q198
USER
What was the war that Werner Goeritz took part in
(Q3567317,P607,c(Q198))
action filter_type
action find
entity Q3567317
relation P607
type Q198
['Q3567317', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?z WHERE { resource:Q3567317 property:P607 ?z . ?z rdf:type ontology:Q198 }
Werner Goeritz
action filter_type
action find
entity Werner Goeritz
relation conflict
type war
['Werner Goeritz', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?z WHERE { resource:Werner_Goeritz property:conflict ?z . ?z rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q3567317,P607,c(Q198))
action filter_type
action find
entity Q3567317
relation P607
type Q198
The war that Werner Goeritz took part in was in [ANSWER]
['Q3567317', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?z WHERE { resource:Q3567317 property:P607 ?z . ?z rdf:type ontology:Q198 }
World War I
The war that Werner Goeritz took part in was in World War I
World War I
action filter_type
action find
entity Werner Goeritz
relation conflict
type war
['Werner Goeritz', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?z WHERE { resource:Werner_Goeritz property:conflict ?z . ?z rdf:type ontology:war }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3567317
P410
Q4189293
USER
Which title was the military rank held by that person ?
(Q361,P410,c(Q4189293))
action filter_type
action find
entity Q3567317
relation P410
type Q4189293
['Q361', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?g WHERE { resource:Q3567317 property:P410 ?g . ?g rdf:type ontology:Q4189293 }
Werner Goeritz
action filter_type
action find
entity Werner Goeritz
relation military rank
type title
['World War I', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?g WHERE { resource:Werner_Goeritz property:military_rank ?g . ?g rdf:type ontology:title }
[]
title
Q3100519
SYSTEM
Generalleutnant
Q3100519
(Q361,P410,c(Q4189293))
action filter_type
action find
entity Q3567317
relation P410
type Q4189293
Rank [ANSWER] was the military rank held by that person
['Q361', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?g WHERE { resource:Q3567317 property:P410 ?g . ?g rdf:type ontology:Q4189293 }
Generalleutnant
Rank Generalleutnant was the military rank held by that person
Generalleutnant
action filter_type
action find
entity Werner Goeritz
relation military rank
type title
['World War I', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?g WHERE { resource:Werner_Goeritz property:military_rank ?g . ?g rdf:type ontology:title }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3567317
P106
Q12737077
USER
What is the job of that person ?
(Q3100519,P106,c(Q12737077))
action filter_type
action find
entity Q3567317
relation P106
type Q12737077
['Q3100519', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q3567317 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Werner Goeritz
action filter_type
action find
entity Werner Goeritz
relation occupation
type occupation
['Generalleutnant', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Werner_Goeritz property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q47064
SYSTEM
military personnel
Q47064
(Q3100519,P106,c(Q12737077))
action filter_type
action find
entity Q3567317
relation P106
type Q12737077
The job of that person is of [ANSWER]
['Q3100519', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q3567317 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
military personnel
The job of that person is of military personnel
military personnel
action filter_type
action find
entity Werner Goeritz
relation occupation
type occupation
['Generalleutnant', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Werner_Goeritz property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1220633 Q3567317
P106
Q12737077
USER
Or Andor Németh?
OR((Q3567317,P106,c(Q12737077)), (Q1220633,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q3567317
relation P106
action find
entity Q1220633
relation P106
type Q12737077
{'OR': [['Q3567317', 'P106', {'concept': 'Q12737077'}], ['Q1220633', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . { { resource:Q3567317 property:P106 ?v } UNION { resource:Q1220633 property:P106 ?v } } }
Andor Németh Werner Goeritz
action filter_type
action union
action find
entity Werner Goeritz
relation occupation
action find
entity Andor Németh
relation occupation
type occupation
{'OR': [['Werner Goeritz', 'occupation', {'concept': 'occupation'}], ['Andor Németh', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . { { resource:Werner_Goeritz property:occupation ?v } UNION { resource:Andor_Németh property:occupation ?v } } }
[]
occupation
Q4263842 Q36180 Q47064 Q49757
SYSTEM
literary critic, writer, military personnel, poet
Q4263842 Q36180 Q47064 Q49757
OR((Q3567317,P106,c(Q12737077)), (Q1220633,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q3567317
relation P106
action find
entity Q1220633
relation P106
type Q12737077
[ANSWERS]
{'OR': [['Q3567317', 'P106', {'concept': 'Q12737077'}], ['Q1220633', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . { { resource:Q3567317 property:P106 ?v } UNION { resource:Q1220633 property:P106 ?v } } }
literary critic writer military personnel poet
literary critic writer military personnel poet
action filter_type
action union
action find
entity Werner Goeritz
relation occupation
action find
entity Andor Németh
relation occupation
type occupation
{'OR': [['Werner Goeritz', 'occupation', {'concept': 'occupation'}], ['Andor Németh', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . { { resource:Werner_Goeritz property:occupation ?v } UNION { resource:Andor_Németh property:occupation ?v } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q201732
P106
Q502895
USER
Do Robert Graves have the profession as those occupations ?
(Q201732,P106,Q4263842) (Q201732,P106,Q36180) (Q201732,P106,Q47064) (Q201732,P106,Q49757)
action is_in
entity prev_answer
action find
entity Q201732
relation P106
['Q201732', 'P106', 'Q4263842'] ['Q201732', 'P106', 'Q36180'] ['Q201732', 'P106', 'Q47064'] ['Q201732', 'P106', 'Q49757']
ASK WHERE { VALUES ( ?c ) { ( resource:Q4263842 ) ( resource:Q36180 ) ( resource:Q47064 ) } . resource:Q201732 property:P106 ?c }
Robert Graves
action is_in
entity prev_answer
action find
entity Robert Graves
relation occupation
['Robert Graves', 'occupation', 'literary critic'] ['Robert Graves', 'occupation', 'writer'] ['Robert Graves', 'occupation', 'military personnel'] ['Robert Graves', 'occupation', 'poet']
ASK WHERE { VALUES ( ?c ) { ( resource:literary_critic ) ( resource:writer ) ( resource:military_personnel ) } . resource:Robert_Graves property:occupation ?c }
[]
common name
SYSTEM
YES
(Q201732,P106,Q4263842) (Q201732,P106,Q36180) (Q201732,P106,Q47064) (Q201732,P106,Q49757)
action is_in
entity prev_answer
action find
entity Q201732
relation P106
[ANSWER]
['Q201732', 'P106', 'Q4263842'] ['Q201732', 'P106', 'Q36180'] ['Q201732', 'P106', 'Q47064'] ['Q201732', 'P106', 'Q49757']
ASK WHERE { VALUES ( ?c ) { ( resource:Q4263842 ) ( resource:Q36180 ) ( resource:Q47064 ) } . resource:Q201732 property:P106 ?c }
Yes
action is_in
entity prev_answer
action find
entity Robert Graves
relation occupation
['Robert Graves', 'occupation', 'literary critic'] ['Robert Graves', 'occupation', 'writer'] ['Robert Graves', 'occupation', 'military personnel'] ['Robert Graves', 'occupation', 'poet']
ASK WHERE { VALUES ( ?c ) { ( resource:literary_critic ) ( resource:writer ) ( resource:military_personnel ) } . resource:Robert_Graves property:occupation ?c }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7970205 Q3567317
P27
Q1048835
USER
Which political territories are Werner Goeritz or Warren Freer a civilian of ?
OR((Q3567317,P27,c(Q1048835)), (Q7970205,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q3567317
relation P27
action find
entity Q7970205
relation P27
type Q1048835
{'OR': [['Q3567317', 'P27', {'concept': 'Q1048835'}], ['Q7970205', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q1048835 . { VALUES ( ?i ) { ( resource:Q3567317 ) ( resource:Q7970205 ) } . ?i property:P27 ?y } }
Warren Freer Werner Goeritz
action filter_type
action union
action find
entity Werner Goeritz
relation country of citizenship
action find
entity Warren Freer
relation country of citizenship
type political territorial entity
{'OR': [['Werner Goeritz', 'country of citizenship', {'concept': 'political territorial entity'}], ['Warren Freer', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:political_territorial_entity . { VALUES ( ?i ) { ( resource:Werner_Goeritz ) ( resource:Warren_Freer ) } . ?i property:country_of_citizenship ?y } }
[]
political territorial entity
Q664 Q183
SYSTEM
New Zealand, Germany
Q664 Q183
OR((Q3567317,P27,c(Q1048835)), (Q7970205,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q3567317
relation P27
action find
entity Q7970205
relation P27
type Q1048835
[ANSWERS] are Werner Goeritz or Warren Freer a civilian of
{'OR': [['Q3567317', 'P27', {'concept': 'Q1048835'}], ['Q7970205', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q1048835 . { VALUES ( ?i ) { ( resource:Q3567317 ) ( resource:Q7970205 ) } . ?i property:P27 ?y } }
New Zealand Germany
New Zealand and Germany are Werner Goeritz or Warren Freer a civilian of
New Zealand Germany
action filter_type
action union
action find
entity Werner Goeritz
relation country of citizenship
action find
entity Warren Freer
relation country of citizenship
type political territorial entity
{'OR': [['Werner Goeritz', 'country of citizenship', {'concept': 'political territorial entity'}], ['Warren Freer', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:political_territorial_entity . { VALUES ( ?i ) { ( resource:Werner_Goeritz ) ( resource:Warren_Freer ) } . ?i property:country_of_citizenship ?y } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q19204627 Q47064
P106
Q502895
USER
Which people have career as military personnel and American football player ?
AND((c(Q502895),P106,Q47064), (c(Q502895),P106,Q19204627))
action filter_type
action intersection
action find_reverse
entity Q47064
relation P106
action find_reverse
entity Q19204627
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q47064'], [{'concept': 'Q502895'}, 'P106', 'Q19204627']]}
SELECT DISTINCT ?y WHERE { ?y property:P106 resource:Q19204627 . ?y property:P106 resource:Q47064 . ?y rdf:type ontology:Q502895 }
American football player military personnel
action filter_type
action intersection
action find_reverse
entity military personnel
relation occupation
action find_reverse
entity American football player
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'military personnel'], [{'concept': 'common name'}, 'occupation', 'American football player']]}
SELECT DISTINCT ?y WHERE { ?y property:occupation resource:American_football_player . ?y property:occupation resource:military_personnel . ?y rdf:type ontology:common_name }
[]
common name
Q5258758 Q19578062 Q2306581 Q18352131 Q7407485 Q3181867 Q1045773 Q6224971
SYSTEM
Dennis Morgan, Mack Tharpe, Elmer Gedeon, Doc Rodes, Sam Francis, John Kilpatrick, Archibald Vincent Arnold, John Campbell
Q5258758 Q19578062 Q2306581 Q18352131 Q7407485 Q3181867 Q1045773 Q6224971
AND((c(Q502895),P106,Q47064), (c(Q502895),P106,Q19204627))
action filter_type
action intersection
action find_reverse
entity Q47064
relation P106
action find_reverse
entity Q19204627
relation P106
type Q502895
[ANSWERS] have career as military personnel and American football player
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q47064'], [{'concept': 'Q502895'}, 'P106', 'Q19204627']]}
SELECT DISTINCT ?y WHERE { ?y property:P106 resource:Q19204627 . ?y property:P106 resource:Q47064 . ?y rdf:type ontology:Q502895 }
Dennis Morgan Mack Tharpe Elmer Gedeon Doc Rodes Sam Francis John Kilpatrick Archibald Vincent Arnold John Campbell
Dennis Morgan, Mack Tharpe, Elmer Gedeon, Doc Rodes, Sam Francis, John Kilpatrick, Archibald Vincent Arnold and John Campbell have career as military personnel and American football player
Dennis Morgan Mack Tharpe Elmer Gedeon Doc Rodes Sam Francis John Kilpatrick Archibald Vincent Arnold John Campbell
action filter_type
action intersection
action find_reverse
entity military personnel
relation occupation
action find_reverse
entity American football player
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'military personnel'], [{'concept': 'common name'}, 'occupation', 'American football player']]}
SELECT DISTINCT ?y WHERE { ?y property:occupation resource:American_football_player . ?y property:occupation resource:military_personnel . ?y rdf:type ontology:common_name }
[]