Simple Question (Direct)
Simple Question
Q2368965
P166
Q2003221
USER
Which chivalric order was Susan Thomas, Baroness Thomas of Walliswood awarded with ?
(Q2368965,P166,c(Q2003221))
action filter_type
action find
entity Q2368965
relation P166
type Q2003221
['Q2368965', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?v WHERE { resource:Q2368965 property:P166 ?v . ?v rdf:type ontology:Q2003221 }
Susan Thomas, Baroness Thomas of Walliswood
action filter_type
action find
entity Susan Thomas, Baroness Thomas of Walliswood
relation award received
type chivalric order
['Susan Thomas, Baroness Thomas of Walliswood', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?v WHERE { resource:Susan_Thomas,_Baroness_Thomas_of_Walliswood property:award_received ?v . ?v rdf:type ontology:chivalric_order }
[]
chivalric order
Q10762848
SYSTEM
Officer of the Order of the British Empire
Q10762848
(Q2368965,P166,c(Q2003221))
action filter_type
action find
entity Q2368965
relation P166
type Q2003221
The [ANSWER] was Susan Thomas, Baroness Thomas of Walliswood awarded with
['Q2368965', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?v WHERE { resource:Q2368965 property:P166 ?v . ?v rdf:type ontology:Q2003221 }
Officer of the Order of the British Empire
The Officer of the Order of the British Empire was Susan Thomas, Baroness Thomas of Walliswood awarded with
Officer of the Order of the British Empire
action filter_type
action find
entity Susan Thomas, Baroness Thomas of Walliswood
relation award received
type chivalric order
['Susan Thomas, Baroness Thomas of Walliswood', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?v WHERE { resource:Susan_Thomas,_Baroness_Thomas_of_Walliswood property:award_received ?v . ?v rdf:type ontology:chivalric_order }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2368965
P161
Q838948
USER
Which work of art has Susan Thomas, Baroness Thomas of Walliswood as actor ?
(c(Q838948),P161,Q2368965)
action filter_type
action find_reverse
entity Q2368965
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q2368965']
SELECT DISTINCT ?x WHERE { ?x property:P161 resource:Q2368965 . ?x rdf:type ontology:Q838948 }
Susan Thomas, Baroness Thomas of Walliswood
action filter_type
action find_reverse
entity Susan Thomas, Baroness Thomas of Walliswood
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Susan Thomas, Baroness Thomas of Walliswood']
SELECT DISTINCT ?x WHERE { ?x property:cast_member resource:Susan_Thomas,_Baroness_Thomas_of_Walliswood . ?x rdf:type ontology:work_of_art }
[]
work of art
Q4905787
SYSTEM
Big Guns
Q4905787
(c(Q838948),P161,Q2368965)
action filter_type
action find_reverse
entity Q2368965
relation P161
type Q838948
[ANSWER] has Susan Thomas, Baroness Thomas of Walliswood as actor
[{'concept': 'Q838948'}, 'P161', 'Q2368965']
SELECT DISTINCT ?x WHERE { ?x property:P161 resource:Q2368965 . ?x rdf:type ontology:Q838948 }
Big Guns
Big Guns has Susan Thomas, Baroness Thomas of Walliswood as actor
Big Guns
action filter_type
action find_reverse
entity Susan Thomas, Baroness Thomas of Walliswood
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Susan Thomas, Baroness Thomas of Walliswood']
SELECT DISTINCT ?x WHERE { ?x property:cast_member resource:Susan_Thomas,_Baroness_Thomas_of_Walliswood . ?x rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4905787
P364
Q34770
USER
Which language was used originally for the creation of that work of art ?
(Q4905787,P364,c(Q34770))
action filter_type
action find
entity Q4905787
relation P364
type Q34770
['Q4905787', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q34770 . resource:Q4905787 property:P364 ?t }
Big Guns
action filter_type
action find
entity Big Guns
relation original language of work
type language
['Big Guns', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:language . resource:Big_Guns property:original_language_of_work ?t }
[]
language
Q1860
SYSTEM
English
Q1860
(Q4905787,P364,c(Q34770))
action filter_type
action find
entity Q4905787
relation P364
type Q34770
[ANSWER] was used originally for the creation of that work of art
['Q4905787', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q34770 . resource:Q4905787 property:P364 ?t }
English
English was used originally for the creation of that work of art
English
action filter_type
action find
entity Big Guns
relation original language of work
type language
['Big Guns', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:language . resource:Big_Guns property:original_language_of_work ?t }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7825635 Q10762848
P27 P17
Q15617994
USER
Which administrative territories are Officer of the Order of the British Empire situated in or are the native countriesof Tore Killingland ?
OR((Q10762848,P17,c(Q15617994)), (Q7825635,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q10762848
relation P17
action find
entity Q7825635
relation P27
type Q15617994
{'OR': [['Q10762848', 'P17', {'concept': 'Q15617994'}], ['Q7825635', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . { { resource:Q10762848 property:P17 ?k } UNION { resource:Q7825635 property:P27 ?k } } }
Tore Killingland Officer of the Order of the British Empire
action filter_type
action union
action find
entity Officer of the Order of the British Empire
relation country
action find
entity Tore Killingland
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Officer of the Order of the British Empire', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Tore Killingland', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Officer_of_the_Order_of_the_British_Empire property:country ?k } UNION { resource:Tore_Killingland property:country_of_citizenship ?k } } }
[]
designation for an administrative territorial entity
Q20 Q145
SYSTEM
Norway, United Kingdom
Q20 Q145
OR((Q10762848,P17,c(Q15617994)), (Q7825635,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q10762848
relation P17
action find
entity Q7825635
relation P27
type Q15617994
[ANSWERS] are Officer of the Order of the British Empire situated in or are the native countriesof Tore Killingland
{'OR': [['Q10762848', 'P17', {'concept': 'Q15617994'}], ['Q7825635', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . { { resource:Q10762848 property:P17 ?k } UNION { resource:Q7825635 property:P27 ?k } } }
Norway United Kingdom
Norway and United Kingdom are Officer of the Order of the British Empire situated in or are the native countriesof Tore Killingland
Norway United Kingdom
action filter_type
action union
action find
entity Officer of the Order of the British Empire
relation country
action find
entity Tore Killingland
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Officer of the Order of the British Empire', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Tore Killingland', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Officer_of_the_Order_of_the_British_Empire property:country ?k } UNION { resource:Tore_Killingland property:country_of_citizenship ?k } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P915
Q838948 Q15416
USER
How many works of art and television programs were filmed at that administrative territory ?
(c(Q838948),P915,Q145) (c(Q15416),P915,Q145) (c(Q838948),P915,Q20) (c(Q15416),P915,Q20) (c(Q838948),P915,Q145) (c(Q15416),P915,Q145)
[{'concept': 'Q838948'}, 'P915', 'Q145'] [{'concept': 'Q15416'}, 'P915', 'Q145'] [{'concept': 'Q838948'}, 'P915', 'Q20'] [{'concept': 'Q15416'}, 'P915', 'Q20'] [{'concept': 'Q838948'}, 'P915', 'Q145'] [{'concept': 'Q15416'}, 'P915', 'Q145']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q1045481 resource:Q225249 } UNION { ?y property:Q1045481 resource:Q225249 } UNION { ?z property:Q1045481 resource:Q7060816 } UNION { ?y property:Q1045481 resource:Q7060816 } UNION { ?z property:Q1045481 resource:Q225249 } UNION { ?y property:Q1045481 resource:Q225249 } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15416 }
[{'concept': 'work of art'}, 'filming location', 'United Kingdom'] [{'concept': 'television program'}, 'filming location', 'United Kingdom'] [{'concept': 'work of art'}, 'filming location', 'Norway'] [{'concept': 'television program'}, 'filming location', 'Norway'] [{'concept': 'work of art'}, 'filming location', 'United Kingdom'] [{'concept': 'television program'}, 'filming location', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:filming_location resource:United_Kingdom } UNION { ?y property:filming_location resource:United_Kingdom } UNION { ?z property:filming_location resource:Norway } UNION { ?y property:filming_location resource:Norway } UNION { ?z property:filming_location resource:United_Kingdom } UNION { ?y property:filming_location resource:United_Kingdom } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:television_program }
[]
work of art television program
Quantitative|Count|Mult. entity type|Clarification
Q145
SYSTEM
Did you mean United Kingdom ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q1045481 resource:Q225249 } UNION { ?y property:Q1045481 resource:Q225249 } UNION { ?z property:Q1045481 resource:Q7060816 } UNION { ?y property:Q1045481 resource:Q7060816 } UNION { ?z property:Q1045481 resource:Q225249 } UNION { ?y property:Q1045481 resource:Q225249 } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15416 }
Did you mean United Kingdom ?
United Kingdom
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:filming_location resource:United_Kingdom } UNION { ?y property:filming_location resource:United_Kingdom } UNION { ?z property:filming_location resource:Norway } UNION { ?y property:filming_location resource:Norway } UNION { ?z property:filming_location resource:United_Kingdom } UNION { ?y property:filming_location resource:United_Kingdom } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:television_program }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q838948),P915,Q145) (c(Q15416),P915,Q145) (c(Q838948),P915,Q20) (c(Q15416),P915,Q20) (c(Q838948),P915,Q145) (c(Q15416),P915,Q145)
[{'concept': 'Q838948'}, 'P915', 'Q145'] [{'concept': 'Q15416'}, 'P915', 'Q145'] [{'concept': 'Q838948'}, 'P915', 'Q20'] [{'concept': 'Q15416'}, 'P915', 'Q20'] [{'concept': 'Q838948'}, 'P915', 'Q145'] [{'concept': 'Q15416'}, 'P915', 'Q145']
[{'concept': 'work of art'}, 'filming location', 'United Kingdom'] [{'concept': 'television program'}, 'filming location', 'United Kingdom'] [{'concept': 'work of art'}, 'filming location', 'Norway'] [{'concept': 'television program'}, 'filming location', 'Norway'] [{'concept': 'work of art'}, 'filming location', 'United Kingdom'] [{'concept': 'television program'}, 'filming location', 'United Kingdom']
[]
SYSTEM
1 works of art and 1 television programs
Q15631013 Q21427546
(c(Q838948),P915,Q145) (c(Q15416),P915,Q145) (c(Q838948),P915,Q20) (c(Q15416),P915,Q20) (c(Q838948),P915,Q145) (c(Q15416),P915,Q145)
[ANSWER]
[{'concept': 'Q838948'}, 'P915', 'Q145'] [{'concept': 'Q15416'}, 'P915', 'Q145'] [{'concept': 'Q838948'}, 'P915', 'Q20'] [{'concept': 'Q15416'}, 'P915', 'Q20'] [{'concept': 'Q838948'}, 'P915', 'Q145'] [{'concept': 'Q15416'}, 'P915', 'Q145']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q1045481 resource:Q225249 } UNION { ?y property:Q1045481 resource:Q225249 } UNION { ?z property:Q1045481 resource:Q7060816 } UNION { ?y property:Q1045481 resource:Q7060816 } UNION { ?z property:Q1045481 resource:Q225249 } UNION { ?y property:Q1045481 resource:Q225249 } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15416 }
Everest Hunted
1 works of art and 1 television programs
[{'concept': 'work of art'}, 'filming location', 'United Kingdom'] [{'concept': 'television program'}, 'filming location', 'United Kingdom'] [{'concept': 'work of art'}, 'filming location', 'Norway'] [{'concept': 'television program'}, 'filming location', 'Norway'] [{'concept': 'work of art'}, 'filming location', 'United Kingdom'] [{'concept': 'television program'}, 'filming location', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:filming_location resource:United_Kingdom } UNION { ?y property:filming_location resource:United_Kingdom } UNION { ?z property:filming_location resource:Norway } UNION { ?y property:filming_location resource:Norway } UNION { ?z property:filming_location resource:United_Kingdom } UNION { ?y property:filming_location resource:United_Kingdom } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:television_program }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2368965
P39
Q12737077
USER
Which occupation was a position held by Susan Thomas, Baroness Thomas of Walliswood ?
(Q2368965,P39,c(Q12737077))
action filter_type
action find
entity Q2368965
relation P39
type Q12737077
['Q2368965', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q2368965 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
Susan Thomas, Baroness Thomas of Walliswood
action filter_type
action find
entity Susan Thomas, Baroness Thomas of Walliswood
relation position held
type occupation
['Susan Thomas, Baroness Thomas of Walliswood', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Susan_Thomas,_Baroness_Thomas_of_Walliswood property:position_held ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q18952564
SYSTEM
Member of the House of Lords
Q18952564
(Q2368965,P39,c(Q12737077))
action filter_type
action find
entity Q2368965
relation P39
type Q12737077
[ANSWER] was a position held by Susan Thomas, Baroness Thomas of Walliswood
['Q2368965', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q2368965 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
Member of the House of Lords
Member of the House of Lords was a position held by Susan Thomas, Baroness Thomas of Walliswood
Member of the House of Lords
action filter_type
action find
entity Susan Thomas, Baroness Thomas of Walliswood
relation position held
type occupation
['Susan Thomas, Baroness Thomas of Walliswood', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Susan_Thomas,_Baroness_Thomas_of_Walliswood property:position_held ?t . ?t rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q18952564 Q145
P17
Q15617994
USER
Is that occupation located in United Kingdom ?
(Q18952564,P17,Q145)
action is_in
entity Q145
action find
entity Q18952564
relation P17
['Q18952564', 'P17', 'Q145']
ASK WHERE { resource:Q18952564 property:P17 resource:Q145 }
Member of the House of Lords United Kingdom
action is_in
entity United Kingdom
action find
entity Member of the House of Lords
relation country
['Member of the House of Lords', 'country', 'United Kingdom']
ASK WHERE { resource:Member_of_the_House_of_Lords property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q18952564,P17,Q145)
action is_in
entity Q145
action find
entity Q18952564
relation P17
[ANSWER]
['Q18952564', 'P17', 'Q145']
ASK WHERE { resource:Q18952564 property:P17 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity Member of the House of Lords
relation country
['Member of the House of Lords', 'country', 'United Kingdom']
ASK WHERE { resource:Member_of_the_House_of_Lords property:country resource:United_Kingdom }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1122277 Q10762848
P17
Q15617994
USER
Which administrative territories are Officer of the Order of the British Empire or Nedašov located in ?
OR((Q10762848,P17,c(Q15617994)), (Q1122277,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q10762848
relation P17
action find
entity Q1122277
relation P17
type Q15617994
{'OR': [['Q10762848', 'P17', {'concept': 'Q15617994'}], ['Q1122277', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q10762848 property:P17 ?f } UNION { resource:Q1122277 property:P17 ?f } } . ?f rdf:type ontology:Q15617994 }
Nedašov Officer of the Order of the British Empire
action filter_type
action union
action find
entity Officer of the Order of the British Empire
relation country
action find
entity Nedašov
relation country
type designation for an administrative territorial entity
{'OR': [['Officer of the Order of the British Empire', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Nedašov', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Officer_of_the_Order_of_the_British_Empire property:country ?f } UNION { resource:Nedašov property:country ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q213 Q145
SYSTEM
Czech Republic, United Kingdom
Q213 Q145
OR((Q10762848,P17,c(Q15617994)), (Q1122277,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q10762848
relation P17
action find
entity Q1122277
relation P17
type Q15617994
Located in the [ANSWERS]
{'OR': [['Q10762848', 'P17', {'concept': 'Q15617994'}], ['Q1122277', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q10762848 property:P17 ?f } UNION { resource:Q1122277 property:P17 ?f } } . ?f rdf:type ontology:Q15617994 }
Czech Republic United Kingdom
Located in the Czech Republic and United Kingdom
Czech Republic United Kingdom
action filter_type
action union
action find
entity Officer of the Order of the British Empire
relation country
action find
entity Nedašov
relation country
type designation for an administrative territorial entity
{'OR': [['Officer of the Order of the British Empire', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Nedašov', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Officer_of_the_Order_of_the_British_Empire property:country ?f } UNION { resource:Nedašov property:country ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q167023
P27
Q502895
USER
Are Karel Reisz a citizen of those administrative territories ?
(Q167023,P27,Q213) (Q167023,P27,Q145)
action is_in
entity prev_answer
action find
entity Q167023
relation P27
['Q167023', 'P27', 'Q213'] ['Q167023', 'P27', 'Q145']
ASK WHERE { resource:Q167023 property:P27 ?j . VALUES ( ?j ) { ( resource:Q213 ) ( resource:Q145 ) } }
Karel Reisz
action is_in
entity prev_answer
action find
entity Karel Reisz
relation country of citizenship
['Karel Reisz', 'country of citizenship', 'Czech Republic'] ['Karel Reisz', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:Karel_Reisz property:country_of_citizenship ?j . VALUES ( ?j ) { ( resource:Czech_Republic ) ( resource:United_Kingdom ) } }
[]
common name
SYSTEM
YES
(Q167023,P27,Q213) (Q167023,P27,Q145)
action is_in
entity prev_answer
action find
entity Q167023
relation P27
[ANSWER]
['Q167023', 'P27', 'Q213'] ['Q167023', 'P27', 'Q145']
ASK WHERE { resource:Q167023 property:P27 ?j . VALUES ( ?j ) { ( resource:Q213 ) ( resource:Q145 ) } }
Yes
action is_in
entity prev_answer
action find
entity Karel Reisz
relation country of citizenship
['Karel Reisz', 'country of citizenship', 'Czech Republic'] ['Karel Reisz', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:Karel_Reisz property:country_of_citizenship ?j . VALUES ( ?j ) { ( resource:Czech_Republic ) ( resource:United_Kingdom ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q145 Q2028660 Q2702959
P530
Q1048835
USER
Does United Kingdom have ambassadorial relations with Irauçuba and Challhuahuacho District ?
(Q145,P530,Q2028660) (Q145,P530,Q2702959)
action is_in
entity Q145
action intersection
action find_reverse
entity Q2028660
relation P530
action find_reverse
entity Q2702959
relation P530
['Q145', 'P530', 'Q2028660'] ['Q145', 'P530', 'Q2702959']
ASK WHERE { resource:Q145 property:P530 resource:Q2702959 . resource:Q145 property:P530 resource:Q2028660 }
United Kingdom Irauçuba Challhuahuacho District
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Irauçuba
relation diplomatic relation
action find_reverse
entity Challhuahuacho District
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'Irauçuba'] ['United Kingdom', 'diplomatic relation', 'Challhuahuacho District']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:Challhuahuacho_District . resource:United_Kingdom property:diplomatic_relation resource:Irauçuba }
[]
political territorial entity
SYSTEM
NO
(Q145,P530,Q2028660) (Q145,P530,Q2702959)
action is_in
entity Q145
action intersection
action find_reverse
entity Q2028660
relation P530
action find_reverse
entity Q2702959
relation P530
[ANSWER]
['Q145', 'P530', 'Q2028660'] ['Q145', 'P530', 'Q2702959']
ASK WHERE { resource:Q145 property:P530 resource:Q2702959 . resource:Q145 property:P530 resource:Q2028660 }
No
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Irauçuba
relation diplomatic relation
action find_reverse
entity Challhuahuacho District
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'Irauçuba'] ['United Kingdom', 'diplomatic relation', 'Challhuahuacho District']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:Challhuahuacho_District . resource:United_Kingdom property:diplomatic_relation resource:Irauçuba }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4977381 Q7825635
P27 P17
Q15617994
USER
Which administrative territories are Tore Killingland a civilian of or do Pomlewo belong to ?
OR((Q7825635,P27,c(Q15617994)), (Q4977381,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7825635
relation P27
action find
entity Q4977381
relation P17
type Q15617994
{'OR': [['Q7825635', 'P27', {'concept': 'Q15617994'}], ['Q4977381', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . { { resource:Q7825635 property:P27 ?p } UNION { resource:Q4977381 property:P17 ?p } } }
Pomlewo Tore Killingland
action filter_type
action union
action find
entity Tore Killingland
relation country of citizenship
action find
entity Pomlewo
relation country
type designation for an administrative territorial entity
{'OR': [['Tore Killingland', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pomlewo', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Tore_Killingland property:country_of_citizenship ?p } UNION { resource:Pomlewo property:country ?p } } }
[]
designation for an administrative territorial entity
Q20 Q36
SYSTEM
Norway, Poland
Q20 Q36
OR((Q7825635,P27,c(Q15617994)), (Q4977381,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7825635
relation P27
action find
entity Q4977381
relation P17
type Q15617994
[ANSWERS] are Tore Killingland a civilian of or do Pomlewo belong to
{'OR': [['Q7825635', 'P27', {'concept': 'Q15617994'}], ['Q4977381', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . { { resource:Q7825635 property:P27 ?p } UNION { resource:Q4977381 property:P17 ?p } } }
Norway Poland
Norway and Poland are Tore Killingland a civilian of or do Pomlewo belong to
Norway Poland
action filter_type
action union
action find
entity Tore Killingland
relation country of citizenship
action find
entity Pomlewo
relation country
type designation for an administrative territorial entity
{'OR': [['Tore Killingland', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pomlewo', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Tore_Killingland property:country_of_citizenship ?p } UNION { resource:Pomlewo property:country ?p } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P530
Q1048835 Q15617994
USER
How many political territories or administrative territories holds diplomatic relationship with that administrative territory ?
(Q36,P530,c(Q1048835)) (Q36,P530,c(Q15617994)) (Q20,P530,c(Q1048835)) (Q20,P530,c(Q15617994)) (Q36,P530,c(Q1048835)) (Q36,P530,c(Q15617994))
['Q36', 'P530', {'concept': 'Q1048835'}] ['Q36', 'P530', {'concept': 'Q15617994'}] ['Q20', 'P530', {'concept': 'Q1048835'}] ['Q20', 'P530', {'concept': 'Q15617994'}] ['Q36', 'P530', {'concept': 'Q1048835'}] ['Q36', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q7208890 property:P530 ?z } UNION { resource:Q7208890 property:P530 ?y } UNION { resource:Q7060816 property:P530 ?z } UNION { resource:Q7060816 property:P530 ?y } UNION { resource:Q7208890 property:P530 ?z } UNION { resource:Q7208890 property:P530 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 }
['Poland', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Poland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Norway', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Norway', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Poland', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Poland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Poland property:diplomatic_relation ?z } UNION { resource:Poland property:diplomatic_relation ?y } UNION { resource:Norway property:diplomatic_relation ?z } UNION { resource:Norway property:diplomatic_relation ?y } UNION { resource:Poland property:diplomatic_relation ?z } UNION { resource:Poland property:diplomatic_relation ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
political territorial entity designation for an administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q20
SYSTEM
Did you mean Norway ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q7208890 property:P530 ?z } UNION { resource:Q7208890 property:P530 ?y } UNION { resource:Q7060816 property:P530 ?z } UNION { resource:Q7060816 property:P530 ?y } UNION { resource:Q7208890 property:P530 ?z } UNION { resource:Q7208890 property:P530 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 }
Did you mean Norway ?
Norway
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Poland property:diplomatic_relation ?z } UNION { resource:Poland property:diplomatic_relation ?y } UNION { resource:Norway property:diplomatic_relation ?z } UNION { resource:Norway property:diplomatic_relation ?y } UNION { resource:Poland property:diplomatic_relation ?z } UNION { resource:Poland property:diplomatic_relation ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Poland. Could you tell me the answer for that?
(Q36,P530,c(Q1048835)) (Q36,P530,c(Q15617994)) (Q20,P530,c(Q1048835)) (Q20,P530,c(Q15617994)) (Q36,P530,c(Q1048835)) (Q36,P530,c(Q15617994))
Q36
['Q36', 'P530', {'concept': 'Q1048835'}] ['Q36', 'P530', {'concept': 'Q15617994'}] ['Q20', 'P530', {'concept': 'Q1048835'}] ['Q20', 'P530', {'concept': 'Q15617994'}] ['Q36', 'P530', {'concept': 'Q1048835'}] ['Q36', 'P530', {'concept': 'Q15617994'}]
['Poland', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Poland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Norway', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Norway', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Poland', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Poland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
5
Q155 Q408 Q16 Q38 Q183
(Q36,P530,c(Q1048835)) (Q36,P530,c(Q15617994)) (Q20,P530,c(Q1048835)) (Q20,P530,c(Q15617994)) (Q36,P530,c(Q1048835)) (Q36,P530,c(Q15617994))
[ANSWER]
['Q36', 'P530', {'concept': 'Q1048835'}] ['Q36', 'P530', {'concept': 'Q15617994'}] ['Q20', 'P530', {'concept': 'Q1048835'}] ['Q20', 'P530', {'concept': 'Q15617994'}] ['Q36', 'P530', {'concept': 'Q1048835'}] ['Q36', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q7208890 property:P530 ?z } UNION { resource:Q7208890 property:P530 ?y } UNION { resource:Q7060816 property:P530 ?z } UNION { resource:Q7060816 property:P530 ?y } UNION { resource:Q7208890 property:P530 ?z } UNION { resource:Q7208890 property:P530 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 }
Brazil Australia Canada Italy Germany
5
['Poland', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Poland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Norway', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Norway', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Poland', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Poland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Poland property:diplomatic_relation ?z } UNION { resource:Poland property:diplomatic_relation ?y } UNION { resource:Norway property:diplomatic_relation ?z } UNION { resource:Norway property:diplomatic_relation ?y } UNION { resource:Poland property:diplomatic_relation ?z } UNION { resource:Poland property:diplomatic_relation ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]