Simple Question (Direct)
Simple Question
Q181758
P102
Q7210356
USER
Which political organization is Alejandro Cao de Benós de Les y Pérez a member of ?
(Q181758,P102,c(Q7210356))
action filter_type
action find
entity Q181758
relation P102
type Q7210356
['Q181758', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?f WHERE { resource:Q181758 property:P102 ?f . ?f rdf:type ontology:Q7210356 }
Alejandro Cao de Benós de Les y Pérez
action filter_type
action find
entity Alejandro Cao de Benós de Les y Pérez
relation member of political party
type political organization
['Alejandro Cao de Benós de Les y Pérez', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?f WHERE { resource:Alejandro_Cao_de_Benós_de_Les_y_Pérez property:member_of_political_party ?f . ?f rdf:type ontology:political_organization }
[]
political organization
Q49623
SYSTEM
Workers’ Party of Korea
Q49623
(Q181758,P102,c(Q7210356))
action filter_type
action find
entity Q181758
relation P102
type Q7210356
The [ANSWER] is Alejandro Cao de Benós de Les y Pérez a member of
['Q181758', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?f WHERE { resource:Q181758 property:P102 ?f . ?f rdf:type ontology:Q7210356 }
Workers’ Party of Korea
The Workers’ Party of Korea is Alejandro Cao de Benós de Les y Pérez a member of
Workers’ Party of Korea
action filter_type
action find
entity Alejandro Cao de Benós de Les y Pérez
relation member of political party
type political organization
['Alejandro Cao de Benós de Les y Pérez', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?f WHERE { resource:Alejandro_Cao_de_Benós_de_Les_y_Pérez property:member_of_political_party ?f . ?f rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q49623
P127
Q1002697
USER
Which periodical literature is under posessision of that political organization ?
(c(Q1002697),P127,Q49623)
action filter_type
action find_reverse
entity Q49623
relation P127
type Q1002697
[{'concept': 'Q1002697'}, 'P127', 'Q49623']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1002697 . ?q property:P127 resource:Q49623 }
Workers’ Party of Korea
action filter_type
action find_reverse
entity Workers’ Party of Korea
relation owned by
type periodical literature
[{'concept': 'periodical literature'}, 'owned by', 'Workers’ Party of Korea']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:periodical_literature . ?q property:owned_by resource:Workers’_Party_of_Korea }
[]
periodical literature
Q387054
SYSTEM
Rodong Sinmun
Q387054
(c(Q1002697),P127,Q49623)
action filter_type
action find_reverse
entity Q49623
relation P127
type Q1002697
[ANSWER] is under posessision of that political organization
[{'concept': 'Q1002697'}, 'P127', 'Q49623']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1002697 . ?q property:P127 resource:Q49623 }
Rodong Sinmun
Rodong Sinmun is under posessision of that political organization
Rodong Sinmun
action filter_type
action find_reverse
entity Workers’ Party of Korea
relation owned by
type periodical literature
[{'concept': 'periodical literature'}, 'owned by', 'Workers’ Party of Korea']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:periodical_literature . ?q property:owned_by resource:Workers’_Party_of_Korea }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q892417 Q387054
P17
Q15617994
USER
Which administrative territories are Rodong Sinmun or Teyarett a part of ?
OR((Q387054,P17,c(Q15617994)), (Q892417,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q387054
relation P17
action find
entity Q892417
relation P17
type Q15617994
{'OR': [['Q387054', 'P17', {'concept': 'Q15617994'}], ['Q892417', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { { resource:Q892417 property:P17 ?v } UNION { resource:Q387054 property:P17 ?v } } }
Teyarett Rodong Sinmun
action filter_type
action union
action find
entity Rodong Sinmun
relation country
action find
entity Teyarett
relation country
type designation for an administrative territorial entity
{'OR': [['Rodong Sinmun', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Teyarett', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Teyarett property:country ?v } UNION { resource:Rodong_Sinmun property:country ?v } } }
[]
designation for an administrative territorial entity
Q1025 Q423
SYSTEM
Mauritania, North Korea
Q1025 Q423
OR((Q387054,P17,c(Q15617994)), (Q892417,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q387054
relation P17
action find
entity Q892417
relation P17
type Q15617994
[ANSWERS] are Rodong Sinmun or Teyarett a part of
{'OR': [['Q387054', 'P17', {'concept': 'Q15617994'}], ['Q892417', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { { resource:Q892417 property:P17 ?v } UNION { resource:Q387054 property:P17 ?v } } }
Mauritania North Korea
Mauritania and North Korea are Rodong Sinmun or Teyarett a part of
Mauritania North Korea
action filter_type
action union
action find
entity Rodong Sinmun
relation country
action find
entity Teyarett
relation country
type designation for an administrative territorial entity
{'OR': [['Rodong Sinmun', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Teyarett', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Teyarett property:country ?v } UNION { resource:Rodong_Sinmun property:country ?v } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q111144
P180
Q15617994 Q838948 Q2342494
USER
Which administrative territories are depicted in around the same number of works of art and collectables as Canossa ?
(c(Q838948)|c(Q2342494),P180,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q111144
relation P180
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) ?f WHERE { { ?f rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q838948 . ?j property:P180 ?f } UNION { ?j property:P180 ?f . ?f rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q2342494 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m property:P180 resource:Q111144 . { ?m rdf:type ?e . VALUES ( ?e ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } } } . FILTER ( ?h = ?d ) }
Canossa
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Canossa
relation depicts
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) ?f WHERE { { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:work_of_art . ?j property:depicts ?f } UNION { ?j property:depicts ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:collectable } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m property:depicts resource:Canossa . { ?m rdf:type ?e . VALUES ( ?e ) { ( ontology:collectable ) ( ontology:work_of_art ) } } } } . FILTER ( ?h = ?d ) }
[]
designation for an administrative territorial entity work of art collectable
Q38 Q155 Q159
SYSTEM
Italy, Brazil, Russia
Q3883 Q1256 Q1462 Q241744 Q674904 Q668 Q142 Q55 Q145 Q47505 Q148 Q128081 Q131596 Q712 Q711 Q243467 Q72672 Q1460 Q660687 Q159 Q41 Q155 Q794 Q160262 Q243128 Q739 Q254356 Q15260970 Q822 Q532 Q11343 Q268214 Q13376 Q12594 Q34 Q928 Q39 Q38 Q858 Q199952 Q854 Q736 Q1280 Q1282 Q20 Q27 Q188315 Q29 Q7077 Q80644 Q189 Q47821 Q12574 Q12578 Q223 Q12675 Q229 Q17 Q553347 Q551142 Q652480 Q111144 Q13320 Q186115 Q373189 Q159605 Q72425 Q12657 Q1438 Q26300792 Q183366 Q6256 Q72432 Q811 Q772 Q1016 Q1273 Q242683 Q80563 Q376896 Q34876 Q689720 Q33788 Q12563 Q190963 Q80591 Q42288 Q1034158
(c(Q838948)|c(Q2342494),P180,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q111144
relation P180
type Q838948
type Q2342494
[ANSWERS] are depicted in around the same number of works of art and collectables as Canossa
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) ?f WHERE { { ?f rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q838948 . ?j property:P180 ?f } UNION { ?j property:P180 ?f . ?f rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q2342494 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m property:P180 resource:Q111144 . { ?m rdf:type ?e . VALUES ( ?e ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } } } . FILTER ( ?h = ?d ) }
Catanzaro Liguria Sardinia Ariccia Krumau am Kamp India France Netherlands United Kingdom Dolo People's Republic of China Cori, Lazio farm Fiji Mongolia Subiaco Sorrento Sicily Velden am Wörther See Russia Greece Brazil Iran Caprarola Olevano Romano Colombia Murnau am Staffelsee Nantcribba Lebanon village Wetter (Ruhr) Bordighera Pistoia Marne Sweden Philippines Switzerland Italy Syria Taormina Sri Lanka Ecuador Umbria Lazio Norway Ireland Porto Venere Spain Dachau Köngen Iceland Malcesine Loiret Lot-et-Garonne Greenland Oise Cyprus Japan Kobern-Gondorf Wartenberg Kennemerland Canossa Savona Montmartre Bithynia Tivoli Pozzuoli Nièvre Campania Rhos Y Madoc territory country Procida Nicaragua Drenthe Libya Tuscany Genzano di Roma Amalfi Grenelle province Thörl New Caledonia Landes Frascati Atrani Asola Cap Norfeu
Italy, Brazil and Russia are depicted in around the same number of works of art and collectables as Canossa
Italy Brazil Russia
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Canossa
relation depicts
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) ?f WHERE { { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:work_of_art . ?j property:depicts ?f } UNION { ?j property:depicts ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:collectable } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m property:depicts resource:Canossa . { ?m rdf:type ?e . VALUES ( ?e ) { ( ontology:collectable ) ( ontology:work_of_art ) } } } } . FILTER ( ?h = ?d ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1438
P180
Q15617994 Q838948 Q2342494
USER
And also tell me about Campania?
(c(Q838948)|c(Q2342494),P180,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1438
relation P180
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?f = ?w ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { ?c property:P180 resource:Q1438 . { VALUES ( ?a ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } . ?c rdf:type ?a } } } . { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?f ) WHERE { { ?s property:P180 ?q . ?q rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q838948 } UNION { ?s property:P180 ?q . ?q rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q2342494 } } GROUP BY ?q } }
Campania
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Campania
relation depicts
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?f = ?w ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { ?c property:depicts resource:Campania . { VALUES ( ?a ) { ( ontology:work_of_art ) ( ontology:collectable ) } . ?c rdf:type ?a } } } . { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?f ) WHERE { { ?s property:depicts ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:work_of_art } UNION { ?s property:depicts ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:collectable } } GROUP BY ?q } }
[]
designation for an administrative territorial entity work of art collectable
Q38 Q155 Q159
SYSTEM
Italy, Brazil, Russia
Q3883 Q1256 Q1462 Q241744 Q674904 Q668 Q142 Q55 Q145 Q47505 Q148 Q128081 Q131596 Q712 Q711 Q243467 Q72672 Q1460 Q660687 Q159 Q41 Q155 Q794 Q160262 Q243128 Q739 Q254356 Q15260970 Q822 Q532 Q11343 Q268214 Q13376 Q12594 Q34 Q928 Q39 Q38 Q858 Q199952 Q854 Q736 Q1280 Q1282 Q20 Q27 Q188315 Q29 Q7077 Q80644 Q189 Q47821 Q12574 Q12578 Q223 Q12675 Q229 Q17 Q553347 Q551142 Q652480 Q111144 Q13320 Q186115 Q373189 Q159605 Q72425 Q12657 Q1438 Q26300792 Q183366 Q6256 Q72432 Q811 Q772 Q1016 Q1273 Q242683 Q80563 Q376896 Q34876 Q689720 Q33788 Q12563 Q190963 Q80591 Q42288 Q1034158
(c(Q838948)|c(Q2342494),P180,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1438
relation P180
type Q838948
type Q2342494
[ANSWERS]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?f = ?w ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { ?c property:P180 resource:Q1438 . { VALUES ( ?a ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } . ?c rdf:type ?a } } } . { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?f ) WHERE { { ?s property:P180 ?q . ?q rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q838948 } UNION { ?s property:P180 ?q . ?q rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q2342494 } } GROUP BY ?q } }
Catanzaro Liguria Sardinia Ariccia Krumau am Kamp India France Netherlands United Kingdom Dolo People's Republic of China Cori, Lazio farm Fiji Mongolia Subiaco Sorrento Sicily Velden am Wörther See Russia Greece Brazil Iran Caprarola Olevano Romano Colombia Murnau am Staffelsee Nantcribba Lebanon village Wetter (Ruhr) Bordighera Pistoia Marne Sweden Philippines Switzerland Italy Syria Taormina Sri Lanka Ecuador Umbria Lazio Norway Ireland Porto Venere Spain Dachau Köngen Iceland Malcesine Loiret Lot-et-Garonne Greenland Oise Cyprus Japan Kobern-Gondorf Wartenberg Kennemerland Canossa Savona Montmartre Bithynia Tivoli Pozzuoli Nièvre Campania Rhos Y Madoc territory country Procida Nicaragua Drenthe Libya Tuscany Genzano di Roma Amalfi Grenelle province Thörl New Caledonia Landes Frascati Atrani Asola Cap Norfeu
Italy Brazil Russia
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Campania
relation depicts
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?f = ?w ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { ?c property:depicts resource:Campania . { VALUES ( ?a ) { ( ontology:work_of_art ) ( ontology:collectable ) } . ?c rdf:type ?a } } } . { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?f ) WHERE { { ?s property:depicts ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:work_of_art } UNION { ?s property:depicts ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:collectable } } GROUP BY ?q } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q948
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with approximately the same number of administrative territories as Tunisia ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q948
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Q948 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } . FILTER ( ?y = ?f ) . { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?y ) WHERE { ?j property:P530 ?l . ?j rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?l } }
Tunisia
action count
action approx
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
entity Tunisia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Tunisia property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?y = ?f ) . { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?y ) WHERE { ?j property:diplomatic_relation ?l . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
152
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 count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q948
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Q948 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } . FILTER ( ?y = ?f ) . { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?y ) WHERE { ?j property:P530 ?l . ?j rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?l } }
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
152
action count
action approx
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
entity Tunisia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Tunisia property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?y = ?f ) . { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?y ) WHERE { ?j property:diplomatic_relation ?l . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with atmost 55 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 55
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?d <= 55 ) . { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?d ) WHERE { ?y property:P530 ?f . ?y rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?y } }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 55
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?d <= 55 ) . { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?d ) WHERE { ?y property:diplomatic_relation ?f . ?y rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 55
[ANSWERS] have diplomatic relationships with atmost 55 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?d <= 55 ) . { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?d ) WHERE { ?y property:P530 ?f . ?y rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?y } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic relationships with atmost 55 administrative territories
Denmark Canada Austria
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 55
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?d <= 55 ) . { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?d ) WHERE { ?y property:diplomatic_relation ?f . ?y rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q43000
P530
Q15617994
USER
Do Lomagna have tactful political relations with those political territories ?
(Q43000,P530,Q35) (Q43000,P530,Q16) (Q43000,P530,Q40)
action is_in
entity prev_answer
action find
entity Q43000
relation P530
['Q43000', 'P530', 'Q35'] ['Q43000', 'P530', 'Q16'] ['Q43000', 'P530', 'Q40']
ASK WHERE { resource:Q43000 property:P530 ?o . VALUES ( ?o ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Lomagna
action is_in
entity prev_answer
action find
entity Lomagna
relation diplomatic relation
['Lomagna', 'diplomatic relation', 'Denmark'] ['Lomagna', 'diplomatic relation', 'Canada'] ['Lomagna', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Lomagna property:diplomatic_relation ?o . VALUES ( ?o ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q43000,P530,Q35) (Q43000,P530,Q16) (Q43000,P530,Q40)
action is_in
entity prev_answer
action find
entity Q43000
relation P530
[ANSWER]
['Q43000', 'P530', 'Q35'] ['Q43000', 'P530', 'Q16'] ['Q43000', 'P530', 'Q40']
ASK WHERE { resource:Q43000 property:P530 ?o . VALUES ( ?o ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
No
action is_in
entity prev_answer
action find
entity Lomagna
relation diplomatic relation
['Lomagna', 'diplomatic relation', 'Denmark'] ['Lomagna', 'diplomatic relation', 'Canada'] ['Lomagna', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Lomagna property:diplomatic_relation ?o . VALUES ( ?o ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q408
P85
Q7725634 Q484692 Q1048835
USER
Which political territories have an anthem named approximately the same number of literary works and hymns as Australia ?
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action approx
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action count
action filter_multi_types
action find
entity Q408
relation P85
type Q7725634
type Q484692
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?j WHERE { FILTER ( ?u = ?t ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { { ?i rdf:type ontology:Q7725634 } UNION { ?i rdf:type ontology:Q484692 } } . resource:Q408 property:P85 ?i } } . { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?u ) WHERE { ?l rdf:type ?y . VALUES ( ?y ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } GROUP BY ?j } }
Australia
action approx
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action count
action filter_multi_types
action find
entity Australia
relation anthem
type literary work
type hymn
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?j WHERE { FILTER ( ?u = ?t ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { { ?i rdf:type ontology:literary_work } UNION { ?i rdf:type ontology:hymn } } . resource:Australia property:anthem ?i } } . { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?u ) WHERE { ?l rdf:type ?y . VALUES ( ?y ) { ( ontology:literary_work ) ( ontology:hymn ) } } GROUP BY ?j } }
[]
literary work hymn political territorial entity
Q408 Q35 Q769
SYSTEM
Australia, Denmark, Grenada
Q769 Q766 Q781 Q35 Q408
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action approx
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action count
action filter_multi_types
action find
entity Q408
relation P85
type Q7725634
type Q484692
[ANSWERS] have an anthem named approximately the same number of literary works and hymns as Australia
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?j WHERE { FILTER ( ?u = ?t ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { { ?i rdf:type ontology:Q7725634 } UNION { ?i rdf:type ontology:Q484692 } } . resource:Q408 property:P85 ?i } } . { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?u ) WHERE { ?l rdf:type ?y . VALUES ( ?y ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } GROUP BY ?j } }
Grenada Jamaica Antigua and Barbuda Denmark Australia
Australia, Denmark and Grenada have an anthem named approximately the same number of literary works and hymns as Australia
Australia Denmark Grenada
action approx
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action count
action filter_multi_types
action find
entity Australia
relation anthem
type literary work
type hymn
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?j WHERE { FILTER ( ?u = ?t ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { { ?i rdf:type ontology:literary_work } UNION { ?i rdf:type ontology:hymn } } . resource:Australia property:anthem ?i } } . { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?u ) WHERE { ?l rdf:type ?y . VALUES ( ?y ) { ( ontology:literary_work ) ( ontology:hymn ) } } GROUP BY ?j } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q25228
P85
Q7725634 Q484692 Q1048835
USER
And also tell me about Anguilla?
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action approx
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action count
action filter_multi_types
action find
entity Q25228
relation P85
type Q7725634
type Q484692
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?a WHERE { { ?a property:P85 ?c . ?a rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q7725634 } UNION { ?a property:P85 ?c . ?a rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q484692 } } GROUP BY ?a } . FILTER ( ?i = ?q ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { resource:Q25228 property:P85 ?k . { { ?k rdf:type ontology:Q7725634 } UNION { ?k rdf:type ontology:Q484692 } } } } }
Anguilla
action approx
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action count
action filter_multi_types
action find
entity Anguilla
relation anthem
type literary work
type hymn
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?a WHERE { { ?a property:anthem ?c . ?a rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:literary_work } UNION { ?a property:anthem ?c . ?a rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:hymn } } GROUP BY ?a } . FILTER ( ?i = ?q ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { resource:Anguilla property:anthem ?k . { { ?k rdf:type ontology:literary_work } UNION { ?k rdf:type ontology:hymn } } } } }
[]
literary work hymn political territorial entity
Q183 Q16 Q40
SYSTEM
Germany, Canada, Austria
Q1000 Q183 Q785 Q601252 Q193619 Q685 Q202023 Q763 Q664 Q9676 Q1054923 Q13353 Q5705 Q16 Q170604 Q5785 Q38610 Q3405693 Q18221 Q43448 Q778 Q5783 Q691 Q757 Q9648 Q234 Q35672 Q165783 Q40 Q35086 Q23635 Q192184 Q25228 Q31747 Q25305 Q129286 Q2594990
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action approx
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action count
action filter_multi_types
action find
entity Q25228
relation P85
type Q7725634
type Q484692
[ANSWERS]
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?a WHERE { { ?a property:P85 ?c . ?a rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q7725634 } UNION { ?a property:P85 ?c . ?a rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q484692 } } GROUP BY ?a } . FILTER ( ?i = ?q ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { resource:Q25228 property:P85 ?k . { { ?k rdf:type ontology:Q7725634 } UNION { ?k rdf:type ontology:Q484692 } } } } }
Gabon Germany Jersey Banovina of Croatia Union of South Africa Solomon Islands Herm Saint Kitts and Nevis New Zealand Isle of Man British Hong Kong Montserrat Catalonia Canada New France Cayman Islands Dominion of Newfoundland Sark Turks and Caicos Islands British Indian Ocean Territory The Bahamas Andalusia Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Flemish Region Pitcairn Islands British Antarctic Territory Austria South Georgia and the South Sandwich Islands Bermuda Saint Helena, Ascension and Tristan da Cunha Anguilla Irish Free State British Virgin Islands British Raj Dominion of New Zealand
Germany Canada Austria
action approx
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action count
action filter_multi_types
action find
entity Anguilla
relation anthem
type literary work
type hymn
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?a WHERE { { ?a property:anthem ?c . ?a rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:literary_work } UNION { ?a property:anthem ?c . ?a rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:hymn } } GROUP BY ?a } . FILTER ( ?i = ?q ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { resource:Anguilla property:anthem ?k . { { ?k rdf:type ontology:literary_work } UNION { ?k rdf:type ontology:hymn } } } } }
[]