Simple Question (Direct)
Simple Question
Q3185116
P102
Q7210356
USER
Which party does Joseph Irenée Rochefort belong to ?
(Q3185116,P102,c(Q7210356))
action filter_type
action find
entity Q3185116
relation P102
type Q7210356
['Q3185116', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?c WHERE { resource:Q3185116 property:P102 ?c . ?c rdf:type ontology:Q7210356 }
Joseph Irenée Rochefort
action filter_type
action find
entity Joseph Irenée Rochefort
relation member of political party
type political organization
['Joseph Irenée Rochefort', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?c WHERE { resource:Joseph_Irenée_Rochefort property:member_of_political_party ?c . ?c rdf:type ontology:political_organization }
[]
political organization
Q138345
SYSTEM
Liberal Party of Canada
Q138345
(Q3185116,P102,c(Q7210356))
action filter_type
action find
entity Q3185116
relation P102
type Q7210356
Joseph Irenée Rochefort belongs to [ANSWER]
['Q3185116', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?c WHERE { resource:Q3185116 property:P102 ?c . ?c rdf:type ontology:Q7210356 }
Liberal Party of Canada
Joseph Irenée Rochefort belongs to Liberal Party of Canada
Liberal Party of Canada
action filter_type
action find
entity Joseph Irenée Rochefort
relation member of political party
type political organization
['Joseph Irenée Rochefort', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?c WHERE { resource:Joseph_Irenée_Rochefort property:member_of_political_party ?c . ?c rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q138345
P488
Q502895
USER
Who were the chairpersons of that political organization ?
(Q138345,P488,c(Q502895))
action filter_type
action find
entity Q138345
relation P488
type Q502895
['Q138345', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q138345 property:P488 ?i . ?i rdf:type ontology:Q502895 }
Liberal Party of Canada
action filter_type
action find
entity Liberal Party of Canada
relation chairperson
type common name
['Liberal Party of Canada', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Liberal_Party_of_Canada property:chairperson ?i . ?i rdf:type ontology:common_name }
[]
common name
Q8619 Q128604 Q128543
SYSTEM
Pierre Trudeau, Lester B. Pearson, Jean Chrétien
Q8619 Q956335 Q128633 Q128626 Q128568 Q128543 Q311684 Q888208 Q128529 Q366456 Q128604 Q3099714 Q128664 Q128708 Q333003 Q5217019
(Q138345,P488,c(Q502895))
action filter_type
action find
entity Q138345
relation P488
type Q502895
The chairpersons of that political organization were [ANSWERS]
['Q138345', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q138345 property:P488 ?i . ?i rdf:type ontology:Q502895 }
Pierre Trudeau Bill Graham William Lyon Mackenzie King Louis St. Laurent John Turner Jean Chrétien Michael Ignatieff Bob Rae Paul Martin Stéphane Dion Lester B. Pearson Justin Trudeau Wilfrid Laurier Alexander Mackenzie Edward Blake Daniel Duncan McKenzie
The chairpersons of that political organization were Pierre Trudeau, Lester B. Pearson and Jean Chrétien
Pierre Trudeau Lester B. Pearson Jean Chrétien
action filter_type
action find
entity Liberal Party of Canada
relation chairperson
type common name
['Liberal Party of Canada', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Liberal_Party_of_Canada property:chairperson ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3185116
P39
Q12737077
USER
What was the position for which Joseph Irenée Rochefort was appointed ?
(Q3185116,P39,c(Q12737077))
action filter_type
action find
entity Q3185116
relation P39
type Q12737077
['Q3185116', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q3185116 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
Joseph Irenée Rochefort
action filter_type
action find
entity Joseph Irenée Rochefort
relation position held
type occupation
['Joseph Irenée Rochefort', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Joseph_Irenée_Rochefort property:position_held ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q15964890
SYSTEM
member of the House of Commons of Canada
Q15964890
(Q3185116,P39,c(Q12737077))
action filter_type
action find
entity Q3185116
relation P39
type Q12737077
And [ANSWER]
['Q3185116', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q3185116 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
member of the House of Commons of Canada
And member of the House of Commons of Canada
member of the House of Commons of Canada
action filter_type
action find
entity Joseph Irenée Rochefort
relation position held
type occupation
['Joseph Irenée Rochefort', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Joseph_Irenée_Rochefort property:position_held ?g . ?g rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q15964890 Q7356801
P39
Q502895
USER
Did Rodjun Cruz hold the position of that occupation ?
(Q7356801,P39,Q15964890)
action is_in
entity Q7356801
action find
entity Q15964890
relation P39
['Q7356801', 'P39', 'Q15964890']
ASK WHERE { resource:Q15964890 property:P39 resource:Q7356801 }
member of the House of Commons of Canada Rodjun Cruz
action is_in
entity Rodjun Cruz
action find
entity member of the House of Commons of Canada
relation position held
['Rodjun Cruz', 'position held', 'member of the House of Commons of Canada']
ASK WHERE { resource:member_of_the_House_of_Commons_of_Canada property:position_held resource:Rodjun_Cruz }
[]
common name
SYSTEM
NO
(Q7356801,P39,Q15964890)
action is_in
entity Q7356801
action find
entity Q15964890
relation P39
[ANSWER]
['Q7356801', 'P39', 'Q15964890']
ASK WHERE { resource:Q15964890 property:P39 resource:Q7356801 }
No
action is_in
entity Rodjun Cruz
action find
entity member of the House of Commons of Canada
relation position held
['Rodjun Cruz', 'position held', 'member of the House of Commons of Canada']
ASK WHERE { resource:member_of_the_House_of_Commons_of_Canada property:position_held resource:Rodjun_Cruz }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q128543 Q4469138
P27
Q1048835
USER
Is Uhornyky the country of citizenship of Jean Chrétien ?
(Q128543,P27,Q4469138)
action is_in
entity Q4469138
action find
entity Q128543
relation P27
['Q128543', 'P27', 'Q4469138']
ASK WHERE { resource:Q128543 property:P27 resource:Q4469138 }
Jean Chrétien Uhornyky
action is_in
entity Uhornyky
action find
entity Jean Chrétien
relation country of citizenship
['Jean Chrétien', 'country of citizenship', 'Uhornyky']
ASK WHERE { resource:Jean_Chrétien property:country_of_citizenship resource:Uhornyky }
[]
political territorial entity
SYSTEM
NO
(Q128543,P27,Q4469138)
action is_in
entity Q4469138
action find
entity Q128543
relation P27
[ANSWER]
['Q128543', 'P27', 'Q4469138']
ASK WHERE { resource:Q128543 property:P27 resource:Q4469138 }
No
action is_in
entity Uhornyky
action find
entity Jean Chrétien
relation country of citizenship
['Jean Chrétien', 'country of citizenship', 'Uhornyky']
ASK WHERE { resource:Jean_Chrétien property:country_of_citizenship resource:Uhornyky }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8619
P1050
Q2057971
USER
What is Pierre Trudeau affected by ?
(Q8619,P1050,c(Q2057971))
action filter_type
action find
entity Q8619
relation P1050
type Q2057971
['Q8619', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?s WHERE { resource:Q8619 property:P1050 ?s . ?s rdf:type ontology:Q2057971 }
Pierre Trudeau
action filter_type
action find
entity Pierre Trudeau
relation medical condition
type health problem
['Pierre Trudeau', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?s WHERE { resource:Pierre_Trudeau property:medical_condition ?s . ?s rdf:type ontology:health_problem }
[]
health problem
Q11085
SYSTEM
Parkinson's disease
Q11085
(Q8619,P1050,c(Q2057971))
action filter_type
action find
entity Q8619
relation P1050
type Q2057971
Pierre Trudeau is affected by [ANSWER]
['Q8619', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?s WHERE { resource:Q8619 property:P1050 ?s . ?s rdf:type ontology:Q2057971 }
Parkinson's disease
Pierre Trudeau is affected by Parkinson's disease
Parkinson's disease
action filter_type
action find
entity Pierre Trudeau
relation medical condition
type health problem
['Pierre Trudeau', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?s WHERE { resource:Pierre_Trudeau property:medical_condition ?s . ?s rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11085
P2176
Q8386
USER
Which drugs are used to cure that health problem ?
(Q11085,P2176,c(Q8386))
action filter_type
action find
entity Q11085
relation P2176
type Q8386
['Q11085', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ?a WHERE { resource:Q11085 property:P2176 ?a . ?a rdf:type ontology:Q8386 }
Parkinson's disease
action filter_type
action find
entity Parkinson's disease
relation drug used for treatment
type drug
["Parkinson's disease", 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ?a WHERE { resource:Parkinson's_disease property:drug_used_for_treatment ?a . ?a rdf:type ontology:drug }
[]
drug
Q57055 Q413581 Q423308
SYSTEM
paracetamol, bromocriptine, cabergoline
Q3950557 Q423308 Q219957 Q411985 Q414225 Q300989 Q60235 Q411887 Q420590 Q2991856 Q416444 Q3151081 Q414873 Q413581 Q57055 Q409761 Q421304 Q414914 Q868658 Q2195995 Q413840 Q415752 Q417762
(Q11085,P2176,c(Q8386))
action filter_type
action find
entity Q11085
relation P2176
type Q8386
[ANSWERS] are used to cure that health problem
['Q11085', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ?a WHERE { resource:Q11085 property:P2176 ?a . ?a rdf:type ontology:Q8386 }
Sargramostim cabergoline zonisamide rotigotine carbidopa levodopa caffeine rivastigmine ropinirole trihexyphenidyl entacapone Filgrastim Isradipine bromocriptine paracetamol amantidine pramipexole biperiden perampanel repaglinide tolcapone pergolide Exenatide
Paracetamol, bromocriptine and cabergoline are used to cure that health problem
paracetamol bromocriptine cabergoline
action filter_type
action find
entity Parkinson's disease
relation drug used for treatment
type drug
["Parkinson's disease", 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ?a WHERE { resource:Parkinson's_disease property:drug_used_for_treatment ?a . ?a rdf:type ontology:drug }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q187656
P2176
Q8386 Q2057971
USER
How many health problems require less number of drugs in their treatment than relapsing polychondritis ?
(c(Q2057971),P2176,c(Q8386))
action count
action less
action find_tuple_counts
relation P2176
type Q2057971
type Q8386
action count
action filter_type
action find
entity Q187656
relation P2176
type Q8386
[{'concept': 'Q2057971'}, 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?c ) WHERE { ?m property:P2176 ?d . ?m rdf:type ontology:Q2057971 . ?d rdf:type ontology:Q8386 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:Q187656 property:P2176 ?z . ?z rdf:type ontology:Q8386 } } . FILTER ( ?c < ?u ) }
relapsing polychondritis
action count
action less
action find_tuple_counts
relation drug used for treatment
type health problem
type drug
action count
action filter_type
action find
entity relapsing polychondritis
relation drug used for treatment
type drug
[{'concept': 'health problem'}, 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?c ) WHERE { ?m property:drug_used_for_treatment ?d . ?m rdf:type ontology:health_problem . ?d rdf:type ontology:drug } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:relapsing_polychondritis property:drug_used_for_treatment ?z . ?z rdf:type ontology:drug } } . FILTER ( ?c < ?u ) }
[]
drug health problem
SYSTEM
14
Q21154326 Q18557091 Q184084 Q612681 Q2351083 Q954674 Q207087 Q3144201 Q1573307 Q221472 Q899726 Q2306782 Q972514 Q5062153
(c(Q2057971),P2176,c(Q8386))
action count
action less
action find_tuple_counts
relation P2176
type Q2057971
type Q8386
action count
action filter_type
action find
entity Q187656
relation P2176
type Q8386
[ANSWER]
[{'concept': 'Q2057971'}, 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?c ) WHERE { ?m property:P2176 ?d . ?m rdf:type ontology:Q2057971 . ?d rdf:type ontology:Q8386 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:Q187656 property:P2176 ?z . ?z rdf:type ontology:Q8386 } } . FILTER ( ?c < ?u ) }
ariboflavinosis microglandular adenosis beriberi anuria disease of metabolism iron deficiency anemia ectopic pregnancy Excessive daytime sleepiness Wernicke encephalopathy fragile X syndrome Spinocerebellar ataxia hypochromic anemia optic neuritis central sleep apnea
14
action count
action less
action find_tuple_counts
relation drug used for treatment
type health problem
type drug
action count
action filter_type
action find
entity relapsing polychondritis
relation drug used for treatment
type drug
[{'concept': 'health problem'}, 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?c ) WHERE { ?m property:drug_used_for_treatment ?d . ?m rdf:type ontology:health_problem . ?d rdf:type ontology:drug } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:relapsing_polychondritis property:drug_used_for_treatment ?z . ?z rdf:type ontology:drug } } . FILTER ( ?c < ?u ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q615645
P2176
Q8386 Q2057971
USER
And what about Fabry disease?
(c(Q2057971),P2176,c(Q8386))
action count
action less
action find_tuple_counts
relation P2176
type Q2057971
type Q8386
action count
action filter_type
action find
entity Q615645
relation P2176
type Q8386
[{'concept': 'Q2057971'}, 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?n ) WHERE { ?t rdf:type ontology:Q2057971 . ?d rdf:type ontology:Q8386 . ?t property:P2176 ?d } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { ?q rdf:type ontology:Q8386 . resource:Q615645 property:P2176 ?q } } . FILTER ( ?n < ?i ) }
Fabry disease
action count
action less
action find_tuple_counts
relation drug used for treatment
type health problem
type drug
action count
action filter_type
action find
entity Fabry disease
relation drug used for treatment
type drug
[{'concept': 'health problem'}, 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?n ) WHERE { ?t rdf:type ontology:health_problem . ?d rdf:type ontology:drug . ?t property:drug_used_for_treatment ?d } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { ?q rdf:type ontology:drug . resource:Fabry_disease property:drug_used_for_treatment ?q } } . FILTER ( ?n < ?i ) }
[]
drug health problem
SYSTEM
14
Q21154326 Q18557091 Q184084 Q612681 Q2351083 Q954674 Q207087 Q3144201 Q1573307 Q221472 Q899726 Q2306782 Q972514 Q5062153
(c(Q2057971),P2176,c(Q8386))
action count
action less
action find_tuple_counts
relation P2176
type Q2057971
type Q8386
action count
action filter_type
action find
entity Q615645
relation P2176
type Q8386
[ANSWER]
[{'concept': 'Q2057971'}, 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?n ) WHERE { ?t rdf:type ontology:Q2057971 . ?d rdf:type ontology:Q8386 . ?t property:P2176 ?d } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { ?q rdf:type ontology:Q8386 . resource:Q615645 property:P2176 ?q } } . FILTER ( ?n < ?i ) }
ariboflavinosis microglandular adenosis beriberi anuria disease of metabolism iron deficiency anemia ectopic pregnancy Excessive daytime sleepiness Wernicke encephalopathy fragile X syndrome Spinocerebellar ataxia hypochromic anemia optic neuritis central sleep apnea
14
action count
action less
action find_tuple_counts
relation drug used for treatment
type health problem
type drug
action count
action filter_type
action find
entity Fabry disease
relation drug used for treatment
type drug
[{'concept': 'health problem'}, 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?n ) WHERE { ?t rdf:type ontology:health_problem . ?d rdf:type ontology:drug . ?t property:drug_used_for_treatment ?d } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { ?q rdf:type ontology:drug . resource:Fabry_disease property:drug_used_for_treatment ?q } } . FILTER ( ?n < ?i ) }
[]