Simple Question (Direct)
Simple Question
Q1681134
P108
Q163740
USER
Which nonprofit organization employs James H. Stock ?
(Q1681134,P108,c(Q163740))
action filter_type
action find
entity Q1681134
relation P108
type Q163740
['Q1681134', 'P108', {'concept': 'Q163740'}]
SELECT DISTINCT ?b WHERE { resource:Q1681134 property:P108 ?b . ?b rdf:type ontology:Q163740 }
James H. Stock
action filter_type
action find
entity James H. Stock
relation employer
type nonprofit organization
['James H. Stock', 'employer', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?b WHERE { resource:James_H._Stock property:employer ?b . ?b rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q13371
SYSTEM
Harvard University
Q13371
(Q1681134,P108,c(Q163740))
action filter_type
action find
entity Q1681134
relation P108
type Q163740
[ANSWER] employs James H. Stock
['Q1681134', 'P108', {'concept': 'Q163740'}]
SELECT DISTINCT ?b WHERE { resource:Q1681134 property:P108 ?b . ?b rdf:type ontology:Q163740 }
Harvard University
Harvard University employs James H. Stock
Harvard University
action filter_type
action find
entity James H. Stock
relation employer
type nonprofit organization
['James H. Stock', 'employer', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?b WHERE { resource:James_H._Stock property:employer ?b . ?b rdf:type ontology:nonprofit_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1681134
P27
Q15617994
USER
Which administrative territory is James H. Stock a civilian of ?
(Q1681134,P27,c(Q15617994))
action filter_type
action find
entity Q1681134
relation P27
type Q15617994
['Q1681134', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q1681134 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
James H. Stock
action filter_type
action find
entity James H. Stock
relation country of citizenship
type designation for an administrative territorial entity
['James H. Stock', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:James_H._Stock property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1681134,P27,c(Q15617994))
action filter_type
action find
entity Q1681134
relation P27
type Q15617994
The [ANSWER] is James H. Stock a civilian of
['Q1681134', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q1681134 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
United States of America
The United States of America is James H. Stock a civilian of
United States of America
action filter_type
action find
entity James H. Stock
relation country of citizenship
type designation for an administrative territorial entity
['James H. Stock', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:James_H._Stock property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P194
Q11204
USER
Which legislature is the representative body for that administrative territory ?
(Q30,P194,c(Q11204))
action filter_type
action find
entity Q30
relation P194
type Q11204
['Q30', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q11204 . resource:Q30 property:P194 ?y }
United States of America
action filter_type
action find
entity United States of America
relation legislative body
type legislature
['United States of America', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:legislature . resource:United_States_of_America property:legislative_body ?y }
[]
legislature
Q11268
SYSTEM
United States Congress
Q11268
(Q30,P194,c(Q11204))
action filter_type
action find
entity Q30
relation P194
type Q11204
[ANSWER] is the representative body for that administrative territory
['Q30', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q11204 . resource:Q30 property:P194 ?y }
United States Congress
United States Congress is the representative body for that administrative territory
United States Congress
action filter_type
action find
entity United States of America
relation legislative body
type legislature
['United States of America', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:legislature . resource:United_States_of_America property:legislative_body ?y }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q792
P495
Q15617994 Q2031291 Q201658
USER
Which administrative territories are the origins of greater number of releases or film genres than El Salvador ?
(c(Q2031291)|c(Q201658),P495,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q792
relation P495
type Q2031291
type Q201658
[[{'concept': 'Q2031291'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?c ) WHERE { VALUES ( ?l ) { ( ontology:Q2031291 ) ( ontology:Q201658 ) } . ?o rdf:type ?l } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { ?r property:P495 resource:Q792 . { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:Q2031291 ) ( ontology:Q201658 ) } } } } . FILTER ( ?c > ?y ) }
El Salvador
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action count
action filter_multi_types
action find_reverse
entity El Salvador
relation country of origin
type release
type film genre
[[{'concept': 'release'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?c ) WHERE { VALUES ( ?l ) { ( ontology:release ) ( ontology:film_genre ) } . ?o rdf:type ?l } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { ?r property:country_of_origin resource:El_Salvador . { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:release ) ( ontology:film_genre ) } } } } . FILTER ( ?c > ?y ) }
[]
designation for an administrative territorial entity release film genre
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q837 Q252 Q258 Q45 Q159 Q43 Q41 Q155 Q794 Q884 Q241 Q33 Q32 Q31 Q30 Q36 Q34 Q39 Q38 Q983 Q20 Q1041 Q27 Q28 Q843 Q1029 Q1028 Q96 Q17 Q902 Q974 Q191 Q965 Q298 Q115 Q212 Q213 Q215 Q218 Q79 Q948 Q29
(c(Q2031291)|c(Q201658),P495,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q792
relation P495
type Q2031291
type Q201658
[ANSWERS] are the origins of greater number of releases or film genres than El Salvador
[[{'concept': 'Q2031291'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?c ) WHERE { VALUES ( ?l ) { ( ontology:Q2031291 ) ( ontology:Q201658 ) } . ?o rdf:type ?l } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { ?r property:P495 resource:Q792 . { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:Q2031291 ) ( ontology:Q201658 ) } } } } . FILTER ( ?c > ?y ) }
Israel India Argentina France Netherlands United Kingdom Algeria People's Republic of China Nepal Indonesia South Africa Portugal Russia Turkey Greece Brazil Iran South Korea Cuba Finland Luxembourg Belgium United States of America Poland Sweden Switzerland Italy Equatorial Guinea Norway Senegal Ireland Hungary Pakistan Mozambique Morocco Mexico Japan Bangladesh Democratic Republic of the Congo Estonia Burkina Faso Chile Ethiopia Ukraine Czech Republic Slovenia Romania Egypt Tunisia Spain
Italy, Brazil and United States of America are the origins of greater number of releases or film genres than El Salvador
Italy Brazil United States of America
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action count
action filter_multi_types
action find_reverse
entity El Salvador
relation country of origin
type release
type film genre
[[{'concept': 'release'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?c ) WHERE { VALUES ( ?l ) { ( ontology:release ) ( ontology:film_genre ) } . ?o rdf:type ?l } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { ?r property:country_of_origin resource:El_Salvador . { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:release ) ( ontology:film_genre ) } } } } . FILTER ( ?c > ?y ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q29999
P495
Q15617994 Q2031291 Q201658
USER
And how about Kingdom of the Netherlands?
(c(Q2031291)|c(Q201658),P495,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q29999
relation P495
type Q2031291
type Q201658
[[{'concept': 'Q2031291'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?m ) WHERE { VALUES ( ?h ) { ( ontology:Q201658 ) ( ontology:Q2031291 ) } . ?o rdf:type ?h } GROUP BY ?u } . FILTER ( ?m > ?d ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { { { ?p rdf:type ontology:Q201658 } UNION { ?p rdf:type ontology:Q2031291 } } . ?p property:P495 resource:Q29999 } } }
Kingdom of the Netherlands
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action count
action filter_multi_types
action find_reverse
entity Kingdom of the Netherlands
relation country of origin
type release
type film genre
[[{'concept': 'release'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?m ) WHERE { VALUES ( ?h ) { ( ontology:film_genre ) ( ontology:release ) } . ?o rdf:type ?h } GROUP BY ?u } . FILTER ( ?m > ?d ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { { { ?p rdf:type ontology:film_genre } UNION { ?p rdf:type ontology:release } } . ?p property:country_of_origin resource:Kingdom_of_the_Netherlands } } }
[]
designation for an administrative territorial entity release film genre
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q712 Q717 Q837 Q252 Q399 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q794 Q884 Q826 Q822 Q241 Q242 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q983 Q233 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q1027 Q189 Q843 Q1029 Q1028 Q227 Q225 Q96 Q17 Q902 Q1036 Q974 Q1032 Q1033 Q191 Q965 Q298 Q115 Q117 Q212 Q213 Q215 Q218 Q219 Q970 Q79 Q77 Q878 Q948 Q1019 Q29 Q869
(c(Q2031291)|c(Q201658),P495,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q29999
relation P495
type Q2031291
type Q201658
[ANSWERS]
[[{'concept': 'Q2031291'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?m ) WHERE { VALUES ( ?h ) { ( ontology:Q201658 ) ( ontology:Q2031291 ) } . ?o rdf:type ?h } GROUP BY ?u } . FILTER ( ?m > ?d ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { { { ?p rdf:type ontology:Q201658 } UNION { ?p rdf:type ontology:Q2031291 } } . ?p property:P495 resource:Q29999 } } }
Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Fiji Venezuela Nepal Indonesia Armenia South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iran South Korea Maldives Lebanon Cuba Belize Finland Luxembourg Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia Equatorial Guinea Malta Norway Somalia Sierra Leone Senegal Ireland Hungary Mauritius Iceland Pakistan Mozambique Morocco Azerbaijan Bosnia and Herzegovina Mexico Japan Bangladesh Uganda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Chile Ethiopia Ghana Ukraine Czech Republic Slovenia Romania Bulgaria Comoros Egypt Uruguay United Arab Emirates Tunisia Madagascar Spain Thailand
Italy Brazil United States of America
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action count
action filter_multi_types
action find_reverse
entity Kingdom of the Netherlands
relation country of origin
type release
type film genre
[[{'concept': 'release'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?m ) WHERE { VALUES ( ?h ) { ( ontology:film_genre ) ( ontology:release ) } . ?o rdf:type ?h } GROUP BY ?u } . FILTER ( ?m > ?d ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { { { ?p rdf:type ontology:film_genre } UNION { ?p rdf:type ontology:release } } . ?p property:country_of_origin resource:Kingdom_of_the_Netherlands } } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
How many administrative territories are the origins of lesser number of releases than that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity release
Comparative|Count over More/Less|Single entity type|Clarification
Q155
SYSTEM
Did you mean Brazil ?
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Did you mean Brazil ?
Brazil
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Italy. Could you tell me the answer for that?
(c(Q2031291),P495,c(Q15617994))
Q38
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
167
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q145 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile 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 Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
167
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38
P127
Q33506
USER
Which museum is under posessision of that administrative territory ?
action filter_type
action find_reverse
entity Q38
relation P127
type Q33506
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q33506 . ?t property:P127 resource:Q38 }
Italy
action filter_type
action find_reverse
entity Italy
relation owned by
type museum
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:museum . ?t property:owned_by resource:Italy }
[]
museum
Q841506
SYSTEM
Galleria Borghese
Q841506
action filter_type
action find_reverse
entity Q38
relation P127
type Q33506
[ANSWER] is under posessision of that administrative territory
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q33506 . ?t property:P127 resource:Q38 }
Galleria Borghese
Galleria Borghese is under posessision of that administrative territory
Galleria Borghese
action filter_type
action find_reverse
entity Italy
relation owned by
type museum
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:museum . ?t property:owned_by resource:Italy }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q12737077 Q15617994 Q15617994
USER
Which administrative territories have atmost 1 occupations and administrative territories as government ?
(c(Q15617994),P122,c(Q12737077)|c(Q15617994))
action atmost
action union
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
value 1
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q12737077'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?g ) WHERE { { ?y property:P122 ?s . ?s rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } UNION { ?y property:P122 ?s . ?y rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q12737077 } } GROUP BY ?y } . FILTER ( ?g <= 1 ) }
action atmost
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'occupation'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?g ) WHERE { { ?y property:basic_form_of_government ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?y property:basic_form_of_government ?s . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:occupation } } GROUP BY ?y } . FILTER ( ?g <= 1 ) }
[]
occupation designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q702 Q804 Q154547 Q801 Q805 Q419 Q668 Q414 Q142 Q165116 Q145 Q265 Q1130767 Q833 Q711 Q717 Q837 Q208500 Q541991 Q399 Q258 Q45 Q159 Q43 Q155 Q796 Q794 Q889 Q884 Q958 Q689837 Q315667 Q158290 Q153136 Q33 Q32 Q31 Q30 Q37 Q34 Q1133252 Q39 Q38 Q423 Q953 Q29999 Q153091 Q280312 Q1130957 Q236 Q230 Q232 Q238 Q20 Q1045 Q27 Q28 Q29 Q313175 Q189 Q843 Q184 Q876826 Q347 Q3462133 Q227 Q225 Q224 Q815731 Q96 Q228 Q17 Q1989 Q902 Q725731 Q1033 Q115 Q754 Q212 Q213 Q215 Q1483510 Q917 Q970 Q760 Q574 Q694594 Q1132344 Q696651 Q77 Q199688 Q878 Q948 Q811 Q1011 Q1013 Q1049
(c(Q15617994),P122,c(Q12737077)|c(Q15617994))
action atmost
action union
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
value 1
[ANSWERS] have atmost 1 occupations and administrative territories as government
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q12737077'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?g ) WHERE { { ?y property:P122 ?s . ?s rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } UNION { ?y property:P122 ?s . ?y rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q12737077 } } GROUP BY ?y } . FILTER ( ?g <= 1 ) }
Federated States of Micronesia Panama duchy Israel Yemen Peru India Argentina France grand duchy United Kingdom Uzbekistan Bear Creek Village Malaysia Mongolia Venezuela Nepal principality Hummelfeld Armenia South Africa Portugal Russia Turkey Brazil Iraq Iran Afghanistan South Korea South Sudan Spanish Sahara Saxe-Weimar Duchy of Lucca Habsburg Empire Finland Luxembourg Belgium United States of America Lithuania Sweden Conyngham Switzerland Italy North Korea Zambia Kingdom of the Netherlands Duchy of Prussia Principality of Lüneburg Courtdale Montenegro Georgia Kazakhstan San Marino Norway Somalia Ireland Hungary Spain Saxe-Lauenburg Iceland Pakistan Belarus Ellwangen Abbey Liechtenstein Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Principality of Bulgaria Mexico Andorra Japan Saskatchewan Bangladesh Ashley, Pennsylvania Nigeria Ethiopia Trinidad and Tobago Ukraine Czech Republic Slovenia Principality of Wales Bhutan Comoros Saint Lucia East Timor Bremen-Verden Avoca Saxe-Eisenach Uruguay Almohad United Arab Emirates Tunisia Nicaragua Cape Verde Lesotho Sudan
Italy, Brazil and United States of America have atmost 1 occupations and administrative territories as government
Italy Brazil United States of America
action atmost
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'occupation'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?g ) WHERE { { ?y property:basic_form_of_government ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?y property:basic_form_of_government ?s . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:occupation } } GROUP BY ?y } . FILTER ( ?g <= 1 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q224
P530
Q15617994 Q15617994
USER
How many administrative territories have ambassadorial relations with approximately the same number of administrative territories as Croatia ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q224
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { FILTER ( ?k = ?s ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { resource:Q224 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?k ) WHERE { ?y property:P530 ?c . ?y rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?y } }
Croatia
action count
action approx
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 Croatia
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 ( COUNT ( ?y ) AS ?g ) WHERE { FILTER ( ?k = ?s ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { resource:Croatia property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?k ) WHERE { ?y property:diplomatic_relation ?c . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
148
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 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 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q224
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { FILTER ( ?k = ?s ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { resource:Q224 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?k ) WHERE { ?y property:P530 ?c . ?y rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?y } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia 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 Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia 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 Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
148
action count
action approx
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 Croatia
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 ( COUNT ( ?y ) AS ?g ) WHERE { FILTER ( ?k = ?s ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { resource:Croatia property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?k ) WHERE { ?y property:diplomatic_relation ?c . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1037
P530
Q15617994 Q15617994
USER
And what about Rwanda?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1037
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?o ) WHERE { ?x rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 . ?x property:P530 ?i } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { resource:Q1037 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?o = ?t ) }
Rwanda
action count
action approx
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 Rwanda
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 ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?o ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?i } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { resource:Rwanda property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o = ?t ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
147
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 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 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 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 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1037
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?o ) WHERE { ?x rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 . ?x property:P530 ?i } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { resource:Q1037 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?o = ?t ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia 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 Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco 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 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 Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
147
action count
action approx
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 Rwanda
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 ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?o ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?i } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { resource:Rwanda property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o = ?t ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q38
P530
Q15617994
USER
How many administrative territories have a diplomatic relationship with Italy ?
(Q38,P530,c(Q15617994))
action count
action filter_type
action find
entity Q38
relation P530
type Q15617994
['Q38', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Q38 property:P530 ?x . ?x rdf:type ontology:Q15617994 }
Italy
action count
action filter_type
action find
entity Italy
relation diplomatic relation
type designation for an administrative territorial entity
['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Italy property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
74
Q739 Q805 Q801 Q189 Q843 Q928 Q184 Q822 Q419 Q668 Q347 Q414 Q142 Q225 Q224 Q55 Q222 Q221 Q145 Q148 Q96 Q17 Q229 Q228 Q33 Q32 Q31 Q37 Q36 Q34 Q77 Q39 Q1016 Q227 Q215 Q79 Q191 Q733 Q948 Q869 Q298 Q45 Q252 Q30 Q399 Q403 Q230 Q233 Q258 Q43 Q212 Q213 Q236 Q211 Q159 Q217 Q214 Q41 Q155 Q218 Q219 Q238 Q796 Q794 Q20 Q1045 Q889 Q27 Q28 Q29 Q884 Q423 Q881 Q114
(Q38,P530,c(Q15617994))
action count
action filter_type
action find
entity Q38
relation P530
type Q15617994
[ANSWER]
['Q38', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Q38 property:P530 ?x . ?x rdf:type ontology:Q15617994 }
Colombia Yemen Israel Iceland Pakistan Philippines Belarus Lebanon Peru India Liechtenstein Argentina France Bosnia and Herzegovina Croatia Netherlands Albania Republic of Macedonia United Kingdom People's Republic of China Mexico Japan Cyprus Andorra Finland Luxembourg Belgium Lithuania Poland Sweden Uruguay Switzerland Libya Azerbaijan Slovenia Egypt Estonia Paraguay Tunisia Thailand Chile Portugal Indonesia United States of America Armenia Serbia Georgia Malta South Africa Turkey Ukraine Czech Republic Montenegro Latvia Russia Republic of Moldova Slovakia Greece Brazil Romania Bulgaria San Marino Iraq Iran Norway Somalia Afghanistan Ireland Hungary Spain South Korea North Korea Vietnam Kenya
74
action count
action filter_type
action find
entity Italy
relation diplomatic relation
type designation for an administrative territorial entity
['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Italy property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q16
Q15617994
USER
And how about Canada?
(Q16,P530,c(Q15617994))
action count
action filter_type
action find
entity Q16
relation P530
type Q15617994
['Q16', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d rdf:type ontology:Q15617994 . resource:Q16 property:P530 ?d }
Canada
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Canada property:diplomatic_relation ?d }
[]
designation for an administrative territorial entity
SYSTEM
34
(Q16,P530,c(Q15617994))
action count
action filter_type
action find
entity Q16
relation P530
type Q15617994
[ANSWER]
['Q16', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d rdf:type ontology:Q15617994 . resource:Q16 property:P530 ?d }
34
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Canada property:diplomatic_relation ?d }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3594236 Q841506
P17
Q15617994
USER
Which administrative territories do Galleria Borghese or Šeherdžik belong to ?
OR((Q841506,P17,c(Q15617994)), (Q3594236,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q841506
relation P17
action find
entity Q3594236
relation P17
type Q15617994
{'OR': [['Q841506', 'P17', {'concept': 'Q15617994'}], ['Q3594236', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q841506 property:P17 ?l } UNION { resource:Q3594236 property:P17 ?l } } . ?l rdf:type ontology:Q15617994 }
Šeherdžik Galleria Borghese
action filter_type
action union
action find
entity Galleria Borghese
relation country
action find
entity Šeherdžik
relation country
type designation for an administrative territorial entity
{'OR': [['Galleria Borghese', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Šeherdžik', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Galleria_Borghese property:country ?l } UNION { resource:Šeherdžik property:country ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q225 Q38
SYSTEM
Bosnia and Herzegovina, Italy
Q225 Q38
OR((Q841506,P17,c(Q15617994)), (Q3594236,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q841506
relation P17
action find
entity Q3594236
relation P17
type Q15617994
Galleria Borghese or Šeherdžik belong to the [ANSWERS]
{'OR': [['Q841506', 'P17', {'concept': 'Q15617994'}], ['Q3594236', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q841506 property:P17 ?l } UNION { resource:Q3594236 property:P17 ?l } } . ?l rdf:type ontology:Q15617994 }
Bosnia and Herzegovina Italy
Galleria Borghese or Šeherdžik belong to the Bosnia and Herzegovina and Italy
Bosnia and Herzegovina Italy
action filter_type
action union
action find
entity Galleria Borghese
relation country
action find
entity Šeherdžik
relation country
type designation for an administrative territorial entity
{'OR': [['Galleria Borghese', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Šeherdžik', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Galleria_Borghese property:country ?l } UNION { resource:Šeherdžik property:country ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P706
Q271669 Q2221906 Q15617994
USER
Which administrative territories are located in max number of landforms or geographic locations ?
(c(Q15617994),P706,c(Q271669)|c(Q2221906))
action argmax
action union
action find_tuple_counts
relation P706
type Q15617994
type Q271669
action find_tuple_counts
relation P706
type Q15617994
type Q2221906
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q271669'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?r ) WHERE { { ?i property:P706 ?p . ?i rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q271669 } UNION { ?i property:P706 ?p . ?p rdf:type ontology:Q2221906 . ?i rdf:type ontology:Q15617994 } } GROUP BY ?i } . FILTER ( ?r = ?q ) . { SELECT DISTINCT ( MAX ( ?y ) AS ?q ) { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?y ) WHERE { VALUES ( ?o ) { ( ontology:Q2221906 ) ( ontology:Q271669 ) } . ?s rdf:type ?o } GROUP BY ?e } } }
action argmax
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type landform
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type geographic location
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'landform'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?r ) WHERE { { ?i property:located_on_terrain_feature ?p . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:landform } UNION { ?i property:located_on_terrain_feature ?p . ?p rdf:type ontology:geographic_location . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?i } . FILTER ( ?r = ?q ) . { SELECT DISTINCT ( MAX ( ?y ) AS ?q ) { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?y ) WHERE { VALUES ( ?o ) { ( ontology:geographic_location ) ( ontology:landform ) } . ?s rdf:type ?o } GROUP BY ?e } } }
[]
landform geographic location designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(c(Q15617994),P706,c(Q271669)|c(Q2221906))
action argmax
action union
action find_tuple_counts
relation P706
type Q15617994
type Q271669
action find_tuple_counts
relation P706
type Q15617994
type Q2221906
The [ANSWER] is located in max number of landforms or geographic locations
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q271669'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?r ) WHERE { { ?i property:P706 ?p . ?i rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q271669 } UNION { ?i property:P706 ?p . ?p rdf:type ontology:Q2221906 . ?i rdf:type ontology:Q15617994 } } GROUP BY ?i } . FILTER ( ?r = ?q ) . { SELECT DISTINCT ( MAX ( ?y ) AS ?q ) { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?y ) WHERE { VALUES ( ?o ) { ( ontology:Q2221906 ) ( ontology:Q271669 ) } . ?s rdf:type ?o } GROUP BY ?e } } }
United Kingdom
The United Kingdom is located in max number of landforms or geographic locations
United Kingdom
action argmax
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type landform
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type geographic location
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'landform'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?r ) WHERE { { ?i property:located_on_terrain_feature ?p . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:landform } UNION { ?i property:located_on_terrain_feature ?p . ?p rdf:type ontology:geographic_location . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?i } . FILTER ( ?r = ?q ) . { SELECT DISTINCT ( MAX ( ?y ) AS ?q ) { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?y ) WHERE { VALUES ( ?o ) { ( ontology:geographic_location ) ( ontology:landform ) } . ?s rdf:type ?o } GROUP BY ?e } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories holds diplomatic relationship with max number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?y ) { SELECT DISTINCT ?v ( COUNT ( ?p ) AS ?a ) WHERE { ?v property:P530 ?p . ?p rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?v } } . { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?i ) WHERE { ?j property:P530 ?f . ?j rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?j } . FILTER ( ?i = ?y ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?y ) { SELECT DISTINCT ?v ( COUNT ( ?p ) AS ?a ) WHERE { ?v property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } } . { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?i ) WHERE { ?j property:diplomatic_relation ?f . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . FILTER ( ?i = ?y ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] holds diplomatic relationship with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?y ) { SELECT DISTINCT ?v ( COUNT ( ?p ) AS ?a ) WHERE { ?v property:P530 ?p . ?p rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?v } } . { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?i ) WHERE { ?j property:P530 ?f . ?j rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?j } . FILTER ( ?i = ?y ) }
Italy
Italy holds diplomatic relationship with max number of administrative territories
Italy
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?y ) { SELECT DISTINCT ?v ( COUNT ( ?p ) AS ?a ) WHERE { ?v property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } } . { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?i ) WHERE { ?j property:diplomatic_relation ?f . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . FILTER ( ?i = ?y ) }
[]