Simple Question (Direct)
Simple Question
Q2346804
P20
Q178706
USER
Where did Gordon Cummins expire ?
(Q2346804,P20,c(Q178706))
action filter_type
action find
entity Q2346804
relation P20
type Q178706
['Q2346804', 'P20', {'concept': 'Q178706'}]
SELECT DISTINCT ?f WHERE { resource:Q2346804 property:P20 ?f . ?f rdf:type ontology:Q178706 }
Gordon Cummins
action filter_type
action find
entity Gordon Cummins
relation place of death
type institution
['Gordon Cummins', 'place of death', {'concept': 'institution'}]
SELECT DISTINCT ?f WHERE { resource:Gordon_Cummins property:place_of_death ?f . ?f rdf:type ontology:institution }
[]
institution
Q386707
SYSTEM
HM Prison Wandsworth
Q386707
(Q2346804,P20,c(Q178706))
action filter_type
action find
entity Q2346804
relation P20
type Q178706
Gordon Cummins expired in [ANSWER]
['Q2346804', 'P20', {'concept': 'Q178706'}]
SELECT DISTINCT ?f WHERE { resource:Q2346804 property:P20 ?f . ?f rdf:type ontology:Q178706 }
HM Prison Wandsworth
Gordon Cummins expired in HM Prison Wandsworth
HM Prison Wandsworth
action filter_type
action find
entity Gordon Cummins
relation place of death
type institution
['Gordon Cummins', 'place of death', {'concept': 'institution'}]
SELECT DISTINCT ?f WHERE { resource:Gordon_Cummins property:place_of_death ?f . ?f rdf:type ontology:institution }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2346804
P21
Q290
USER
What is the sex of Gordon Cummins ?
(Q2346804,P21,c(Q290))
action filter_type
action find
entity Q2346804
relation P21
type Q290
['Q2346804', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q2346804 property:P21 ?d . ?d rdf:type ontology:Q290 }
Gordon Cummins
action filter_type
action find
entity Gordon Cummins
relation gender
type sex
['Gordon Cummins', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Gordon_Cummins property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2346804,P21,c(Q290))
action filter_type
action find
entity Q2346804
relation P21
type Q290
The sex of Gordon Cummins is a [ANSWER]
['Q2346804', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q2346804 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
The sex of Gordon Cummins is a male
male
action filter_type
action find
entity Gordon Cummins
relation gender
type sex
['Gordon Cummins', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Gordon_Cummins property:gender ?d . ?d rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2346804
P27
Q15617994
USER
Which administrative territory does Gordon Cummins belong to ?
(Q2346804,P27,c(Q15617994))
action filter_type
action find
entity Q2346804
relation P27
type Q15617994
['Q2346804', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q2346804 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Gordon Cummins
action filter_type
action find
entity Gordon Cummins
relation country of citizenship
type designation for an administrative territorial entity
['Gordon Cummins', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Gordon_Cummins property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q2346804,P27,c(Q15617994))
action filter_type
action find
entity Q2346804
relation P27
type Q15617994
Gordon Cummins belongs to [ANSWER]
['Q2346804', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q2346804 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
United Kingdom
Gordon Cummins belongs to United Kingdom
United Kingdom
action filter_type
action find
entity Gordon Cummins
relation country of citizenship
type designation for an administrative territorial entity
['Gordon Cummins', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Gordon_Cummins property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11361037
Q15617994
USER
And what about Shinsuke Shimojō?
(Q11361037,P27,c(Q15617994))
action filter_type
action find
entity Q11361037
relation P27
type Q15617994
['Q11361037', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q11361037 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Shinsuke Shimojō
action filter_type
action find
entity Shinsuke Shimojō
relation country of citizenship
type designation for an administrative territorial entity
['Shinsuke Shimojō', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Shinsuke_Shimojō property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q11361037,P27,c(Q15617994))
action filter_type
action find
entity Q11361037
relation P27
type Q15617994
[ANSWER]
['Q11361037', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q11361037 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Japan
Japan
action filter_type
action find
entity Shinsuke Shimojō
relation country of citizenship
type designation for an administrative territorial entity
['Shinsuke Shimojō', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Shinsuke_Shimojō property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q17 Q2904
P530
Q15617994
USER
Does Herne have diplomatic relations with that one ?
(Q17,P530,Q2904)
action is_in
entity Q2904
action find
entity Q17
relation P530
['Q17', 'P530', 'Q2904']
ASK WHERE { resource:Q17 property:P530 resource:Q2904 }
Japan Herne
action is_in
entity Herne
action find
entity Japan
relation diplomatic relation
['Japan', 'diplomatic relation', 'Herne']
ASK WHERE { resource:Japan property:diplomatic_relation resource:Herne }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q17,P530,Q2904)
action is_in
entity Q2904
action find
entity Q17
relation P530
[ANSWER]
['Q17', 'P530', 'Q2904']
ASK WHERE { resource:Q17 property:P530 resource:Q2904 }
No
action is_in
entity Herne
action find
entity Japan
relation diplomatic relation
['Japan', 'diplomatic relation', 'Herne']
ASK WHERE { resource:Japan property:diplomatic_relation resource:Herne }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q386707 Q5378721 Q145
P17
Q15617994
USER
Is HM Prison Wandsworth present in Engollan and United Kingdom ?
(Q386707,P17,Q5378721) (Q386707,P17,Q145)
action is_in
entity Q386707
action intersection
action find_reverse
entity Q5378721
relation P17
action find_reverse
entity Q145
relation P17
['Q386707', 'P17', 'Q5378721'] ['Q386707', 'P17', 'Q145']
ASK WHERE { resource:Q386707 property:P17 resource:Q5378721 . resource:Q386707 property:P17 resource:Q145 }
HM Prison Wandsworth Engollan United Kingdom
action is_in
entity HM Prison Wandsworth
action intersection
action find_reverse
entity Engollan
relation country
action find_reverse
entity United Kingdom
relation country
['HM Prison Wandsworth', 'country', 'Engollan'] ['HM Prison Wandsworth', 'country', 'United Kingdom']
ASK WHERE { resource:HM_Prison_Wandsworth property:country resource:Engollan . resource:HM_Prison_Wandsworth property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q386707,P17,Q5378721) (Q386707,P17,Q145)
action is_in
entity Q386707
action intersection
action find_reverse
entity Q5378721
relation P17
action find_reverse
entity Q145
relation P17
[ANSWER]
['Q386707', 'P17', 'Q5378721'] ['Q386707', 'P17', 'Q145']
ASK WHERE { resource:Q386707 property:P17 resource:Q5378721 . resource:Q386707 property:P17 resource:Q145 }
NO and YES respectively
action is_in
entity HM Prison Wandsworth
action intersection
action find_reverse
entity Engollan
relation country
action find_reverse
entity United Kingdom
relation country
['HM Prison Wandsworth', 'country', 'Engollan'] ['HM Prison Wandsworth', 'country', 'United Kingdom']
ASK WHERE { resource:HM_Prison_Wandsworth property:country resource:Engollan . resource:HM_Prison_Wandsworth property:country resource:United_Kingdom }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q386707
P915
Q838948
USER
Which work of art was filmed in the location that institution ?
action filter_type
action find_reverse
entity Q386707
relation P915
type Q838948
SELECT DISTINCT ?d WHERE { ?d property:P915 resource:Q386707 . ?d rdf:type ontology:Q838948 }
HM Prison Wandsworth
action filter_type
action find_reverse
entity HM Prison Wandsworth
relation filming location
type work of art
SELECT DISTINCT ?d WHERE { ?d property:filming_location resource:HM_Prison_Wandsworth . ?d rdf:type ontology:work_of_art }
[]
work of art
Q181086
SYSTEM
A Clockwork Orange
Q181086
action filter_type
action find_reverse
entity Q386707
relation P915
type Q838948
[ANSWER] was filmed in the location that institution
SELECT DISTINCT ?d WHERE { ?d property:P915 resource:Q386707 . ?d rdf:type ontology:Q838948 }
A Clockwork Orange
A Clockwork Orange was filmed in the location that institution
A Clockwork Orange
action filter_type
action find_reverse
entity HM Prison Wandsworth
relation filming location
type work of art
SELECT DISTINCT ?d WHERE { ?d property:filming_location resource:HM_Prison_Wandsworth . ?d rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P674
Q95074 Q22988604 Q838948
USER
Which works of art have the character max number of fictional characters and mythological Greek characters ?
(c(Q838948),P674,c(Q95074)|c(Q22988604))
action argmax
action union
action find_tuple_counts
relation P674
type Q838948
type Q95074
action find_tuple_counts
relation P674
type Q838948
type Q22988604
[{'concept': 'Q838948'}, 'P674', [{'concept': 'Q95074'}, {'concept': 'Q22988604'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?g ) { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?h ) WHERE { VALUES ( ?o ) { ( ontology:Q95074 ) ( ontology:Q22988604 ) } . ?j rdf:type ?o } GROUP BY ?a } } . { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?u ) WHERE { { ?m property:P674 ?w . ?m rdf:type ontology:Q838948 . ?w rdf:type ontology:Q95074 } UNION { ?m rdf:type ontology:Q838948 . ?w rdf:type ontology:Q22988604 . ?m property:P674 ?w } } GROUP BY ?m } . FILTER ( ?u = ?g ) }
action argmax
action union
action find_tuple_counts
relation characters
type work of art
type fictional character
action find_tuple_counts
relation characters
type work of art
type mythological Greek character
[{'concept': 'work of art'}, 'characters', [{'concept': 'fictional character'}, {'concept': 'mythological Greek character'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?g ) { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?h ) WHERE { VALUES ( ?o ) { ( ontology:fictional_character ) ( ontology:mythological_Greek_character ) } . ?j rdf:type ?o } GROUP BY ?a } } . { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?u ) WHERE { { ?m property:characters ?w . ?m rdf:type ontology:work_of_art . ?w rdf:type ontology:fictional_character } UNION { ?m rdf:type ontology:work_of_art . ?w rdf:type ontology:mythological_Greek_character . ?m property:characters ?w } } GROUP BY ?m } . FILTER ( ?u = ?g ) }
[]
fictional character mythological Greek character work of art
Q412341 Q294001
SYSTEM
Ajax, Oedipus at Colonus
Q412341 Q294001
(c(Q838948),P674,c(Q95074)|c(Q22988604))
action argmax
action union
action find_tuple_counts
relation P674
type Q838948
type Q95074
action find_tuple_counts
relation P674
type Q838948
type Q22988604
[ANSWERS] have the character max number of fictional characters and mythological Greek characters
[{'concept': 'Q838948'}, 'P674', [{'concept': 'Q95074'}, {'concept': 'Q22988604'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?g ) { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?h ) WHERE { VALUES ( ?o ) { ( ontology:Q95074 ) ( ontology:Q22988604 ) } . ?j rdf:type ?o } GROUP BY ?a } } . { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?u ) WHERE { { ?m property:P674 ?w . ?m rdf:type ontology:Q838948 . ?w rdf:type ontology:Q95074 } UNION { ?m rdf:type ontology:Q838948 . ?w rdf:type ontology:Q22988604 . ?m property:P674 ?w } } GROUP BY ?m } . FILTER ( ?u = ?g ) }
Ajax Oedipus at Colonus
Ajax and Oedipus at Colonus have the character max number of fictional characters and mythological Greek characters
Ajax Oedipus at Colonus
action argmax
action union
action find_tuple_counts
relation characters
type work of art
type fictional character
action find_tuple_counts
relation characters
type work of art
type mythological Greek character
[{'concept': 'work of art'}, 'characters', [{'concept': 'fictional character'}, {'concept': 'mythological Greek character'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?g ) { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?h ) WHERE { VALUES ( ?o ) { ( ontology:fictional_character ) ( ontology:mythological_Greek_character ) } . ?j rdf:type ?o } GROUP BY ?a } } . { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?u ) WHERE { { ?m property:characters ?w . ?m rdf:type ontology:work_of_art . ?w rdf:type ontology:fictional_character } UNION { ?m rdf:type ontology:work_of_art . ?w rdf:type ontology:mythological_Greek_character . ?m property:characters ?w } } GROUP BY ?m } . FILTER ( ?u = ?g ) }
[]