Simple Question (Direct)
Simple Question
Q540239
P611
Q1530022
USER
What religion is Bargil Pixner affiliated to ?
(Q540239,P611,c(Q1530022))
action filter_type
action find
entity Q540239
relation P611
type Q1530022
['Q540239', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?u WHERE { resource:Q540239 property:P611 ?u . ?u rdf:type ontology:Q1530022 }
Bargil Pixner
action filter_type
action find
entity Bargil Pixner
relation religious order
type religious organization
['Bargil Pixner', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?u WHERE { resource:Bargil_Pixner property:religious_order ?u . ?u rdf:type ontology:religious_organization }
[]
religious organization
Q131132
SYSTEM
Order of Saint Benedict
Q131132
(Q540239,P611,c(Q1530022))
action filter_type
action find
entity Q540239
relation P611
type Q1530022
Bargil Pixner is affiliated with [ANSWER]
['Q540239', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?u WHERE { resource:Q540239 property:P611 ?u . ?u rdf:type ontology:Q1530022 }
Order of Saint Benedict
Bargil Pixner is affiliated with Order of Saint Benedict
Order of Saint Benedict
action filter_type
action find
entity Bargil Pixner
relation religious order
type religious organization
['Bargil Pixner', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?u WHERE { resource:Bargil_Pixner property:religious_order ?u . ?u rdf:type ontology:religious_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q540239
P140
Q879146
USER
What is the religious affiliation of that person ?
(Q131132,P140,c(Q879146))
action filter_type
action find
entity Q540239
relation P140
type Q879146
['Q131132', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?o WHERE { resource:Q540239 property:P140 ?o . ?o rdf:type ontology:Q879146 }
Bargil Pixner
action filter_type
action find
entity Bargil Pixner
relation religion
type Christian denomination
['Order of Saint Benedict', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?o WHERE { resource:Bargil_Pixner property:religion ?o . ?o rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q131132,P140,c(Q879146))
action filter_type
action find
entity Q540239
relation P140
type Q879146
The religious affiliation of that person is a [ANSWER]
['Q131132', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?o WHERE { resource:Q540239 property:P140 ?o . ?o rdf:type ontology:Q879146 }
Roman Catholic Church
The religious affiliation of that person is a Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity Bargil Pixner
relation religion
type Christian denomination
['Order of Saint Benedict', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?o WHERE { resource:Bargil_Pixner property:religion ?o . ?o rdf:type ontology:Christian_denomination }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q540239
P20
Q56061
USER
Where did the expiration of that person occur ?
(Q9592,P20,c(Q56061))
action filter_type
action find
entity Q540239
relation P20
type Q56061
['Q9592', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q540239 property:P20 ?c . ?c rdf:type ontology:Q56061 }
Bargil Pixner
action filter_type
action find
entity Bargil Pixner
relation place of death
type administrative territorial entity
['Roman Catholic Church', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Bargil_Pixner property:place_of_death ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1218
SYSTEM
Jerusalem
Q1218
(Q9592,P20,c(Q56061))
action filter_type
action find
entity Q540239
relation P20
type Q56061
The expiration of that person occurred in [ANSWER]
['Q9592', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q540239 property:P20 ?c . ?c rdf:type ontology:Q56061 }
Jerusalem
The expiration of that person occurred in Jerusalem
Jerusalem
action filter_type
action find
entity Bargil Pixner
relation place of death
type administrative territorial entity
['Roman Catholic Church', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Bargil_Pixner property:place_of_death ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q34390 Q540239
P47 P27
Q15617994
USER
Which administrative territories are Bargil Pixner an inhabitant of or have a shared border with Lendinara ?
OR((Q540239,P27,c(Q15617994)), (Q34390,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q540239
relation P27
action find
entity Q34390
relation P47
type Q15617994
{'OR': [['Q540239', 'P27', {'concept': 'Q15617994'}], ['Q34390', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q540239 property:P27 ?z } UNION { resource:Q34390 property:P47 ?z } } . ?z rdf:type ontology:Q15617994 }
Lendinara Bargil Pixner
action filter_type
action union
action find
entity Bargil Pixner
relation country of citizenship
action find
entity Lendinara
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Bargil Pixner', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Lendinara', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Bargil_Pixner property:country_of_citizenship ?z } UNION { resource:Lendinara property:shares_border_with ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34381 Q34741 Q34712 Q34540 Q34746 Q34672 Q38 Q34716 Q34375 Q34667
SYSTEM
Some of them are Lusia, Sant'Urbano, Castelguglielmo, Piacenza d'Adige, San Bellino, Badia Polesine, Italy, Fratta Polesine, Villanova del Ghebbo, Canda
Q34716 Q38 Q34712 Q34381 Q34667 Q34746 Q34741 Q30 Q34672 Q34540 Q34375
OR((Q540239,P27,c(Q15617994)), (Q34390,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q540239
relation P27
action find
entity Q34390
relation P47
type Q15617994
[ANSWERS] are Bargil Pixner an inhabitant of or have a shared border with Lendinara
{'OR': [['Q540239', 'P27', {'concept': 'Q15617994'}], ['Q34390', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q540239 property:P27 ?z } UNION { resource:Q34390 property:P47 ?z } } . ?z rdf:type ontology:Q15617994 }
Fratta Polesine Italy Castelguglielmo Lusia Canda San Bellino Sant'Urbano United States of America Badia Polesine Piacenza d'Adige Villanova del Ghebbo
Lusia, Sant'Urbano, Castelguglielmo, Piacenza d'Adige, San Bellino, Badia Polesine, Italy, Fratta Polesine, Villanova del Ghebbo and Canda are Bargil Pixner an inhabitant of or have a shared border with Lendinara
Lusia Sant'Urbano Castelguglielmo Piacenza d'Adige San Bellino Badia Polesine Italy Fratta Polesine Villanova del Ghebbo Canda
action filter_type
action union
action find
entity Bargil Pixner
relation country of citizenship
action find
entity Lendinara
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Bargil Pixner', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Lendinara', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Bargil_Pixner property:country_of_citizenship ?z } UNION { resource:Lendinara property:shares_border_with ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q810
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with around the same number of administrative territories as Jordan ?
(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 Q810
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?j ) WHERE { ?c property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { resource:Q810 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?j = ?d ) }
Jordan
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 Jordan
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 ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?j ) WHERE { ?c property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { resource:Jordan property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?j = ?d ) }
[]
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 Q810
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with around the same number of administrative territories as Jordan
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?j ) WHERE { ?c property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { resource:Q810 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?j = ?d ) }
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 diplomatic relations with around the same number of administrative territories as Jordan
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 Jordan
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 ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?j ) WHERE { ?c property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { resource:Jordan property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?j = ?d ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q502895 Q1445650 Q15617994
USER
How many administrative territories have approximately 4 people and holidays as their patron saint ?
(c(Q15617994),P417,c(Q502895)|c(Q1445650))
action count
action approx
action union
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
value 4
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?h WHERE { { ?h rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q502895 . ?h property:P417 ?j } UNION { ?h property:P417 ?j . ?h rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1445650 } } GROUP BY ?h } . FILTER ( ?e = 4 ) }
action count
action approx
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?h WHERE { { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:common_name . ?h property:patron_saint ?j } UNION { ?h property:patron_saint ?j . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:holiday } } GROUP BY ?h } . FILTER ( ?e = 4 ) }
[]
common name holiday designation for an administrative territorial entity
SYSTEM
1
Q36
(c(Q15617994),P417,c(Q502895)|c(Q1445650))
action count
action approx
action union
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
value 4
[ANSWER]
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?h WHERE { { ?h rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q502895 . ?h property:P417 ?j } UNION { ?h property:P417 ?j . ?h rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1445650 } } GROUP BY ?h } . FILTER ( ?e = 4 ) }
Poland
1
action count
action approx
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?h WHERE { { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:common_name . ?h property:patron_saint ?j } UNION { ?h property:patron_saint ?j . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:holiday } } GROUP BY ?h } . FILTER ( ?e = 4 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q55
P530
Q15617994 Q1048835 Q15617994
USER
How many administrative territories are known to have diplomatic connections with lesser number of administrative territories and political territories than Netherlands ?
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action count
action less
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find
entity Q55
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?w WHERE { { ?w property:P530 ?c . ?w rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } UNION { ?w property:P530 ?c . ?w rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } } GROUP BY ?w } . FILTER ( ?l < ?b ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Q55 property:P530 ?q . { { ?q rdf:type ontology:Q15617994 } UNION { ?q rdf:type ontology:Q1048835 } } } } }
Netherlands
action count
action less
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Netherlands
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?w WHERE { { ?w property:diplomatic_relation ?c . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?w property:diplomatic_relation ?c . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } } GROUP BY ?w } . FILTER ( ?l < ?b ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Netherlands property:diplomatic_relation ?q . { { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?q rdf:type ontology:political_territorial_entity } } } } }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
SYSTEM
71
Q702 Q804 Q262 Q265 Q712 Q837 Q398 Q657 Q792 Q790 Q958 Q986 Q242 Q244 Q811 Q924 Q983 Q29999 Q854 Q819 Q424 Q730 Q236 Q232 Q238 Q1045 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1028 Q786 Q221 Q1036 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q117 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q774 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action count
action less
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find
entity Q55
relation P530
type Q15617994
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?w WHERE { { ?w property:P530 ?c . ?w rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } UNION { ?w property:P530 ?c . ?w rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } } GROUP BY ?w } . FILTER ( ?l < ?b ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Q55 property:P530 ?q . { { ?q rdf:type ontology:Q15617994 } UNION { ?q rdf:type ontology:Q1048835 } } } } }
Federated States of Micronesia Panama Algeria Uzbekistan Fiji Nepal Bahrain Chad El Salvador Haiti South Sudan Eritrea Belize Barbados Nicaragua Tanzania Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Montenegro Kazakhstan San Marino Somalia Brunei Sudan Mauritius Malawi Iceland Oman Morocco Dominican Republic Republic of Macedonia Uganda Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ghana Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Guatemala Kuwait Madagascar Togo Tonga New Caledonia
71
action count
action less
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Netherlands
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?w WHERE { { ?w property:diplomatic_relation ?c . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?w property:diplomatic_relation ?c . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } } GROUP BY ?w } . FILTER ( ?l < ?b ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Netherlands property:diplomatic_relation ?q . { { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?q rdf:type ontology:political_territorial_entity } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1009
P530
Q15617994 Q1048835 Q15617994
USER
And how about Cameroon?
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action count
action less
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find
entity Q1009
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?c WHERE { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?c } . FILTER ( ?e < ?m ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { resource:Q1009 property:P530 ?b . { { ?b rdf:type ontology:Q15617994 } UNION { ?b rdf:type ontology:Q1048835 } } } } }
Cameroon
action count
action less
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Cameroon
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?c WHERE { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?c } . FILTER ( ?e < ?m ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { resource:Cameroon property:diplomatic_relation ?b . { { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?b rdf:type ontology:political_territorial_entity } } } } }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
SYSTEM
44
Q702 Q262 Q265 Q712 Q837 Q398 Q657 Q792 Q790 Q986 Q242 Q29999 Q854 Q819 Q424 Q730 Q236 Q232 Q921 Q1027 Q1020 Q842 Q1037 Q974 Q1032 Q965 Q967 Q697 Q695 Q754 Q912 Q1007 Q1006 Q1005 Q1008 Q971 Q683 Q686 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action count
action less
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find
entity Q1009
relation P530
type Q15617994
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?c WHERE { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?c } . FILTER ( ?e < ?m ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { resource:Q1009 property:P530 ?b . { { ?b rdf:type ontology:Q15617994 } UNION { ?b rdf:type ontology:Q1048835 } } } } }
Federated States of Micronesia Algeria Uzbekistan Fiji Nepal Bahrain Chad El Salvador Haiti Eritrea Belize Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Montenegro Kazakhstan Brunei Mauritius Malawi Oman Rwanda Democratic Republic of the Congo Niger Burkina Faso Burundi Nauru Palau Trinidad and Tobago Mali Guinea-Bissau Guinea Gambia Côte d'Ivoire Republic of the Congo Samoa Vanuatu Myanmar Kuwait Madagascar Togo Tonga New Caledonia
44
action count
action less
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Cameroon
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?c WHERE { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?c } . FILTER ( ?e < ?m ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { resource:Cameroon property:diplomatic_relation ?b . { { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?b rdf:type ontology:political_territorial_entity } } } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q93351 Q1218
P190
Q515
USER
Which cities are twin towns of Jerusalem or Vichy ?
OR((Q1218,P190,c(Q515)), (Q93351,P190,c(Q515)))
action filter_type
action union
action find
entity Q1218
relation P190
action find
entity Q93351
relation P190
type Q515
{'OR': [['Q1218', 'P190', {'concept': 'Q515'}], ['Q93351', 'P190', {'concept': 'Q515'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q515 . { ?d property:P190 ?g . VALUES ( ?d ) { ( resource:Q1218 ) ( resource:Q93351 ) } } }
Vichy Jerusalem
action filter_type
action union
action find
entity Jerusalem
relation sister city
action find
entity Vichy
relation sister city
type city
{'OR': [['Jerusalem', 'sister city', {'concept': 'city'}], ['Vichy', 'sister city', {'concept': 'city'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:city . { ?d property:sister_city ?g . VALUES ( ?d ) { ( resource:Jerusalem ) ( resource:Vichy ) } } }
[]
city
Q1486 Q3616 Q694370 Q3857
SYSTEM
Buenos Aires, Tehran, Ayabe, Wilhelmshaven
Q1486 Q3616 Q694370 Q3857
OR((Q1218,P190,c(Q515)), (Q93351,P190,c(Q515)))
action filter_type
action union
action find
entity Q1218
relation P190
action find
entity Q93351
relation P190
type Q515
[ANSWERS] are twin towns of Jerusalem or Vichy
{'OR': [['Q1218', 'P190', {'concept': 'Q515'}], ['Q93351', 'P190', {'concept': 'Q515'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q515 . { ?d property:P190 ?g . VALUES ( ?d ) { ( resource:Q1218 ) ( resource:Q93351 ) } } }
Buenos Aires Tehran Ayabe Wilhelmshaven
Buenos Aires, Tehran, Ayabe and Wilhelmshaven are twin towns of Jerusalem or Vichy
Buenos Aires Tehran Ayabe Wilhelmshaven
action filter_type
action union
action find
entity Jerusalem
relation sister city
action find
entity Vichy
relation sister city
type city
{'OR': [['Jerusalem', 'sister city', {'concept': 'city'}], ['Vichy', 'sister city', {'concept': 'city'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:city . { ?d property:sister_city ?g . VALUES ( ?d ) { ( resource:Jerusalem ) ( resource:Vichy ) } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P206
Q15324 Q337567
USER
How many bodies of water or still waterss are located next to that city ?
(Q3857,P206,c(Q15324)) (Q3857,P206,c(Q337567)) (Q1486,P206,c(Q15324)) (Q1486,P206,c(Q337567)) (Q3616,P206,c(Q15324)) (Q3616,P206,c(Q337567)) (Q694370,P206,c(Q15324)) (Q694370,P206,c(Q337567)) (Q3857,P206,c(Q15324)) (Q3857,P206,c(Q337567))
['Q3857', 'P206', {'concept': 'Q15324'}] ['Q3857', 'P206', {'concept': 'Q337567'}] ['Q1486', 'P206', {'concept': 'Q15324'}] ['Q1486', 'P206', {'concept': 'Q337567'}] ['Q3616', 'P206', {'concept': 'Q15324'}] ['Q3616', 'P206', {'concept': 'Q337567'}] ['Q694370', 'P206', {'concept': 'Q15324'}] ['Q694370', 'P206', {'concept': 'Q337567'}] ['Q3857', 'P206', {'concept': 'Q15324'}] ['Q3857', 'P206', {'concept': 'Q337567'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q3857 property:P206 ?z } UNION { resource:Q3857 property:P206 ?y } UNION { resource:Q2101554 property:P206 ?z } UNION { resource:Q2101554 property:P206 ?y } UNION { resource:Q3616 property:P206 ?z } UNION { resource:Q3616 property:P206 ?y } UNION { resource:Q694370 property:P206 ?z } UNION { resource:Q694370 property:P206 ?y } UNION { resource:Q3857 property:P206 ?z } UNION { resource:Q3857 property:P206 ?y } } . ?z rdf:type ontology:Q15324 . ?y rdf:type ontology:Q337567 }
['Wilhelmshaven', 'located next to body of water', {'concept': 'body of water'}] ['Wilhelmshaven', 'located next to body of water', {'concept': 'still waters'}] ['Buenos Aires', 'located next to body of water', {'concept': 'body of water'}] ['Buenos Aires', 'located next to body of water', {'concept': 'still waters'}] ['Tehran', 'located next to body of water', {'concept': 'body of water'}] ['Tehran', 'located next to body of water', {'concept': 'still waters'}] ['Ayabe', 'located next to body of water', {'concept': 'body of water'}] ['Ayabe', 'located next to body of water', {'concept': 'still waters'}] ['Wilhelmshaven', 'located next to body of water', {'concept': 'body of water'}] ['Wilhelmshaven', 'located next to body of water', {'concept': 'still waters'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Wilhelmshaven property:located_next_to_body_of_water ?z } UNION { resource:Wilhelmshaven property:located_next_to_body_of_water ?y } UNION { resource:Buenos_Aires property:located_next_to_body_of_water ?z } UNION { resource:Buenos_Aires property:located_next_to_body_of_water ?y } UNION { resource:Tehran property:located_next_to_body_of_water ?z } UNION { resource:Tehran property:located_next_to_body_of_water ?y } UNION { resource:Ayabe property:located_next_to_body_of_water ?z } UNION { resource:Ayabe property:located_next_to_body_of_water ?y } UNION { resource:Wilhelmshaven property:located_next_to_body_of_water ?z } UNION { resource:Wilhelmshaven property:located_next_to_body_of_water ?y } } . ?z rdf:type ontology:body_of_water . ?y rdf:type ontology:still_waters }
[]
body of water still waters
Quantitative|Count|Mult. entity type|Clarification
Q694370
SYSTEM
Did you mean Ayabe ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q3857 property:P206 ?z } UNION { resource:Q3857 property:P206 ?y } UNION { resource:Q2101554 property:P206 ?z } UNION { resource:Q2101554 property:P206 ?y } UNION { resource:Q3616 property:P206 ?z } UNION { resource:Q3616 property:P206 ?y } UNION { resource:Q694370 property:P206 ?z } UNION { resource:Q694370 property:P206 ?y } UNION { resource:Q3857 property:P206 ?z } UNION { resource:Q3857 property:P206 ?y } } . ?z rdf:type ontology:Q15324 . ?y rdf:type ontology:Q337567 }
Did you mean Ayabe ?
Ayabe
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Wilhelmshaven property:located_next_to_body_of_water ?z } UNION { resource:Wilhelmshaven property:located_next_to_body_of_water ?y } UNION { resource:Buenos_Aires property:located_next_to_body_of_water ?z } UNION { resource:Buenos_Aires property:located_next_to_body_of_water ?y } UNION { resource:Tehran property:located_next_to_body_of_water ?z } UNION { resource:Tehran property:located_next_to_body_of_water ?y } UNION { resource:Ayabe property:located_next_to_body_of_water ?z } UNION { resource:Ayabe property:located_next_to_body_of_water ?y } UNION { resource:Wilhelmshaven property:located_next_to_body_of_water ?z } UNION { resource:Wilhelmshaven property:located_next_to_body_of_water ?y } } . ?z rdf:type ontology:body_of_water . ?y rdf:type ontology:still_waters }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Wilhelmshaven. Could you tell me the answer for that?
(Q3857,P206,c(Q15324)) (Q3857,P206,c(Q337567)) (Q1486,P206,c(Q15324)) (Q1486,P206,c(Q337567)) (Q3616,P206,c(Q15324)) (Q3616,P206,c(Q337567)) (Q694370,P206,c(Q15324)) (Q694370,P206,c(Q337567)) (Q3857,P206,c(Q15324)) (Q3857,P206,c(Q337567))
Q3857
['Q3857', 'P206', {'concept': 'Q15324'}] ['Q3857', 'P206', {'concept': 'Q337567'}] ['Q1486', 'P206', {'concept': 'Q15324'}] ['Q1486', 'P206', {'concept': 'Q337567'}] ['Q3616', 'P206', {'concept': 'Q15324'}] ['Q3616', 'P206', {'concept': 'Q337567'}] ['Q694370', 'P206', {'concept': 'Q15324'}] ['Q694370', 'P206', {'concept': 'Q337567'}] ['Q3857', 'P206', {'concept': 'Q15324'}] ['Q3857', 'P206', {'concept': 'Q337567'}]
['Wilhelmshaven', 'located next to body of water', {'concept': 'body of water'}] ['Wilhelmshaven', 'located next to body of water', {'concept': 'still waters'}] ['Buenos Aires', 'located next to body of water', {'concept': 'body of water'}] ['Buenos Aires', 'located next to body of water', {'concept': 'still waters'}] ['Tehran', 'located next to body of water', {'concept': 'body of water'}] ['Tehran', 'located next to body of water', {'concept': 'still waters'}] ['Ayabe', 'located next to body of water', {'concept': 'body of water'}] ['Ayabe', 'located next to body of water', {'concept': 'still waters'}] ['Wilhelmshaven', 'located next to body of water', {'concept': 'body of water'}] ['Wilhelmshaven', 'located next to body of water', {'concept': 'still waters'}]
[]
SYSTEM
2
Q504571 Q18616559
(Q3857,P206,c(Q15324)) (Q3857,P206,c(Q337567)) (Q1486,P206,c(Q15324)) (Q1486,P206,c(Q337567)) (Q3616,P206,c(Q15324)) (Q3616,P206,c(Q337567)) (Q694370,P206,c(Q15324)) (Q694370,P206,c(Q337567)) (Q3857,P206,c(Q15324)) (Q3857,P206,c(Q337567))
[ANSWER]
['Q3857', 'P206', {'concept': 'Q15324'}] ['Q3857', 'P206', {'concept': 'Q337567'}] ['Q1486', 'P206', {'concept': 'Q15324'}] ['Q1486', 'P206', {'concept': 'Q337567'}] ['Q3616', 'P206', {'concept': 'Q15324'}] ['Q3616', 'P206', {'concept': 'Q337567'}] ['Q694370', 'P206', {'concept': 'Q15324'}] ['Q694370', 'P206', {'concept': 'Q337567'}] ['Q3857', 'P206', {'concept': 'Q15324'}] ['Q3857', 'P206', {'concept': 'Q337567'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q3857 property:P206 ?z } UNION { resource:Q3857 property:P206 ?y } UNION { resource:Q2101554 property:P206 ?z } UNION { resource:Q2101554 property:P206 ?y } UNION { resource:Q3616 property:P206 ?z } UNION { resource:Q3616 property:P206 ?y } UNION { resource:Q694370 property:P206 ?z } UNION { resource:Q694370 property:P206 ?y } UNION { resource:Q3857 property:P206 ?z } UNION { resource:Q3857 property:P206 ?y } } . ?z rdf:type ontology:Q15324 . ?y rdf:type ontology:Q337567 }
Jade Bight Lake Bant
2
['Wilhelmshaven', 'located next to body of water', {'concept': 'body of water'}] ['Wilhelmshaven', 'located next to body of water', {'concept': 'still waters'}] ['Buenos Aires', 'located next to body of water', {'concept': 'body of water'}] ['Buenos Aires', 'located next to body of water', {'concept': 'still waters'}] ['Tehran', 'located next to body of water', {'concept': 'body of water'}] ['Tehran', 'located next to body of water', {'concept': 'still waters'}] ['Ayabe', 'located next to body of water', {'concept': 'body of water'}] ['Ayabe', 'located next to body of water', {'concept': 'still waters'}] ['Wilhelmshaven', 'located next to body of water', {'concept': 'body of water'}] ['Wilhelmshaven', 'located next to body of water', {'concept': 'still waters'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Wilhelmshaven property:located_next_to_body_of_water ?z } UNION { resource:Wilhelmshaven property:located_next_to_body_of_water ?y } UNION { resource:Buenos_Aires property:located_next_to_body_of_water ?z } UNION { resource:Buenos_Aires property:located_next_to_body_of_water ?y } UNION { resource:Tehran property:located_next_to_body_of_water ?z } UNION { resource:Tehran property:located_next_to_body_of_water ?y } UNION { resource:Ayabe property:located_next_to_body_of_water ?z } UNION { resource:Ayabe property:located_next_to_body_of_water ?y } UNION { resource:Wilhelmshaven property:located_next_to_body_of_water ?z } UNION { resource:Wilhelmshaven property:located_next_to_body_of_water ?y } } . ?z rdf:type ontology:body_of_water . ?y rdf:type ontology:still_waters }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q12652
P138
Q56061 Q502895 Q15617994
USER
How many administrative territories have more number of administrative territories and people as their namesake than Moselle ?
(c(Q15617994),P138,c(Q56061)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q15617994
type Q56061
action find_tuple_counts
relation P138
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q12652
relation P138
type Q56061
type Q502895
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?u ) WHERE { VALUES ( ?w ) { ( ontology:Q56061 ) ( ontology:Q502895 ) } . ?o rdf:type ?w } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { resource:Q12652 property:P138 ?r . { VALUES ( ?s ) { ( ontology:Q502895 ) ( ontology:Q56061 ) } . ?r rdf:type ?s } } } . FILTER ( ?u > ?h ) }
Moselle
action count
action greater
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Moselle
relation named after
type administrative territorial entity
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?u ) WHERE { VALUES ( ?w ) { ( ontology:administrative_territorial_entity ) ( ontology:common_name ) } . ?o rdf:type ?w } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { resource:Moselle property:named_after ?r . { VALUES ( ?s ) { ( ontology:common_name ) ( ontology:administrative_territorial_entity ) } . ?r rdf:type ?s } } } . FILTER ( ?u > ?h ) }
[]
administrative territorial entity common name designation for an administrative territorial entity
SYSTEM
48
Q709 Q124000 Q21671144 Q12536 Q1098820 Q710 Q1817784 Q7408058 Q1028 Q739 Q161258 Q1508919 Q786 Q5015782 Q676543 Q3563282 Q32 Q928 Q4336071 Q676178 Q2304605 Q238 Q4229407 Q621869 Q1042 Q683555 Q548396 Q811 Q4165945 Q752 Q750 Q160307 Q505607 Q6661829 Q2136219 Q977 Q1019 Q760 Q775 Q776 Q8575586 Q1558632 Q1913193 Q4066675 Q599866 Q2938 Q1951 Q13401101
(c(Q15617994),P138,c(Q56061)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q15617994
type Q56061
action find_tuple_counts
relation P138
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q12652
relation P138
type Q56061
type Q502895
[ANSWER]
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?u ) WHERE { VALUES ( ?w ) { ( ontology:Q56061 ) ( ontology:Q502895 ) } . ?o rdf:type ?w } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { resource:Q12652 property:P138 ?r . { VALUES ( ?s ) { ( ontology:Q502895 ) ( ontology:Q56061 ) } . ?r rdf:type ?s } } } . FILTER ( ?u > ?h ) }
Marshall Islands Victoria Mezhetchina Abbasid caliphate Gênes Kiribati Leninkent, Makhachkala, Republic of Dagestan Sam Rayburn Independent School District Morocco Colombia Clipperton Island Marengo Dominican Republic Cabot Public Schools Sankt Thomas Rumi District Luxembourg Philippines Ordzhonikidzevskiy raion of Zaporizhzhya Viereck Spitsbergen San Marino Komarovsky, Orenburg Oblast Georgsdorf Seychelles Vyronas Pommerby Nicaragua Sheikh Zayed City Groningen Bolivia Fatimid caliphate Philippsreut Llanvaches Amsterdam, Saskatchewan Djibouti Madagascar Saint Lucia Gelderland Utrecht Umayyad Caliphate Rome Chkalovsk Microdistrict Annino Lev Tolstoy Leverkusen Alberta Brandon Valley School District
48
action count
action greater
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Moselle
relation named after
type administrative territorial entity
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?u ) WHERE { VALUES ( ?w ) { ( ontology:administrative_territorial_entity ) ( ontology:common_name ) } . ?o rdf:type ?w } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { resource:Moselle property:named_after ?r . { VALUES ( ?s ) { ( ontology:common_name ) ( ontology:administrative_territorial_entity ) } . ?r rdf:type ?s } } } . FILTER ( ?u > ?h ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1231
P138
Q56061 Q502895 Q15617994
USER
And what about Kosovo Region?
(c(Q15617994),P138,c(Q56061)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q15617994
type Q56061
action find_tuple_counts
relation P138
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q1231
relation P138
type Q56061
type Q502895
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) ?m WHERE { { ?m property:P138 ?e . ?e rdf:type ontology:Q56061 . ?m rdf:type ontology:Q15617994 } UNION { ?m property:P138 ?e . ?m rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q502895 } } GROUP BY ?m } . FILTER ( ?r > ?o ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { resource:Q1231 property:P138 ?j . { { ?j rdf:type ontology:Q56061 } UNION { ?j rdf:type ontology:Q502895 } } } } }
Kosovo Region
action count
action greater
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Kosovo Region
relation named after
type administrative territorial entity
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) ?m WHERE { { ?m property:named_after ?e . ?e rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?m property:named_after ?e . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:common_name } } GROUP BY ?m } . FILTER ( ?r > ?o ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { resource:Kosovo_Region property:named_after ?j . { { ?j rdf:type ontology:administrative_territorial_entity } UNION { ?j rdf:type ontology:common_name } } } } }
[]
administrative territorial entity common name designation for an administrative territorial entity
SYSTEM
48
Q709 Q124000 Q21671144 Q12536 Q1098820 Q710 Q1817784 Q7408058 Q1028 Q739 Q161258 Q1508919 Q786 Q5015782 Q676543 Q3563282 Q32 Q928 Q4336071 Q676178 Q2304605 Q238 Q4229407 Q621869 Q1042 Q683555 Q548396 Q811 Q4165945 Q752 Q750 Q160307 Q505607 Q6661829 Q2136219 Q977 Q1019 Q760 Q775 Q776 Q8575586 Q1558632 Q1913193 Q4066675 Q599866 Q2938 Q1951 Q13401101
(c(Q15617994),P138,c(Q56061)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q15617994
type Q56061
action find_tuple_counts
relation P138
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q1231
relation P138
type Q56061
type Q502895
[ANSWER]
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) ?m WHERE { { ?m property:P138 ?e . ?e rdf:type ontology:Q56061 . ?m rdf:type ontology:Q15617994 } UNION { ?m property:P138 ?e . ?m rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q502895 } } GROUP BY ?m } . FILTER ( ?r > ?o ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { resource:Q1231 property:P138 ?j . { { ?j rdf:type ontology:Q56061 } UNION { ?j rdf:type ontology:Q502895 } } } } }
Marshall Islands Victoria Mezhetchina Abbasid caliphate Gênes Kiribati Leninkent, Makhachkala, Republic of Dagestan Sam Rayburn Independent School District Morocco Colombia Clipperton Island Marengo Dominican Republic Cabot Public Schools Sankt Thomas Rumi District Luxembourg Philippines Ordzhonikidzevskiy raion of Zaporizhzhya Viereck Spitsbergen San Marino Komarovsky, Orenburg Oblast Georgsdorf Seychelles Vyronas Pommerby Nicaragua Sheikh Zayed City Groningen Bolivia Fatimid caliphate Philippsreut Llanvaches Amsterdam, Saskatchewan Djibouti Madagascar Saint Lucia Gelderland Utrecht Umayyad Caliphate Rome Chkalovsk Microdistrict Annino Lev Tolstoy Leverkusen Alberta Brandon Valley School District
48
action count
action greater
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Kosovo Region
relation named after
type administrative territorial entity
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) ?m WHERE { { ?m property:named_after ?e . ?e rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?m property:named_after ?e . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:common_name } } GROUP BY ?m } . FILTER ( ?r > ?o ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { resource:Kosovo_Region property:named_after ?j . { { ?j rdf:type ontology:administrative_territorial_entity } UNION { ?j rdf:type ontology:common_name } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q34716
P19
Q502895
USER
Which people were born at Fratta Polesine ?
(c(Q502895),P19,Q34716)
action filter_type
action find_reverse
entity Q34716
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q34716']
SELECT DISTINCT ?j WHERE { ?j property:P19 resource:Q34716 . ?j rdf:type ontology:Q502895 }
Fratta Polesine
action filter_type
action find_reverse
entity Fratta Polesine
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Fratta Polesine']
SELECT DISTINCT ?j WHERE { ?j property:place_of_birth resource:Fratta_Polesine . ?j rdf:type ontology:common_name }
[]
common name
Q3742257 Q3767772 Q3771338
SYSTEM
Feliciano Monti, Giovanni Monti, Giuseppe Romanato
Q267304 Q3620305 Q3619974 Q3742257 Q3771338 Q3767772 Q3846130 Q3610156
(c(Q502895),P19,Q34716)
action filter_type
action find_reverse
entity Q34716
relation P19
type Q502895
[ANSWERS] were born at Fratta Polesine
[{'concept': 'Q502895'}, 'P19', 'Q34716']
SELECT DISTINCT ?j WHERE { ?j property:P19 resource:Q34716 . ?j rdf:type ontology:Q502895 }
Giacomo Matteotti Antonio Villa Antonio Oroboni Feliciano Monti Giuseppe Romanato Giovanni Monti Marco Fortini Alessandro Monti
Feliciano Monti, Giovanni Monti and Giuseppe Romanato were born at Fratta Polesine
Feliciano Monti Giovanni Monti Giuseppe Romanato
action filter_type
action find_reverse
entity Fratta Polesine
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Fratta Polesine']
SELECT DISTINCT ?j WHERE { ?j property:place_of_birth resource:Fratta_Polesine . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q3742257 Q3767772 Q3771338
P106
Q12737077
USER
What are the job of those people ?
(Q3742257,P106,c(Q12737077)) (Q3767772,P106,c(Q12737077)) (Q3771338,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
['Q3742257', 'P106', {'concept': 'Q12737077'}] ['Q3767772', 'P106', {'concept': 'Q12737077'}] ['Q3771338', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . ?g property:P106 ?a . VALUES ( ?g ) { ( resource:Q267304 ) ( resource:Q3620305 ) ( resource:Q3619974 ) } }
Feliciano Monti Giovanni Monti Giuseppe Romanato
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Feliciano Monti', 'occupation', {'concept': 'occupation'}] ['Giovanni Monti', 'occupation', {'concept': 'occupation'}] ['Giuseppe Romanato', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . ?g property:occupation ?a . VALUES ( ?g ) { ( resource:Giacomo_Matteotti ) ( resource:Antonio_Villa ) ( resource:Antonio_Oroboni ) } }
[]
occupation
Q937857 Q937857 Q82955
SYSTEM
politician for 3rd, association football player for 1st, 2nd
Q937857 Q937857 Q82955
(Q3742257,P106,c(Q12737077)) (Q3767772,P106,c(Q12737077)) (Q3771338,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
[ANSWERS]
['Q3742257', 'P106', {'concept': 'Q12737077'}] ['Q3767772', 'P106', {'concept': 'Q12737077'}] ['Q3771338', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . ?g property:P106 ?a . VALUES ( ?g ) { ( resource:Q267304 ) ( resource:Q3620305 ) ( resource:Q3619974 ) } }
association football player association football player politician
The job of those people are an association football player, association football player and politician
association football player association football player politician
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Feliciano Monti', 'occupation', {'concept': 'occupation'}] ['Giovanni Monti', 'occupation', {'concept': 'occupation'}] ['Giuseppe Romanato', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . ?g property:occupation ?a . VALUES ( ?g ) { ( resource:Giacomo_Matteotti ) ( resource:Antonio_Villa ) ( resource:Antonio_Oroboni ) } }
[]