Simple Question (Direct)
Simple Question
Q363258
P102
Q7278
USER
Which political party is Adolf Lüben a member of ?
(Q363258,P102,c(Q7278))
action filter_type
action find
entity Q363258
relation P102
type Q7278
['Q363258', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?l WHERE { resource:Q363258 property:P102 ?l . ?l rdf:type ontology:Q7278 }
Adolf Lüben
action filter_type
action find
entity Adolf Lüben
relation member of political party
type political party
['Adolf Lüben', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?l WHERE { resource:Adolf_Lüben property:member_of_political_party ?l . ?l rdf:type ontology:political_party }
[]
political party
Q49754
SYSTEM
Christian Democratic Union
Q49754
(Q363258,P102,c(Q7278))
action filter_type
action find
entity Q363258
relation P102
type Q7278
Party [ANSWER] is Adolf Lüben a member of
['Q363258', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?l WHERE { resource:Q363258 property:P102 ?l . ?l rdf:type ontology:Q7278 }
Christian Democratic Union
Party Christian Democratic Union is Adolf Lüben a member of
Christian Democratic Union
action filter_type
action find
entity Adolf Lüben
relation member of political party
type political party
['Adolf Lüben', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?l WHERE { resource:Adolf_Lüben property:member_of_political_party ?l . ?l rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q363258
P19
Q15617994
USER
Which administrative territory was that person born in ?
(Q49754,P19,c(Q15617994))
action filter_type
action find
entity Q363258
relation P19
type Q15617994
['Q49754', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q363258 property:P19 ?l }
Adolf Lüben
action filter_type
action find
entity Adolf Lüben
relation place of birth
type designation for an administrative territorial entity
['Christian Democratic Union', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Adolf_Lüben property:place_of_birth ?l }
[]
designation for an administrative territorial entity
Q639643
SYSTEM
Hornstorf
Q639643
(Q49754,P19,c(Q15617994))
action filter_type
action find
entity Q363258
relation P19
type Q15617994
That person was born at [ANSWER]
['Q49754', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q363258 property:P19 ?l }
Hornstorf
That person was born at Hornstorf
Hornstorf
action filter_type
action find
entity Adolf Lüben
relation place of birth
type designation for an administrative territorial entity
['Christian Democratic Union', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Adolf_Lüben property:place_of_birth ?l }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1001
Q15617994 Q35798 Q12737077
USER
Which administrative territories come under the supervision of approximately 122 executive branches or occupations ?
(c(Q35798)|c(Q12737077),P1001,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q35798
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q12737077
value 122
[[{'concept': 'Q35798'}, {'concept': 'Q12737077'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?a ) WHERE { VALUES ( ?n ) { ( ontology:Q35798 ) ( ontology:Q12737077 ) } . ?s rdf:type ?n } GROUP BY ?h } . FILTER ( ?a = 122 ) }
action approx
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type executive branch
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type occupation
value 122
[[{'concept': 'executive branch'}, {'concept': 'occupation'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?a ) WHERE { VALUES ( ?n ) { ( ontology:executive_branch ) ( ontology:occupation ) } . ?s rdf:type ?n } GROUP BY ?h } . FILTER ( ?a = 122 ) }
[]
designation for an administrative territorial entity executive branch occupation
Q145 Q41
SYSTEM
United Kingdom, Greece
Q145 Q41
(c(Q35798)|c(Q12737077),P1001,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q35798
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q12737077
value 122
[ANSWERS] come under the supervision of approximately 122 executive branches or occupations
[[{'concept': 'Q35798'}, {'concept': 'Q12737077'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?a ) WHERE { VALUES ( ?n ) { ( ontology:Q35798 ) ( ontology:Q12737077 ) } . ?s rdf:type ?n } GROUP BY ?h } . FILTER ( ?a = 122 ) }
United Kingdom Greece
United Kingdom and Greece come under the supervision of approximately 122 executive branches or occupations
United Kingdom Greece
action approx
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type executive branch
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type occupation
value 122
[[{'concept': 'executive branch'}, {'concept': 'occupation'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?a ) WHERE { VALUES ( ?n ) { ( ontology:executive_branch ) ( ontology:occupation ) } . ?s rdf:type ?n } GROUP BY ?h } . FILTER ( ?a = 122 ) }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
Which administrative territories did greater number of releases originate than that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * 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 * 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|More/Less|Single entity type|Clarification
Q145
SYSTEM
Did you mean United Kingdom ?
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Did you mean United Kingdom ?
United Kingdom
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
USER
No, I meant Greece. Could you tell me the answer for that?
(c(Q2031291),P495,c(Q15617994))
Q41
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q668 Q142 Q55 Q145 Q148 Q837 Q159 Q43 Q155 Q884 Q33 Q31 Q30 Q36 Q34 Q38 Q20 Q843 Q17 Q902 Q213 Q29
(c(Q2031291),P495,c(Q15617994))
Greater number of releases originated in [ANSWERS] than that administrative territory
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Israel India France Netherlands United Kingdom People's Republic of China Nepal Russia Turkey Brazil South Korea Finland Belgium United States of America Poland Sweden Italy Norway Pakistan Japan Bangladesh Czech Republic Spain
Greater number of releases originated in Italy, Brazil and United States of America than that administrative territory
Italy Brazil United States of America
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
Which administrative territories did less number of releases originate than that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * 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 * 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|More/Less|Single entity type|Clarification
Q38
SYSTEM
Did you mean Italy ?
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Did you mean Italy ?
Italy
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
USER
No, I meant Brazil. Could you tell me the answer for that?
(c(Q2031291),P495,c(Q15617994))
Q155
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q230 Q953 Q801
SYSTEM
Georgia, Zambia, Israel
Q805 Q804 Q801 Q800 Q1462 Q419 Q414 Q12536 Q262 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q41 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q32 Q924 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 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 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 Q672 Q176 Q863 Q869 Q953
(c(Q2031291),P495,c(Q15617994))
Less number of releases originated in [ANSWERS] than that administrative territory
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Yemen Panama Israel Costa Rica Sardinia Peru Argentina Abbasid caliphate Algeria Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Greece El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Luxembourg Tanzania 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 Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein 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 Tuvalu Quebec Tajikistan Thailand Zambia
Less number of releases originated in Georgia, Zambia and Israel than that administrative territory
Georgia Zambia Israel
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1452675
P530
Q1048835
USER
Are Peñacerrada-Urizaharra known to have diplomatic connections with those administrative territories ?
(Q1452675,P530,Q230) (Q1452675,P530,Q953) (Q1452675,P530,Q801)
action is_in
entity prev_answer
action find
entity Q1452675
relation P530
['Q1452675', 'P530', 'Q230'] ['Q1452675', 'P530', 'Q953'] ['Q1452675', 'P530', 'Q801']
ASK WHERE { resource:Q1452675 property:P530 ?p . VALUES ( ?p ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q801 ) } }
Peñacerrada-Urizaharra
action is_in
entity prev_answer
action find
entity Peñacerrada-Urizaharra
relation diplomatic relation
['Peñacerrada-Urizaharra', 'diplomatic relation', 'Georgia'] ['Peñacerrada-Urizaharra', 'diplomatic relation', 'Zambia'] ['Peñacerrada-Urizaharra', 'diplomatic relation', 'Israel']
ASK WHERE { resource:Peñacerrada-Urizaharra property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Israel ) } }
[]
political territorial entity
SYSTEM
NO
(Q1452675,P530,Q230) (Q1452675,P530,Q953) (Q1452675,P530,Q801)
action is_in
entity prev_answer
action find
entity Q1452675
relation P530
[ANSWER]
['Q1452675', 'P530', 'Q230'] ['Q1452675', 'P530', 'Q953'] ['Q1452675', 'P530', 'Q801']
ASK WHERE { resource:Q1452675 property:P530 ?p . VALUES ( ?p ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q801 ) } }
No
action is_in
entity prev_answer
action find
entity Peñacerrada-Urizaharra
relation diplomatic relation
['Peñacerrada-Urizaharra', 'diplomatic relation', 'Georgia'] ['Peñacerrada-Urizaharra', 'diplomatic relation', 'Zambia'] ['Peñacerrada-Urizaharra', 'diplomatic relation', 'Israel']
ASK WHERE { resource:Peñacerrada-Urizaharra property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Israel ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q155 Q224
P530
Q1048835
USER
How many political territories have diplomatic relationships with Brazil and Croatia ?
(Q155,P530,c(Q1048835)) (Q224,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q155
relation P530
type Q1048835
action filter_type
action find
entity Q224
relation P530
type Q1048835
['Q155', 'P530', {'concept': 'Q1048835'}] ['Q224', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { ?k rdf:type ontology:Q1048835 . resource:Q155 property:P530 ?k . resource:Q224 property:P530 ?k . ?k rdf:type ontology:Q1048835 }
Brazil Croatia
action count
action intersection
action filter_type
action find
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Croatia
relation diplomatic relation
type political territorial entity
['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Croatia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { ?k rdf:type ontology:political_territorial_entity . resource:Brazil property:diplomatic_relation ?k . resource:Croatia property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(Q155,P530,c(Q1048835)) (Q224,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q155
relation P530
type Q1048835
action filter_type
action find
entity Q224
relation P530
type Q1048835
[ANSWER]
['Q155', 'P530', {'concept': 'Q1048835'}] ['Q224', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { ?k rdf:type ontology:Q1048835 . resource:Q155 property:P530 ?k . resource:Q224 property:P530 ?k . ?k rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Croatia
relation diplomatic relation
type political territorial entity
['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Croatia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { ?k rdf:type ontology:political_territorial_entity . resource:Brazil property:diplomatic_relation ?k . resource:Croatia property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q691
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with around the same number of administrative territories as Papua New Guinea ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Q691 property:P530 ?a . ?a rdf:type ontology:Q1048835 } } . FILTER ( ?f = ?w ) . { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?f ) WHERE { ?k rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 . ?s property:P530 ?k } GROUP BY ?s } }
Papua New Guinea
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity } } . FILTER ( ?f = ?w ) . { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?f ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity . ?s property:diplomatic_relation ?k } GROUP BY ?s } }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[ANSWERS] have ambassadorial relations with around the same number of administrative territories as Papua New Guinea
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Q691 property:P530 ?a . ?a rdf:type ontology:Q1048835 } } . FILTER ( ?f = ?w ) . { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?f ) WHERE { ?k rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 . ?s property:P530 ?k } GROUP BY ?s } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have ambassadorial relations with around the same number of administrative territories as Papua New Guinea
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity } } . FILTER ( ?f = ?w ) . { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?f ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity . ?s property:diplomatic_relation ?k } GROUP BY ?s } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1000
P530
Q15617994 Q1048835
USER
And how about Gabon?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q1000
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?k ) WHERE { ?m property:P530 ?v . ?m rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:Q1000 property:P530 ?a . ?a rdf:type ontology:Q1048835 } } . FILTER ( ?k = ?y ) }
Gabon
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?k ) WHERE { ?m property:diplomatic_relation ?v . ?m rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:Gabon property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity } } . FILTER ( ?k = ?y ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q1000
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?k ) WHERE { ?m property:P530 ?v . ?m rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:Q1000 property:P530 ?a . ?a rdf:type ontology:Q1048835 } } . FILTER ( ?k = ?y ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?k ) WHERE { ?m property:diplomatic_relation ?v . ?m rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:Gabon property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity } } . FILTER ( ?k = ?y ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Do Germany have diplomatic relations with those ones ?
(Q183,P530,Q35) (Q183,P530,Q16) (Q183,P530,Q40)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q35'] ['Q183', 'P530', 'Q16'] ['Q183', 'P530', 'Q40']
ASK WHERE { resource:Q183 property:P530 ?v . VALUES ( ?v ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Denmark'] ['Germany', 'diplomatic relation', 'Canada'] ['Germany', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Germany property:diplomatic_relation ?v . VALUES ( ?v ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q35) (Q183,P530,Q16) (Q183,P530,Q40)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q35'] ['Q183', 'P530', 'Q16'] ['Q183', 'P530', 'Q40']
ASK WHERE { resource:Q183 property:P530 ?v . VALUES ( ?v ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Denmark'] ['Germany', 'diplomatic relation', 'Canada'] ['Germany', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Germany property:diplomatic_relation ?v . VALUES ( ?v ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q218
P530
Q1048835 Q15617994
USER
Which administrative territories have diplomatic associations with greater number of political territories than Romania ?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q218
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Q218 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?d > ?k ) . { SELECT DISTINCT ?s ( COUNT ( ?v ) AS ?d ) WHERE { ?s property:P530 ?v . ?s rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } GROUP BY ?s } }
Romania
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Romania
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Romania property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?d > ?k ) . { SELECT DISTINCT ?s ( COUNT ( ?v ) AS ?d ) WHERE { ?s property:diplomatic_relation ?v . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?s } }
[]
political territorial entity designation for an administrative territorial entity
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q155 Q38 Q230 Q953
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q218
relation P530
type Q15617994
[ANSWERS] have diplomatic associations with greater number of political territories than Romania
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Q218 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?d > ?k ) . { SELECT DISTINCT ?s ( COUNT ( ?v ) AS ?d ) WHERE { ?s property:P530 ?v . ?s rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } GROUP BY ?s } }
Brazil Italy Georgia Zambia
Italy, Brazil and Georgia have diplomatic associations with greater number of political territories than Romania
Italy Brazil Georgia
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Romania
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Romania property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?d > ?k ) . { SELECT DISTINCT ?s ( COUNT ( ?v ) AS ?d ) WHERE { ?s property:diplomatic_relation ?v . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?s } }
[]