Simple Question (Direct)
Simple Question
Q6377493
P69
Q3918
USER
Which university is the alma mater of Katie Lee ?
(Q6377493,P69,c(Q3918))
action filter_type
action find
entity Q6377493
relation P69
type Q3918
['Q6377493', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?a WHERE { resource:Q6377493 property:P69 ?a . ?a rdf:type ontology:Q3918 }
Katie Lee
action filter_type
action find
entity Katie Lee
relation educated at
type university
['Katie Lee', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?a WHERE { resource:Katie_Lee property:educated_at ?a . ?a rdf:type ontology:university }
[]
university
Q590643
SYSTEM
Miami University
Q590643
(Q6377493,P69,c(Q3918))
action filter_type
action find
entity Q6377493
relation P69
type Q3918
[ANSWER] is the alma mater of Katie Lee
['Q6377493', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?a WHERE { resource:Q6377493 property:P69 ?a . ?a rdf:type ontology:Q3918 }
Miami University
Miami University is the alma mater of Katie Lee
Miami University
action filter_type
action find
entity Katie Lee
relation educated at
type university
['Katie Lee', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?a WHERE { resource:Katie_Lee property:educated_at ?a . ?a rdf:type ontology:university }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q590643
P98
Q732577
USER
Which publication is edited by that university ?
(c(Q732577),P98,Q590643)
action filter_type
action find_reverse
entity Q590643
relation P98
type Q732577
[{'concept': 'Q732577'}, 'P98', 'Q590643']
SELECT DISTINCT ?x WHERE { ?x property:P98 resource:Q590643 . ?x rdf:type ontology:Q732577 }
Miami University
action filter_type
action find_reverse
entity Miami University
relation editor
type publication
[{'concept': 'publication'}, 'editor', 'Miami University']
SELECT DISTINCT ?x WHERE { ?x property:editor resource:Miami_University . ?x rdf:type ontology:publication }
[]
publication
Q27134271
SYSTEM
John Cooper Named Miami University's Head Basketball Coach
Q27134271
(c(Q732577),P98,Q590643)
action filter_type
action find_reverse
entity Q590643
relation P98
type Q732577
John Cooper named Miami University's Head Basketball Coach is edited by that university
[{'concept': 'Q732577'}, 'P98', 'Q590643']
SELECT DISTINCT ?x WHERE { ?x property:P98 resource:Q590643 . ?x rdf:type ontology:Q732577 }
John Cooper Named Miami University's Head Basketball Coach
John Cooper named Miami University's Head Basketball Coach is edited by that university
John Cooper Named Miami University's Head Basketball Coach
action filter_type
action find_reverse
entity Miami University
relation editor
type publication
[{'concept': 'publication'}, 'editor', 'Miami University']
SELECT DISTINCT ?x WHERE { ?x property:editor resource:Miami_University . ?x rdf:type ontology:publication }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q27134271 Q1475213
P921
Q502895
USER
Was Suzie Frankfurt discussed in that publication ?
(Q27134271,P921,Q1475213)
action is_in
entity Q1475213
action find
entity Q27134271
relation P921
['Q27134271', 'P921', 'Q1475213']
ASK WHERE { resource:Q27134271 property:P921 resource:Q1475213 }
John Cooper Named Miami University's Head Basketball Coach Suzie Frankfurt
action is_in
entity Suzie Frankfurt
action find
entity John Cooper Named Miami University's Head Basketball Coach
relation main subject
["John Cooper Named Miami University's Head Basketball Coach", 'main subject', 'Suzie Frankfurt']
ASK WHERE { resource:John_Cooper_Named_Miami_University's_Head_Basketball_Coach property:main_subject resource:Suzie_Frankfurt }
[]
common name
SYSTEM
NO
(Q27134271,P921,Q1475213)
action is_in
entity Q1475213
action find
entity Q27134271
relation P921
[ANSWER]
['Q27134271', 'P921', 'Q1475213']
ASK WHERE { resource:Q27134271 property:P921 resource:Q1475213 }
No
action is_in
entity Suzie Frankfurt
action find
entity John Cooper Named Miami University's Head Basketball Coach
relation main subject
["John Cooper Named Miami University's Head Basketball Coach", 'main subject', 'Suzie Frankfurt']
ASK WHERE { resource:John_Cooper_Named_Miami_University's_Head_Basketball_Coach property:main_subject resource:Suzie_Frankfurt }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q233859 Q6377493
P26
Q502895
USER
Which people are the life partner of Katie Lee or Shu Qi ?
OR((Q6377493,P26,c(Q502895)), (Q233859,P26,c(Q502895)))
action filter_type
action union
action find
entity Q6377493
relation P26
action find
entity Q233859
relation P26
type Q502895
{'OR': [['Q6377493', 'P26', {'concept': 'Q502895'}], ['Q233859', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?s ) { ( resource:Q233859 ) ( resource:Q6377493 ) } . ?s property:P26 ?p } . ?p rdf:type ontology:Q502895 }
Shu Qi Katie Lee
action filter_type
action union
action find
entity Katie Lee
relation spouse
action find
entity Shu Qi
relation spouse
type common name
{'OR': [['Katie Lee', 'spouse', {'concept': 'common name'}], ['Shu Qi', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?s ) { ( resource:Shu_Qi ) ( resource:Katie_Lee ) } . ?s property:spouse ?p } . ?p rdf:type ontology:common_name }
[]
common name
Q194333 Q996607
SYSTEM
Billy Joel, Stephen Fung
Q194333 Q996607
OR((Q6377493,P26,c(Q502895)), (Q233859,P26,c(Q502895)))
action filter_type
action union
action find
entity Q6377493
relation P26
action find
entity Q233859
relation P26
type Q502895
[ANSWERS] are the life partner of Katie Lee or Shu Qi
{'OR': [['Q6377493', 'P26', {'concept': 'Q502895'}], ['Q233859', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?s ) { ( resource:Q233859 ) ( resource:Q6377493 ) } . ?s property:P26 ?p } . ?p rdf:type ontology:Q502895 }
Billy Joel Stephen Fung
Billy Joel and Stephen Fung are the life partner of Katie Lee or Shu Qi
Billy Joel Stephen Fung
action filter_type
action union
action find
entity Katie Lee
relation spouse
action find
entity Shu Qi
relation spouse
type common name
{'OR': [['Katie Lee', 'spouse', {'concept': 'common name'}], ['Shu Qi', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?s ) { ( resource:Shu_Qi ) ( resource:Katie_Lee ) } . ?s property:spouse ?p } . ?p rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q194333
P725
Q11424
USER
Which film did that person dub for ?
(c(Q11424),P725,Q194333)
action filter_type
action find_reverse
entity Q194333
relation P725
type Q11424
[{'concept': 'Q11424'}, 'P725', 'Q194333']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q11424 . ?n property:P725 resource:Q194333 }
Billy Joel
action filter_type
action find_reverse
entity Billy Joel
relation voice actor
type film
[{'concept': 'film'}, 'voice actor', 'Billy Joel']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:film . ?n property:voice_actor resource:Billy_Joel }
[]
film
Clarification for simple ques.
Q194333
SYSTEM
Did you mean Billy Joel ?
Q194333 Q996607
(c(Q11424),P725,Q194333) (c(Q11424),P725,Q996607)
[ANSWER]
[{'concept': 'Q11424'}, 'P725', 'Q194333'] [{'concept': 'Q11424'}, 'P725', 'Q996607']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q11424 . ?n property:P725 resource:Q194333 }
Billy Joel Stephen Fung
Did you mean Billy Joel ?
Billy Joel
[{'concept': 'film'}, 'voice actor', 'Billy Joel'] [{'concept': 'film'}, 'voice actor', 'Stephen Fung']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:film . ?n property:voice_actor resource:Billy_Joel }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q11424),P725,Q194333)
[{'concept': 'Q11424'}, 'P725', 'Q194333']
[{'concept': 'film'}, 'voice actor', 'Billy Joel']
[]
Q216929
SYSTEM
Oliver & Company
Q216929
(c(Q11424),P725,Q194333)
action filter_type
action find_reverse
entity Q194333
relation P725
type Q11424
That person dubbed by [ANSWER]
[{'concept': 'Q11424'}, 'P725', 'Q194333']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q11424 . ?n property:P725 resource:Q194333 }
Oliver & Company
That person dubbed by Oliver & Company
Oliver & Company
action filter_type
action find_reverse
entity Billy Joel
relation voice actor
type film
[{'concept': 'film'}, 'voice actor', 'Billy Joel']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:film . ?n property:voice_actor resource:Billy_Joel }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q216929 Q27493781
P1441
Q95074
USER
Does Georgette appear in that film ?
(Q27493781,P1441,Q216929)
action is_in
entity Q216929
action find
entity Q27493781
relation P1441
['Q27493781', 'P1441', 'Q216929']
ASK WHERE { resource:Q27493781 property:P1441 resource:Q216929 }
Oliver & Company Georgette
action is_in
entity Oliver & Company
action find
entity Georgette
relation present in work
['Georgette', 'present in work', 'Oliver & Company']
ASK WHERE { resource:Georgette property:present_in_work resource:Oliver_&_Company }
[]
fictional character
SYSTEM
YES
(Q27493781,P1441,Q216929)
action is_in
entity Q216929
action find
entity Q27493781
relation P1441
[ANSWER]
['Q27493781', 'P1441', 'Q216929']
ASK WHERE { resource:Q27493781 property:P1441 resource:Q216929 }
Yes
action is_in
entity Oliver & Company
action find
entity Georgette
relation present in work
['Georgette', 'present in work', 'Oliver & Company']
ASK WHERE { resource:Georgette property:present_in_work resource:Oliver_&_Company }
[]