Simple Question (Direct)
Simple Question
Q50197
P47
Q15617994
USER
Which administrative territories are bordered by Ferentino ?
(Q50197,P47,c(Q15617994))
action filter_type
action find
entity Q50197
relation P47
type Q15617994
['Q50197', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q50197 property:P47 ?m . ?m rdf:type ontology:Q15617994 }
Ferentino
action filter_type
action find
entity Ferentino
relation shares border with
type designation for an administrative territorial entity
['Ferentino', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Ferentino property:shares_border_with ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q18400 Q116404 Q13413
SYSTEM
Alatri, Anagni, Frosinone
Q116884 Q13413 Q117492 Q116377 Q116956 Q117395 Q116840 Q117368 Q116404 Q18400
(Q50197,P47,c(Q15617994))
action filter_type
action find
entity Q50197
relation P47
type Q15617994
[ANSWERS] are bordered by Ferentino
['Q50197', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q50197 property:P47 ?m . ?m rdf:type ontology:Q15617994 }
Fumone Frosinone Trivigliano Acuto Morolo Supino Fiuggi Sgurgola Anagni Alatri
Alatri, Anagni and Frosinone are bordered by Ferentino
Alatri Anagni Frosinone
action filter_type
action find
entity Ferentino
relation shares border with
type designation for an administrative territorial entity
['Ferentino', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Ferentino property:shares_border_with ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q116404
P190
Q20667921
USER
Which french administrative division is twin city of that administrative territory ?
(c(Q20667921),P190,Q116404)
action filter_type
action find
entity Q116404
relation P190
type Q20667921
[{'concept': 'Q20667921'}, 'P190', 'Q116404']
SELECT DISTINCT ?l WHERE { resource:Q116404 property:P190 ?l . ?l rdf:type ontology:Q20667921 }
Anagni
action filter_type
action find
entity Anagni
relation sister city
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'sister city', 'Anagni']
SELECT DISTINCT ?l WHERE { resource:Anagni property:sister_city ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Clarification for simple ques.
Q18400
SYSTEM
Did you mean Alatri ?
Q18400 Q116404 Q13413
(c(Q20667921),P190,Q18400) (c(Q20667921),P190,Q116404) (c(Q20667921),P190,Q13413)
[ANSWER]
[{'concept': 'Q20667921'}, 'P190', 'Q18400'] [{'concept': 'Q20667921'}, 'P190', 'Q116404'] [{'concept': 'Q20667921'}, 'P190', 'Q13413']
SELECT DISTINCT ?l WHERE { resource:Q116404 property:P190 ?l . ?l rdf:type ontology:Q20667921 }
Alatri Anagni Frosinone
Did you mean Alatri ?
Alatri
[{'concept': 'type of french administrative division'}, 'sister city', 'Alatri'] [{'concept': 'type of french administrative division'}, 'sister city', 'Anagni'] [{'concept': 'type of french administrative division'}, 'sister city', 'Frosinone']
SELECT DISTINCT ?l WHERE { resource:Anagni property:sister_city ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
USER
No, I meant Anagni. Could you tell me the answer for that?
(c(Q20667921),P190,Q116404)
Q116404
[{'concept': 'Q20667921'}, 'P190', 'Q116404']
[{'concept': 'type of french administrative division'}, 'sister city', 'Anagni']
[]
Q504204
SYSTEM
L'Isle-sur-la-Sorgue
Q504204
(c(Q20667921),P190,Q116404)
action filter_type
action find
entity Q116404
relation P190
type Q20667921
[ANSWER] is twin city of that administrative territory
[{'concept': 'Q20667921'}, 'P190', 'Q116404']
SELECT DISTINCT ?l WHERE { resource:Q116404 property:P190 ?l . ?l rdf:type ontology:Q20667921 }
L'Isle-sur-la-Sorgue
L'Isle-sur-la-Sorgue is twin city of that administrative territory
L'Isle-sur-la-Sorgue
action filter_type
action find
entity Anagni
relation sister city
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'sister city', 'Anagni']
SELECT DISTINCT ?l WHERE { resource:Anagni property:sister_city ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q504204 Q1384906
P47
Q20667921
USER
Does that one share a border with Notre-Dame-d'Allençon ?
(Q1384906,P47,Q504204)
action is_in
entity Q1384906
action find
entity Q504204
relation P47
['Q1384906', 'P47', 'Q504204']
ASK WHERE { resource:Q504204 property:P47 resource:Q1384906 }
L'Isle-sur-la-Sorgue Notre-Dame-d'Allençon
action is_in
entity Notre-Dame-d'Allençon
action find
entity L'Isle-sur-la-Sorgue
relation shares border with
["Notre-Dame-d'Allençon", 'shares border with', "L'Isle-sur-la-Sorgue"]
ASK WHERE { resource:L'Isle-sur-la-Sorgue property:shares_border_with resource:Notre-Dame-d'Allençon }
[]
type of french administrative division
SYSTEM
NO
(Q1384906,P47,Q504204)
action is_in
entity Q1384906
action find
entity Q504204
relation P47
[ANSWER]
['Q1384906', 'P47', 'Q504204']
ASK WHERE { resource:Q504204 property:P47 resource:Q1384906 }
No
action is_in
entity Notre-Dame-d'Allençon
action find
entity L'Isle-sur-la-Sorgue
relation shares border with
["Notre-Dame-d'Allençon", 'shares border with', "L'Isle-sur-la-Sorgue"]
ASK WHERE { resource:L'Isle-sur-la-Sorgue property:shares_border_with resource:Notre-Dame-d'Allençon }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q858
P840
Q15617994 Q2342494 Q166142
USER
Which administrative territories are around the same number of collectables and applications set in as Syria ?
(c(Q2342494)|c(Q166142),P840,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q858
relation P840
type Q2342494
type Q166142
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) ?v WHERE { { ?x property:P840 ?v . ?v rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 } UNION { ?x property:P840 ?v . ?v rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q166142 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { ?w rdf:type ?i . VALUES ( ?i ) { ( ontology:Q2342494 ) ( ontology:Q166142 ) } } . ?w property:P840 resource:Q858 } } . FILTER ( ?p = ?z ) }
Syria
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Syria
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) ?v WHERE { { ?x property:narrative_location ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable } UNION { ?x property:narrative_location ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:application } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { ?w rdf:type ?i . VALUES ( ?i ) { ( ontology:collectable ) ( ontology:application ) } } . ?w property:narrative_location resource:Syria } } . FILTER ( ?p = ?z ) }
[]
designation for an administrative territorial entity collectable application
Q30 Q230 Q55
SYSTEM
United States of America, Georgia, Netherlands
Q377277 Q805 Q804 Q801 Q20837 Q278221 Q186115 Q414 Q3278 Q55 Q1948 Q145 Q262 Q189 Q265 Q47428 Q18021 Q842 Q36678 Q712 Q711 Q710 Q717 Q837 Q252 Q1460 Q399 Q403 Q258 Q1979 Q45 Q43 Q790 Q796 Q794 Q889 Q884 Q858 Q419 Q165040 Q822 Q241 Q232782 Q244 Q1974 Q490398 Q12515 Q32 Q31 Q30 Q37 Q36 Q34 Q928 Q39 Q58477 Q739 Q423 Q424 Q851 Q733 Q854 Q819 Q340628 Q769680 Q12798 Q236 Q230 Q12538 Q232 Q233 Q1093 Q20 Q1045 Q1044 Q1860611 Q1041 Q27 Q913434 Q29 Q127043 Q1027 Q2009 Q843 Q2007 Q184 Q1029 Q1028 Q511806 Q1458 Q91217 Q1452 Q227 Q225 Q163966 Q223 Q12700 Q2336399 Q3207 Q1033 Q1030 Q191 Q962 Q963 Q159689 Q298 Q114 Q41158 Q750 Q212 Q213 Q517107 Q217 Q218 Q219 Q20571 Q1210 Q912 Q2107 Q1007 Q1005 Q833 Q14859 Q2742 Q683 Q836 Q874 Q79 Q77 Q774 Q948 Q817 Q810 Q1019 Q1014 Q1016 Q1273 Q1011 Q28 Q12620 Q678 Q800 Q12545 Q1952 Q53216 Q869 Q6247
(c(Q2342494)|c(Q166142),P840,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q858
relation P840
type Q2342494
type Q166142
[ANSWERS] are around the same number of collectables and applications set in as Syria
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) ?v WHERE { { ?x property:P840 ?v . ?v rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 } UNION { ?x property:P840 ?v . ?v rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q166142 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { ?w rdf:type ?i . VALUES ( ?i ) { ( ontology:Q2342494 ) ( ontology:Q166142 ) } } . ?w property:P840 resource:Q858 } } . FILTER ( ?p = ?z ) }
Glückstadt Yemen Panama Israel Fanø Berchtesgaden Montmartre Argentina Charente-Maritime Netherlands Manitoba United Kingdom Algeria Iceland Uzbekistan Valdobbiadene Biella Oman West Bank Fiji Mongolia Kiribati Venezuela Nepal Indonesia Sicily Armenia Serbia South Africa Prince Edward Island Portugal Turkey Haiti Iraq Iran Afghanistan South Korea Syria Peru Duchy of Parma Lebanon Cuba Portofino Barbados British Columbia Peenemünde Gard Luxembourg Belgium United States of America Lithuania Poland Sweden Philippines Switzerland Capua Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Laos Aggius Bornholm Vendée Montenegro Georgia Haute-Garonne Kazakhstan Malta Limburg Norway Somalia Sierra Leone Viby Senegal Ireland Les Halles Spain Garmisch-Partenkirchen Mauritius Yukon Pakistan Northwest Territories Belarus Mozambique Morocco North Slope Borough Calabria Montepulciano Basilicata Azerbaijan Bosnia and Herzegovina Mitte Greenland Hautes-Pyrénées Baluchistan Aude Nigeria Namibia Estonia Benin Botswana Bomarzo Chile Kenya Cortina d'Ampezzo Bolivia Ukraine Czech Republic Rudolstadt Republic of Moldova Romania Bulgaria Spoleto Lombardy Mali Wuppertal Guinea-Bissau Gambia Malaysia Ansbach Münster Samoa Myanmar Turkmenistan Egypt Uruguay Guatemala Tunisia Kuwait Jordan Madagascar Liberia Libya Tuscany Cape Verde Hungary Mayenne Tonga Costa Rica Hérault Nova Scotia Aquileia Thailand Mantua
United States of America, Georgia and Netherlands are around the same number of collectables and applications set in as Syria
United States of America Georgia Netherlands
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Syria
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) ?v WHERE { { ?x property:narrative_location ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable } UNION { ?x property:narrative_location ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:application } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { ?w rdf:type ?i . VALUES ( ?i ) { ( ontology:collectable ) ( ontology:application ) } } . ?w property:narrative_location resource:Syria } } . FILTER ( ?p = ?z ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q225
P840
Q15617994 Q2342494 Q166142
USER
And also tell me about Bosnia and Herzegovina?
(c(Q2342494)|c(Q166142),P840,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q225
relation P840
type Q2342494
type Q166142
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) ?d WHERE { { ?j property:P840 ?d . ?d rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q2342494 } UNION { ?j property:P840 ?d . ?d rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q166142 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { ?m property:P840 resource:Q225 . { VALUES ( ?i ) { ( ontology:Q166142 ) ( ontology:Q2342494 ) } . ?m rdf:type ?i } } } . FILTER ( ?g = ?c ) }
Bosnia and Herzegovina
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Bosnia and Herzegovina
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) ?d WHERE { { ?j property:narrative_location ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:collectable } UNION { ?j property:narrative_location ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:application } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { ?m property:narrative_location resource:Bosnia_and_Herzegovina . { VALUES ( ?i ) { ( ontology:application ) ( ontology:collectable ) } . ?m rdf:type ?i } } } . FILTER ( ?g = ?c ) }
[]
designation for an administrative territorial entity collectable application
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q377277 Q805 Q804 Q801 Q20837 Q278221 Q186115 Q414 Q3278 Q55 Q1948 Q145 Q262 Q189 Q265 Q47428 Q18021 Q842 Q36678 Q712 Q711 Q710 Q717 Q837 Q252 Q1460 Q399 Q403 Q258 Q1979 Q45 Q43 Q790 Q796 Q794 Q884 Q858 Q419 Q165040 Q822 Q241 Q232782 Q244 Q1974 Q490398 Q12515 Q32 Q31 Q37 Q36 Q34 Q928 Q39 Q58477 Q739 Q423 Q424 Q851 Q733 Q854 Q819 Q340628 Q769680 Q12798 Q236 Q230 Q12538 Q232 Q233 Q1093 Q20 Q1045 Q1044 Q1860611 Q1041 Q27 Q913434 Q29 Q127043 Q1027 Q2009 Q843 Q2007 Q184 Q1029 Q1028 Q511806 Q1458 Q91217 Q1452 Q227 Q225 Q163966 Q223 Q12700 Q2336399 Q3207 Q1033 Q1030 Q191 Q962 Q963 Q159689 Q298 Q114 Q41158 Q750 Q212 Q213 Q517107 Q217 Q218 Q219 Q20571 Q1210 Q912 Q2107 Q1007 Q1005 Q833 Q14859 Q2742 Q683 Q836 Q874 Q79 Q77 Q774 Q948 Q817 Q810 Q1019 Q1014 Q1016 Q1273 Q1011 Q28 Q12620 Q678 Q800 Q12545 Q1952 Q53216 Q869 Q6247
(c(Q2342494)|c(Q166142),P840,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q225
relation P840
type Q2342494
type Q166142
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) ?d WHERE { { ?j property:P840 ?d . ?d rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q2342494 } UNION { ?j property:P840 ?d . ?d rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q166142 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { ?m property:P840 resource:Q225 . { VALUES ( ?i ) { ( ontology:Q166142 ) ( ontology:Q2342494 ) } . ?m rdf:type ?i } } } . FILTER ( ?g = ?c ) }
Glückstadt Yemen Panama Israel Fanø Berchtesgaden Montmartre Argentina Charente-Maritime Netherlands Manitoba United Kingdom Algeria Iceland Uzbekistan Valdobbiadene Biella Oman West Bank Fiji Mongolia Kiribati Venezuela Nepal Indonesia Sicily Armenia Serbia South Africa Prince Edward Island Portugal Turkey Haiti Iraq Iran South Korea Syria Peru Duchy of Parma Lebanon Cuba Portofino Barbados British Columbia Peenemünde Gard Luxembourg Belgium Lithuania Poland Sweden Philippines Switzerland Capua Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Laos Aggius Bornholm Vendée Montenegro Georgia Haute-Garonne Kazakhstan Malta Limburg Norway Somalia Sierra Leone Viby Senegal Ireland Les Halles Spain Garmisch-Partenkirchen Mauritius Yukon Pakistan Northwest Territories Belarus Mozambique Morocco North Slope Borough Calabria Montepulciano Basilicata Azerbaijan Bosnia and Herzegovina Mitte Greenland Hautes-Pyrénées Baluchistan Aude Nigeria Namibia Estonia Benin Botswana Bomarzo Chile Kenya Cortina d'Ampezzo Bolivia Ukraine Czech Republic Rudolstadt Republic of Moldova Romania Bulgaria Spoleto Lombardy Mali Wuppertal Guinea-Bissau Gambia Malaysia Ansbach Münster Samoa Myanmar Turkmenistan Egypt Uruguay Guatemala Tunisia Kuwait Jordan Madagascar Liberia Libya Tuscany Cape Verde Hungary Mayenne Tonga Costa Rica Hérault Nova Scotia Aquileia Thailand Mantua
Georgia Netherlands Poland
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Bosnia and Herzegovina
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) ?d WHERE { { ?j property:narrative_location ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:collectable } UNION { ?j property:narrative_location ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:application } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { ?m property:narrative_location resource:Bosnia_and_Herzegovina . { VALUES ( ?i ) { ( ontology:application ) ( ontology:collectable ) } . ?m rdf:type ?i } } } . FILTER ( ?g = ?c ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q656279
P530
Q15617994
USER
Do Immert have ambassadorial relations with those ones ?
(Q656279,P530,Q230) (Q656279,P530,Q55) (Q656279,P530,Q36)
action is_in
entity prev_answer
action find
entity Q656279
relation P530
['Q656279', 'P530', 'Q230'] ['Q656279', 'P530', 'Q55'] ['Q656279', 'P530', 'Q36']
ASK WHERE { resource:Q656279 property:P530 ?z . VALUES ( ?z ) { ( resource:Q377277 ) ( resource:Q805 ) ( resource:Q804 ) } }
Immert
action is_in
entity prev_answer
action find
entity Immert
relation diplomatic relation
['Immert', 'diplomatic relation', 'Georgia'] ['Immert', 'diplomatic relation', 'Netherlands'] ['Immert', 'diplomatic relation', 'Poland']
ASK WHERE { resource:Immert property:diplomatic_relation ?z . VALUES ( ?z ) { ( resource:Glückstadt ) ( resource:Yemen ) ( resource:Panama ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q656279,P530,Q230) (Q656279,P530,Q55) (Q656279,P530,Q36)
action is_in
entity prev_answer
action find
entity Q656279
relation P530
[ANSWER]
['Q656279', 'P530', 'Q230'] ['Q656279', 'P530', 'Q55'] ['Q656279', 'P530', 'Q36']
ASK WHERE { resource:Q656279 property:P530 ?z . VALUES ( ?z ) { ( resource:Q377277 ) ( resource:Q805 ) ( resource:Q804 ) } }
No
action is_in
entity prev_answer
action find
entity Immert
relation diplomatic relation
['Immert', 'diplomatic relation', 'Georgia'] ['Immert', 'diplomatic relation', 'Netherlands'] ['Immert', 'diplomatic relation', 'Poland']
ASK WHERE { resource:Immert property:diplomatic_relation ?z . VALUES ( ?z ) { ( resource:Glückstadt ) ( resource:Yemen ) ( resource:Panama ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q116404
P417
Q502895
USER
Who is the patron saint of Anagni ?
(Q116404,P417,c(Q502895))
action filter_type
action find
entity Q116404
relation P417
type Q502895
['Q116404', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . resource:Q116404 property:P417 ?y }
Anagni
action filter_type
action find
entity Anagni
relation patron saint
type common name
['Anagni', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . resource:Anagni property:patron_saint ?y }
[]
common name
Q587596
SYSTEM
Magnus of Anagni
Q587596
(Q116404,P417,c(Q502895))
action filter_type
action find
entity Q116404
relation P417
type Q502895
The patron saint of Anagni is John [ANSWER]
['Q116404', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . resource:Q116404 property:P417 ?y }
Magnus of Anagni
The patron saint of Anagni is John Magnus of Anagni
Magnus of Anagni
action filter_type
action find
entity Anagni
relation patron saint
type common name
['Anagni', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . resource:Anagni property:patron_saint ?y }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P417
Q502895 Q56061 Q16970
USER
How many people are the names of the patron saint of greater number of administrative territories or churches than that person ?
(c(Q56061)|c(Q16970),P417,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q56061
action find_reverse_tuple_counts
relation P417
type Q502895
type Q16970
action count
action filter_multi_types
action find_reverse
entity Q587596
relation P417
type Q56061
type Q16970
[[{'concept': 'Q56061'}, {'concept': 'Q16970'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:P417 resource:Q587596 . { ?c rdf:type ?r . VALUES ( ?r ) { ( ontology:Q56061 ) ( ontology:Q16970 ) } } } } . FILTER ( ?x > ?d ) . { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?x ) WHERE { ?m rdf:type ?q . VALUES ( ?q ) { ( ontology:Q56061 ) ( ontology:Q16970 ) } } GROUP BY ?f } }
action count
action greater
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type administrative territorial entity
action find_reverse_tuple_counts
relation patron saint
type common name
type church
action count
action filter_multi_types
action find_reverse
entity Magnus of Anagni
relation patron saint
type administrative territorial entity
type church
[[{'concept': 'administrative territorial entity'}, {'concept': 'church'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:patron_saint resource:Magnus_of_Anagni . { ?c rdf:type ?r . VALUES ( ?r ) { ( ontology:administrative_territorial_entity ) ( ontology:church ) } } } } . FILTER ( ?x > ?d ) . { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?x ) WHERE { ?m rdf:type ?q . VALUES ( ?q ) { ( ontology:administrative_territorial_entity ) ( ontology:church ) } } GROUP BY ?f } }
[]
common name administrative territorial entity church
SYSTEM
98
Q133704 Q152457 Q172390 Q516729 Q3893243 Q732865 Q696682 Q320199 Q43689 Q3776432 Q128267 Q328804 Q174044 Q1284098 Q163900 Q31966 Q170547 Q44024 Q676555 Q244380 Q287916 Q539890 Q212850 Q1346958 Q51885 Q234697 Q1284971 Q357093 Q115550 Q8413 Q558148 Q379685 Q42887 Q4210004 Q177903 Q2697247 Q457903 Q8018 Q315312 Q216946 Q33923 Q161775 Q128538 Q316599 Q183240 Q145746 Q298845 Q167477 Q288295 Q297742 Q218921 Q183332 Q48438 Q44281 Q170164 Q43399 Q189776 Q965463 Q196527 Q336731 Q4161703 Q9200 Q174880 Q235863 Q2142772 Q43999 Q1747656 Q1393825 Q359259 Q12871 Q369691 Q44269 Q2456500 Q192816 Q43982 Q179718 Q445357 Q40662 Q1976199 Q534691 Q80513 Q26486 Q158504 Q151967 Q149727 Q11905449 Q4026158 Q164294 Q3561124 Q159862 Q17590 Q200895 Q284323 Q59071 Q1383532 Q44248 Q1269112 Q310633
(c(Q56061)|c(Q16970),P417,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q56061
action find_reverse_tuple_counts
relation P417
type Q502895
type Q16970
action count
action filter_multi_types
action find_reverse
entity Q587596
relation P417
type Q56061
type Q16970
[ANSWER]
[[{'concept': 'Q56061'}, {'concept': 'Q16970'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:P417 resource:Q587596 . { ?c rdf:type ?r . VALUES ( ?r ) { ( ontology:Q56061 ) ( ontology:Q16970 ) } } } } . FILTER ( ?x > ?d ) . { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?x ) WHERE { ?m rdf:type ?q . VALUES ( ?q ) { ( ontology:Q56061 ) ( ontology:Q16970 ) } } GROUP BY ?f } }
Martin of Tours Saint Roch Martin I Sebaldus Pamphilus of Sulmona Vitalis of Milan Arnold von Arnoldsweiler Apollinaris of Ravenna Ambrose Gonçalo de Amarante Joseph John the Evangelist Alexander Nevsky Turibius of Astorga Saint Francis Xavier Mark the Evangelist Anthony the Great Athanasius of Alexandria Francis of Assisi Saint Denis Finbarr of Cork Lazarus of Bethany Vitus Judas Cyriacus Thecla Maria Goretti La Mosca Victor Maurus Saint Spyridon Nicholas of Flüe Constantine the Great Leonard of Noblac Isidore the Laborer Clement I Venantius of Camerino Stephen I of Hungary Catellus of Castellammare Saint Bavo Augustine of Hippo Januarius Charles Borromeo Peter Stephen Luke the Evangelist Saint Maurice Saint Lucy Joseph Saint Florian Anthony of Padua Justina of Padua Margaret the Virgin Saint Eustace Saint Sebastian Saint George Ignatius of Loyola Helena of Constantinople Andrew Zeno of Verona Rumbold of Mechelen Saint Wenceslaus I, Duke of Bohemia Pancras of Rome Dimitry Prilutsky Paul Teresa of Ávila Genevieve Gereon James Saturninus of Cagliari Valerius of Saragossa Saint Emeric of Hungary Simon the Zealot Saint Ursula Saint Nicholas Eulalia of Barcelona Saint Barbara Bartholomew the Apostle Catherine of Alexandria Henry John the Baptist Gaudentius of Novara Paschal Baylon Saint Cecilia Ladislaus I of Hungary Clement of Ohrid Saint Blaise Saint Giles Anastasi de Lleida Possidonio Saint Anna Acisclus Elizabeth of Hungary Lawrence of Rome Agatha of Sicily Eulalia of Mérida Peter de Regalado Rainerius Jerome Saint Ninian Demetrius of Thessaloniki
98
action count
action greater
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type administrative territorial entity
action find_reverse_tuple_counts
relation patron saint
type common name
type church
action count
action filter_multi_types
action find_reverse
entity Magnus of Anagni
relation patron saint
type administrative territorial entity
type church
[[{'concept': 'administrative territorial entity'}, {'concept': 'church'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:patron_saint resource:Magnus_of_Anagni . { ?c rdf:type ?r . VALUES ( ?r ) { ( ontology:administrative_territorial_entity ) ( ontology:church ) } } } } . FILTER ( ?x > ?d ) . { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?x ) WHERE { ?m rdf:type ?q . VALUES ( ?q ) { ( ontology:administrative_territorial_entity ) ( ontology:church ) } } GROUP BY ?f } }
[]