Simple Question (Direct)
Simple Question
Q109225
P20
Q56061
USER
Where did the expiration of Horst Bollmann occur ?
(Q109225,P20,c(Q56061))
action filter_type
action find
entity Q109225
relation P20
type Q56061
['Q109225', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q109225 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Horst Bollmann
action filter_type
action find
entity Horst Bollmann
relation place of death
type administrative territorial entity
['Horst Bollmann', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Horst_Bollmann property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q109225,P20,c(Q56061))
action filter_type
action find
entity Q109225
relation P20
type Q56061
The expiration of Horst Bollmann occurred in [ANSWER]
['Q109225', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q109225 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Berlin
The expiration of Horst Bollmann occurred in Berlin
Berlin
action filter_type
action find
entity Horst Bollmann
relation place of death
type administrative territorial entity
['Horst Bollmann', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Horst_Bollmann property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q109225
P21
Q290
USER
Which sex does that person belong to ?
(Q64,P21,c(Q290))
action filter_type
action find
entity Q109225
relation P21
type Q290
['Q64', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q109225 property:P21 ?f . ?f rdf:type ontology:Q290 }
Horst Bollmann
action filter_type
action find
entity Horst Bollmann
relation gender
type sex
['Berlin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Horst_Bollmann property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q64,P21,c(Q290))
action filter_type
action find
entity Q109225
relation P21
type Q290
That person belongs to [ANSWER]
['Q64', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q109225 property:P21 ?f . ?f rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Horst Bollmann
relation gender
type sex
['Berlin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Horst_Bollmann property:gender ?f . ?f rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q109225
P161
Q838948
USER
Which work of art does that person star in ?
(c(Q838948),P161,Q6581097)
action filter_type
action find_reverse
entity Q109225
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q6581097']
SELECT DISTINCT ?f WHERE { ?f property:P161 resource:Q109225 . ?f rdf:type ontology:Q838948 }
Horst Bollmann
action filter_type
action find_reverse
entity Horst Bollmann
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'male']
SELECT DISTINCT ?f WHERE { ?f property:cast_member resource:Horst_Bollmann . ?f rdf:type ontology:work_of_art }
[]
work of art
Q881379
SYSTEM
The Miracle of Father Malachia
Q881379
(c(Q838948),P161,Q6581097)
action filter_type
action find_reverse
entity Q109225
relation P161
type Q838948
That person stars in [ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q6581097']
SELECT DISTINCT ?f WHERE { ?f property:P161 resource:Q109225 . ?f rdf:type ontology:Q838948 }
The Miracle of Father Malachia
That person stars in The Miracle of Father Malachia
The Miracle of Father Malachia
action filter_type
action find_reverse
entity Horst Bollmann
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'male']
SELECT DISTINCT ?f WHERE { ?f property:cast_member resource:Horst_Bollmann . ?f rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q109225 Q1043
P937
Q56061
USER
How many administrative territories are the locations where Horst Bollmann or Carl Linnaeus worked ?
(Q109225,P937,c(Q56061)) (Q1043,P937,c(Q56061))
action count
action union
action filter_type
action find
entity Q109225
relation P937
type Q56061
action filter_type
action find
entity Q1043
relation P937
type Q56061
['Q109225', 'P937', {'concept': 'Q56061'}] ['Q1043', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { ?b rdf:type ontology:Q56061 . resource:Q109225 property:P937 ?b } UNION { resource:Q1043 property:P937 ?b . ?b rdf:type ontology:Q56061 } }
Horst Bollmann Carl Linnaeus
action count
action union
action filter_type
action find
entity Horst Bollmann
relation work location
type administrative territorial entity
action filter_type
action find
entity Carl Linnaeus
relation work location
type administrative territorial entity
['Horst Bollmann', 'work location', {'concept': 'administrative territorial entity'}] ['Carl Linnaeus', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { ?b rdf:type ontology:administrative_territorial_entity . resource:Horst_Bollmann property:work_location ?b } UNION { resource:Carl_Linnaeus property:work_location ?b . ?b rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
SYSTEM
3
Q25286 Q1754 Q2066
(Q109225,P937,c(Q56061)) (Q1043,P937,c(Q56061))
action count
action union
action filter_type
action find
entity Q109225
relation P937
type Q56061
action filter_type
action find
entity Q1043
relation P937
type Q56061
[ANSWER]
['Q109225', 'P937', {'concept': 'Q56061'}] ['Q1043', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { ?b rdf:type ontology:Q56061 . resource:Q109225 property:P937 ?b } UNION { resource:Q1043 property:P937 ?b . ?b rdf:type ontology:Q56061 } }
Uppsala Stockholm Essen
3
action count
action union
action filter_type
action find
entity Horst Bollmann
relation work location
type administrative territorial entity
action filter_type
action find
entity Carl Linnaeus
relation work location
type administrative territorial entity
['Horst Bollmann', 'work location', {'concept': 'administrative territorial entity'}] ['Carl Linnaeus', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { ?b rdf:type ontology:administrative_territorial_entity . resource:Horst_Bollmann property:work_location ?b } UNION { resource:Carl_Linnaeus property:work_location ?b . ?b rdf:type ontology:administrative_territorial_entity } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q18217301
P361
Q838948 Q234460 Q1190554
USER
How many works of art are greater number of texts or events a component of than Rizal Monument ?
(c(Q234460)|c(Q1190554),P361,c(Q838948))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q234460
action find_reverse_tuple_counts
relation P361
type Q838948
type Q1190554
action count
action filter_multi_types
action find_reverse
entity Q18217301
relation P361
type Q234460
type Q1190554
[[{'concept': 'Q234460'}, {'concept': 'Q1190554'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { ?h property:P361 resource:Q18217301 . { VALUES ( ?e ) { ( ontology:Q1190554 ) ( ontology:Q234460 ) } . ?h rdf:type ?e } } } . FILTER ( ?x > ?v ) . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?x ) WHERE { { ?s property:P361 ?y . ?y rdf:type ontology:Q838948 . ?s rdf:type ontology:Q234460 } UNION { ?y rdf:type ontology:Q838948 . ?s rdf:type ontology:Q1190554 . ?s property:P361 ?y } } GROUP BY ?y } }
Rizal Monument
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type text
action find_reverse_tuple_counts
relation part of
type work of art
type event
action count
action filter_multi_types
action find_reverse
entity Rizal Monument
relation part of
type text
type event
[[{'concept': 'text'}, {'concept': 'event'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { ?h property:part_of resource:Rizal_Monument . { VALUES ( ?e ) { ( ontology:event ) ( ontology:text ) } . ?h rdf:type ?e } } } . FILTER ( ?x > ?v ) . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?x ) WHERE { { ?s property:part_of ?y . ?y rdf:type ontology:work_of_art . ?s rdf:type ontology:text } UNION { ?y rdf:type ontology:work_of_art . ?s rdf:type ontology:event . ?s property:part_of ?y } } GROUP BY ?y } }
[]
work of art text event
SYSTEM
6
Q206400 Q29478 Q215750 Q187483 Q41567 Q2089457
(c(Q234460)|c(Q1190554),P361,c(Q838948))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q234460
action find_reverse_tuple_counts
relation P361
type Q838948
type Q1190554
action count
action filter_multi_types
action find_reverse
entity Q18217301
relation P361
type Q234460
type Q1190554
[ANSWER]
[[{'concept': 'Q234460'}, {'concept': 'Q1190554'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { ?h property:P361 resource:Q18217301 . { VALUES ( ?e ) { ( ontology:Q1190554 ) ( ontology:Q234460 ) } . ?h rdf:type ?e } } } . FILTER ( ?x > ?v ) . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?x ) WHERE { { ?s property:P361 ?y . ?y rdf:type ontology:Q838948 . ?s rdf:type ontology:Q234460 } UNION { ?y rdf:type ontology:Q838948 . ?s rdf:type ontology:Q1190554 . ?s property:P361 ?y } } GROUP BY ?y } }
The Merchant of Venice Faust Julius Caesar Bayeux Tapestry Hamlet Cold War
6
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type text
action find_reverse_tuple_counts
relation part of
type work of art
type event
action count
action filter_multi_types
action find_reverse
entity Rizal Monument
relation part of
type text
type event
[[{'concept': 'text'}, {'concept': 'event'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { ?h property:part_of resource:Rizal_Monument . { VALUES ( ?e ) { ( ontology:event ) ( ontology:text ) } . ?h rdf:type ?e } } } . FILTER ( ?x > ?v ) . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?x ) WHERE { { ?s property:part_of ?y . ?y rdf:type ontology:work_of_art . ?s rdf:type ontology:text } UNION { ?y rdf:type ontology:work_of_art . ?s rdf:type ontology:event . ?s property:part_of ?y } } GROUP BY ?y } }
[]