Simple Question (Direct)
Simple Question
Q2182618
P106
Q12737077
USER
What are the professions of Arkady Chernetsky ?
(Q2182618,P106,c(Q12737077))
action filter_type
action find
entity Q2182618
relation P106
type Q12737077
['Q2182618', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . resource:Q2182618 property:P106 ?k }
Arkady Chernetsky
action filter_type
action find
entity Arkady Chernetsky
relation occupation
type occupation
['Arkady Chernetsky', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . resource:Arkady_Chernetsky property:occupation ?k }
[]
occupation
Q188094 Q82955
SYSTEM
economist, politician
Q188094 Q82955
(Q2182618,P106,c(Q12737077))
action filter_type
action find
entity Q2182618
relation P106
type Q12737077
The professions of Arkady Chernetsky are an [ANSWERS]
['Q2182618', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . resource:Q2182618 property:P106 ?k }
economist politician
The professions of Arkady Chernetsky are an economist and politician
economist politician
action filter_type
action find
entity Arkady Chernetsky
relation occupation
type occupation
['Arkady Chernetsky', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . resource:Arkady_Chernetsky property:occupation ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2182618
P102
Q766570
USER
Which political party in Russia is Arkady Chernetsky a member of ?
(Q2182618,P102,c(Q766570))
action filter_type
action find
entity Q2182618
relation P102
type Q766570
['Q2182618', 'P102', {'concept': 'Q766570'}]
SELECT DISTINCT ?p WHERE { resource:Q2182618 property:P102 ?p . ?p rdf:type ontology:Q766570 }
Arkady Chernetsky
action filter_type
action find
entity Arkady Chernetsky
relation member of political party
type political party in Russia
['Arkady Chernetsky', 'member of political party', {'concept': 'political party in Russia'}]
SELECT DISTINCT ?p WHERE { resource:Arkady_Chernetsky property:member_of_political_party ?p . ?p rdf:type ontology:political_party_in_Russia }
[]
political party in Russia
Q151469
SYSTEM
United Russia
Q151469
(Q2182618,P102,c(Q766570))
action filter_type
action find
entity Q2182618
relation P102
type Q766570
[ANSWER] is Arkady Chernetsky a member of
['Q2182618', 'P102', {'concept': 'Q766570'}]
SELECT DISTINCT ?p WHERE { resource:Q2182618 property:P102 ?p . ?p rdf:type ontology:Q766570 }
United Russia
United Russia is Arkady Chernetsky a member of
United Russia
action filter_type
action find
entity Arkady Chernetsky
relation member of political party
type political party in Russia
['Arkady Chernetsky', 'member of political party', {'concept': 'political party in Russia'}]
SELECT DISTINCT ?p WHERE { resource:Arkady_Chernetsky property:member_of_political_party ?p . ?p rdf:type ontology:political_party_in_Russia }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3440852
Q766570
USER
And what about Roman Grebennikov?
(Q3440852,P102,c(Q766570))
action filter_type
action find
entity Q3440852
relation P102
type Q766570
['Q3440852', 'P102', {'concept': 'Q766570'}]
SELECT DISTINCT ?j WHERE { resource:Q3440852 property:P102 ?j . ?j rdf:type ontology:Q766570 }
Roman Grebennikov
action filter_type
action find
entity Roman Grebennikov
relation member of political party
type political party in Russia
['Roman Grebennikov', 'member of political party', {'concept': 'political party in Russia'}]
SELECT DISTINCT ?j WHERE { resource:Roman_Grebennikov property:member_of_political_party ?j . ?j rdf:type ontology:political_party_in_Russia }
[]
political party in Russia
Q151469 Q192187
SYSTEM
United Russia, Communist Party of the Russian Federation
Q151469 Q192187
(Q3440852,P102,c(Q766570))
action filter_type
action find
entity Q3440852
relation P102
type Q766570
[ANSWERS]
['Q3440852', 'P102', {'concept': 'Q766570'}]
SELECT DISTINCT ?j WHERE { resource:Q3440852 property:P102 ?j . ?j rdf:type ontology:Q766570 }
United Russia Communist Party of the Russian Federation
United Russia Communist Party of the Russian Federation
action filter_type
action find
entity Roman Grebennikov
relation member of political party
type political party in Russia
['Roman Grebennikov', 'member of political party', {'concept': 'political party in Russia'}]
SELECT DISTINCT ?j WHERE { resource:Roman_Grebennikov property:member_of_political_party ?j . ?j rdf:type ontology:political_party_in_Russia }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4297299
P102
Q502895
USER
Does Alexander Nikolayevich Mikhaylov belong to the political party those ones ?
(Q4297299,P102,Q151469) (Q4297299,P102,Q192187)
action is_in
entity prev_answer
action find
entity Q4297299
relation P102
['Q4297299', 'P102', 'Q151469'] ['Q4297299', 'P102', 'Q192187']
ASK WHERE { VALUES ( ?z ) { ( resource:Q151469 ) ( resource:Q192187 ) } . resource:Q4297299 property:P102 ?z }
Alexander Nikolayevich Mikhaylov
action is_in
entity prev_answer
action find
entity Alexander Nikolayevich Mikhaylov
relation member of political party
['Alexander Nikolayevich Mikhaylov', 'member of political party', 'United Russia'] ['Alexander Nikolayevich Mikhaylov', 'member of political party', 'Communist Party of the Russian Federation']
ASK WHERE { VALUES ( ?z ) { ( resource:United_Russia ) ( resource:Communist_Party_of_the_Russian_Federation ) } . resource:Alexander_Nikolayevich_Mikhaylov property:member_of_political_party ?z }
[]
common name
SYSTEM
YES
(Q4297299,P102,Q151469) (Q4297299,P102,Q192187)
action is_in
entity prev_answer
action find
entity Q4297299
relation P102
[ANSWER]
['Q4297299', 'P102', 'Q151469'] ['Q4297299', 'P102', 'Q192187']
ASK WHERE { VALUES ( ?z ) { ( resource:Q151469 ) ( resource:Q192187 ) } . resource:Q4297299 property:P102 ?z }
Yes
action is_in
entity prev_answer
action find
entity Alexander Nikolayevich Mikhaylov
relation member of political party
['Alexander Nikolayevich Mikhaylov', 'member of political party', 'United Russia'] ['Alexander Nikolayevich Mikhaylov', 'member of political party', 'Communist Party of the Russian Federation']
ASK WHERE { VALUES ( ?z ) { ( resource:United_Russia ) ( resource:Communist_Party_of_the_Russian_Federation ) } . resource:Alexander_Nikolayevich_Mikhaylov property:member_of_political_party ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q151469
P361
Q43229
USER
What is a part of United Russia ?
(c(Q43229),P361,Q151469)
action filter_type
action find_reverse
entity Q151469
relation P361
type Q43229
[{'concept': 'Q43229'}, 'P361', 'Q151469']
SELECT DISTINCT ?f WHERE { ?f property:P361 resource:Q151469 . ?f rdf:type ontology:Q43229 }
United Russia
action filter_type
action find_reverse
entity United Russia
relation part of
type organization
[{'concept': 'organization'}, 'part of', 'United Russia']
SELECT DISTINCT ?f WHERE { ?f property:part_of resource:United_Russia . ?f rdf:type ontology:organization }
[]
organization
Q8058167
SYSTEM
Young Guard of United Russia
Q8058167
(c(Q43229),P361,Q151469)
action filter_type
action find_reverse
entity Q151469
relation P361
type Q43229
A part of United Russia is the [ANSWER]
[{'concept': 'Q43229'}, 'P361', 'Q151469']
SELECT DISTINCT ?f WHERE { ?f property:P361 resource:Q151469 . ?f rdf:type ontology:Q43229 }
Young Guard of United Russia
A part of United Russia is the Young Guard of United Russia
Young Guard of United Russia
action filter_type
action find_reverse
entity United Russia
relation part of
type organization
[{'concept': 'organization'}, 'part of', 'United Russia']
SELECT DISTINCT ?f WHERE { ?f property:part_of resource:United_Russia . ?f rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q151469
P1142
Q7257
USER
What ideologies do that political party in Russia believe in ?
(Q8058167,P1142,c(Q7257))
action filter_type
action find
entity Q151469
relation P1142
type Q7257
['Q8058167', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?d WHERE { resource:Q151469 property:P1142 ?d . ?d rdf:type ontology:Q7257 }
United Russia
action filter_type
action find
entity United Russia
relation political ideology
type ideology
['Young Guard of United Russia', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?d WHERE { resource:United_Russia property:political_ideology ?d . ?d rdf:type ontology:ideology }
[]
ideology
Q322294 Q6587194
SYSTEM
statism, centrism
Q322294 Q6587194
(Q8058167,P1142,c(Q7257))
action filter_type
action find
entity Q151469
relation P1142
type Q7257
That political party in Russia believe in [ANSWERS]
['Q8058167', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?d WHERE { resource:Q151469 property:P1142 ?d . ?d rdf:type ontology:Q7257 }
statism centrism
That political party in Russia believe in statism and centrism
statism centrism
action filter_type
action find
entity United Russia
relation political ideology
type ideology
['Young Guard of United Russia', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?d WHERE { resource:United_Russia property:political_ideology ?d . ?d rdf:type ontology:ideology }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q7550574 Q151469
P1142
Q7257
USER
And also Social Democratic Party
AND((Q151469,P1142,c(Q7257)), (Q7550574,P1142,c(Q7257)))
action filter_type
action intersection
action find
entity Q151469
relation P1142
action find
entity Q7550574
relation P1142
type Q7257
{'AND': [['Q151469', 'P1142', {'concept': 'Q7257'}], ['Q7550574', 'P1142', {'concept': 'Q7257'}]]}
SELECT DISTINCT ?y WHERE { resource:Q151469 property:P1142 ?y . resource:Q7550574 property:P1142 ?y . ?y rdf:type ontology:Q7257 }
Social Democratic Party United Russia
action filter_type
action intersection
action find
entity United Russia
relation political ideology
action find
entity Social Democratic Party
relation political ideology
type ideology
{'AND': [['United Russia', 'political ideology', {'concept': 'ideology'}], ['Social Democratic Party', 'political ideology', {'concept': 'ideology'}]]}
SELECT DISTINCT ?y WHERE { resource:United_Russia property:political_ideology ?y . resource:Social_Democratic_Party property:political_ideology ?y . ?y rdf:type ontology:ideology }
[]
ideology
Q6587194
SYSTEM
centrism
Q6587194
AND((Q151469,P1142,c(Q7257)), (Q7550574,P1142,c(Q7257)))
action filter_type
action intersection
action find
entity Q151469
relation P1142
action find
entity Q7550574
relation P1142
type Q7257
[ANSWER]
{'AND': [['Q151469', 'P1142', {'concept': 'Q7257'}], ['Q7550574', 'P1142', {'concept': 'Q7257'}]]}
SELECT DISTINCT ?y WHERE { resource:Q151469 property:P1142 ?y . resource:Q7550574 property:P1142 ?y . ?y rdf:type ontology:Q7257 }
centrism
centrism
action filter_type
action intersection
action find
entity United Russia
relation political ideology
action find
entity Social Democratic Party
relation political ideology
type ideology
{'AND': [['United Russia', 'political ideology', {'concept': 'ideology'}], ['Social Democratic Party', 'political ideology', {'concept': 'ideology'}]]}
SELECT DISTINCT ?y WHERE { resource:United_Russia property:political_ideology ?y . resource:Social_Democratic_Party property:political_ideology ?y . ?y rdf:type ontology:ideology }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P1142
Q7257 Q7210356 Q7278
USER
Which ideologies do greater number of political organizations or political parties believe in than that ideology ?
(c(Q7210356)|c(Q7278),P1142,c(Q7257))
action greater
action union
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7210356
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7278
action count
action filter_multi_types
action find_reverse
entity Q6587194
relation P1142
type Q7210356
type Q7278
[[{'concept': 'Q7210356'}, {'concept': 'Q7278'}], 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?w ) WHERE { { ?q property:P1142 ?z . ?z rdf:type ontology:Q7257 . ?q rdf:type ontology:Q7210356 } UNION { ?q property:P1142 ?z . ?z rdf:type ontology:Q7257 . ?q rdf:type ontology:Q7278 } } GROUP BY ?z } . FILTER ( ?w > ?d ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { { ?r rdf:type ontology:Q7278 } UNION { ?r rdf:type ontology:Q7210356 } } . ?r property:P1142 resource:Q6587194 } } }
action greater
action union
action find_reverse_tuple_counts
relation political ideology
type ideology
type political organization
action find_reverse_tuple_counts
relation political ideology
type ideology
type political party
action count
action filter_multi_types
action find_reverse
entity centrism
relation political ideology
type political organization
type political party
[[{'concept': 'political organization'}, {'concept': 'political party'}], 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?w ) WHERE { { ?q property:political_ideology ?z . ?z rdf:type ontology:ideology . ?q rdf:type ontology:political_organization } UNION { ?q property:political_ideology ?z . ?z rdf:type ontology:ideology . ?q rdf:type ontology:political_party } } GROUP BY ?z } . FILTER ( ?w > ?d ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { { ?r rdf:type ontology:political_party } UNION { ?r rdf:type ontology:political_organization } } . ?r property:political_ideology resource:centrism } } }
[]
ideology political organization political party
Q211930 Q7272 Q209158
SYSTEM
Marxism–Leninism, socialism, Christian democracy
Q7272 Q211930 Q209158 Q121254 Q189280
(c(Q7210356)|c(Q7278),P1142,c(Q7257))
action greater
action union
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7210356
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7278
action count
action filter_multi_types
action find_reverse
entity Q6587194
relation P1142
type Q7210356
type Q7278
[ANSWERS] greater number of political organizations or political parties believe in than that ideology
[[{'concept': 'Q7210356'}, {'concept': 'Q7278'}], 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?w ) WHERE { { ?q property:P1142 ?z . ?z rdf:type ontology:Q7257 . ?q rdf:type ontology:Q7210356 } UNION { ?q property:P1142 ?z . ?z rdf:type ontology:Q7257 . ?q rdf:type ontology:Q7278 } } GROUP BY ?z } . FILTER ( ?w > ?d ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { { ?r rdf:type ontology:Q7278 } UNION { ?r rdf:type ontology:Q7210356 } } . ?r property:P1142 resource:Q6587194 } } }
socialism Marxism–Leninism Christian democracy social democracy democratic socialism
Marxism–Leninism, socialism and Christian democracy greater number of political organizations or political parties believe in than that ideology
Marxism–Leninism socialism Christian democracy
action greater
action union
action find_reverse_tuple_counts
relation political ideology
type ideology
type political organization
action find_reverse_tuple_counts
relation political ideology
type ideology
type political party
action count
action filter_multi_types
action find_reverse
entity centrism
relation political ideology
type political organization
type political party
[[{'concept': 'political organization'}, {'concept': 'political party'}], 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?w ) WHERE { { ?q property:political_ideology ?z . ?z rdf:type ontology:ideology . ?q rdf:type ontology:political_organization } UNION { ?q property:political_ideology ?z . ?z rdf:type ontology:ideology . ?q rdf:type ontology:political_party } } GROUP BY ?z } . FILTER ( ?w > ?d ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { { ?r rdf:type ontology:political_party } UNION { ?r rdf:type ontology:political_organization } } . ?r property:political_ideology resource:centrism } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q211930
P135
Q502895
USER
Which person is associated with that ideology ?
(c(Q502895),P135,Q211930)
action filter_type
action find_reverse
entity Q211930
relation P135
type Q502895
[{'concept': 'Q502895'}, 'P135', 'Q211930']
SELECT DISTINCT ?h WHERE { ?h property:P135 resource:Q211930 . ?h rdf:type ontology:Q502895 }
Marxism–Leninism
action filter_type
action find_reverse
entity Marxism–Leninism
relation movement
type common name
[{'concept': 'common name'}, 'movement', 'Marxism–Leninism']
SELECT DISTINCT ?h WHERE { ?h property:movement resource:Marxism–Leninism . ?h rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q211930
SYSTEM
Did you mean Marxism–Leninism ?
Q211930 Q7272 Q209158
(c(Q502895),P135,Q211930) (c(Q502895),P135,Q7272) (c(Q502895),P135,Q209158)
[ANSWER]
[{'concept': 'Q502895'}, 'P135', 'Q211930'] [{'concept': 'Q502895'}, 'P135', 'Q7272'] [{'concept': 'Q502895'}, 'P135', 'Q209158']
SELECT DISTINCT ?h WHERE { ?h property:P135 resource:Q211930 . ?h rdf:type ontology:Q502895 }
Marxism–Leninism socialism Christian democracy
Did you mean Marxism–Leninism ?
Marxism–Leninism
[{'concept': 'common name'}, 'movement', 'Marxism–Leninism'] [{'concept': 'common name'}, 'movement', 'socialism'] [{'concept': 'common name'}, 'movement', 'Christian democracy']
SELECT DISTINCT ?h WHERE { ?h property:movement resource:Marxism–Leninism . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P135,Q211930)
[{'concept': 'Q502895'}, 'P135', 'Q211930']
[{'concept': 'common name'}, 'movement', 'Marxism–Leninism']
[]
Q222831
SYSTEM
Ilich Ramírez Sánchez
Q222831
(c(Q502895),P135,Q211930)
action filter_type
action find_reverse
entity Q211930
relation P135
type Q502895
[ANSWER] is associated with that ideology
[{'concept': 'Q502895'}, 'P135', 'Q211930']
SELECT DISTINCT ?h WHERE { ?h property:P135 resource:Q211930 . ?h rdf:type ontology:Q502895 }
Ilich Ramírez Sánchez
Ilich Ramírez Sánchez is associated with that ideology
Ilich Ramírez Sánchez
action filter_type
action find_reverse
entity Marxism–Leninism
relation movement
type common name
[{'concept': 'common name'}, 'movement', 'Marxism–Leninism']
SELECT DISTINCT ?h WHERE { ?h property:movement resource:Marxism–Leninism . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q222831
P144
Q6619679
USER
Which fictional humanoid is an extension that person ?
(c(Q6619679),P144,Q222831)
action filter_type
action find_reverse
entity Q222831
relation P144
type Q6619679
[{'concept': 'Q6619679'}, 'P144', 'Q222831']
SELECT DISTINCT ?u WHERE { ?u property:P144 resource:Q222831 . ?u rdf:type ontology:Q6619679 }
Ilich Ramírez Sánchez
action filter_type
action find_reverse
entity Ilich Ramírez Sánchez
relation based on
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'based on', 'Ilich Ramírez Sánchez']
SELECT DISTINCT ?u WHERE { ?u property:based_on resource:Ilich_Ramírez_Sánchez . ?u rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q10359244
SYSTEM
Renard
Q10359244
(c(Q6619679),P144,Q222831)
action filter_type
action find_reverse
entity Q222831
relation P144
type Q6619679
[ANSWER] is an extension that person
[{'concept': 'Q6619679'}, 'P144', 'Q222831']
SELECT DISTINCT ?u WHERE { ?u property:P144 resource:Q222831 . ?u rdf:type ontology:Q6619679 }
Renard
Renard is an extension that person
Renard
action filter_type
action find_reverse
entity Ilich Ramírez Sánchez
relation based on
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'based on', 'Ilich Ramírez Sánchez']
SELECT DISTINCT ?u WHERE { ?u property:based_on resource:Ilich_Ramírez_Sánchez . ?u rdf:type ontology:fictional_humanoid }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q222831
P21
Q290
USER
Which sex does Ilich Ramírez Sánchez belong to ?
(Q222831,P21,c(Q290))
action filter_type
action find
entity Q222831
relation P21
type Q290
['Q222831', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q222831 property:P21 ?r . ?r rdf:type ontology:Q290 }
Ilich Ramírez Sánchez
action filter_type
action find
entity Ilich Ramírez Sánchez
relation gender
type sex
['Ilich Ramírez Sánchez', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Ilich_Ramírez_Sánchez property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q222831,P21,c(Q290))
action filter_type
action find
entity Q222831
relation P21
type Q290
Ilich Ramírez Sánchez belongs to [ANSWER]
['Q222831', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q222831 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
Ilich Ramírez Sánchez belongs to male
male
action filter_type
action find
entity Ilich Ramírez Sánchez
relation gender
type sex
['Ilich Ramírez Sánchez', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Ilich_Ramírez_Sánchez property:gender ?r . ?r rdf:type ontology:sex }
[]