Simple Question (Direct)
Simple Question
Q827955
P102
Q7278
USER
Which political party is Berthold Karwahne a member of ?
(Q827955,P102,c(Q7278))
action filter_type
action find
entity Q827955
relation P102
type Q7278
['Q827955', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?x WHERE { resource:Q827955 property:P102 ?x . ?x rdf:type ontology:Q7278 }
Berthold Karwahne
action filter_type
action find
entity Berthold Karwahne
relation member of political party
type political party
['Berthold Karwahne', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?x WHERE { resource:Berthold_Karwahne property:member_of_political_party ?x . ?x rdf:type ontology:political_party }
[]
political party
Q153401
SYSTEM
Communist Party of Germany
Q153401
(Q827955,P102,c(Q7278))
action filter_type
action find
entity Q827955
relation P102
type Q7278
The [ANSWER] is Berthold Karwahne a member of
['Q827955', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?x WHERE { resource:Q827955 property:P102 ?x . ?x rdf:type ontology:Q7278 }
Communist Party of Germany
The Communist Party of Germany is Berthold Karwahne a member of
Communist Party of Germany
action filter_type
action find
entity Berthold Karwahne
relation member of political party
type political party
['Berthold Karwahne', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?x WHERE { resource:Berthold_Karwahne property:member_of_political_party ?x . ?x rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q827955
P106
Q12737077
USER
What does that person do for a living ?
(Q153401,P106,c(Q12737077))
action filter_type
action find
entity Q827955
relation P106
type Q12737077
['Q153401', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q827955 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
Berthold Karwahne
action filter_type
action find
entity Berthold Karwahne
relation occupation
type occupation
['Communist Party of Germany', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Berthold_Karwahne property:occupation ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q153401,P106,c(Q12737077))
action filter_type
action find
entity Q827955
relation P106
type Q12737077
[ANSWER] that person does for a living
['Q153401', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q827955 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
politician
Politician that person does for a living
politician
action filter_type
action find
entity Berthold Karwahne
relation occupation
type occupation
['Communist Party of Germany', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Berthold_Karwahne property:occupation ?g . ?g rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q3437036 Q827955
P106
Q12737077
USER
Or Robin?
OR((Q827955,P106,c(Q12737077)), (Q3437036,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q827955
relation P106
action find
entity Q3437036
relation P106
type Q12737077
{'OR': [['Q827955', 'P106', {'concept': 'Q12737077'}], ['Q3437036', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q827955 property:P106 ?t } UNION { resource:Q3437036 property:P106 ?t } } . ?t rdf:type ontology:Q12737077 }
Robin Berthold Karwahne
action filter_type
action union
action find
entity Berthold Karwahne
relation occupation
action find
entity Robin
relation occupation
type occupation
{'OR': [['Berthold Karwahne', 'occupation', {'concept': 'occupation'}], ['Robin', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Berthold_Karwahne property:occupation ?t } UNION { resource:Robin property:occupation ?t } } . ?t rdf:type ontology:occupation }
[]
occupation
Q33231 Q82955
SYSTEM
photographer, politician
Q33231 Q82955
OR((Q827955,P106,c(Q12737077)), (Q3437036,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q827955
relation P106
action find
entity Q3437036
relation P106
type Q12737077
[ANSWERS]
{'OR': [['Q827955', 'P106', {'concept': 'Q12737077'}], ['Q3437036', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q827955 property:P106 ?t } UNION { resource:Q3437036 property:P106 ?t } } . ?t rdf:type ontology:Q12737077 }
photographer politician
photographer politician
action filter_type
action union
action find
entity Berthold Karwahne
relation occupation
action find
entity Robin
relation occupation
type occupation
{'OR': [['Berthold Karwahne', 'occupation', {'concept': 'occupation'}], ['Robin', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Berthold_Karwahne property:occupation ?t } UNION { resource:Robin property:occupation ?t } } . ?t rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q33231 Q82955
P39
Q502895
USER
Who were responsible for occupying the position of photographer and politician ?
(c(Q502895),P39,Q33231) (c(Q502895),P39,Q82955)
action union
action filter_type
action find_reverse
entity Q33231
relation P39
type Q502895
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q33231'] [{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?v WHERE { { ?v property:P39 resource:Q33231 . ?v rdf:type ontology:Q502895 } UNION { ?v property:P39 resource:Q82955 . ?v rdf:type ontology:Q502895 } }
photographer politician
action union
action filter_type
action find_reverse
entity photographer
relation position held
type common name
action filter_type
action find_reverse
entity politician
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'photographer'] [{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?v WHERE { { ?v property:position_held resource:photographer . ?v rdf:type ontology:common_name } UNION { ?v property:position_held resource:politician . ?v rdf:type ontology:common_name } }
[]
common name
Q3073637 Q26215129
SYSTEM
Fleury-Marius Seive, Morteza Azari
Q3073637 Q26215129
(c(Q502895),P39,Q33231) (c(Q502895),P39,Q82955)
action union
action filter_type
action find_reverse
entity Q33231
relation P39
type Q502895
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
[ANSWERS] were responsible for occupying the position of photographer and politician
[{'concept': 'Q502895'}, 'P39', 'Q33231'] [{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?v WHERE { { ?v property:P39 resource:Q33231 . ?v rdf:type ontology:Q502895 } UNION { ?v property:P39 resource:Q82955 . ?v rdf:type ontology:Q502895 } }
Fleury-Marius Seive Morteza Azari
Fleury-Marius Seive and Morteza Azari were responsible for occupying the position of photographer and politician
Fleury-Marius Seive Morteza Azari
action union
action filter_type
action find_reverse
entity photographer
relation position held
type common name
action filter_type
action find_reverse
entity politician
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'photographer'] [{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?v WHERE { { ?v property:position_held resource:photographer . ?v rdf:type ontology:common_name } UNION { ?v property:position_held resource:politician . ?v rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q3073637 Q26215129
P106
Q12737077
USER
What are the job of Fleury-Marius Seive and Morteza Azari ?
(Q3073637,P106,c(Q12737077)) (Q26215129,P106,c(Q12737077))
action union
action filter_type
action find
entity Q3073637
relation P106
type Q12737077
action filter_type
action find
entity Q26215129
relation P106
type Q12737077
['Q3073637', 'P106', {'concept': 'Q12737077'}] ['Q26215129', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?b property:P106 ?y . VALUES ( ?b ) { ( resource:Q3073637 ) ( resource:Q26215129 ) } }
Fleury-Marius Seive Morteza Azari
action union
action filter_type
action find
entity Fleury-Marius Seive
relation occupation
type occupation
action filter_type
action find
entity Morteza Azari
relation occupation
type occupation
['Fleury-Marius Seive', 'occupation', {'concept': 'occupation'}] ['Morteza Azari', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?b property:occupation ?y . VALUES ( ?b ) { ( resource:Fleury-Marius_Seive ) ( resource:Morteza_Azari ) } }
[]
occupation
Q47064 Q14467526 Q184402
SYSTEM
military personnel, linguist, ayatollah
Q47064 Q14467526 Q184402
(Q3073637,P106,c(Q12737077)) (Q26215129,P106,c(Q12737077))
action union
action filter_type
action find
entity Q3073637
relation P106
type Q12737077
action filter_type
action find
entity Q26215129
relation P106
type Q12737077
The job of Fleury-Marius Seive and Morteza Azari are [ANSWERS]
['Q3073637', 'P106', {'concept': 'Q12737077'}] ['Q26215129', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?b property:P106 ?y . VALUES ( ?b ) { ( resource:Q3073637 ) ( resource:Q26215129 ) } }
military personnel linguist ayatollah
The job of Fleury-Marius Seive and Morteza Azari are military personnel, linguist and ayatollah
military personnel linguist ayatollah
action union
action filter_type
action find
entity Fleury-Marius Seive
relation occupation
type occupation
action filter_type
action find
entity Morteza Azari
relation occupation
type occupation
['Fleury-Marius Seive', 'occupation', {'concept': 'occupation'}] ['Morteza Azari', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?b property:occupation ?y . VALUES ( ?b ) { ( resource:Fleury-Marius_Seive ) ( resource:Morteza_Azari ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q14467526
P425
Q1914636
USER
Who has that one as the associated field of occupation ?
(Q14467526,P425,c(Q1914636))
action filter_type
action find
entity Q14467526
relation P425
type Q1914636
['Q14467526', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?t WHERE { resource:Q14467526 property:P425 ?t . ?t rdf:type ontology:Q1914636 }
linguist
action filter_type
action find
entity linguist
relation field of this occupation
type activity
['linguist', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?t WHERE { resource:linguist property:field_of_this_occupation ?t . ?t rdf:type ontology:activity }
[]
activity
Clarification for simple ques.
Q14467526
SYSTEM
Did you mean linguist ?
Q47064 Q14467526 Q184402
(Q47064,P425,c(Q1914636)) (Q14467526,P425,c(Q1914636)) (Q184402,P425,c(Q1914636))
[ANSWER]
['Q47064', 'P425', {'concept': 'Q1914636'}] ['Q14467526', 'P425', {'concept': 'Q1914636'}] ['Q184402', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?t WHERE { resource:Q14467526 property:P425 ?t . ?t rdf:type ontology:Q1914636 }
military personnel linguist ayatollah
Did you mean linguist ?
linguist
['military personnel', 'field of this occupation', {'concept': 'activity'}] ['linguist', 'field of this occupation', {'concept': 'activity'}] ['ayatollah', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?t WHERE { resource:linguist property:field_of_this_occupation ?t . ?t rdf:type ontology:activity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q14467526,P425,c(Q1914636))
['Q14467526', 'P425', {'concept': 'Q1914636'}]
['linguist', 'field of this occupation', {'concept': 'activity'}]
[]
Q8162
SYSTEM
linguistics
Q8162
(Q14467526,P425,c(Q1914636))
action filter_type
action find
entity Q14467526
relation P425
type Q1914636
[ANSWER] has that one as the associated field of occupation
['Q14467526', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?t WHERE { resource:Q14467526 property:P425 ?t . ?t rdf:type ontology:Q1914636 }
linguistics
Linguistics has that one as the associated field of occupation
linguistics
action filter_type
action find
entity linguist
relation field of this occupation
type activity
['linguist', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?t WHERE { resource:linguist property:field_of_this_occupation ?t . ?t rdf:type ontology:activity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q47064
P180
Q838948
USER
Which works of art express military personnel ?
(c(Q838948),P180,Q47064)
action filter_type
action find_reverse
entity Q47064
relation P180
type Q838948
[{'concept': 'Q838948'}, 'P180', 'Q47064']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q838948 . ?w property:P180 resource:Q47064 }
military personnel
action filter_type
action find_reverse
entity military personnel
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'military personnel']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:work_of_art . ?w property:depicts resource:military_personnel }
[]
work of art
Q16864946 Q16303545 Q7971889
SYSTEM
Doryphoros from Pompeii, Chasseur à pied, Washington Grays Monument
Q6544400 Q16864946 Q1136305 Q7971889 Q16303545 Q3752885
(c(Q838948),P180,Q47064)
action filter_type
action find_reverse
entity Q47064
relation P180
type Q838948
[ANSWERS] express military personnel
[{'concept': 'Q838948'}, 'P180', 'Q47064']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q838948 . ?w property:P180 resource:Q47064 }
Lieutenant General George Washington Doryphoros from Pompeii Doryphoros Washington Grays Monument Chasseur à pied Mars of Todi
Doryphoros from Pompeii, Chasseur à pied and Washington Grays Monument express military personnel
Doryphoros from Pompeii Chasseur à pied Washington Grays Monument
action filter_type
action find_reverse
entity military personnel
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'military personnel']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:work_of_art . ?w property:depicts resource:military_personnel }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q16864946 Q16303545 Q7971889
P136
Q1792379
USER
What can be considered as category for those works of art ?
(Q16864946,P136,c(Q1792379)) (Q16303545,P136,c(Q1792379)) (Q7971889,P136,c(Q1792379))
action filter_type
action find
entity prev_answer
relation P136
type Q1792379
['Q16864946', 'P136', {'concept': 'Q1792379'}] ['Q16303545', 'P136', {'concept': 'Q1792379'}] ['Q7971889', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1792379 . ?w property:P136 ?f . VALUES ( ?w ) { ( resource:Q6544400 ) ( resource:Q16864946 ) ( resource:Q1136305 ) } }
Doryphoros from Pompeii Chasseur à pied Washington Grays Monument
action filter_type
action find
entity prev_answer
relation genre
type art genre
['Doryphoros from Pompeii', 'genre', {'concept': 'art genre'}] ['Chasseur à pied', 'genre', {'concept': 'art genre'}] ['Washington Grays Monument', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:art_genre . ?w property:genre ?f . VALUES ( ?w ) { ( resource:Lieutenant_General_George_Washington ) ( resource:Doryphoros_from_Pompeii ) ( resource:Doryphoros ) } }
[]
art genre
Q179700 Q179700 Q179700
SYSTEM
statue
Q179700 Q179700 Q179700
(Q16864946,P136,c(Q1792379)) (Q16303545,P136,c(Q1792379)) (Q7971889,P136,c(Q1792379))
action filter_type
action find
entity prev_answer
relation P136
type Q1792379
[ANSWER], [ANSWER] and [ANSWER] can be considered as category for those works of art
['Q16864946', 'P136', {'concept': 'Q1792379'}] ['Q16303545', 'P136', {'concept': 'Q1792379'}] ['Q7971889', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1792379 . ?w property:P136 ?f . VALUES ( ?w ) { ( resource:Q6544400 ) ( resource:Q16864946 ) ( resource:Q1136305 ) } }
statue statue statue
Statue, statue and statue can be considered as category for those works of art
statue statue statue
action filter_type
action find
entity prev_answer
relation genre
type art genre
['Doryphoros from Pompeii', 'genre', {'concept': 'art genre'}] ['Chasseur à pied', 'genre', {'concept': 'art genre'}] ['Washington Grays Monument', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:art_genre . ?w property:genre ?f . VALUES ( ?w ) { ( resource:Lieutenant_General_George_Washington ) ( resource:Doryphoros_from_Pompeii ) ( resource:Doryphoros ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q47064
P425
Q43229
USER
Who is associated with the field of occupation military personnel ?
(Q47064,P425,c(Q43229))
action filter_type
action find
entity Q47064
relation P425
type Q43229
['Q47064', 'P425', {'concept': 'Q43229'}]
SELECT DISTINCT ?y WHERE { resource:Q47064 property:P425 ?y . ?y rdf:type ontology:Q43229 }
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 ?y WHERE { resource:military_personnel property:field_of_this_occupation ?y . ?y rdf:type ontology:organization }
[]
organization
Q8473
SYSTEM
military
Q8473
(Q47064,P425,c(Q43229))
action filter_type
action find
entity Q47064
relation P425
type Q43229
Personnel [ANSWER] is associated with the field of occupation [ANSWER] personnel
['Q47064', 'P425', {'concept': 'Q43229'}]
SELECT DISTINCT ?y WHERE { resource:Q47064 property:P425 ?y . ?y rdf:type ontology:Q43229 }
military
Personnel military is associated with the field of occupation military personnel
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 ?y WHERE { resource:military_personnel property:field_of_this_occupation ?y . ?y rdf:type ontology:organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q179985
Q43229
USER
And how about actuary?
(Q179985,P425,c(Q43229))
action filter_type
action find
entity Q179985
relation P425
type Q43229
['Q179985', 'P425', {'concept': 'Q43229'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q43229 . resource:Q179985 property:P425 ?w }
actuary
action filter_type
action find
entity actuary
relation field of this occupation
type organization
['actuary', 'field of this occupation', {'concept': 'organization'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:organization . resource:actuary property:field_of_this_occupation ?w }
[]
organization
Q1128453
SYSTEM
actuarial science
Q1128453
(Q179985,P425,c(Q43229))
action filter_type
action find
entity Q179985
relation P425
type Q43229
[ANSWER]
['Q179985', 'P425', {'concept': 'Q43229'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q43229 . resource:Q179985 property:P425 ?w }
actuarial science
actuarial science
action filter_type
action find
entity actuary
relation field of this occupation
type organization
['actuary', 'field of this occupation', {'concept': 'organization'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:organization . resource:actuary property:field_of_this_occupation ?w }
[]