Simple Question (Direct)
Simple Question
Q467604
P102
Q7210356
USER
Which party is Edith Schippers affiliated with ?
(Q467604,P102,c(Q7210356))
action filter_type
action find
entity Q467604
relation P102
type Q7210356
['Q467604', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q467604 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Edith Schippers
action filter_type
action find
entity Edith Schippers
relation member of political party
type political organization
['Edith Schippers', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Edith_Schippers property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
political organization
Q239333
SYSTEM
People's Party for Freedom and Democracy
Q239333
(Q467604,P102,c(Q7210356))
action filter_type
action find
entity Q467604
relation P102
type Q7210356
Edith Schippers is affiliated with [ANSWER]
['Q467604', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q467604 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
People's Party for Freedom and Democracy
Edith Schippers is affiliated with People's Party for Freedom and Democracy
People's Party for Freedom and Democracy
action filter_type
action find
entity Edith Schippers
relation member of political party
type political organization
['Edith Schippers', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Edith_Schippers property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q467604
P710
Q625994
USER
Which convention was Edith Schippers a participant of ?
(c(Q625994),P710,Q467604)
action filter_type
action find_reverse
entity Q467604
relation P710
type Q625994
[{'concept': 'Q625994'}, 'P710', 'Q467604']
SELECT DISTINCT ?n WHERE { ?n property:P710 resource:Q467604 . ?n rdf:type ontology:Q625994 }
Edith Schippers
action filter_type
action find_reverse
entity Edith Schippers
relation participant
type convention
[{'concept': 'convention'}, 'participant', 'Edith Schippers']
SELECT DISTINCT ?n WHERE { ?n property:participant resource:Edith_Schippers . ?n rdf:type ontology:convention }
[]
convention
Q17144373
SYSTEM
2014 Bilderberg Conference
Q17144373
(c(Q625994),P710,Q467604)
action filter_type
action find_reverse
entity Q467604
relation P710
type Q625994
[ANSWER] was Edith Schippers a participant of
[{'concept': 'Q625994'}, 'P710', 'Q467604']
SELECT DISTINCT ?n WHERE { ?n property:P710 resource:Q467604 . ?n rdf:type ontology:Q625994 }
2014 Bilderberg Conference
2014 Bilderberg Conference was Edith Schippers a participant of
2014 Bilderberg Conference
action filter_type
action find_reverse
entity Edith Schippers
relation participant
type convention
[{'concept': 'convention'}, 'participant', 'Edith Schippers']
SELECT DISTINCT ?n WHERE { ?n property:participant resource:Edith_Schippers . ?n rdf:type ontology:convention }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17144373
P276
Q56061
USER
Where is that convention situated ?
(Q17144373,P276,c(Q56061))
action filter_type
action find
entity Q17144373
relation P276
type Q56061
['Q17144373', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q17144373 property:P276 ?q . ?q rdf:type ontology:Q56061 }
2014 Bilderberg Conference
action filter_type
action find
entity 2014 Bilderberg Conference
relation location
type administrative territorial entity
['2014 Bilderberg Conference', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:2014_Bilderberg_Conference property:location ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1748
SYSTEM
Copenhagen
Q1748
(Q17144373,P276,c(Q56061))
action filter_type
action find
entity Q17144373
relation P276
type Q56061
That convention is situated in [ANSWER]
['Q17144373', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q17144373 property:P276 ?q . ?q rdf:type ontology:Q56061 }
Copenhagen
That convention is situated in Copenhagen
Copenhagen
action filter_type
action find
entity 2014 Bilderberg Conference
relation location
type administrative territorial entity
['2014 Bilderberg Conference', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:2014_Bilderberg_Conference property:location ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1748
P921
Q7725634
USER
Which literary work is that administrative territory a main subject of ?
(c(Q7725634),P921,Q1748)
action filter_type
action find_reverse
entity Q1748
relation P921
type Q7725634
[{'concept': 'Q7725634'}, 'P921', 'Q1748']
SELECT DISTINCT ?k WHERE { ?k property:P921 resource:Q1748 . ?k rdf:type ontology:Q7725634 }
Copenhagen
action filter_type
action find_reverse
entity Copenhagen
relation main subject
type literary work
[{'concept': 'literary work'}, 'main subject', 'Copenhagen']
SELECT DISTINCT ?k WHERE { ?k property:main_subject resource:Copenhagen . ?k rdf:type ontology:literary_work }
[]
literary work
Q12010775
SYSTEM
Wonderful Copenhagen
Q12010775
(c(Q7725634),P921,Q1748)
action filter_type
action find_reverse
entity Q1748
relation P921
type Q7725634
[ANSWER] is that administrative territory a main subject of
[{'concept': 'Q7725634'}, 'P921', 'Q1748']
SELECT DISTINCT ?k WHERE { ?k property:P921 resource:Q1748 . ?k rdf:type ontology:Q7725634 }
Wonderful Copenhagen
Wonderful Copenhagen is that administrative territory a main subject of
Wonderful Copenhagen
action filter_type
action find_reverse
entity Copenhagen
relation main subject
type literary work
[{'concept': 'literary work'}, 'main subject', 'Copenhagen']
SELECT DISTINCT ?k WHERE { ?k property:main_subject resource:Copenhagen . ?k rdf:type ontology:literary_work }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2278897
Q7725634
USER
And how about The Warlord Chronicles?
(Q2278897,P921,c(Q7725634))
action filter_type
action find
entity Q2278897
relation P921
type Q7725634
['Q2278897', 'P921', {'concept': 'Q7725634'}]
SELECT DISTINCT ?m WHERE { resource:Q2278897 property:P921 ?m . ?m rdf:type ontology:Q7725634 }
The Warlord Chronicles
action filter_type
action find
entity The Warlord Chronicles
relation main subject
type literary work
['The Warlord Chronicles', 'main subject', {'concept': 'literary work'}]
SELECT DISTINCT ?m WHERE { resource:The_Warlord_Chronicles property:main_subject ?m . ?m rdf:type ontology:literary_work }
[]
literary work
Q507738
SYSTEM
Matter of Britain
Q507738
(Q2278897,P921,c(Q7725634))
action filter_type
action find
entity Q2278897
relation P921
type Q7725634
[ANSWER]
['Q2278897', 'P921', {'concept': 'Q7725634'}]
SELECT DISTINCT ?m WHERE { resource:Q2278897 property:P921 ?m . ?m rdf:type ontology:Q7725634 }
Matter of Britain
Matter of Britain
action filter_type
action find
entity The Warlord Chronicles
relation main subject
type literary work
['The Warlord Chronicles', 'main subject', {'concept': 'literary work'}]
SELECT DISTINCT ?m WHERE { resource:The_Warlord_Chronicles property:main_subject ?m . ?m rdf:type ontology:literary_work }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P85
Q7725634 Q15617994 Q7275
USER
Which literary works are the national anthems of max number of administrative territories and states ?
(c(Q15617994)|c(Q7275),P85,c(Q7725634))
action argmax
action union
action find_reverse_tuple_counts
relation P85
type Q7725634
type Q15617994
action find_reverse_tuple_counts
relation P85
type Q7725634
type Q7275
[[{'concept': 'Q15617994'}, {'concept': 'Q7275'}], 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?a ) { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?h ) WHERE { VALUES ( ?l ) { ( ontology:Q15617994 ) ( ontology:Q7275 ) } . ?k rdf:type ?l } GROUP BY ?z } } . FILTER ( ?y = ?a ) . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?y ) WHERE { ?o rdf:type ?p . VALUES ( ?p ) { ( ontology:Q15617994 ) ( ontology:Q7275 ) } } GROUP BY ?d } }
action argmax
action union
action find_reverse_tuple_counts
relation anthem
type literary work
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation anthem
type literary work
type state
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'state'}], 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?a ) { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?h ) WHERE { VALUES ( ?l ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:state ) } . ?k rdf:type ?l } GROUP BY ?z } } . FILTER ( ?y = ?a ) . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?y ) WHERE { ?o rdf:type ?p . VALUES ( ?p ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:state ) } } GROUP BY ?d } }
[]
literary work designation for an administrative territorial entity state
Q40807
SYSTEM
God Save the Queen
Q40807
(c(Q15617994)|c(Q7275),P85,c(Q7725634))
action argmax
action union
action find_reverse_tuple_counts
relation P85
type Q7725634
type Q15617994
action find_reverse_tuple_counts
relation P85
type Q7725634
type Q7275
God save the Queen is the national anthems of max number of administrative territories and states
[[{'concept': 'Q15617994'}, {'concept': 'Q7275'}], 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?a ) { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?h ) WHERE { VALUES ( ?l ) { ( ontology:Q15617994 ) ( ontology:Q7275 ) } . ?k rdf:type ?l } GROUP BY ?z } } . FILTER ( ?y = ?a ) . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?y ) WHERE { ?o rdf:type ?p . VALUES ( ?p ) { ( ontology:Q15617994 ) ( ontology:Q7275 ) } } GROUP BY ?d } }
God Save the Queen
God save the Queen is the national anthems of max number of administrative territories and states
God Save the Queen
action argmax
action union
action find_reverse_tuple_counts
relation anthem
type literary work
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation anthem
type literary work
type state
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'state'}], 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?a ) { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?h ) WHERE { VALUES ( ?l ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:state ) } . ?k rdf:type ?l } GROUP BY ?z } } . FILTER ( ?y = ?a ) . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?y ) WHERE { ?o rdf:type ?p . VALUES ( ?p ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:state ) } } GROUP BY ?d } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19561861 Q2278897
P50
Q502895
USER
Which people wrote The Warlord Chronicles or Medicine as a Profession for Women ?
OR((Q2278897,P50,c(Q502895)), (Q19561861,P50,c(Q502895)))
action filter_type
action union
action find
entity Q2278897
relation P50
action find
entity Q19561861
relation P50
type Q502895
{'OR': [['Q2278897', 'P50', {'concept': 'Q502895'}], ['Q19561861', 'P50', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . { ?u property:P50 ?h . VALUES ( ?u ) { ( resource:Q19561861 ) ( resource:Q2278897 ) } } }
Medicine as a Profession for Women The Warlord Chronicles
action filter_type
action union
action find
entity The Warlord Chronicles
relation author
action find
entity Medicine as a Profession for Women
relation author
type common name
{'OR': [['The Warlord Chronicles', 'author', {'concept': 'common name'}], ['Medicine as a Profession for Women', 'author', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . { ?u property:author ?h . VALUES ( ?u ) { ( resource:Medicine_as_a_Profession_for_Women ) ( resource:The_Warlord_Chronicles ) } } }
[]
common name
Q1337584 Q234572 Q446605
SYSTEM
Emily Blackwell, Elizabeth Blackwell, Bernard Cornwell
Q1337584 Q234572 Q446605
OR((Q2278897,P50,c(Q502895)), (Q19561861,P50,c(Q502895)))
action filter_type
action union
action find
entity Q2278897
relation P50
action find
entity Q19561861
relation P50
type Q502895
[ANSWERS] wrote The Warlord Chronicles or Medicine as a Profession for Women
{'OR': [['Q2278897', 'P50', {'concept': 'Q502895'}], ['Q19561861', 'P50', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . { ?u property:P50 ?h . VALUES ( ?u ) { ( resource:Q19561861 ) ( resource:Q2278897 ) } } }
Emily Blackwell Elizabeth Blackwell Bernard Cornwell
Emily Blackwell, Elizabeth Blackwell and Bernard Cornwell wrote The Warlord Chronicles or Medicine as a Profession for Women
Emily Blackwell Elizabeth Blackwell Bernard Cornwell
action filter_type
action union
action find
entity The Warlord Chronicles
relation author
action find
entity Medicine as a Profession for Women
relation author
type common name
{'OR': [['The Warlord Chronicles', 'author', {'concept': 'common name'}], ['Medicine as a Profession for Women', 'author', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . { ?u property:author ?h . VALUES ( ?u ) { ( resource:Medicine_as_a_Profession_for_Women ) ( resource:The_Warlord_Chronicles ) } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1337584
P9
Q502895
USER
Which person has that one as their sibling ?
(c(Q502895),P9,Q1337584)
action filter_type
action find
entity Q1337584
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q1337584']
SELECT DISTINCT ?w WHERE { resource:Q1337584 property:P9 ?w . ?w rdf:type ontology:Q502895 }
Emily Blackwell
action filter_type
action find
entity Emily Blackwell
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Emily Blackwell']
SELECT DISTINCT ?w WHERE { resource:Emily_Blackwell property:sister ?w . ?w rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1337584
SYSTEM
Did you mean Emily Blackwell ?
Q1337584 Q234572 Q446605
(c(Q502895),P9,Q1337584) (c(Q502895),P9,Q234572) (c(Q502895),P9,Q446605)
[ANSWER]
[{'concept': 'Q502895'}, 'P9', 'Q1337584'] [{'concept': 'Q502895'}, 'P9', 'Q234572'] [{'concept': 'Q502895'}, 'P9', 'Q446605']
SELECT DISTINCT ?w WHERE { resource:Q1337584 property:P9 ?w . ?w rdf:type ontology:Q502895 }
Emily Blackwell Elizabeth Blackwell Bernard Cornwell
Did you mean Emily Blackwell ?
Emily Blackwell
[{'concept': 'common name'}, 'sister', 'Emily Blackwell'] [{'concept': 'common name'}, 'sister', 'Elizabeth Blackwell'] [{'concept': 'common name'}, 'sister', 'Bernard Cornwell']
SELECT DISTINCT ?w WHERE { resource:Emily_Blackwell property:sister ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P9,Q1337584)
[{'concept': 'Q502895'}, 'P9', 'Q1337584']
[{'concept': 'common name'}, 'sister', 'Emily Blackwell']
[]
Q234572
SYSTEM
Elizabeth Blackwell
Q234572
(c(Q502895),P9,Q1337584)
action filter_type
action find
entity Q1337584
relation P9
type Q502895
[ANSWER] has that one as their sibling
[{'concept': 'Q502895'}, 'P9', 'Q1337584']
SELECT DISTINCT ?w WHERE { resource:Q1337584 property:P9 ?w . ?w rdf:type ontology:Q502895 }
Elizabeth Blackwell
Elizabeth Blackwell has that one as their sibling
Elizabeth Blackwell
action filter_type
action find
entity Emily Blackwell
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Emily Blackwell']
SELECT DISTINCT ?w WHERE { resource:Emily_Blackwell property:sister ?w . ?w rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q234572 Q30 Q145
P27
Q15617994
USER
Is that person a native of United States of America and United Kingdom ?
(Q234572,P27,Q30) (Q234572,P27,Q145)
action is_in
entity Q234572
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q145
relation P27
['Q234572', 'P27', 'Q30'] ['Q234572', 'P27', 'Q145']
ASK WHERE { resource:Q234572 property:P27 resource:Q30 . resource:Q234572 property:P27 resource:Q145 }
Elizabeth Blackwell United States of America United Kingdom
action is_in
entity Elizabeth Blackwell
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity United Kingdom
relation country of citizenship
['Elizabeth Blackwell', 'country of citizenship', 'United States of America'] ['Elizabeth Blackwell', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:Elizabeth_Blackwell property:country_of_citizenship resource:United_States_of_America . resource:Elizabeth_Blackwell property:country_of_citizenship resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q234572,P27,Q30) (Q234572,P27,Q145)
action is_in
entity Q234572
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q145
relation P27
[ANSWER]
['Q234572', 'P27', 'Q30'] ['Q234572', 'P27', 'Q145']
ASK WHERE { resource:Q234572 property:P27 resource:Q30 . resource:Q234572 property:P27 resource:Q145 }
Yes
action is_in
entity Elizabeth Blackwell
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity United Kingdom
relation country of citizenship
['Elizabeth Blackwell', 'country of citizenship', 'United States of America'] ['Elizabeth Blackwell', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:Elizabeth_Blackwell property:country_of_citizenship resource:United_States_of_America . resource:Elizabeth_Blackwell property:country_of_citizenship resource:United_Kingdom }
[]