Simple Question (Direct)
Simple Question
Q6188097
P161
Q502895
USER
Which people are in Jesus Christ's Horoscope ?
(Q6188097,P161,c(Q502895))
action filter_type
action find
entity Q6188097
relation P161
type Q502895
['Q6188097', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q6188097 property:P161 ?w . ?w rdf:type ontology:Q502895 }
Jesus Christ's Horoscope
action filter_type
action find
entity Jesus Christ's Horoscope
relation cast member
type common name
["Jesus Christ's Horoscope", 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Jesus_Christ's_Horoscope property:cast_member ?w . ?w rdf:type ontology:common_name }
[]
common name
Q773746 Q381414 Q505273
SYSTEM
Dorottya Udvaros, László Gálffi, András Kozák
Q515964 Q773746 Q530713 Q381414 Q469964 Q505273 Q731581 Q853217
(Q6188097,P161,c(Q502895))
action filter_type
action find
entity Q6188097
relation P161
type Q502895
[ANSWERS] are in Jesus Christ's Horoscope
['Q6188097', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q6188097 property:P161 ?w . ?w rdf:type ontology:Q502895 }
András Bálint Dorottya Udvaros Juli Básti László Gálffi Ildikó Bánsági András Kozák Ottilia Borbáth György Cserhalmi
Dorottya Udvaros, László Gálffi and András Kozák are in Jesus Christ's Horoscope
Dorottya Udvaros László Gálffi András Kozák
action filter_type
action find
entity Jesus Christ's Horoscope
relation cast member
type common name
["Jesus Christ's Horoscope", 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Jesus_Christ's_Horoscope property:cast_member ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6188097
P57
Q502895
USER
Who directed that work of art ?
(Q773746,P57,c(Q502895)) (Q381414,P57,c(Q502895)) (Q505273,P57,c(Q502895))
action filter_type
action find
entity Q6188097
relation P57
type Q502895
['Q773746', 'P57', {'concept': 'Q502895'}] ['Q381414', 'P57', {'concept': 'Q502895'}] ['Q505273', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q6188097 property:P57 ?z . ?z rdf:type ontology:Q502895 }
Jesus Christ's Horoscope
action filter_type
action find
entity Jesus Christ's Horoscope
relation director
type common name
['Dorottya Udvaros', 'director', {'concept': 'common name'}] ['László Gálffi', 'director', {'concept': 'common name'}] ['András Kozák', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Jesus_Christ's_Horoscope property:director ?z . ?z rdf:type ontology:common_name }
[]
common name
Q259240
SYSTEM
Miklós Jancsó
Q259240
(Q773746,P57,c(Q502895)) (Q381414,P57,c(Q502895)) (Q505273,P57,c(Q502895))
action filter_type
action find
entity Q6188097
relation P57
type Q502895
[ANSWER] directed that work of art
['Q773746', 'P57', {'concept': 'Q502895'}] ['Q381414', 'P57', {'concept': 'Q502895'}] ['Q505273', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q6188097 property:P57 ?z . ?z rdf:type ontology:Q502895 }
Miklós Jancsó
Miklós Jancsó directed that work of art
Miklós Jancsó
action filter_type
action find
entity Jesus Christ's Horoscope
relation director
type common name
['Dorottya Udvaros', 'director', {'concept': 'common name'}] ['László Gálffi', 'director', {'concept': 'common name'}] ['András Kozák', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Jesus_Christ's_Horoscope property:director ?z . ?z rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q38 Q6188097
P530 P495
Q15617994
USER
Which administrative territories are the countries of origin of Jesus Christ's Horoscope or have diplomatic relations with Italy ?
OR((Q6188097,P495,c(Q15617994)), (Q38,P530,c(Q15617994)))
action filter_type
action union
action find
entity Q6188097
relation P495
action find
entity Q38
relation P530
type Q15617994
{'OR': [['Q6188097', 'P495', {'concept': 'Q15617994'}], ['Q38', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q6188097 property:P495 ?h } UNION { resource:Q38 property:P530 ?h } } . ?h rdf:type ontology:Q15617994 }
Italy Jesus Christ's Horoscope
action filter_type
action union
action find
entity Jesus Christ's Horoscope
relation country of origin
action find
entity Italy
relation diplomatic relation
type designation for an administrative territorial entity
{'OR': [["Jesus Christ's Horoscope", 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Jesus_Christ's_Horoscope property:country_of_origin ?h } UNION { resource:Italy property:diplomatic_relation ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q794 Q29 Q37 Q1045 Q1016 Q145 Q148 Q229 Q889 Q184
SYSTEM
Some of them are Iran, Spain, Lithuania, Somalia, Libya, United Kingdom, People's Republic of China, Cyprus, Afghanistan, Belarus
Q805 Q801 Q189 Q843 Q184 Q423 Q822 Q419 Q668 Q215 Q347 Q414 Q142 Q225 Q224 Q55 Q222 Q221 Q145 Q148 Q96 Q17 Q229 Q228 Q33 Q32 Q31 Q30 Q37 Q36 Q79 Q34 Q928 Q39 Q1016 Q739 Q227 Q948 Q191 Q733 Q77 Q298 Q45 Q252 Q114 Q399 Q403 Q230 Q233 Q258 Q43 Q212 Q213 Q236 Q211 Q159 Q217 Q214 Q41 Q155 Q218 Q219 Q238 Q796 Q794 Q20 Q1045 Q889 Q27 Q869 Q29 Q884 Q28 Q881
OR((Q6188097,P495,c(Q15617994)), (Q38,P530,c(Q15617994)))
action filter_type
action union
action find
entity Q6188097
relation P495
action find
entity Q38
relation P530
type Q15617994
[ANSWERS] are the countries of origin of Jesus Christ's Horoscope or have diplomatic relations with Italy
{'OR': [['Q6188097', 'P495', {'concept': 'Q15617994'}], ['Q38', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q6188097 property:P495 ?h } UNION { resource:Q38 property:P530 ?h } } . ?h rdf:type ontology:Q15617994 }
Yemen Israel Iceland Pakistan Belarus North Korea Lebanon Peru India Slovenia Liechtenstein Argentina France Bosnia and Herzegovina Croatia Netherlands Albania Republic of Macedonia United Kingdom People's Republic of China Mexico Japan Cyprus Andorra Finland Luxembourg Belgium United States of America Lithuania Poland Egypt Sweden Philippines Switzerland Libya Colombia Azerbaijan Tunisia Estonia Paraguay Uruguay Chile Portugal Indonesia Kenya Armenia Serbia Georgia Malta South Africa Turkey Ukraine Czech Republic Montenegro Latvia Russia Republic of Moldova Slovakia Greece Brazil Romania Bulgaria San Marino Iraq Iran Norway Somalia Afghanistan Ireland Thailand Spain South Korea Hungary Vietnam
Iran, Spain, Lithuania, Somalia, Libya, United Kingdom, People's Republic of China, Cyprus, Afghanistan and Belarus are the countries of origin of Jesus Christ's Horoscope or have diplomatic relations with Italy
Iran Spain Lithuania Somalia Libya United Kingdom People's Republic of China Cyprus Afghanistan Belarus
action filter_type
action union
action find
entity Jesus Christ's Horoscope
relation country of origin
action find
entity Italy
relation diplomatic relation
type designation for an administrative territorial entity
{'OR': [["Jesus Christ's Horoscope", 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Jesus_Christ's_Horoscope property:country_of_origin ?h } UNION { resource:Italy property:diplomatic_relation ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P530
Q15617994 Q1048835
USER
How many administrative territories and political territories have diplomatic relationships with that administrative territory ?
(Q145,P530,c(Q15617994)) (Q145,P530,c(Q1048835)) (Q794,P530,c(Q15617994)) (Q794,P530,c(Q1048835)) (Q29,P530,c(Q15617994)) (Q29,P530,c(Q1048835)) (Q37,P530,c(Q15617994)) (Q37,P530,c(Q1048835)) (Q1045,P530,c(Q15617994)) (Q1045,P530,c(Q1048835)) (Q1016,P530,c(Q15617994)) (Q1016,P530,c(Q1048835)) (Q145,P530,c(Q15617994)) (Q145,P530,c(Q1048835)) (Q148,P530,c(Q15617994)) (Q148,P530,c(Q1048835)) (Q229,P530,c(Q15617994)) (Q229,P530,c(Q1048835)) (Q889,P530,c(Q15617994)) (Q889,P530,c(Q1048835)) (Q184,P530,c(Q15617994)) (Q184,P530,c(Q1048835))
['Q145', 'P530', {'concept': 'Q15617994'}] ['Q145', 'P530', {'concept': 'Q1048835'}] ['Q794', 'P530', {'concept': 'Q15617994'}] ['Q794', 'P530', {'concept': 'Q1048835'}] ['Q29', 'P530', {'concept': 'Q15617994'}] ['Q29', 'P530', {'concept': 'Q1048835'}] ['Q37', 'P530', {'concept': 'Q15617994'}] ['Q37', 'P530', {'concept': 'Q1048835'}] ['Q1045', 'P530', {'concept': 'Q15617994'}] ['Q1045', 'P530', {'concept': 'Q1048835'}] ['Q1016', 'P530', {'concept': 'Q15617994'}] ['Q1016', 'P530', {'concept': 'Q1048835'}] ['Q145', 'P530', {'concept': 'Q15617994'}] ['Q145', 'P530', {'concept': 'Q1048835'}] ['Q148', 'P530', {'concept': 'Q15617994'}] ['Q148', 'P530', {'concept': 'Q1048835'}] ['Q229', 'P530', {'concept': 'Q15617994'}] ['Q229', 'P530', {'concept': 'Q1048835'}] ['Q889', 'P530', {'concept': 'Q15617994'}] ['Q889', 'P530', {'concept': 'Q1048835'}] ['Q184', 'P530', {'concept': 'Q15617994'}] ['Q184', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q225249 property:P530 ?z } UNION { resource:Q225249 property:P530 ?y } UNION { resource:Q17715246 property:P530 ?z } UNION { resource:Q17715246 property:P530 ?y } UNION { resource:Q20266861 property:P530 ?z } UNION { resource:Q20266861 property:P530 ?y } UNION { resource:Q6648231 property:P530 ?z } UNION { resource:Q6648231 property:P530 ?y } UNION { resource:Q1045 property:P530 ?z } UNION { resource:Q1045 property:P530 ?y } UNION { resource:Q1016 property:P530 ?z } UNION { resource:Q1016 property:P530 ?y } UNION { resource:Q225249 property:P530 ?z } UNION { resource:Q225249 property:P530 ?y } UNION { resource:Q10956965 property:P530 ?z } UNION { resource:Q10956965 property:P530 ?y } UNION { resource:Q10262778 property:P530 ?z } UNION { resource:Q10262778 property:P530 ?y } UNION { resource:Q27715795 property:P530 ?z } UNION { resource:Q27715795 property:P530 ?y } UNION { resource:Q3920722 property:P530 ?z } UNION { resource:Q3920722 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
['United Kingdom', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Iran', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Iran', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Spain', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Spain', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Lithuania', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Lithuania', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Somalia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Somalia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Libya', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Libya', 'diplomatic relation', {'concept': 'political territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}] ["People's Republic of China", 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ["People's Republic of China", 'diplomatic relation', {'concept': 'political territorial entity'}] ['Cyprus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Cyprus', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Afghanistan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Afghanistan', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Belarus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Belarus', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:United_Kingdom property:diplomatic_relation ?z } UNION { resource:United_Kingdom property:diplomatic_relation ?y } UNION { resource:Iran property:diplomatic_relation ?z } UNION { resource:Iran property:diplomatic_relation ?y } UNION { resource:Spain property:diplomatic_relation ?z } UNION { resource:Spain property:diplomatic_relation ?y } UNION { resource:Lithuania property:diplomatic_relation ?z } UNION { resource:Lithuania property:diplomatic_relation ?y } UNION { resource:Somalia property:diplomatic_relation ?z } UNION { resource:Somalia property:diplomatic_relation ?y } UNION { resource:Libya property:diplomatic_relation ?z } UNION { resource:Libya property:diplomatic_relation ?y } UNION { resource:United_Kingdom property:diplomatic_relation ?z } UNION { resource:United_Kingdom property:diplomatic_relation ?y } UNION { resource:People's_Republic_of_China property:diplomatic_relation ?z } UNION { resource:People's_Republic_of_China property:diplomatic_relation ?y } UNION { resource:Cyprus property:diplomatic_relation ?z } UNION { resource:Cyprus property:diplomatic_relation ?y } UNION { resource:Afghanistan property:diplomatic_relation ?z } UNION { resource:Afghanistan property:diplomatic_relation ?y } UNION { resource:Belarus property:diplomatic_relation ?z } UNION { resource:Belarus property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
designation for an administrative territorial entity political territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q794
SYSTEM
Did you mean Iran ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q225249 property:P530 ?z } UNION { resource:Q225249 property:P530 ?y } UNION { resource:Q17715246 property:P530 ?z } UNION { resource:Q17715246 property:P530 ?y } UNION { resource:Q20266861 property:P530 ?z } UNION { resource:Q20266861 property:P530 ?y } UNION { resource:Q6648231 property:P530 ?z } UNION { resource:Q6648231 property:P530 ?y } UNION { resource:Q1045 property:P530 ?z } UNION { resource:Q1045 property:P530 ?y } UNION { resource:Q1016 property:P530 ?z } UNION { resource:Q1016 property:P530 ?y } UNION { resource:Q225249 property:P530 ?z } UNION { resource:Q225249 property:P530 ?y } UNION { resource:Q10956965 property:P530 ?z } UNION { resource:Q10956965 property:P530 ?y } UNION { resource:Q10262778 property:P530 ?z } UNION { resource:Q10262778 property:P530 ?y } UNION { resource:Q27715795 property:P530 ?z } UNION { resource:Q27715795 property:P530 ?y } UNION { resource:Q3920722 property:P530 ?z } UNION { resource:Q3920722 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
Did you mean Iran ?
Iran
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:United_Kingdom property:diplomatic_relation ?z } UNION { resource:United_Kingdom property:diplomatic_relation ?y } UNION { resource:Iran property:diplomatic_relation ?z } UNION { resource:Iran property:diplomatic_relation ?y } UNION { resource:Spain property:diplomatic_relation ?z } UNION { resource:Spain property:diplomatic_relation ?y } UNION { resource:Lithuania property:diplomatic_relation ?z } UNION { resource:Lithuania property:diplomatic_relation ?y } UNION { resource:Somalia property:diplomatic_relation ?z } UNION { resource:Somalia property:diplomatic_relation ?y } UNION { resource:Libya property:diplomatic_relation ?z } UNION { resource:Libya property:diplomatic_relation ?y } UNION { resource:United_Kingdom property:diplomatic_relation ?z } UNION { resource:United_Kingdom property:diplomatic_relation ?y } UNION { resource:People's_Republic_of_China property:diplomatic_relation ?z } UNION { resource:People's_Republic_of_China property:diplomatic_relation ?y } UNION { resource:Cyprus property:diplomatic_relation ?z } UNION { resource:Cyprus property:diplomatic_relation ?y } UNION { resource:Afghanistan property:diplomatic_relation ?z } UNION { resource:Afghanistan property:diplomatic_relation ?y } UNION { resource:Belarus property:diplomatic_relation ?z } UNION { resource:Belarus property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant United Kingdom. Could you tell me the answer for that?
(Q145,P530,c(Q15617994)) (Q145,P530,c(Q1048835)) (Q794,P530,c(Q15617994)) (Q794,P530,c(Q1048835)) (Q29,P530,c(Q15617994)) (Q29,P530,c(Q1048835)) (Q37,P530,c(Q15617994)) (Q37,P530,c(Q1048835)) (Q1045,P530,c(Q15617994)) (Q1045,P530,c(Q1048835)) (Q1016,P530,c(Q15617994)) (Q1016,P530,c(Q1048835)) (Q145,P530,c(Q15617994)) (Q145,P530,c(Q1048835)) (Q148,P530,c(Q15617994)) (Q148,P530,c(Q1048835)) (Q229,P530,c(Q15617994)) (Q229,P530,c(Q1048835)) (Q889,P530,c(Q15617994)) (Q889,P530,c(Q1048835)) (Q184,P530,c(Q15617994)) (Q184,P530,c(Q1048835))
Q145
['Q145', 'P530', {'concept': 'Q15617994'}] ['Q145', 'P530', {'concept': 'Q1048835'}] ['Q794', 'P530', {'concept': 'Q15617994'}] ['Q794', 'P530', {'concept': 'Q1048835'}] ['Q29', 'P530', {'concept': 'Q15617994'}] ['Q29', 'P530', {'concept': 'Q1048835'}] ['Q37', 'P530', {'concept': 'Q15617994'}] ['Q37', 'P530', {'concept': 'Q1048835'}] ['Q1045', 'P530', {'concept': 'Q15617994'}] ['Q1045', 'P530', {'concept': 'Q1048835'}] ['Q1016', 'P530', {'concept': 'Q15617994'}] ['Q1016', 'P530', {'concept': 'Q1048835'}] ['Q145', 'P530', {'concept': 'Q15617994'}] ['Q145', 'P530', {'concept': 'Q1048835'}] ['Q148', 'P530', {'concept': 'Q15617994'}] ['Q148', 'P530', {'concept': 'Q1048835'}] ['Q229', 'P530', {'concept': 'Q15617994'}] ['Q229', 'P530', {'concept': 'Q1048835'}] ['Q889', 'P530', {'concept': 'Q15617994'}] ['Q889', 'P530', {'concept': 'Q1048835'}] ['Q184', 'P530', {'concept': 'Q15617994'}] ['Q184', 'P530', {'concept': 'Q1048835'}]
['United Kingdom', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Iran', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Iran', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Spain', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Spain', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Lithuania', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Lithuania', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Somalia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Somalia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Libya', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Libya', 'diplomatic relation', {'concept': 'political territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}] ["People's Republic of China", 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ["People's Republic of China", 'diplomatic relation', {'concept': 'political territorial entity'}] ['Cyprus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Cyprus', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Afghanistan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Afghanistan', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Belarus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Belarus', 'diplomatic relation', {'concept': 'political territorial entity'}]
[]
SYSTEM
7 administrative territories and 3 political territories
Q142 Q403 Q805 Q16 Q37 Q801 Q408 Q155 Q38 Q183
(Q145,P530,c(Q15617994)) (Q145,P530,c(Q1048835)) (Q794,P530,c(Q15617994)) (Q794,P530,c(Q1048835)) (Q29,P530,c(Q15617994)) (Q29,P530,c(Q1048835)) (Q37,P530,c(Q15617994)) (Q37,P530,c(Q1048835)) (Q1045,P530,c(Q15617994)) (Q1045,P530,c(Q1048835)) (Q1016,P530,c(Q15617994)) (Q1016,P530,c(Q1048835)) (Q145,P530,c(Q15617994)) (Q145,P530,c(Q1048835)) (Q148,P530,c(Q15617994)) (Q148,P530,c(Q1048835)) (Q229,P530,c(Q15617994)) (Q229,P530,c(Q1048835)) (Q889,P530,c(Q15617994)) (Q889,P530,c(Q1048835)) (Q184,P530,c(Q15617994)) (Q184,P530,c(Q1048835))
[ANSWER]
['Q145', 'P530', {'concept': 'Q15617994'}] ['Q145', 'P530', {'concept': 'Q1048835'}] ['Q794', 'P530', {'concept': 'Q15617994'}] ['Q794', 'P530', {'concept': 'Q1048835'}] ['Q29', 'P530', {'concept': 'Q15617994'}] ['Q29', 'P530', {'concept': 'Q1048835'}] ['Q37', 'P530', {'concept': 'Q15617994'}] ['Q37', 'P530', {'concept': 'Q1048835'}] ['Q1045', 'P530', {'concept': 'Q15617994'}] ['Q1045', 'P530', {'concept': 'Q1048835'}] ['Q1016', 'P530', {'concept': 'Q15617994'}] ['Q1016', 'P530', {'concept': 'Q1048835'}] ['Q145', 'P530', {'concept': 'Q15617994'}] ['Q145', 'P530', {'concept': 'Q1048835'}] ['Q148', 'P530', {'concept': 'Q15617994'}] ['Q148', 'P530', {'concept': 'Q1048835'}] ['Q229', 'P530', {'concept': 'Q15617994'}] ['Q229', 'P530', {'concept': 'Q1048835'}] ['Q889', 'P530', {'concept': 'Q15617994'}] ['Q889', 'P530', {'concept': 'Q1048835'}] ['Q184', 'P530', {'concept': 'Q15617994'}] ['Q184', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q225249 property:P530 ?z } UNION { resource:Q225249 property:P530 ?y } UNION { resource:Q17715246 property:P530 ?z } UNION { resource:Q17715246 property:P530 ?y } UNION { resource:Q20266861 property:P530 ?z } UNION { resource:Q20266861 property:P530 ?y } UNION { resource:Q6648231 property:P530 ?z } UNION { resource:Q6648231 property:P530 ?y } UNION { resource:Q1045 property:P530 ?z } UNION { resource:Q1045 property:P530 ?y } UNION { resource:Q1016 property:P530 ?z } UNION { resource:Q1016 property:P530 ?y } UNION { resource:Q225249 property:P530 ?z } UNION { resource:Q225249 property:P530 ?y } UNION { resource:Q10956965 property:P530 ?z } UNION { resource:Q10956965 property:P530 ?y } UNION { resource:Q10262778 property:P530 ?z } UNION { resource:Q10262778 property:P530 ?y } UNION { resource:Q27715795 property:P530 ?z } UNION { resource:Q27715795 property:P530 ?y } UNION { resource:Q3920722 property:P530 ?z } UNION { resource:Q3920722 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
France Serbia Yemen Canada Lithuania Israel Australia Brazil Italy Germany
7 administrative territories and 3 political territories
['United Kingdom', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Iran', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Iran', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Spain', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Spain', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Lithuania', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Lithuania', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Somalia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Somalia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Libya', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Libya', 'diplomatic relation', {'concept': 'political territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}] ["People's Republic of China", 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ["People's Republic of China", 'diplomatic relation', {'concept': 'political territorial entity'}] ['Cyprus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Cyprus', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Afghanistan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Afghanistan', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Belarus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Belarus', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:United_Kingdom property:diplomatic_relation ?z } UNION { resource:United_Kingdom property:diplomatic_relation ?y } UNION { resource:Iran property:diplomatic_relation ?z } UNION { resource:Iran property:diplomatic_relation ?y } UNION { resource:Spain property:diplomatic_relation ?z } UNION { resource:Spain property:diplomatic_relation ?y } UNION { resource:Lithuania property:diplomatic_relation ?z } UNION { resource:Lithuania property:diplomatic_relation ?y } UNION { resource:Somalia property:diplomatic_relation ?z } UNION { resource:Somalia property:diplomatic_relation ?y } UNION { resource:Libya property:diplomatic_relation ?z } UNION { resource:Libya property:diplomatic_relation ?y } UNION { resource:United_Kingdom property:diplomatic_relation ?z } UNION { resource:United_Kingdom property:diplomatic_relation ?y } UNION { resource:People's_Republic_of_China property:diplomatic_relation ?z } UNION { resource:People's_Republic_of_China property:diplomatic_relation ?y } UNION { resource:Cyprus property:diplomatic_relation ?z } UNION { resource:Cyprus property:diplomatic_relation ?y } UNION { resource:Afghanistan property:diplomatic_relation ?z } UNION { resource:Afghanistan property:diplomatic_relation ?y } UNION { resource:Belarus property:diplomatic_relation ?z } UNION { resource:Belarus property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q145 Q766
P495
Q838948
USER
How many works of art originated in United Kingdom and Jamaica ?
(c(Q838948),P495,Q145) (c(Q838948),P495,Q766)
action count
action intersection
action filter_type
action find_reverse
entity Q145
relation P495
type Q838948
action filter_type
action find_reverse
entity Q766
relation P495
type Q838948
[{'concept': 'Q838948'}, 'P495', 'Q145'] [{'concept': 'Q838948'}, 'P495', 'Q766']
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { ?e property:P495 resource:Q145 . ?e rdf:type ontology:Q838948 . ?e property:P495 resource:Q766 . ?e rdf:type ontology:Q838948 }
United Kingdom Jamaica
action count
action intersection
action filter_type
action find_reverse
entity United Kingdom
relation country of origin
type work of art
action filter_type
action find_reverse
entity Jamaica
relation country of origin
type work of art
[{'concept': 'work of art'}, 'country of origin', 'United Kingdom'] [{'concept': 'work of art'}, 'country of origin', 'Jamaica']
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { ?e property:country_of_origin resource:United_Kingdom . ?e rdf:type ontology:work_of_art . ?e property:country_of_origin resource:Jamaica . ?e rdf:type ontology:work_of_art }
[]
work of art
SYSTEM
2
Q1189617 Q23016189
(c(Q838948),P495,Q145) (c(Q838948),P495,Q766)
action count
action intersection
action filter_type
action find_reverse
entity Q145
relation P495
type Q838948
action filter_type
action find_reverse
entity Q766
relation P495
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P495', 'Q145'] [{'concept': 'Q838948'}, 'P495', 'Q766']
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { ?e property:P495 resource:Q145 . ?e rdf:type ontology:Q838948 . ?e property:P495 resource:Q766 . ?e rdf:type ontology:Q838948 }
Marley Lee Scratch Perry's Vision of Paradise
2
action count
action intersection
action filter_type
action find_reverse
entity United Kingdom
relation country of origin
type work of art
action filter_type
action find_reverse
entity Jamaica
relation country of origin
type work of art
[{'concept': 'work of art'}, 'country of origin', 'United Kingdom'] [{'concept': 'work of art'}, 'country of origin', 'Jamaica']
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { ?e property:country_of_origin resource:United_Kingdom . ?e rdf:type ontology:work_of_art . ?e property:country_of_origin resource:Jamaica . ?e rdf:type ontology:work_of_art }
[]