Simple Question (Direct)
Simple Question
Q4997583
P27
Q15617994
USER
Which administrative territory does Bunene Ngaduane belong to ?
(Q4997583,P27,c(Q15617994))
action filter_type
action find
entity Q4997583
relation P27
type Q15617994
['Q4997583', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q4997583 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Bunene Ngaduane
action filter_type
action find
entity Bunene Ngaduane
relation country of citizenship
type designation for an administrative territorial entity
['Bunene Ngaduane', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Bunene_Ngaduane property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q974
SYSTEM
Democratic Republic of the Congo
Q974
(Q4997583,P27,c(Q15617994))
action filter_type
action find
entity Q4997583
relation P27
type Q15617994
Bunene Ngaduane belongs to [ANSWER]
['Q4997583', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q4997583 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Democratic Republic of the Congo
Bunene Ngaduane belongs to Democratic Republic of the Congo
Democratic Republic of the Congo
action filter_type
action find
entity Bunene Ngaduane
relation country of citizenship
type designation for an administrative territorial entity
['Bunene Ngaduane', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Bunene_Ngaduane property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q974
P530
Q1048835
USER
Which political territory has diplomatic relationships with that administrative territory ?
(Q974,P530,c(Q1048835))
action filter_type
action find
entity Q974
relation P530
type Q1048835
['Q974', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q974 property:P530 ?h . ?h rdf:type ontology:Q1048835 }
Democratic Republic of the Congo
action filter_type
action find
entity Democratic Republic of the Congo
relation diplomatic relation
type political territorial entity
['Democratic Republic of the Congo', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Democratic_Republic_of_the_Congo property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q974,P530,c(Q1048835))
action filter_type
action find
entity Q974
relation P530
type Q1048835
[ANSWER] has diplomatic relationships with that administrative territory
['Q974', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q974 property:P530 ?h . ?h rdf:type ontology:Q1048835 }
Germany
Germany has diplomatic relationships with that administrative territory
Germany
action filter_type
action find
entity Democratic Republic of the Congo
relation diplomatic relation
type political territorial entity
['Democratic Republic of the Congo', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Democratic_Republic_of_the_Congo property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q796
P530
Q1048835 Q15617994
USER
Which administrative territories have diplomatic associations with greater number of political territories than Iraq ?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q796
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { resource:Q796 property:P530 ?d . ?d rdf:type ontology:Q1048835 } } . FILTER ( ?x > ?f ) . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?x ) WHERE { ?a property:P530 ?u . ?a rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 } GROUP BY ?a } }
Iraq
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Iraq
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { resource:Iraq property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity } } . FILTER ( ?x > ?f ) . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?x ) WHERE { ?a property:diplomatic_relation ?u . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?a } }
[]
political territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q155 Q889 Q884 Q33 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q230 Q20 Q27 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q796
relation P530
type Q1048835
[ANSWERS] have diplomatic associations with greater number of political territories than Iraq
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { resource:Q796 property:P530 ?d . ?d rdf:type ontology:Q1048835 } } . FILTER ( ?x > ?f ) . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?x ) WHERE { ?a property:P530 ?u . ?a rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 } GROUP BY ?a } }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey Brazil Afghanistan South Korea Finland United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Georgia Norway Ireland Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
Italy, Brazil and United States of America have diplomatic associations with greater number of political territories than Iraq
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Iraq
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { resource:Iraq property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity } } . FILTER ( ?x > ?f ) . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?x ) WHERE { ?a property:diplomatic_relation ?u . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?a } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q38 Q155 Q30
P36
Q56061
USER
Which administrative territories are associated to those administrative territories as the capital ?
(Q38,P36,c(Q56061)) (Q155,P36,c(Q56061)) (Q30,P36,c(Q56061))
action filter_type
action find
entity prev_answer
relation P36
type Q56061
['Q38', 'P36', {'concept': 'Q56061'}] ['Q155', 'P36', {'concept': 'Q56061'}] ['Q30', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?r property:P36 ?f . ?f rdf:type ontology:Q56061 . VALUES ( ?r ) { ( resource:Q801 ) ( resource:Q142 ) ( resource:Q145 ) } }
Italy Brazil United States of America
action filter_type
action find
entity prev_answer
relation capital
type administrative territorial entity
['Italy', 'capital', {'concept': 'administrative territorial entity'}] ['Brazil', 'capital', {'concept': 'administrative territorial entity'}] ['United States of America', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?r property:capital ?f . ?f rdf:type ontology:administrative_territorial_entity . VALUES ( ?r ) { ( resource:Israel ) ( resource:France ) ( resource:United_Kingdom ) } }
[]
administrative territorial entity
Q8678 Q220 Q60
SYSTEM
Rio de Janeiro, Rome, New York City
Q220 Q8678 Q60 Q61
(Q38,P36,c(Q56061)) (Q155,P36,c(Q56061)) (Q30,P36,c(Q56061))
action filter_type
action find
entity prev_answer
relation P36
type Q56061
[ANSWERS] are associated to those administrative territories as the capital
['Q38', 'P36', {'concept': 'Q56061'}] ['Q155', 'P36', {'concept': 'Q56061'}] ['Q30', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?r property:P36 ?f . ?f rdf:type ontology:Q56061 . VALUES ( ?r ) { ( resource:Q801 ) ( resource:Q142 ) ( resource:Q145 ) } }
Rome Rio de Janeiro New York City Washington, D.C.
Rio de Janeiro, Rome and New York City are associated to those administrative territories as the capital
Rio de Janeiro Rome New York City
action filter_type
action find
entity prev_answer
relation capital
type administrative territorial entity
['Italy', 'capital', {'concept': 'administrative territorial entity'}] ['Brazil', 'capital', {'concept': 'administrative territorial entity'}] ['United States of America', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?r property:capital ?f . ?f rdf:type ontology:administrative_territorial_entity . VALUES ( ?r ) { ( resource:Israel ) ( resource:France ) ( resource:United_Kingdom ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q8678 Q220 Q60
P127
Q811430
USER
Which constructions are owned by those administrative territories ?
(c(Q811430),P127,Q8678) (c(Q811430),P127,Q220) (c(Q811430),P127,Q60)
action filter_type
action find_reverse
entity prev_answer
relation P127
type Q811430
[{'concept': 'Q811430'}, 'P127', 'Q8678'] [{'concept': 'Q811430'}, 'P127', 'Q220'] [{'concept': 'Q811430'}, 'P127', 'Q60']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q811430 . ?a property:P127 ?x . VALUES ( ?x ) { ( resource:Q220 ) ( resource:Q8678 ) ( resource:Q60 ) } }
Rio de Janeiro Rome New York City
action filter_type
action find_reverse
entity prev_answer
relation owned by
type construction
[{'concept': 'construction'}, 'owned by', 'Rio de Janeiro'] [{'concept': 'construction'}, 'owned by', 'Rome'] [{'concept': 'construction'}, 'owned by', 'New York City']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:construction . ?a property:owned_by ?x . VALUES ( ?x ) { ( resource:Rome ) ( resource:Rio_de_Janeiro ) ( resource:New_York_City ) } }
[]
construction
Q1056326 Q2033373 Q1507437
SYSTEM
Shea Stadium, Palazzetto dello Sport, HSBC Arena
Q64136 Q1507437 Q2033373 Q14706223 Q1056326
(c(Q811430),P127,Q8678) (c(Q811430),P127,Q220) (c(Q811430),P127,Q60)
action filter_type
action find_reverse
entity prev_answer
relation P127
type Q811430
[ANSWERS] are owned by those administrative territories
[{'concept': 'Q811430'}, 'P127', 'Q8678'] [{'concept': 'Q811430'}, 'P127', 'Q220'] [{'concept': 'Q811430'}, 'P127', 'Q60']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q811430 . ?a property:P127 ?x . VALUES ( ?x ) { ( resource:Q220 ) ( resource:Q8678 ) ( resource:Q60 ) } }
Maria Lenk Aquatic Center HSBC Arena Palazzetto dello Sport Chelsea Recreation Center Shea Stadium
Shea Stadium, Palazzetto dello Sport and HSBC Arena are owned by those administrative territories
Shea Stadium Palazzetto dello Sport HSBC Arena
action filter_type
action find_reverse
entity prev_answer
relation owned by
type construction
[{'concept': 'construction'}, 'owned by', 'Rio de Janeiro'] [{'concept': 'construction'}, 'owned by', 'Rome'] [{'concept': 'construction'}, 'owned by', 'New York City']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:construction . ?a property:owned_by ?x . VALUES ( ?x ) { ( resource:Rome ) ( resource:Rio_de_Janeiro ) ( resource:New_York_City ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2033373
P186
Q214609
USER
Which material is used to produce that construction ?
(Q2033373,P186,c(Q214609))
action filter_type
action find
entity Q2033373
relation P186
type Q214609
['Q2033373', 'P186', {'concept': 'Q214609'}]
SELECT DISTINCT ?q WHERE { resource:Q2033373 property:P186 ?q . ?q rdf:type ontology:Q214609 }
Palazzetto dello Sport
action filter_type
action find
entity Palazzetto dello Sport
relation material used
type material
['Palazzetto dello Sport', 'material used', {'concept': 'material'}]
SELECT DISTINCT ?q WHERE { resource:Palazzetto_dello_Sport property:material_used ?q . ?q rdf:type ontology:material }
[]
material
Clarification for simple ques.
Q2033373
SYSTEM
Did you mean Palazzetto dello Sport ?
Q1056326 Q2033373 Q1507437
(Q1056326,P186,c(Q214609)) (Q2033373,P186,c(Q214609)) (Q1507437,P186,c(Q214609))
[ANSWER]
['Q1056326', 'P186', {'concept': 'Q214609'}] ['Q2033373', 'P186', {'concept': 'Q214609'}] ['Q1507437', 'P186', {'concept': 'Q214609'}]
SELECT DISTINCT ?q WHERE { resource:Q2033373 property:P186 ?q . ?q rdf:type ontology:Q214609 }
Shea Stadium Palazzetto dello Sport HSBC Arena
Did you mean Palazzetto dello Sport ?
Palazzetto dello Sport
['Shea Stadium', 'material used', {'concept': 'material'}] ['Palazzetto dello Sport', 'material used', {'concept': 'material'}] ['HSBC Arena', 'material used', {'concept': 'material'}]
SELECT DISTINCT ?q WHERE { resource:Palazzetto_dello_Sport property:material_used ?q . ?q rdf:type ontology:material }
[]
Simple Question (Coreferenced)
USER
Yes
(Q2033373,P186,c(Q214609))
['Q2033373', 'P186', {'concept': 'Q214609'}]
['Palazzetto dello Sport', 'material used', {'concept': 'material'}]
[]
Q22657
SYSTEM
concrete
Q22657
(Q2033373,P186,c(Q214609))
action filter_type
action find
entity Q2033373
relation P186
type Q214609
The [ANSWER] is used to produce that construction
['Q2033373', 'P186', {'concept': 'Q214609'}]
SELECT DISTINCT ?q WHERE { resource:Q2033373 property:P186 ?q . ?q rdf:type ontology:Q214609 }
concrete
The concrete is used to produce that construction
concrete
action filter_type
action find
entity Palazzetto dello Sport
relation material used
type material
['Palazzetto dello Sport', 'material used', {'concept': 'material'}]
SELECT DISTINCT ?q WHERE { resource:Palazzetto_dello_Sport property:material_used ?q . ?q rdf:type ontology:material }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q20684174 Q155
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with Brazil and do Lilimar Hernandez belong to ?
AND((Q155,P530,c(Q15617994)), (Q20684174,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q155
relation P530
action find
entity Q20684174
relation P27
type Q15617994
{'AND': [['Q155', 'P530', {'concept': 'Q15617994'}], ['Q20684174', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q155 property:P530 ?k . resource:Q20684174 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Lilimar Hernandez Brazil
action filter_type
action intersection
action find
entity Brazil
relation diplomatic relation
action find
entity Lilimar Hernandez
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Lilimar Hernandez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:Brazil property:diplomatic_relation ?k . resource:Lilimar_Hernandez property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q717
SYSTEM
Venezuela
Q717
AND((Q155,P530,c(Q15617994)), (Q20684174,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q155
relation P530
action find
entity Q20684174
relation P27
type Q15617994
[ANSWER] have diplomatic relationships with Brazil and do Lilimar Hernandez belong to
{'AND': [['Q155', 'P530', {'concept': 'Q15617994'}], ['Q20684174', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q155 property:P530 ?k . resource:Q20684174 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Venezuela
Venezuela have diplomatic relationships with Brazil and do Lilimar Hernandez belong to
Venezuela
action filter_type
action intersection
action find
entity Brazil
relation diplomatic relation
action find
entity Lilimar Hernandez
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Lilimar Hernandez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:Brazil property:diplomatic_relation ?k . resource:Lilimar_Hernandez property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q717 Q786
P47
Q15617994
USER
Is Dominican Republic adjacent to Venezuela ?
(Q717,P47,Q786)
action is_in
entity Q786
action find
entity Q717
relation P47
['Q717', 'P47', 'Q786']
ASK WHERE { resource:Q717 property:P47 resource:Q786 }
Venezuela Dominican Republic
action is_in
entity Dominican Republic
action find
entity Venezuela
relation shares border with
['Venezuela', 'shares border with', 'Dominican Republic']
ASK WHERE { resource:Venezuela property:shares_border_with resource:Dominican_Republic }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q717,P47,Q786)
action is_in
entity Q786
action find
entity Q717
relation P47
[ANSWER]
['Q717', 'P47', 'Q786']
ASK WHERE { resource:Q717 property:P47 resource:Q786 }
Yes
action is_in
entity Dominican Republic
action find
entity Venezuela
relation shares border with
['Venezuela', 'shares border with', 'Dominican Republic']
ASK WHERE { resource:Venezuela property:shares_border_with resource:Dominican_Republic }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q3497965 Q183
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with Germany and are not the countries of citizenship of Stefano Ferrari ?
AND((Q183,P530,c(Q15617994)), NOT((Q3497965,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P530
action find
entity Q3497965
relation P27
type Q15617994
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q3497965', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?h WHERE { resource:Q183 property:P530 ?h . FILTER NOT EXISTS { resource:Q3497965 property:P27 ?h } . ?h rdf:type ontology:Q15617994 }
Stefano Ferrari Germany
action filter_type
action difference
action find
entity Germany
relation diplomatic relation
action find
entity Stefano Ferrari
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Stefano Ferrari', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?h WHERE { resource:Germany property:diplomatic_relation ?h . FILTER NOT EXISTS { resource:Stefano_Ferrari property:country_of_citizenship ?h } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q184 Q929 Q774 Q262 Q29 Q1037 Q1005 Q219 Q902 Q30
SYSTEM
Some of them are Belarus, Central African Republic, Guatemala, Algeria, Spain, Rwanda, Gambia, Bulgaria, Bangladesh, United States of America
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q833 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q929 Q39 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q347 Q227 Q225 Q224 Q222 Q96 Q229 Q228 Q17 Q902 Q1036 Q1037 Q1008 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q1019 Q1016 Q1011 Q945 Q869 Q953
AND((Q183,P530,c(Q15617994)), NOT((Q3497965,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P530
action find
entity Q3497965
relation P27
type Q15617994
[ANSWERS] have diplomatic relationships with Germany and are not the countries of citizenship of Stefano Ferrari
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q3497965', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?h WHERE { resource:Q183 property:P530 ?h . FILTER NOT EXISTS { resource:Q3497965 property:P27 ?h } . ?h rdf:type ontology:Q15617994 }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Malaysia Mongolia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Cuba Belize Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Central African Republic Switzerland Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Liechtenstein Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Andorra Japan Bangladesh Uganda Rwanda Côte d'Ivoire Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Madagascar Libya Cape Verde Togo Thailand Zambia
Belarus, Central African Republic, Guatemala, Algeria, Spain, Rwanda, Gambia, Bulgaria, Bangladesh and United States of America have diplomatic relationships with Germany and are not the countries of citizenship of Stefano Ferrari
Belarus Central African Republic Guatemala Algeria Spain Rwanda Gambia Bulgaria Bangladesh United States of America
action filter_type
action difference
action find
entity Germany
relation diplomatic relation
action find
entity Stefano Ferrari
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Stefano Ferrari', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?h WHERE { resource:Germany property:diplomatic_relation ?h . FILTER NOT EXISTS { resource:Stefano_Ferrari property:country_of_citizenship ?h } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q902
P530
Q15617994 Q15617994
USER
Which administrative territories have a diplomatic relationship with less number of administrative territories than Bangladesh ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_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 ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { resource:Q902 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?u < ?r ) }
Bangladesh
action less
action find_reverse_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 ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { resource:Bangladesh property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?u < ?r ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q218 Q20 Q948
SYSTEM
Romania, Norway, Tunisia
Q702 Q804 Q783 Q784 Q265 Q712 Q710 Q837 Q657 Q792 Q790 Q986 Q242 Q244 Q811 Q929 Q29999 Q854 Q819 Q424 Q730 Q1013 Q232 Q238 Q20 Q1045 Q1041 Q921 Q1027 Q1020 Q842 Q1028 Q786 Q1036 Q1037 Q1032 Q965 Q967 Q962 Q697 Q695 Q117 Q754 Q218 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q970 Q683 Q34020 Q686 Q836 Q574 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q902
relation P530
type Q15617994
[ANSWERS] have a diplomatic relationship with less number of administrative territories than Bangladesh
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { resource:Q902 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?u < ?r ) }
Federated States of Micronesia Panama Honduras Dominica Uzbekistan Fiji Kiribati Nepal Chad El Salvador Haiti Eritrea Belize Barbados Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Kazakhstan San Marino Norway Somalia Senegal Brunei Mauritius Malawi Oman Morocco Dominican Republic Uganda Rwanda Niger Burkina Faso Burundi Benin Nauru Palau Ghana Trinidad and Tobago Romania Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Comoros Samoa Niue Vanuatu Myanmar East Timor Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia
Romania, Norway and Tunisia have a diplomatic relationship with less number of administrative territories than Bangladesh
Romania Norway Tunisia
action less
action find_reverse_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 ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { resource:Bangladesh property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?u < ?r ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q213
P530
Q15617994 Q15617994
USER
And how about Czech Republic?
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q213
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?f ) WHERE { ?x property:P530 ?n . ?n rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { ?l property:P530 resource:Q213 . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?f < ?j ) }
Czech Republic
action less
action find_reverse_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_reverse
entity Czech Republic
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 ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?f ) WHERE { ?x property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { ?l property:diplomatic_relation resource:Czech_Republic . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f < ?j ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q784 Q265 Q712 Q710 Q717 Q837 Q398 Q657 Q45 Q792 Q790 Q954 Q889 Q884 Q958 Q881 Q986 Q242 Q244 Q811 Q33 Q32 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q221 Q96 Q229 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q213
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?f ) WHERE { ?x property:P530 ?n . ?n rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { ?l property:P530 resource:Q213 . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?f < ?j ) }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Dominica Uzbekistan Fiji Kiribati Venezuela Nepal Bahrain Chad Portugal El Salvador Haiti Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Belize Barbados Nicaragua Finland Luxembourg Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Republic of Macedonia Mexico Cyprus Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Togo Tonga Spain New Caledonia Thailand
Georgia Netherlands Poland
action less
action find_reverse_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_reverse
entity Czech Republic
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 ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?f ) WHERE { ?x property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { ?l property:diplomatic_relation resource:Czech_Republic . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f < ?j ) }
[]