Simple Question (Direct)
Simple Question
Q207879
P119
Q43229
USER
Where was Andrei Zhdanov buried ?
(Q207879,P119,c(Q43229))
action filter_type
action find
entity Q207879
relation P119
type Q43229
['Q207879', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?n WHERE { resource:Q207879 property:P119 ?n . ?n rdf:type ontology:Q43229 }
Andrei Zhdanov
action filter_type
action find
entity Andrei Zhdanov
relation place of burial
type organization
['Andrei Zhdanov', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?n WHERE { resource:Andrei_Zhdanov property:place_of_burial ?n . ?n rdf:type ontology:organization }
[]
organization
Q1130019
SYSTEM
Kremlin Wall Necropolis
Q1130019
(Q207879,P119,c(Q43229))
action filter_type
action find
entity Q207879
relation P119
type Q43229
Andrei Zhdanov was buried in [ANSWER]
['Q207879', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?n WHERE { resource:Q207879 property:P119 ?n . ?n rdf:type ontology:Q43229 }
Kremlin Wall Necropolis
Andrei Zhdanov was buried in Kremlin Wall Necropolis
Kremlin Wall Necropolis
action filter_type
action find
entity Andrei Zhdanov
relation place of burial
type organization
['Andrei Zhdanov', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?n WHERE { resource:Andrei_Zhdanov property:place_of_burial ?n . ?n rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q207879
P410
Q4189293
USER
Which title was the military rank held by that person ?
(Q1130019,P410,c(Q4189293))
action filter_type
action find
entity Q207879
relation P410
type Q4189293
['Q1130019', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q4189293 . resource:Q207879 property:P410 ?s }
Andrei Zhdanov
action filter_type
action find
entity Andrei Zhdanov
relation military rank
type title
['Kremlin Wall Necropolis', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:title . resource:Andrei_Zhdanov property:military_rank ?s }
[]
title
Q155327
SYSTEM
colonel general
Q155327
(Q1130019,P410,c(Q4189293))
action filter_type
action find
entity Q207879
relation P410
type Q4189293
Army [ANSWER] was the military rank held by that person
['Q1130019', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q4189293 . resource:Q207879 property:P410 ?s }
colonel general
Army colonel general was the military rank held by that person
colonel general
action filter_type
action find
entity Andrei Zhdanov
relation military rank
type title
['Kremlin Wall Necropolis', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:title . resource:Andrei_Zhdanov property:military_rank ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1130019
P17
Q15617994
USER
Which administrative territory is Kremlin Wall Necropolis a part of ?
(Q1130019,P17,c(Q15617994))
action filter_type
action find
entity Q1130019
relation P17
type Q15617994
['Q1130019', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q1130019 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Kremlin Wall Necropolis
action filter_type
action find
entity Kremlin Wall Necropolis
relation country
type designation for an administrative territorial entity
['Kremlin Wall Necropolis', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Kremlin_Wall_Necropolis property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
(Q1130019,P17,c(Q15617994))
action filter_type
action find
entity Q1130019
relation P17
type Q15617994
[ANSWER] is Kremlin Wall Necropolis a part of
['Q1130019', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q1130019 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Russia
Russia is Kremlin Wall Necropolis a part of
Russia
action filter_type
action find
entity Kremlin Wall Necropolis
relation country
type designation for an administrative territorial entity
['Kremlin Wall Necropolis', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Kremlin_Wall_Necropolis property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1840604
Q15617994
USER
And what about Kapera?
(Q1840604,P17,c(Q15617994))
action filter_type
action find
entity Q1840604
relation P17
type Q15617994
['Q1840604', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q1840604 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
Kapera
action filter_type
action find
entity Kapera
relation country
type designation for an administrative territorial entity
['Kapera', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Kapera property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q191
SYSTEM
Estonia
Q191
(Q1840604,P17,c(Q15617994))
action filter_type
action find
entity Q1840604
relation P17
type Q15617994
[ANSWER]
['Q1840604', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q1840604 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
Estonia
Estonia
action filter_type
action find
entity Kapera
relation country
type designation for an administrative territorial entity
['Kapera', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Kapera property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
Which administrative territories did lesser number of releases originate than that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find_reverse
entity Q191
relation P495
type Q2031291
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?h ) AS ?k ) WHERE { ?h property:P495 ?f . ?f rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q2031291 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:P495 resource:Q191 . ?p rdf:type ontology:Q2031291 } } . FILTER ( ?k < ?o ) }
action less
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find_reverse
entity Estonia
relation country of origin
type release
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?h ) AS ?k ) WHERE { ?h property:country_of_origin ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:release } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:country_of_origin resource:Estonia . ?p rdf:type ontology:release } } . FILTER ( ?k < ?o ) }
[]
designation for an administrative territorial entity release
Q230 Q953 Q184
SYSTEM
Georgia, Zambia, Belarus
Q805 Q804 Q800 Q1462 Q419 Q12536 Q262 Q783 Q265 Q37 Q36678 Q711 Q717 Q1460 Q399 Q398 Q403 Q657 Q45 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q958 Q881 Q986 Q822 Q241 Q244 Q811 Q153136 Q32 Q924 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q1045 Q1044 Q1041 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q115 Q114 Q117 Q754 Q750 Q212 Q211 Q217 Q214 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q869 Q953
(c(Q2031291),P495,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find_reverse
entity Q191
relation P495
type Q2031291
Lesser number of releases originated in [ANSWERS] than that administrative territory
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?h ) AS ?k ) WHERE { ?h property:P495 ?f . ?f rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q2031291 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:P495 resource:Q191 . ?p rdf:type ontology:Q2031291 } } . FILTER ( ?k < ?o ) }
Yemen Panama Costa Rica Sardinia Peru Abbasid caliphate Algeria Honduras Uzbekistan Lithuania West Bank Mongolia Venezuela Sicily Armenia Bahrain Serbia Chad Portugal El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Sudan Vietnam Eritrea Lebanon Cuba Barbados Nicaragua Habsburg Empire Luxembourg Tanzania Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Somalia Sierra Leone Senegal Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Latvia Republic of Moldova Slovakia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Thailand Zambia
Lesser number of releases originated in Georgia, Zambia and Belarus than that administrative territory
Georgia Zambia Belarus
action less
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find_reverse
entity Estonia
relation country of origin
type release
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?h ) AS ?k ) WHERE { ?h property:country_of_origin ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:release } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:country_of_origin resource:Estonia . ?p rdf:type ontology:release } } . FILTER ( ?k < ?o ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q230 Q953 Q184
P36
Q56061
USER
Which administrative territories are associated to Georgia, Zambia and Belarus as the capital ?
(Q230,P36,c(Q56061)) (Q953,P36,c(Q56061)) (Q184,P36,c(Q56061))
action union
action filter_type
action find
entity Q230
relation P36
type Q56061
action filter_type
action find
entity Q953
relation P36
type Q56061
action filter_type
action find
entity Q184
relation P36
type Q56061
['Q230', 'P36', {'concept': 'Q56061'}] ['Q953', 'P36', {'concept': 'Q56061'}] ['Q184', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { { resource:Q230 property:P36 ?t . ?t rdf:type ontology:Q56061 } UNION { resource:Q953 property:P36 ?t . ?t rdf:type ontology:Q56061 } }
Georgia Zambia Belarus
action union
action filter_type
action find
entity Georgia
relation capital
type administrative territorial entity
action filter_type
action find
entity Zambia
relation capital
type administrative territorial entity
action filter_type
action find
entity Belarus
relation capital
type administrative territorial entity
['Georgia', 'capital', {'concept': 'administrative territorial entity'}] ['Zambia', 'capital', {'concept': 'administrative territorial entity'}] ['Belarus', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { resource:Georgia property:capital ?t . ?t rdf:type ontology:administrative_territorial_entity } UNION { resource:Zambia property:capital ?t . ?t rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q2280 Q994 Q172415
SYSTEM
Minsk, Tbilisi, Kutaisi
Q994 Q172415 Q3881 Q2280
(Q230,P36,c(Q56061)) (Q953,P36,c(Q56061)) (Q184,P36,c(Q56061))
action union
action filter_type
action find
entity Q230
relation P36
type Q56061
action filter_type
action find
entity Q953
relation P36
type Q56061
action filter_type
action find
entity Q184
relation P36
type Q56061
[ANSWERS] are associated to Georgia, Zambia and Belarus as the capital
['Q230', 'P36', {'concept': 'Q56061'}] ['Q953', 'P36', {'concept': 'Q56061'}] ['Q184', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { { resource:Q230 property:P36 ?t . ?t rdf:type ontology:Q56061 } UNION { resource:Q953 property:P36 ?t . ?t rdf:type ontology:Q56061 } }
Tbilisi Kutaisi Lusaka Minsk
Minsk, Tbilisi and Kutaisi are associated to Georgia, Zambia and Belarus as the capital
Minsk Tbilisi Kutaisi
action union
action filter_type
action find
entity Georgia
relation capital
type administrative territorial entity
action filter_type
action find
entity Zambia
relation capital
type administrative territorial entity
action filter_type
action find
entity Belarus
relation capital
type administrative territorial entity
['Georgia', 'capital', {'concept': 'administrative territorial entity'}] ['Zambia', 'capital', {'concept': 'administrative territorial entity'}] ['Belarus', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { resource:Georgia property:capital ?t . ?t rdf:type ontology:administrative_territorial_entity } UNION { resource:Zambia property:capital ?t . ?t rdf:type ontology:administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2280
P915
Q838948
USER
Which works of art had that administrative territory as their location of filming ?
(c(Q838948),P915,Q2280)
action filter_type
action find_reverse
entity Q2280
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q2280']
SELECT DISTINCT ?l WHERE { ?l property:P915 resource:Q2280 . ?l rdf:type ontology:Q838948 }
Minsk
action filter_type
action find_reverse
entity Minsk
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Minsk']
SELECT DISTINCT ?l WHERE { ?l property:filming_location resource:Minsk . ?l rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q172415
SYSTEM
Did you mean Kutaisi ?
Q2280 Q994 Q172415
(c(Q838948),P915,Q2280) (c(Q838948),P915,Q994) (c(Q838948),P915,Q172415)
[ANSWER]
[{'concept': 'Q838948'}, 'P915', 'Q2280'] [{'concept': 'Q838948'}, 'P915', 'Q994'] [{'concept': 'Q838948'}, 'P915', 'Q172415']
SELECT DISTINCT ?l WHERE { ?l property:P915 resource:Q2280 . ?l rdf:type ontology:Q838948 }
Minsk Tbilisi Kutaisi
Did you mean Kutaisi ?
Kutaisi
[{'concept': 'work of art'}, 'filming location', 'Minsk'] [{'concept': 'work of art'}, 'filming location', 'Tbilisi'] [{'concept': 'work of art'}, 'filming location', 'Kutaisi']
SELECT DISTINCT ?l WHERE { ?l property:filming_location resource:Minsk . ?l rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
No, I meant Minsk. Could you tell me the answer for that?
(c(Q838948),P915,Q2280)
Q2280
[{'concept': 'Q838948'}, 'P915', 'Q2280']
[{'concept': 'work of art'}, 'filming location', 'Minsk']
[]
Q4191046 Q1962112 Q2164258
SYSTEM
Nature Unleashed: Earthquake, Stilyagi, Spy
Q4191046 Q1962112 Q2164258
(c(Q838948),P915,Q2280)
action filter_type
action find_reverse
entity Q2280
relation P915
type Q838948
[ANSWERS] had that administrative territory as their location of filming
[{'concept': 'Q838948'}, 'P915', 'Q2280']
SELECT DISTINCT ?l WHERE { ?l property:P915 resource:Q2280 . ?l rdf:type ontology:Q838948 }
Nature Unleashed: Earthquake Stilyagi Spy
Nature Unleashed: Earthquake, Stilyagi and Spy had that administrative territory as their location of filming
Nature Unleashed: Earthquake Stilyagi Spy
action filter_type
action find_reverse
entity Minsk
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Minsk']
SELECT DISTINCT ?l WHERE { ?l property:filming_location resource:Minsk . ?l rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3870615 Q1962112
P19 P915
Q56061
USER
Which administrative territories were Stilyagi filmed or are the places of birth of Natale Mondo ?
OR((Q1962112,P915,c(Q56061)), (Q3870615,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1962112
relation P915
action find
entity Q3870615
relation P19
type Q56061
{'OR': [['Q1962112', 'P915', {'concept': 'Q56061'}], ['Q3870615', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1962112 property:P915 ?h } UNION { resource:Q3870615 property:P19 ?h } } . ?h rdf:type ontology:Q56061 }
Natale Mondo Stilyagi
action filter_type
action union
action find
entity Stilyagi
relation filming location
action find
entity Natale Mondo
relation place of birth
type administrative territorial entity
{'OR': [['Stilyagi', 'filming location', {'concept': 'administrative territorial entity'}], ['Natale Mondo', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Stilyagi property:filming_location ?h } UNION { resource:Natale_Mondo property:place_of_birth ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2280 Q2656
SYSTEM
Minsk, Palermo
Q2280 Q2656
OR((Q1962112,P915,c(Q56061)), (Q3870615,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1962112
relation P915
action find
entity Q3870615
relation P19
type Q56061
Stilyagi were filmed in [ANSWERS] or are the places of birth of Natale Mondo
{'OR': [['Q1962112', 'P915', {'concept': 'Q56061'}], ['Q3870615', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1962112 property:P915 ?h } UNION { resource:Q3870615 property:P19 ?h } } . ?h rdf:type ontology:Q56061 }
Minsk Palermo
Stilyagi were filmed in Minsk and Palermo or are the places of birth of Natale Mondo
Minsk Palermo
action filter_type
action union
action find
entity Stilyagi
relation filming location
action find
entity Natale Mondo
relation place of birth
type administrative territorial entity
{'OR': [['Stilyagi', 'filming location', {'concept': 'administrative territorial entity'}], ['Natale Mondo', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Stilyagi property:filming_location ?h } UNION { resource:Natale_Mondo property:place_of_birth ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5107943 Q2164258
P19 P915
Q56061
USER
Which administrative territories were the locations of filming Spy or are the birthplace of Chris Rowney ?
OR((Q2164258,P915,c(Q56061)), (Q5107943,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2164258
relation P915
action find
entity Q5107943
relation P19
type Q56061
{'OR': [['Q2164258', 'P915', {'concept': 'Q56061'}], ['Q5107943', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q2164258 property:P915 ?q } UNION { resource:Q5107943 property:P19 ?q } } . ?q rdf:type ontology:Q56061 }
Chris Rowney Spy
action filter_type
action union
action find
entity Spy
relation filming location
action find
entity Chris Rowney
relation place of birth
type administrative territorial entity
{'OR': [['Spy', 'filming location', {'concept': 'administrative territorial entity'}], ['Chris Rowney', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Spy property:filming_location ?q } UNION { resource:Chris_Rowney property:place_of_birth ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q18125 Q2280
SYSTEM
Manchester, Minsk
Q18125 Q2280
OR((Q2164258,P915,c(Q56061)), (Q5107943,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2164258
relation P915
action find
entity Q5107943
relation P19
type Q56061
[ANSWERS] were the locations of filming Spy or are the birthplace of Chris Rowney
{'OR': [['Q2164258', 'P915', {'concept': 'Q56061'}], ['Q5107943', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q2164258 property:P915 ?q } UNION { resource:Q5107943 property:P19 ?q } } . ?q rdf:type ontology:Q56061 }
Manchester Minsk
Manchester and Minsk were the locations of filming Spy or are the birthplace of Chris Rowney
Manchester Minsk
action filter_type
action union
action find
entity Spy
relation filming location
action find
entity Chris Rowney
relation place of birth
type administrative territorial entity
{'OR': [['Spy', 'filming location', {'concept': 'administrative territorial entity'}], ['Chris Rowney', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Spy property:filming_location ?q } UNION { resource:Chris_Rowney property:place_of_birth ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q191
P47
Q15617994
USER
Which administrative territories are next to the border of Estonia ?
(c(Q15617994),P47,Q191)
action filter_type
action find
entity Q191
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q191']
SELECT DISTINCT ?l WHERE { resource:Q191 property:P47 ?l . ?l rdf:type ontology:Q15617994 }
Estonia
action filter_type
action find
entity Estonia
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Estonia']
SELECT DISTINCT ?l WHERE { resource:Estonia property:shares_border_with ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q211 Q159
SYSTEM
Latvia, Russia
Q211 Q159
(c(Q15617994),P47,Q191)
action filter_type
action find
entity Q191
relation P47
type Q15617994
[ANSWERS] are next to the border of Estonia
[{'concept': 'Q15617994'}, 'P47', 'Q191']
SELECT DISTINCT ?l WHERE { resource:Q191 property:P47 ?l . ?l rdf:type ontology:Q15617994 }
Latvia Russia
Latvia and Russia are next to the border of Estonia
Latvia Russia
action filter_type
action find
entity Estonia
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Estonia']
SELECT DISTINCT ?l WHERE { resource:Estonia property:shares_border_with ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]