Simple Question (Direct)
Simple Question
Q4799808
P102
Q7210356
USER
Which party does Arthur Naftalin belong to ?
(Q4799808,P102,c(Q7210356))
action filter_type
action find
entity Q4799808
relation P102
type Q7210356
['Q4799808', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?w WHERE { resource:Q4799808 property:P102 ?w . ?w rdf:type ontology:Q7210356 }
Arthur Naftalin
action filter_type
action find
entity Arthur Naftalin
relation member of political party
type political organization
['Arthur Naftalin', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?w WHERE { resource:Arthur_Naftalin property:member_of_political_party ?w . ?w rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q4799808,P102,c(Q7210356))
action filter_type
action find
entity Q4799808
relation P102
type Q7210356
Arthur Naftalin belongs to [ANSWER]
['Q4799808', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?w WHERE { resource:Q4799808 property:P102 ?w . ?w rdf:type ontology:Q7210356 }
Democratic Party
Arthur Naftalin belongs to Democratic Party
Democratic Party
action filter_type
action find
entity Arthur Naftalin
relation member of political party
type political organization
['Arthur Naftalin', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?w WHERE { resource:Arthur_Naftalin property:member_of_political_party ?w . ?w rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4799808
P106
Q12737077
USER
What are the job of that person ?
(Q29552,P106,c(Q12737077))
action filter_type
action find
entity Q4799808
relation P106
type Q12737077
['Q29552', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . resource:Q4799808 property:P106 ?f }
Arthur Naftalin
action filter_type
action find
entity Arthur Naftalin
relation occupation
type occupation
['Democratic Party', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . resource:Arthur_Naftalin property:occupation ?f }
[]
occupation
Q1238570 Q82955
SYSTEM
political scientist, politician
Q1238570 Q82955
(Q29552,P106,c(Q12737077))
action filter_type
action find
entity Q4799808
relation P106
type Q12737077
The job of that person are a [ANSWERS]
['Q29552', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . resource:Q4799808 property:P106 ?f }
political scientist politician
The job of that person are a political scientist and politician
political scientist politician
action filter_type
action find
entity Arthur Naftalin
relation occupation
type occupation
['Democratic Party', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . resource:Arthur_Naftalin property:occupation ?f }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1238570 Q82955
P921
Q2342494
USER
Which collectables have political scientist and politician as their main topic ?
(c(Q2342494),P921,Q1238570) (c(Q2342494),P921,Q82955)
action union
action filter_type
action find_reverse
entity Q1238570
relation P921
type Q2342494
action filter_type
action find_reverse
entity Q82955
relation P921
type Q2342494
[{'concept': 'Q2342494'}, 'P921', 'Q1238570'] [{'concept': 'Q2342494'}, 'P921', 'Q82955']
SELECT DISTINCT ?e WHERE { { ?e property:P921 resource:Q1238570 . ?e rdf:type ontology:Q2342494 } UNION { ?e property:P921 resource:Q82955 . ?e rdf:type ontology:Q2342494 } }
political scientist politician
action union
action filter_type
action find_reverse
entity political scientist
relation main subject
type collectable
action filter_type
action find_reverse
entity politician
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'political scientist'] [{'concept': 'collectable'}, 'main subject', 'politician']
SELECT DISTINCT ?e WHERE { { ?e property:main_subject resource:political_scientist . ?e rdf:type ontology:collectable } UNION { ?e property:main_subject resource:politician . ?e rdf:type ontology:collectable } }
[]
collectable
Q20719613 Q21601944
SYSTEM
American political scientists, Notitia Parliamentaria, Or, An History of the Counties, Cities, and Boroughs in England and Wales
Q20719613 Q21601944
(c(Q2342494),P921,Q1238570) (c(Q2342494),P921,Q82955)
action union
action filter_type
action find_reverse
entity Q1238570
relation P921
type Q2342494
action filter_type
action find_reverse
entity Q82955
relation P921
type Q2342494
[ANSWERS]
[{'concept': 'Q2342494'}, 'P921', 'Q1238570'] [{'concept': 'Q2342494'}, 'P921', 'Q82955']
SELECT DISTINCT ?e WHERE { { ?e property:P921 resource:Q1238570 . ?e rdf:type ontology:Q2342494 } UNION { ?e property:P921 resource:Q82955 . ?e rdf:type ontology:Q2342494 } }
American political scientists Notitia Parliamentaria, Or, An History of the Counties, Cities, and Boroughs in England and Wales
American political scientists and Notitia Parliamentaria, Or, An History of the Counties, Cities, and Boroughs in England and Wales have political scientist and politician as their main topic
American political scientists Notitia Parliamentaria, Or, An History of the Counties, Cities, and Boroughs in England and Wales
action union
action filter_type
action find_reverse
entity political scientist
relation main subject
type collectable
action filter_type
action find_reverse
entity politician
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'political scientist'] [{'concept': 'collectable'}, 'main subject', 'politician']
SELECT DISTINCT ?e WHERE { { ?e property:main_subject resource:political_scientist . ?e rdf:type ontology:collectable } UNION { ?e property:main_subject resource:politician . ?e rdf:type ontology:collectable } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29552
P749
Q7210356
USER
Which political organizations are owned by Democratic Party ?
(c(Q7210356),P749,Q29552)
action filter_type
action find_reverse
entity Q29552
relation P749
type Q7210356
[{'concept': 'Q7210356'}, 'P749', 'Q29552']
SELECT DISTINCT ?i WHERE { ?i property:P749 resource:Q29552 . ?i rdf:type ontology:Q7210356 }
Democratic Party
action filter_type
action find_reverse
entity Democratic Party
relation parent organization
type political organization
[{'concept': 'political organization'}, 'parent organization', 'Democratic Party']
SELECT DISTINCT ?i WHERE { ?i property:parent_organization resource:Democratic_Party . ?i rdf:type ontology:political_organization }
[]
political organization
Q7008134 Q5020399
SYSTEM
New Hampshire Democratic Party, California Democratic Party
Q7008134 Q5020399
(c(Q7210356),P749,Q29552)
action filter_type
action find_reverse
entity Q29552
relation P749
type Q7210356
Party [ANSWERS] are owned by Democratic Party
[{'concept': 'Q7210356'}, 'P749', 'Q29552']
SELECT DISTINCT ?i WHERE { ?i property:P749 resource:Q29552 . ?i rdf:type ontology:Q7210356 }
New Hampshire Democratic Party California Democratic Party
Party New Hampshire Democratic Party and California Democratic Party are owned by Democratic Party
New Hampshire Democratic Party California Democratic Party
action filter_type
action find_reverse
entity Democratic Party
relation parent organization
type political organization
[{'concept': 'political organization'}, 'parent organization', 'Democratic Party']
SELECT DISTINCT ?i WHERE { ?i property:parent_organization resource:Democratic_Party . ?i rdf:type ontology:political_organization }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7008134
P355
Q7210356
USER
Which political organization is the parent company of that one ?
(c(Q7210356),P355,Q7008134)
action filter_type
action find_reverse
entity Q7008134
relation P355
type Q7210356
[{'concept': 'Q7210356'}, 'P355', 'Q7008134']
SELECT DISTINCT ?z WHERE { ?z property:P355 resource:Q7008134 . ?z rdf:type ontology:Q7210356 }
New Hampshire Democratic Party
action filter_type
action find_reverse
entity New Hampshire Democratic Party
relation subsidiary
type political organization
[{'concept': 'political organization'}, 'subsidiary', 'New Hampshire Democratic Party']
SELECT DISTINCT ?z WHERE { ?z property:subsidiary resource:New_Hampshire_Democratic_Party . ?z rdf:type ontology:political_organization }
[]
political organization
Clarification for simple ques.
Q5020399
SYSTEM
Did you mean California Democratic Party ?
Q7008134 Q5020399
(c(Q7210356),P355,Q7008134) (c(Q7210356),P355,Q5020399)
[ANSWER]
[{'concept': 'Q7210356'}, 'P355', 'Q7008134'] [{'concept': 'Q7210356'}, 'P355', 'Q5020399']
SELECT DISTINCT ?z WHERE { ?z property:P355 resource:Q7008134 . ?z rdf:type ontology:Q7210356 }
New Hampshire Democratic Party California Democratic Party
Did you mean California Democratic Party ?
California Democratic Party
[{'concept': 'political organization'}, 'subsidiary', 'New Hampshire Democratic Party'] [{'concept': 'political organization'}, 'subsidiary', 'California Democratic Party']
SELECT DISTINCT ?z WHERE { ?z property:subsidiary resource:New_Hampshire_Democratic_Party . ?z rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
USER
No, I meant New Hampshire Democratic Party. Could you tell me the answer for that?
(c(Q7210356),P355,Q7008134)
Q7008134
[{'concept': 'Q7210356'}, 'P355', 'Q7008134']
[{'concept': 'political organization'}, 'subsidiary', 'New Hampshire Democratic Party']
[]
Q29552
SYSTEM
Democratic Party
Q29552
(c(Q7210356),P355,Q7008134)
action filter_type
action find_reverse
entity Q7008134
relation P355
type Q7210356
Party [ANSWER] is the parent company of that one
[{'concept': 'Q7210356'}, 'P355', 'Q7008134']
SELECT DISTINCT ?z WHERE { ?z property:P355 resource:Q7008134 . ?z rdf:type ontology:Q7210356 }
Democratic Party
Party Democratic Party is the parent company of that one
Democratic Party
action filter_type
action find_reverse
entity New Hampshire Democratic Party
relation subsidiary
type political organization
[{'concept': 'political organization'}, 'subsidiary', 'New Hampshire Democratic Party']
SELECT DISTINCT ?z WHERE { ?z property:subsidiary resource:New_Hampshire_Democratic_Party . ?z rdf:type ontology:political_organization }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q6516925
P361
Q7210356 Q7210356
USER
Which political organizations are a component of more number of political organizations than Left Wing Section of the Socialist Party ?
(c(Q7210356),P361,c(Q7210356))
action greater
action find_tuple_counts
relation P361
type Q7210356
type Q7210356
action count
action filter_type
action find
entity Q6516925
relation P361
type Q7210356
[{'concept': 'Q7210356'}, 'P361', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?m ) WHERE { ?q property:P361 ?u . ?q rdf:type ontology:Q7210356 . ?u rdf:type ontology:Q7210356 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { resource:Q6516925 property:P361 ?a . ?a rdf:type ontology:Q7210356 } } . FILTER ( ?m > ?n ) }
Left Wing Section of the Socialist Party
action greater
action find_tuple_counts
relation part of
type political organization
type political organization
action count
action filter_type
action find
entity Left Wing Section of the Socialist Party
relation part of
type political organization
[{'concept': 'political organization'}, 'part of', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?m ) WHERE { ?q property:part_of ?u . ?q rdf:type ontology:political_organization . ?u rdf:type ontology:political_organization } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { resource:Left_Wing_Section_of_the_Socialist_Party property:part_of ?a . ?a rdf:type ontology:political_organization } } . FILTER ( ?m > ?n ) }
[]
political organization political organization
Q47750 Q1428001 Q780997
SYSTEM
Northern League, Party of Italian Communists, Communist Refoundation Party
Q1076494 Q786791 Q780997 Q2277776 Q286140 Q692736 Q1428001 Q577337 Q1546314 Q1170281 Q1233269 Q47768 Q47750
(c(Q7210356),P361,c(Q7210356))
action greater
action find_tuple_counts
relation P361
type Q7210356
type Q7210356
action count
action filter_type
action find
entity Q6516925
relation P361
type Q7210356
[ANSWERS] are a component of more number of political organizations than Left Wing Section of the Socialist Party
[{'concept': 'Q7210356'}, 'P361', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?m ) WHERE { ?q property:P361 ?u . ?q rdf:type ontology:Q7210356 . ?u rdf:type ontology:Q7210356 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { resource:Q6516925 property:P361 ?a . ?a rdf:type ontology:Q7210356 } } . FILTER ( ?m > ?n ) }
Italian Liberal Party Federation of Italian Liberals Communist Refoundation Party Liberal Democrats Left, Ecology and Freedom The Right Party of Italian Communists European Republicans Movement UDEUR Populars for the South Fortza Paris Movement for Autonomies Italy of Values Northern League
Northern League, Party of Italian Communists and Communist Refoundation Party are a component of more number of political organizations than Left Wing Section of the Socialist Party
Northern League Party of Italian Communists Communist Refoundation Party
action greater
action find_tuple_counts
relation part of
type political organization
type political organization
action count
action filter_type
action find
entity Left Wing Section of the Socialist Party
relation part of
type political organization
[{'concept': 'political organization'}, 'part of', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?m ) WHERE { ?q property:part_of ?u . ?q rdf:type ontology:political_organization . ?u rdf:type ontology:political_organization } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { resource:Left_Wing_Section_of_the_Socialist_Party property:part_of ?a . ?a rdf:type ontology:political_organization } } . FILTER ( ?m > ?n ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P361
Q4830453 Q7210356
USER
How many business enterprises or political organizations are a part of that political organization ?
(c(Q4830453),P361,Q47750) (c(Q7210356),P361,Q47750) (c(Q4830453),P361,Q47750) (c(Q7210356),P361,Q47750) (c(Q4830453),P361,Q1428001) (c(Q7210356),P361,Q1428001) (c(Q4830453),P361,Q780997) (c(Q7210356),P361,Q780997)
[{'concept': 'Q4830453'}, 'P361', 'Q47750'] [{'concept': 'Q7210356'}, 'P361', 'Q47750'] [{'concept': 'Q4830453'}, 'P361', 'Q47750'] [{'concept': 'Q7210356'}, 'P361', 'Q47750'] [{'concept': 'Q4830453'}, 'P361', 'Q1428001'] [{'concept': 'Q7210356'}, 'P361', 'Q1428001'] [{'concept': 'Q4830453'}, 'P361', 'Q780997'] [{'concept': 'Q7210356'}, 'P361', 'Q780997']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P361 resource:Q1134410 } UNION { ?y property:P361 resource:Q1134410 } UNION { ?z property:P361 resource:Q1134410 } UNION { ?y property:P361 resource:Q1134410 } UNION { ?z property:P361 resource:Q1428001 } UNION { ?y property:P361 resource:Q1428001 } UNION { ?z property:P361 resource:Q780997 } UNION { ?y property:P361 resource:Q780997 } } . ?z rdf:type ontology:Q4830453 . ?y rdf:type ontology:Q7210356 }
[{'concept': 'business enterprise'}, 'part of', 'Northern League'] [{'concept': 'political organization'}, 'part of', 'Northern League'] [{'concept': 'business enterprise'}, 'part of', 'Northern League'] [{'concept': 'political organization'}, 'part of', 'Northern League'] [{'concept': 'business enterprise'}, 'part of', 'Party of Italian Communists'] [{'concept': 'political organization'}, 'part of', 'Party of Italian Communists'] [{'concept': 'business enterprise'}, 'part of', 'Communist Refoundation Party'] [{'concept': 'political organization'}, 'part of', 'Communist Refoundation Party']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:part_of resource:Northern_League } UNION { ?y property:part_of resource:Northern_League } UNION { ?z property:part_of resource:Northern_League } UNION { ?y property:part_of resource:Northern_League } UNION { ?z property:part_of resource:Party_of_Italian_Communists } UNION { ?y property:part_of resource:Party_of_Italian_Communists } UNION { ?z property:part_of resource:Communist_Refoundation_Party } UNION { ?y property:part_of resource:Communist_Refoundation_Party } } . ?z rdf:type ontology:business_enterprise . ?y rdf:type ontology:political_organization }
[]
business enterprise political organization
Quantitative|Count|Mult. entity type|Clarification
Q1428001
SYSTEM
Did you mean Party of Italian Communists ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P361 resource:Q1134410 } UNION { ?y property:P361 resource:Q1134410 } UNION { ?z property:P361 resource:Q1134410 } UNION { ?y property:P361 resource:Q1134410 } UNION { ?z property:P361 resource:Q1428001 } UNION { ?y property:P361 resource:Q1428001 } UNION { ?z property:P361 resource:Q780997 } UNION { ?y property:P361 resource:Q780997 } } . ?z rdf:type ontology:Q4830453 . ?y rdf:type ontology:Q7210356 }
Did you mean Party of Italian Communists ?
Party of Italian Communists
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:part_of resource:Northern_League } UNION { ?y property:part_of resource:Northern_League } UNION { ?z property:part_of resource:Northern_League } UNION { ?y property:part_of resource:Northern_League } UNION { ?z property:part_of resource:Party_of_Italian_Communists } UNION { ?y property:part_of resource:Party_of_Italian_Communists } UNION { ?z property:part_of resource:Communist_Refoundation_Party } UNION { ?y property:part_of resource:Communist_Refoundation_Party } } . ?z rdf:type ontology:business_enterprise . ?y rdf:type ontology:political_organization }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Northern League. Could you tell me the answer for that?
(c(Q4830453),P361,Q47750) (c(Q7210356),P361,Q47750) (c(Q4830453),P361,Q47750) (c(Q7210356),P361,Q47750) (c(Q4830453),P361,Q1428001) (c(Q7210356),P361,Q1428001) (c(Q4830453),P361,Q780997) (c(Q7210356),P361,Q780997)
Q47750
[{'concept': 'Q4830453'}, 'P361', 'Q47750'] [{'concept': 'Q7210356'}, 'P361', 'Q47750'] [{'concept': 'Q4830453'}, 'P361', 'Q47750'] [{'concept': 'Q7210356'}, 'P361', 'Q47750'] [{'concept': 'Q4830453'}, 'P361', 'Q1428001'] [{'concept': 'Q7210356'}, 'P361', 'Q1428001'] [{'concept': 'Q4830453'}, 'P361', 'Q780997'] [{'concept': 'Q7210356'}, 'P361', 'Q780997']
[{'concept': 'business enterprise'}, 'part of', 'Northern League'] [{'concept': 'political organization'}, 'part of', 'Northern League'] [{'concept': 'business enterprise'}, 'part of', 'Northern League'] [{'concept': 'political organization'}, 'part of', 'Northern League'] [{'concept': 'business enterprise'}, 'part of', 'Party of Italian Communists'] [{'concept': 'political organization'}, 'part of', 'Party of Italian Communists'] [{'concept': 'business enterprise'}, 'part of', 'Communist Refoundation Party'] [{'concept': 'political organization'}, 'part of', 'Communist Refoundation Party']
[]
SYSTEM
5
Q3928777 Q958419 Q6517170 Q2246227 Q4245186
(c(Q4830453),P361,Q47750) (c(Q7210356),P361,Q47750) (c(Q4830453),P361,Q47750) (c(Q7210356),P361,Q47750) (c(Q4830453),P361,Q1428001) (c(Q7210356),P361,Q1428001) (c(Q4830453),P361,Q780997) (c(Q7210356),P361,Q780997)
[ANSWER]
[{'concept': 'Q4830453'}, 'P361', 'Q47750'] [{'concept': 'Q7210356'}, 'P361', 'Q47750'] [{'concept': 'Q4830453'}, 'P361', 'Q47750'] [{'concept': 'Q7210356'}, 'P361', 'Q47750'] [{'concept': 'Q4830453'}, 'P361', 'Q1428001'] [{'concept': 'Q7210356'}, 'P361', 'Q1428001'] [{'concept': 'Q4830453'}, 'P361', 'Q780997'] [{'concept': 'Q7210356'}, 'P361', 'Q780997']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P361 resource:Q1134410 } UNION { ?y property:P361 resource:Q1134410 } UNION { ?z property:P361 resource:Q1134410 } UNION { ?y property:P361 resource:Q1134410 } UNION { ?z property:P361 resource:Q1428001 } UNION { ?y property:P361 resource:Q1428001 } UNION { ?z property:P361 resource:Q780997 } UNION { ?y property:P361 resource:Q780997 } } . ?z rdf:type ontology:Q4830453 . ?y rdf:type ontology:Q7210356 }
Radio Padania Freedom Liga Veneta Lega Nord Trentino Lega Lombarda Lega Nord Piemont
5
[{'concept': 'business enterprise'}, 'part of', 'Northern League'] [{'concept': 'political organization'}, 'part of', 'Northern League'] [{'concept': 'business enterprise'}, 'part of', 'Northern League'] [{'concept': 'political organization'}, 'part of', 'Northern League'] [{'concept': 'business enterprise'}, 'part of', 'Party of Italian Communists'] [{'concept': 'political organization'}, 'part of', 'Party of Italian Communists'] [{'concept': 'business enterprise'}, 'part of', 'Communist Refoundation Party'] [{'concept': 'political organization'}, 'part of', 'Communist Refoundation Party']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:part_of resource:Northern_League } UNION { ?y property:part_of resource:Northern_League } UNION { ?z property:part_of resource:Northern_League } UNION { ?y property:part_of resource:Northern_League } UNION { ?z property:part_of resource:Party_of_Italian_Communists } UNION { ?y property:part_of resource:Party_of_Italian_Communists } UNION { ?z property:part_of resource:Communist_Refoundation_Party } UNION { ?y property:part_of resource:Communist_Refoundation_Party } } . ?z rdf:type ontology:business_enterprise . ?y rdf:type ontology:political_organization }
[]