Simple Question (Direct)
Simple Question
Q5076558
P22
Q502895
USER
Which male person was the parent of Charles Crompton ?
(Q5076558,P22,c(Q502895))
action filter_type
action find
entity Q5076558
relation P22
type Q502895
['Q5076558', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . resource:Q5076558 property:P22 ?j }
Charles Crompton
action filter_type
action find
entity Charles Crompton
relation father
type common name
['Charles Crompton', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . resource:Charles_Crompton property:father ?j }
[]
common name
Q18546122
SYSTEM
Charles Crompton
Q18546122
(Q5076558,P22,c(Q502895))
action filter_type
action find
entity Q5076558
relation P22
type Q502895
Of [ANSWER] was the parent of [ANSWER]
['Q5076558', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . resource:Q5076558 property:P22 ?j }
Charles Crompton
Of Charles Crompton was the parent of Charles Crompton
Charles Crompton
action filter_type
action find
entity Charles Crompton
relation father
type common name
['Charles Crompton', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . resource:Charles_Crompton property:father ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18546122
P921
Q191067
USER
Which article has that person as its main topic ?
(c(Q191067),P921,Q18546122)
action filter_type
action find_reverse
entity Q18546122
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q18546122']
SELECT DISTINCT ?x WHERE { ?x property:P921 resource:Q18546122 . ?x rdf:type ontology:Q191067 }
Charles Crompton
action filter_type
action find_reverse
entity Charles Crompton
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Charles Crompton']
SELECT DISTINCT ?x WHERE { ?x property:main_subject resource:Charles_Crompton . ?x rdf:type ontology:article }
[]
article
Q19069240
SYSTEM
Crompton, Charles John (DNB00)
Q19069240
(c(Q191067),P921,Q18546122)
action filter_type
action find_reverse
entity Q18546122
relation P921
type Q191067
[ANSWER] has that person as its main topic
[{'concept': 'Q191067'}, 'P921', 'Q18546122']
SELECT DISTINCT ?x WHERE { ?x property:P921 resource:Q18546122 . ?x rdf:type ontology:Q191067 }
Crompton, Charles John (DNB00)
Crompton, Charles John (DNB00) has that person as its main topic
Crompton, Charles John (DNB00)
action filter_type
action find_reverse
entity Charles Crompton
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Charles Crompton']
SELECT DISTINCT ?x WHERE { ?x property:main_subject resource:Charles_Crompton . ?x rdf:type ontology:article }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18546122
P463
Q1110684
USER
Which professional association had that person as its member ?
(Q19069240,P463,c(Q1110684))
action filter_type
action find
entity Q18546122
relation P463
type Q1110684
['Q19069240', 'P463', {'concept': 'Q1110684'}]
SELECT DISTINCT ?t WHERE { resource:Q18546122 property:P463 ?t . ?t rdf:type ontology:Q1110684 }
Charles Crompton
action filter_type
action find
entity Charles Crompton
relation member of
type professional association
['Crompton, Charles John (DNB00)', 'member of', {'concept': 'professional association'}]
SELECT DISTINCT ?t WHERE { resource:Charles_Crompton property:member_of ?t . ?t rdf:type ontology:professional_association }
[]
professional association
Q1233784
SYSTEM
Inner Temple
Q1233784
(Q19069240,P463,c(Q1110684))
action filter_type
action find
entity Q18546122
relation P463
type Q1110684
[ANSWER] had that person as its member
['Q19069240', 'P463', {'concept': 'Q1110684'}]
SELECT DISTINCT ?t WHERE { resource:Q18546122 property:P463 ?t . ?t rdf:type ontology:Q1110684 }
Inner Temple
Inner Temple had that person as its member
Inner Temple
action filter_type
action find
entity Charles Crompton
relation member of
type professional association
['Crompton, Charles John (DNB00)', 'member of', {'concept': 'professional association'}]
SELECT DISTINCT ?t WHERE { resource:Charles_Crompton property:member_of ?t . ?t rdf:type ontology:professional_association }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P463
Q1110684 Q502895
USER
Which professional associations were approximately the same number of people a member of as that professional association ?
(c(Q502895),P463,c(Q1110684))
action approx
action find_reverse_tuple_counts
relation P463
type Q1110684
type Q502895
action count
action filter_type
action find
entity Q1233784
relation P463
type Q1110684
[{'concept': 'Q502895'}, 'P463', {'concept': 'Q1110684'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { resource:Q1233784 property:P463 ?z . ?z rdf:type ontology:Q1110684 } } . FILTER ( ?m = ?p ) . { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?m ) WHERE { ?y property:P463 ?q . ?y rdf:type ontology:Q502895 . ?q rdf:type ontology:Q1110684 } GROUP BY ?q } }
action approx
action find_reverse_tuple_counts
relation member of
type professional association
type common name
action count
action filter_type
action find
entity Inner Temple
relation member of
type professional association
[{'concept': 'common name'}, 'member of', {'concept': 'professional association'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { resource:Inner_Temple property:member_of ?z . ?z rdf:type ontology:professional_association } } . FILTER ( ?m = ?p ) . { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?m ) WHERE { ?y property:member_of ?q . ?y rdf:type ontology:common_name . ?q rdf:type ontology:professional_association } GROUP BY ?q } }
[]
professional association common name
Q1233784 Q157412
SYSTEM
Inner Temple, Gray's Inn
Q1233784 Q157412
(c(Q502895),P463,c(Q1110684))
action approx
action find_reverse_tuple_counts
relation P463
type Q1110684
type Q502895
action count
action filter_type
action find
entity Q1233784
relation P463
type Q1110684
[ANSWERS] were approximately the same number of people a member of as that professional association
[{'concept': 'Q502895'}, 'P463', {'concept': 'Q1110684'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { resource:Q1233784 property:P463 ?z . ?z rdf:type ontology:Q1110684 } } . FILTER ( ?m = ?p ) . { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?m ) WHERE { ?y property:P463 ?q . ?y rdf:type ontology:Q502895 . ?q rdf:type ontology:Q1110684 } GROUP BY ?q } }
Inner Temple Gray's Inn
Inner Temple and Gray's Inn were approximately the same number of people a member of as that professional association
Inner Temple Gray's Inn
action approx
action find_reverse_tuple_counts
relation member of
type professional association
type common name
action count
action filter_type
action find
entity Inner Temple
relation member of
type professional association
[{'concept': 'common name'}, 'member of', {'concept': 'professional association'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { resource:Inner_Temple property:member_of ?z . ?z rdf:type ontology:professional_association } } . FILTER ( ?m = ?p ) . { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?m ) WHERE { ?y property:member_of ?q . ?y rdf:type ontology:common_name . ?q rdf:type ontology:professional_association } GROUP BY ?q } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17532388 Q1233784
P1435
Q41176
USER
Which buildings give the heritage status of Inner Temple or Church Of Saint Mawnan ?
OR((Q1233784,P1435,c(Q41176)), (Q17532388,P1435,c(Q41176)))
action filter_type
action union
action find
entity Q1233784
relation P1435
action find
entity Q17532388
relation P1435
type Q41176
{'OR': [['Q1233784', 'P1435', {'concept': 'Q41176'}], ['Q17532388', 'P1435', {'concept': 'Q41176'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?w ) { ( resource:Q1233784 ) ( resource:Q17532388 ) } . ?w property:P1435 ?c } . ?c rdf:type ontology:Q41176 }
Church Of Saint Mawnan Inner Temple
action filter_type
action union
action find
entity Inner Temple
relation heritage status
action find
entity Church Of Saint Mawnan
relation heritage status
type building
{'OR': [['Inner Temple', 'heritage status', {'concept': 'building'}], ['Church Of Saint Mawnan', 'heritage status', {'concept': 'building'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?w ) { ( resource:Inner_Temple ) ( resource:Church_Of_Saint_Mawnan ) } . ?w property:heritage_status ?c } . ?c rdf:type ontology:building }
[]
building
Q15700818 Q15700831
SYSTEM
Grade I listed building, Grade II* listed building
Q15700818 Q15700831
OR((Q1233784,P1435,c(Q41176)), (Q17532388,P1435,c(Q41176)))
action filter_type
action union
action find
entity Q1233784
relation P1435
action find
entity Q17532388
relation P1435
type Q41176
[ANSWERS] give the heritage status of Inner Temple or Church Of Saint Mawnan
{'OR': [['Q1233784', 'P1435', {'concept': 'Q41176'}], ['Q17532388', 'P1435', {'concept': 'Q41176'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?w ) { ( resource:Q1233784 ) ( resource:Q17532388 ) } . ?w property:P1435 ?c } . ?c rdf:type ontology:Q41176 }
Grade I listed building Grade II* listed building
Grade I listed building and Grade II* listed building give the heritage status of Inner Temple or Church Of Saint Mawnan
Grade I listed building Grade II* listed building
action filter_type
action union
action find
entity Inner Temple
relation heritage status
action find
entity Church Of Saint Mawnan
relation heritage status
type building
{'OR': [['Inner Temple', 'heritage status', {'concept': 'building'}], ['Church Of Saint Mawnan', 'heritage status', {'concept': 'building'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?w ) { ( resource:Inner_Temple ) ( resource:Church_Of_Saint_Mawnan ) } . ?w property:heritage_status ?c } . ?c rdf:type ontology:building }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q17529426
P1435
Q44539
USER
Do Church Of St Michael The Archangel have a heritage status of those buildings ?
(Q17529426,P1435,Q15700818) (Q17529426,P1435,Q15700831)
action is_in
entity prev_answer
action find
entity Q17529426
relation P1435
['Q17529426', 'P1435', 'Q15700818'] ['Q17529426', 'P1435', 'Q15700831']
ASK WHERE { resource:Q17529426 property:P1435 ?y . VALUES ( ?y ) { ( resource:Q15700818 ) ( resource:Q15700831 ) } }
Church Of St Michael The Archangel
action is_in
entity prev_answer
action find
entity Church Of St Michael The Archangel
relation heritage status
['Church Of St Michael The Archangel', 'heritage status', 'Grade I listed building'] ['Church Of St Michael The Archangel', 'heritage status', 'Grade II* listed building']
ASK WHERE { resource:Church_Of_St_Michael_The_Archangel property:heritage_status ?y . VALUES ( ?y ) { ( resource:Grade_I_listed_building ) ( resource:Grade_II*_listed_building ) } }
[]
temple
SYSTEM
YES
(Q17529426,P1435,Q15700818) (Q17529426,P1435,Q15700831)
action is_in
entity prev_answer
action find
entity Q17529426
relation P1435
[ANSWER]
['Q17529426', 'P1435', 'Q15700818'] ['Q17529426', 'P1435', 'Q15700831']
ASK WHERE { resource:Q17529426 property:P1435 ?y . VALUES ( ?y ) { ( resource:Q15700818 ) ( resource:Q15700831 ) } }
Yes
action is_in
entity prev_answer
action find
entity Church Of St Michael The Archangel
relation heritage status
['Church Of St Michael The Archangel', 'heritage status', 'Grade I listed building'] ['Church Of St Michael The Archangel', 'heritage status', 'Grade II* listed building']
ASK WHERE { resource:Church_Of_St_Michael_The_Archangel property:heritage_status ?y . VALUES ( ?y ) { ( resource:Grade_I_listed_building ) ( resource:Grade_II*_listed_building ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q15700831 Q542436
P17
Q15617994
USER
Is Grade II* listed building present in Groß Laasch ?
(Q15700831,P17,Q542436)
action is_in
entity Q542436
action find
entity Q15700831
relation P17
['Q15700831', 'P17', 'Q542436']
ASK WHERE { resource:Q15700831 property:P17 resource:Q542436 }
Grade II* listed building Groß Laasch
action is_in
entity Groß Laasch
action find
entity Grade II* listed building
relation country
['Grade II* listed building', 'country', 'Groß Laasch']
ASK WHERE { resource:Grade_II*_listed_building property:country resource:Groß_Laasch }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q15700831,P17,Q542436)
action is_in
entity Q542436
action find
entity Q15700831
relation P17
[ANSWER]
['Q15700831', 'P17', 'Q542436']
ASK WHERE { resource:Q15700831 property:P17 resource:Q542436 }
No
action is_in
entity Groß Laasch
action find
entity Grade II* listed building
relation country
['Grade II* listed building', 'country', 'Groß Laasch']
ASK WHERE { resource:Grade_II*_listed_building property:country resource:Groß_Laasch }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q157412
P276
Q123705
USER
Where is Gray's Inn located ?
(Q157412,P276,c(Q123705))
action filter_type
action find
entity Q157412
relation P276
type Q123705
['Q157412', 'P276', {'concept': 'Q123705'}]
SELECT DISTINCT ?o WHERE { resource:Q157412 property:P276 ?o . ?o rdf:type ontology:Q123705 }
Gray's Inn
action filter_type
action find
entity Gray's Inn
relation location
type neighborhood
["Gray's Inn", 'location', {'concept': 'neighborhood'}]
SELECT DISTINCT ?o WHERE { resource:Gray's_Inn property:location ?o . ?o rdf:type ontology:neighborhood }
[]
neighborhood
Q123624
SYSTEM
Holborn
Q123624
(Q157412,P276,c(Q123705))
action filter_type
action find
entity Q157412
relation P276
type Q123705
Gray's Inn is located in [ANSWER]
['Q157412', 'P276', {'concept': 'Q123705'}]
SELECT DISTINCT ?o WHERE { resource:Q157412 property:P276 ?o . ?o rdf:type ontology:Q123705 }
Holborn
Gray's Inn is located in Holborn
Holborn
action filter_type
action find
entity Gray's Inn
relation location
type neighborhood
["Gray's Inn", 'location', {'concept': 'neighborhood'}]
SELECT DISTINCT ?o WHERE { resource:Gray's_Inn property:location ?o . ?o rdf:type ontology:neighborhood }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q157412
P1416
Q502895
USER
Which person is affiliated to that professional association ?
(c(Q502895),P1416,Q123624)
action filter_type
action find_reverse
entity Q157412
relation P1416
type Q502895
[{'concept': 'Q502895'}, 'P1416', 'Q123624']
SELECT DISTINCT ?y WHERE { ?y property:P1416 resource:Q157412 . ?y rdf:type ontology:Q502895 }
Gray's Inn
action filter_type
action find_reverse
entity Gray's Inn
relation affiliation
type common name
[{'concept': 'common name'}, 'affiliation', 'Holborn']
SELECT DISTINCT ?y WHERE { ?y property:affiliation resource:Gray's_Inn . ?y rdf:type ontology:common_name }
[]
common name
Q18819536
SYSTEM
John Speed
Q18819536
(c(Q502895),P1416,Q123624)
action filter_type
action find_reverse
entity Q157412
relation P1416
type Q502895
[ANSWER] is affiliated to that professional association
[{'concept': 'Q502895'}, 'P1416', 'Q123624']
SELECT DISTINCT ?y WHERE { ?y property:P1416 resource:Q157412 . ?y rdf:type ontology:Q502895 }
John Speed
John Speed is affiliated to that professional association
John Speed
action filter_type
action find_reverse
entity Gray's Inn
relation affiliation
type common name
[{'concept': 'common name'}, 'affiliation', 'Holborn']
SELECT DISTINCT ?y WHERE { ?y property:affiliation resource:Gray's_Inn . ?y rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q157412
P21 P1416
Q502895
USER
Which people have affliliation with Gray's Inn and have the gender as male ?
AND((c(Q502895),P1416,Q157412), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q157412
relation P1416
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P1416', 'Q157412'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?t property:P1416 resource:Q157412 . ?t property:P21 resource:Q6581097 }
male Gray's Inn
action filter_type
action intersection
action find_reverse
entity Gray's Inn
relation affiliation
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'affiliation', "Gray's Inn"], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?t property:affiliation resource:Gray's_Inn . ?t property:gender resource:male }
[]
common name
Q18819536
SYSTEM
John Speed
Q18819536
AND((c(Q502895),P1416,Q157412), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q157412
relation P1416
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have affliliation with Gray's Inn and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P1416', 'Q157412'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?t property:P1416 resource:Q157412 . ?t property:P21 resource:Q6581097 }
John Speed
John Speed have affliliation with Gray's Inn and have the gender as male
John Speed
action filter_type
action intersection
action find_reverse
entity Gray's Inn
relation affiliation
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'affiliation', "Gray's Inn"], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?t property:affiliation resource:Gray's_Inn . ?t property:gender resource:male }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q18819536 Q1245028
P40
Q502895
USER
Does John Speed have that one as a child ?
(Q1245028,P40,Q18819536)
action is_in
entity Q18819536
action find
entity Q1245028
relation P40
['Q1245028', 'P40', 'Q18819536']
ASK WHERE { resource:Q1245028 property:P40 resource:Q18819536 }
John Speed John Speed
action is_in
entity John Speed
action find
entity John Speed
relation child
['John Speed', 'child', 'John Speed']
ASK WHERE { resource:John_Speed property:child resource:John_Speed }
[]
common name
SYSTEM
YES
(Q1245028,P40,Q18819536)
action is_in
entity Q18819536
action find
entity Q1245028
relation P40
[ANSWER]
['Q1245028', 'P40', 'Q18819536']
ASK WHERE { resource:Q1245028 property:P40 resource:Q18819536 }
Yes
action is_in
entity John Speed
action find
entity John Speed
relation child
['John Speed', 'child', 'John Speed']
ASK WHERE { resource:John_Speed property:child resource:John_Speed }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q19069240 Q1577777 Q6203472
P50
Q502895
USER
Is Crompton, Charles John (DNB00) written by Hans Jürgen Nierentz and Theodor Tallqvist ?
(Q19069240,P50,Q1577777) (Q19069240,P50,Q6203472)
action is_in
entity Q19069240
action intersection
action find_reverse
entity Q1577777
relation P50
action find_reverse
entity Q6203472
relation P50
['Q19069240', 'P50', 'Q1577777'] ['Q19069240', 'P50', 'Q6203472']
ASK WHERE { resource:Q19069240 property:P50 resource:Q1577777 . resource:Q19069240 property:P50 resource:Q6203472 }
Crompton, Charles John (DNB00) Hans Jürgen Nierentz Theodor Tallqvist
action is_in
entity Crompton, Charles John (DNB00)
action intersection
action find_reverse
entity Hans Jürgen Nierentz
relation author
action find_reverse
entity Theodor Tallqvist
relation author
['Crompton, Charles John (DNB00)', 'author', 'Hans Jürgen Nierentz'] ['Crompton, Charles John (DNB00)', 'author', 'Theodor Tallqvist']
ASK WHERE { resource:Crompton,_Charles_John_(DNB00) property:author resource:Hans_Jürgen_Nierentz . resource:Crompton,_Charles_John_(DNB00) property:author resource:Theodor_Tallqvist }
[]
common name
SYSTEM
NO
(Q19069240,P50,Q1577777) (Q19069240,P50,Q6203472)
action is_in
entity Q19069240
action intersection
action find_reverse
entity Q1577777
relation P50
action find_reverse
entity Q6203472
relation P50
[ANSWER]
['Q19069240', 'P50', 'Q1577777'] ['Q19069240', 'P50', 'Q6203472']
ASK WHERE { resource:Q19069240 property:P50 resource:Q1577777 . resource:Q19069240 property:P50 resource:Q6203472 }
No
action is_in
entity Crompton, Charles John (DNB00)
action intersection
action find_reverse
entity Hans Jürgen Nierentz
relation author
action find_reverse
entity Theodor Tallqvist
relation author
['Crompton, Charles John (DNB00)', 'author', 'Hans Jürgen Nierentz'] ['Crompton, Charles John (DNB00)', 'author', 'Theodor Tallqvist']
ASK WHERE { resource:Crompton,_Charles_John_(DNB00) property:author resource:Hans_Jürgen_Nierentz . resource:Crompton,_Charles_John_(DNB00) property:author resource:Theodor_Tallqvist }
[]