Simple Question (Direct)
Simple Question
Q7526312
P102
Q7210356
USER
Which political organization is Sir Charles Warde, 1st Baronet a member of ?
(Q7526312,P102,c(Q7210356))
action filter_type
action find
entity Q7526312
relation P102
type Q7210356
['Q7526312', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?g WHERE { resource:Q7526312 property:P102 ?g . ?g rdf:type ontology:Q7210356 }
Sir Charles Warde, 1st Baronet
action filter_type
action find
entity Sir Charles Warde, 1st Baronet
relation member of political party
type political organization
['Sir Charles Warde, 1st Baronet', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?g WHERE { resource:Sir_Charles_Warde,_1st_Baronet property:member_of_political_party ?g . ?g rdf:type ontology:political_organization }
[]
political organization
Q9626
SYSTEM
Conservative Party
Q9626
(Q7526312,P102,c(Q7210356))
action filter_type
action find
entity Q7526312
relation P102
type Q7210356
The [ANSWER] is Sir Charles Warde, 1st Baronet a member of
['Q7526312', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?g WHERE { resource:Q7526312 property:P102 ?g . ?g rdf:type ontology:Q7210356 }
Conservative Party
The Conservative Party is Sir Charles Warde, 1st Baronet a member of
Conservative Party
action filter_type
action find
entity Sir Charles Warde, 1st Baronet
relation member of political party
type political organization
['Sir Charles Warde, 1st Baronet', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?g WHERE { resource:Sir_Charles_Warde,_1st_Baronet property:member_of_political_party ?g . ?g rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7526312
P937
Q56061
USER
Which is the work location of Sir Charles Warde, 1st Baronet ?
(Q7526312,P937,c(Q56061))
action filter_type
action find
entity Q7526312
relation P937
type Q56061
['Q7526312', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q7526312 property:P937 ?b . ?b rdf:type ontology:Q56061 }
Sir Charles Warde, 1st Baronet
action filter_type
action find
entity Sir Charles Warde, 1st Baronet
relation work location
type administrative territorial entity
['Sir Charles Warde, 1st Baronet', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Sir_Charles_Warde,_1st_Baronet property:work_location ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q7526312,P937,c(Q56061))
action filter_type
action find
entity Q7526312
relation P937
type Q56061
[ANSWER] is the work location of Sir Charles Warde, 1st Baronet
['Q7526312', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q7526312 property:P937 ?b . ?b rdf:type ontology:Q56061 }
London
London is the work location of Sir Charles Warde, 1st Baronet
London
action filter_type
action find
entity Sir Charles Warde, 1st Baronet
relation work location
type administrative territorial entity
['Sir Charles Warde, 1st Baronet', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Sir_Charles_Warde,_1st_Baronet property:work_location ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4227795
Q56061
USER
And also tell me about Sergey Kolesnikov?
(Q4227795,P937,c(Q56061))
action filter_type
action find
entity Q4227795
relation P937
type Q56061
['Q4227795', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q4227795 property:P937 ?x . ?x rdf:type ontology:Q56061 }
Sergey Kolesnikov
action filter_type
action find
entity Sergey Kolesnikov
relation work location
type administrative territorial entity
['Sergey Kolesnikov', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Sergey_Kolesnikov property:work_location ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649
SYSTEM
Moscow
Q649
(Q4227795,P937,c(Q56061))
action filter_type
action find
entity Q4227795
relation P937
type Q56061
[ANSWER]
['Q4227795', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q4227795 property:P937 ?x . ?x rdf:type ontology:Q56061 }
Moscow
Moscow
action filter_type
action find
entity Sergey Kolesnikov
relation work location
type administrative territorial entity
['Sergey Kolesnikov', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Sergey_Kolesnikov property:work_location ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q20676870 Q4227795
P27
Q15617994
USER
Which administrative territories are the native countriesof Sergey Kolesnikov or Salem Ould Habib ?
OR((Q4227795,P27,c(Q15617994)), (Q20676870,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4227795
relation P27
action find
entity Q20676870
relation P27
type Q15617994
{'OR': [['Q4227795', 'P27', {'concept': 'Q15617994'}], ['Q20676870', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q4227795 property:P27 ?k } UNION { resource:Q20676870 property:P27 ?k } } . ?k rdf:type ontology:Q15617994 }
Salem Ould Habib Sergey Kolesnikov
action filter_type
action union
action find
entity Sergey Kolesnikov
relation country of citizenship
action find
entity Salem Ould Habib
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Sergey Kolesnikov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Salem Ould Habib', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Sergey_Kolesnikov property:country_of_citizenship ?k } UNION { resource:Salem_Ould_Habib property:country_of_citizenship ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1025 Q159
SYSTEM
Mauritania, Russia
Q1025 Q159
OR((Q4227795,P27,c(Q15617994)), (Q20676870,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4227795
relation P27
action find
entity Q20676870
relation P27
type Q15617994
[ANSWERS] are the native countriesof Sergey Kolesnikov or Salem Ould Habib
{'OR': [['Q4227795', 'P27', {'concept': 'Q15617994'}], ['Q20676870', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q4227795 property:P27 ?k } UNION { resource:Q20676870 property:P27 ?k } } . ?k rdf:type ontology:Q15617994 }
Mauritania Russia
Mauritania and Russia are the native countriesof Sergey Kolesnikov or Salem Ould Habib
Mauritania Russia
action filter_type
action union
action find
entity Sergey Kolesnikov
relation country of citizenship
action find
entity Salem Ould Habib
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Sergey Kolesnikov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Salem Ould Habib', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Sergey_Kolesnikov property:country_of_citizenship ?k } UNION { resource:Salem_Ould_Habib property:country_of_citizenship ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1025 Q159
P85
Q484692
USER
Which are the national anthems of Mauritania and Russia ?
(Q1025,P85,c(Q484692)) (Q159,P85,c(Q484692))
action union
action filter_type
action find
entity Q1025
relation P85
type Q484692
action filter_type
action find
entity Q159
relation P85
type Q484692
['Q1025', 'P85', {'concept': 'Q484692'}] ['Q159', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?f WHERE { { resource:Q159 property:P85 ?f . ?f rdf:type ontology:Q484692 } UNION { resource:Q1025 property:P85 ?f . ?f rdf:type ontology:Q484692 } }
Mauritania Russia
action union
action filter_type
action find
entity Mauritania
relation anthem
type hymn
action filter_type
action find
entity Russia
relation anthem
type hymn
['Mauritania', 'anthem', {'concept': 'hymn'}] ['Russia', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?f WHERE { { resource:Russia property:anthem ?f . ?f rdf:type ontology:hymn } UNION { resource:Mauritania property:anthem ?f . ?f rdf:type ontology:hymn } }
[]
hymn
Q845284 Q2058180 Q1225991
SYSTEM
National anthem of Mauritania, Patrioticheskaya Pesnya, National Anthem of Russia
Q845284 Q2058180 Q1225991
(Q1025,P85,c(Q484692)) (Q159,P85,c(Q484692))
action union
action filter_type
action find
entity Q1025
relation P85
type Q484692
action filter_type
action find
entity Q159
relation P85
type Q484692
The national anthems of Mauritania and Russia are the [ANSWERS]
['Q1025', 'P85', {'concept': 'Q484692'}] ['Q159', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?f WHERE { { resource:Q159 property:P85 ?f . ?f rdf:type ontology:Q484692 } UNION { resource:Q1025 property:P85 ?f . ?f rdf:type ontology:Q484692 } }
National anthem of Mauritania Patrioticheskaya Pesnya National Anthem of Russia
The national anthems of Mauritania and Russia are the National anthem of Mauritania, Patrioticheskaya Pesnya and National Anthem of Russia
National anthem of Mauritania Patrioticheskaya Pesnya National Anthem of Russia
action union
action filter_type
action find
entity Mauritania
relation anthem
type hymn
action filter_type
action find
entity Russia
relation anthem
type hymn
['Mauritania', 'anthem', {'concept': 'hymn'}] ['Russia', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?f WHERE { { resource:Russia property:anthem ?f . ?f rdf:type ontology:hymn } UNION { resource:Mauritania property:anthem ?f . ?f rdf:type ontology:hymn } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q845284 Q2058180 Q1225991
P800
Q502895
USER
Who have National anthem of Mauritania, Patrioticheskaya Pesnya and National Anthem of Russia as their notable work ?
(c(Q502895),P800,Q845284) (c(Q502895),P800,Q2058180) (c(Q502895),P800,Q1225991)
action union
action filter_type
action find_reverse
entity Q845284
relation P800
type Q502895
action filter_type
action find_reverse
entity Q2058180
relation P800
type Q502895
action filter_type
action find_reverse
entity Q1225991
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q845284'] [{'concept': 'Q502895'}, 'P800', 'Q2058180'] [{'concept': 'Q502895'}, 'P800', 'Q1225991']
SELECT DISTINCT ?i WHERE { { ?i property:P800 resource:Q845284 . ?i rdf:type ontology:Q502895 } UNION { ?i property:P800 resource:Q2058180 . ?i rdf:type ontology:Q502895 } }
National anthem of Mauritania Patrioticheskaya Pesnya National Anthem of Russia
action union
action filter_type
action find_reverse
entity National anthem of Mauritania
relation notable work
type common name
action filter_type
action find_reverse
entity Patrioticheskaya Pesnya
relation notable work
type common name
action filter_type
action find_reverse
entity National Anthem of Russia
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'National anthem of Mauritania'] [{'concept': 'common name'}, 'notable work', 'Patrioticheskaya Pesnya'] [{'concept': 'common name'}, 'notable work', 'National Anthem of Russia']
SELECT DISTINCT ?i WHERE { { ?i property:notable_work resource:National_anthem_of_Mauritania . ?i rdf:type ontology:common_name } UNION { ?i property:notable_work resource:Patrioticheskaya_Pesnya . ?i rdf:type ontology:common_name } }
[]
common name
Q944731 Q181885 Q319708
SYSTEM
Tolia Nikiprowetzky, Mikhail Glinka, Alexander Vasilyevich Alexandrov
Q944731 Q181885 Q319708
(c(Q502895),P800,Q845284) (c(Q502895),P800,Q2058180) (c(Q502895),P800,Q1225991)
action union
action filter_type
action find_reverse
entity Q845284
relation P800
type Q502895
action filter_type
action find_reverse
entity Q2058180
relation P800
type Q502895
action filter_type
action find_reverse
entity Q1225991
relation P800
type Q502895
[ANSWERS] have National anthem of Mauritania, Patrioticheskaya Pesnya and National Anthem of Russia as their notable work
[{'concept': 'Q502895'}, 'P800', 'Q845284'] [{'concept': 'Q502895'}, 'P800', 'Q2058180'] [{'concept': 'Q502895'}, 'P800', 'Q1225991']
SELECT DISTINCT ?i WHERE { { ?i property:P800 resource:Q845284 . ?i rdf:type ontology:Q502895 } UNION { ?i property:P800 resource:Q2058180 . ?i rdf:type ontology:Q502895 } }
Tolia Nikiprowetzky Mikhail Glinka Alexander Vasilyevich Alexandrov
Tolia Nikiprowetzky, Mikhail Glinka and Alexander Vasilyevich Alexandrov have National anthem of Mauritania, Patrioticheskaya Pesnya and National Anthem of Russia as their notable work
Tolia Nikiprowetzky Mikhail Glinka Alexander Vasilyevich Alexandrov
action union
action filter_type
action find_reverse
entity National anthem of Mauritania
relation notable work
type common name
action filter_type
action find_reverse
entity Patrioticheskaya Pesnya
relation notable work
type common name
action filter_type
action find_reverse
entity National Anthem of Russia
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'National anthem of Mauritania'] [{'concept': 'common name'}, 'notable work', 'Patrioticheskaya Pesnya'] [{'concept': 'common name'}, 'notable work', 'National Anthem of Russia']
SELECT DISTINCT ?i WHERE { { ?i property:notable_work resource:National_anthem_of_Mauritania . ?i rdf:type ontology:common_name } UNION { ?i property:notable_work resource:Patrioticheskaya_Pesnya . ?i rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q845284
P86
Q502895
USER
Who did the compostion for that hymn ?
(Q845284,P86,c(Q502895))
action filter_type
action find
entity Q845284
relation P86
type Q502895
['Q845284', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q845284 property:P86 ?c . ?c rdf:type ontology:Q502895 }
National anthem of Mauritania
action filter_type
action find
entity National anthem of Mauritania
relation composer
type common name
['National anthem of Mauritania', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:National_anthem_of_Mauritania property:composer ?c . ?c rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q845284
SYSTEM
Did you mean National anthem of Mauritania ?
Q944731 Q181885 Q319708
(Q944731,P86,c(Q502895)) (Q181885,P86,c(Q502895)) (Q319708,P86,c(Q502895))
[ANSWER]
['Q944731', 'P86', {'concept': 'Q502895'}] ['Q181885', 'P86', {'concept': 'Q502895'}] ['Q319708', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q845284 property:P86 ?c . ?c rdf:type ontology:Q502895 }
Tolia Nikiprowetzky Mikhail Glinka Alexander Vasilyevich Alexandrov
Did you mean National anthem of Mauritania ?
National anthem of Mauritania
['Tolia Nikiprowetzky', 'composer', {'concept': 'common name'}] ['Mikhail Glinka', 'composer', {'concept': 'common name'}] ['Alexander Vasilyevich Alexandrov', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:National_anthem_of_Mauritania property:composer ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q845284,P86,c(Q502895))
['Q845284', 'P86', {'concept': 'Q502895'}]
['National anthem of Mauritania', 'composer', {'concept': 'common name'}]
[]
Q944731
SYSTEM
Tolia Nikiprowetzky
Q944731
(Q845284,P86,c(Q502895))
action filter_type
action find
entity Q845284
relation P86
type Q502895
[ANSWER] did the compostion for that hymn
['Q845284', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q845284 property:P86 ?c . ?c rdf:type ontology:Q502895 }
Tolia Nikiprowetzky
Tolia Nikiprowetzky did the compostion for that hymn
Tolia Nikiprowetzky
action filter_type
action find
entity National anthem of Mauritania
relation composer
type common name
['National anthem of Mauritania', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:National_anthem_of_Mauritania property:composer ?c . ?c rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q159 Q2721946
P1444
Q22348500
USER
How many cycling race classes have Russia or Mur de Huy as their destination point ?
(c(Q22348500),P1444,Q159) (c(Q22348500),P1444,Q2721946)
action count
action union
action filter_type
action find_reverse
entity Q159
relation P1444
type Q22348500
action filter_type
action find_reverse
entity Q2721946
relation P1444
type Q22348500
[{'concept': 'Q22348500'}, 'P1444', 'Q159'] [{'concept': 'Q22348500'}, 'P1444', 'Q2721946']
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l property:P1444 ?b . VALUES ( ?b ) { ( resource:Q159 ) ( resource:Q2721946 ) } }
Russia Mur de Huy
action count
action union
action filter_type
action find_reverse
entity Russia
relation destination point
type cycling race class defined by the International Cycling Union
action filter_type
action find_reverse
entity Mur de Huy
relation destination point
type cycling race class defined by the International Cycling Union
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', 'Russia'] [{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', 'Mur de Huy']
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l property:destination_point ?b . VALUES ( ?b ) { ( resource:Russia ) ( resource:Mur_de_Huy ) } }
[]
cycling race class defined by the International Cycling Union
SYSTEM
2
Q20033471 Q21856726
(c(Q22348500),P1444,Q159) (c(Q22348500),P1444,Q2721946)
action count
action union
action filter_type
action find_reverse
entity Q159
relation P1444
type Q22348500
action filter_type
action find_reverse
entity Q2721946
relation P1444
type Q22348500
[ANSWER]
[{'concept': 'Q22348500'}, 'P1444', 'Q159'] [{'concept': 'Q22348500'}, 'P1444', 'Q2721946']
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l property:P1444 ?b . VALUES ( ?b ) { ( resource:Q159 ) ( resource:Q2721946 ) } }
2016 La Flèche Wallonne 2016 La Flèche Wallonne Féminine
2
action count
action union
action filter_type
action find_reverse
entity Russia
relation destination point
type cycling race class defined by the International Cycling Union
action filter_type
action find_reverse
entity Mur de Huy
relation destination point
type cycling race class defined by the International Cycling Union
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', 'Russia'] [{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', 'Mur de Huy']
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l property:destination_point ?b . VALUES ( ?b ) { ( resource:Russia ) ( resource:Mur_de_Huy ) } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q159
P463
Q484652
USER
What were that administrative territory a member of ?
action filter_type
action find
entity Q159
relation P463
type Q484652
SELECT DISTINCT ?x WHERE { resource:Q159 property:P463 ?x . ?x rdf:type ontology:Q484652 }
Russia
action filter_type
action find
entity Russia
relation member of
type international organization
SELECT DISTINCT ?x WHERE { resource:Russia property:member_of ?x . ?x rdf:type ontology:international_organization }
[]
international organization
Q81299 Q19771 Q1065
SYSTEM
Organization for Security and Co-operation in Europe, G20, United Nations
Q81299 Q789769 Q8475 Q1065 Q19771 Q37143 Q674182 Q166110 Q1043527
action filter_type
action find
entity Q159
relation P463
type Q484652
The [ANSWERS] a member of
SELECT DISTINCT ?x WHERE { resource:Q159 property:P463 ?x . ?x rdf:type ontology:Q484652 }
Organization for Security and Co-operation in Europe Council of the Baltic Sea States Interpol United Nations G20 G8 Arctic Council Union State Multilateral Investment Guarantee Agency
The Organization for Security and Co-operation in Europe, G20 and United Nations a member of
Organization for Security and Co-operation in Europe G20 United Nations
action filter_type
action find
entity Russia
relation member of
type international organization
SELECT DISTINCT ?x WHERE { resource:Russia property:member_of ?x . ?x rdf:type ontology:international_organization }
[]