Simple Question (Direct)
Simple Question
Q6988404
P102
Q7210356
USER
Which political organization is Neil Cole a member of ?
(Q6988404,P102,c(Q7210356))
action filter_type
action find
entity Q6988404
relation P102
type Q7210356
['Q6988404', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q6988404 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Neil Cole
action filter_type
action find
entity Neil Cole
relation member of political party
type political organization
['Neil Cole', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Neil_Cole property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
political organization
Q216082
SYSTEM
Australian Labor Party
Q216082
(Q6988404,P102,c(Q7210356))
action filter_type
action find
entity Q6988404
relation P102
type Q7210356
Party [ANSWER] is Neil Cole a member of
['Q6988404', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q6988404 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Australian Labor Party
Party Australian Labor Party is Neil Cole a member of
Australian Labor Party
action filter_type
action find
entity Neil Cole
relation member of political party
type political organization
['Neil Cole', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Neil_Cole property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6988404
P1050
Q2057971
USER
What is Neil Cole affected by ?
(Q6988404,P1050,c(Q2057971))
action filter_type
action find
entity Q6988404
relation P1050
type Q2057971
['Q6988404', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?t WHERE { resource:Q6988404 property:P1050 ?t . ?t rdf:type ontology:Q2057971 }
Neil Cole
action filter_type
action find
entity Neil Cole
relation medical condition
type health problem
['Neil Cole', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?t WHERE { resource:Neil_Cole property:medical_condition ?t . ?t rdf:type ontology:health_problem }
[]
health problem
Q131755
SYSTEM
bipolar disorder
Q131755
(Q6988404,P1050,c(Q2057971))
action filter_type
action find
entity Q6988404
relation P1050
type Q2057971
Neil Cole is affected by [ANSWER]
['Q6988404', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?t WHERE { resource:Q6988404 property:P1050 ?t . ?t rdf:type ontology:Q2057971 }
bipolar disorder
Neil Cole is affected by bipolar disorder
bipolar disorder
action filter_type
action find
entity Neil Cole
relation medical condition
type health problem
['Neil Cole', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?t WHERE { resource:Neil_Cole property:medical_condition ?t . ?t rdf:type ontology:health_problem }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q131755 Q417689
P2176
Q8386
USER
Is ramelteon used to cure that health problem ?
(Q131755,P2176,Q417689)
action is_in
entity Q417689
action find
entity Q131755
relation P2176
['Q131755', 'P2176', 'Q417689']
ASK WHERE { resource:Q131755 property:P2176 resource:Q417689 }
bipolar disorder ramelteon
action is_in
entity ramelteon
action find
entity bipolar disorder
relation drug used for treatment
['bipolar disorder', 'drug used for treatment', 'ramelteon']
ASK WHERE { resource:bipolar_disorder property:drug_used_for_treatment resource:ramelteon }
[]
drug
SYSTEM
YES
(Q131755,P2176,Q417689)
action is_in
entity Q417689
action find
entity Q131755
relation P2176
[ANSWER]
['Q131755', 'P2176', 'Q417689']
ASK WHERE { resource:Q131755 property:P2176 resource:Q417689 }
Yes
action is_in
entity ramelteon
action find
entity bipolar disorder
relation drug used for treatment
['bipolar disorder', 'drug used for treatment', 'ramelteon']
ASK WHERE { resource:bipolar_disorder property:drug_used_for_treatment resource:ramelteon }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q83319
P1196
Q502895
USER
Which people have typhoid fever as death circumstances ?
(c(Q502895),P1196,Q83319)
action filter_type
action find_reverse
entity Q83319
relation P1196
type Q502895
[{'concept': 'Q502895'}, 'P1196', 'Q83319']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . ?c property:P1196 resource:Q83319 }
typhoid fever
action filter_type
action find_reverse
entity typhoid fever
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', 'typhoid fever']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . ?c property:manner_of_death resource:typhoid_fever }
[]
common name
Q16658616 Q2627249
SYSTEM
Edith Claypole, Ivan Bubnov
Q16658616 Q2627249
(c(Q502895),P1196,Q83319)
action filter_type
action find_reverse
entity Q83319
relation P1196
type Q502895
[ANSWERS] have typhoid fever as death circumstances
[{'concept': 'Q502895'}, 'P1196', 'Q83319']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . ?c property:P1196 resource:Q83319 }
Edith Claypole Ivan Bubnov
Edith Claypole and Ivan Bubnov have typhoid fever as death circumstances
Edith Claypole Ivan Bubnov
action filter_type
action find_reverse
entity typhoid fever
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', 'typhoid fever']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . ?c property:manner_of_death resource:typhoid_fever }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2627249
P108
Q43229
USER
Which organization does that person work for ?
(Q2627249,P108,c(Q43229))
action filter_type
action find
entity Q2627249
relation P108
type Q43229
['Q2627249', 'P108', {'concept': 'Q43229'}]
SELECT DISTINCT ?s WHERE { resource:Q2627249 property:P108 ?s . ?s rdf:type ontology:Q43229 }
Ivan Bubnov
action filter_type
action find
entity Ivan Bubnov
relation employer
type organization
['Ivan Bubnov', 'employer', {'concept': 'organization'}]
SELECT DISTINCT ?s WHERE { resource:Ivan_Bubnov property:employer ?s . ?s rdf:type ontology:organization }
[]
organization
Clarification for simple ques.
Q16658616
SYSTEM
Did you mean Edith Claypole ?
Q16658616 Q2627249
(Q16658616,P108,c(Q43229)) (Q2627249,P108,c(Q43229))
[ANSWER]
['Q16658616', 'P108', {'concept': 'Q43229'}] ['Q2627249', 'P108', {'concept': 'Q43229'}]
SELECT DISTINCT ?s WHERE { resource:Q2627249 property:P108 ?s . ?s rdf:type ontology:Q43229 }
Edith Claypole Ivan Bubnov
Did you mean Edith Claypole ?
Edith Claypole
['Edith Claypole', 'employer', {'concept': 'organization'}] ['Ivan Bubnov', 'employer', {'concept': 'organization'}]
SELECT DISTINCT ?s WHERE { resource:Ivan_Bubnov property:employer ?s . ?s rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
USER
No, I meant Ivan Bubnov. Could you tell me the answer for that?
(Q2627249,P108,c(Q43229))
Q2627249
['Q2627249', 'P108', {'concept': 'Q43229'}]
['Ivan Bubnov', 'employer', {'concept': 'organization'}]
[]
Q2468427
SYSTEM
Rubin Design Bureau
Q2468427
(Q2627249,P108,c(Q43229))
action filter_type
action find
entity Q2627249
relation P108
type Q43229
That person works in [ANSWER]
['Q2627249', 'P108', {'concept': 'Q43229'}]
SELECT DISTINCT ?s WHERE { resource:Q2627249 property:P108 ?s . ?s rdf:type ontology:Q43229 }
Rubin Design Bureau
That person works in Rubin Design Bureau
Rubin Design Bureau
action filter_type
action find
entity Ivan Bubnov
relation employer
type organization
['Ivan Bubnov', 'employer', {'concept': 'organization'}]
SELECT DISTINCT ?s WHERE { resource:Ivan_Bubnov property:employer ?s . ?s rdf:type ontology:organization }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P287
Q43229 Q17335294
USER
How many organizations are the creator of the design for greater number of coats of arms than that organization ?
(c(Q17335294),P287,c(Q43229))
action count
action greater
action find_reverse_tuple_counts
relation P287
type Q43229
type Q17335294
action count
action filter_type
action find
entity Q2468427
relation P287
type Q43229
[{'concept': 'Q17335294'}, 'P287', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?i ) WHERE { ?m property:P287 ?k . ?k rdf:type ontology:Q43229 . ?m rdf:type ontology:Q17335294 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Q2468427 property:P287 ?w . ?w rdf:type ontology:Q43229 } } . FILTER ( ?i > ?b ) }
action count
action greater
action find_reverse_tuple_counts
relation designer
type organization
type flag or coat of arms
action count
action filter_type
action find
entity Rubin Design Bureau
relation designer
type organization
[{'concept': 'flag or coat of arms'}, 'designer', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?i ) WHERE { ?m property:designer ?k . ?k rdf:type ontology:organization . ?m rdf:type ontology:flag_or_coat_of_arms } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Rubin_Design_Bureau property:designer ?w . ?w rdf:type ontology:organization } } . FILTER ( ?i > ?b ) }
[]
organization flag or coat of arms
SYSTEM
1
Q1109101
(c(Q17335294),P287,c(Q43229))
action count
action greater
action find_reverse_tuple_counts
relation P287
type Q43229
type Q17335294
action count
action filter_type
action find
entity Q2468427
relation P287
type Q43229
[ANSWER]
[{'concept': 'Q17335294'}, 'P287', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?i ) WHERE { ?m property:P287 ?k . ?k rdf:type ontology:Q43229 . ?m rdf:type ontology:Q17335294 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Q2468427 property:P287 ?w . ?w rdf:type ontology:Q43229 } } . FILTER ( ?i > ?b ) }
College of Arms
1
action count
action greater
action find_reverse_tuple_counts
relation designer
type organization
type flag or coat of arms
action count
action filter_type
action find
entity Rubin Design Bureau
relation designer
type organization
[{'concept': 'flag or coat of arms'}, 'designer', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?i ) WHERE { ?m property:designer ?k . ?k rdf:type ontology:organization . ?m rdf:type ontology:flag_or_coat_of_arms } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Rubin_Design_Bureau property:designer ?w . ?w rdf:type ontology:organization } } . FILTER ( ?i > ?b ) }
[]