Simple Question (Direct)
Simple Question
Q18418683
P27
Q15617994
USER
Which administrative territory is Jean-Louis Rivière an inhabitant of ?
(Q18418683,P27,c(Q15617994))
action filter_type
action find
entity Q18418683
relation P27
type Q15617994
['Q18418683', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q18418683 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Jean-Louis Rivière
action filter_type
action find
entity Jean-Louis Rivière
relation country of citizenship
type designation for an administrative territorial entity
['Jean-Louis Rivière', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Jean-Louis_Rivière property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q18418683,P27,c(Q15617994))
action filter_type
action find
entity Q18418683
relation P27
type Q15617994
[ANSWER] is Jean-Louis Rivière an inhabitant of
['Q18418683', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q18418683 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
France
France is Jean-Louis Rivière an inhabitant of
France
action filter_type
action find
entity Jean-Louis Rivière
relation country of citizenship
type designation for an administrative territorial entity
['Jean-Louis Rivière', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Jean-Louis_Rivière property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18418683
P20
Q20667921
USER
Where did that person expire ?
(Q142,P20,c(Q20667921))
action filter_type
action find
entity Q18418683
relation P20
type Q20667921
['Q142', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?q WHERE { resource:Q18418683 property:P20 ?q . ?q rdf:type ontology:Q20667921 }
Jean-Louis Rivière
action filter_type
action find
entity Jean-Louis Rivière
relation place of death
type type of french administrative division
['France', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?q WHERE { resource:Jean-Louis_Rivière property:place_of_death ?q . ?q rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q6625
SYSTEM
Agen
Q6625
(Q142,P20,c(Q20667921))
action filter_type
action find
entity Q18418683
relation P20
type Q20667921
That person expired [ANSWER]
['Q142', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?q WHERE { resource:Q18418683 property:P20 ?q . ?q rdf:type ontology:Q20667921 }
Agen
That person expired Agen
Agen
action filter_type
action find
entity Jean-Louis Rivière
relation place of death
type type of french administrative division
['France', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?q WHERE { resource:Jean-Louis_Rivière property:place_of_death ?q . ?q rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6625 Q3098936
P19
Q502895
USER
Does Gaston Cabannes have birthplace at that french administrative division ?
(Q3098936,P19,Q6625)
action is_in
entity Q6625
action find
entity Q3098936
relation P19
['Q3098936', 'P19', 'Q6625']
ASK WHERE { resource:Q3098936 property:P19 resource:Q6625 }
Agen Gaston Cabannes
action is_in
entity Agen
action find
entity Gaston Cabannes
relation place of birth
['Gaston Cabannes', 'place of birth', 'Agen']
ASK WHERE { resource:Gaston_Cabannes property:place_of_birth resource:Agen }
[]
common name
SYSTEM
YES
(Q3098936,P19,Q6625)
action is_in
entity Q6625
action find
entity Q3098936
relation P19
[ANSWER]
['Q3098936', 'P19', 'Q6625']
ASK WHERE { resource:Q3098936 property:P19 resource:Q6625 }
Yes
action is_in
entity Agen
action find
entity Gaston Cabannes
relation place of birth
['Gaston Cabannes', 'place of birth', 'Agen']
ASK WHERE { resource:Gaston_Cabannes property:place_of_birth resource:Agen }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q142 Q180086
P530
Q15617994
USER
Does Galicia have diplomatic relationships with France ?
(Q142,P530,Q180086)
action is_in
entity Q180086
action find
entity Q142
relation P530
['Q142', 'P530', 'Q180086']
ASK WHERE { resource:Q142 property:P530 resource:Q180086 }
France Galicia
action is_in
entity Galicia
action find
entity France
relation diplomatic relation
['France', 'diplomatic relation', 'Galicia']
ASK WHERE { resource:France property:diplomatic_relation resource:Galicia }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q142,P530,Q180086)
action is_in
entity Q180086
action find
entity Q142
relation P530
[ANSWER]
['Q142', 'P530', 'Q180086']
ASK WHERE { resource:Q142 property:P530 resource:Q180086 }
No
action is_in
entity Galicia
action find
entity France
relation diplomatic relation
['France', 'diplomatic relation', 'Galicia']
ASK WHERE { resource:France property:diplomatic_relation resource:Galicia }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q6625 Q1063389
P47
Q20667921
USER
Does Le Passage share the border with Agen ?
(Q6625,P47,Q1063389)
action is_in
entity Q1063389
action find
entity Q6625
relation P47
['Q6625', 'P47', 'Q1063389']
ASK WHERE { resource:Q6625 property:P47 resource:Q1063389 }
Agen Le Passage
action is_in
entity Le Passage
action find
entity Agen
relation shares border with
['Agen', 'shares border with', 'Le Passage']
ASK WHERE { resource:Agen property:shares_border_with resource:Le_Passage }
[]
type of french administrative division
SYSTEM
YES
(Q6625,P47,Q1063389)
action is_in
entity Q1063389
action find
entity Q6625
relation P47
[ANSWER]
['Q6625', 'P47', 'Q1063389']
ASK WHERE { resource:Q6625 property:P47 resource:Q1063389 }
Yes
action is_in
entity Le Passage
action find
entity Agen
relation shares border with
['Agen', 'shares border with', 'Le Passage']
ASK WHERE { resource:Agen property:shares_border_with resource:Le_Passage }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q18418683 Q615142
P19
Q20667921
USER
Is Meyssac the place of birth of Jean-Louis Rivière ?
(Q18418683,P19,Q615142)
action is_in
entity Q615142
action find
entity Q18418683
relation P19
['Q18418683', 'P19', 'Q615142']
ASK WHERE { resource:Q18418683 property:P19 resource:Q615142 }
Jean-Louis Rivière Meyssac
action is_in
entity Meyssac
action find
entity Jean-Louis Rivière
relation place of birth
['Jean-Louis Rivière', 'place of birth', 'Meyssac']
ASK WHERE { resource:Jean-Louis_Rivière property:place_of_birth resource:Meyssac }
[]
type of french administrative division
SYSTEM
YES
(Q18418683,P19,Q615142)
action is_in
entity Q615142
action find
entity Q18418683
relation P19
[ANSWER]
['Q18418683', 'P19', 'Q615142']
ASK WHERE { resource:Q18418683 property:P19 resource:Q615142 }
Yes
action is_in
entity Meyssac
action find
entity Jean-Louis Rivière
relation place of birth
['Jean-Louis Rivière', 'place of birth', 'Meyssac']
ASK WHERE { resource:Jean-Louis_Rivière property:place_of_birth resource:Meyssac }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P37
Q34770 Q5962346 Q15617994
USER
Which administrative territories designates exactly 1 languages or classification schemes as their official language ?
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action equal
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
value 1
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?r ) WHERE { { ?q property:P37 ?l . ?q rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q34770 } UNION { ?q property:P37 ?l . ?l rdf:type ontology:Q5962346 . ?q rdf:type ontology:Q15617994 } } GROUP BY ?q } . FILTER ( ?r = 1 ) }
action equal
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?r ) WHERE { { ?q property:official_language ?l . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:language } UNION { ?q property:official_language ?l . ?l rdf:type ontology:classification_scheme . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?q } . FILTER ( ?r = 1 ) }
[]
language classification scheme designation for an administrative territorial entity
Q38 Q55 Q953
SYSTEM
Italy, Netherlands, Zambia
Q804 Q399 Q800 Q709 Q668 Q414 Q1948 Q783 Q784 Q493428 Q712 Q710 Q717 Q2003 Q258 Q1979 Q792 Q954 Q953 Q958 Q986 Q241 Q242 Q244 Q1974 Q811 Q53381 Q101526 Q924 Q34 Q928 Q39 Q38 Q739 Q733 Q734 Q55 Q1013 Q795587 Q693658 Q145 Q238 Q20 Q1044 Q1042 Q27 Q1049 Q1020 Q843 Q736 Q786 Q1904 Q96 Q1050 Q1989 Q686312 Q1036 Q1037 Q1033 Q1030 Q963 Q298 Q695 Q114 Q117 Q754 Q213 Q1005 Q833 Q1951 Q1009 Q243220 Q683 Q34020 Q686 Q760 Q77 Q774 Q1014 Q678 Q233 Q672 Q1952 Q2023
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action equal
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
value 1
[ANSWERS] designate exactly 1 languages or classification schemes as their official language
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?r ) WHERE { { ?q property:P37 ?l . ?q rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q34770 } UNION { ?q property:P37 ?l . ?l rdf:type ontology:Q5962346 . ?q rdf:type ontology:Q15617994 } } GROUP BY ?q } . FILTER ( ?r = 1 ) }
Panama Armenia Costa Rica Marshall Islands India Argentina Manitoba Honduras Dominica Mistretta Fiji Kiribati Venezuela Newfoundland and Labrador South Africa Prince Edward Island El Salvador Zimbabwe Zambia South Sudan Eritrea Cuba Belize Barbados British Columbia Nicaragua Tolmezzo Rovetta Tanzania Sweden Philippines Switzerland Italy Colombia Paraguay Guyana Netherlands Lesotho Escuintla Izabal Department United Kingdom San Marino Norway Sierra Leone Seychelles Ireland Sudan Malawi Pakistan Ecuador Dominican Republic Ontario Mexico Swaziland Saskatchewan Duchy of Amalfi Uganda Rwanda Nigeria Namibia Botswana Chile Palau Kenya Ghana Trinidad and Tobago Czech Republic Gambia Malaysia Alberta Cameroon Rocca di Cave Samoa Niue Vanuatu Saint Lucia Uruguay Guatemala Liberia Tonga Malta Tuvalu Nova Scotia Nunavut
Italy, Netherlands and Zambia designate exactly 1 languages or classification schemes as their official language
Italy Netherlands Zambia
action equal
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?r ) WHERE { { ?q property:official_language ?l . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:language } UNION { ?q property:official_language ?l . ?l rdf:type ontology:classification_scheme . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?q } . FILTER ( ?r = 1 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q836967
P530
Q1048835
USER
Do Los Villares de Soria have ambassadorial relations with those administrative territories ?
(Q836967,P530,Q38) (Q836967,P530,Q55) (Q836967,P530,Q953)
action is_in
entity prev_answer
action find
entity Q836967
relation P530
['Q836967', 'P530', 'Q38'] ['Q836967', 'P530', 'Q55'] ['Q836967', 'P530', 'Q953']
ASK WHERE { resource:Q836967 property:P530 ?o . VALUES ( ?o ) { ( resource:Q804 ) ( resource:Q399 ) ( resource:Q800 ) } }
Los Villares de Soria
action is_in
entity prev_answer
action find
entity Los Villares de Soria
relation diplomatic relation
['Los Villares de Soria', 'diplomatic relation', 'Italy'] ['Los Villares de Soria', 'diplomatic relation', 'Netherlands'] ['Los Villares de Soria', 'diplomatic relation', 'Zambia']
ASK WHERE { resource:Los_Villares_de_Soria property:diplomatic_relation ?o . VALUES ( ?o ) { ( resource:Panama ) ( resource:Armenia ) ( resource:Costa_Rica ) } }
[]
political territorial entity
SYSTEM
NO
(Q836967,P530,Q38) (Q836967,P530,Q55) (Q836967,P530,Q953)
action is_in
entity prev_answer
action find
entity Q836967
relation P530
[ANSWER]
['Q836967', 'P530', 'Q38'] ['Q836967', 'P530', 'Q55'] ['Q836967', 'P530', 'Q953']
ASK WHERE { resource:Q836967 property:P530 ?o . VALUES ( ?o ) { ( resource:Q804 ) ( resource:Q399 ) ( resource:Q800 ) } }
No
action is_in
entity prev_answer
action find
entity Los Villares de Soria
relation diplomatic relation
['Los Villares de Soria', 'diplomatic relation', 'Italy'] ['Los Villares de Soria', 'diplomatic relation', 'Netherlands'] ['Los Villares de Soria', 'diplomatic relation', 'Zambia']
ASK WHERE { resource:Los_Villares_de_Soria property:diplomatic_relation ?o . VALUES ( ?o ) { ( resource:Panama ) ( resource:Armenia ) ( resource:Costa_Rica ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q38 Q21
P840
Q838948
USER
How many works of art have their setting located at Italy and England ?
(c(Q838948),P840,Q38) (c(Q838948),P840,Q21)
action count
action intersection
action filter_type
action find_reverse
entity Q38
relation P840
type Q838948
action filter_type
action find_reverse
entity Q21
relation P840
type Q838948
[{'concept': 'Q838948'}, 'P840', 'Q38'] [{'concept': 'Q838948'}, 'P840', 'Q21']
SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { ?f property:P840 resource:Q21 . ?f rdf:type ontology:Q838948 . ?f property:P840 resource:Q38 . ?f rdf:type ontology:Q838948 }
Italy England
action count
action intersection
action filter_type
action find_reverse
entity Italy
relation narrative location
type work of art
action filter_type
action find_reverse
entity England
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Italy'] [{'concept': 'work of art'}, 'narrative location', 'England']
SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { ?f property:narrative_location resource:England . ?f rdf:type ontology:work_of_art . ?f property:narrative_location resource:Italy . ?f rdf:type ontology:work_of_art }
[]
work of art
SYSTEM
6
Q7742387 Q1774070 Q7722011 Q203574 Q6843005 Q1051032
(c(Q838948),P840,Q38) (c(Q838948),P840,Q21)
action count
action intersection
action filter_type
action find_reverse
entity Q38
relation P840
type Q838948
action filter_type
action find_reverse
entity Q21
relation P840
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P840', 'Q38'] [{'concept': 'Q838948'}, 'P840', 'Q21']
SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { ?f property:P840 resource:Q21 . ?f rdf:type ontology:Q838948 . ?f property:P840 resource:Q38 . ?f rdf:type ontology:Q838948 }
The Intruder The Golden Bowl The Challenge A Room with a View Midshipman Easy The Italian Job
6
action count
action intersection
action filter_type
action find_reverse
entity Italy
relation narrative location
type work of art
action filter_type
action find_reverse
entity England
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Italy'] [{'concept': 'work of art'}, 'narrative location', 'England']
SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { ?f property:narrative_location resource:England . ?f rdf:type ontology:work_of_art . ?f property:narrative_location resource:Italy . ?f rdf:type ontology:work_of_art }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q20571
P840
Q15617994 Q15416 Q2342494
USER
How many administrative territories are less number of television programs and collectables set in than Spoleto ?
(c(Q15416)|c(Q2342494),P840,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q20571
relation P840
type Q15416
type Q2342494
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?k ) WHERE { { ?j property:P840 ?e . ?e rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15416 } UNION { ?j property:P840 ?e . ?e rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q2342494 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:P840 resource:Q20571 . { ?z rdf:type ?m . VALUES ( ?m ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?k < ?n ) }
Spoleto
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Spoleto
relation narrative location
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?k ) WHERE { { ?j property:narrative_location ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:television_program } UNION { ?j property:narrative_location ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:collectable } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:narrative_location resource:Spoleto . { ?z rdf:type ?m . VALUES ( ?m ) { ( ontology:television_program ) ( ontology:collectable ) } } } } . FILTER ( ?k < ?n ) }
[]
designation for an administrative territorial entity television program collectable
SYSTEM
78
Q377277 Q804 Q278221 Q186115 Q262 Q189 Q47428 Q18021 Q842 Q36678 Q710 Q837 Q1460 Q403 Q790 Q419 Q165040 Q232782 Q244 Q12515 Q32 Q31 Q37 Q34 Q928 Q851 Q769680 Q12798 Q236 Q12538 Q232 Q233 Q1093 Q1860611 Q913434 Q127043 Q184 Q1029 Q1028 Q1458 Q91217 Q1452 Q225 Q12700 Q2336399 Q3207 Q1033 Q1030 Q962 Q159689 Q114 Q41158 Q212 Q517107 Q217 Q912 Q2107 Q1007 Q833 Q14859 Q2742 Q836 Q77 Q774 Q948 Q817 Q810 Q1019 Q1014 Q1016 Q1273 Q1011 Q28 Q12620 Q800 Q12545 Q53216 Q6247
(c(Q15416)|c(Q2342494),P840,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q20571
relation P840
type Q15416
type Q2342494
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?k ) WHERE { { ?j property:P840 ?e . ?e rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15416 } UNION { ?j property:P840 ?e . ?e rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q2342494 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:P840 resource:Q20571 . { ?z rdf:type ?m . VALUES ( ?m ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?k < ?n ) }
Glückstadt Panama Berchtesgaden Montmartre Algeria Iceland Valdobbiadene Biella Oman West Bank Kiribati Nepal Sicily Serbia Haiti Peru Duchy of Parma Portofino Barbados Gard Luxembourg Belgium Lithuania Sweden Philippines Saudi Arabia Bornholm Vendée Montenegro Haute-Garonne Kazakhstan Malta Limburg Viby Les Halles Garmisch-Partenkirchen Belarus Mozambique Morocco Calabria Montepulciano Basilicata Bosnia and Herzegovina Hautes-Pyrénées Baluchistan Aude Nigeria Namibia Benin Bomarzo Kenya Cortina d'Ampezzo Ukraine Rudolstadt Republic of Moldova Mali Wuppertal Guinea-Bissau Malaysia Ansbach Münster Myanmar Uruguay Guatemala Tunisia Kuwait Jordan Madagascar Liberia Libya Tuscany Cape Verde Hungary Mayenne Costa Rica Hérault Aquileia Mantua
78
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Spoleto
relation narrative location
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?k ) WHERE { { ?j property:narrative_location ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:television_program } UNION { ?j property:narrative_location ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:collectable } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:narrative_location resource:Spoleto . { ?z rdf:type ?m . VALUES ( ?m ) { ( ontology:television_program ) ( ontology:collectable ) } } } } . FILTER ( ?k < ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q683
P840
Q15617994 Q15416 Q2342494
USER
And also tell me about Samoa?
(c(Q15416)|c(Q2342494),P840,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q683
relation P840
type Q15416
type Q2342494
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:P840 resource:Q683 . { VALUES ( ?a ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } . ?j rdf:type ?a } } } . FILTER ( ?l < ?p ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) ?r WHERE { { ?r rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15416 . ?i property:P840 ?r } UNION { ?i property:P840 ?r . ?r rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q2342494 } } GROUP BY ?r } }
Samoa
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Samoa
relation narrative location
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:narrative_location resource:Samoa . { VALUES ( ?a ) { ( ontology:collectable ) ( ontology:television_program ) } . ?j rdf:type ?a } } } . FILTER ( ?l < ?p ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) ?r WHERE { { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:television_program . ?i property:narrative_location ?r } UNION { ?i property:narrative_location ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:collectable } } GROUP BY ?r } }
[]
designation for an administrative territorial entity television program collectable
SYSTEM
78
Q377277 Q804 Q278221 Q186115 Q262 Q189 Q47428 Q18021 Q842 Q36678 Q710 Q837 Q1460 Q403 Q790 Q419 Q165040 Q232782 Q244 Q12515 Q32 Q31 Q37 Q34 Q928 Q851 Q769680 Q12798 Q236 Q12538 Q232 Q233 Q1093 Q1860611 Q913434 Q127043 Q184 Q1029 Q1028 Q1458 Q91217 Q1452 Q225 Q12700 Q2336399 Q3207 Q1033 Q1030 Q962 Q159689 Q114 Q41158 Q212 Q517107 Q217 Q912 Q2107 Q1007 Q833 Q14859 Q2742 Q836 Q77 Q774 Q948 Q817 Q810 Q1019 Q1014 Q1016 Q1273 Q1011 Q28 Q12620 Q800 Q12545 Q53216 Q6247
(c(Q15416)|c(Q2342494),P840,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q683
relation P840
type Q15416
type Q2342494
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:P840 resource:Q683 . { VALUES ( ?a ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } . ?j rdf:type ?a } } } . FILTER ( ?l < ?p ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) ?r WHERE { { ?r rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15416 . ?i property:P840 ?r } UNION { ?i property:P840 ?r . ?r rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q2342494 } } GROUP BY ?r } }
Glückstadt Panama Berchtesgaden Montmartre Algeria Iceland Valdobbiadene Biella Oman West Bank Kiribati Nepal Sicily Serbia Haiti Peru Duchy of Parma Portofino Barbados Gard Luxembourg Belgium Lithuania Sweden Philippines Saudi Arabia Bornholm Vendée Montenegro Haute-Garonne Kazakhstan Malta Limburg Viby Les Halles Garmisch-Partenkirchen Belarus Mozambique Morocco Calabria Montepulciano Basilicata Bosnia and Herzegovina Hautes-Pyrénées Baluchistan Aude Nigeria Namibia Benin Bomarzo Kenya Cortina d'Ampezzo Ukraine Rudolstadt Republic of Moldova Mali Wuppertal Guinea-Bissau Malaysia Ansbach Münster Myanmar Uruguay Guatemala Tunisia Kuwait Jordan Madagascar Liberia Libya Tuscany Cape Verde Hungary Mayenne Costa Rica Hérault Aquileia Mantua
78
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Samoa
relation narrative location
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:narrative_location resource:Samoa . { VALUES ( ?a ) { ( ontology:collectable ) ( ontology:television_program ) } . ?j rdf:type ?a } } } . FILTER ( ?l < ?p ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) ?r WHERE { { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:television_program . ?i property:narrative_location ?r } UNION { ?i property:narrative_location ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:collectable } } GROUP BY ?r } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q564773 Q142
P47 P530
Q1048835
USER
Which political territories have diplomatic relations with France or have a shared border with Alhendín ?
OR((Q142,P530,c(Q1048835)), (Q564773,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q142
relation P530
action find
entity Q564773
relation P47
type Q1048835
{'OR': [['Q142', 'P530', {'concept': 'Q1048835'}], ['Q564773', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q142 property:P530 ?o } UNION { resource:Q564773 property:P47 ?o } } . ?o rdf:type ontology:Q1048835 }
Alhendín France
action filter_type
action union
action find
entity France
relation diplomatic relation
action find
entity Alhendín
relation shares border with
type political territorial entity
{'OR': [['France', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Alhendín', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:France property:diplomatic_relation ?o } UNION { resource:Alhendín property:shares_border_with ?o } } . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1631872 Q605335 Q605381 Q40 Q574340 Q559286 Q183 Q558134 Q550985 Q605397
SYSTEM
Some of them are Jayena, Ogíjares, Otura, Austria, Las Gabias, Escúzar, Germany, Churriana de la Vega, Armilla, El Padul
Q558134 Q574340 Q605335 Q574347 Q40 Q183 Q1631872 Q583023 Q408 Q1636706 Q605397 Q550985 Q605381 Q559286
OR((Q142,P530,c(Q1048835)), (Q564773,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q142
relation P530
action find
entity Q564773
relation P47
type Q1048835
[ANSWERS] have diplomatic relations with France or have a shared border with Alhendín
{'OR': [['Q142', 'P530', {'concept': 'Q1048835'}], ['Q564773', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q142 property:P530 ?o } UNION { resource:Q564773 property:P47 ?o } } . ?o rdf:type ontology:Q1048835 }
Churriana de la Vega Las Gabias Ogíjares Gójar Austria Germany Jayena La Malahá Australia Agrón El Padul Armilla Otura Escúzar
Jayena, Ogíjares, Otura, Austria, Las Gabias, Escúzar, Germany, Churriana de la Vega, Armilla and El Padul have diplomatic relations with France or have a shared border with Alhendín
Jayena Ogíjares Otura Austria Las Gabias Escúzar Germany Churriana de la Vega Armilla El Padul
action filter_type
action union
action find
entity France
relation diplomatic relation
action find
entity Alhendín
relation shares border with
type political territorial entity
{'OR': [['France', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Alhendín', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:France property:diplomatic_relation ?o } UNION { resource:Alhendín property:shares_border_with ?o } } . ?o rdf:type ontology:political_territorial_entity }
[]