Simple Question (Direct)
Simple Question
Q5797784
P641
Q349
USER
What did Damien McSwine participate in ?
(Q5797784,P641,c(Q349))
action filter_type
action find
entity Q5797784
relation P641
type Q349
['Q5797784', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?m WHERE { resource:Q5797784 property:P641 ?m . ?m rdf:type ontology:Q349 }
Damien McSwine
action filter_type
action find
entity Damien McSwine
relation sport
type sport
['Damien McSwine', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?m WHERE { resource:Damien_McSwine property:sport ?m . ?m rdf:type ontology:sport }
[]
sport
Q5372
SYSTEM
basketball
Q5372
(Q5797784,P641,c(Q349))
action filter_type
action find
entity Q5797784
relation P641
type Q349
Damien McSwine participated in [ANSWER]
['Q5797784', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?m WHERE { resource:Q5797784 property:P641 ?m . ?m rdf:type ontology:Q349 }
basketball
Damien McSwine participated in basketball
basketball
action filter_type
action find
entity Damien McSwine
relation sport
type sport
['Damien McSwine', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?m WHERE { resource:Damien_McSwine property:sport ?m . ?m rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5797784
P69
Q163740
USER
What is the nonprofit organization where Damien McSwine was educated ?
(Q5797784,P69,c(Q163740))
action filter_type
action find
entity Q5797784
relation P69
type Q163740
['Q5797784', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?n WHERE { resource:Q5797784 property:P69 ?n . ?n rdf:type ontology:Q163740 }
Damien McSwine
action filter_type
action find
entity Damien McSwine
relation educated at
type nonprofit organization
['Damien McSwine', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?n WHERE { resource:Damien_McSwine property:educated_at ?n . ?n rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q1537759
SYSTEM
Loyola University Chicago
Q1537759
(Q5797784,P69,c(Q163740))
action filter_type
action find
entity Q5797784
relation P69
type Q163740
The nonprofit organization Damien McSwine was educated is at [ANSWER]
['Q5797784', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?n WHERE { resource:Q5797784 property:P69 ?n . ?n rdf:type ontology:Q163740 }
Loyola University Chicago
The nonprofit organization Damien McSwine was educated is at Loyola University Chicago
Loyola University Chicago
action filter_type
action find
entity Damien McSwine
relation educated at
type nonprofit organization
['Damien McSwine', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?n WHERE { resource:Damien_McSwine property:educated_at ?n . ?n rdf:type ontology:nonprofit_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6504316
Q163740
USER
And also tell me about Lawrence Lee Pelletier?
(Q6504316,P69,c(Q163740))
action filter_type
action find
entity Q6504316
relation P69
type Q163740
['Q6504316', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?q WHERE { resource:Q6504316 property:P69 ?q . ?q rdf:type ontology:Q163740 }
Lawrence Lee Pelletier
action filter_type
action find
entity Lawrence Lee Pelletier
relation educated at
type nonprofit organization
['Lawrence Lee Pelletier', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?q WHERE { resource:Lawrence_Lee_Pelletier property:educated_at ?q . ?q rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q895401 Q13371
SYSTEM
Bowdoin College, Harvard University
Q895401 Q13371
(Q6504316,P69,c(Q163740))
action filter_type
action find
entity Q6504316
relation P69
type Q163740
[ANSWERS]
['Q6504316', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?q WHERE { resource:Q6504316 property:P69 ?q . ?q rdf:type ontology:Q163740 }
Bowdoin College Harvard University
Bowdoin College Harvard University
action filter_type
action find
entity Lawrence Lee Pelletier
relation educated at
type nonprofit organization
['Lawrence Lee Pelletier', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?q WHERE { resource:Lawrence_Lee_Pelletier property:educated_at ?q . ?q rdf:type ontology:nonprofit_organization }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P138
Q502895
USER
How many people are that nonprofit organization named after ?
(Q13371,P138,c(Q502895))
['Q13371', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q13371 property:P138 ?z . ?z rdf:type ontology:Q502895 }
['Harvard University', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Harvard_University property:named_after ?z . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q13371
SYSTEM
Did you mean Harvard University ?
(Q895401,P138,c(Q502895)) (Q13371,P138,c(Q502895))
[ANSWER]
['Q895401', 'P138', {'concept': 'Q502895'}] ['Q13371', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q13371 property:P138 ?z . ?z rdf:type ontology:Q502895 }
Did you mean Harvard University ?
Harvard University
['Bowdoin College', 'named after', {'concept': 'common name'}] ['Harvard University', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Harvard_University property:named_after ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q13371,P138,c(Q502895))
['Q13371', 'P138', {'concept': 'Q502895'}]
['Harvard University', 'named after', {'concept': 'common name'}]
[]
SYSTEM
1
Q318328
(Q13371,P138,c(Q502895))
[ANSWER]
['Q13371', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q13371 property:P138 ?z . ?z rdf:type ontology:Q502895 }
John Harvard
1
['Harvard University', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Harvard_University property:named_after ?z . ?z rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q942930 Q5797784
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Damien McSwine or Radovan Vujanović ?
OR((Q5797784,P27,c(Q15617994)), (Q942930,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5797784
relation P27
action find
entity Q942930
relation P27
type Q15617994
{'OR': [['Q5797784', 'P27', {'concept': 'Q15617994'}], ['Q942930', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . { VALUES ( ?x ) { ( resource:Q942930 ) ( resource:Q5797784 ) } . ?x property:P27 ?e } }
Radovan Vujanović Damien McSwine
action filter_type
action union
action find
entity Damien McSwine
relation country of citizenship
action find
entity Radovan Vujanović
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Damien McSwine', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Radovan Vujanović', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?x ) { ( resource:Radovan_Vujanović ) ( resource:Damien_McSwine ) } . ?x property:country_of_citizenship ?e } }
[]
designation for an administrative territorial entity
Q403 Q30 Q786
SYSTEM
Serbia, United States of America, Dominican Republic
Q403 Q30 Q786
OR((Q5797784,P27,c(Q15617994)), (Q942930,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5797784
relation P27
action find
entity Q942930
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Damien McSwine or Radovan Vujanović
{'OR': [['Q5797784', 'P27', {'concept': 'Q15617994'}], ['Q942930', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . { VALUES ( ?x ) { ( resource:Q942930 ) ( resource:Q5797784 ) } . ?x property:P27 ?e } }
Serbia United States of America Dominican Republic
Serbia, United States of America and Dominican Republic are the countries of citizenship of Damien McSwine or Radovan Vujanović
Serbia United States of America Dominican Republic
action filter_type
action union
action find
entity Damien McSwine
relation country of citizenship
action find
entity Radovan Vujanović
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Damien McSwine', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Radovan Vujanović', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?x ) { ( resource:Radovan_Vujanović ) ( resource:Damien_McSwine ) } . ?x property:country_of_citizenship ?e } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q403
P740
Q2088357
USER
Which musical ensembles were formed at that administrative territory ?
(c(Q2088357),P740,Q403)
action filter_type
action find_reverse
entity Q403
relation P740
type Q2088357
[{'concept': 'Q2088357'}, 'P740', 'Q403']
SELECT DISTINCT ?a WHERE { ?a property:P740 resource:Q403 . ?a rdf:type ontology:Q2088357 }
Serbia
action filter_type
action find_reverse
entity Serbia
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Serbia']
SELECT DISTINCT ?a WHERE { ?a property:location_of_formation resource:Serbia . ?a rdf:type ontology:musical_ensemble }
[]
musical ensemble
Clarification for simple ques.
Q786
SYSTEM
Did you mean Dominican Republic ?
Q403 Q30 Q786
(c(Q2088357),P740,Q403) (c(Q2088357),P740,Q30) (c(Q2088357),P740,Q786)
[ANSWER]
[{'concept': 'Q2088357'}, 'P740', 'Q403'] [{'concept': 'Q2088357'}, 'P740', 'Q30'] [{'concept': 'Q2088357'}, 'P740', 'Q786']
SELECT DISTINCT ?a WHERE { ?a property:P740 resource:Q403 . ?a rdf:type ontology:Q2088357 }
Serbia United States of America Dominican Republic
Did you mean Dominican Republic ?
Dominican Republic
[{'concept': 'musical ensemble'}, 'location of formation', 'Serbia'] [{'concept': 'musical ensemble'}, 'location of formation', 'United States of America'] [{'concept': 'musical ensemble'}, 'location of formation', 'Dominican Republic']
SELECT DISTINCT ?a WHERE { ?a property:location_of_formation resource:Serbia . ?a rdf:type ontology:musical_ensemble }
[]
Simple Question (Coreferenced)
USER
No, I meant Serbia. Could you tell me the answer for that?
(c(Q2088357),P740,Q403)
Q403
[{'concept': 'Q2088357'}, 'P740', 'Q403']
[{'concept': 'musical ensemble'}, 'location of formation', 'Serbia']
[]
Q1258016 Q6421364
SYSTEM
Činč, Klopka Za Pionira
Q1258016 Q6421364
(c(Q2088357),P740,Q403)
action filter_type
action find_reverse
entity Q403
relation P740
type Q2088357
[ANSWERS] were formed at that administrative territory
[{'concept': 'Q2088357'}, 'P740', 'Q403']
SELECT DISTINCT ?a WHERE { ?a property:P740 resource:Q403 . ?a rdf:type ontology:Q2088357 }
Činč Klopka Za Pionira
Činč and Klopka Za Pionira were formed at that administrative territory
Činč Klopka Za Pionira
action filter_type
action find_reverse
entity Serbia
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Serbia']
SELECT DISTINCT ?a WHERE { ?a property:location_of_formation resource:Serbia . ?a rdf:type ontology:musical_ensemble }
[]