Simple Question (Direct)
Simple Question
Q12028788
P102
Q7210356
USER
Which political organization is Karol Laco a member of ?
(Q12028788,P102,c(Q7210356))
action filter_type
action find
entity Q12028788
relation P102
type Q7210356
['Q12028788', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?y WHERE { resource:Q12028788 property:P102 ?y . ?y rdf:type ontology:Q7210356 }
Karol Laco
action filter_type
action find
entity Karol Laco
relation member of political party
type political organization
['Karol Laco', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?y WHERE { resource:Karol_Laco property:member_of_political_party ?y . ?y rdf:type ontology:political_organization }
[]
political organization
Q1781065
SYSTEM
Communist party of Slovakia (1948)
Q1781065
(Q12028788,P102,c(Q7210356))
action filter_type
action find
entity Q12028788
relation P102
type Q7210356
[ANSWER] is Karol Laco a member of
['Q12028788', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?y WHERE { resource:Q12028788 property:P102 ?y . ?y rdf:type ontology:Q7210356 }
Communist party of Slovakia (1948)
Communist party of Slovakia (1948) is Karol Laco a member of
Communist party of Slovakia (1948)
action filter_type
action find
entity Karol Laco
relation member of political party
type political organization
['Karol Laco', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?y WHERE { resource:Karol_Laco property:member_of_political_party ?y . ?y rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12028788
P106
Q28640
USER
Which profession is the profession of Karol Laco ?
(Q12028788,P106,c(Q28640))
action filter_type
action find
entity Q12028788
relation P106
type Q28640
['Q12028788', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?i WHERE { resource:Q12028788 property:P106 ?i . ?i rdf:type ontology:Q28640 }
Karol Laco
action filter_type
action find
entity Karol Laco
relation occupation
type profession
['Karol Laco', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?i WHERE { resource:Karol_Laco property:occupation ?i . ?i rdf:type ontology:profession }
[]
profession
Q40348
SYSTEM
lawyer
Q40348
(Q12028788,P106,c(Q28640))
action filter_type
action find
entity Q12028788
relation P106
type Q28640
The [ANSWER] is the profession of Karol Laco
['Q12028788', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?i WHERE { resource:Q12028788 property:P106 ?i . ?i rdf:type ontology:Q28640 }
lawyer
The lawyer is the profession of Karol Laco
lawyer
action filter_type
action find
entity Karol Laco
relation occupation
type profession
['Karol Laco', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?i WHERE { resource:Karol_Laco property:occupation ?i . ?i rdf:type ontology:profession }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q12028788
Q12737077
USER
And which occupation?
(Q12028788,P106,c(Q12737077))
action filter_type
action find
entity Q12028788
relation P106
type Q12737077
['Q12028788', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q12028788 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Karol Laco
action filter_type
action find
entity Karol Laco
relation occupation
type occupation
['Karol Laco', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Karol_Laco property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q1231865 Q82955
SYSTEM
educationist, politician
Q1231865 Q82955
(Q12028788,P106,c(Q12737077))
action filter_type
action find
entity Q12028788
relation P106
type Q12737077
[ANSWERS]
['Q12028788', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q12028788 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
educationist politician
educationist politician
action filter_type
action find
entity Karol Laco
relation occupation
type occupation
['Karol Laco', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Karol_Laco property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5981020
P106
Q502895
USER
Do Ian Broome have a job as those occupations ?
(Q5981020,P106,Q1231865) (Q5981020,P106,Q82955)
action is_in
entity prev_answer
action find
entity Q5981020
relation P106
['Q5981020', 'P106', 'Q1231865'] ['Q5981020', 'P106', 'Q82955']
ASK WHERE { resource:Q5981020 property:P106 ?k . VALUES ( ?k ) { ( resource:Q1231865 ) ( resource:Q82955 ) } }
Ian Broome
action is_in
entity prev_answer
action find
entity Ian Broome
relation occupation
['Ian Broome', 'occupation', 'educationist'] ['Ian Broome', 'occupation', 'politician']
ASK WHERE { resource:Ian_Broome property:occupation ?k . VALUES ( ?k ) { ( resource:educationist ) ( resource:politician ) } }
[]
common name
SYSTEM
NO
(Q5981020,P106,Q1231865) (Q5981020,P106,Q82955)
action is_in
entity prev_answer
action find
entity Q5981020
relation P106
[ANSWER]
['Q5981020', 'P106', 'Q1231865'] ['Q5981020', 'P106', 'Q82955']
ASK WHERE { resource:Q5981020 property:P106 ?k . VALUES ( ?k ) { ( resource:Q1231865 ) ( resource:Q82955 ) } }
No
action is_in
entity prev_answer
action find
entity Ian Broome
relation occupation
['Ian Broome', 'occupation', 'educationist'] ['Ian Broome', 'occupation', 'politician']
ASK WHERE { resource:Ian_Broome property:occupation ?k . VALUES ( ?k ) { ( resource:educationist ) ( resource:politician ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1231865 Q1367216 Q7922
P425
Q1047113
USER
Does educationist have medical social work and pedagogy as thier field of occupation ?
(Q1231865,P425,Q1367216) (Q1231865,P425,Q7922)
action is_in
entity Q1231865
action intersection
action find_reverse
entity Q1367216
relation P425
action find_reverse
entity Q7922
relation P425
['Q1231865', 'P425', 'Q1367216'] ['Q1231865', 'P425', 'Q7922']
ASK WHERE { resource:Q1231865 property:P425 resource:Q1367216 . resource:Q1231865 property:P425 resource:Q7922 }
educationist medical social work pedagogy
action is_in
entity educationist
action intersection
action find_reverse
entity medical social work
relation field of this occupation
action find_reverse
entity pedagogy
relation field of this occupation
['educationist', 'field of this occupation', 'medical social work'] ['educationist', 'field of this occupation', 'pedagogy']
ASK WHERE { resource:educationist property:field_of_this_occupation resource:medical_social_work . resource:educationist property:field_of_this_occupation resource:pedagogy }
[]
special field
SYSTEM
NO and YES respectively
(Q1231865,P425,Q1367216) (Q1231865,P425,Q7922)
action is_in
entity Q1231865
action intersection
action find_reverse
entity Q1367216
relation P425
action find_reverse
entity Q7922
relation P425
[ANSWER]
['Q1231865', 'P425', 'Q1367216'] ['Q1231865', 'P425', 'Q7922']
ASK WHERE { resource:Q1231865 property:P425 resource:Q1367216 . resource:Q1231865 property:P425 resource:Q7922 }
NO and YES respectively
action is_in
entity educationist
action intersection
action find_reverse
entity medical social work
relation field of this occupation
action find_reverse
entity pedagogy
relation field of this occupation
['educationist', 'field of this occupation', 'medical social work'] ['educationist', 'field of this occupation', 'pedagogy']
ASK WHERE { resource:educationist property:field_of_this_occupation resource:medical_social_work . resource:educationist property:field_of_this_occupation resource:pedagogy }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1781065 Q727724
P361
Q7210356
USER
Is Communist party of Slovakia (1948) a part of Communist Party of Czechoslovakia ?
(Q1781065,P361,Q727724)
action is_in
entity Q727724
action find
entity Q1781065
relation P361
['Q1781065', 'P361', 'Q727724']
ASK WHERE { resource:Q1781065 property:P361 resource:Q727724 }
Communist party of Slovakia (1948) Communist Party of Czechoslovakia
action is_in
entity Communist Party of Czechoslovakia
action find
entity Communist party of Slovakia (1948)
relation part of
['Communist party of Slovakia (1948)', 'part of', 'Communist Party of Czechoslovakia']
ASK WHERE { resource:Communist_party_of_Slovakia_(1948) property:part_of resource:Communist_Party_of_Czechoslovakia }
[]
political organization
SYSTEM
YES
(Q1781065,P361,Q727724)
action is_in
entity Q727724
action find
entity Q1781065
relation P361
[ANSWER]
['Q1781065', 'P361', 'Q727724']
ASK WHERE { resource:Q1781065 property:P361 resource:Q727724 }
Yes
action is_in
entity Communist Party of Czechoslovakia
action find
entity Communist party of Slovakia (1948)
relation part of
['Communist party of Slovakia (1948)', 'part of', 'Communist Party of Czechoslovakia']
ASK WHERE { resource:Communist_party_of_Slovakia_(1948) property:part_of resource:Communist_Party_of_Czechoslovakia }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1781065
P1142
Q8425
USER
Which society is the ideology of Communist party of Slovakia (1948) ?
action filter_type
action find
entity Q1781065
relation P1142
type Q8425
SELECT DISTINCT ?k WHERE { resource:Q1781065 property:P1142 ?k . ?k rdf:type ontology:Q8425 }
Communist party of Slovakia (1948)
action filter_type
action find
entity Communist party of Slovakia (1948)
relation political ideology
type society
SELECT DISTINCT ?k WHERE { resource:Communist_party_of_Slovakia_(1948) property:political_ideology ?k . ?k rdf:type ontology:society }
[]
society
Q6186
SYSTEM
communism
Q6186
action filter_type
action find
entity Q1781065
relation P1142
type Q8425
So [ANSWER] is the ideology of Communist party of Slovakia (1948)
SELECT DISTINCT ?k WHERE { resource:Q1781065 property:P1142 ?k . ?k rdf:type ontology:Q8425 }
communism
So communism is the ideology of Communist party of Slovakia (1948)
communism
action filter_type
action find
entity Communist party of Slovakia (1948)
relation political ideology
type society
SELECT DISTINCT ?k WHERE { resource:Communist_party_of_Slovakia_(1948) property:political_ideology ?k . ?k rdf:type ontology:society }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q485814 Q1781065
P1142
Q8425
USER
Or Renewing Communist Ecological Left?
OR((Q1781065,P1142,c(Q8425)), (Q485814,P1142,c(Q8425)))
action filter_type
action union
action find
entity Q1781065
relation P1142
action find
entity Q485814
relation P1142
type Q8425
{'OR': [['Q1781065', 'P1142', {'concept': 'Q8425'}], ['Q485814', 'P1142', {'concept': 'Q8425'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q1781065 property:P1142 ?y } UNION { resource:Q485814 property:P1142 ?y } } . ?y rdf:type ontology:Q8425 }
Renewing Communist Ecological Left Communist party of Slovakia (1948)
action filter_type
action union
action find
entity Communist party of Slovakia (1948)
relation political ideology
action find
entity Renewing Communist Ecological Left
relation political ideology
type society
{'OR': [['Communist party of Slovakia (1948)', 'political ideology', {'concept': 'society'}], ['Renewing Communist Ecological Left', 'political ideology', {'concept': 'society'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Communist_party_of_Slovakia_(1948) property:political_ideology ?y } UNION { resource:Renewing_Communist_Ecological_Left property:political_ideology ?y } } . ?y rdf:type ontology:society }
[]
society
Q6186
SYSTEM
communism
Q6186
OR((Q1781065,P1142,c(Q8425)), (Q485814,P1142,c(Q8425)))
action filter_type
action union
action find
entity Q1781065
relation P1142
action find
entity Q485814
relation P1142
type Q8425
[ANSWER]
{'OR': [['Q1781065', 'P1142', {'concept': 'Q8425'}], ['Q485814', 'P1142', {'concept': 'Q8425'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q1781065 property:P1142 ?y } UNION { resource:Q485814 property:P1142 ?y } } . ?y rdf:type ontology:Q8425 }
communism
communism
action filter_type
action union
action find
entity Communist party of Slovakia (1948)
relation political ideology
action find
entity Renewing Communist Ecological Left
relation political ideology
type society
{'OR': [['Communist party of Slovakia (1948)', 'political ideology', {'concept': 'society'}], ['Renewing Communist Ecological Left', 'political ideology', {'concept': 'society'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Communist_party_of_Slovakia_(1948) property:political_ideology ?y } UNION { resource:Renewing_Communist_Ecological_Left property:political_ideology ?y } } . ?y rdf:type ontology:society }
[]