Simple Question (Direct)
Simple Question
Q376270
P140
Q879146
USER
What is the religious affiliation of Denis Fahey ?
(Q376270,P140,c(Q879146))
action filter_type
action find
entity Q376270
relation P140
type Q879146
['Q376270', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?w WHERE { resource:Q376270 property:P140 ?w . ?w rdf:type ontology:Q879146 }
Denis Fahey
action filter_type
action find
entity Denis Fahey
relation religion
type Christian denomination
['Denis Fahey', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?w WHERE { resource:Denis_Fahey property:religion ?w . ?w rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q376270,P140,c(Q879146))
action filter_type
action find
entity Q376270
relation P140
type Q879146
The religious affiliation of Denis Fahey is a [ANSWER]
['Q376270', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?w WHERE { resource:Q376270 property:P140 ?w . ?w rdf:type ontology:Q879146 }
Roman Catholic Church
The religious affiliation of Denis Fahey is a Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity Denis Fahey
relation religion
type Christian denomination
['Denis Fahey', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?w WHERE { resource:Denis_Fahey property:religion ?w . ?w rdf:type ontology:Christian_denomination }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q376270
P106
Q12737077
USER
What are the job of Denis Fahey ?
(Q376270,P106,c(Q12737077))
action filter_type
action find
entity Q376270
relation P106
type Q12737077
['Q376270', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q376270 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
Denis Fahey
action filter_type
action find
entity Denis Fahey
relation occupation
type occupation
['Denis Fahey', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Denis_Fahey property:occupation ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q250867 Q36180
SYSTEM
Catholic priest, writer
Q250867 Q36180
(Q376270,P106,c(Q12737077))
action filter_type
action find
entity Q376270
relation P106
type Q12737077
The job of Denis Fahey are a [ANSWERS]
['Q376270', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q376270 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
Catholic priest writer
The job of Denis Fahey are a Catholic priest and writer
Catholic priest writer
action filter_type
action find
entity Denis Fahey
relation occupation
type occupation
['Denis Fahey', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Denis_Fahey property:occupation ?j . ?j rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q376270
P21
Q290
USER
Which sex does Denis Fahey belong to ?
(Q376270,P21,c(Q290))
action filter_type
action find
entity Q376270
relation P21
type Q290
['Q376270', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q376270 property:P21 ?h . ?h rdf:type ontology:Q290 }
Denis Fahey
action filter_type
action find
entity Denis Fahey
relation gender
type sex
['Denis Fahey', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Denis_Fahey property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q376270,P21,c(Q290))
action filter_type
action find
entity Q376270
relation P21
type Q290
Denis Fahey belongs to [ANSWER]
['Q376270', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q376270 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
Denis Fahey belongs to male
male
action filter_type
action find
entity Denis Fahey
relation gender
type sex
['Denis Fahey', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Denis_Fahey property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q376270
P27
Q15617994
USER
Which administrative territory is Denis Fahey an inhabitant of ?
(Q376270,P27,c(Q15617994))
action filter_type
action find
entity Q376270
relation P27
type Q15617994
['Q376270', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q376270 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Denis Fahey
action filter_type
action find
entity Denis Fahey
relation country of citizenship
type designation for an administrative territorial entity
['Denis Fahey', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Denis_Fahey property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q27
SYSTEM
Ireland
Q27
(Q376270,P27,c(Q15617994))
action filter_type
action find
entity Q376270
relation P27
type Q15617994
[ANSWER] is Denis Fahey an inhabitant of
['Q376270', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q376270 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Ireland
Ireland is Denis Fahey an inhabitant of
Ireland
action filter_type
action find
entity Denis Fahey
relation country of citizenship
type designation for an administrative territorial entity
['Denis Fahey', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Denis_Fahey property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with around 63 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 63
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?s ) WHERE { ?l rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 . ?y property:P530 ?l } GROUP BY ?y } . FILTER ( ?s = 63 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 63
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?s ) WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity . ?y property:diplomatic_relation ?l } GROUP BY ?y } . FILTER ( ?s = 63 ) }
[]
designation for an administrative territorial entity political territorial entity
Q16
SYSTEM
Canada
Q16
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 63
[ANSWER] have ambassadorial relations with around 63 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?s ) WHERE { ?l rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 . ?y property:P530 ?l } GROUP BY ?y } . FILTER ( ?s = 63 ) }
Canada
Canada have ambassadorial relations with around 63 administrative territories
Canada
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 63
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?s ) WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity . ?y property:diplomatic_relation ?l } GROUP BY ?y } . FILTER ( ?s = 63 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q82708
P361
Q879146 Q2342494 Q56061
USER
Which Christian denominations are lesser number of collectables or administrative territories a part of than Church of England ?
(c(Q2342494)|c(Q56061),P361,c(Q879146))
action less
action union
action find_reverse_tuple_counts
relation P361
type Q879146
type Q2342494
action find_reverse_tuple_counts
relation P361
type Q879146
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q82708
relation P361
type Q2342494
type Q56061
[[{'concept': 'Q2342494'}, {'concept': 'Q56061'}], 'P361', {'concept': 'Q879146'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?t ) WHERE { ?d rdf:type ?q . VALUES ( ?q ) { ( ontology:Q2342494 ) ( ontology:Q56061 ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x property:P361 resource:Q82708 . { { ?x rdf:type ontology:Q2342494 } UNION { ?x rdf:type ontology:Q56061 } } } } . FILTER ( ?t < ?r ) }
Church of England
action less
action union
action find_reverse_tuple_counts
relation part of
type Christian denomination
type collectable
action find_reverse_tuple_counts
relation part of
type Christian denomination
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Church of England
relation part of
type collectable
type administrative territorial entity
[[{'concept': 'collectable'}, {'concept': 'administrative territorial entity'}], 'part of', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?t ) WHERE { ?d rdf:type ?q . VALUES ( ?q ) { ( ontology:collectable ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x property:part_of resource:Church_of_England . { { ?x rdf:type ontology:collectable } UNION { ?x rdf:type ontology:administrative_territorial_entity } } } } . FILTER ( ?t < ?r ) }
[]
Christian denomination collectable administrative territorial entity
Q752470 Q1379849 Q1089788
SYSTEM
Finnish Orthodox Church, Evangelical Lutheran Church of Finland, Church in Wales
Q682443 Q666860 Q752470 Q346575 Q749243 Q540782 Q922480 Q1089788 Q170111 Q1379849 Q9592
(c(Q2342494)|c(Q56061),P361,c(Q879146))
action less
action union
action find_reverse_tuple_counts
relation P361
type Q879146
type Q2342494
action find_reverse_tuple_counts
relation P361
type Q879146
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q82708
relation P361
type Q2342494
type Q56061
[ANSWERS] are lesser number of collectables or administrative territories a part of than Church of England
[[{'concept': 'Q2342494'}, {'concept': 'Q56061'}], 'P361', {'concept': 'Q879146'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?t ) WHERE { ?d rdf:type ?q . VALUES ( ?q ) { ( ontology:Q2342494 ) ( ontology:Q56061 ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x property:P361 resource:Q82708 . { { ?x rdf:type ontology:Q2342494 } UNION { ?x rdf:type ontology:Q56061 } } } } . FILTER ( ?t < ?r ) }
Episcopal Church Church of Norway Finnish Orthodox Church Evangelical Church Church of Sweden Anglican Church of Canada Church of Scotland Church in Wales Evangelical Church in Germany Evangelical Lutheran Church of Finland Roman Catholic Church
Finnish Orthodox Church, Evangelical Lutheran Church of Finland and Church in Wales are lesser number of collectables or administrative territories a part of than Church of England
Finnish Orthodox Church Evangelical Lutheran Church of Finland Church in Wales
action less
action union
action find_reverse_tuple_counts
relation part of
type Christian denomination
type collectable
action find_reverse_tuple_counts
relation part of
type Christian denomination
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Church of England
relation part of
type collectable
type administrative territorial entity
[[{'concept': 'collectable'}, {'concept': 'administrative territorial entity'}], 'part of', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?t ) WHERE { ?d rdf:type ?q . VALUES ( ?q ) { ( ontology:collectable ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x property:part_of resource:Church_of_England . { { ?x rdf:type ontology:collectable } UNION { ?x rdf:type ontology:administrative_territorial_entity } } } } . FILTER ( ?t < ?r ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q917
P530
Q1048835 Q15617994 Q15617994
USER
Which administrative territories have tactful political relations with approximately the same number of political territories and administrative territories as Bhutan ?
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q917
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?g ) WHERE { { ?d property:P530 ?f . ?d rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } UNION { ?d property:P530 ?f . ?d rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { resource:Q917 property:P530 ?o . { { ?o rdf:type ontology:Q1048835 } UNION { ?o rdf:type ontology:Q15617994 } } } } . FILTER ( ?g = ?s ) }
Bhutan
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
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_multi_types
action find
entity Bhutan
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?g ) WHERE { { ?d property:diplomatic_relation ?f . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?d property:diplomatic_relation ?f . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { resource:Bhutan property:diplomatic_relation ?o . { { ?o rdf:type ontology:political_territorial_entity } UNION { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?g = ?s ) }
[]
political territorial entity 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(Q1048835)|c(Q15617994))
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q917
relation P530
type Q1048835
type Q15617994
[ANSWERS] have tactful political relations with approximately the same number of political territories and administrative territories as Bhutan
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?g ) WHERE { { ?d property:P530 ?f . ?d rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } UNION { ?d property:P530 ?f . ?d rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { resource:Q917 property:P530 ?o . { { ?o rdf:type ontology:Q1048835 } UNION { ?o rdf:type ontology:Q15617994 } } } } . FILTER ( ?g = ?s ) }
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 and People's Republic of China have tactful political relations with approximately the same number of political territories and administrative territories as Bhutan
Netherlands Poland People's Republic of China
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
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_multi_types
action find
entity Bhutan
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?g ) WHERE { { ?d property:diplomatic_relation ?f . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?d property:diplomatic_relation ?f . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { resource:Bhutan property:diplomatic_relation ?o . { { ?o rdf:type ontology:political_territorial_entity } UNION { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?g = ?s ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q790
P530
Q1048835 Q15617994 Q15617994
USER
And also tell me about Haiti?
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q790
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) ?x WHERE { ?w rdf:type ?q . VALUES ( ?q ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:Q790 property:P530 ?c . { VALUES ( ?s ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?c rdf:type ?s } } } . FILTER ( ?p = ?v ) }
Haiti
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
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_multi_types
action find
entity Haiti
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) ?x WHERE { ?w rdf:type ?q . VALUES ( ?q ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:Haiti property:diplomatic_relation ?c . { VALUES ( ?s ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?c rdf:type ?s } } } . FILTER ( ?p = ?v ) }
[]
political territorial entity 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(Q1048835)|c(Q15617994))
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q790
relation P530
type Q1048835
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) ?x WHERE { ?w rdf:type ?q . VALUES ( ?q ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:Q790 property:P530 ?c . { VALUES ( ?s ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?c rdf:type ?s } } } . FILTER ( ?p = ?v ) }
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 People's Republic of China
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
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_multi_types
action find
entity Haiti
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) ?x WHERE { ?w rdf:type ?q . VALUES ( ?q ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:Haiti property:diplomatic_relation ?c . { VALUES ( ?s ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?c rdf:type ?s } } } . FILTER ( ?p = ?v ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q894172 Q27
P161 P35
Q502895
USER
Which people are the heads of state of Ireland or starred in Borsalino ?
OR((Q27,P35,c(Q502895)), (Q894172,P161,c(Q502895)))
action filter_type
action union
action find
entity Q27
relation P35
action find
entity Q894172
relation P161
type Q502895
{'OR': [['Q27', 'P35', {'concept': 'Q502895'}], ['Q894172', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . { { resource:Q27 property:P35 ?t } UNION { resource:Q894172 property:P161 ?t } } }
Borsalino Ireland
action filter_type
action union
action find
entity Ireland
relation head of state
action find
entity Borsalino
relation cast member
type common name
{'OR': [['Ireland', 'head of state', {'concept': 'common name'}], ['Borsalino', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . { { resource:Ireland property:head_of_state ?t } UNION { resource:Borsalino property:cast_member ?t } } }
[]
common name
Q3440161 Q3014208 Q3293817 Q501362 Q3023139 Q3130587 Q3086444 Q106529 Q1712249 Q705721
SYSTEM
Some of them are Roland Malet, Daniel Ivernel, Marius Laurey, Mario David, Dennis Berry, Henri Attal, Françoise Christophe, Alain Delon, Julien Guiomar, Art Simmons
Q3573341 Q3014208 Q2830925 Q3293817 Q106255 Q268569 Q3130587 Q3440161 Q2419802 Q2965730 Q509290 Q981315 Q3379527 Q3293403 Q3086444 Q3023139 Q3083027 Q3788161 Q106529 Q501362 Q378674 Q57276 Q3300341 Q531256 Q3385684 Q3102838 Q1712249 Q3155351 Q3173832 Q129681 Q526918 Q705721 Q3241961
OR((Q27,P35,c(Q502895)), (Q894172,P161,c(Q502895)))
action filter_type
action union
action find
entity Q27
relation P35
action find
entity Q894172
relation P161
type Q502895
[ANSWERS] are the heads of state of Ireland or starred in Borsalino
{'OR': [['Q27', 'P35', {'concept': 'Q502895'}], ['Q894172', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . { { resource:Q27 property:P35 ?t } UNION { resource:Q894172 property:P161 ?t } } }
Yvan Chiffre Daniel Ivernel Albert Augier Marius Laurey Jean-Paul Belmondo Mireille Darc Henri Attal Roland Malet Claude Cerval Christian de Tillière Laura Adani Michel Bouquet Philippe Castelli Mario David Françoise Christophe Dennis Berry Fransined Hélène Rémy Alain Delon Mario David Arnoldo Foà Michael Higgins Maurice Auzel Catherine Rouvel Pierre Koulak Georges Guéret Julien Guiomar Iska Khan Jean Panisse Corinne Marchand Nicole Calfan Art Simmons Lionel Vitrant
Roland Malet, Daniel Ivernel, Marius Laurey, Mario David, Dennis Berry, Henri Attal, Françoise Christophe, Alain Delon, Julien Guiomar and Art Simmons are the heads of state of Ireland or starred in Borsalino
Roland Malet Daniel Ivernel Marius Laurey Mario David Dennis Berry Henri Attal Françoise Christophe Alain Delon Julien Guiomar Art Simmons
action filter_type
action union
action find
entity Ireland
relation head of state
action find
entity Borsalino
relation cast member
type common name
{'OR': [['Ireland', 'head of state', {'concept': 'common name'}], ['Borsalino', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . { { resource:Ireland property:head_of_state ?t } UNION { resource:Borsalino property:cast_member ?t } } }
[]