Simple Question (Direct)
Simple Question
Q7172008
P509
Q2057971
USER
Which health problem was the cause of death of Pete Harrison ?
(Q7172008,P509,c(Q2057971))
action filter_type
action find
entity Q7172008
relation P509
type Q2057971
['Q7172008', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?r WHERE { resource:Q7172008 property:P509 ?r . ?r rdf:type ontology:Q2057971 }
Pete Harrison
action filter_type
action find
entity Pete Harrison
relation cause of death
type health problem
['Pete Harrison', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?r WHERE { resource:Pete_Harrison property:cause_of_death ?r . ?r rdf:type ontology:health_problem }
[]
health problem
Q12204
SYSTEM
tuberculosis
Q12204
(Q7172008,P509,c(Q2057971))
action filter_type
action find
entity Q7172008
relation P509
type Q2057971
[ANSWER] was the cause of death of Pete Harrison
['Q7172008', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?r WHERE { resource:Q7172008 property:P509 ?r . ?r rdf:type ontology:Q2057971 }
tuberculosis
Tuberculosis was the cause of death of Pete Harrison
tuberculosis
action filter_type
action find
entity Pete Harrison
relation cause of death
type health problem
['Pete Harrison', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?r WHERE { resource:Pete_Harrison property:cause_of_death ?r . ?r rdf:type ontology:health_problem }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7172008
P1050
Q2057971
USER
What is Pete Harrison affected by ?
(Q7172008,P1050,c(Q2057971))
action filter_type
action find
entity Q7172008
relation P1050
type Q2057971
['Q7172008', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?u WHERE { resource:Q7172008 property:P1050 ?u . ?u rdf:type ontology:Q2057971 }
Pete Harrison
action filter_type
action find
entity Pete Harrison
relation medical condition
type health problem
['Pete Harrison', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?u WHERE { resource:Pete_Harrison property:medical_condition ?u . ?u rdf:type ontology:health_problem }
[]
health problem
Q12204
SYSTEM
tuberculosis
Q12204
(Q7172008,P1050,c(Q2057971))
action filter_type
action find
entity Q7172008
relation P1050
type Q2057971
Pete Harrison is affected by [ANSWER]
['Q7172008', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?u WHERE { resource:Q7172008 property:P1050 ?u . ?u rdf:type ontology:Q2057971 }
tuberculosis
Pete Harrison is affected by tuberculosis
tuberculosis
action filter_type
action find
entity Pete Harrison
relation medical condition
type health problem
['Pete Harrison', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?u WHERE { resource:Pete_Harrison property:medical_condition ?u . ?u rdf:type ontology:health_problem }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7172008
P21
Q290
USER
Which sex does Pete Harrison belong to ?
(Q7172008,P21,c(Q290))
action filter_type
action find
entity Q7172008
relation P21
type Q290
['Q7172008', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q7172008 property:P21 ?o . ?o rdf:type ontology:Q290 }
Pete Harrison
action filter_type
action find
entity Pete Harrison
relation gender
type sex
['Pete Harrison', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Pete_Harrison property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7172008,P21,c(Q290))
action filter_type
action find
entity Q7172008
relation P21
type Q290
Pete Harrison belongs to [ANSWER]
['Q7172008', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q7172008 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
Pete Harrison belongs to male
male
action filter_type
action find
entity Pete Harrison
relation gender
type sex
['Pete Harrison', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Pete_Harrison property:gender ?o . ?o rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q8068790 Q7172008
P21
Q290
USER
And also Zell Kravinsky
AND((Q7172008,P21,c(Q290)), (Q8068790,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q7172008
relation P21
action find
entity Q8068790
relation P21
type Q290
{'AND': [['Q7172008', 'P21', {'concept': 'Q290'}], ['Q8068790', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?c WHERE { resource:Q8068790 property:P21 ?c . resource:Q7172008 property:P21 ?c . ?c rdf:type ontology:Q290 }
Zell Kravinsky Pete Harrison
action filter_type
action intersection
action find
entity Pete Harrison
relation gender
action find
entity Zell Kravinsky
relation gender
type sex
{'AND': [['Pete Harrison', 'gender', {'concept': 'sex'}], ['Zell Kravinsky', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?c WHERE { resource:Zell_Kravinsky property:gender ?c . resource:Pete_Harrison property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
AND((Q7172008,P21,c(Q290)), (Q8068790,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q7172008
relation P21
action find
entity Q8068790
relation P21
type Q290
[ANSWER]
{'AND': [['Q7172008', 'P21', {'concept': 'Q290'}], ['Q8068790', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?c WHERE { resource:Q8068790 property:P21 ?c . resource:Q7172008 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
male
action filter_type
action intersection
action find
entity Pete Harrison
relation gender
action find
entity Zell Kravinsky
relation gender
type sex
{'AND': [['Pete Harrison', 'gender', {'concept': 'sex'}], ['Zell Kravinsky', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?c WHERE { resource:Zell_Kravinsky property:gender ?c . resource:Pete_Harrison property:gender ?c . ?c rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8068790
P69
Q163740
USER
Which nonprofit organization is the alma mater of Zell Kravinsky?
(Q6581097,P69,c(Q163740))
action filter_type
action find
entity Q8068790
relation P69
type Q163740
['Q6581097', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?w WHERE { resource:Q8068790 property:P69 ?w . ?w rdf:type ontology:Q163740 }
Zell Kravinsky
action filter_type
action find
entity Zell Kravinsky
relation educated at
type nonprofit organization
['male', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?w WHERE { resource:Zell_Kravinsky property:educated_at ?w . ?w rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q49116
SYSTEM
Dartmouth College
Q49116
(Q6581097,P69,c(Q163740))
action filter_type
action find
entity Q8068790
relation P69
type Q163740
[ANSWER] is the alma mater of Zell Kravinsky
['Q6581097', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?w WHERE { resource:Q8068790 property:P69 ?w . ?w rdf:type ontology:Q163740 }
Dartmouth College
Dartmouth College is the alma mater of Zell Kravinsky
Dartmouth College
action filter_type
action find
entity Zell Kravinsky
relation educated at
type nonprofit organization
['male', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?w WHERE { resource:Zell_Kravinsky property:educated_at ?w . ?w rdf:type ontology:nonprofit_organization }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P112
Q502895 Q163740
USER
Which nonprofit organizations were founded by less number of people than that nonprofit organization ?
(c(Q163740),P112,c(Q502895))
action less
action find_tuple_counts
relation P112
type Q163740
type Q502895
action count
action filter_type
action find
entity Q49116
relation P112
type Q502895
[{'concept': 'Q163740'}, 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?c ) WHERE { ?g property:P112 ?x . ?g rdf:type ontology:Q163740 . ?x rdf:type ontology:Q502895 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Q49116 property:P112 ?y . ?y rdf:type ontology:Q502895 } } . FILTER ( ?c < ?e ) }
action less
action find_tuple_counts
relation founder
type nonprofit organization
type common name
action count
action filter_type
action find
entity Dartmouth College
relation founder
type common name
[{'concept': 'nonprofit organization'}, 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?c ) WHERE { ?g property:founder ?x . ?g rdf:type ontology:nonprofit_organization . ?x rdf:type ontology:common_name } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Dartmouth_College property:founder ?y . ?y rdf:type ontology:common_name } } . FILTER ( ?c < ?e ) }
[]
common name nonprofit organization
Q13371
SYSTEM
Harvard University
Q13371
(c(Q163740),P112,c(Q502895))
action less
action find_tuple_counts
relation P112
type Q163740
type Q502895
action count
action filter_type
action find
entity Q49116
relation P112
type Q502895
[ANSWER] was founded by less number of people than that nonprofit organization
[{'concept': 'Q163740'}, 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?c ) WHERE { ?g property:P112 ?x . ?g rdf:type ontology:Q163740 . ?x rdf:type ontology:Q502895 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Q49116 property:P112 ?y . ?y rdf:type ontology:Q502895 } } . FILTER ( ?c < ?e ) }
Harvard University
Harvard University was founded by less number of people than that nonprofit organization
Harvard University
action less
action find_tuple_counts
relation founder
type nonprofit organization
type common name
action count
action filter_type
action find
entity Dartmouth College
relation founder
type common name
[{'concept': 'nonprofit organization'}, 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?c ) WHERE { ?g property:founder ?x . ?g rdf:type ontology:nonprofit_organization . ?x rdf:type ontology:common_name } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Dartmouth_College property:founder ?y . ?y rdf:type ontology:common_name } } . FILTER ( ?c < ?e ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1542
Q2057971 Q10675206 Q8386
USER
Which health problems are caused by exactly 1 ingredients and drugs ?
(c(Q10675206)|c(Q8386),P1542,c(Q2057971))
action equal
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q10675206
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q8386
value 1
[[{'concept': 'Q10675206'}, {'concept': 'Q8386'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?o ) WHERE { { ?a property:P1542 ?s . ?s rdf:type ontology:Q2057971 . ?a rdf:type ontology:Q10675206 } UNION { ?a property:P1542 ?s . ?s rdf:type ontology:Q2057971 . ?a rdf:type ontology:Q8386 } } GROUP BY ?s } . FILTER ( ?o = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type ingredient
action find_reverse_tuple_counts
relation cause of
type health problem
type drug
value 1
[[{'concept': 'ingredient'}, {'concept': 'drug'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?o ) WHERE { { ?a property:cause_of ?s . ?s rdf:type ontology:health_problem . ?a rdf:type ontology:ingredient } UNION { ?a property:cause_of ?s . ?s rdf:type ontology:health_problem . ?a rdf:type ontology:drug } } GROUP BY ?s } . FILTER ( ?o = 1 ) }
[]
health problem ingredient drug
Q7157933 Q4413030 Q970203
SYSTEM
peanut allergy, wheat allergy, milk allergy
Q7157933 Q5062120 Q4413030 Q970203
(c(Q10675206)|c(Q8386),P1542,c(Q2057971))
action equal
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q10675206
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q8386
value 1
[ANSWERS] are caused by exactly 1 ingredients and drugs
[[{'concept': 'Q10675206'}, {'concept': 'Q8386'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?o ) WHERE { { ?a property:P1542 ?s . ?s rdf:type ontology:Q2057971 . ?a rdf:type ontology:Q10675206 } UNION { ?a property:P1542 ?s . ?s rdf:type ontology:Q2057971 . ?a rdf:type ontology:Q8386 } } GROUP BY ?s } . FILTER ( ?o = 1 ) }
peanut allergy central nervous system depression wheat allergy milk allergy
Peanut allergy, wheat allergy and milk allergy are caused by exactly 1 ingredients and drugs
peanut allergy wheat allergy milk allergy
action equal
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type ingredient
action find_reverse_tuple_counts
relation cause of
type health problem
type drug
value 1
[[{'concept': 'ingredient'}, {'concept': 'drug'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?o ) WHERE { { ?a property:cause_of ?s . ?s rdf:type ontology:health_problem . ?a rdf:type ontology:ingredient } UNION { ?a property:cause_of ?s . ?s rdf:type ontology:health_problem . ?a rdf:type ontology:drug } } GROUP BY ?s } . FILTER ( ?o = 1 ) }
[]