Simple Question (Direct)
Simple Question
Q8837368
P69
Q163740
USER
Where was Karen Thatcher educated ?
(Q8837368,P69,c(Q163740))
action filter_type
action find
entity Q8837368
relation P69
type Q163740
['Q8837368', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q163740 . resource:Q8837368 property:P69 ?r }
Karen Thatcher
action filter_type
action find
entity Karen Thatcher
relation educated at
type nonprofit organization
['Karen Thatcher', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:nonprofit_organization . resource:Karen_Thatcher property:educated_at ?r }
[]
nonprofit organization
Q49114
SYSTEM
Brown University
Q49114
(Q8837368,P69,c(Q163740))
action filter_type
action find
entity Q8837368
relation P69
type Q163740
Karen was a [ANSWER]
['Q8837368', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q163740 . resource:Q8837368 property:P69 ?r }
Brown University
Karen was a Brown University
Brown University
action filter_type
action find
entity Karen Thatcher
relation educated at
type nonprofit organization
['Karen Thatcher', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:nonprofit_organization . resource:Karen_Thatcher property:educated_at ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8837368
P19
Q486972
USER
Which human settlement is the birthplace of Karen Thatcher ?
(Q8837368,P19,c(Q486972))
action filter_type
action find
entity Q8837368
relation P19
type Q486972
['Q8837368', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?f WHERE { resource:Q8837368 property:P19 ?f . ?f rdf:type ontology:Q486972 }
Karen Thatcher
action filter_type
action find
entity Karen Thatcher
relation place of birth
type human settlement
['Karen Thatcher', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?f WHERE { resource:Karen_Thatcher property:place_of_birth ?f . ?f rdf:type ontology:human_settlement }
[]
human settlement
Q995267
SYSTEM
Bryn Mawr
Q995267
(Q8837368,P19,c(Q486972))
action filter_type
action find
entity Q8837368
relation P19
type Q486972
[ANSWER] is the birthplace of Karen Thatcher
['Q8837368', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?f WHERE { resource:Q8837368 property:P19 ?f . ?f rdf:type ontology:Q486972 }
Bryn Mawr
Bryn Mawr is the birthplace of Karen Thatcher
Bryn Mawr
action filter_type
action find
entity Karen Thatcher
relation place of birth
type human settlement
['Karen Thatcher', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?f WHERE { resource:Karen_Thatcher property:place_of_birth ?f . ?f rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q995267
P551
Q502895
USER
Which person lives in that human settlement ?
(c(Q502895),P551,Q995267)
action filter_type
action find_reverse
entity Q995267
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q995267']
SELECT DISTINCT ?d WHERE { ?d property:P551 resource:Q995267 . ?d rdf:type ontology:Q502895 }
Bryn Mawr
action filter_type
action find_reverse
entity Bryn Mawr
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Bryn Mawr']
SELECT DISTINCT ?d WHERE { ?d property:residence resource:Bryn_Mawr . ?d rdf:type ontology:common_name }
[]
common name
Q6779617
SYSTEM
Mary Garrett
Q6779617
(c(Q502895),P551,Q995267)
action filter_type
action find_reverse
entity Q995267
relation P551
type Q502895
[ANSWER] lives in that human settlement
[{'concept': 'Q502895'}, 'P551', 'Q995267']
SELECT DISTINCT ?d WHERE { ?d property:P551 resource:Q995267 . ?d rdf:type ontology:Q502895 }
Mary Garrett
Mary Garrett lives in that human settlement
Mary Garrett
action filter_type
action find_reverse
entity Bryn Mawr
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Bryn Mawr']
SELECT DISTINCT ?d WHERE { ?d property:residence resource:Bryn_Mawr . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6779617
P451
Q502895
USER
Who has that one as their relationship partner ?
(c(Q502895),P451,Q6779617)
action filter_type
action find_reverse
entity Q6779617
relation P451
type Q502895
[{'concept': 'Q502895'}, 'P451', 'Q6779617']
SELECT DISTINCT ?v WHERE { ?v property:P451 resource:Q6779617 . ?v rdf:type ontology:Q502895 }
Mary Garrett
action filter_type
action find_reverse
entity Mary Garrett
relation partner
type common name
[{'concept': 'common name'}, 'partner', 'Mary Garrett']
SELECT DISTINCT ?v WHERE { ?v property:partner resource:Mary_Garrett . ?v rdf:type ontology:common_name }
[]
common name
Q3295174
SYSTEM
M. Carey Thomas
Q3295174
(c(Q502895),P451,Q6779617)
action filter_type
action find_reverse
entity Q6779617
relation P451
type Q502895
[ANSWER] has that one as their relationship partner
[{'concept': 'Q502895'}, 'P451', 'Q6779617']
SELECT DISTINCT ?v WHERE { ?v property:P451 resource:Q6779617 . ?v rdf:type ontology:Q502895 }
M. Carey Thomas
M. Carey Thomas has that one as their relationship partner
M. Carey Thomas
action filter_type
action find_reverse
entity Mary Garrett
relation partner
type common name
[{'concept': 'common name'}, 'partner', 'Mary Garrett']
SELECT DISTINCT ?v WHERE { ?v property:partner resource:Mary_Garrett . ?v rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3295174
P112
Q163740
USER
Which nonprofit organization was founded by that person ?
(c(Q163740),P112,Q3295174)
action filter_type
action find_reverse
entity Q3295174
relation P112
type Q163740
[{'concept': 'Q163740'}, 'P112', 'Q3295174']
SELECT DISTINCT ?g WHERE { ?g property:P112 resource:Q3295174 . ?g rdf:type ontology:Q163740 }
M. Carey Thomas
action filter_type
action find_reverse
entity M. Carey Thomas
relation founder
type nonprofit organization
[{'concept': 'nonprofit organization'}, 'founder', 'M. Carey Thomas']
SELECT DISTINCT ?g WHERE { ?g property:founder resource:M._Carey_Thomas . ?g rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q995265
SYSTEM
Bryn Mawr College
Q995265
(c(Q163740),P112,Q3295174)
action filter_type
action find_reverse
entity Q3295174
relation P112
type Q163740
[ANSWER] was founded by that person
[{'concept': 'Q163740'}, 'P112', 'Q3295174']
SELECT DISTINCT ?g WHERE { ?g property:P112 resource:Q3295174 . ?g rdf:type ontology:Q163740 }
Bryn Mawr College
Bryn Mawr College was founded by that person
Bryn Mawr College
action filter_type
action find_reverse
entity M. Carey Thomas
relation founder
type nonprofit organization
[{'concept': 'nonprofit organization'}, 'founder', 'M. Carey Thomas']
SELECT DISTINCT ?g WHERE { ?g property:founder resource:M._Carey_Thomas . ?g rdf:type ontology:nonprofit_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P674
Q502895 Q838948 Q277759
USER
How many people plays a role in exactly 2 works of art and book series ?
(c(Q838948)|c(Q277759),P674,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q838948
action find_reverse_tuple_counts
relation P674
type Q502895
type Q277759
value 2
[[{'concept': 'Q838948'}, {'concept': 'Q277759'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?q ) WHERE { { ?k property:P674 ?c . ?c rdf:type ontology:Q502895 . ?k rdf:type ontology:Q838948 } UNION { ?k property:P674 ?c . ?c rdf:type ontology:Q502895 . ?k rdf:type ontology:Q277759 } } GROUP BY ?c } . FILTER ( ?q = 2 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation characters
type common name
type work of art
action find_reverse_tuple_counts
relation characters
type common name
type book series
value 2
[[{'concept': 'work of art'}, {'concept': 'book series'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?q ) WHERE { { ?k property:characters ?c . ?c rdf:type ontology:common_name . ?k rdf:type ontology:work_of_art } UNION { ?k property:characters ?c . ?c rdf:type ontology:common_name . ?k rdf:type ontology:book_series } } GROUP BY ?c } . FILTER ( ?q = 2 ) }
[]
common name work of art book series
SYSTEM
2
Q188541 Q9045
(c(Q838948)|c(Q277759),P674,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q838948
action find_reverse_tuple_counts
relation P674
type Q502895
type Q277759
value 2
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q277759'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?q ) WHERE { { ?k property:P674 ?c . ?c rdf:type ontology:Q502895 . ?k rdf:type ontology:Q838948 } UNION { ?k property:P674 ?c . ?c rdf:type ontology:Q502895 . ?k rdf:type ontology:Q277759 } } GROUP BY ?c } . FILTER ( ?q = 2 ) }
Chandragupta Maurya Chanakya
2
action count
action equal
action union
action find_reverse_tuple_counts
relation characters
type common name
type work of art
action find_reverse_tuple_counts
relation characters
type common name
type book series
value 2
[[{'concept': 'work of art'}, {'concept': 'book series'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?q ) WHERE { { ?k property:characters ?c . ?c rdf:type ontology:common_name . ?k rdf:type ontology:work_of_art } UNION { ?k property:characters ?c . ?c rdf:type ontology:common_name . ?k rdf:type ontology:book_series } } GROUP BY ?c } . FILTER ( ?q = 2 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q6779617
P21 P40
Q502895
USER
Which people have Mary Garrett as a child and have male as the sex ?
AND((c(Q502895),P40,Q6779617), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q6779617
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q6779617'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?a WHERE { ?a property:P40 resource:Q6779617 . ?a property:P21 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
male Mary Garrett
action filter_type
action intersection
action find_reverse
entity Mary Garrett
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Mary Garrett'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?a WHERE { ?a property:child resource:Mary_Garrett . ?a property:gender resource:male . ?a rdf:type ontology:common_name }
[]
common name
Q6262288
SYSTEM
John W. Garrett
Q6262288
AND((c(Q502895),P40,Q6779617), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q6779617
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Mary Garrett as a child and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q6779617'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?a WHERE { ?a property:P40 resource:Q6779617 . ?a property:P21 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
John W. Garrett
John W. Garrett have Mary Garrett as a child and have male as the sex
John W. Garrett
action filter_type
action intersection
action find_reverse
entity Mary Garrett
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Mary Garrett'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?a WHERE { ?a property:child resource:Mary_Garrett . ?a property:gender resource:male . ?a rdf:type ontology:common_name }
[]