Simple Question (Direct)
Simple Question
Q2849353
P734
Q82799
USER
Who is associated with Ángel Pérez ?
(Q2849353,P734,c(Q82799))
action filter_type
action find
entity Q2849353
relation P734
type Q82799
['Q2849353', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q2849353 property:P734 ?d . ?d rdf:type ontology:Q82799 }
Ángel Pérez
action filter_type
action find
entity Ángel Pérez
relation family name
type name
['Ángel Pérez', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Ángel_Pérez property:family_name ?d . ?d rdf:type ontology:name }
[]
name
Q383010
SYSTEM
Pérez
Q383010
(Q2849353,P734,c(Q82799))
action filter_type
action find
entity Q2849353
relation P734
type Q82799
[ANSWER] is associated with Ángel [ANSWER]
['Q2849353', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q2849353 property:P734 ?d . ?d rdf:type ontology:Q82799 }
Pérez
Pérez is associated with Ángel Pérez
Pérez
action filter_type
action find
entity Ángel Pérez
relation family name
type name
['Ángel Pérez', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Ángel_Pérez property:family_name ?d . ?d rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5648594 Q2849353
P19 P17
Q15617994
USER
Which administrative territories are the places of birth of Ángel Pérez or are Hanley Grange located in ?
OR((Q2849353,P19,c(Q15617994)), (Q5648594,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2849353
relation P19
action find
entity Q5648594
relation P17
type Q15617994
{'OR': [['Q2849353', 'P19', {'concept': 'Q15617994'}], ['Q5648594', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q2849353 property:P19 ?q } UNION { resource:Q5648594 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
Hanley Grange Ángel Pérez
action filter_type
action union
action find
entity Ángel Pérez
relation place of birth
action find
entity Hanley Grange
relation country
type designation for an administrative territorial entity
{'OR': [['Ángel Pérez', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Hanley Grange', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Ángel_Pérez property:place_of_birth ?q } UNION { resource:Hanley_Grange property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q683206 Q145
SYSTEM
Río Piedras, United Kingdom
Q683206 Q145
OR((Q2849353,P19,c(Q15617994)), (Q5648594,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2849353
relation P19
action find
entity Q5648594
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q2849353', 'P19', {'concept': 'Q15617994'}], ['Q5648594', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q2849353 property:P19 ?q } UNION { resource:Q5648594 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
Río Piedras United Kingdom
Which administrative territories are the places of birth of Ángel Pérez or are Hanley Grange located in
Río Piedras United Kingdom
action filter_type
action union
action find
entity Ángel Pérez
relation place of birth
action find
entity Hanley Grange
relation country
type designation for an administrative territorial entity
{'OR': [['Ángel Pérez', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Hanley Grange', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Ángel_Pérez property:place_of_birth ?q } UNION { resource:Hanley_Grange property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q12216720 Q5648594
P27 P17
Q15617994
USER
Which administrative territories are Hanley Grange located in or do Soleiman Eid belong to ?
OR((Q5648594,P17,c(Q15617994)), (Q12216720,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5648594
relation P17
action find
entity Q12216720
relation P27
type Q15617994
{'OR': [['Q5648594', 'P17', {'concept': 'Q15617994'}], ['Q12216720', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q5648594 property:P17 ?q } UNION { resource:Q12216720 property:P27 ?q } } . ?q rdf:type ontology:Q15617994 }
Soleiman Eid Hanley Grange
action filter_type
action union
action find
entity Hanley Grange
relation country
action find
entity Soleiman Eid
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Hanley Grange', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Soleiman Eid', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Hanley_Grange property:country ?q } UNION { resource:Soleiman_Eid property:country_of_citizenship ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q79 Q145
SYSTEM
Egypt, United Kingdom
Q79 Q145
OR((Q5648594,P17,c(Q15617994)), (Q12216720,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5648594
relation P17
action find
entity Q12216720
relation P27
type Q15617994
Hanley Grange are located belong to [ANSWERS]
{'OR': [['Q5648594', 'P17', {'concept': 'Q15617994'}], ['Q12216720', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q5648594 property:P17 ?q } UNION { resource:Q12216720 property:P27 ?q } } . ?q rdf:type ontology:Q15617994 }
Egypt United Kingdom
Hanley Grange are located belong to Egypt and United Kingdom
Egypt United Kingdom
action filter_type
action union
action find
entity Hanley Grange
relation country
action find
entity Soleiman Eid
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Hanley Grange', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Soleiman Eid', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Hanley_Grange property:country ?q } UNION { resource:Soleiman_Eid property:country_of_citizenship ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3277677
P27
Q502895
USER
Are Edward Villiers, 1st Earl of Jersey a citizen of those administrative territories ?
(Q3277677,P27,Q79) (Q3277677,P27,Q145)
action is_in
entity prev_answer
action find
entity Q3277677
relation P27
['Q3277677', 'P27', 'Q79'] ['Q3277677', 'P27', 'Q145']
ASK WHERE { VALUES ( ?e ) { ( resource:Q79 ) ( resource:Q145 ) } . resource:Q3277677 property:P27 ?e }
Edward Villiers, 1st Earl of Jersey
action is_in
entity prev_answer
action find
entity Edward Villiers, 1st Earl of Jersey
relation country of citizenship
['Edward Villiers, 1st Earl of Jersey', 'country of citizenship', 'Egypt'] ['Edward Villiers, 1st Earl of Jersey', 'country of citizenship', 'United Kingdom']
ASK WHERE { VALUES ( ?e ) { ( resource:Egypt ) ( resource:United_Kingdom ) } . resource:Edward_Villiers,_1st_Earl_of_Jersey property:country_of_citizenship ?e }
[]
common name
SYSTEM
NO
(Q3277677,P27,Q79) (Q3277677,P27,Q145)
action is_in
entity prev_answer
action find
entity Q3277677
relation P27
[ANSWER]
['Q3277677', 'P27', 'Q79'] ['Q3277677', 'P27', 'Q145']
ASK WHERE { VALUES ( ?e ) { ( resource:Q79 ) ( resource:Q145 ) } . resource:Q3277677 property:P27 ?e }
No
action is_in
entity prev_answer
action find
entity Edward Villiers, 1st Earl of Jersey
relation country of citizenship
['Edward Villiers, 1st Earl of Jersey', 'country of citizenship', 'Egypt'] ['Edward Villiers, 1st Earl of Jersey', 'country of citizenship', 'United Kingdom']
ASK WHERE { VALUES ( ?e ) { ( resource:Egypt ) ( resource:United_Kingdom ) } . resource:Edward_Villiers,_1st_Earl_of_Jersey property:country_of_citizenship ?e }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q79
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with less number of administrative territories than Egypt ?
(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 Q79
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { ?s rdf:type ontology:Q15617994 . ?s property:P530 resource:Q79 } } . FILTER ( ?u < ?y ) }
Egypt
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 Egypt
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 ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:diplomatic_relation resource:Egypt } } . FILTER ( ?u < ?y ) }
[]
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 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 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(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 Q79
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with less number of administrative territories than Egypt
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { ?s rdf:type ontology:Q15617994 . ?s property:P530 resource:Q79 } } . FILTER ( ?u < ?y ) }
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 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 Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
Georgia, Netherlands and Poland have diplomatic relationships with less number of administrative territories than Egypt
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 Egypt
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 ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:diplomatic_relation resource:Egypt } } . FILTER ( ?u < ?y ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P530
Q15617994 Q1048835
USER
How many administrative territories and political territories are known to have diplomatic connections with that administrative territory ?
(c(Q15617994),P530,Q36) (c(Q1048835),P530,Q36) (c(Q15617994),P530,Q230) (c(Q1048835),P530,Q230) (c(Q15617994),P530,Q55) (c(Q1048835),P530,Q55) (c(Q15617994),P530,Q36) (c(Q1048835),P530,Q36)
[{'concept': 'Q15617994'}, 'P530', 'Q36'] [{'concept': 'Q1048835'}, 'P530', 'Q36'] [{'concept': 'Q15617994'}, 'P530', 'Q230'] [{'concept': 'Q1048835'}, 'P530', 'Q230'] [{'concept': 'Q15617994'}, 'P530', 'Q55'] [{'concept': 'Q1048835'}, 'P530', 'Q55'] [{'concept': 'Q15617994'}, 'P530', 'Q36'] [{'concept': 'Q1048835'}, 'P530', 'Q36']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P530 resource:Q7208890 } UNION { ?y property:P530 resource:Q7208890 } UNION { ?z property:P530 resource:Q5547323 } UNION { ?y property:P530 resource:Q5547323 } UNION { ?z property:P530 resource:Q22442862 } UNION { ?y property:P530 resource:Q22442862 } UNION { ?z property:P530 resource:Q7208890 } UNION { ?y property:P530 resource:Q7208890 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Poland'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Poland'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Georgia'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Georgia'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Poland'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Poland']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:diplomatic_relation resource:Poland } UNION { ?y property:diplomatic_relation resource:Poland } UNION { ?z property:diplomatic_relation resource:Georgia } UNION { ?y property:diplomatic_relation resource:Georgia } UNION { ?z property:diplomatic_relation resource:Netherlands } UNION { ?y property:diplomatic_relation resource:Netherlands } UNION { ?z property:diplomatic_relation resource:Poland } UNION { ?y property:diplomatic_relation resource:Poland } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
designation for an administrative territorial entity political territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q36
SYSTEM
Did you mean Poland ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P530 resource:Q7208890 } UNION { ?y property:P530 resource:Q7208890 } UNION { ?z property:P530 resource:Q5547323 } UNION { ?y property:P530 resource:Q5547323 } UNION { ?z property:P530 resource:Q22442862 } UNION { ?y property:P530 resource:Q22442862 } UNION { ?z property:P530 resource:Q7208890 } UNION { ?y property:P530 resource:Q7208890 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
Did you mean Poland ?
Poland
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:diplomatic_relation resource:Poland } UNION { ?y property:diplomatic_relation resource:Poland } UNION { ?z property:diplomatic_relation resource:Georgia } UNION { ?y property:diplomatic_relation resource:Georgia } UNION { ?z property:diplomatic_relation resource:Netherlands } UNION { ?y property:diplomatic_relation resource:Netherlands } UNION { ?z property:diplomatic_relation resource:Poland } UNION { ?y property:diplomatic_relation resource:Poland } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q15617994),P530,Q36) (c(Q1048835),P530,Q36) (c(Q15617994),P530,Q230) (c(Q1048835),P530,Q230) (c(Q15617994),P530,Q55) (c(Q1048835),P530,Q55) (c(Q15617994),P530,Q36) (c(Q1048835),P530,Q36)
[{'concept': 'Q15617994'}, 'P530', 'Q36'] [{'concept': 'Q1048835'}, 'P530', 'Q36'] [{'concept': 'Q15617994'}, 'P530', 'Q230'] [{'concept': 'Q1048835'}, 'P530', 'Q230'] [{'concept': 'Q15617994'}, 'P530', 'Q55'] [{'concept': 'Q1048835'}, 'P530', 'Q55'] [{'concept': 'Q15617994'}, 'P530', 'Q36'] [{'concept': 'Q1048835'}, 'P530', 'Q36']
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Poland'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Poland'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Georgia'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Georgia'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Poland'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Poland']
[]
SYSTEM
3 administrative territories and 3 political territories
Q155 Q184 Q183 Q408 Q16 Q38
(c(Q15617994),P530,Q36) (c(Q1048835),P530,Q36) (c(Q15617994),P530,Q230) (c(Q1048835),P530,Q230) (c(Q15617994),P530,Q55) (c(Q1048835),P530,Q55) (c(Q15617994),P530,Q36) (c(Q1048835),P530,Q36)
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', 'Q36'] [{'concept': 'Q1048835'}, 'P530', 'Q36'] [{'concept': 'Q15617994'}, 'P530', 'Q230'] [{'concept': 'Q1048835'}, 'P530', 'Q230'] [{'concept': 'Q15617994'}, 'P530', 'Q55'] [{'concept': 'Q1048835'}, 'P530', 'Q55'] [{'concept': 'Q15617994'}, 'P530', 'Q36'] [{'concept': 'Q1048835'}, 'P530', 'Q36']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P530 resource:Q7208890 } UNION { ?y property:P530 resource:Q7208890 } UNION { ?z property:P530 resource:Q5547323 } UNION { ?y property:P530 resource:Q5547323 } UNION { ?z property:P530 resource:Q22442862 } UNION { ?y property:P530 resource:Q22442862 } UNION { ?z property:P530 resource:Q7208890 } UNION { ?y property:P530 resource:Q7208890 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
Brazil Belarus Germany Australia Canada Italy
3 administrative territories and 3 political territories
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Poland'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Poland'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Georgia'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Georgia'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Poland'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Poland']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:diplomatic_relation resource:Poland } UNION { ?y property:diplomatic_relation resource:Poland } UNION { ?z property:diplomatic_relation resource:Georgia } UNION { ?y property:diplomatic_relation resource:Georgia } UNION { ?z property:diplomatic_relation resource:Netherlands } UNION { ?y property:diplomatic_relation resource:Netherlands } UNION { ?z property:diplomatic_relation resource:Poland } UNION { ?y property:diplomatic_relation resource:Poland } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q241
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic associations with lesser number of administrative territories than Cuba ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q241
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?d ) WHERE { ?e rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 . ?e property:P530 ?y } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { resource:Q241 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } . FILTER ( ?d < ?z ) }
Cuba
action less
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 Cuba
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 ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?d ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:diplomatic_relation ?y } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { resource:Cuba property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?d < ?z ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q96
SYSTEM
Netherlands, Poland, Mexico
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q265 Q712 Q717 Q837 Q398 Q657 Q792 Q790 Q954 Q958 Q881 Q986 Q242 Q244 Q811 Q33 Q924 Q36 Q34 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1029 Q1028 Q786 Q228 Q227 Q224 Q221 Q96 Q229 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q77 Q878 Q774 Q817 Q810 Q1019 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q241
relation P530
type Q15617994
[ANSWERS] have diplomatic associations with lesser number of administrative territories than Cuba
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?d ) WHERE { ?e rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 . ?e property:P530 ?y } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { resource:Q241 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } . FILTER ( ?d < ?z ) }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Uzbekistan Fiji Venezuela Nepal Bahrain Chad El Salvador Haiti Zimbabwe South Sudan Vietnam Eritrea Belize Barbados Nicaragua Finland Tanzania Poland Sweden 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 Hungary Brunei Sudan Mauritius Malawi Iceland Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Croatia Republic of Macedonia Mexico Cyprus 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 Latvia Republic of Moldova Slovakia Slovenia 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 Uruguay United Arab Emirates Guatemala Kuwait Jordan Madagascar Togo Tonga Spain New Caledonia Thailand
Netherlands, Poland and Mexico have diplomatic associations with lesser number of administrative territories than Cuba
Netherlands Poland Mexico
action less
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 Cuba
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 ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?d ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:diplomatic_relation ?y } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { resource:Cuba property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?d < ?z ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q45
P530
Q15617994 Q15617994
USER
And how about Portugal?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q45
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?e ) WHERE { ?g property:P530 ?y . ?g rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Q45 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?e < ?r ) }
Portugal
action less
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 Portugal
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 ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?e ) WHERE { ?g property:diplomatic_relation ?y . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Portugal property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e < ?r ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q96
SYSTEM
Netherlands, Poland, Mexico
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q265 Q712 Q717 Q837 Q398 Q657 Q792 Q790 Q954 Q958 Q881 Q986 Q242 Q244 Q811 Q33 Q924 Q36 Q34 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1029 Q1028 Q786 Q228 Q227 Q224 Q221 Q96 Q229 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q77 Q878 Q774 Q817 Q810 Q1019 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q45
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?e ) WHERE { ?g property:P530 ?y . ?g rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Q45 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?e < ?r ) }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Uzbekistan Fiji Venezuela Nepal Bahrain Chad El Salvador Haiti Zimbabwe South Sudan Vietnam Eritrea Belize Barbados Nicaragua Finland Tanzania Poland Sweden 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 Hungary Brunei Sudan Mauritius Malawi Iceland Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Croatia Republic of Macedonia Mexico Cyprus 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 Latvia Republic of Moldova Slovakia Slovenia 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 Uruguay United Arab Emirates Guatemala Kuwait Jordan Madagascar Togo Tonga Spain New Caledonia Thailand
Netherlands Poland Mexico
action less
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 Portugal
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 ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?e ) WHERE { ?g property:diplomatic_relation ?y . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Portugal property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e < ?r ) }
[]