Simple Question (Direct)
Simple Question
Q3725988
P27
Q15617994
USER
Which administrative territory is the native country of Enrico Piccioni ?
(Q3725988,P27,c(Q15617994))
action filter_type
action find
entity Q3725988
relation P27
type Q15617994
['Q3725988', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q3725988 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Enrico Piccioni
action filter_type
action find
entity Enrico Piccioni
relation country of citizenship
type designation for an administrative territorial entity
['Enrico Piccioni', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Enrico_Piccioni property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q3725988,P27,c(Q15617994))
action filter_type
action find
entity Q3725988
relation P27
type Q15617994
[ANSWER] is the native country of Enrico Piccioni
['Q3725988', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q3725988 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Italy
Italy is the native country of Enrico Piccioni
Italy
action filter_type
action find
entity Enrico Piccioni
relation country of citizenship
type designation for an administrative territorial entity
['Enrico Piccioni', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Enrico_Piccioni property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38
P1001
Q1292279
USER
Which political borders apply to jurisdiction over that administrative territory ?
(c(Q1292279),P1001,Q38)
action filter_type
action find_reverse
entity Q38
relation P1001
type Q1292279
[{'concept': 'Q1292279'}, 'P1001', 'Q38']
SELECT DISTINCT ?c WHERE { ?c property:P1001 resource:Q38 . ?c rdf:type ontology:Q1292279 }
Italy
action filter_type
action find_reverse
entity Italy
relation applies to jurisdiction
type political border
[{'concept': 'political border'}, 'applies to jurisdiction', 'Italy']
SELECT DISTINCT ?c WHERE { ?c property:applies_to_jurisdiction resource:Italy . ?c rdf:type ontology:political_border }
[]
political border
Q1991288 Q1991956 Q17351788
SYSTEM
France–Italy border, Austria–Italy border, Italy–Spain border
Q1991956 Q17351788 Q664063 Q572463 Q17351785 Q17351786 Q17351787 Q17351688 Q17351733 Q1991264 Q2457562 Q17351761 Q17351692 Q17351789 Q1991288
(c(Q1292279),P1001,Q38)
action filter_type
action find_reverse
entity Q38
relation P1001
type Q1292279
[ANSWERS] apply to jurisdiction over that administrative territory
[{'concept': 'Q1292279'}, 'P1001', 'Q38']
SELECT DISTINCT ?c WHERE { ?c property:P1001 resource:Q38 . ?c rdf:type ontology:Q1292279 }
Austria–Italy border Italy–Spain border Italy–Switzerland border Italy–Slovenia border Italy–Libya border Italy–Malta border Italy–Montenegro border Albania–Italy border Croatia–Italy border Italy–San Marino border Italy–Vatican City border Greece–Italy border Algeria–Italy border Italy–Tunisia border France–Italy border
France–Italy border, Austria–Italy border and Italy–Spain border apply to jurisdiction over that administrative territory
France–Italy border Austria–Italy border Italy–Spain border
action filter_type
action find_reverse
entity Italy
relation applies to jurisdiction
type political border
[{'concept': 'political border'}, 'applies to jurisdiction', 'Italy']
SELECT DISTINCT ?c WHERE { ?c property:applies_to_jurisdiction resource:Italy . ?c rdf:type ontology:political_border }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1991956
P17
Q15617994
USER
Which administrative territory is that political border present in ?
(Q1991956,P17,c(Q15617994))
action filter_type
action find
entity Q1991956
relation P17
type Q15617994
['Q1991956', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q1991956 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Austria–Italy border
action filter_type
action find
entity Austria–Italy border
relation country
type designation for an administrative territorial entity
['Austria–Italy border', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Austria–Italy_border property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1991288
SYSTEM
Did you mean France–Italy border ?
Q1991288 Q1991956 Q17351788
(Q1991288,P17,c(Q15617994)) (Q1991956,P17,c(Q15617994)) (Q17351788,P17,c(Q15617994))
[ANSWER]
['Q1991288', 'P17', {'concept': 'Q15617994'}] ['Q1991956', 'P17', {'concept': 'Q15617994'}] ['Q17351788', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q1991956 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
France–Italy border Austria–Italy border Italy–Spain border
Did you mean France–Italy border ?
France–Italy border
['France–Italy border', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Austria–Italy border', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Italy–Spain border', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Austria–Italy_border property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Austria–Italy border. Could you tell me the answer for that?
(Q1991956,P17,c(Q15617994))
Q1991956
['Q1991956', 'P17', {'concept': 'Q15617994'}]
['Austria–Italy border', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38
SYSTEM
Italy
Q38
(Q1991956,P17,c(Q15617994))
action filter_type
action find
entity Q1991956
relation P17
type Q15617994
That political border is in [ANSWER]
['Q1991956', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q1991956 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Italy
That political border is in Italy
Italy
action filter_type
action find
entity Austria–Italy border
relation country
type designation for an administrative territorial entity
['Austria–Italy border', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Austria–Italy_border property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19567881 Q1991288
P17
Q15617994
USER
Which administrative territories are France–Italy border or Tollenshof situated in ?
OR((Q1991288,P17,c(Q15617994)), (Q19567881,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1991288
relation P17
action find
entity Q19567881
relation P17
type Q15617994
{'OR': [['Q1991288', 'P17', {'concept': 'Q15617994'}], ['Q19567881', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q19567881 property:P17 ?f } UNION { resource:Q1991288 property:P17 ?f } } . ?f rdf:type ontology:Q15617994 }
Tollenshof France–Italy border
action filter_type
action union
action find
entity France–Italy border
relation country
action find
entity Tollenshof
relation country
type designation for an administrative territorial entity
{'OR': [['France–Italy border', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Tollenshof', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Tollenshof property:country ?f } UNION { resource:France–Italy_border property:country ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q38 Q55
SYSTEM
France, Italy, Netherlands
Q142 Q38 Q55
OR((Q1991288,P17,c(Q15617994)), (Q19567881,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1991288
relation P17
action find
entity Q19567881
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q1991288', 'P17', {'concept': 'Q15617994'}], ['Q19567881', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q19567881 property:P17 ?f } UNION { resource:Q1991288 property:P17 ?f } } . ?f rdf:type ontology:Q15617994 }
France Italy Netherlands
Which administrative territories are France–Italy border or Tollenshof situated in
France Italy Netherlands
action filter_type
action union
action find
entity France–Italy border
relation country
action find
entity Tollenshof
relation country
type designation for an administrative territorial entity
{'OR': [['France–Italy border', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Tollenshof', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Tollenshof property:country ?f } UNION { resource:France–Italy_border property:country ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1434368
P17
Q82794
USER
Are Rhine basin situated in those administrative territories ?
(Q1434368,P17,Q142) (Q1434368,P17,Q38) (Q1434368,P17,Q55)
action is_in
entity prev_answer
action find
entity Q1434368
relation P17
['Q1434368', 'P17', 'Q142'] ['Q1434368', 'P17', 'Q38'] ['Q1434368', 'P17', 'Q55']
ASK WHERE { resource:Q1434368 property:P17 ?s . VALUES ( ?s ) { ( resource:Q142 ) ( resource:Q38 ) ( resource:Q55 ) } }
Rhine basin
action is_in
entity prev_answer
action find
entity Rhine basin
relation country
['Rhine basin', 'country', 'France'] ['Rhine basin', 'country', 'Italy'] ['Rhine basin', 'country', 'Netherlands']
ASK WHERE { resource:Rhine_basin property:country ?s . VALUES ( ?s ) { ( resource:France ) ( resource:Italy ) ( resource:Netherlands ) } }
[]
geographic region
SYSTEM
YES
(Q1434368,P17,Q142) (Q1434368,P17,Q38) (Q1434368,P17,Q55)
action is_in
entity prev_answer
action find
entity Q1434368
relation P17
[ANSWER]
['Q1434368', 'P17', 'Q142'] ['Q1434368', 'P17', 'Q38'] ['Q1434368', 'P17', 'Q55']
ASK WHERE { resource:Q1434368 property:P17 ?s . VALUES ( ?s ) { ( resource:Q142 ) ( resource:Q38 ) ( resource:Q55 ) } }
Yes
action is_in
entity prev_answer
action find
entity Rhine basin
relation country
['Rhine basin', 'country', 'France'] ['Rhine basin', 'country', 'Italy'] ['Rhine basin', 'country', 'Netherlands']
ASK WHERE { resource:Rhine_basin property:country ?s . VALUES ( ?s ) { ( resource:France ) ( resource:Italy ) ( resource:Netherlands ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q38 Q22102728
P35
Q502895
USER
Does Carl Colton Branson have the highest formal authority in Italy ?
(Q38,P35,Q22102728)
action is_in
entity Q22102728
action find
entity Q38
relation P35
['Q38', 'P35', 'Q22102728']
ASK WHERE { resource:Q38 property:P35 resource:Q22102728 }
Italy Carl Colton Branson
action is_in
entity Carl Colton Branson
action find
entity Italy
relation head of state
['Italy', 'head of state', 'Carl Colton Branson']
ASK WHERE { resource:Italy property:head_of_state resource:Carl_Colton_Branson }
[]
common name
SYSTEM
NO
(Q38,P35,Q22102728)
action is_in
entity Q22102728
action find
entity Q38
relation P35
[ANSWER]
['Q38', 'P35', 'Q22102728']
ASK WHERE { resource:Q38 property:P35 resource:Q22102728 }
No
action is_in
entity Carl Colton Branson
action find
entity Italy
relation head of state
['Italy', 'head of state', 'Carl Colton Branson']
ASK WHERE { resource:Italy property:head_of_state resource:Carl_Colton_Branson }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q796
P530
Q15617994 Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with lesser number of administrative territories or political territories than Iraq ?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q796
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) ?r WHERE { { ?p property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q1048835 } UNION { ?r rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?p property:P530 ?r } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?d property:P530 resource:Q796 . { ?d rdf:type ?s . VALUES ( ?s ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } } } . FILTER ( ?l < ?h ) }
Iraq
action less
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
action count
action filter_multi_types
action find_reverse
entity Iraq
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) ?r WHERE { { ?p property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:political_territorial_entity } UNION { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:diplomatic_relation ?r } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?d property:diplomatic_relation resource:Iraq . { ?d rdf:type ?s . VALUES ( ?s ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } } } . FILTER ( ?l < ?h ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q710 Q717 Q837 Q399 Q398 Q657 Q45 Q41 Q792 Q790 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 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 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q796
relation P530
type Q15617994
type Q1048835
[ANSWERS] have diplomatic relationships with lesser number of administrative territories or political territories than Iraq
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) ?r WHERE { { ?p property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q1048835 } UNION { ?r rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?p property:P530 ?r } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?d property:P530 resource:Q796 . { ?d rdf:type ?s . VALUES ( ?s ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } } } . FILTER ( ?l < ?h ) }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Kiribati Venezuela Nepal Armenia Bahrain Chad Portugal Greece El Salvador Haiti 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 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 Togo Tonga Spain New Caledonia Thailand
Georgia, Netherlands and Poland have diplomatic relationships with lesser number of administrative territories or political territories than Iraq
Georgia Netherlands Poland
action less
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
action count
action filter_multi_types
action find_reverse
entity Iraq
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) ?r WHERE { { ?p property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:political_territorial_entity } UNION { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:diplomatic_relation ?r } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?d property:diplomatic_relation resource:Iraq . { ?d rdf:type ?s . VALUES ( ?s ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } } } . FILTER ( ?l < ?h ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q233
P530
Q15617994 Q15617994 Q1048835
USER
And what about Malta?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q233
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) ?l WHERE { VALUES ( ?w ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?j rdf:type ?w } GROUP BY ?l } . FILTER ( ?t < ?e ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { ?c property:P530 resource:Q233 . { ?c rdf:type ?y . VALUES ( ?y ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } } } }
Malta
action less
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
action count
action filter_multi_types
action find_reverse
entity Malta
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) ?l WHERE { VALUES ( ?w ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?j rdf:type ?w } GROUP BY ?l } . FILTER ( ?t < ?e ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { ?c property:diplomatic_relation resource:Malta . { ?c rdf:type ?y . VALUES ( ?y ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
Q230 Q184 Q948
SYSTEM
Georgia, Belarus, Tunisia
Q702 Q804 Q783 Q784 Q265 Q712 Q710 Q717 Q837 Q398 Q657 Q792 Q790 Q958 Q986 Q242 Q244 Q811 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q238 Q1045 Q1041 Q28 Q921 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q786 Q221 Q1036 Q1037 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q117 Q754 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q858 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q233
relation P530
type Q15617994
type Q1048835
[ANSWERS]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) ?l WHERE { VALUES ( ?w ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?j rdf:type ?w } GROUP BY ?l } . FILTER ( ?t < ?e ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { ?c property:P530 resource:Q233 . { ?c rdf:type ?y . VALUES ( ?y ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } } } }
Federated States of Micronesia Panama Honduras Dominica Uzbekistan Fiji Kiribati Venezuela Nepal Bahrain Chad El Salvador Haiti South Sudan Eritrea Belize Barbados Nicaragua Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan San Marino Somalia Senegal Hungary Brunei Mauritius Malawi Iceland Oman Belarus Morocco Dominican Republic Republic of Macedonia Uganda Rwanda Niger Estonia Burkina Faso Burundi Benin Nauru Palau Ghana Trinidad and Tobago Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Syria Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia
Georgia Belarus Tunisia
action less
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
action count
action filter_multi_types
action find_reverse
entity Malta
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) ?l WHERE { VALUES ( ?w ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?j rdf:type ?w } GROUP BY ?l } . FILTER ( ?t < ?e ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { ?c property:diplomatic_relation resource:Malta . { ?c rdf:type ?y . VALUES ( ?y ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q774
P194
Q11204 Q701632 Q15617994
USER
How many administrative territories have less number of legislatures or municipal councils as their representative body than Guatemala ?
(c(Q15617994),P194,c(Q11204)|c(Q701632))
action count
action less
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action count
action filter_multi_types
action find
entity Q774
relation P194
type Q11204
type Q701632
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) ?t WHERE { VALUES ( ?p ) { ( ontology:Q11204 ) ( ontology:Q701632 ) } . ?n rdf:type ?p } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Q774 property:P194 ?z . { { ?z rdf:type ontology:Q11204 } UNION { ?z rdf:type ontology:Q701632 } } } } . FILTER ( ?m < ?q ) }
Guatemala
action count
action less
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action count
action filter_multi_types
action find
entity Guatemala
relation legislative body
type legislature
type municipal council
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) ?t WHERE { VALUES ( ?p ) { ( ontology:legislature ) ( ontology:municipal_council ) } . ?n rdf:type ?p } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Guatemala property:legislative_body ?z . { { ?z rdf:type ontology:legislature } UNION { ?z rdf:type ontology:municipal_council } } } } . FILTER ( ?m < ?q ) }
[]
legislature municipal council designation for an administrative territorial entity
SYSTEM
87
Q804 Q801 Q419 Q668 Q414 Q142 Q55 Q1948 Q145 Q717 Q252320 Q187035 Q3361 Q657 Q258 Q1979 Q45 Q41 Q155 Q4628 Q794 Q153529 Q1965 Q242 Q1974 Q33 Q32 Q36 Q34 Q929 Q39 Q38 Q739 Q3685392 Q733 Q29999 Q854 Q153091 Q104192 Q603676 Q747074 Q72449 Q233 Q238 Q20 Q28 Q29 Q783 Q2009 Q2007 Q184 Q2003 Q1904 Q228 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q1989 Q697 Q298 Q754 Q750 Q212 Q213 Q211 Q6465 Q214 Q215 Q218 Q219 Q16110 Q694594 Q79 Q77 Q811 Q1011 Q1013 Q12620 Q176 Q1951 Q1952 Q2023 Q869
(c(Q15617994),P194,c(Q11204)|c(Q701632))
action count
action less
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action count
action filter_multi_types
action find
entity Q774
relation P194
type Q11204
type Q701632
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) ?t WHERE { VALUES ( ?p ) { ( ontology:Q11204 ) ( ontology:Q701632 ) } . ?n rdf:type ?p } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Q774 property:P194 ?z . { { ?z rdf:type ontology:Q11204 } UNION { ?z rdf:type ontology:Q701632 } } } } . FILTER ( ?m < ?q ) }
Panama Israel Peru India Argentina France Netherlands Manitoba United Kingdom Venezuela Pleinfeld Principality of Albania Doubs Chad South Africa Prince Edward Island Portugal Greece Brazil Faroe Islands Iran Duchy of Milan New Brunswick Belize British Columbia Finland Luxembourg Poland Sweden Central African Republic Switzerland Italy Colombia Municipality of Monaco Paraguay Kingdom of the Netherlands Sri Lanka Duchy of Prussia Kleinmachnow District of Keewatin comune of Italy Roccarainola Malta San Marino Norway Hungary Spain Honduras Yukon Northwest Territories Belarus Newfoundland and Labrador Ontario Andorra Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Saskatchewan Nauru Chile Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia department of France Slovakia Slovenia Romania Bulgaria region of Italy Bremen-Verden Egypt Uruguay Nicaragua Cape Verde Lesotho Mayenne Quebec Alberta Nova Scotia Nunavut Thailand
87
action count
action less
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action count
action filter_multi_types
action find
entity Guatemala
relation legislative body
type legislature
type municipal council
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) ?t WHERE { VALUES ( ?p ) { ( ontology:legislature ) ( ontology:municipal_council ) } . ?n rdf:type ?p } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Guatemala property:legislative_body ?z . { { ?z rdf:type ontology:legislature } UNION { ?z rdf:type ontology:municipal_council } } } } . FILTER ( ?m < ?q ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q184
P47
Q15617994
USER
Which administrative territories are adjacent to Belarus ?
(Q184,P47,c(Q15617994))
action filter_type
action find
entity Q184
relation P47
type Q15617994
['Q184', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q184 property:P47 ?o }
Belarus
action filter_type
action find
entity Belarus
relation shares border with
type designation for an administrative territorial entity
['Belarus', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Belarus property:shares_border_with ?o }
[]
designation for an administrative territorial entity
Q159 Q36 Q212
SYSTEM
Russia, Poland, Ukraine
Q212 Q37 Q211 Q159 Q36
(Q184,P47,c(Q15617994))
action filter_type
action find
entity Q184
relation P47
type Q15617994
[ANSWERS] are adjacent to Belarus
['Q184', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q184 property:P47 ?o }
Ukraine Lithuania Latvia Russia Poland
Russia, Poland and Ukraine are adjacent to Belarus
Russia Poland Ukraine
action filter_type
action find
entity Belarus
relation shares border with
type designation for an administrative territorial entity
['Belarus', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Belarus property:shares_border_with ?o }
[]