Simple Question (Direct)
Simple Question
Q6390303
P27
Q15617994
USER
Which administrative territory is Kenneth Kaushansky a civilian of ?
(Q6390303,P27,c(Q15617994))
action filter_type
action find
entity Q6390303
relation P27
type Q15617994
['Q6390303', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . resource:Q6390303 property:P27 ?m }
Kenneth Kaushansky
action filter_type
action find
entity Kenneth Kaushansky
relation country of citizenship
type designation for an administrative territorial entity
['Kenneth Kaushansky', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Kenneth_Kaushansky property:country_of_citizenship ?m }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q6390303,P27,c(Q15617994))
action filter_type
action find
entity Q6390303
relation P27
type Q15617994
The [ANSWER] is Kenneth Kaushansky a civilian of
['Q6390303', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . resource:Q6390303 property:P27 ?m }
United States of America
The United States of America is Kenneth Kaushansky a civilian of
United States of America
action filter_type
action find
entity Kenneth Kaushansky
relation country of citizenship
type designation for an administrative territorial entity
['Kenneth Kaushansky', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Kenneth_Kaushansky property:country_of_citizenship ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6390303
P463
Q874405
USER
Which social group was that person a member of ?
(Q30,P463,c(Q874405))
action filter_type
action find
entity Q6390303
relation P463
type Q874405
['Q30', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?a WHERE { resource:Q6390303 property:P463 ?a . ?a rdf:type ontology:Q874405 }
Kenneth Kaushansky
action filter_type
action find
entity Kenneth Kaushansky
relation member of
type social group
['United States of America', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?a WHERE { resource:Kenneth_Kaushansky property:member_of ?a . ?a rdf:type ontology:social_group }
[]
social group
Q4352382
SYSTEM
National Academy of Medicine
Q4352382
(Q30,P463,c(Q874405))
action filter_type
action find
entity Q6390303
relation P463
type Q874405
[ANSWER] was that person a member of
['Q30', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?a WHERE { resource:Q6390303 property:P463 ?a . ?a rdf:type ontology:Q874405 }
National Academy of Medicine
National Academy of Medicine was that person a member of
National Academy of Medicine
action filter_type
action find
entity Kenneth Kaushansky
relation member of
type social group
['United States of America', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?a WHERE { resource:Kenneth_Kaushansky property:member_of ?a . ?a rdf:type ontology:social_group }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q4537806 Q6390303
P463
Q874405
USER
Or Jānis Sudrabkalns?
OR((Q6390303,P463,c(Q874405)), (Q4537806,P463,c(Q874405)))
action filter_type
action union
action find
entity Q6390303
relation P463
action find
entity Q4537806
relation P463
type Q874405
{'OR': [['Q6390303', 'P463', {'concept': 'Q874405'}], ['Q4537806', 'P463', {'concept': 'Q874405'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?l ) { ( resource:Q6390303 ) ( resource:Q4537806 ) } . ?l property:P463 ?q } . ?q rdf:type ontology:Q874405 }
Jānis Sudrabkalns Kenneth Kaushansky
action filter_type
action union
action find
entity Kenneth Kaushansky
relation member of
action find
entity Jānis Sudrabkalns
relation member of
type social group
{'OR': [['Kenneth Kaushansky', 'member of', {'concept': 'social group'}], ['Jānis Sudrabkalns', 'member of', {'concept': 'social group'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?l ) { ( resource:Kenneth_Kaushansky ) ( resource:Jānis_Sudrabkalns ) } . ?l property:member_of ?q } . ?q rdf:type ontology:social_group }
[]
social group
Q4352382 Q1425328
SYSTEM
National Academy of Medicine, USSR Union of Writers
Q4352382 Q1425328
OR((Q6390303,P463,c(Q874405)), (Q4537806,P463,c(Q874405)))
action filter_type
action union
action find
entity Q6390303
relation P463
action find
entity Q4537806
relation P463
type Q874405
[ANSWERS]
{'OR': [['Q6390303', 'P463', {'concept': 'Q874405'}], ['Q4537806', 'P463', {'concept': 'Q874405'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?l ) { ( resource:Q6390303 ) ( resource:Q4537806 ) } . ?l property:P463 ?q } . ?q rdf:type ontology:Q874405 }
National Academy of Medicine USSR Union of Writers
National Academy of Medicine USSR Union of Writers
action filter_type
action union
action find
entity Kenneth Kaushansky
relation member of
action find
entity Jānis Sudrabkalns
relation member of
type social group
{'OR': [['Kenneth Kaushansky', 'member of', {'concept': 'social group'}], ['Jānis Sudrabkalns', 'member of', {'concept': 'social group'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?l ) { ( resource:Kenneth_Kaushansky ) ( resource:Jānis_Sudrabkalns ) } . ?l property:member_of ?q } . ?q rdf:type ontology:social_group }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4537806
P102
Q7278
USER
Which political party is Jānis Sudrabkalns a member of ?
(Q4352382,P102,c(Q7278)) (Q1425328,P102,c(Q7278))
action filter_type
action find
entity Q4537806
relation P102
type Q7278
['Q4352382', 'P102', {'concept': 'Q7278'}] ['Q1425328', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?c WHERE { resource:Q4537806 property:P102 ?c . ?c rdf:type ontology:Q7278 }
Jānis Sudrabkalns
action filter_type
action find
entity Jānis Sudrabkalns
relation member of political party
type political party
['National Academy of Medicine', 'member of political party', {'concept': 'political party'}] ['USSR Union of Writers', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?c WHERE { resource:Jānis_Sudrabkalns property:member_of_political_party ?c . ?c rdf:type ontology:political_party }
[]
political party
Q79854
SYSTEM
Communist Party of the Soviet Union
Q79854
(Q4352382,P102,c(Q7278)) (Q1425328,P102,c(Q7278))
action filter_type
action find
entity Q4537806
relation P102
type Q7278
The [ANSWER] is Jānis Sudrabkalns a member of
['Q4352382', 'P102', {'concept': 'Q7278'}] ['Q1425328', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?c WHERE { resource:Q4537806 property:P102 ?c . ?c rdf:type ontology:Q7278 }
Communist Party of the Soviet Union
The Communist Party of the Soviet Union is Jānis Sudrabkalns a member of
Communist Party of the Soviet Union
action filter_type
action find
entity Jānis Sudrabkalns
relation member of political party
type political party
['National Academy of Medicine', 'member of political party', {'concept': 'political party'}] ['USSR Union of Writers', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?c WHERE { resource:Jānis_Sudrabkalns property:member_of_political_party ?c . ?c rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4537806
P119
Q43229
USER
Which organization is the place of burial of that person ?
(Q79854,P119,c(Q43229))
action filter_type
action find
entity Q4537806
relation P119
type Q43229
['Q79854', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?q WHERE { resource:Q4537806 property:P119 ?q . ?q rdf:type ontology:Q43229 }
Jānis Sudrabkalns
action filter_type
action find
entity Jānis Sudrabkalns
relation place of burial
type organization
['Communist Party of the Soviet Union', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?q WHERE { resource:Jānis_Sudrabkalns property:place_of_burial ?q . ?q rdf:type ontology:organization }
[]
organization
Q4222826
SYSTEM
Rainis Cemetery
Q4222826
(Q79854,P119,c(Q43229))
action filter_type
action find
entity Q4537806
relation P119
type Q43229
[ANSWER] is the place of burial of that person
['Q79854', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?q WHERE { resource:Q4537806 property:P119 ?q . ?q rdf:type ontology:Q43229 }
Rainis Cemetery
Rainis Cemetery is the place of burial of that person
Rainis Cemetery
action filter_type
action find
entity Jānis Sudrabkalns
relation place of burial
type organization
['Communist Party of the Soviet Union', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?q WHERE { resource:Jānis_Sudrabkalns property:place_of_burial ?q . ?q rdf:type ontology:organization }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q13192586 Q30
P47 P17
Q15617994
USER
Which administrative territories are adjacent to United States of America or do Kisė belong to ?
OR((Q30,P47,c(Q15617994)), (Q13192586,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P47
action find
entity Q13192586
relation P17
type Q15617994
{'OR': [['Q30', 'P47', {'concept': 'Q15617994'}], ['Q13192586', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . { { resource:Q30 property:P47 ?n } UNION { resource:Q13192586 property:P17 ?n } } }
Kisė United States of America
action filter_type
action union
action find
entity United States of America
relation shares border with
action find
entity Kisė
relation country
type designation for an administrative territorial entity
{'OR': [['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Kisė', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:United_States_of_America property:shares_border_with ?n } UNION { resource:Kisė property:country ?n } } }
[]
designation for an administrative territorial entity
Q96 Q804 Q786 Q17 Q241 Q159 Q790 Q717 Q710 Q702
SYSTEM
Some of them are Mexico, Panama, Dominican Republic, Japan, Cuba, Russia, Haiti, Venezuela, Kiribati, Federated States of Micronesia
Q702 Q804 Q159 Q96 Q683 Q786 Q241 Q17 Q710 Q678 Q717 Q37 Q790
OR((Q30,P47,c(Q15617994)), (Q13192586,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P47
action find
entity Q13192586
relation P17
type Q15617994
[ANSWERS] are adjacent to United States of America or do Kisė belong to
{'OR': [['Q30', 'P47', {'concept': 'Q15617994'}], ['Q13192586', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . { { resource:Q30 property:P47 ?n } UNION { resource:Q13192586 property:P17 ?n } } }
Federated States of Micronesia Panama Russia Mexico Samoa Dominican Republic Cuba Japan Kiribati Tonga Venezuela Lithuania Haiti
Mexico, Panama, Dominican Republic, Japan, Cuba, Russia, Haiti, Venezuela, Kiribati and Federated States of Micronesia are adjacent to United States of America or do Kisė belong to
Mexico Panama Dominican Republic Japan Cuba Russia Haiti Venezuela Kiribati Federated States of Micronesia
action filter_type
action union
action find
entity United States of America
relation shares border with
action find
entity Kisė
relation country
type designation for an administrative territorial entity
{'OR': [['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Kisė', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:United_States_of_America property:shares_border_with ?n } UNION { resource:Kisė property:country ?n } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q96 Q804 Q786 Q17 Q241 Q159 Q790 Q717 Q710 Q702
P463
Q43229
USER
What organizations had Mexico, Panama, Dominican Republic, Japan, Cuba, Russia, Haiti, Venezuela, Kiribati and Federated States of Micronesia as their member ?
(Q96,P463,c(Q43229)) (Q804,P463,c(Q43229)) (Q786,P463,c(Q43229)) (Q17,P463,c(Q43229)) (Q241,P463,c(Q43229)) (Q159,P463,c(Q43229)) (Q790,P463,c(Q43229)) (Q717,P463,c(Q43229)) (Q710,P463,c(Q43229)) (Q702,P463,c(Q43229))
action union
action filter_type
action find
entity Q96
relation P463
type Q43229
action filter_type
action find
entity Q804
relation P463
type Q43229
action filter_type
action find
entity Q786
relation P463
type Q43229
action filter_type
action find
entity Q17
relation P463
type Q43229
action filter_type
action find
entity Q241
relation P463
type Q43229
action filter_type
action find
entity Q159
relation P463
type Q43229
action filter_type
action find
entity Q790
relation P463
type Q43229
action filter_type
action find
entity Q717
relation P463
type Q43229
action filter_type
action find
entity Q710
relation P463
type Q43229
action filter_type
action find
entity Q702
relation P463
type Q43229
['Q96', 'P463', {'concept': 'Q43229'}] ['Q804', 'P463', {'concept': 'Q43229'}] ['Q786', 'P463', {'concept': 'Q43229'}] ['Q17', 'P463', {'concept': 'Q43229'}] ['Q241', 'P463', {'concept': 'Q43229'}] ['Q159', 'P463', {'concept': 'Q43229'}] ['Q790', 'P463', {'concept': 'Q43229'}] ['Q717', 'P463', {'concept': 'Q43229'}] ['Q710', 'P463', {'concept': 'Q43229'}] ['Q702', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?o WHERE { { resource:Q96 property:P463 ?o . ?o rdf:type ontology:Q43229 } UNION { ?o rdf:type ontology:Q43229 . resource:Q804 property:P463 ?o } }
Mexico Panama Dominican Republic Japan Cuba Russia Haiti Venezuela Kiribati Federated States of Micronesia
action union
action filter_type
action find
entity Mexico
relation member of
type organization
action filter_type
action find
entity Panama
relation member of
type organization
action filter_type
action find
entity Dominican Republic
relation member of
type organization
action filter_type
action find
entity Japan
relation member of
type organization
action filter_type
action find
entity Cuba
relation member of
type organization
action filter_type
action find
entity Russia
relation member of
type organization
action filter_type
action find
entity Haiti
relation member of
type organization
action filter_type
action find
entity Venezuela
relation member of
type organization
action filter_type
action find
entity Kiribati
relation member of
type organization
action filter_type
action find
entity Federated States of Micronesia
relation member of
type organization
['Mexico', 'member of', {'concept': 'organization'}] ['Panama', 'member of', {'concept': 'organization'}] ['Dominican Republic', 'member of', {'concept': 'organization'}] ['Japan', 'member of', {'concept': 'organization'}] ['Cuba', 'member of', {'concept': 'organization'}] ['Russia', 'member of', {'concept': 'organization'}] ['Haiti', 'member of', {'concept': 'organization'}] ['Venezuela', 'member of', {'concept': 'organization'}] ['Kiribati', 'member of', {'concept': 'organization'}] ['Federated States of Micronesia', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?o WHERE { { resource:Mexico property:member_of ?o . ?o rdf:type ontology:organization } UNION { ?o rdf:type ontology:organization . resource:Panama property:member_of ?o } }
[]
organization
Q7825 Q40970 Q7825
SYSTEM
International Olympic Committee for 2nd, World Trade Organization for 1st, 3rd
Q125761 Q191384 Q1153087 Q309195 Q41550 Q123759 Q689859 Q1045401 Q7825 Q170481 Q1071706 Q656801 Q40970 Q3772571 Q82151 Q7178 Q827525 Q191384 Q899770 Q656801 Q7825 Q827525 Q191384 Q656801 Q7825 Q827525 Q340195 Q191384 Q899770 Q41550 Q656801 Q7825 Q170481 Q827525 Q8874 Q1045401 Q7825 Q485207 Q7779 Q191384 Q7825 Q827525 Q656801 Q380340 Q170481 Q243630 Q191384 Q899770 Q3772571 Q656801 Q7825 Q827525 Q191384 Q3772571 Q656801 Q7825 Q191384 Q656801 Q827525 Q191384 Q899770 Q656801 Q827525
(Q96,P463,c(Q43229)) (Q804,P463,c(Q43229)) (Q786,P463,c(Q43229)) (Q17,P463,c(Q43229)) (Q241,P463,c(Q43229)) (Q159,P463,c(Q43229)) (Q790,P463,c(Q43229)) (Q717,P463,c(Q43229)) (Q710,P463,c(Q43229)) (Q702,P463,c(Q43229))
action union
action filter_type
action find
entity Q96
relation P463
type Q43229
action filter_type
action find
entity Q804
relation P463
type Q43229
action filter_type
action find
entity Q786
relation P463
type Q43229
action filter_type
action find
entity Q17
relation P463
type Q43229
action filter_type
action find
entity Q241
relation P463
type Q43229
action filter_type
action find
entity Q159
relation P463
type Q43229
action filter_type
action find
entity Q790
relation P463
type Q43229
action filter_type
action find
entity Q717
relation P463
type Q43229
action filter_type
action find
entity Q710
relation P463
type Q43229
action filter_type
action find
entity Q702
relation P463
type Q43229
[ANSWERS]
['Q96', 'P463', {'concept': 'Q43229'}] ['Q804', 'P463', {'concept': 'Q43229'}] ['Q786', 'P463', {'concept': 'Q43229'}] ['Q17', 'P463', {'concept': 'Q43229'}] ['Q241', 'P463', {'concept': 'Q43229'}] ['Q159', 'P463', {'concept': 'Q43229'}] ['Q790', 'P463', {'concept': 'Q43229'}] ['Q717', 'P463', {'concept': 'Q43229'}] ['Q710', 'P463', {'concept': 'Q43229'}] ['Q702', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?o WHERE { { resource:Q96 property:P463 ?o . ?o rdf:type ontology:Q43229 } UNION { ?o rdf:type ontology:Q43229 . resource:Q804 property:P463 ?o } }
International Civil Aviation Organization International Bank for Reconstruction and Development Inter-American Development Bank Bank for International Settlements Organisation for Economic Co-operation and Development Organization of American States International Fund for Agricultural Development Community of Latin American and Caribbean States World Trade Organization Asia-Pacific Economic Cooperation International Trade Union Confederation International Finance Corporation International Olympic Committee Caribbean Development Bank Food and Agriculture Organization of the United Nations International Red Cross and Red Crescent Movementsac International Development Association International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes International Finance Corporation World Trade Organization International Development Association International Bank for Reconstruction and Development International Finance Corporation World Trade Organization International Development Association African Development Bank International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes Organisation for Economic Co-operation and Development International Finance Corporation World Trade Organization Asia-Pacific Economic Cooperation International Development Association Bolivarian Alliance for the Americas Community of Latin American and Caribbean States World Trade Organization Shanghai Cooperation Organisation Commonwealth of Independent States International Bank for Reconstruction and Development World Trade Organization International Development Association International Finance Corporation Organization of the Black Sea Economic Cooperation Asia-Pacific Economic Cooperation BRICS International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes Caribbean Development Bank International Finance Corporation World Trade Organization International Development Association International Bank for Reconstruction and Development Caribbean Development Bank International Finance Corporation World Trade Organization International Bank for Reconstruction and Development International Finance Corporation International Development Association International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes International Finance Corporation International Development Association
World Trade Organization, International Olympic Committee and World Trade Organization had Mexico, Panama, Dominican Republic, Japan, Cuba, Russia, Haiti, Venezuela, Kiribati and Federated States of Micronesia as their member
World Trade Organization International Olympic Committee World Trade Organization
action union
action filter_type
action find
entity Mexico
relation member of
type organization
action filter_type
action find
entity Panama
relation member of
type organization
action filter_type
action find
entity Dominican Republic
relation member of
type organization
action filter_type
action find
entity Japan
relation member of
type organization
action filter_type
action find
entity Cuba
relation member of
type organization
action filter_type
action find
entity Russia
relation member of
type organization
action filter_type
action find
entity Haiti
relation member of
type organization
action filter_type
action find
entity Venezuela
relation member of
type organization
action filter_type
action find
entity Kiribati
relation member of
type organization
action filter_type
action find
entity Federated States of Micronesia
relation member of
type organization
['Mexico', 'member of', {'concept': 'organization'}] ['Panama', 'member of', {'concept': 'organization'}] ['Dominican Republic', 'member of', {'concept': 'organization'}] ['Japan', 'member of', {'concept': 'organization'}] ['Cuba', 'member of', {'concept': 'organization'}] ['Russia', 'member of', {'concept': 'organization'}] ['Haiti', 'member of', {'concept': 'organization'}] ['Venezuela', 'member of', {'concept': 'organization'}] ['Kiribati', 'member of', {'concept': 'organization'}] ['Federated States of Micronesia', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?o WHERE { { resource:Mexico property:member_of ?o . ?o rdf:type ontology:organization } UNION { ?o rdf:type ontology:organization . resource:Panama property:member_of ?o } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q40970
P664
Q15275719
USER
What was organized by that organization ?
(c(Q15275719),P664,Q40970)
action filter_type
action find_reverse
entity Q40970
relation P664
type Q15275719
[{'concept': 'Q15275719'}, 'P664', 'Q40970']
SELECT DISTINCT ?h WHERE { ?h property:P664 resource:Q40970 . ?h rdf:type ontology:Q15275719 }
International Olympic Committee
action filter_type
action find_reverse
entity International Olympic Committee
relation organizer
type recurring event
[{'concept': 'recurring event'}, 'organizer', 'International Olympic Committee']
SELECT DISTINCT ?h WHERE { ?h property:organizer resource:International_Olympic_Committee . ?h rdf:type ontology:recurring_event }
[]
recurring event
Clarification for simple ques.
Q7825
SYSTEM
Did you mean World Trade Organization ?
Q7825 Q40970 Q7825
(c(Q15275719),P664,Q7825) (c(Q15275719),P664,Q40970) (c(Q15275719),P664,Q7825)
[ANSWER]
[{'concept': 'Q15275719'}, 'P664', 'Q7825'] [{'concept': 'Q15275719'}, 'P664', 'Q40970'] [{'concept': 'Q15275719'}, 'P664', 'Q7825']
SELECT DISTINCT ?h WHERE { ?h property:P664 resource:Q40970 . ?h rdf:type ontology:Q15275719 }
World Trade Organization International Olympic Committee World Trade Organization
Did you mean World Trade Organization ?
World Trade Organization
[{'concept': 'recurring event'}, 'organizer', 'World Trade Organization'] [{'concept': 'recurring event'}, 'organizer', 'International Olympic Committee'] [{'concept': 'recurring event'}, 'organizer', 'World Trade Organization']
SELECT DISTINCT ?h WHERE { ?h property:organizer resource:International_Olympic_Committee . ?h rdf:type ontology:recurring_event }
[]
Simple Question (Coreferenced)
USER
No, I meant International Olympic Committee. Could you tell me the answer for that?
(c(Q15275719),P664,Q40970)
Q40970
[{'concept': 'Q15275719'}, 'P664', 'Q40970']
[{'concept': 'recurring event'}, 'organizer', 'International Olympic Committee']
[]
Q5389
SYSTEM
Olympic Games
Q5389
(c(Q15275719),P664,Q40970)
action filter_type
action find_reverse
entity Q40970
relation P664
type Q15275719
The [ANSWER] was organized by that organization
[{'concept': 'Q15275719'}, 'P664', 'Q40970']
SELECT DISTINCT ?h WHERE { ?h property:P664 resource:Q40970 . ?h rdf:type ontology:Q15275719 }
Olympic Games
The Olympic Games was organized by that organization
Olympic Games
action filter_type
action find_reverse
entity International Olympic Committee
relation organizer
type recurring event
[{'concept': 'recurring event'}, 'organizer', 'International Olympic Committee']
SELECT DISTINCT ?h WHERE { ?h property:organizer resource:International_Olympic_Committee . ?h rdf:type ontology:recurring_event }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q145
P122
Q22676587 Q1307214 Q15617994
USER
How many administrative territories have greater number of monarchic systems or forms of government as the form of government than United Kingdom ?
(c(Q15617994),P122,c(Q22676587)|c(Q1307214))
action count
action greater
action union
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action find_tuple_counts
relation P122
type Q15617994
type Q1307214
action count
action filter_multi_types
action find
entity Q145
relation P122
type Q22676587
type Q1307214
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:Q145 property:P122 ?p . { VALUES ( ?l ) { ( ontology:Q22676587 ) ( ontology:Q1307214 ) } . ?p rdf:type ?l } } } . FILTER ( ?e > ?n ) . { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?e ) WHERE { ?s rdf:type ?x . VALUES ( ?x ) { ( ontology:Q22676587 ) ( ontology:Q1307214 ) } } GROUP BY ?a } }
United Kingdom
action count
action greater
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type form of government
action count
action filter_multi_types
action find
entity United Kingdom
relation basic form of government
type monarchic system
type form of government
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'form of government'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:United_Kingdom property:basic_form_of_government ?p . { VALUES ( ?l ) { ( ontology:monarchic_system ) ( ontology:form_of_government ) } . ?p rdf:type ?l } } } . FILTER ( ?e > ?n ) . { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?e ) WHERE { ?s rdf:type ?x . VALUES ( ?x ) { ( ontology:monarchic_system ) ( ontology:form_of_government ) } } GROUP BY ?a } }
[]
monarchic system form of government designation for an administrative territorial entity
SYSTEM
13
Q154547 Q165116 Q833 Q208500 Q794 Q889 Q32 Q423 Q280312 Q347 Q17 Q199688 Q878
(c(Q15617994),P122,c(Q22676587)|c(Q1307214))
action count
action greater
action union
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action find_tuple_counts
relation P122
type Q15617994
type Q1307214
action count
action filter_multi_types
action find
entity Q145
relation P122
type Q22676587
type Q1307214
[ANSWER]
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:Q145 property:P122 ?p . { VALUES ( ?l ) { ( ontology:Q22676587 ) ( ontology:Q1307214 ) } . ?p rdf:type ?l } } } . FILTER ( ?e > ?n ) . { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?e ) WHERE { ?s rdf:type ?x . VALUES ( ?x ) { ( ontology:Q22676587 ) ( ontology:Q1307214 ) } } GROUP BY ?a } }
duchy grand duchy Malaysia principality Iran Afghanistan Luxembourg North Korea Principality of Lüneburg Liechtenstein Japan Almohad United Arab Emirates
13
action count
action greater
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type form of government
action count
action filter_multi_types
action find
entity United Kingdom
relation basic form of government
type monarchic system
type form of government
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'form of government'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:United_Kingdom property:basic_form_of_government ?p . { VALUES ( ?l ) { ( ontology:monarchic_system ) ( ontology:form_of_government ) } . ?p rdf:type ?l } } } . FILTER ( ?e > ?n ) . { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?e ) WHERE { ?s rdf:type ?x . VALUES ( ?x ) { ( ontology:monarchic_system ) ( ontology:form_of_government ) } } GROUP BY ?a } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q158290
P122
Q22676587 Q1307214 Q15617994
USER
And how about Duchy of Lucca?
(c(Q15617994),P122,c(Q22676587)|c(Q1307214))
action count
action greater
action union
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action find_tuple_counts
relation P122
type Q15617994
type Q1307214
action count
action filter_multi_types
action find
entity Q158290
relation P122
type Q22676587
type Q1307214
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?g ) AS ?t ) WHERE { ?g rdf:type ?p . VALUES ( ?p ) { ( ontology:Q22676587 ) ( ontology:Q1307214 ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { resource:Q158290 property:P122 ?v . { { ?v rdf:type ontology:Q1307214 } UNION { ?v rdf:type ontology:Q22676587 } } } } . FILTER ( ?t > ?i ) }
Duchy of Lucca
action count
action greater
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type form of government
action count
action filter_multi_types
action find
entity Duchy of Lucca
relation basic form of government
type monarchic system
type form of government
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'form of government'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?g ) AS ?t ) WHERE { ?g rdf:type ?p . VALUES ( ?p ) { ( ontology:monarchic_system ) ( ontology:form_of_government ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { resource:Duchy_of_Lucca property:basic_form_of_government ?v . { { ?v rdf:type ontology:form_of_government } UNION { ?v rdf:type ontology:monarchic_system } } } } . FILTER ( ?t > ?i ) }
[]
monarchic system form of government designation for an administrative territorial entity
SYSTEM
13
Q154547 Q165116 Q833 Q208500 Q794 Q889 Q32 Q423 Q280312 Q347 Q17 Q199688 Q878
(c(Q15617994),P122,c(Q22676587)|c(Q1307214))
action count
action greater
action union
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action find_tuple_counts
relation P122
type Q15617994
type Q1307214
action count
action filter_multi_types
action find
entity Q158290
relation P122
type Q22676587
type Q1307214
[ANSWER]
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?g ) AS ?t ) WHERE { ?g rdf:type ?p . VALUES ( ?p ) { ( ontology:Q22676587 ) ( ontology:Q1307214 ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { resource:Q158290 property:P122 ?v . { { ?v rdf:type ontology:Q1307214 } UNION { ?v rdf:type ontology:Q22676587 } } } } . FILTER ( ?t > ?i ) }
duchy grand duchy Malaysia principality Iran Afghanistan Luxembourg North Korea Principality of Lüneburg Liechtenstein Japan Almohad United Arab Emirates
13
action count
action greater
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type form of government
action count
action filter_multi_types
action find
entity Duchy of Lucca
relation basic form of government
type monarchic system
type form of government
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'form of government'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?g ) AS ?t ) WHERE { ?g rdf:type ?p . VALUES ( ?p ) { ( ontology:monarchic_system ) ( ontology:form_of_government ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { resource:Duchy_of_Lucca property:basic_form_of_government ?v . { { ?v rdf:type ontology:form_of_government } UNION { ?v rdf:type ontology:monarchic_system } } } } . FILTER ( ?t > ?i ) }
[]