Simple Question (Direct)
Simple Question
Q17505120
P19
Q56061
USER
Which administrative territory was Ernest Grvala born in ?
(Q17505120,P19,c(Q56061))
action filter_type
action find
entity Q17505120
relation P19
type Q56061
['Q17505120', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q17505120 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Ernest Grvala
action filter_type
action find
entity Ernest Grvala
relation place of birth
type administrative territorial entity
['Ernest Grvala', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Ernest_Grvala property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q4165497
SYSTEM
Jesenice
Q4165497
(Q17505120,P19,c(Q56061))
action filter_type
action find
entity Q17505120
relation P19
type Q56061
Ernest Grvala was born in [ANSWER]
['Q17505120', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q17505120 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Jesenice
Ernest Grvala was born in Jesenice
Jesenice
action filter_type
action find
entity Ernest Grvala
relation place of birth
type administrative territorial entity
['Ernest Grvala', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Ernest_Grvala property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17505120
P21
Q290
USER
Which sex does Ernest Grvala possess ?
(Q17505120,P21,c(Q290))
action filter_type
action find
entity Q17505120
relation P21
type Q290
['Q17505120', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q17505120 property:P21 ?c . ?c rdf:type ontology:Q290 }
Ernest Grvala
action filter_type
action find
entity Ernest Grvala
relation gender
type sex
['Ernest Grvala', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Ernest_Grvala property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q17505120,P21,c(Q290))
action filter_type
action find
entity Q17505120
relation P21
type Q290
Ernest Grvala possesses un [ANSWER]
['Q17505120', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q17505120 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
Ernest Grvala possesses un male
male
action filter_type
action find
entity Ernest Grvala
relation gender
type sex
['Ernest Grvala', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Ernest_Grvala property:gender ?c . ?c rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q38 Q4165497
P530 P17
Q15617994
USER
Which administrative territories are Jesenice a part of and have a diplomatic relationship with Italy ?
AND((Q4165497,P17,c(Q15617994)), (Q38,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q4165497
relation P17
action find
entity Q38
relation P530
type Q15617994
{'AND': [['Q4165497', 'P17', {'concept': 'Q15617994'}], ['Q38', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { resource:Q4165497 property:P17 ?l . resource:Q38 property:P530 ?l . ?l rdf:type ontology:Q15617994 }
Italy Jesenice
action filter_type
action intersection
action find
entity Jesenice
relation country
action find
entity Italy
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Jesenice', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Jesenice property:country ?l . resource:Italy property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q215
SYSTEM
Slovenia
Q215
AND((Q4165497,P17,c(Q15617994)), (Q38,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q4165497
relation P17
action find
entity Q38
relation P530
type Q15617994
[ANSWER] is Jesenice a part of and have a diplomatic relationship with Italy
{'AND': [['Q4165497', 'P17', {'concept': 'Q15617994'}], ['Q38', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { resource:Q4165497 property:P17 ?l . resource:Q38 property:P530 ?l . ?l rdf:type ontology:Q15617994 }
Slovenia
Slovenia is Jesenice a part of and have a diplomatic relationship with Italy
Slovenia
action filter_type
action intersection
action find
entity Jesenice
relation country
action find
entity Italy
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Jesenice', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Jesenice property:country ?l . resource:Italy property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with min number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?j ) { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?n ) WHERE { ?a property:P530 ?o . ?a rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?a } } . { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?h ) WHERE { ?w property:P530 ?m . ?w rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?h = ?j ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
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 ?w WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?j ) { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?n ) WHERE { ?a property:diplomatic_relation ?o . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } } . { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?h ) WHERE { ?w property:diplomatic_relation ?m . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?h = ?j ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q29999 Q786 Q924
SYSTEM
Kingdom of the Netherlands, Dominican Republic, Tanzania
Q702 Q804 Q262 Q265 Q712 Q837 Q657 Q792 Q986 Q242 Q811 Q924 Q29999 Q854 Q819 Q424 Q730 Q232 Q921 Q1027 Q1020 Q1028 Q786 Q1036 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q963 Q697 Q695 Q115 Q117 Q754 Q912 Q1007 Q1006 Q1005 Q1009 Q1008 Q971 Q683 Q686 Q836 Q774 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have diplomatic relations with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?j ) { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?n ) WHERE { ?a property:P530 ?o . ?a rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?a } } . { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?h ) WHERE { ?w property:P530 ?m . ?w rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?h = ?j ) }
Federated States of Micronesia Panama Algeria Uzbekistan Fiji Nepal Chad El Salvador Eritrea Belize Nicaragua Tanzania Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Kazakhstan Brunei Mauritius Malawi Morocco Dominican Republic Uganda Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Mali Guinea-Bissau Guinea Gambia Cameroon Côte d'Ivoire Republic of the Congo Samoa Vanuatu Myanmar Guatemala Kuwait Madagascar Togo Tonga New Caledonia
Kingdom of the Netherlands, Dominican Republic and Tanzania have diplomatic relations with min number of administrative territories
Kingdom of the Netherlands Dominican Republic Tanzania
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
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 ?w WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?j ) { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?n ) WHERE { ?a property:diplomatic_relation ?o . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } } . { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?h ) WHERE { ?w property:diplomatic_relation ?m . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?h = ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1032
P530
Q15617994 Q15617994
USER
Which administrative territories have ambassadorial relations with approximately the same number of administrative territories as Niger ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1032
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { resource:Q1032 property:P530 ?o . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?r = ?j ) . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?r ) WHERE { ?m property:P530 ?y . ?m rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?m } }
Niger
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Niger
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 ?m WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { resource:Niger property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?r = ?j ) . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?r ) WHERE { ?m property:diplomatic_relation ?y . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q148
SYSTEM
Netherlands, Poland, People's Republic of China
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 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 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
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1032
relation P530
type Q15617994
[ANSWERS] have ambassadorial relations with approximately the same number of administrative territories as Niger
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { resource:Q1032 property:P530 ?o . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?r = ?j ) . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?r ) WHERE { ?m property:P530 ?y . ?m rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?m } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey 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 Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco 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 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
Netherlands, Poland and People's Republic of China have ambassadorial relations with approximately the same number of administrative territories as Niger
Netherlands Poland People's Republic of China
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Niger
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 ?m WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { resource:Niger property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?r = ?j ) . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?r ) WHERE { ?m property:diplomatic_relation ?y . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q211
P530
Q15617994 Q15617994
USER
And also tell me about Latvia?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q211
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?w ) WHERE { ?j property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { resource:Q211 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?w = ?h ) }
Latvia
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Latvia
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 ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?w ) WHERE { ?j property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { resource:Latvia property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?w = ?h ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q148
SYSTEM
Netherlands, Poland, People's Republic of China
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 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 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
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q211
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?w ) WHERE { ?j property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { resource:Q211 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?w = ?h ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey 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 Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco 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 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
Netherlands Poland People's Republic of China
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Latvia
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 ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?w ) WHERE { ?j property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { resource:Latvia property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?w = ?h ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q55
P463
Q484652 Q1048835
USER
How many international organizations or political territories were Netherlands a member of ?
(Q55,P463,c(Q484652)) (Q55,P463,c(Q1048835))
action count
action union
action filter_type
action find
entity Q55
relation P463
type Q484652
action filter_type
action find
entity Q55
relation P463
type Q1048835
['Q55', 'P463', {'concept': 'Q484652'}] ['Q55', 'P463', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { { ?i rdf:type ontology:Q484652 . resource:Q55 property:P463 ?i } UNION { resource:Q55 property:P463 ?i . ?i rdf:type ontology:Q1048835 } }
Netherlands
action count
action union
action filter_type
action find
entity Netherlands
relation member of
type international organization
action filter_type
action find
entity Netherlands
relation member of
type political territorial entity
['Netherlands', 'member of', {'concept': 'international organization'}] ['Netherlands', 'member of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { { ?i rdf:type ontology:international_organization . resource:Netherlands property:member_of ?i } UNION { resource:Netherlands property:member_of ?i . ?i rdf:type ontology:political_territorial_entity } }
[]
international organization political territorial entity
SYSTEM
20
Q13116 Q81299 Q826700 Q54129 Q188822 Q47488 Q1411881 Q7184 Q42262 Q152299 Q472311 Q8475 Q1480793 Q182000 Q233611 Q201054 Q7804 Q842490 Q1043527 Q1045198
(Q55,P463,c(Q484652)) (Q55,P463,c(Q1048835))
action count
action union
action filter_type
action find
entity Q55
relation P463
type Q484652
action filter_type
action find
entity Q55
relation P463
type Q1048835
[ANSWER]
['Q55', 'P463', {'concept': 'Q484652'}] ['Q55', 'P463', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { { ?i rdf:type ontology:Q484652 . resource:Q55 property:P463 ?i } UNION { resource:Q55 property:P463 ?i . ?i rdf:type ontology:Q1048835 } }
Benelux Organization for Security and Co-operation in Europe International Energy Agency International Labour Organization Asian Development Bank International Criminal Court Group of Ten North Atlantic Treaty Organisation European Space Agency Dutch Language Union International Organization for Migration Interpol Nuclear Suppliers Group United Nations Conference on Trade and Development International Hydrographic Organization International Maritime Organization International Monetary Fund Organisation for the Prohibition of Chemical Weapons Multilateral Investment Guarantee Agency Permanent Court of Arbitration
20
action count
action union
action filter_type
action find
entity Netherlands
relation member of
type international organization
action filter_type
action find
entity Netherlands
relation member of
type political territorial entity
['Netherlands', 'member of', {'concept': 'international organization'}] ['Netherlands', 'member of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { { ?i rdf:type ontology:international_organization . resource:Netherlands property:member_of ?i } UNION { resource:Netherlands property:member_of ?i . ?i rdf:type ontology:political_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q833 Q786
P463
Q484652
USER
Which international organizations were Dominican Republic or Malaysia a member of ?
OR((Q786,P463,c(Q484652)), (Q833,P463,c(Q484652)))
action filter_type
action union
action find
entity Q786
relation P463
action find
entity Q833
relation P463
type Q484652
{'OR': [['Q786', 'P463', {'concept': 'Q484652'}], ['Q833', 'P463', {'concept': 'Q484652'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q786 property:P463 ?t } UNION { resource:Q833 property:P463 ?t } } . ?t rdf:type ontology:Q484652 }
Malaysia Dominican Republic
action filter_type
action union
action find
entity Dominican Republic
relation member of
action find
entity Malaysia
relation member of
type international organization
{'OR': [['Dominican Republic', 'member of', {'concept': 'international organization'}], ['Malaysia', 'member of', {'concept': 'international organization'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Dominican_Republic property:member_of ?t } UNION { resource:Malaysia property:member_of ?t } } . ?t rdf:type ontology:international_organization }
[]
international organization
Q190008 Q496967 Q7768 Q7785 Q1065 Q188822 Q134102 Q294278 Q1043527
SYSTEM
Central American Bank for Economic Integration, Alliance of Small Island States, ASEAN, Commonwealth of Nations, United Nations, Asian Development Bank, Organisation internationale de la Francophonie, African, Caribbean and Pacific Group of States, Multilateral Investment Guarantee Agency
Q190008 Q496967 Q7768 Q7785 Q1065 Q188822 Q134102 Q294278 Q1043527
OR((Q786,P463,c(Q484652)), (Q833,P463,c(Q484652)))
action filter_type
action union
action find
entity Q786
relation P463
action find
entity Q833
relation P463
type Q484652
[ANSWERS] were Dominican Republic or Malaysia a member of
{'OR': [['Q786', 'P463', {'concept': 'Q484652'}], ['Q833', 'P463', {'concept': 'Q484652'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q786 property:P463 ?t } UNION { resource:Q833 property:P463 ?t } } . ?t rdf:type ontology:Q484652 }
Central American Bank for Economic Integration Alliance of Small Island States ASEAN Commonwealth of Nations United Nations Asian Development Bank Organisation internationale de la Francophonie African, Caribbean and Pacific Group of States Multilateral Investment Guarantee Agency
Central American Bank for Economic Integration, Alliance of Small Island States, ASEAN, Commonwealth of Nations, United Nations, Asian Development Bank, Organisation internationale de la Francophonie, African, Caribbean and Pacific Group of States and Multilateral Investment Guarantee Agency were Dominican Republic or Malaysia a member of
Central American Bank for Economic Integration Alliance of Small Island States ASEAN Commonwealth of Nations United Nations Asian Development Bank Organisation internationale de la Francophonie African, Caribbean and Pacific Group of States Multilateral Investment Guarantee Agency
action filter_type
action union
action find
entity Dominican Republic
relation member of
action find
entity Malaysia
relation member of
type international organization
{'OR': [['Dominican Republic', 'member of', {'concept': 'international organization'}], ['Malaysia', 'member of', {'concept': 'international organization'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Dominican_Republic property:member_of ?t } UNION { resource:Malaysia property:member_of ?t } } . ?t rdf:type ontology:international_organization }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q694594
P194
Q35749 Q11204 Q15617994
USER
How many administrative territories have approximately the same number of parliaments and legislatures as their representative body as Bremen-Verden ?
(c(Q15617994),P194,c(Q35749)|c(Q11204))
action count
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q35749
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action count
action filter_multi_types
action find
entity Q694594
relation P194
type Q35749
type Q11204
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q35749'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?q ) WHERE { VALUES ( ?e ) { ( ontology:Q35749 ) ( ontology:Q11204 ) } . ?u rdf:type ?e } GROUP BY ?h } . FILTER ( ?q = ?o ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { resource:Q694594 property:P194 ?x . { { ?x rdf:type ontology:Q35749 } UNION { ?x rdf:type ontology:Q11204 } } } } }
Bremen-Verden
action count
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action count
action filter_multi_types
action find
entity Bremen-Verden
relation legislative body
type parliament
type legislature
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'parliament'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?q ) WHERE { VALUES ( ?e ) { ( ontology:parliament ) ( ontology:legislature ) } . ?u rdf:type ?e } GROUP BY ?h } . FILTER ( ?q = ?o ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { resource:Bremen-Verden property:legislative_body ?x . { { ?x rdf:type ontology:parliament } UNION { ?x rdf:type ontology:legislature } } } } }
[]
parliament legislature designation for an administrative territorial entity
SYSTEM
77
Q804 Q801 Q419 Q668 Q2806757 Q414 Q142 Q55 Q145 Q717 Q252320 Q187035 Q3361 Q657 Q258 Q45 Q41 Q155 Q4628 Q794 Q153529 Q1965 Q242 Q33 Q32 Q36 Q34 Q929 Q39 Q38 Q739 Q3685392 Q733 Q29999 Q854 Q153091 Q104192 Q603676 Q747074 Q72449 Q233 Q238 Q20 Q28 Q29 Q783 Q184 Q228 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q697 Q298 Q754 Q750 Q213 Q211 Q6465 Q214 Q215 Q218 Q219 Q16110 Q694594 Q79 Q77 Q811 Q1011 Q1013 Q12620 Q176 Q1952 Q869
(c(Q15617994),P194,c(Q35749)|c(Q11204))
action count
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q35749
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action count
action filter_multi_types
action find
entity Q694594
relation P194
type Q35749
type Q11204
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q35749'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?q ) WHERE { VALUES ( ?e ) { ( ontology:Q35749 ) ( ontology:Q11204 ) } . ?u rdf:type ?e } GROUP BY ?h } . FILTER ( ?q = ?o ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { resource:Q694594 property:P194 ?x . { { ?x rdf:type ontology:Q35749 } UNION { ?x rdf:type ontology:Q11204 } } } } }
Panama Israel Peru India 105 Mile Post Indian Reserve No. 2 Argentina France Netherlands United Kingdom Venezuela Pleinfeld Principality of Albania Doubs Chad South Africa Portugal Greece Brazil Faroe Islands Iran Duchy of Milan New Brunswick Belize Finland Luxembourg Poland Sweden Central African Republic Switzerland Italy Colombia Municipality of Monaco Paraguay Kingdom of the Netherlands Sri Lanka Duchy of Prussia Kleinmachnow District of Keewatin comune of Italy Roccarainola Malta San Marino Norway Hungary Spain Honduras Belarus Andorra Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Nauru Chile Trinidad and Tobago Bolivia Czech Republic Latvia department of France Slovakia Slovenia Romania Bulgaria region of Italy Bremen-Verden Egypt Uruguay Nicaragua Cape Verde Lesotho Mayenne Quebec Nova Scotia Thailand
77
action count
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action count
action filter_multi_types
action find
entity Bremen-Verden
relation legislative body
type parliament
type legislature
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'parliament'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?q ) WHERE { VALUES ( ?e ) { ( ontology:parliament ) ( ontology:legislature ) } . ?u rdf:type ?e } GROUP BY ?h } . FILTER ( ?q = ?o ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { resource:Bremen-Verden property:legislative_body ?x . { { ?x rdf:type ontology:parliament } UNION { ?x rdf:type ontology:legislature } } } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q49447 Q874405 Q15617994
USER
Which administrative territories are a part of approximately 1 world views and social groups ?
(c(Q15617994),P361,c(Q49447)|c(Q874405))
action approx
action union
action find_tuple_counts
relation P361
type Q15617994
type Q49447
action find_tuple_counts
relation P361
type Q15617994
type Q874405
value 1
[{'concept': 'Q15617994'}, 'P361', [{'concept': 'Q49447'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?r ) WHERE { { ?f property:P361 ?d . ?f rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q49447 } UNION { ?f rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q874405 . ?f property:P361 ?d } } GROUP BY ?f } . FILTER ( ?r = 1 ) }
action approx
action union
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type world view
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type social group
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'part of', [{'concept': 'world view'}, {'concept': 'social group'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?r ) WHERE { { ?f property:part_of ?d . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:world_view } UNION { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:social_group . ?f property:part_of ?d } } GROUP BY ?f } . FILTER ( ?r = 1 ) }
[]
world view social group designation for an administrative territorial entity
Q184864 Q3773354 Q697685
SYSTEM
Megara, Alagonia, House of Nassau-Weilburg
Q184864 Q3773354 Q697685
(c(Q15617994),P361,c(Q49447)|c(Q874405))
action approx
action union
action find_tuple_counts
relation P361
type Q15617994
type Q49447
action find_tuple_counts
relation P361
type Q15617994
type Q874405
value 1
[ANSWERS] are a part of approximately 1 world views and social groups
[{'concept': 'Q15617994'}, 'P361', [{'concept': 'Q49447'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?r ) WHERE { { ?f property:P361 ?d . ?f rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q49447 } UNION { ?f rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q874405 . ?f property:P361 ?d } } GROUP BY ?f } . FILTER ( ?r = 1 ) }
Megara Alagonia House of Nassau-Weilburg
Megara, Alagonia and House of Nassau-Weilburg are a part of approximately 1 world views and social groups
Megara Alagonia House of Nassau-Weilburg
action approx
action union
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type world view
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type social group
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'part of', [{'concept': 'world view'}, {'concept': 'social group'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?r ) WHERE { { ?f property:part_of ?d . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:world_view } UNION { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:social_group . ?f property:part_of ?d } } GROUP BY ?f } . FILTER ( ?r = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q15617994 Q838948 Q340169
USER
Which administrative territories are expressed in atmost 3 works of art and medias ?
(c(Q838948)|c(Q340169),P180,c(Q15617994))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
value 3
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) ?r WHERE { { ?b property:P180 ?r . ?r rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q838948 } UNION { ?b property:P180 ?r . ?r rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q340169 } } GROUP BY ?r } . FILTER ( ?p <= 3 ) }
action atmost
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 media
value 3
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) ?r WHERE { { ?b property:depicts ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:work_of_art } UNION { ?b property:depicts ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:media } } GROUP BY ?r } . FILTER ( ?p <= 3 ) }
[]
designation for an administrative territorial entity work of art media
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 Q1028 Q47821 Q12574 Q12578 Q223 Q12675 Q229 Q17 Q553347 Q551142 Q652480 Q111144 Q298 Q13320 Q186115 Q373189 Q159605 Q72425 Q12657 Q1438 Q26300792 Q183366 Q6256 Q79 Q72432 Q811 Q772 Q1016 Q1273 Q1011 Q913434 Q242683 Q80563 Q376896 Q34876 Q689720 Q33788 Q12563 Q190963 Q80591 Q42288 Q1034158
(c(Q838948)|c(Q340169),P180,c(Q15617994))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
value 3
[ANSWERS] are expressed in atmost 3 works of art and medias
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) ?r WHERE { { ?b property:P180 ?r . ?r rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q838948 } UNION { ?b property:P180 ?r . ?r rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q340169 } } GROUP BY ?r } . FILTER ( ?p <= 3 ) }
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 Morocco Malcesine Loiret Lot-et-Garonne Greenland Oise Cyprus Japan Kobern-Gondorf Wartenberg Kennemerland Canossa Chile Savona Montmartre Bithynia Tivoli Pozzuoli Nièvre Campania Rhos Y Madoc territory country Egypt Procida Nicaragua Drenthe Libya Tuscany Cape Verde Les Halles Genzano di Roma Amalfi Grenelle province Thörl New Caledonia Landes Frascati Atrani Asola Cap Norfeu
Italy, Brazil and Russia are expressed in atmost 3 works of art and medias
Italy Brazil Russia
action atmost
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 media
value 3
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) ?r WHERE { { ?b property:depicts ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:work_of_art } UNION { ?b property:depicts ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:media } } GROUP BY ?r } . FILTER ( ?p <= 3 ) }
[]