Simple Question (Direct)
Simple Question
Q1870804
P27
Q1048835
USER
Which political territory is Lothar Eickhoff an inhabitant of ?
(Q1870804,P27,c(Q1048835))
action filter_type
action find
entity Q1870804
relation P27
type Q1048835
['Q1870804', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { resource:Q1870804 property:P27 ?j . ?j rdf:type ontology:Q1048835 }
Lothar Eickhoff
action filter_type
action find
entity Lothar Eickhoff
relation country of citizenship
type political territorial entity
['Lothar Eickhoff', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Lothar_Eickhoff property:country_of_citizenship ?j . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1870804,P27,c(Q1048835))
action filter_type
action find
entity Q1870804
relation P27
type Q1048835
[ANSWER] is Lothar Eickhoff an inhabitant of
['Q1870804', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { resource:Q1870804 property:P27 ?j . ?j rdf:type ontology:Q1048835 }
Germany
Germany is Lothar Eickhoff an inhabitant of
Germany
action filter_type
action find
entity Lothar Eickhoff
relation country of citizenship
type political territorial entity
['Lothar Eickhoff', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Lothar_Eickhoff property:country_of_citizenship ?j . ?j rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1870804
P20
Q15617994
USER
Where did that person die ?
(Q183,P20,c(Q15617994))
action filter_type
action find
entity Q1870804
relation P20
type Q15617994
['Q183', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q1870804 property:P20 ?b . ?b rdf:type ontology:Q15617994 }
Lothar Eickhoff
action filter_type
action find
entity Lothar Eickhoff
relation place of death
type designation for an administrative territorial entity
['Germany', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Lothar_Eickhoff property:place_of_death ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q72138
SYSTEM
Lacco Ameno
Q72138
(Q183,P20,c(Q15617994))
action filter_type
action find
entity Q1870804
relation P20
type Q15617994
That person died in [ANSWER]
['Q183', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q1870804 property:P20 ?b . ?b rdf:type ontology:Q15617994 }
Lacco Ameno
That person died in Lacco Ameno
Lacco Ameno
action filter_type
action find
entity Lothar Eickhoff
relation place of death
type designation for an administrative territorial entity
['Germany', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Lothar_Eickhoff property:place_of_death ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q1048835 Q56061 Q515
USER
Which political territories have approximately 2 administrative territories and cities as their county seat ?
(c(Q56061)|c(Q515),P1376,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
value 2
[[{'concept': 'Q56061'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?k = 2 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) ?e WHERE { VALUES ( ?a ) { ( ontology:Q515 ) ( ontology:Q56061 ) } . ?b rdf:type ?a } GROUP BY ?e } }
action approx
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
value 2
[[{'concept': 'administrative territorial entity'}, {'concept': 'city'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?k = 2 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) ?e WHERE { VALUES ( ?a ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } . ?b rdf:type ?a } GROUP BY ?e } }
[]
political territorial entity administrative territorial entity city
Q13353 Q183
SYSTEM
Montserrat, Germany
Q13353 Q183
(c(Q56061)|c(Q515),P1376,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
value 2
[ANSWERS] have approximately 2 administrative territories and cities as their county seat
[[{'concept': 'Q56061'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?k = 2 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) ?e WHERE { VALUES ( ?a ) { ( ontology:Q515 ) ( ontology:Q56061 ) } . ?b rdf:type ?a } GROUP BY ?e } }
Montserrat Germany
Montserrat and Germany have approximately 2 administrative territories and cities as their county seat
Montserrat Germany
action approx
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
value 2
[[{'concept': 'administrative territorial entity'}, {'concept': 'city'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?k = 2 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) ?e WHERE { VALUES ( ?a ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } . ?b rdf:type ?a } GROUP BY ?e } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories holds diplomatic relationship with max number of political territories ?
(c(Q1048835),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?a ) { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?v ) WHERE { ?x property:P530 ?n . ?x rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q1048835 } GROUP BY ?x } } . { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?b ) WHERE { ?i property:P530 ?c . ?i rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q1048835 } GROUP BY ?i } . FILTER ( ?b = ?a ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?a ) { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?v ) WHERE { ?x property:diplomatic_relation ?n . ?x rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:political_territorial_entity } GROUP BY ?x } } . { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?b ) WHERE { ?i property:diplomatic_relation ?c . ?i rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?i } . FILTER ( ?b = ?a ) }
[]
political territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWER] holds diplomatic relationship with max number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?a ) { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?v ) WHERE { ?x property:P530 ?n . ?x rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q1048835 } GROUP BY ?x } } . { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?b ) WHERE { ?i property:P530 ?c . ?i rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q1048835 } GROUP BY ?i } . FILTER ( ?b = ?a ) }
Australia
Australia holds diplomatic relationship with max number of political territories
Australia
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?a ) { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?v ) WHERE { ?x property:diplomatic_relation ?n . ?x rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:political_territorial_entity } GROUP BY ?x } } . { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?b ) WHERE { ?i property:diplomatic_relation ?c . ?i rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?i } . FILTER ( ?b = ?a ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1925048
P122
Q7275 Q1307214 Q1048835
USER
Which political territories have more number of states and forms of government as government than San Pedro Partido ?
(c(Q1048835),P122,c(Q7275)|c(Q1307214))
action greater
action union
action find_tuple_counts
relation P122
type Q1048835
type Q7275
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
action count
action filter_multi_types
action find
entity Q1925048
relation P122
type Q7275
type Q1307214
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q7275'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?o ) WHERE { { ?s property:P122 ?f . ?s rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q7275 } UNION { ?s property:P122 ?f . ?s rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q1307214 } } GROUP BY ?s } . FILTER ( ?o > ?t ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Q1925048 property:P122 ?p . { ?p rdf:type ?l . VALUES ( ?l ) { ( ontology:Q7275 ) ( ontology:Q1307214 ) } } } } }
San Pedro Partido
action greater
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type state
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
action count
action filter_multi_types
action find
entity San Pedro Partido
relation basic form of government
type state
type form of government
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'state'}, {'concept': 'form of government'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?o ) WHERE { { ?s property:basic_form_of_government ?f . ?s rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:state } UNION { ?s property:basic_form_of_government ?f . ?s rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:form_of_government } } GROUP BY ?s } . FILTER ( ?o > ?t ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:San_Pedro_Partido property:basic_form_of_government ?p . { ?p rdf:type ?l . VALUES ( ?l ) { ( ontology:state ) ( ontology:form_of_government ) } } } } }
[]
state form of government political territorial entity
Q408 Q16 Q129286
SYSTEM
Australia, Canada, British Raj
Q178084 Q16 Q408 Q1250464 Q129286
(c(Q1048835),P122,c(Q7275)|c(Q1307214))
action greater
action union
action find_tuple_counts
relation P122
type Q1048835
type Q7275
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
action count
action filter_multi_types
action find
entity Q1925048
relation P122
type Q7275
type Q1307214
[ANSWERS] have more number of states and forms of government as government than San Pedro Partido
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q7275'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?o ) WHERE { { ?s property:P122 ?f . ?s rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q7275 } UNION { ?s property:P122 ?f . ?s rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q1307214 } } GROUP BY ?s } . FILTER ( ?o > ?t ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Q1925048 property:P122 ?p . { ?p rdf:type ?l . VALUES ( ?l ) { ( ontology:Q7275 ) ( ontology:Q1307214 ) } } } } }
Ilkhanate Canada Australia realm British Raj
Australia, Canada and British Raj have more number of states and forms of government as government than San Pedro Partido
Australia Canada British Raj
action greater
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type state
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
action count
action filter_multi_types
action find
entity San Pedro Partido
relation basic form of government
type state
type form of government
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'state'}, {'concept': 'form of government'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?o ) WHERE { { ?s property:basic_form_of_government ?f . ?s rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:state } UNION { ?s property:basic_form_of_government ?f . ?s rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:form_of_government } } GROUP BY ?s } . FILTER ( ?o > ?t ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:San_Pedro_Partido property:basic_form_of_government ?p . { ?p rdf:type ?l . VALUES ( ?l ) { ( ontology:state ) ( ontology:form_of_government ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q223793
P122
Q7275 Q1307214 Q1048835
USER
And also tell me about Kingdom of Etruria?
(c(Q1048835),P122,c(Q7275)|c(Q1307214))
action greater
action union
action find_tuple_counts
relation P122
type Q1048835
type Q7275
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
action count
action filter_multi_types
action find
entity Q223793
relation P122
type Q7275
type Q1307214
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q7275'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?r ) WHERE { VALUES ( ?e ) { ( ontology:Q7275 ) ( ontology:Q1307214 ) } . ?v rdf:type ?e } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { { ?c rdf:type ontology:Q7275 } UNION { ?c rdf:type ontology:Q1307214 } } . resource:Q223793 property:P122 ?c } } . FILTER ( ?r > ?u ) }
Kingdom of Etruria
action greater
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type state
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
action count
action filter_multi_types
action find
entity Kingdom of Etruria
relation basic form of government
type state
type form of government
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'state'}, {'concept': 'form of government'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?r ) WHERE { VALUES ( ?e ) { ( ontology:state ) ( ontology:form_of_government ) } . ?v rdf:type ?e } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { { ?c rdf:type ontology:state } UNION { ?c rdf:type ontology:form_of_government } } . resource:Kingdom_of_Etruria property:basic_form_of_government ?c } } . FILTER ( ?r > ?u ) }
[]
state form of government political territorial entity
Q408 Q16 Q129286
SYSTEM
Australia, Canada, British Raj
Q178084 Q16 Q408 Q1250464 Q129286
(c(Q1048835),P122,c(Q7275)|c(Q1307214))
action greater
action union
action find_tuple_counts
relation P122
type Q1048835
type Q7275
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
action count
action filter_multi_types
action find
entity Q223793
relation P122
type Q7275
type Q1307214
[ANSWERS]
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q7275'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?r ) WHERE { VALUES ( ?e ) { ( ontology:Q7275 ) ( ontology:Q1307214 ) } . ?v rdf:type ?e } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { { ?c rdf:type ontology:Q7275 } UNION { ?c rdf:type ontology:Q1307214 } } . resource:Q223793 property:P122 ?c } } . FILTER ( ?r > ?u ) }
Ilkhanate Canada Australia realm British Raj
Australia Canada British Raj
action greater
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type state
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
action count
action filter_multi_types
action find
entity Kingdom of Etruria
relation basic form of government
type state
type form of government
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'state'}, {'concept': 'form of government'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?r ) WHERE { VALUES ( ?e ) { ( ontology:state ) ( ontology:form_of_government ) } . ?v rdf:type ?e } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { { ?c rdf:type ontology:state } UNION { ?c rdf:type ontology:form_of_government } } . resource:Kingdom_of_Etruria property:basic_form_of_government ?c } } . FILTER ( ?r > ?u ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q218678
P710
Q1190554
USER
Did those political territories particiate in North African Campaign ?
(Q218678,P710,Q408) (Q218678,P710,Q16) (Q218678,P710,Q129286)
action is_in
entity prev_answer
action find
entity Q218678
relation P710
['Q218678', 'P710', 'Q408'] ['Q218678', 'P710', 'Q16'] ['Q218678', 'P710', 'Q129286']
ASK WHERE { resource:Q218678 property:P710 ?y . VALUES ( ?y ) { ( resource:Q178084 ) ( resource:Q16 ) ( resource:Q408 ) } }
North African Campaign
action is_in
entity prev_answer
action find
entity North African Campaign
relation participant
['North African Campaign', 'participant', 'Australia'] ['North African Campaign', 'participant', 'Canada'] ['North African Campaign', 'participant', 'British Raj']
ASK WHERE { resource:North_African_Campaign property:participant ?y . VALUES ( ?y ) { ( resource:Ilkhanate ) ( resource:Canada ) ( resource:Australia ) } }
[]
event
SYSTEM
YES
(Q218678,P710,Q408) (Q218678,P710,Q16) (Q218678,P710,Q129286)
action is_in
entity prev_answer
action find
entity Q218678
relation P710
[ANSWER]
['Q218678', 'P710', 'Q408'] ['Q218678', 'P710', 'Q16'] ['Q218678', 'P710', 'Q129286']
ASK WHERE { resource:Q218678 property:P710 ?y . VALUES ( ?y ) { ( resource:Q178084 ) ( resource:Q16 ) ( resource:Q408 ) } }
Yes
action is_in
entity prev_answer
action find
entity North African Campaign
relation participant
['North African Campaign', 'participant', 'Australia'] ['North African Campaign', 'participant', 'Canada'] ['North African Campaign', 'participant', 'British Raj']
ASK WHERE { resource:North_African_Campaign property:participant ?y . VALUES ( ?y ) { ( resource:Ilkhanate ) ( resource:Canada ) ( resource:Australia ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q16188275 Q408
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with Australia or do Adrian Saxrud Danielsen belong to ?
OR((Q408,P530,c(Q15617994)), (Q16188275,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q408
relation P530
action find
entity Q16188275
relation P27
type Q15617994
{'OR': [['Q408', 'P530', {'concept': 'Q15617994'}], ['Q16188275', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q16188275 property:P27 ?r } UNION { resource:Q408 property:P530 ?r } } . ?r rdf:type ontology:Q15617994 }
Adrian Saxrud Danielsen Australia
action filter_type
action union
action find
entity Australia
relation diplomatic relation
action find
entity Adrian Saxrud Danielsen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Adrian Saxrud Danielsen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Adrian_Saxrud_Danielsen property:country_of_citizenship ?r } UNION { resource:Australia property:diplomatic_relation ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q414 Q27 Q45 Q954 Q213 Q902 Q212 Q833 Q258 Q1036
SYSTEM
Some of them are Argentina, Ireland, Portugal, Zimbabwe, Czech Republic, Bangladesh, Ukraine, Malaysia, South Africa, Uganda
Q702 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q786 Q924 Q712 Q711 Q836 Q837 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q244 Q33 Q921 Q31 Q30 Q37 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q424 Q851 Q733 Q854 Q734 Q736 Q233 Q20 Q1041 Q27 Q29 Q1027 Q1020 Q843 Q1029 Q225 Q224 Q221 Q96 Q229 Q17 Q902 Q1036 Q1033 Q1030 Q191 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q215 Q218 Q219 Q916 Q833 Q977 Q1009 Q683 Q686 Q574 Q79 Q77 Q878 Q774 Q817 Q810 Q811 Q819 Q678 Q33788 Q869 Q953
OR((Q408,P530,c(Q15617994)), (Q16188275,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q408
relation P530
action find
entity Q16188275
relation P27
type Q15617994
[ANSWERS] have diplomatic relationships with Australia or do Adrian Saxrud Danielsen belong to
{'OR': [['Q408', 'P530', {'concept': 'Q15617994'}], ['Q16188275', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q16188275 property:P27 ?r } UNION { resource:Q408 property:P530 ?r } } . ?r rdf:type ontology:Q15617994 }
Federated States of Micronesia Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Dominican Republic Tanzania Fiji Mongolia Myanmar Nepal Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil El Salvador Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Barbados Finland Brunei Belgium United States of America Lithuania Poland Sweden Philippines Switzerland Italy Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Guyana Ecuador Malta Norway Senegal Ireland Spain Mauritius Malawi Pakistan Mozambique Bosnia and Herzegovina Croatia Republic of Macedonia Mexico Cyprus Japan Bangladesh Uganda Nigeria Namibia Estonia Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Slovenia Romania Bulgaria Angola Malaysia Djibouti Cameroon Samoa Vanuatu East Timor Egypt Uruguay United Arab Emirates Guatemala Kuwait Jordan Nicaragua Laos Tonga New Caledonia Thailand Zambia
Argentina, Ireland, Portugal, Zimbabwe, Czech Republic, Bangladesh, Ukraine, Malaysia, South Africa and Uganda have diplomatic relationships with Australia or do Adrian Saxrud Danielsen belong to
Argentina Ireland Portugal Zimbabwe Czech Republic Bangladesh Ukraine Malaysia South Africa Uganda
action filter_type
action union
action find
entity Australia
relation diplomatic relation
action find
entity Adrian Saxrud Danielsen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Adrian Saxrud Danielsen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Adrian_Saxrud_Danielsen property:country_of_citizenship ?r } UNION { resource:Australia property:diplomatic_relation ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q228
P530
Q15617994 Q15617994
USER
Which administrative territories have tactful political relations with greater number of administrative territories than Andorra ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q228
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?y ) WHERE { ?d property:P530 ?n . ?d rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { ?h rdf:type ontology:Q15617994 . resource:Q228 property:P530 ?h } } . FILTER ( ?y > ?c ) }
Andorra
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Andorra
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?y ) WHERE { ?d property:diplomatic_relation ?n . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Andorra property:diplomatic_relation ?h } } . FILTER ( ?y > ?c ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q822 Q241 Q32 Q31 Q30 Q928 Q929 Q39 Q38 Q230 Q27 Q843 Q184 Q225 Q222 Q347 Q17 Q902 Q114 Q212 Q213 Q218 Q79 Q858 Q948 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q228
relation P530
type Q15617994
[ANSWERS] have tactful political relations with greater number of administrative territories than Andorra
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?y ) WHERE { ?d property:P530 ?n . ?d rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { ?h rdf:type ontology:Q15617994 . resource:Q228 property:P530 ?h } } . FILTER ( ?y > ?c ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Lebanon Cuba Luxembourg Belgium United States of America Philippines Central African Republic Switzerland Italy Georgia Ireland Pakistan Belarus Bosnia and Herzegovina Albania Liechtenstein Japan Bangladesh Kenya Ukraine Czech Republic Romania Egypt Syria Tunisia Libya Cape Verde Zambia
Italy, Brazil and United States of America have tactful political relations with greater number of administrative territories than Andorra
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Andorra
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?y ) WHERE { ?d property:diplomatic_relation ?n . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Andorra property:diplomatic_relation ?h } } . FILTER ( ?y > ?c ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q902
P530
Q15617994 Q15617994
USER
And what about Bangladesh?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q902
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?j ) WHERE { ?c property:P530 ?t . ?c rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { resource:Q902 property:P530 ?x . ?x rdf:type ontology:Q15617994 } } . FILTER ( ?j > ?a ) }
Bangladesh
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Bangladesh
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?j ) WHERE { ?c property:diplomatic_relation ?t . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { resource:Bangladesh property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?j > ?a ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q711 Q252 Q403 Q159 Q43 Q155 Q796 Q794 Q884 Q30 Q929 Q38 Q230 Q27 Q184 Q225 Q222 Q347 Q17 Q114 Q212 Q213 Q79 Q858 Q948 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q902
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?j ) WHERE { ?c property:P530 ?t . ?c rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { resource:Q902 property:P530 ?x . ?x rdf:type ontology:Q15617994 } } . FILTER ( ?j > ?a ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Mongolia Indonesia Serbia Russia Turkey Brazil Iraq Iran South Korea United States of America Central African Republic Italy Georgia Ireland Belarus Bosnia and Herzegovina Albania Liechtenstein Japan Kenya Ukraine Czech Republic Egypt Syria Tunisia Cape Verde Zambia
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Bangladesh
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?j ) WHERE { ?c property:diplomatic_relation ?t . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { resource:Bangladesh property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?j > ?a ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q30
P176
Q1137468
USER
What was manufactured by that administrative territory ?
(c(Q1137468),P176,Q30)
action filter_type
action find_reverse
entity Q30
relation P176
type Q1137468
[{'concept': 'Q1137468'}, 'P176', 'Q30']
SELECT DISTINCT ?o WHERE { ?o property:P176 resource:Q30 . ?o rdf:type ontology:Q1137468 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation manufacturer
type aerial bomb
[{'concept': 'aerial bomb'}, 'manufacturer', 'United States of America']
SELECT DISTINCT ?o WHERE { ?o property:manufacturer resource:United_States_of_America . ?o rdf:type ontology:aerial_bomb }
[]
aerial bomb
Clarification for simple ques.
Q38
SYSTEM
Did you mean Italy ?
Q38 Q155 Q30
(c(Q1137468),P176,Q38) (c(Q1137468),P176,Q155) (c(Q1137468),P176,Q30)
[ANSWER]
[{'concept': 'Q1137468'}, 'P176', 'Q38'] [{'concept': 'Q1137468'}, 'P176', 'Q155'] [{'concept': 'Q1137468'}, 'P176', 'Q30']
SELECT DISTINCT ?o WHERE { ?o property:P176 resource:Q30 . ?o rdf:type ontology:Q1137468 }
Italy Brazil United States of America
Did you mean Italy ?
Italy
[{'concept': 'aerial bomb'}, 'manufacturer', 'Italy'] [{'concept': 'aerial bomb'}, 'manufacturer', 'Brazil'] [{'concept': 'aerial bomb'}, 'manufacturer', 'United States of America']
SELECT DISTINCT ?o WHERE { ?o property:manufacturer resource:United_States_of_America . ?o rdf:type ontology:aerial_bomb }
[]
Simple Question (Coreferenced)
USER
No, I meant United States of America. Could you tell me the answer for that?
(c(Q1137468),P176,Q30)
Q30
[{'concept': 'Q1137468'}, 'P176', 'Q30']
[{'concept': 'aerial bomb'}, 'manufacturer', 'United States of America']
[]
Q15139534
SYSTEM
M5
Q15139534
(c(Q1137468),P176,Q30)
action filter_type
action find_reverse
entity Q30
relation P176
type Q1137468
[ANSWER] was manufactured by that administrative territory
[{'concept': 'Q1137468'}, 'P176', 'Q30']
SELECT DISTINCT ?o WHERE { ?o property:P176 resource:Q30 . ?o rdf:type ontology:Q1137468 }
M5
M5 was manufactured by that administrative territory
M5
action filter_type
action find_reverse
entity United States of America
relation manufacturer
type aerial bomb
[{'concept': 'aerial bomb'}, 'manufacturer', 'United States of America']
SELECT DISTINCT ?o WHERE { ?o property:manufacturer resource:United_States_of_America . ?o rdf:type ontology:aerial_bomb }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q95426 Q1870804
P19 P937
Q56061
USER
Which administrative territories were Lothar Eickhoff born in or are the locations where Paul Graetz worked ?
OR((Q1870804,P19,c(Q56061)), (Q95426,P937,c(Q56061)))
action filter_type
action union
action find
entity Q1870804
relation P19
action find
entity Q95426
relation P937
type Q56061
{'OR': [['Q1870804', 'P19', {'concept': 'Q56061'}], ['Q95426', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q1870804 property:P19 ?e } UNION { resource:Q95426 property:P937 ?e } } . ?e rdf:type ontology:Q56061 }
Paul Graetz Lothar Eickhoff
action filter_type
action union
action find
entity Lothar Eickhoff
relation place of birth
action find
entity Paul Graetz
relation work location
type administrative territorial entity
{'OR': [['Lothar Eickhoff', 'place of birth', {'concept': 'administrative territorial entity'}], ['Paul Graetz', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Lothar_Eickhoff property:place_of_birth ?e } UNION { resource:Paul_Graetz property:work_location ?e } } . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q393
SYSTEM
Berlin, Szczecin
Q64 Q393
OR((Q1870804,P19,c(Q56061)), (Q95426,P937,c(Q56061)))
action filter_type
action union
action find
entity Q1870804
relation P19
action find
entity Q95426
relation P937
type Q56061
Or are the locations where Paul Graetz worked in [ANSWERS] Lothar Eickhoff were born in
{'OR': [['Q1870804', 'P19', {'concept': 'Q56061'}], ['Q95426', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q1870804 property:P19 ?e } UNION { resource:Q95426 property:P937 ?e } } . ?e rdf:type ontology:Q56061 }
Berlin Szczecin
Or are the locations where Paul Graetz worked in Berlin and Szczecin Lothar Eickhoff were born in
Berlin Szczecin
action filter_type
action union
action find
entity Lothar Eickhoff
relation place of birth
action find
entity Paul Graetz
relation work location
type administrative territorial entity
{'OR': [['Lothar Eickhoff', 'place of birth', {'concept': 'administrative territorial entity'}], ['Paul Graetz', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Lothar_Eickhoff property:place_of_birth ?e } UNION { resource:Paul_Graetz property:work_location ?e } } . ?e rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1294879
P937
Q502895
USER
Do Edwin Paul Wieringa have those administrative territories as work location ?
(Q1294879,P937,Q64) (Q1294879,P937,Q393)
action is_in
entity prev_answer
action find
entity Q1294879
relation P937
['Q1294879', 'P937', 'Q64'] ['Q1294879', 'P937', 'Q393']
ASK WHERE { VALUES ( ?e ) { ( resource:Q64 ) ( resource:Q393 ) } . resource:Q1294879 property:P937 ?e }
Edwin Paul Wieringa
action is_in
entity prev_answer
action find
entity Edwin Paul Wieringa
relation work location
['Edwin Paul Wieringa', 'work location', 'Berlin'] ['Edwin Paul Wieringa', 'work location', 'Szczecin']
ASK WHERE { VALUES ( ?e ) { ( resource:Berlin ) ( resource:Szczecin ) } . resource:Edwin_Paul_Wieringa property:work_location ?e }
[]
common name
SYSTEM
NO
(Q1294879,P937,Q64) (Q1294879,P937,Q393)
action is_in
entity prev_answer
action find
entity Q1294879
relation P937
[ANSWER]
['Q1294879', 'P937', 'Q64'] ['Q1294879', 'P937', 'Q393']
ASK WHERE { VALUES ( ?e ) { ( resource:Q64 ) ( resource:Q393 ) } . resource:Q1294879 property:P937 ?e }
No
action is_in
entity prev_answer
action find
entity Edwin Paul Wieringa
relation work location
['Edwin Paul Wieringa', 'work location', 'Berlin'] ['Edwin Paul Wieringa', 'work location', 'Szczecin']
ASK WHERE { VALUES ( ?e ) { ( resource:Berlin ) ( resource:Szczecin ) } . resource:Edwin_Paul_Wieringa property:work_location ?e }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q213 Q36233 Q15437952
P35
Q502895
USER
Is Czech Republic headed by Václav Havel and Erich Haberfelner ?
(Q213,P35,Q36233) (Q213,P35,Q15437952)
action is_in
entity Q213
action intersection
action find_reverse
entity Q36233
relation P35
action find_reverse
entity Q15437952
relation P35
['Q213', 'P35', 'Q36233'] ['Q213', 'P35', 'Q15437952']
ASK WHERE { resource:Q213 property:P35 resource:Q36233 . resource:Q213 property:P35 resource:Q15437952 }
Czech Republic Václav Havel Erich Haberfelner
action is_in
entity Czech Republic
action intersection
action find_reverse
entity Václav Havel
relation head of state
action find_reverse
entity Erich Haberfelner
relation head of state
['Czech Republic', 'head of state', 'Václav Havel'] ['Czech Republic', 'head of state', 'Erich Haberfelner']
ASK WHERE { resource:Czech_Republic property:head_of_state resource:Václav_Havel . resource:Czech_Republic property:head_of_state resource:Erich_Haberfelner }
[]
common name
SYSTEM
YES and NO respectively
(Q213,P35,Q36233) (Q213,P35,Q15437952)
action is_in
entity Q213
action intersection
action find_reverse
entity Q36233
relation P35
action find_reverse
entity Q15437952
relation P35
[ANSWER]
['Q213', 'P35', 'Q36233'] ['Q213', 'P35', 'Q15437952']
ASK WHERE { resource:Q213 property:P35 resource:Q36233 . resource:Q213 property:P35 resource:Q15437952 }
YES and NO respectively
action is_in
entity Czech Republic
action intersection
action find_reverse
entity Václav Havel
relation head of state
action find_reverse
entity Erich Haberfelner
relation head of state
['Czech Republic', 'head of state', 'Václav Havel'] ['Czech Republic', 'head of state', 'Erich Haberfelner']
ASK WHERE { resource:Czech_Republic property:head_of_state resource:Václav_Havel . resource:Czech_Republic property:head_of_state resource:Erich_Haberfelner }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q833 Q1759017 Q16
P530
Q1048835
USER
Does Malaysia have ambassadorial relations with Formosa do Sul and Canada ?
(Q833,P530,Q1759017) (Q833,P530,Q16)
action is_in
entity Q833
action intersection
action find_reverse
entity Q1759017
relation P530
action find_reverse
entity Q16
relation P530
['Q833', 'P530', 'Q1759017'] ['Q833', 'P530', 'Q16']
ASK WHERE { resource:Q833 property:P530 resource:Q1759017 . resource:Q833 property:P530 resource:Q16 }
Malaysia Formosa do Sul Canada
action is_in
entity Malaysia
action intersection
action find_reverse
entity Formosa do Sul
relation diplomatic relation
action find_reverse
entity Canada
relation diplomatic relation
['Malaysia', 'diplomatic relation', 'Formosa do Sul'] ['Malaysia', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Malaysia property:diplomatic_relation resource:Formosa_do_Sul . resource:Malaysia property:diplomatic_relation resource:Canada }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q833,P530,Q1759017) (Q833,P530,Q16)
action is_in
entity Q833
action intersection
action find_reverse
entity Q1759017
relation P530
action find_reverse
entity Q16
relation P530
[ANSWER]
['Q833', 'P530', 'Q1759017'] ['Q833', 'P530', 'Q16']
ASK WHERE { resource:Q833 property:P530 resource:Q1759017 . resource:Q833 property:P530 resource:Q16 }
NO and YES respectively
action is_in
entity Malaysia
action intersection
action find_reverse
entity Formosa do Sul
relation diplomatic relation
action find_reverse
entity Canada
relation diplomatic relation
['Malaysia', 'diplomatic relation', 'Formosa do Sul'] ['Malaysia', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Malaysia property:diplomatic_relation resource:Formosa_do_Sul . resource:Malaysia property:diplomatic_relation resource:Canada }
[]