Simple Question (Direct)
Simple Question
Q1593309
P740
Q56061
USER
What is the location of formation of Hedley ?
(Q1593309,P740,c(Q56061))
action filter_type
action find
entity Q1593309
relation P740
type Q56061
['Q1593309', 'P740', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q1593309 property:P740 ?o . ?o rdf:type ontology:Q56061 }
Hedley
action filter_type
action find
entity Hedley
relation location of formation
type administrative territorial entity
['Hedley', 'location of formation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Hedley property:location_of_formation ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q271730
SYSTEM
Abbotsford
Q271730
(Q1593309,P740,c(Q56061))
action filter_type
action find
entity Q1593309
relation P740
type Q56061
The location of formation of Hedley is in [ANSWER]
['Q1593309', 'P740', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q1593309 property:P740 ?o . ?o rdf:type ontology:Q56061 }
Abbotsford
The location of formation of Hedley is in Abbotsford
Abbotsford
action filter_type
action find
entity Hedley
relation location of formation
type administrative territorial entity
['Hedley', 'location of formation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Hedley property:location_of_formation ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q271730
P17
Q1048835
USER
Which political territory is that administrative territory situated in ?
(Q271730,P17,c(Q1048835))
action filter_type
action find
entity Q271730
relation P17
type Q1048835
['Q271730', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { resource:Q271730 property:P17 ?c . ?c rdf:type ontology:Q1048835 }
Abbotsford
action filter_type
action find
entity Abbotsford
relation country
type political territorial entity
['Abbotsford', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Abbotsford property:country ?c . ?c rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q271730,P17,c(Q1048835))
action filter_type
action find
entity Q271730
relation P17
type Q1048835
That administrative territory is situated in [ANSWER]
['Q271730', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { resource:Q271730 property:P17 ?c . ?c rdf:type ontology:Q1048835 }
Canada
That administrative territory is situated in Canada
Canada
action filter_type
action find
entity Abbotsford
relation country
type political territorial entity
['Abbotsford', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Abbotsford property:country ?c . ?c rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P47
Q1048835 Q15617994
USER
How many political territories or administrative territories are adjacent to that political territory ?
(Q16,P47,c(Q1048835)) (Q16,P47,c(Q15617994)) (Q16,P47,c(Q1048835)) (Q16,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q16
relation P47
type Q1048835
action filter_type
action find
entity Q16
relation P47
type Q15617994
['Q16', 'P47', {'concept': 'Q1048835'}] ['Q16', 'P47', {'concept': 'Q15617994'}] ['Q16', 'P47', {'concept': 'Q1048835'}] ['Q16', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y rdf:type ?w . VALUES ( ?w ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } }
action count
action union
action filter_type
action find
entity Canada
relation shares border with
type political territorial entity
action filter_type
action find
entity Canada
relation shares border with
type designation for an administrative territorial entity
['Canada', 'shares border with', {'concept': 'political territorial entity'}] ['Canada', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Canada', 'shares border with', {'concept': 'political territorial entity'}] ['Canada', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y rdf:type ?w . VALUES ( ?w ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
6
Q1979 Q223 Q4969463 Q30 Q38610 Q34617
(Q16,P47,c(Q1048835)) (Q16,P47,c(Q15617994)) (Q16,P47,c(Q1048835)) (Q16,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q16
relation P47
type Q1048835
action filter_type
action find
entity Q16
relation P47
type Q15617994
[ANSWER]
['Q16', 'P47', {'concept': 'Q1048835'}] ['Q16', 'P47', {'concept': 'Q15617994'}] ['Q16', 'P47', {'concept': 'Q1048835'}] ['Q16', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y rdf:type ?w . VALUES ( ?w ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } }
Prince Edward Island Greenland British Arctic Territories United States of America Dominion of Newfoundland Saint Pierre and Miquelon
6
action count
action union
action filter_type
action find
entity Canada
relation shares border with
type political territorial entity
action filter_type
action find
entity Canada
relation shares border with
type designation for an administrative territorial entity
['Canada', 'shares border with', {'concept': 'political territorial entity'}] ['Canada', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Canada', 'shares border with', {'concept': 'political territorial entity'}] ['Canada', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y rdf:type ?w . VALUES ( ?w ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q15874019 Q16
P530 P27
Q15617994
USER
Which administrative territories have a diplomatic relationship with Canada or are the countries of citizenship of Conny Fabry ?
OR((Q16,P530,c(Q15617994)), (Q15874019,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16
relation P530
action find
entity Q15874019
relation P27
type Q15617994
{'OR': [['Q16', 'P530', {'concept': 'Q15617994'}], ['Q15874019', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q15874019 property:P27 ?q } UNION { resource:Q16 property:P530 ?q } } . ?q rdf:type ontology:Q15617994 }
Conny Fabry Canada
action filter_type
action union
action find
entity Canada
relation diplomatic relation
action find
entity Conny Fabry
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Conny Fabry', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Conny_Fabry property:country_of_citizenship ?q } UNION { resource:Canada property:diplomatic_relation ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1029 Q43 Q155 Q20 Q1028 Q77 Q843 Q739 Q34 Q212
SYSTEM
Some of them are Mozambique, Turkey, Brazil, Norway, Morocco, Uruguay, Pakistan, Colombia, Sweden, Ukraine
Q804 Q801 Q843 Q1029 Q1028 Q145 Q229 Q33 Q31 Q30 Q36 Q79 Q34 Q928 Q39 Q38 Q878 Q739 Q833 Q711 Q1030 Q851 Q29999 Q77 Q115 Q258 Q212 Q159 Q43 Q155 Q218 Q20 Q423 Q252 Q884
OR((Q16,P530,c(Q15617994)), (Q15874019,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16
relation P530
action find
entity Q15874019
relation P27
type Q15617994
[ANSWERS] have a diplomatic relationship with Canada or are the countries of citizenship of Conny Fabry
{'OR': [['Q16', 'P530', {'concept': 'Q15617994'}], ['Q15874019', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q15874019 property:P27 ?q } UNION { resource:Q16 property:P530 ?q } } . ?q rdf:type ontology:Q15617994 }
Panama Israel Pakistan Mozambique Morocco United Kingdom Cyprus Finland Belgium United States of America Poland Egypt Sweden Philippines Switzerland Italy United Arab Emirates Colombia Malaysia Mongolia Namibia Saudi Arabia Kingdom of the Netherlands Uruguay Ethiopia South Africa Ukraine Russia Turkey Brazil Romania Norway North Korea Indonesia South Korea
Mozambique, Turkey, Brazil, Norway, Morocco, Uruguay, Pakistan, Colombia, Sweden and Ukraine have a diplomatic relationship with Canada or are the countries of citizenship of Conny Fabry
Mozambique Turkey Brazil Norway Morocco Uruguay Pakistan Colombia Sweden Ukraine
action filter_type
action union
action find
entity Canada
relation diplomatic relation
action find
entity Conny Fabry
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Conny Fabry', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Conny_Fabry property:country_of_citizenship ?q } UNION { resource:Canada property:diplomatic_relation ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P840
Q15617994 Q2342494 Q166142
USER
How many administrative territories are atleast 132 collectables and applications set in ?
(c(Q2342494)|c(Q166142),P840,c(Q15617994))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
value 132
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?b ) WHERE { { ?s rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q2342494 . ?q property:P840 ?s } UNION { ?q property:P840 ?s . ?s rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q166142 } } GROUP BY ?s } . FILTER ( ?b >= 132 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
value 132
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?b ) WHERE { { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:collectable . ?q property:narrative_location ?s } UNION { ?q property:narrative_location ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:application } } GROUP BY ?s } . FILTER ( ?b >= 132 ) }
[]
designation for an administrative territorial entity collectable application
SYSTEM
3
Q668 Q142 Q17
(c(Q2342494)|c(Q166142),P840,c(Q15617994))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
value 132
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?b ) WHERE { { ?s rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q2342494 . ?q property:P840 ?s } UNION { ?q property:P840 ?s . ?s rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q166142 } } GROUP BY ?s } . FILTER ( ?b >= 132 ) }
India France Japan
3
action count
action atleast
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
value 132
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?b ) WHERE { { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:collectable . ?q property:narrative_location ?s } UNION { ?q property:narrative_location ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:application } } GROUP BY ?s } . FILTER ( ?b >= 132 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20
P194
Q1752346
USER
Which assembly represents Norway ?
(Q20,P194,c(Q1752346))
action filter_type
action find
entity Q20
relation P194
type Q1752346
['Q20', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?a WHERE { resource:Q20 property:P194 ?a . ?a rdf:type ontology:Q1752346 }
Norway
action filter_type
action find
entity Norway
relation legislative body
type assembly
['Norway', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?a WHERE { resource:Norway property:legislative_body ?a . ?a rdf:type ontology:assembly }
[]
assembly
Q109016
SYSTEM
Parliament of Norway
Q109016
(Q20,P194,c(Q1752346))
action filter_type
action find
entity Q20
relation P194
type Q1752346
The [ANSWER] represents Norway
['Q20', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?a WHERE { resource:Q20 property:P194 ?a . ?a rdf:type ontology:Q1752346 }
Parliament of Norway
The Parliament of Norway represents Norway
Parliament of Norway
action filter_type
action find
entity Norway
relation legislative body
type assembly
['Norway', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?a WHERE { resource:Norway property:legislative_body ?a . ?a rdf:type ontology:assembly }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1121436
Q1752346
USER
And what about Province of Canada?
(Q1121436,P194,c(Q1752346))
action filter_type
action find
entity Q1121436
relation P194
type Q1752346
['Q1121436', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?x WHERE { resource:Q1121436 property:P194 ?x . ?x rdf:type ontology:Q1752346 }
Province of Canada
action filter_type
action find
entity Province of Canada
relation legislative body
type assembly
['Province of Canada', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?x WHERE { resource:Province_of_Canada property:legislative_body ?x . ?x rdf:type ontology:assembly }
[]
assembly
Q3365530
SYSTEM
Parliament of the Province of Canada
Q3365530
(Q1121436,P194,c(Q1752346))
action filter_type
action find
entity Q1121436
relation P194
type Q1752346
[ANSWER]
['Q1121436', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?x WHERE { resource:Q1121436 property:P194 ?x . ?x rdf:type ontology:Q1752346 }
Parliament of the Province of Canada
Parliament of the Province of Canada
action filter_type
action find
entity Province of Canada
relation legislative body
type assembly
['Province of Canada', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?x WHERE { resource:Province_of_Canada property:legislative_body ?x . ?x rdf:type ontology:assembly }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q15617994 Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with atleast 40 administrative territories and political territories ?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action atleast
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
value 40
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?k >= 40 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?j WHERE { { ?i property:P530 ?j . ?i rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } UNION { ?i property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1048835 } } GROUP BY ?j } }
action atleast
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 40
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?k >= 40 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?j WHERE { { ?i property:diplomatic_relation ?j . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?i property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_territorial_entity } } GROUP BY ?j } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
Q155 Q38
SYSTEM
Brazil, Italy
Q155 Q38
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action atleast
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
value 40
[ANSWERS] have diplomatic relationships with atleast 40 administrative territories and political territories
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?k >= 40 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?j WHERE { { ?i property:P530 ?j . ?i rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } UNION { ?i property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1048835 } } GROUP BY ?j } }
Brazil Italy
Brazil and Italy have diplomatic relationships with atleast 40 administrative territories and political territories
Brazil Italy
action atleast
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 40
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?k >= 40 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?j WHERE { { ?i property:diplomatic_relation ?j . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?i property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_territorial_entity } } GROUP BY ?j } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16597744
P27
Q502895
USER
Are Rodrigo Bertoni a citizen of those administrative territories ?
(Q16597744,P27,Q155) (Q16597744,P27,Q38)
action is_in
entity prev_answer
action find
entity Q16597744
relation P27
['Q16597744', 'P27', 'Q155'] ['Q16597744', 'P27', 'Q38']
ASK WHERE { resource:Q16597744 property:P27 ?s . VALUES ( ?s ) { ( resource:Q155 ) ( resource:Q38 ) } }
Rodrigo Bertoni
action is_in
entity prev_answer
action find
entity Rodrigo Bertoni
relation country of citizenship
['Rodrigo Bertoni', 'country of citizenship', 'Brazil'] ['Rodrigo Bertoni', 'country of citizenship', 'Italy']
ASK WHERE { resource:Rodrigo_Bertoni property:country_of_citizenship ?s . VALUES ( ?s ) { ( resource:Brazil ) ( resource:Italy ) } }
[]
common name
SYSTEM
YES
(Q16597744,P27,Q155) (Q16597744,P27,Q38)
action is_in
entity prev_answer
action find
entity Q16597744
relation P27
[ANSWER]
['Q16597744', 'P27', 'Q155'] ['Q16597744', 'P27', 'Q38']
ASK WHERE { resource:Q16597744 property:P27 ?s . VALUES ( ?s ) { ( resource:Q155 ) ( resource:Q38 ) } }
Yes
action is_in
entity prev_answer
action find
entity Rodrigo Bertoni
relation country of citizenship
['Rodrigo Bertoni', 'country of citizenship', 'Brazil'] ['Rodrigo Bertoni', 'country of citizenship', 'Italy']
ASK WHERE { resource:Rodrigo_Bertoni property:country_of_citizenship ?s . VALUES ( ?s ) { ( resource:Brazil ) ( resource:Italy ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q974
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with around the same number of administrative territories as Democratic Republic of the Congo ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q974
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?c ) WHERE { ?z property:P530 ?d . ?z rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } GROUP BY ?d } . FILTER ( ?c = ?w ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { resource:Q974 property:P530 ?f . ?f rdf:type ontology:Q15617994 } } }
Democratic Republic of the Congo
action approx
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 Democratic Republic of the Congo
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 ( ?z ) AS ?c ) WHERE { ?z property:diplomatic_relation ?d . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . FILTER ( ?c = ?w ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { resource:Democratic_Republic_of_the_Congo property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 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 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q974
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with around the same number of administrative territories as Democratic Republic of the Congo
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?c ) WHERE { ?z property:P530 ?d . ?z rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } GROUP BY ?d } . FILTER ( ?c = ?w ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { resource:Q974 property:P530 ?f . ?f rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium 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 Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein 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 Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
Georgia, Netherlands and Poland have diplomatic relationships with around the same number of administrative territories as Democratic Republic of the Congo
Georgia Netherlands Poland
action approx
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 Democratic Republic of the Congo
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 ( ?z ) AS ?c ) WHERE { ?z property:diplomatic_relation ?d . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . FILTER ( ?c = ?w ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { resource:Democratic_Republic_of_the_Congo property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1029
P530
Q15617994 Q15617994
USER
And also tell me about Mozambique?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1029
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?b ) AS ?f ) WHERE { ?b property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } GROUP BY ?c } . FILTER ( ?f = ?p ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { resource:Q1029 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } }
Mozambique
action approx
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 Mozambique
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 ( ?b ) AS ?f ) WHERE { ?b property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?f = ?p ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { resource:Mozambique property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 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 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1029
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?b ) AS ?f ) WHERE { ?b property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } GROUP BY ?c } . FILTER ( ?f = ?p ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { resource:Q1029 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium 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 Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein 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 Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
Georgia Netherlands Poland
action approx
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 Mozambique
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 ( ?b ) AS ?f ) WHERE { ?b property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?f = ?p ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { resource:Mozambique property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q774781 Q77
P530 P19
Q15617994
USER
Which administrative territories have diplomatic relationships with Uruguay and are the birthplace of Sebastiano Conca ?
AND((Q77,P530,c(Q15617994)), (Q774781,P19,c(Q15617994)))
action filter_type
action intersection
action find
entity Q77
relation P530
action find
entity Q774781
relation P19
type Q15617994
{'AND': [['Q77', 'P530', {'concept': 'Q15617994'}], ['Q774781', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { resource:Q77 property:P530 ?t . resource:Q774781 property:P19 ?t . ?t rdf:type ontology:Q15617994 }
Sebastiano Conca Uruguay
action filter_type
action intersection
action find
entity Uruguay
relation diplomatic relation
action find
entity Sebastiano Conca
relation place of birth
type designation for an administrative territorial entity
{'AND': [['Uruguay', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Sebastiano Conca', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { resource:Uruguay property:diplomatic_relation ?t . resource:Sebastiano_Conca property:place_of_birth ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
AND((Q77,P530,c(Q15617994)), (Q774781,P19,c(Q15617994)))
action filter_type
action intersection
action find
entity Q77
relation P530
action find
entity Q774781
relation P19
type Q15617994
[ANSWER] have diplomatic relationships with Uruguay and are the birthplace of Sebastiano Conca
{'AND': [['Q77', 'P530', {'concept': 'Q15617994'}], ['Q774781', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { resource:Q77 property:P530 ?t . resource:Q774781 property:P19 ?t . ?t rdf:type ontology:Q15617994 }
Italy
Italy have diplomatic relationships with Uruguay and are the birthplace of Sebastiano Conca
Italy
action filter_type
action intersection
action find
entity Uruguay
relation diplomatic relation
action find
entity Sebastiano Conca
relation place of birth
type designation for an administrative territorial entity
{'AND': [['Uruguay', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Sebastiano Conca', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { resource:Uruguay property:diplomatic_relation ?t . resource:Sebastiano_Conca property:place_of_birth ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]