Simple Question (Direct)
Simple Question
Q1987111
P102
Q7210356
USER
Which party is Gonzalo N. Santos affiliated with ?
(Q1987111,P102,c(Q7210356))
action filter_type
action find
entity Q1987111
relation P102
type Q7210356
['Q1987111', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q7210356 . resource:Q1987111 property:P102 ?n }
Gonzalo N. Santos
action filter_type
action find
entity Gonzalo N. Santos
relation member of political party
type political organization
['Gonzalo N. Santos', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_organization . resource:Gonzalo_N._Santos property:member_of_political_party ?n }
[]
political organization
Q682969
SYSTEM
Institutional Revolutionary Party
Q682969
(Q1987111,P102,c(Q7210356))
action filter_type
action find
entity Q1987111
relation P102
type Q7210356
Gonzalo N. Santos is affiliated with [ANSWER]
['Q1987111', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q7210356 . resource:Q1987111 property:P102 ?n }
Institutional Revolutionary Party
Gonzalo N. Santos is affiliated with Institutional Revolutionary Party
Institutional Revolutionary Party
action filter_type
action find
entity Gonzalo N. Santos
relation member of political party
type political organization
['Gonzalo N. Santos', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_organization . resource:Gonzalo_N._Santos property:member_of_political_party ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q682969
P463
Q163740
USER
What was that political organization a member of ?
(Q682969,P463,c(Q163740))
action filter_type
action find
entity Q682969
relation P463
type Q163740
['Q682969', 'P463', {'concept': 'Q163740'}]
SELECT DISTINCT ?b WHERE { resource:Q682969 property:P463 ?b . ?b rdf:type ontology:Q163740 }
Institutional Revolutionary Party
action filter_type
action find
entity Institutional Revolutionary Party
relation member of
type nonprofit organization
['Institutional Revolutionary Party', 'member of', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?b WHERE { resource:Institutional_Revolutionary_Party property:member_of ?b . ?b rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q159454
SYSTEM
Socialist International
Q159454
(Q682969,P463,c(Q163740))
action filter_type
action find
entity Q682969
relation P463
type Q163740
That political organization a member of was the [ANSWER]
['Q682969', 'P463', {'concept': 'Q163740'}]
SELECT DISTINCT ?b WHERE { resource:Q682969 property:P463 ?b . ?b rdf:type ontology:Q163740 }
Socialist International
That political organization a member of was the Socialist International
Socialist International
action filter_type
action find
entity Institutional Revolutionary Party
relation member of
type nonprofit organization
['Institutional Revolutionary Party', 'member of', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?b WHERE { resource:Institutional_Revolutionary_Party property:member_of ?b . ?b rdf:type ontology:nonprofit_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q682969
P17
Q15617994
USER
Which administrative territory is Institutional Revolutionary Party located in ?
(Q682969,P17,c(Q15617994))
action filter_type
action find
entity Q682969
relation P17
type Q15617994
['Q682969', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q682969 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
Institutional Revolutionary Party
action filter_type
action find
entity Institutional Revolutionary Party
relation country
type designation for an administrative territorial entity
['Institutional Revolutionary Party', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Institutional_Revolutionary_Party property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96
SYSTEM
Mexico
Q96
(Q682969,P17,c(Q15617994))
action filter_type
action find
entity Q682969
relation P17
type Q15617994
Institutional Revolutionary Party is located in [ANSWER]
['Q682969', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q682969 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
Mexico
Institutional Revolutionary Party is located in Mexico
Mexico
action filter_type
action find
entity Institutional Revolutionary Party
relation country
type designation for an administrative territorial entity
['Institutional Revolutionary Party', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Institutional_Revolutionary_Party property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1987111
P106
Q12737077
USER
What is the profession of Gonzalo N. Santos ?
(Q1987111,P106,c(Q12737077))
action filter_type
action find
entity Q1987111
relation P106
type Q12737077
['Q1987111', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q1987111 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
Gonzalo N. Santos
action filter_type
action find
entity Gonzalo N. Santos
relation occupation
type occupation
['Gonzalo N. Santos', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Gonzalo_N._Santos property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q1987111,P106,c(Q12737077))
action filter_type
action find
entity Q1987111
relation P106
type Q12737077
The profession of Gonzalo N. Santos is a [ANSWER]
['Q1987111', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q1987111 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
politician
The profession of Gonzalo N. Santos is a politician
politician
action filter_type
action find
entity Gonzalo N. Santos
relation occupation
type occupation
['Gonzalo N. Santos', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Gonzalo_N._Santos property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q96
P463
Q43229 Q874405
USER
How many organizations and social groups were Mexico a member of ?
(Q96,P463,c(Q43229)) (Q96,P463,c(Q874405))
action count
action union
action filter_type
action find
entity Q96
relation P463
type Q43229
action filter_type
action find
entity Q96
relation P463
type Q874405
['Q96', 'P463', {'concept': 'Q43229'}] ['Q96', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { resource:Q96 property:P463 ?x . ?x rdf:type ontology:Q43229 } UNION { ?x rdf:type ontology:Q874405 . resource:Q96 property:P463 ?x } }
Mexico
action count
action union
action filter_type
action find
entity Mexico
relation member of
type organization
action filter_type
action find
entity Mexico
relation member of
type social group
['Mexico', 'member of', {'concept': 'organization'}] ['Mexico', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { resource:Mexico property:member_of ?x . ?x rdf:type ontology:organization } UNION { ?x rdf:type ontology:social_group . resource:Mexico property:member_of ?x } }
[]
organization social group
SYSTEM
17 organizations and 6 social groups
Q125761 Q83201 Q191384 Q32874 Q1153087 Q309195 Q1071706 Q41550 Q3772571 Q656801 Q1069175 Q82151 Q41984 Q40970 Q689859 Q971612 Q123759 Q1045401 Q782942 Q7825 Q170481 Q7178 Q827525
(Q96,P463,c(Q43229)) (Q96,P463,c(Q874405))
action count
action union
action filter_type
action find
entity Q96
relation P463
type Q43229
action filter_type
action find
entity Q96
relation P463
type Q874405
[ANSWER]
['Q96', 'P463', {'concept': 'Q43229'}] ['Q96', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { resource:Q96 property:P463 ?x . ?x rdf:type ontology:Q43229 } UNION { ?x rdf:type ontology:Q874405 . resource:Q96 property:P463 ?x } }
International Civil Aviation Organization Non-Aligned Movement International Bank for Reconstruction and Development United Nations Economic Commission for Latin America and the Caribbean Inter-American Development Bank Bank for International Settlements International Trade Union Confederation Organisation for Economic Co-operation and Development Caribbean Development Bank International Finance Corporation International Federation of Red Cross and Red Crescent Societies Food and Agriculture Organization of the United Nations International Atomic Energy Agency International Olympic Committee International Fund for Agricultural Development Group of 15 Organization of American States Community of Latin American and Caribbean States Australia Group World Trade Organization Asia-Pacific Economic Cooperation International Red Cross and Red Crescent Movementsac International Development Association
17 organizations and 6 social groups
action count
action union
action filter_type
action find
entity Mexico
relation member of
type organization
action filter_type
action find
entity Mexico
relation member of
type social group
['Mexico', 'member of', {'concept': 'organization'}] ['Mexico', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { resource:Mexico property:member_of ?x . ?x rdf:type ontology:organization } UNION { ?x rdf:type ontology:social_group . resource:Mexico property:member_of ?x } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q159454
P361
Q12737077
USER
Which occupation is a part of Socialist International ?
(c(Q12737077),P361,Q159454)
action filter_type
action find_reverse
entity Q159454
relation P361
type Q12737077
[{'concept': 'Q12737077'}, 'P361', 'Q159454']
SELECT DISTINCT ?c WHERE { ?c property:P361 resource:Q159454 . ?c rdf:type ontology:Q12737077 }
Socialist International
action filter_type
action find_reverse
entity Socialist International
relation part of
type occupation
[{'concept': 'occupation'}, 'part of', 'Socialist International']
SELECT DISTINCT ?c WHERE { ?c property:part_of resource:Socialist_International . ?c rdf:type ontology:occupation }
[]
occupation
Q27104951
SYSTEM
President of the Socialist International
Q27104951
(c(Q12737077),P361,Q159454)
action filter_type
action find_reverse
entity Q159454
relation P361
type Q12737077
The [ANSWER] is a part of Socialist International
[{'concept': 'Q12737077'}, 'P361', 'Q159454']
SELECT DISTINCT ?c WHERE { ?c property:P361 resource:Q159454 . ?c rdf:type ontology:Q12737077 }
President of the Socialist International
The President of the Socialist International is a part of Socialist International
President of the Socialist International
action filter_type
action find_reverse
entity Socialist International
relation part of
type occupation
[{'concept': 'occupation'}, 'part of', 'Socialist International']
SELECT DISTINCT ?c WHERE { ?c property:part_of resource:Socialist_International . ?c rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q27104951
P39
Q502895
USER
Which people held the position of that occupation ?
(c(Q502895),P39,Q27104951)
action filter_type
action find_reverse
entity Q27104951
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q27104951']
SELECT DISTINCT ?c WHERE { ?c property:P39 resource:Q27104951 . ?c rdf:type ontology:Q502895 }
President of the Socialist International
action filter_type
action find_reverse
entity President of the Socialist International
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'President of the Socialist International']
SELECT DISTINCT ?c WHERE { ?c property:position_held resource:President_of_the_Socialist_International . ?c rdf:type ontology:common_name }
[]
common name
Q311440 Q151917 Q6911815
SYSTEM
António Guterres, George Papandreou, Morgan Phillips
Q311440 Q151917 Q6911815
(c(Q502895),P39,Q27104951)
action filter_type
action find_reverse
entity Q27104951
relation P39
type Q502895
[ANSWERS] held the position of that occupation
[{'concept': 'Q502895'}, 'P39', 'Q27104951']
SELECT DISTINCT ?c WHERE { ?c property:P39 resource:Q27104951 . ?c rdf:type ontology:Q502895 }
António Guterres George Papandreou Morgan Phillips
António Guterres, George Papandreou and Morgan Phillips held the position of that occupation
António Guterres George Papandreou Morgan Phillips
action filter_type
action find_reverse
entity President of the Socialist International
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'President of the Socialist International']
SELECT DISTINCT ?c WHERE { ?c property:position_held resource:President_of_the_Socialist_International . ?c rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q151917
P6
Q640506
USER
Which cabinet has a government lead by that person ?
(c(Q640506),P6,Q151917)
action filter_type
action find_reverse
entity Q151917
relation P6
type Q640506
[{'concept': 'Q640506'}, 'P6', 'Q151917']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q640506 . ?n property:P6 resource:Q151917 }
George Papandreou
action filter_type
action find_reverse
entity George Papandreou
relation head of government
type cabinet
[{'concept': 'cabinet'}, 'head of government', 'George Papandreou']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:cabinet . ?n property:head_of_government resource:George_Papandreou }
[]
cabinet
Clarification for simple ques.
Q6911815
SYSTEM
Did you mean Morgan Phillips ?
Q311440 Q151917 Q6911815
(c(Q640506),P6,Q311440) (c(Q640506),P6,Q151917) (c(Q640506),P6,Q6911815)
[ANSWER]
[{'concept': 'Q640506'}, 'P6', 'Q311440'] [{'concept': 'Q640506'}, 'P6', 'Q151917'] [{'concept': 'Q640506'}, 'P6', 'Q6911815']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q640506 . ?n property:P6 resource:Q151917 }
António Guterres George Papandreou Morgan Phillips
Did you mean Morgan Phillips ?
Morgan Phillips
[{'concept': 'cabinet'}, 'head of government', 'António Guterres'] [{'concept': 'cabinet'}, 'head of government', 'George Papandreou'] [{'concept': 'cabinet'}, 'head of government', 'Morgan Phillips']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:cabinet . ?n property:head_of_government resource:George_Papandreou }
[]
Simple Question (Coreferenced)
USER
No, I meant George Papandreou. Could you tell me the answer for that?
(c(Q640506),P6,Q151917)
Q151917
[{'concept': 'Q640506'}, 'P6', 'Q151917']
[{'concept': 'cabinet'}, 'head of government', 'George Papandreou']
[]
Q1719923
SYSTEM
Cabinet of George Papandreou
Q1719923
(c(Q640506),P6,Q151917)
action filter_type
action find_reverse
entity Q151917
relation P6
type Q640506
[ANSWER] has a government lead by that person
[{'concept': 'Q640506'}, 'P6', 'Q151917']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q640506 . ?n property:P6 resource:Q151917 }
Cabinet of George Papandreou
Cabinet of George Papandreou has a government lead by that person
Cabinet of George Papandreou
action filter_type
action find_reverse
entity George Papandreou
relation head of government
type cabinet
[{'concept': 'cabinet'}, 'head of government', 'George Papandreou']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:cabinet . ?n property:head_of_government resource:George_Papandreou }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1719923
P6
Q502895
USER
Which person has that cabinet as its head of government ?
(Q1719923,P6,c(Q502895))
action filter_type
action find
entity Q1719923
relation P6
type Q502895
['Q1719923', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q1719923 property:P6 ?e . ?e rdf:type ontology:Q502895 }
Cabinet of George Papandreou
action filter_type
action find
entity Cabinet of George Papandreou
relation head of government
type common name
['Cabinet of George Papandreou', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Cabinet_of_George_Papandreou property:head_of_government ?e . ?e rdf:type ontology:common_name }
[]
common name
Q151917
SYSTEM
George Papandreou
Q151917
(Q1719923,P6,c(Q502895))
action filter_type
action find
entity Q1719923
relation P6
type Q502895
[ANSWER] has that cabinet as its head of government
['Q1719923', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q1719923 property:P6 ?e . ?e rdf:type ontology:Q502895 }
George Papandreou
George Papandreou has that cabinet as its head of government
George Papandreou
action filter_type
action find
entity Cabinet of George Papandreou
relation head of government
type common name
['Cabinet of George Papandreou', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Cabinet_of_George_Papandreou property:head_of_government ?e . ?e rdf:type ontology:common_name }
[]