Simple Question (Direct)
Simple Question
Q573941
P140
Q9174
USER
Which religion does Anthony Russell relate to ?
(Q573941,P140,c(Q9174))
action filter_type
action find
entity Q573941
relation P140
type Q9174
['Q573941', 'P140', {'concept': 'Q9174'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q9174 . resource:Q573941 property:P140 ?l }
Anthony Russell
action filter_type
action find
entity Anthony Russell
relation religion
type religion
['Anthony Russell', 'religion', {'concept': 'religion'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:religion . resource:Anthony_Russell property:religion ?l }
[]
religion
Q6423963
SYSTEM
Anglicanism
Q6423963
(Q573941,P140,c(Q9174))
action filter_type
action find
entity Q573941
relation P140
type Q9174
Anthony Russell relates to [ANSWER]
['Q573941', 'P140', {'concept': 'Q9174'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q9174 . resource:Q573941 property:P140 ?l }
Anglicanism
Anthony Russell relates to Anglicanism
Anglicanism
action filter_type
action find
entity Anthony Russell
relation religion
type religion
['Anthony Russell', 'religion', {'concept': 'religion'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:religion . resource:Anthony_Russell property:religion ?l }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q573941
P108
Q1055028
USER
Which college of the University of Cambridge does Anthony Russell work for ?
(Q573941,P108,c(Q1055028))
action filter_type
action find
entity Q573941
relation P108
type Q1055028
['Q573941', 'P108', {'concept': 'Q1055028'}]
SELECT DISTINCT ?w WHERE { resource:Q573941 property:P108 ?w . ?w rdf:type ontology:Q1055028 }
Anthony Russell
action filter_type
action find
entity Anthony Russell
relation employer
type college of the University of Cambridge
['Anthony Russell', 'employer', {'concept': 'college of the University of Cambridge'}]
SELECT DISTINCT ?w WHERE { resource:Anthony_Russell property:employer ?w . ?w rdf:type ontology:college_of_the_University_of_Cambridge }
[]
college of the University of Cambridge
Q1244726
SYSTEM
Wolfson College
Q1244726
(Q573941,P108,c(Q1055028))
action filter_type
action find
entity Q573941
relation P108
type Q1055028
Which college of the University of Cambridge Anthony Russell works for
['Q573941', 'P108', {'concept': 'Q1055028'}]
SELECT DISTINCT ?w WHERE { resource:Q573941 property:P108 ?w . ?w rdf:type ontology:Q1055028 }
Wolfson College
Which college of the University of Cambridge Anthony Russell works for
Wolfson College
action filter_type
action find
entity Anthony Russell
relation employer
type college of the University of Cambridge
['Anthony Russell', 'employer', {'concept': 'college of the University of Cambridge'}]
SELECT DISTINCT ?w WHERE { resource:Anthony_Russell property:employer ?w . ?w rdf:type ontology:college_of_the_University_of_Cambridge }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q573941
P69
Q1244442
USER
Which school building is that person an alumni of ?
(Q1244726,P69,c(Q1244442))
action filter_type
action find
entity Q573941
relation P69
type Q1244442
['Q1244726', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?l WHERE { resource:Q573941 property:P69 ?l . ?l rdf:type ontology:Q1244442 }
Anthony Russell
action filter_type
action find
entity Anthony Russell
relation educated at
type school building
['Wolfson College', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?l WHERE { resource:Anthony_Russell property:educated_at ?l . ?l rdf:type ontology:school_building }
[]
school building
Q73079
SYSTEM
Trinity College
Q73079
(Q1244726,P69,c(Q1244442))
action filter_type
action find
entity Q573941
relation P69
type Q1244442
[ANSWER] is that person an alumni of
['Q1244726', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?l WHERE { resource:Q573941 property:P69 ?l . ?l rdf:type ontology:Q1244442 }
Trinity College
Trinity College is that person an alumni of
Trinity College
action filter_type
action find
entity Anthony Russell
relation educated at
type school building
['Wolfson College', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?l WHERE { resource:Anthony_Russell property:educated_at ?l . ?l rdf:type ontology:school_building }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P69
Q1244442 Q502895
USER
Which school buildings are the alma mater of greater number of people than that school building ?
(c(Q502895),P69,c(Q1244442))
action greater
action find_reverse_tuple_counts
relation P69
type Q1244442
type Q502895
action count
action filter_type
action find
entity Q73079
relation P69
type Q1244442
[{'concept': 'Q502895'}, 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:P69 ?x . ?x rdf:type ontology:Q1244442 . ?k rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?h > ?g ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { ?y rdf:type ontology:Q1244442 . resource:Q73079 property:P69 ?y } } }
action greater
action find_reverse_tuple_counts
relation educated at
type school building
type common name
action count
action filter_type
action find
entity Trinity College
relation educated at
type school building
[{'concept': 'common name'}, 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:educated_at ?x . ?x rdf:type ontology:school_building . ?k rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?h > ?g ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { ?y rdf:type ontology:school_building . resource:Trinity_College property:educated_at ?y } } }
[]
school building common name
Q805285 Q745967 Q81173
SYSTEM
Balliol College, Christ Church, Exeter College
Q745967 Q81173 Q81174 Q805285 Q1376987 Q81087 Q81162
(c(Q502895),P69,c(Q1244442))
action greater
action find_reverse_tuple_counts
relation P69
type Q1244442
type Q502895
action count
action filter_type
action find
entity Q73079
relation P69
type Q1244442
[ANSWERS] are the alma mater of greater number of people than that school building
[{'concept': 'Q502895'}, 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:P69 ?x . ?x rdf:type ontology:Q1244442 . ?k rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?h > ?g ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { ?y rdf:type ontology:Q1244442 . resource:Q73079 property:P69 ?y } } }
Christ Church Exeter College Jesus College Balliol College New College University College Magdalen College
Balliol College, Christ Church and Exeter College are the alma mater of greater number of people than that school building
Balliol College Christ Church Exeter College
action greater
action find_reverse_tuple_counts
relation educated at
type school building
type common name
action count
action filter_type
action find
entity Trinity College
relation educated at
type school building
[{'concept': 'common name'}, 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:educated_at ?x . ?x rdf:type ontology:school_building . ?k rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?h > ?g ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { ?y rdf:type ontology:school_building . resource:Trinity_College property:educated_at ?y } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q805285
P138
Q502895
USER
Which person is that school building named after ?
(Q805285,P138,c(Q502895))
action filter_type
action find
entity Q805285
relation P138
type Q502895
['Q805285', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q805285 property:P138 ?j . ?j rdf:type ontology:Q502895 }
Balliol College
action filter_type
action find
entity Balliol College
relation named after
type common name
['Balliol College', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Balliol_College property:named_after ?j . ?j rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q745967
SYSTEM
Did you mean Christ Church ?
Q805285 Q745967 Q81173
(Q805285,P138,c(Q502895)) (Q745967,P138,c(Q502895)) (Q81173,P138,c(Q502895))
[ANSWER]
['Q805285', 'P138', {'concept': 'Q502895'}] ['Q745967', 'P138', {'concept': 'Q502895'}] ['Q81173', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q805285 property:P138 ?j . ?j rdf:type ontology:Q502895 }
Balliol College Christ Church Exeter College
Did you mean Christ Church ?
Christ Church
['Balliol College', 'named after', {'concept': 'common name'}] ['Christ Church', 'named after', {'concept': 'common name'}] ['Exeter College', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Balliol_College property:named_after ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Balliol College. Could you tell me the answer for that?
(Q805285,P138,c(Q502895))
Q805285
['Q805285', 'P138', {'concept': 'Q502895'}]
['Balliol College', 'named after', {'concept': 'common name'}]
[]
Q323643
SYSTEM
John I de Balliol
Q323643
(Q805285,P138,c(Q502895))
action filter_type
action find
entity Q805285
relation P138
type Q502895
That school building is named for [ANSWER]
['Q805285', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q805285 property:P138 ?j . ?j rdf:type ontology:Q502895 }
John I de Balliol
That school building is named for John I de Balliol
John I de Balliol
action filter_type
action find
entity Balliol College
relation named after
type common name
['Balliol College', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Balliol_College property:named_after ?j . ?j rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q323643 Q310065
P40
Q502895
USER
Is John of Scotland a child of that one ?
(Q323643,P40,Q310065)
action is_in
entity Q310065
action find
entity Q323643
relation P40
['Q323643', 'P40', 'Q310065']
ASK WHERE { resource:Q323643 property:P40 resource:Q310065 }
John I de Balliol John of Scotland
action is_in
entity John of Scotland
action find
entity John I de Balliol
relation child
['John I de Balliol', 'child', 'John of Scotland']
ASK WHERE { resource:John_I_de_Balliol property:child resource:John_of_Scotland }
[]
common name
SYSTEM
YES
(Q323643,P40,Q310065)
action is_in
entity Q310065
action find
entity Q323643
relation P40
[ANSWER]
['Q323643', 'P40', 'Q310065']
ASK WHERE { resource:Q323643 property:P40 resource:Q310065 }
Yes
action is_in
entity John of Scotland
action find
entity John I de Balliol
relation child
['John I de Balliol', 'child', 'John of Scotland']
ASK WHERE { resource:John_I_de_Balliol property:child resource:John_of_Scotland }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q323643
P138
Q1244442
USER
Which school building comes from John I de Balliol ?
action filter_type
action find_reverse
entity Q323643
relation P138
type Q1244442
SELECT DISTINCT ?i WHERE { ?i property:P138 resource:Q323643 . ?i rdf:type ontology:Q1244442 }
John I de Balliol
action filter_type
action find_reverse
entity John I de Balliol
relation named after
type school building
SELECT DISTINCT ?i WHERE { ?i property:named_after resource:John_I_de_Balliol . ?i rdf:type ontology:school_building }
[]
school building
Q805285
SYSTEM
Balliol College
Q805285
action filter_type
action find_reverse
entity Q323643
relation P138
type Q1244442
[ANSWER] comes from John I de Balliol
SELECT DISTINCT ?i WHERE { ?i property:P138 resource:Q323643 . ?i rdf:type ontology:Q1244442 }
Balliol College
Balliol College comes from John I de Balliol
Balliol College
action filter_type
action find_reverse
entity John I de Balliol
relation named after
type school building
SELECT DISTINCT ?i WHERE { ?i property:named_after resource:John_I_de_Balliol . ?i rdf:type ontology:school_building }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q805285 Q6247788
P69
Q502895
USER
Was John McGinnis educated at that school building ?
(Q6247788,P69,Q805285)
action is_in
entity Q805285
action find
entity Q6247788
relation P69
['Q6247788', 'P69', 'Q805285']
ASK WHERE { resource:Q6247788 property:P69 resource:Q805285 }
Balliol College John McGinnis
action is_in
entity Balliol College
action find
entity John McGinnis
relation educated at
['John McGinnis', 'educated at', 'Balliol College']
ASK WHERE { resource:John_McGinnis property:educated_at resource:Balliol_College }
[]
common name
SYSTEM
YES
(Q6247788,P69,Q805285)
action is_in
entity Q805285
action find
entity Q6247788
relation P69
[ANSWER]
['Q6247788', 'P69', 'Q805285']
ASK WHERE { resource:Q6247788 property:P69 resource:Q805285 }
Yes
action is_in
entity Balliol College
action find
entity John McGinnis
relation educated at
['John McGinnis', 'educated at', 'Balliol College']
ASK WHERE { resource:John_McGinnis property:educated_at resource:Balliol_College }
[]