Simple Question (Direct)
Simple Question
Q18324112
P27
Q15617994
USER
Which administrative territory is the native country of Ferdinand-Emile-Casimir Coudray ?
(Q18324112,P27,c(Q15617994))
action filter_type
action find
entity Q18324112
relation P27
type Q15617994
['Q18324112', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q18324112 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Ferdinand-Emile-Casimir Coudray
action filter_type
action find
entity Ferdinand-Emile-Casimir Coudray
relation country of citizenship
type designation for an administrative territorial entity
['Ferdinand-Emile-Casimir Coudray', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Ferdinand-Emile-Casimir_Coudray property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q18324112,P27,c(Q15617994))
action filter_type
action find
entity Q18324112
relation P27
type Q15617994
[ANSWER] is the native country of Ferdinand-Emile-Casimir Coudray
['Q18324112', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q18324112 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
France
France is the native country of Ferdinand-Emile-Casimir Coudray
France
action filter_type
action find
entity Ferdinand-Emile-Casimir Coudray
relation country of citizenship
type designation for an administrative territorial entity
['Ferdinand-Emile-Casimir Coudray', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Ferdinand-Emile-Casimir_Coudray property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P740
Q2088357
USER
Which musical ensembles were formed at that administrative territory ?
(c(Q2088357),P740,Q142)
action filter_type
action find_reverse
entity Q142
relation P740
type Q2088357
[{'concept': 'Q2088357'}, 'P740', 'Q142']
SELECT DISTINCT ?c WHERE { ?c property:P740 resource:Q142 . ?c rdf:type ontology:Q2088357 }
France
action filter_type
action find_reverse
entity France
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'France']
SELECT DISTINCT ?c WHERE { ?c property:location_of_formation resource:France . ?c rdf:type ontology:musical_ensemble }
[]
musical ensemble
Q606650 Q2482652 Q22951192
SYSTEM
Empyr, Les Discrets, Kids United
Q2482652 Q3232823 Q14455902 Q2013381 Q16930080 Q948804 Q2113827 Q3396185 Q3562922 Q3196402 Q646039 Q845508 Q3238355 Q15052981 Q6533353 Q5205878 Q2869575 Q22951192 Q2982785 Q3498740 Q15198337 Q5934794 Q13945471 Q606650 Q2813204 Q3001954
(c(Q2088357),P740,Q142)
action filter_type
action find_reverse
entity Q142
relation P740
type Q2088357
[ANSWERS] were formed at that administrative territory
[{'concept': 'Q2088357'}, 'P740', 'Q142']
SELECT DISTINCT ?c WHERE { ?c property:P740 resource:Q142 . ?c rdf:type ontology:Q2088357 }
Les Discrets Les Frères Misère Flavel & Neto Ocean Drive The Other Colors One-T Prototypes Poney Express Volo Kidtonik Era Les Hurlements d'Léo Life's Decay Y.A.S. Lethian Dreams DOP Atomic Garden Kids United Collectif Paris-Africa StereoHeroes Détroit Monade The Mess Empyr 1995 Crack ov Dawn
Empyr, Les Discrets and Kids United were formed at that administrative territory
Empyr Les Discrets Kids United
action filter_type
action find_reverse
entity France
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'France']
SELECT DISTINCT ?c WHERE { ?c property:location_of_formation resource:France . ?c rdf:type ontology:musical_ensemble }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19353078 Q142
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relationships with France or are Nassaustraat present in ?
OR((Q142,P530,c(Q15617994)), (Q19353078,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q142
relation P530
action find
entity Q19353078
relation P17
type Q15617994
{'OR': [['Q142', 'P530', {'concept': 'Q15617994'}], ['Q19353078', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q142 property:P530 ?q } UNION { resource:Q19353078 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
Nassaustraat France
action filter_type
action union
action find
entity France
relation diplomatic relation
action find
entity Nassaustraat
relation country
type designation for an administrative territorial entity
{'OR': [['France', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Nassaustraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:France property:diplomatic_relation ?q } UNION { resource:Nassaustraat property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55 Q38 Q32 Q30 Q27 Q1011 Q399 Q145 Q403 Q228
SYSTEM
Some of them are Netherlands, Italy, Luxembourg, United States of America, Ireland, Cape Verde, Armenia, United Kingdom, Serbia, Andorra
Q711 Q159 Q222 Q801 Q145 Q155 Q1011 Q228 Q32 Q17 Q30 Q399 Q27 Q403 Q55 Q38
OR((Q142,P530,c(Q15617994)), (Q19353078,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q142
relation P530
action find
entity Q19353078
relation P17
type Q15617994
[ANSWERS] have diplomatic relationships with France or are Nassaustraat present in
{'OR': [['Q142', 'P530', {'concept': 'Q15617994'}], ['Q19353078', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q142 property:P530 ?q } UNION { resource:Q19353078 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
Mongolia Russia Albania Israel United Kingdom Brazil Cape Verde Andorra Luxembourg Japan United States of America Armenia Ireland Serbia Netherlands Italy
Netherlands, Italy, Luxembourg, United States of America, Ireland, Cape Verde, Armenia, United Kingdom, Serbia and Andorra have diplomatic relationships with France or are Nassaustraat present in
Netherlands Italy Luxembourg United States of America Ireland Cape Verde Armenia United Kingdom Serbia Andorra
action filter_type
action union
action find
entity France
relation diplomatic relation
action find
entity Nassaustraat
relation country
type designation for an administrative territorial entity
{'OR': [['France', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Nassaustraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:France property:diplomatic_relation ?q } UNION { resource:Nassaustraat property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q55 Q38 Q32 Q30 Q27 Q1011 Q399 Q145 Q403 Q228
P17
Q15617994
USER
Which administrative territories are those ones a part of ?
(Q55,P17,c(Q15617994)) (Q38,P17,c(Q15617994)) (Q32,P17,c(Q15617994)) (Q30,P17,c(Q15617994)) (Q27,P17,c(Q15617994)) (Q1011,P17,c(Q15617994)) (Q399,P17,c(Q15617994)) (Q145,P17,c(Q15617994)) (Q403,P17,c(Q15617994)) (Q228,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q55', 'P17', {'concept': 'Q15617994'}] ['Q38', 'P17', {'concept': 'Q15617994'}] ['Q32', 'P17', {'concept': 'Q15617994'}] ['Q30', 'P17', {'concept': 'Q15617994'}] ['Q27', 'P17', {'concept': 'Q15617994'}] ['Q1011', 'P17', {'concept': 'Q15617994'}] ['Q399', 'P17', {'concept': 'Q15617994'}] ['Q145', 'P17', {'concept': 'Q15617994'}] ['Q403', 'P17', {'concept': 'Q15617994'}] ['Q228', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { ?x property:P17 ?j . ?j rdf:type ontology:Q15617994 . VALUES ( ?x ) { ( resource:Q711 ) ( resource:Q159 ) ( resource:Q222 ) } }
Netherlands Italy Luxembourg United States of America Ireland Cape Verde Armenia United Kingdom Serbia Andorra
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Netherlands', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Italy', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Luxembourg', 'country', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Ireland', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Cape Verde', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Armenia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['United Kingdom', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Serbia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Andorra', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?x property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?x ) { ( resource:Mongolia ) ( resource:Russia ) ( resource:Albania ) } }
[]
designation for an administrative territorial entity
Q38 Q30 Q30
SYSTEM
Italy for 1st, United States of America for 2nd, 3rd
Q29999 Q55 Q38 Q32 Q30 Q30 Q27 Q1011 Q399 Q145 Q403 Q228
(Q55,P17,c(Q15617994)) (Q38,P17,c(Q15617994)) (Q32,P17,c(Q15617994)) (Q30,P17,c(Q15617994)) (Q27,P17,c(Q15617994)) (Q1011,P17,c(Q15617994)) (Q399,P17,c(Q15617994)) (Q145,P17,c(Q15617994)) (Q403,P17,c(Q15617994)) (Q228,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
[ANSWERS]
['Q55', 'P17', {'concept': 'Q15617994'}] ['Q38', 'P17', {'concept': 'Q15617994'}] ['Q32', 'P17', {'concept': 'Q15617994'}] ['Q30', 'P17', {'concept': 'Q15617994'}] ['Q27', 'P17', {'concept': 'Q15617994'}] ['Q1011', 'P17', {'concept': 'Q15617994'}] ['Q399', 'P17', {'concept': 'Q15617994'}] ['Q145', 'P17', {'concept': 'Q15617994'}] ['Q403', 'P17', {'concept': 'Q15617994'}] ['Q228', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { ?x property:P17 ?j . ?j rdf:type ontology:Q15617994 . VALUES ( ?x ) { ( resource:Q711 ) ( resource:Q159 ) ( resource:Q222 ) } }
Kingdom of the Netherlands Netherlands Italy Luxembourg United States of America United States of America Ireland Cape Verde Armenia United Kingdom Serbia Andorra
Italy, United States of America and United States of America are those ones a part of
Italy United States of America United States of America
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Netherlands', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Italy', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Luxembourg', 'country', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Ireland', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Cape Verde', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Armenia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['United Kingdom', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Serbia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Andorra', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?x property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?x ) { ( resource:Mongolia ) ( resource:Russia ) ( resource:Albania ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P36
Q56061
USER
Which administrative territory is called the capital of Italy ?
(Q38,P36,c(Q56061)) (Q30,P36,c(Q56061)) (Q30,P36,c(Q56061))
action filter_type
action find
entity Q38
relation P36
type Q56061
['Q38', 'P36', {'concept': 'Q56061'}] ['Q30', 'P36', {'concept': 'Q56061'}] ['Q30', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q38 property:P36 ?g . ?g rdf:type ontology:Q56061 }
Italy
action filter_type
action find
entity Italy
relation capital
type administrative territorial entity
['Italy', 'capital', {'concept': 'administrative territorial entity'}] ['United States of America', 'capital', {'concept': 'administrative territorial entity'}] ['United States of America', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Italy property:capital ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q38,P36,c(Q56061)) (Q30,P36,c(Q56061)) (Q30,P36,c(Q56061))
action filter_type
action find
entity Q38
relation P36
type Q56061
It [ANSWER] is called the capital of Italy
['Q38', 'P36', {'concept': 'Q56061'}] ['Q30', 'P36', {'concept': 'Q56061'}] ['Q30', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q38 property:P36 ?g . ?g rdf:type ontology:Q56061 }
Rome
It Rome is called the capital of Italy
Rome
action filter_type
action find
entity Italy
relation capital
type administrative territorial entity
['Italy', 'capital', {'concept': 'administrative territorial entity'}] ['United States of America', 'capital', {'concept': 'administrative territorial entity'}] ['United States of America', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Italy property:capital ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q220 Q5197227 Q38
P1376
Q15617994
USER
Is that administrative territory the capital of Cwmavon, Torfaen and Italy ?
(Q220,P1376,Q5197227) (Q220,P1376,Q38)
action is_in
entity Q220
action intersection
action find_reverse
entity Q5197227
relation P1376
action find_reverse
entity Q38
relation P1376
['Q220', 'P1376', 'Q5197227'] ['Q220', 'P1376', 'Q38']
ASK WHERE { resource:Q220 property:P1376 resource:Q5197227 . resource:Q220 property:P1376 resource:Q38 }
Rome Cwmavon, Torfaen Italy
action is_in
entity Rome
action intersection
action find_reverse
entity Cwmavon, Torfaen
relation capital of
action find_reverse
entity Italy
relation capital of
['Rome', 'capital of', 'Cwmavon, Torfaen'] ['Rome', 'capital of', 'Italy']
ASK WHERE { resource:Rome property:capital_of resource:Cwmavon,_Torfaen . resource:Rome property:capital_of resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q220,P1376,Q5197227) (Q220,P1376,Q38)
action is_in
entity Q220
action intersection
action find_reverse
entity Q5197227
relation P1376
action find_reverse
entity Q38
relation P1376
[ANSWER]
['Q220', 'P1376', 'Q5197227'] ['Q220', 'P1376', 'Q38']
ASK WHERE { resource:Q220 property:P1376 resource:Q5197227 . resource:Q220 property:P1376 resource:Q38 }
NO and YES respectively
action is_in
entity Rome
action intersection
action find_reverse
entity Cwmavon, Torfaen
relation capital of
action find_reverse
entity Italy
relation capital of
['Rome', 'capital of', 'Cwmavon, Torfaen'] ['Rome', 'capital of', 'Italy']
ASK WHERE { resource:Rome property:capital_of resource:Cwmavon,_Torfaen . resource:Rome property:capital_of resource:Italy }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q33
P122
Q4164871 Q22676587 Q15617994
USER
How many administrative territories have approximately the same number of positions or monarchic systems as the form of government as Finland ?
(c(Q15617994),P122,c(Q4164871)|c(Q22676587))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action count
action filter_multi_types
action find
entity Q33
relation P122
type Q4164871
type Q22676587
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?h ) WHERE { { ?o property:P122 ?v . ?o rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q4164871 } UNION { ?o rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q22676587 . ?o property:P122 ?v } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { resource:Q33 property:P122 ?t . { { ?t rdf:type ontology:Q4164871 } UNION { ?t rdf:type ontology:Q22676587 } } } } . FILTER ( ?h = ?r ) }
Finland
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action count
action filter_multi_types
action find
entity Finland
relation basic form of government
type position
type monarchic system
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?h ) WHERE { { ?o property:basic_form_of_government ?v . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:position } UNION { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:monarchic_system . ?o property:basic_form_of_government ?v } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { resource:Finland property:basic_form_of_government ?t . { { ?t rdf:type ontology:position } UNION { ?t rdf:type ontology:monarchic_system } } } } . FILTER ( ?h = ?r ) }
[]
position monarchic system designation for an administrative territorial entity
SYSTEM
92
Q702 Q804 Q154547 Q801 Q805 Q419 Q668 Q414 Q142 Q165116 Q145 Q265 Q1130767 Q711 Q717 Q837 Q208500 Q541991 Q399 Q258 Q45 Q159 Q43 Q155 Q796 Q794 Q889 Q884 Q958 Q689837 Q315667 Q158290 Q153136 Q33 Q32 Q31 Q30 Q37 Q34 Q1133252 Q39 Q38 Q423 Q953 Q29999 Q153091 Q280312 Q1130957 Q236 Q230 Q232 Q238 Q20 Q1045 Q27 Q28 Q29 Q189 Q843 Q184 Q876826 Q347 Q3462133 Q227 Q225 Q224 Q815731 Q96 Q228 Q1989 Q902 Q725731 Q1033 Q115 Q754 Q212 Q213 Q215 Q1483510 Q917 Q970 Q760 Q574 Q694594 Q1132344 Q77 Q199688 Q948 Q811 Q1011 Q1013 Q1049
(c(Q15617994),P122,c(Q4164871)|c(Q22676587))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action count
action filter_multi_types
action find
entity Q33
relation P122
type Q4164871
type Q22676587
[ANSWER]
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?h ) WHERE { { ?o property:P122 ?v . ?o rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q4164871 } UNION { ?o rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q22676587 . ?o property:P122 ?v } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { resource:Q33 property:P122 ?t . { { ?t rdf:type ontology:Q4164871 } UNION { ?t rdf:type ontology:Q22676587 } } } } . FILTER ( ?h = ?r ) }
Federated States of Micronesia Panama duchy Israel Yemen Peru India Argentina France grand duchy United Kingdom Uzbekistan Bear Creek Village Mongolia Venezuela Nepal principality Hummelfeld Armenia South Africa Portugal Russia Turkey Brazil Iraq Iran Afghanistan South Korea South Sudan Spanish Sahara Saxe-Weimar Duchy of Lucca Habsburg Empire Finland Luxembourg Belgium United States of America Lithuania Sweden Conyngham Switzerland Italy North Korea Zambia Kingdom of the Netherlands Duchy of Prussia Principality of Lüneburg Courtdale Montenegro Georgia Kazakhstan San Marino Norway Somalia Ireland Hungary Spain Iceland Pakistan Belarus Ellwangen Abbey Liechtenstein Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Principality of Bulgaria Mexico Andorra Saskatchewan Bangladesh Ashley, Pennsylvania Nigeria Ethiopia Trinidad and Tobago Ukraine Czech Republic Slovenia Principality of Wales Bhutan Comoros Saint Lucia East Timor Bremen-Verden Avoca Uruguay Almohad Tunisia Nicaragua Cape Verde Lesotho Sudan
92
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action count
action filter_multi_types
action find
entity Finland
relation basic form of government
type position
type monarchic system
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?h ) WHERE { { ?o property:basic_form_of_government ?v . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:position } UNION { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:monarchic_system . ?o property:basic_form_of_government ?v } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { resource:Finland property:basic_form_of_government ?t . { { ?t rdf:type ontology:position } UNION { ?t rdf:type ontology:monarchic_system } } } } . FILTER ( ?h = ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q154547
P122
Q4164871 Q22676587 Q15617994
USER
And how about duchy?
(c(Q15617994),P122,c(Q4164871)|c(Q22676587))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action count
action filter_multi_types
action find
entity Q154547
relation P122
type Q4164871
type Q22676587
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { { VALUES ( ?y ) { ( ontology:Q4164871 ) ( ontology:Q22676587 ) } . ?z rdf:type ?y } . resource:Q154547 property:P122 ?z } } . FILTER ( ?b = ?r ) . { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?b ) WHERE { { ?w property:P122 ?e . ?w rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q4164871 } UNION { ?w property:P122 ?e . ?w rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q22676587 } } GROUP BY ?w } }
duchy
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action count
action filter_multi_types
action find
entity duchy
relation basic form of government
type position
type monarchic system
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { { VALUES ( ?y ) { ( ontology:position ) ( ontology:monarchic_system ) } . ?z rdf:type ?y } . resource:duchy property:basic_form_of_government ?z } } . FILTER ( ?b = ?r ) . { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?b ) WHERE { { ?w property:basic_form_of_government ?e . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:position } UNION { ?w property:basic_form_of_government ?e . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:monarchic_system } } GROUP BY ?w } }
[]
position monarchic system designation for an administrative territorial entity
SYSTEM
92
Q702 Q804 Q154547 Q801 Q805 Q419 Q668 Q414 Q142 Q165116 Q145 Q265 Q1130767 Q711 Q717 Q837 Q208500 Q541991 Q399 Q258 Q45 Q159 Q43 Q155 Q796 Q794 Q889 Q884 Q958 Q689837 Q315667 Q158290 Q153136 Q33 Q32 Q31 Q30 Q37 Q34 Q1133252 Q39 Q38 Q423 Q953 Q29999 Q153091 Q280312 Q1130957 Q236 Q230 Q232 Q238 Q20 Q1045 Q27 Q28 Q29 Q189 Q843 Q184 Q876826 Q347 Q3462133 Q227 Q225 Q224 Q815731 Q96 Q228 Q1989 Q902 Q725731 Q1033 Q115 Q754 Q212 Q213 Q215 Q1483510 Q917 Q970 Q760 Q574 Q694594 Q1132344 Q77 Q199688 Q948 Q811 Q1011 Q1013 Q1049
(c(Q15617994),P122,c(Q4164871)|c(Q22676587))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action count
action filter_multi_types
action find
entity Q154547
relation P122
type Q4164871
type Q22676587
[ANSWER]
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { { VALUES ( ?y ) { ( ontology:Q4164871 ) ( ontology:Q22676587 ) } . ?z rdf:type ?y } . resource:Q154547 property:P122 ?z } } . FILTER ( ?b = ?r ) . { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?b ) WHERE { { ?w property:P122 ?e . ?w rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q4164871 } UNION { ?w property:P122 ?e . ?w rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q22676587 } } GROUP BY ?w } }
Federated States of Micronesia Panama duchy Israel Yemen Peru India Argentina France grand duchy United Kingdom Uzbekistan Bear Creek Village Mongolia Venezuela Nepal principality Hummelfeld Armenia South Africa Portugal Russia Turkey Brazil Iraq Iran Afghanistan South Korea South Sudan Spanish Sahara Saxe-Weimar Duchy of Lucca Habsburg Empire Finland Luxembourg Belgium United States of America Lithuania Sweden Conyngham Switzerland Italy North Korea Zambia Kingdom of the Netherlands Duchy of Prussia Principality of Lüneburg Courtdale Montenegro Georgia Kazakhstan San Marino Norway Somalia Ireland Hungary Spain Iceland Pakistan Belarus Ellwangen Abbey Liechtenstein Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Principality of Bulgaria Mexico Andorra Saskatchewan Bangladesh Ashley, Pennsylvania Nigeria Ethiopia Trinidad and Tobago Ukraine Czech Republic Slovenia Principality of Wales Bhutan Comoros Saint Lucia East Timor Bremen-Verden Avoca Uruguay Almohad Tunisia Nicaragua Cape Verde Lesotho Sudan
92
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action count
action filter_multi_types
action find
entity duchy
relation basic form of government
type position
type monarchic system
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { { VALUES ( ?y ) { ( ontology:position ) ( ontology:monarchic_system ) } . ?z rdf:type ?y } . resource:duchy property:basic_form_of_government ?z } } . FILTER ( ?b = ?r ) . { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?b ) WHERE { { ?w property:basic_form_of_government ?e . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:position } UNION { ?w property:basic_form_of_government ?e . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:monarchic_system } } GROUP BY ?w } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q41614 Q154547
P122
Q7275
USER
Which states have duchy or constitutional monarchy as government ?
OR((c(Q7275),P122,Q154547), (c(Q7275),P122,Q41614))
action filter_type
action union
action find_reverse
entity Q154547
relation P122
action find_reverse
entity Q41614
relation P122
type Q7275
{'OR': [[{'concept': 'Q7275'}, 'P122', 'Q154547'], [{'concept': 'Q7275'}, 'P122', 'Q41614']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q7275 . { ?w property:P122 ?f . VALUES ( ?f ) { ( resource:Q154547 ) ( resource:Q41614 ) } } }
constitutional monarchy duchy
action filter_type
action union
action find_reverse
entity duchy
relation basic form of government
action find_reverse
entity constitutional monarchy
relation basic form of government
type state
{'OR': [[{'concept': 'state'}, 'basic form of government', 'duchy'], [{'concept': 'state'}, 'basic form of government', 'constitutional monarchy']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:state . { ?w property:basic_form_of_government ?f . VALUES ( ?f ) { ( resource:duchy ) ( resource:constitutional_monarchy ) } } }
[]
state
Q241748 Q215530 Q285658 Q533558 Q62589 Q7382038 Q189988 Q870055 Q124943 Q1152445
SYSTEM
Some of them are Kingdom of Serbia, Kingdom of Ireland, First Mexican Empire, Kingdom of Croatia-Slavonia, Union between Sweden and Norway, Imperial Throne, Central African Empire, Kingdom of Laos, Kingdom of Egypt, Aerican Empire
Q241748 Q215530 Q62589 Q189988 Q15864 Q152115 Q271570 Q18285930 Q1152445 Q207162 Q154195 Q870055 Q13706 Q1775277 Q285658 Q71092 Q1479726 Q698089 Q761370 Q203493 Q7382038 Q147909 Q27306 Q652560 Q2353425 Q124943 Q1423680 Q153015 Q209065 Q172579 Q153128 Q1138904 Q533558 Q191077 Q551798 Q71747 Q149805
OR((c(Q7275),P122,Q154547), (c(Q7275),P122,Q41614))
action filter_type
action union
action find_reverse
entity Q154547
relation P122
action find_reverse
entity Q41614
relation P122
type Q7275
[ANSWERS] have duchy or constitutional monarchy as government
{'OR': [[{'concept': 'Q7275'}, 'P122', 'Q154547'], [{'concept': 'Q7275'}, 'P122', 'Q41614']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q7275 . { ?w property:P122 ?f . VALUES ( ?f ) { ( resource:Q154547 ) ( resource:Q41614 ) } } }
Kingdom of Serbia Kingdom of Ireland Union between Sweden and Norway Central African Empire United Kingdom of the Netherlands Duchy of Warsaw Kingdom of Araucanía and Patagonia German Empire of 1848/1849 Aerican Empire Bourbon Restoration Kingdom of Bavaria Kingdom of Laos Principality of Sealand Dominion of India First Mexican Empire Second French Empire Federation of Malaya Grand Duchy of Würzburg Aro Confederacy Kingdom of Romania Imperial Throne Kingdom of Bulgaria Kingdom of Prussia West Indies Federation Talossa Kingdom of Egypt Gay and Lesbian Kingdom of the Coral Sea Islands Kingdom of Saxony Kingdom of Greece Kingdom of Italy Independent State of Croatia Kingdom of Afghanistan Kingdom of Croatia-Slavonia Kingdom of Yugoslavia Grand Duchy of Flandrensis Duchy of Brittany Kingdom of Iraq
Kingdom of Serbia, Kingdom of Ireland, First Mexican Empire, Kingdom of Croatia-Slavonia, Union between Sweden and Norway, Imperial Throne, Central African Empire, Kingdom of Laos, Kingdom of Egypt and Aerican Empire have duchy or constitutional monarchy as government
Kingdom of Serbia Kingdom of Ireland First Mexican Empire Kingdom of Croatia-Slavonia Union between Sweden and Norway Imperial Throne Central African Empire Kingdom of Laos Kingdom of Egypt Aerican Empire
action filter_type
action union
action find_reverse
entity duchy
relation basic form of government
action find_reverse
entity constitutional monarchy
relation basic form of government
type state
{'OR': [[{'concept': 'state'}, 'basic form of government', 'duchy'], [{'concept': 'state'}, 'basic form of government', 'constitutional monarchy']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:state . { ?w property:basic_form_of_government ?f . VALUES ( ?f ) { ( resource:duchy ) ( resource:constitutional_monarchy ) } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q220 Q15273842
P608
Q838948
USER
How many works of art were exhibited at Rome or 1808 Salon ?
(c(Q838948),P608,Q220) (c(Q838948),P608,Q15273842)
action count
action union
action filter_type
action find_reverse
entity Q220
relation P608
type Q838948
action filter_type
action find_reverse
entity Q15273842
relation P608
type Q838948
[{'concept': 'Q838948'}, 'P608', 'Q220'] [{'concept': 'Q838948'}, 'P608', 'Q15273842']
SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { VALUES ( ?p ) { ( resource:Q220 ) ( resource:Q15273842 ) } . ?v property:P608 ?p }
Rome 1808 Salon
action count
action union
action filter_type
action find_reverse
entity Rome
relation exhibition history
type work of art
action filter_type
action find_reverse
entity 1808 Salon
relation exhibition history
type work of art
[{'concept': 'work of art'}, 'exhibition history', 'Rome'] [{'concept': 'work of art'}, 'exhibition history', '1808 Salon']
SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { VALUES ( ?p ) { ( resource:Rome ) ( resource:1808_Salon ) } . ?v property:exhibition_history ?p }
[]
work of art
SYSTEM
2
Q15732837 Q15275645
(c(Q838948),P608,Q220) (c(Q838948),P608,Q15273842)
action count
action union
action filter_type
action find_reverse
entity Q220
relation P608
type Q838948
action filter_type
action find_reverse
entity Q15273842
relation P608
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P608', 'Q220'] [{'concept': 'Q838948'}, 'P608', 'Q15273842']
SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { VALUES ( ?p ) { ( resource:Q220 ) ( resource:Q15273842 ) } . ?v property:P608 ?p }
Marble bust of Titian Mrs. de Verninac as Diana the Huntress
2
action count
action union
action filter_type
action find_reverse
entity Rome
relation exhibition history
type work of art
action filter_type
action find_reverse
entity 1808 Salon
relation exhibition history
type work of art
[{'concept': 'work of art'}, 'exhibition history', 'Rome'] [{'concept': 'work of art'}, 'exhibition history', '1808 Salon']
SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { VALUES ( ?p ) { ( resource:Rome ) ( resource:1808_Salon ) } . ?v property:exhibition_history ?p }
[]