Simple Question (Direct)
Simple Question
Q6686689
P102
Q7210356
USER
Which political organization is Louis Auguste Olivier a member of ?
(Q6686689,P102,c(Q7210356))
action filter_type
action find
entity Q6686689
relation P102
type Q7210356
['Q6686689', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?t WHERE { resource:Q6686689 property:P102 ?t . ?t rdf:type ontology:Q7210356 }
Louis Auguste Olivier
action filter_type
action find
entity Louis Auguste Olivier
relation member of political party
type political organization
['Louis Auguste Olivier', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?t WHERE { resource:Louis_Auguste_Olivier property:member_of_political_party ?t . ?t rdf:type ontology:political_organization }
[]
political organization
Q138345
SYSTEM
Liberal Party of Canada
Q138345
(Q6686689,P102,c(Q7210356))
action filter_type
action find
entity Q6686689
relation P102
type Q7210356
The [ANSWER] is Louis Auguste Olivier a member of
['Q6686689', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?t WHERE { resource:Q6686689 property:P102 ?t . ?t rdf:type ontology:Q7210356 }
Liberal Party of Canada
The Liberal Party of Canada is Louis Auguste Olivier a member of
Liberal Party of Canada
action filter_type
action find
entity Louis Auguste Olivier
relation member of political party
type political organization
['Louis Auguste Olivier', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?t WHERE { resource:Louis_Auguste_Olivier property:member_of_political_party ?t . ?t rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q138345
P1142
Q1047113
USER
Which special field is the ideology of that political organization ?
(Q138345,P1142,c(Q1047113))
action filter_type
action find
entity Q138345
relation P1142
type Q1047113
['Q138345', 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1047113 . resource:Q138345 property:P1142 ?o }
Liberal Party of Canada
action filter_type
action find
entity Liberal Party of Canada
relation political ideology
type special field
['Liberal Party of Canada', 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:special_field . resource:Liberal_Party_of_Canada property:political_ideology ?o }
[]
special field
Q6216
SYSTEM
liberalism
Q6216
(Q138345,P1142,c(Q1047113))
action filter_type
action find
entity Q138345
relation P1142
type Q1047113
Is [ANSWER] is the ideology of that political organization
['Q138345', 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1047113 . resource:Q138345 property:P1142 ?o }
liberalism
Is liberalism is the ideology of that political organization
liberalism
action filter_type
action find
entity Liberal Party of Canada
relation political ideology
type special field
['Liberal Party of Canada', 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:special_field . resource:Liberal_Party_of_Canada property:political_ideology ?o }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6686689
P39
Q12737077
USER
Which occupation was a position held by Louis Auguste Olivier ?
(Q6686689,P39,c(Q12737077))
action filter_type
action find
entity Q6686689
relation P39
type Q12737077
['Q6686689', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q6686689 property:P39 ?c . ?c rdf:type ontology:Q12737077 }
Louis Auguste Olivier
action filter_type
action find
entity Louis Auguste Olivier
relation position held
type occupation
['Louis Auguste Olivier', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Louis_Auguste_Olivier property:position_held ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q18524027
SYSTEM
Member of the Senate of Canada
Q18524027
(Q6686689,P39,c(Q12737077))
action filter_type
action find
entity Q6686689
relation P39
type Q12737077
The [ANSWER] was a position held by Louis Auguste Olivier
['Q6686689', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q6686689 property:P39 ?c . ?c rdf:type ontology:Q12737077 }
Member of the Senate of Canada
The Member of the Senate of Canada was a position held by Louis Auguste Olivier
Member of the Senate of Canada
action filter_type
action find
entity Louis Auguste Olivier
relation position held
type occupation
['Louis Auguste Olivier', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Louis_Auguste_Olivier property:position_held ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2977137
Q12737077
USER
And what about Claude Carignan?
(Q2977137,P39,c(Q12737077))
action filter_type
action find
entity Q2977137
relation P39
type Q12737077
['Q2977137', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q2977137 property:P39 ?n . ?n rdf:type ontology:Q12737077 }
Claude Carignan
action filter_type
action find
entity Claude Carignan
relation position held
type occupation
['Claude Carignan', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Claude_Carignan property:position_held ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q18524027
SYSTEM
Member of the Senate of Canada
Q18524027
(Q2977137,P39,c(Q12737077))
action filter_type
action find
entity Q2977137
relation P39
type Q12737077
[ANSWER]
['Q2977137', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q2977137 property:P39 ?n . ?n rdf:type ontology:Q12737077 }
Member of the Senate of Canada
Member of the Senate of Canada
action filter_type
action find
entity Claude Carignan
relation position held
type occupation
['Claude Carignan', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Claude_Carignan property:position_held ?n . ?n rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6504997 Q2977137
P27
Q1048835
USER
Which political territories are Claude Carignan or Lawson Robinson an inhabitant of ?
OR((Q2977137,P27,c(Q1048835)), (Q6504997,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q2977137
relation P27
action find
entity Q6504997
relation P27
type Q1048835
{'OR': [['Q2977137', 'P27', {'concept': 'Q1048835'}], ['Q6504997', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?z ) { ( resource:Q2977137 ) ( resource:Q6504997 ) } . ?z property:P27 ?j } . ?j rdf:type ontology:Q1048835 }
Lawson Robinson Claude Carignan
action filter_type
action union
action find
entity Claude Carignan
relation country of citizenship
action find
entity Lawson Robinson
relation country of citizenship
type political territorial entity
{'OR': [['Claude Carignan', 'country of citizenship', {'concept': 'political territorial entity'}], ['Lawson Robinson', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?z ) { ( resource:Claude_Carignan ) ( resource:Lawson_Robinson ) } . ?z property:country_of_citizenship ?j } . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q781 Q16
SYSTEM
Antigua and Barbuda, Canada
Q781 Q16
OR((Q2977137,P27,c(Q1048835)), (Q6504997,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q2977137
relation P27
action find
entity Q6504997
relation P27
type Q1048835
[ANSWERS] are Claude Carignan or Lawson Robinson an inhabitant of
{'OR': [['Q2977137', 'P27', {'concept': 'Q1048835'}], ['Q6504997', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?z ) { ( resource:Q2977137 ) ( resource:Q6504997 ) } . ?z property:P27 ?j } . ?j rdf:type ontology:Q1048835 }
Antigua and Barbuda Canada
Antigua and Barbuda and Canada are Claude Carignan or Lawson Robinson an inhabitant of
Antigua and Barbuda Canada
action filter_type
action union
action find
entity Claude Carignan
relation country of citizenship
action find
entity Lawson Robinson
relation country of citizenship
type political territorial entity
{'OR': [['Claude Carignan', 'country of citizenship', {'concept': 'political territorial entity'}], ['Lawson Robinson', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?z ) { ( resource:Claude_Carignan ) ( resource:Lawson_Robinson ) } . ?z property:country_of_citizenship ?j } . ?j rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q16 Q47389
P740
Q43229
USER
How many organizations originated at Canada or Scorzè ?
(c(Q43229),P740,Q16) (c(Q43229),P740,Q47389)
action count
action union
action filter_type
action find_reverse
entity Q16
relation P740
type Q43229
action filter_type
action find_reverse
entity Q47389
relation P740
type Q43229
[{'concept': 'Q43229'}, 'P740', 'Q16'] [{'concept': 'Q43229'}, 'P740', 'Q47389']
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { VALUES ( ?h ) { ( resource:Q16 ) ( resource:Q47389 ) } . ?g property:P740 ?h }
Canada Scorzè
action count
action union
action filter_type
action find_reverse
entity Canada
relation location of formation
type organization
action filter_type
action find_reverse
entity Scorzè
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Canada'] [{'concept': 'organization'}, 'location of formation', 'Scorzè']
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { VALUES ( ?h ) { ( resource:Canada ) ( resource:Scorzè ) } . ?g property:location_of_formation ?h }
[]
organization
SYSTEM
7
Q3604619 Q7247471 Q511252 Q17510696 Q5326991 Q7975268 Q15973638
(c(Q43229),P740,Q16) (c(Q43229),P740,Q47389)
action count
action union
action filter_type
action find_reverse
entity Q16
relation P740
type Q43229
action filter_type
action find_reverse
entity Q47389
relation P740
type Q43229
[ANSWER]
[{'concept': 'Q43229'}, 'P740', 'Q16'] [{'concept': 'Q43229'}, 'P740', 'Q47389']
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { VALUES ( ?h ) { ( resource:Q16 ) ( resource:Q47389 ) } . ?g property:P740 ?h }
Acqua Minerale San Benedetto Procor International Federation of BodyBuilding & Fitness ComFree Earth's Own Food Company Wave Accounting SmartUse
7
action count
action union
action filter_type
action find_reverse
entity Canada
relation location of formation
type organization
action filter_type
action find_reverse
entity Scorzè
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Canada'] [{'concept': 'organization'}, 'location of formation', 'Scorzè']
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { VALUES ( ?h ) { ( resource:Canada ) ( resource:Scorzè ) } . ?g property:location_of_formation ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16
P463
Q484652
USER
What were that political territory a member of ?
action filter_type
action find
entity Q16
relation P463
type Q484652
SELECT DISTINCT ?q WHERE { resource:Q16 property:P463 ?q . ?q rdf:type ontology:Q484652 }
Canada
action filter_type
action find
entity Canada
relation member of
type international organization
SELECT DISTINCT ?q WHERE { resource:Canada property:member_of ?q . ?q rdf:type ontology:international_organization }
[]
international organization
Q81299 Q19771 Q1065
SYSTEM
Organization for Security and Co-operation in Europe, G20, United Nations
Q81299 Q19771 Q7785 Q1065 Q188822 Q37143 Q674182 Q134102 Q7184 Q1043527
action filter_type
action find
entity Q16
relation P463
type Q484652
That political territory a member of were the [ANSWERS]
SELECT DISTINCT ?q WHERE { resource:Q16 property:P463 ?q . ?q rdf:type ontology:Q484652 }
Organization for Security and Co-operation in Europe G20 Commonwealth of Nations United Nations Asian Development Bank G8 Arctic Council Organisation internationale de la Francophonie North Atlantic Treaty Organisation Multilateral Investment Guarantee Agency
That political territory a member of were the Organization for Security and Co-operation in Europe, G20 and United Nations
Organization for Security and Co-operation in Europe G20 United Nations
action filter_type
action find
entity Canada
relation member of
type international organization
SELECT DISTINCT ?q WHERE { resource:Canada property:member_of ?q . ?q rdf:type ontology:international_organization }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1065
P488
Q502895
USER
Which person was the chairperson of that international organization ?
(Q1065,P488,c(Q502895))
action filter_type
action find
entity Q1065
relation P488
type Q502895
['Q1065', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q1065 property:P488 ?e }
United Nations
action filter_type
action find
entity United Nations
relation chairperson
type common name
['United Nations', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:United_Nations property:chairperson ?e }
[]
common name
Clarification for simple ques.
Q1065
SYSTEM
Did you mean United Nations ?
Q81299 Q19771 Q1065
(Q81299,P488,c(Q502895)) (Q19771,P488,c(Q502895)) (Q1065,P488,c(Q502895))
[ANSWER]
['Q81299', 'P488', {'concept': 'Q502895'}] ['Q19771', 'P488', {'concept': 'Q502895'}] ['Q1065', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q1065 property:P488 ?e }
Organization for Security and Co-operation in Europe G20 United Nations
Did you mean United Nations ?
United Nations
['Organization for Security and Co-operation in Europe', 'chairperson', {'concept': 'common name'}] ['G20', 'chairperson', {'concept': 'common name'}] ['United Nations', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:United_Nations property:chairperson ?e }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1065,P488,c(Q502895))
['Q1065', 'P488', {'concept': 'Q502895'}]
['United Nations', 'chairperson', {'concept': 'common name'}]
[]
Q1253
SYSTEM
Ban Ki-moon
Q1253
(Q1065,P488,c(Q502895))
action filter_type
action find
entity Q1065
relation P488
type Q502895
[ANSWER] was the chairperson of that international organization
['Q1065', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q1065 property:P488 ?e }
Ban Ki-moon
Ban Ki-moon was the chairperson of that international organization
Ban Ki-moon
action filter_type
action find
entity United Nations
relation chairperson
type common name
['United Nations', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:United_Nations property:chairperson ?e }
[]