Simple Question (Direct)
Simple Question
Q774540
P20
Q56061
USER
Where did the expiration of Giulio Cesare Sacchetti occur ?
(Q774540,P20,c(Q56061))
action filter_type
action find
entity Q774540
relation P20
type Q56061
['Q774540', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q774540 property:P20 ?g . ?g rdf:type ontology:Q56061 }
Giulio Cesare Sacchetti
action filter_type
action find
entity Giulio Cesare Sacchetti
relation place of death
type administrative territorial entity
['Giulio Cesare Sacchetti', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Giulio_Cesare_Sacchetti property:place_of_death ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q774540,P20,c(Q56061))
action filter_type
action find
entity Q774540
relation P20
type Q56061
The expiration of Giulio Cesare Sacchetti occurred in [ANSWER]
['Q774540', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q774540 property:P20 ?g . ?g rdf:type ontology:Q56061 }
Rome
The expiration of Giulio Cesare Sacchetti occurred in Rome
Rome
action filter_type
action find
entity Giulio Cesare Sacchetti
relation place of death
type administrative territorial entity
['Giulio Cesare Sacchetti', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Giulio_Cesare_Sacchetti property:place_of_death ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q774540
P19
Q56061
USER
Which administrative territory is the birthplace of that person ?
(Q220,P19,c(Q56061))
action filter_type
action find
entity Q774540
relation P19
type Q56061
['Q220', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . resource:Q774540 property:P19 ?u }
Giulio Cesare Sacchetti
action filter_type
action find
entity Giulio Cesare Sacchetti
relation place of birth
type administrative territorial entity
['Rome', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . resource:Giulio_Cesare_Sacchetti property:place_of_birth ?u }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q220,P19,c(Q56061))
action filter_type
action find
entity Q774540
relation P19
type Q56061
[ANSWER] is the birthplace of that person
['Q220', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . resource:Q774540 property:P19 ?u }
Rome
Rome is the birthplace of that person
Rome
action filter_type
action find
entity Giulio Cesare Sacchetti
relation place of birth
type administrative territorial entity
['Rome', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . resource:Giulio_Cesare_Sacchetti property:place_of_birth ?u }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q220
P206
Q355304 Q15324
USER
How many watercourses or bodies of water are located next to Rome ?
(Q220,P206,c(Q355304)) (Q220,P206,c(Q15324))
action count
action union
action filter_type
action find
entity Q220
relation P206
type Q355304
action filter_type
action find
entity Q220
relation P206
type Q15324
['Q220', 'P206', {'concept': 'Q355304'}] ['Q220', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { ?f rdf:type ?w . VALUES ( ?w ) { ( ontology:Q355304 ) ( ontology:Q15324 ) } }
Rome
action count
action union
action filter_type
action find
entity Rome
relation located next to body of water
type watercourse
action filter_type
action find
entity Rome
relation located next to body of water
type body of water
['Rome', 'located next to body of water', {'concept': 'watercourse'}] ['Rome', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { ?f rdf:type ?w . VALUES ( ?w ) { ( ontology:watercourse ) ( ontology:body_of_water ) } }
[]
watercourse body of water
SYSTEM
3
Q38882 Q546600 Q13712
(Q220,P206,c(Q355304)) (Q220,P206,c(Q15324))
action count
action union
action filter_type
action find
entity Q220
relation P206
type Q355304
action filter_type
action find
entity Q220
relation P206
type Q15324
[ANSWER]
['Q220', 'P206', {'concept': 'Q355304'}] ['Q220', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { ?f rdf:type ?w . VALUES ( ?w ) { ( ontology:Q355304 ) ( ontology:Q15324 ) } }
Tyrrhenian Sea Aniene Tiber
3
action count
action union
action filter_type
action find
entity Rome
relation located next to body of water
type watercourse
action filter_type
action find
entity Rome
relation located next to body of water
type body of water
['Rome', 'located next to body of water', {'concept': 'watercourse'}] ['Rome', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { ?f rdf:type ?w . VALUES ( ?w ) { ( ontology:watercourse ) ( ontology:body_of_water ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q13605056 Q774540
P140
Q879146
USER
Which Christian denominations are the religion of Giulio Cesare Sacchetti or José Maria Chaves dos Reis ?
OR((Q774540,P140,c(Q879146)), (Q13605056,P140,c(Q879146)))
action filter_type
action union
action find
entity Q774540
relation P140
action find
entity Q13605056
relation P140
type Q879146
{'OR': [['Q774540', 'P140', {'concept': 'Q879146'}], ['Q13605056', 'P140', {'concept': 'Q879146'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q774540 property:P140 ?k } UNION { resource:Q13605056 property:P140 ?k } } . ?k rdf:type ontology:Q879146 }
José Maria Chaves dos Reis Giulio Cesare Sacchetti
action filter_type
action union
action find
entity Giulio Cesare Sacchetti
relation religion
action find
entity José Maria Chaves dos Reis
relation religion
type Christian denomination
{'OR': [['Giulio Cesare Sacchetti', 'religion', {'concept': 'Christian denomination'}], ['José Maria Chaves dos Reis', 'religion', {'concept': 'Christian denomination'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Giulio_Cesare_Sacchetti property:religion ?k } UNION { resource:José_Maria_Chaves_dos_Reis property:religion ?k } } . ?k rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
OR((Q774540,P140,c(Q879146)), (Q13605056,P140,c(Q879146)))
action filter_type
action union
action find
entity Q774540
relation P140
action find
entity Q13605056
relation P140
type Q879146
[ANSWER] is the religion of Giulio Cesare Sacchetti or José Maria Chaves dos Reis
{'OR': [['Q774540', 'P140', {'concept': 'Q879146'}], ['Q13605056', 'P140', {'concept': 'Q879146'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q774540 property:P140 ?k } UNION { resource:Q13605056 property:P140 ?k } } . ?k rdf:type ontology:Q879146 }
Roman Catholic Church
Roman Catholic Church is the religion of Giulio Cesare Sacchetti or José Maria Chaves dos Reis
Roman Catholic Church
action filter_type
action union
action find
entity Giulio Cesare Sacchetti
relation religion
action find
entity José Maria Chaves dos Reis
relation religion
type Christian denomination
{'OR': [['Giulio Cesare Sacchetti', 'religion', {'concept': 'Christian denomination'}], ['José Maria Chaves dos Reis', 'religion', {'concept': 'Christian denomination'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Giulio_Cesare_Sacchetti property:religion ?k } UNION { resource:José_Maria_Chaves_dos_Reis property:religion ?k } } . ?k rdf:type ontology:Christian_denomination }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q9592 Q6388913
P140
Q502895
USER
Is Kendall Houk connected to that Christian denomination by religion ?
(Q6388913,P140,Q9592)
action is_in
entity Q6388913
action find
entity Q9592
relation P140
['Q6388913', 'P140', 'Q9592']
ASK WHERE { resource:Q9592 property:P140 resource:Q6388913 }
Roman Catholic Church Kendall Houk
action is_in
entity Kendall Houk
action find
entity Roman Catholic Church
relation religion
['Kendall Houk', 'religion', 'Roman Catholic Church']
ASK WHERE { resource:Roman_Catholic_Church property:religion resource:Kendall_Houk }
[]
common name
SYSTEM
NO
(Q6388913,P140,Q9592)
action is_in
entity Q6388913
action find
entity Q9592
relation P140
[ANSWER]
['Q6388913', 'P140', 'Q9592']
ASK WHERE { resource:Q9592 property:P140 resource:Q6388913 }
No
action is_in
entity Kendall Houk
action find
entity Roman Catholic Church
relation religion
['Kendall Houk', 'religion', 'Roman Catholic Church']
ASK WHERE { resource:Roman_Catholic_Church property:religion resource:Kendall_Houk }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q774540
P21
Q290
USER
Which sex does Giulio Cesare Sacchetti possess ?
(Q774540,P21,c(Q290))
action filter_type
action find
entity Q774540
relation P21
type Q290
['Q774540', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q774540 property:P21 ?r . ?r rdf:type ontology:Q290 }
Giulio Cesare Sacchetti
action filter_type
action find
entity Giulio Cesare Sacchetti
relation gender
type sex
['Giulio Cesare Sacchetti', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Giulio_Cesare_Sacchetti property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q774540,P21,c(Q290))
action filter_type
action find
entity Q774540
relation P21
type Q290
Giulio Cesare Sacchetti possesses le [ANSWER]
['Q774540', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q774540 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
Giulio Cesare Sacchetti possesses le male
male
action filter_type
action find
entity Giulio Cesare Sacchetti
relation gender
type sex
['Giulio Cesare Sacchetti', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Giulio_Cesare_Sacchetti property:gender ?r . ?r rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q20740789
P21
Q502895
USER
Does Houssein Djama have the gender as that sex ?
(Q20740789,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q20740789
relation P21
['Q20740789', 'P21', 'Q6581097']
ASK WHERE { resource:Q20740789 property:P21 resource:Q6581097 }
male Houssein Djama
action is_in
entity male
action find
entity Houssein Djama
relation gender
['Houssein Djama', 'gender', 'male']
ASK WHERE { resource:Houssein_Djama property:gender resource:male }
[]
common name
SYSTEM
YES
(Q20740789,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q20740789
relation P21
[ANSWER]
['Q20740789', 'P21', 'Q6581097']
ASK WHERE { resource:Q20740789 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Houssein Djama
relation gender
['Houssein Djama', 'gender', 'male']
ASK WHERE { resource:Houssein_Djama property:gender resource:male }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P144
Q502895 Q2342494 Q201658
USER
Which people are exactly 2 collectables and film genres adapted from ?
(c(Q2342494)|c(Q201658),P144,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q2342494
action find_reverse_tuple_counts
relation P144
type Q502895
type Q201658
value 2
[[{'concept': 'Q2342494'}, {'concept': 'Q201658'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?z ) AS ?b ) WHERE { ?z rdf:type ?d . VALUES ( ?d ) { ( ontology:Q2342494 ) ( ontology:Q201658 ) } } GROUP BY ?m } . FILTER ( ?b = 2 ) }
action equal
action union
action find_reverse_tuple_counts
relation based on
type common name
type collectable
action find_reverse_tuple_counts
relation based on
type common name
type film genre
value 2
[[{'concept': 'collectable'}, {'concept': 'film genre'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?z ) AS ?b ) WHERE { ?z rdf:type ?d . VALUES ( ?d ) { ( ontology:collectable ) ( ontology:film_genre ) } } GROUP BY ?m } . FILTER ( ?b = 2 ) }
[]
common name collectable film genre
Q7332345 Q5588501 Q4885219
SYSTEM
Rida Johnson Young, Gouverneur Morris IV, Ben Ames Williams
Q7332345 Q5660079 Q5588501 Q4885219 Q6832927
(c(Q2342494)|c(Q201658),P144,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q2342494
action find_reverse_tuple_counts
relation P144
type Q502895
type Q201658
value 2
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q201658'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?z ) AS ?b ) WHERE { ?z rdf:type ?d . VALUES ( ?d ) { ( ontology:Q2342494 ) ( ontology:Q201658 ) } } GROUP BY ?m } . FILTER ( ?b = 2 ) }
Rida Johnson Young Harold Bell Wright Gouverneur Morris IV Ben Ames Williams Michael Morton
Which people are exactly 2 collectables and film genres adapted from
Rida Johnson Young Gouverneur Morris IV Ben Ames Williams
action equal
action union
action find_reverse_tuple_counts
relation based on
type common name
type collectable
action find_reverse_tuple_counts
relation based on
type common name
type film genre
value 2
[[{'concept': 'collectable'}, {'concept': 'film genre'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?z ) AS ?b ) WHERE { ?z rdf:type ?d . VALUES ( ?d ) { ( ontology:collectable ) ( ontology:film_genre ) } } GROUP BY ?m } . FILTER ( ?b = 2 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q4885219
P50
Q2342494
USER
Which collectables were written by that person ?
(c(Q2342494),P50,Q4885219)
action filter_type
action find_reverse
entity Q4885219
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q4885219']
SELECT DISTINCT ?f WHERE { ?f property:P50 resource:Q4885219 . ?f rdf:type ontology:Q2342494 }
Ben Ames Williams
action filter_type
action find_reverse
entity Ben Ames Williams
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Ben Ames Williams']
SELECT DISTINCT ?f WHERE { ?f property:author resource:Ben_Ames_Williams . ?f rdf:type ontology:collectable }
[]
collectable
Clarification for simple ques.
Q5588501
SYSTEM
Did you mean Gouverneur Morris IV ?
Q7332345 Q5588501 Q4885219
(c(Q2342494),P50,Q7332345) (c(Q2342494),P50,Q5588501) (c(Q2342494),P50,Q4885219)
[ANSWER]
[{'concept': 'Q2342494'}, 'P50', 'Q7332345'] [{'concept': 'Q2342494'}, 'P50', 'Q5588501'] [{'concept': 'Q2342494'}, 'P50', 'Q4885219']
SELECT DISTINCT ?f WHERE { ?f property:P50 resource:Q4885219 . ?f rdf:type ontology:Q2342494 }
Rida Johnson Young Gouverneur Morris IV Ben Ames Williams
Did you mean Gouverneur Morris IV ?
Gouverneur Morris IV
[{'concept': 'collectable'}, 'author', 'Rida Johnson Young'] [{'concept': 'collectable'}, 'author', 'Gouverneur Morris IV'] [{'concept': 'collectable'}, 'author', 'Ben Ames Williams']
SELECT DISTINCT ?f WHERE { ?f property:author resource:Ben_Ames_Williams . ?f rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
USER
No, I meant Ben Ames Williams. Could you tell me the answer for that?
(c(Q2342494),P50,Q4885219)
Q4885219
[{'concept': 'Q2342494'}, 'P50', 'Q4885219']
[{'concept': 'collectable'}, 'author', 'Ben Ames Williams']
[]
Q7771328 Q4730108
SYSTEM
The Unconquered, All the Brothers Were Valiant
Q4730108 Q7771328
(c(Q2342494),P50,Q4885219)
action filter_type
action find_reverse
entity Q4885219
relation P50
type Q2342494
[ANSWERS] were written by that person
[{'concept': 'Q2342494'}, 'P50', 'Q4885219']
SELECT DISTINCT ?f WHERE { ?f property:P50 resource:Q4885219 . ?f rdf:type ontology:Q2342494 }
All the Brothers Were Valiant The Unconquered
The Unconquered and All the Brothers Were Valiant were written by that person
The Unconquered All the Brothers Were Valiant
action filter_type
action find_reverse
entity Ben Ames Williams
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Ben Ames Williams']
SELECT DISTINCT ?f WHERE { ?f property:author resource:Ben_Ames_Williams . ?f rdf:type ontology:collectable }
[]