Simple Question (Direct)
Simple Question
Q57673
P19
Q56061
USER
Which administrative territory was Nouri al-Maliki born in ?
(Q57673,P19,c(Q56061))
action filter_type
action find
entity Q57673
relation P19
type Q56061
['Q57673', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q57673 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Nouri al-Maliki
action filter_type
action find
entity Nouri al-Maliki
relation place of birth
type administrative territorial entity
['Nouri al-Maliki', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Nouri_al-Maliki property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2617657
SYSTEM
Hindiya
Q2617657
(Q57673,P19,c(Q56061))
action filter_type
action find
entity Q57673
relation P19
type Q56061
Which administrative territory was Nouri al-Maliki born in
['Q57673', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q57673 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Hindiya
Which administrative territory was Nouri al-Maliki born in
Hindiya
action filter_type
action find
entity Nouri al-Maliki
relation place of birth
type administrative territorial entity
['Nouri al-Maliki', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Nouri_al-Maliki property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q57673
P6
Q15617994
USER
Which administrative territory has that person as its administrative leader ?
(c(Q15617994),P6,Q2617657)
action filter_type
action find_reverse
entity Q57673
relation P6
type Q15617994
[{'concept': 'Q15617994'}, 'P6', 'Q2617657']
SELECT DISTINCT ?v WHERE { ?v property:P6 resource:Q57673 . ?v rdf:type ontology:Q15617994 }
Nouri al-Maliki
action filter_type
action find_reverse
entity Nouri al-Maliki
relation head of government
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'head of government', 'Hindiya']
SELECT DISTINCT ?v WHERE { ?v property:head_of_government resource:Nouri_al-Maliki . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q796
SYSTEM
Iraq
Q796
(c(Q15617994),P6,Q2617657)
action filter_type
action find_reverse
entity Q57673
relation P6
type Q15617994
[ANSWER] has that person as its administrative leader
[{'concept': 'Q15617994'}, 'P6', 'Q2617657']
SELECT DISTINCT ?v WHERE { ?v property:P6 resource:Q57673 . ?v rdf:type ontology:Q15617994 }
Iraq
Iraq has that person as its administrative leader
Iraq
action filter_type
action find_reverse
entity Nouri al-Maliki
relation head of government
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'head of government', 'Hindiya']
SELECT DISTINCT ?v WHERE { ?v property:head_of_government resource:Nouri_al-Maliki . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2391761 Q796
P530 P27
Q1048835
USER
Which political territories have diplomatic relationships with Iraq and are Tammy Ogston a civilian of ?
AND((Q796,P530,c(Q1048835)), (Q2391761,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q796
relation P530
action find
entity Q2391761
relation P27
type Q1048835
{'AND': [['Q796', 'P530', {'concept': 'Q1048835'}], ['Q2391761', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1048835 . resource:Q796 property:P530 ?k . resource:Q2391761 property:P27 ?k }
Tammy Ogston Iraq
action filter_type
action intersection
action find
entity Iraq
relation diplomatic relation
action find
entity Tammy Ogston
relation country of citizenship
type political territorial entity
{'AND': [['Iraq', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Tammy Ogston', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_territorial_entity . resource:Iraq property:diplomatic_relation ?k . resource:Tammy_Ogston property:country_of_citizenship ?k }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
AND((Q796,P530,c(Q1048835)), (Q2391761,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q796
relation P530
action find
entity Q2391761
relation P27
type Q1048835
[ANSWER] have diplomatic relationships with Iraq and are Tammy Ogston a civilian of
{'AND': [['Q796', 'P530', {'concept': 'Q1048835'}], ['Q2391761', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1048835 . resource:Q796 property:P530 ?k . resource:Q2391761 property:P27 ?k }
Australia
Australia have diplomatic relationships with Iraq and are Tammy Ogston a civilian of
Australia
action filter_type
action intersection
action find
entity Iraq
relation diplomatic relation
action find
entity Tammy Ogston
relation country of citizenship
type political territorial entity
{'AND': [['Iraq', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Tammy Ogston', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_territorial_entity . resource:Iraq property:diplomatic_relation ?k . resource:Tammy_Ogston property:country_of_citizenship ?k }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q408 Q954 Q29
P530
Q15617994
USER
Does Australia have diplomatic associations with Zimbabwe and Spain ?
(Q408,P530,Q954) (Q408,P530,Q29)
action is_in
entity Q408
action intersection
action find_reverse
entity Q954
relation P530
action find_reverse
entity Q29
relation P530
['Q408', 'P530', 'Q954'] ['Q408', 'P530', 'Q29']
ASK WHERE { resource:Q408 property:P530 resource:Q29 . resource:Q408 property:P530 resource:Q954 }
Australia Zimbabwe Spain
action is_in
entity Australia
action intersection
action find_reverse
entity Zimbabwe
relation diplomatic relation
action find_reverse
entity Spain
relation diplomatic relation
['Australia', 'diplomatic relation', 'Zimbabwe'] ['Australia', 'diplomatic relation', 'Spain']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Spain . resource:Australia property:diplomatic_relation resource:Zimbabwe }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q408,P530,Q954) (Q408,P530,Q29)
action is_in
entity Q408
action intersection
action find_reverse
entity Q954
relation P530
action find_reverse
entity Q29
relation P530
[ANSWER]
['Q408', 'P530', 'Q954'] ['Q408', 'P530', 'Q29']
ASK WHERE { resource:Q408 property:P530 resource:Q29 . resource:Q408 property:P530 resource:Q954 }
Yes
action is_in
entity Australia
action intersection
action find_reverse
entity Zimbabwe
relation diplomatic relation
action find_reverse
entity Spain
relation diplomatic relation
['Australia', 'diplomatic relation', 'Zimbabwe'] ['Australia', 'diplomatic relation', 'Spain']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Spain . resource:Australia property:diplomatic_relation resource:Zimbabwe }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q57673 Q560923 Q796
P27
Q15617994
USER
Is Nouri al-Maliki a civilian of Herzhorn and Iraq ?
(Q57673,P27,Q560923) (Q57673,P27,Q796)
action is_in
entity Q57673
action intersection
action find_reverse
entity Q560923
relation P27
action find_reverse
entity Q796
relation P27
['Q57673', 'P27', 'Q560923'] ['Q57673', 'P27', 'Q796']
ASK WHERE { resource:Q57673 property:P27 resource:Q560923 . resource:Q57673 property:P27 resource:Q796 }
Nouri al-Maliki Herzhorn Iraq
action is_in
entity Nouri al-Maliki
action intersection
action find_reverse
entity Herzhorn
relation country of citizenship
action find_reverse
entity Iraq
relation country of citizenship
['Nouri al-Maliki', 'country of citizenship', 'Herzhorn'] ['Nouri al-Maliki', 'country of citizenship', 'Iraq']
ASK WHERE { resource:Nouri_al-Maliki property:country_of_citizenship resource:Herzhorn . resource:Nouri_al-Maliki property:country_of_citizenship resource:Iraq }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q57673,P27,Q560923) (Q57673,P27,Q796)
action is_in
entity Q57673
action intersection
action find_reverse
entity Q560923
relation P27
action find_reverse
entity Q796
relation P27
[ANSWER]
['Q57673', 'P27', 'Q560923'] ['Q57673', 'P27', 'Q796']
ASK WHERE { resource:Q57673 property:P27 resource:Q560923 . resource:Q57673 property:P27 resource:Q796 }
NO and YES respectively
action is_in
entity Nouri al-Maliki
action intersection
action find_reverse
entity Herzhorn
relation country of citizenship
action find_reverse
entity Iraq
relation country of citizenship
['Nouri al-Maliki', 'country of citizenship', 'Herzhorn'] ['Nouri al-Maliki', 'country of citizenship', 'Iraq']
ASK WHERE { resource:Nouri_al-Maliki property:country_of_citizenship resource:Herzhorn . resource:Nouri_al-Maliki property:country_of_citizenship resource:Iraq }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2617657 Q5358887 Q644718
P17
Q15617994
USER
Is Hindiya present in Elementary School District 159 and Sengerich ?
(Q2617657,P17,Q5358887) (Q2617657,P17,Q644718)
action is_in
entity Q2617657
action intersection
action find_reverse
entity Q5358887
relation P17
action find_reverse
entity Q644718
relation P17
['Q2617657', 'P17', 'Q5358887'] ['Q2617657', 'P17', 'Q644718']
ASK WHERE { resource:Q2617657 property:P17 resource:Q644718 . resource:Q2617657 property:P17 resource:Q5358887 }
Hindiya Elementary School District 159 Sengerich
action is_in
entity Hindiya
action intersection
action find_reverse
entity Elementary School District 159
relation country
action find_reverse
entity Sengerich
relation country
['Hindiya', 'country', 'Elementary School District 159'] ['Hindiya', 'country', 'Sengerich']
ASK WHERE { resource:Hindiya property:country resource:Sengerich . resource:Hindiya property:country resource:Elementary_School_District_159 }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q2617657,P17,Q5358887) (Q2617657,P17,Q644718)
action is_in
entity Q2617657
action intersection
action find_reverse
entity Q5358887
relation P17
action find_reverse
entity Q644718
relation P17
[ANSWER]
['Q2617657', 'P17', 'Q5358887'] ['Q2617657', 'P17', 'Q644718']
ASK WHERE { resource:Q2617657 property:P17 resource:Q644718 . resource:Q2617657 property:P17 resource:Q5358887 }
No
action is_in
entity Hindiya
action intersection
action find_reverse
entity Elementary School District 159
relation country
action find_reverse
entity Sengerich
relation country
['Hindiya', 'country', 'Elementary School District 159'] ['Hindiya', 'country', 'Sengerich']
ASK WHERE { resource:Hindiya property:country resource:Sengerich . resource:Hindiya property:country resource:Elementary_School_District_159 }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q13849 Q954
P47 P530
Q1048835
USER
Which political territories holds diplomatic relationship with Zimbabwe or are bordered by Sora ?
OR((Q954,P530,c(Q1048835)), (Q13849,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q954
relation P530
action find
entity Q13849
relation P47
type Q1048835
{'OR': [['Q954', 'P530', {'concept': 'Q1048835'}], ['Q13849', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q954 property:P530 ?x } UNION { resource:Q13849 property:P47 ?x } } . ?x rdf:type ontology:Q1048835 }
Sora Zimbabwe
action filter_type
action union
action find
entity Zimbabwe
relation diplomatic relation
action find
entity Sora
relation shares border with
type political territorial entity
{'OR': [['Zimbabwe', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Sora', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Zimbabwe property:diplomatic_relation ?x } UNION { resource:Sora property:shares_border_with ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q12275 Q183 Q13797 Q408 Q13800 Q13830 Q13777 Q13817 Q13819
SYSTEM
Les Llosses, Germany, Orís, Australia, Montesquiu, Sant Quirze de Besora, Alpens, Sant Agustí de Lluçanès, Sant Boi de Lluçanès
Q12275 Q183 Q13797 Q408 Q13800 Q13830 Q13777 Q13817 Q13819
OR((Q954,P530,c(Q1048835)), (Q13849,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q954
relation P530
action find
entity Q13849
relation P47
type Q1048835
[ANSWERS] hold diplomatic relationship with Zimbabwe or are bordered by Sora
{'OR': [['Q954', 'P530', {'concept': 'Q1048835'}], ['Q13849', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q954 property:P530 ?x } UNION { resource:Q13849 property:P47 ?x } } . ?x rdf:type ontology:Q1048835 }
Les Llosses Germany Orís Australia Montesquiu Sant Quirze de Besora Alpens Sant Agustí de Lluçanès Sant Boi de Lluçanès
Les Llosses, Germany, Orís, Australia, Montesquiu, Sant Quirze de Besora, Alpens, Sant Agustí de Lluçanès and Sant Boi de Lluçanès hold diplomatic relationship with Zimbabwe or are bordered by Sora
Les Llosses Germany Orís Australia Montesquiu Sant Quirze de Besora Alpens Sant Agustí de Lluçanès Sant Boi de Lluçanès
action filter_type
action union
action find
entity Zimbabwe
relation diplomatic relation
action find
entity Sora
relation shares border with
type political territorial entity
{'OR': [['Zimbabwe', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Sora', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Zimbabwe property:diplomatic_relation ?x } UNION { resource:Sora property:shares_border_with ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many administrative territories holds diplomatic relationship with atleast 1 political territory ?
(c(Q1048835),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 1
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?f ) WHERE { ?q rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 . ?n property:P530 ?q } GROUP BY ?n } . FILTER ( ?f >= 1 ) }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?f ) WHERE { ?q rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n property:diplomatic_relation ?q } GROUP BY ?n } . FILTER ( ?f >= 1 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
154
Q702 Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 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 Q114 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 Q953
(c(Q1048835),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 1
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?f ) WHERE { ?q rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 . ?n property:P530 ?q } GROUP BY ?n } . FILTER ( ?f >= 1 ) }
Federated States of Micronesia Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador 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 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 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 Zambia
154
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?f ) WHERE { ?q rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n property:diplomatic_relation ?q } GROUP BY ?n } . FILTER ( ?f >= 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have a diplomatic relationship with max number of political territories ?
(c(Q1048835),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?d ) { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?z ) WHERE { ?f property:P530 ?x . ?f rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1048835 } GROUP BY ?f } } . FILTER ( ?o = ?d ) . { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?o ) WHERE { ?w property:P530 ?s . ?w rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1048835 } GROUP BY ?w } }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?d ) { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?z ) WHERE { ?f property:diplomatic_relation ?x . ?f rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?f } } . FILTER ( ?o = ?d ) . { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?o ) WHERE { ?w property:diplomatic_relation ?s . ?w rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?w } }
[]
political territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWER] have a diplomatic relationship with max number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?d ) { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?z ) WHERE { ?f property:P530 ?x . ?f rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1048835 } GROUP BY ?f } } . FILTER ( ?o = ?d ) . { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?o ) WHERE { ?w property:P530 ?s . ?w rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1048835 } GROUP BY ?w } }
Australia
Australia have a diplomatic relationship with max number of political territories
Australia
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?d ) { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?z ) WHERE { ?f property:diplomatic_relation ?x . ?f rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?f } } . FILTER ( ?o = ?d ) . { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?o ) WHERE { ?w property:diplomatic_relation ?s . ?w rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?w } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories holds diplomatic relationship with approximately 1 political territory ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 1
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?j = 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?j ) WHERE { ?k property:P530 ?t . ?k rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } GROUP BY ?k } }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?j = 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?j ) WHERE { ?k property:diplomatic_relation ?t . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?k } }
[]
designation for an administrative territorial entity political territorial entity
Q230 Q184 Q32
SYSTEM
Georgia, Belarus, Luxembourg
Q702 Q262 Q265 Q37 Q712 Q717 Q837 Q657 Q792 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 1
[ANSWERS] hold diplomatic relationship with approximately 1 political territory
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?j = 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?j ) WHERE { ?k property:P530 ?t . ?k rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } GROUP BY ?k } }
Federated States of Micronesia Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Chad El Salvador South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
Georgia, Belarus and Luxembourg hold diplomatic relationship with approximately 1 political territory
Georgia Belarus Luxembourg
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?j = 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?j ) WHERE { ?k property:diplomatic_relation ?t . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?k } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q38
P530
Q15617994
USER
Do Italy have diplomatic relations with those ones ?
(Q38,P530,Q230) (Q38,P530,Q184) (Q38,P530,Q32)
action is_in
entity prev_answer
action find
entity Q38
relation P530
['Q38', 'P530', 'Q230'] ['Q38', 'P530', 'Q184'] ['Q38', 'P530', 'Q32']
ASK WHERE { VALUES ( ?o ) { ( resource:Q702 ) ( resource:Q262 ) ( resource:Q265 ) } . resource:Q38 property:P530 ?o }
Italy
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Georgia'] ['Italy', 'diplomatic relation', 'Belarus'] ['Italy', 'diplomatic relation', 'Luxembourg']
ASK WHERE { VALUES ( ?o ) { ( resource:Federated_States_of_Micronesia ) ( resource:Algeria ) ( resource:Uzbekistan ) } . resource:Italy property:diplomatic_relation ?o }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q38,P530,Q230) (Q38,P530,Q184) (Q38,P530,Q32)
action is_in
entity prev_answer
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q230'] ['Q38', 'P530', 'Q184'] ['Q38', 'P530', 'Q32']
ASK WHERE { VALUES ( ?o ) { ( resource:Q702 ) ( resource:Q262 ) ( resource:Q265 ) } . resource:Q38 property:P530 ?o }
Yes
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Georgia'] ['Italy', 'diplomatic relation', 'Belarus'] ['Italy', 'diplomatic relation', 'Luxembourg']
ASK WHERE { VALUES ( ?o ) { ( resource:Federated_States_of_Micronesia ) ( resource:Algeria ) ( resource:Uzbekistan ) } . resource:Italy property:diplomatic_relation ?o }
[]