Simple Question (Direct)
Simple Question
Q3647204
P21
Q290
USER
Which sex does Paweł Stefan Sapieha possess ?
(Q3647204,P21,c(Q290))
action filter_type
action find
entity Q3647204
relation P21
type Q290
['Q3647204', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q290 . resource:Q3647204 property:P21 ?o }
Paweł Stefan Sapieha
action filter_type
action find
entity Paweł Stefan Sapieha
relation gender
type sex
['Paweł Stefan Sapieha', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sex . resource:Paweł_Stefan_Sapieha property:gender ?o }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3647204,P21,c(Q290))
action filter_type
action find
entity Q3647204
relation P21
type Q290
Paweł Stefan Sapieha possesses a [ANSWER]
['Q3647204', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q290 . resource:Q3647204 property:P21 ?o }
male
Paweł Stefan Sapieha possesses a male
male
action filter_type
action find
entity Paweł Stefan Sapieha
relation gender
type sex
['Paweł Stefan Sapieha', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sex . resource:Paweł_Stefan_Sapieha property:gender ?o }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3647204
P40
Q502895
USER
Who has Paweł Stefan Sapieha as a child ?
(c(Q502895),P40,Q3647204)
action filter_type
action find_reverse
entity Q3647204
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q3647204']
SELECT DISTINCT ?t WHERE { ?t property:P40 resource:Q3647204 . ?t rdf:type ontology:Q502895 }
Paweł Stefan Sapieha
action filter_type
action find_reverse
entity Paweł Stefan Sapieha
relation child
type common name
[{'concept': 'common name'}, 'child', 'Paweł Stefan Sapieha']
SELECT DISTINCT ?t WHERE { ?t property:child resource:Paweł_Stefan_Sapieha . ?t rdf:type ontology:common_name }
[]
common name
Q3918634
SYSTEM
Bohdan Sapieha
Q3918634
(c(Q502895),P40,Q3647204)
action filter_type
action find_reverse
entity Q3647204
relation P40
type Q502895
[ANSWER] has Paweł Stefan Sapieha as a child
[{'concept': 'Q502895'}, 'P40', 'Q3647204']
SELECT DISTINCT ?t WHERE { ?t property:P40 resource:Q3647204 . ?t rdf:type ontology:Q502895 }
Bohdan Sapieha
Bohdan Sapieha has Paweł Stefan Sapieha as a child
Bohdan Sapieha
action filter_type
action find_reverse
entity Paweł Stefan Sapieha
relation child
type common name
[{'concept': 'common name'}, 'child', 'Paweł Stefan Sapieha']
SELECT DISTINCT ?t WHERE { ?t property:child resource:Paweł_Stefan_Sapieha . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3918634
P22
Q502895
USER
Which people have that one as dad ?
(c(Q502895),P22,Q3918634)
action filter_type
action find_reverse
entity Q3918634
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q3918634']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P22 resource:Q3918634 }
Bohdan Sapieha
action filter_type
action find_reverse
entity Bohdan Sapieha
relation father
type common name
[{'concept': 'common name'}, 'father', 'Bohdan Sapieha']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:father resource:Bohdan_Sapieha }
[]
common name
Q3647204 Q86598
SYSTEM
Paweł Stefan Sapieha, Mikołaj Sapieha
Q3647204 Q86598
(c(Q502895),P22,Q3918634)
action filter_type
action find_reverse
entity Q3918634
relation P22
type Q502895
[ANSWERS] have that one as dad
[{'concept': 'Q502895'}, 'P22', 'Q3918634']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P22 resource:Q3918634 }
Paweł Stefan Sapieha Mikołaj Sapieha
Paweł Stefan Sapieha and Mikołaj Sapieha have that one as dad
Paweł Stefan Sapieha Mikołaj Sapieha
action filter_type
action find_reverse
entity Bohdan Sapieha
relation father
type common name
[{'concept': 'common name'}, 'father', 'Bohdan Sapieha']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:father resource:Bohdan_Sapieha }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3647204
P27
Q7275
USER
Which state is the country of citizenship of that person ?
(Q3647204,P27,c(Q7275))
action filter_type
action find
entity Q3647204
relation P27
type Q7275
['Q3647204', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?x WHERE { resource:Q3647204 property:P27 ?x . ?x rdf:type ontology:Q7275 }
Paweł Stefan Sapieha
action filter_type
action find
entity Paweł Stefan Sapieha
relation country of citizenship
type state
['Paweł Stefan Sapieha', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?x WHERE { resource:Paweł_Stefan_Sapieha property:country_of_citizenship ?x . ?x rdf:type ontology:state }
[]
state
Clarification for simple ques.
Q3647204
SYSTEM
Did you mean Paweł Stefan Sapieha ?
Q3647204 Q86598
(Q3647204,P27,c(Q7275)) (Q86598,P27,c(Q7275))
[ANSWER]
['Q3647204', 'P27', {'concept': 'Q7275'}] ['Q86598', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?x WHERE { resource:Q3647204 property:P27 ?x . ?x rdf:type ontology:Q7275 }
Paweł Stefan Sapieha Mikołaj Sapieha
Did you mean Paweł Stefan Sapieha ?
Paweł Stefan Sapieha
['Paweł Stefan Sapieha', 'country of citizenship', {'concept': 'state'}] ['Mikołaj Sapieha', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?x WHERE { resource:Paweł_Stefan_Sapieha property:country_of_citizenship ?x . ?x rdf:type ontology:state }
[]
Simple Question (Coreferenced)
USER
Yes
(Q3647204,P27,c(Q7275))
['Q3647204', 'P27', {'concept': 'Q7275'}]
['Paweł Stefan Sapieha', 'country of citizenship', {'concept': 'state'}]
[]
Q49683
SYSTEM
Grand Duchy of Lithuania
Q49683
(Q3647204,P27,c(Q7275))
action filter_type
action find
entity Q3647204
relation P27
type Q7275
[ANSWER] is the country of citizenship of that person
['Q3647204', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?x WHERE { resource:Q3647204 property:P27 ?x . ?x rdf:type ontology:Q7275 }
Grand Duchy of Lithuania
Grand Duchy of Lithuania is the country of citizenship of that person
Grand Duchy of Lithuania
action filter_type
action find
entity Paweł Stefan Sapieha
relation country of citizenship
type state
['Paweł Stefan Sapieha', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?x WHERE { resource:Paweł_Stefan_Sapieha property:country_of_citizenship ?x . ?x rdf:type ontology:state }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q552756
P841
Q186081 Q573 Q502895
USER
Which people have less number of time intervals or days as principal feast day than Paisius of Hilendar ?
(c(Q502895),P841,c(Q186081)|c(Q573))
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q186081
action find_tuple_counts
relation P841
type Q502895
type Q573
action count
action filter_multi_types
action find
entity Q552756
relation P841
type Q186081
type Q573
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q186081'}, {'concept': 'Q573'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) ?d WHERE { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:Q573 ) ( ontology:Q186081 ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { resource:Q552756 property:P841 ?p . { { ?p rdf:type ontology:Q186081 } UNION { ?p rdf:type ontology:Q573 } } } } . FILTER ( ?r < ?h ) }
Paisius of Hilendar
action less
action union
action find_tuple_counts
relation feast day
type common name
type time interval
action find_tuple_counts
relation feast day
type common name
type day
action count
action filter_multi_types
action find
entity Paisius of Hilendar
relation feast day
type time interval
type day
[{'concept': 'common name'}, 'feast day', [{'concept': 'time interval'}, {'concept': 'day'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) ?d WHERE { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:day ) ( ontology:time_interval ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { resource:Paisius_of_Hilendar property:feast_day ?p . { { ?p rdf:type ontology:time_interval } UNION { ?p rdf:type ontology:day } } } } . FILTER ( ?r < ?h ) }
[]
time interval day common name
Q679784 Q3047912 Q167477
SYSTEM
Pier Giorgio Frassati, Seraphina Sforza, Anthony of Padua
Q384117 Q365797 Q3483257 Q679784 Q3483161 Q3483259 Q3483263 Q167477 Q3047912 Q269889 Q2701365
(c(Q502895),P841,c(Q186081)|c(Q573))
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q186081
action find_tuple_counts
relation P841
type Q502895
type Q573
action count
action filter_multi_types
action find
entity Q552756
relation P841
type Q186081
type Q573
[ANSWERS] have less number of time intervals or days as principal feast day than Paisius of Hilendar
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q186081'}, {'concept': 'Q573'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) ?d WHERE { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:Q573 ) ( ontology:Q186081 ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { resource:Q552756 property:P841 ?p . { { ?p rdf:type ontology:Q186081 } UNION { ?p rdf:type ontology:Q573 } } } } . FILTER ( ?r < ?h ) }
Aignan of Orleans Ahmad al-Tijani Sidi M'hamed Bou Qobrine Pier Giorgio Frassati Sidi Abder Rahman El Thaelebi Sidi M'hand Oumalek Sidi Mansour Anthony of Padua Seraphina Sforza Joanna, wife of Chuza Thomas Percy, 7th Earl of Northumberland
Pier Giorgio Frassati, Seraphina Sforza and Anthony of Padua have less number of time intervals or days as principal feast day than Paisius of Hilendar
Pier Giorgio Frassati Seraphina Sforza Anthony of Padua
action less
action union
action find_tuple_counts
relation feast day
type common name
type time interval
action find_tuple_counts
relation feast day
type common name
type day
action count
action filter_multi_types
action find
entity Paisius of Hilendar
relation feast day
type time interval
type day
[{'concept': 'common name'}, 'feast day', [{'concept': 'time interval'}, {'concept': 'day'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) ?d WHERE { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:day ) ( ontology:time_interval ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { resource:Paisius_of_Hilendar property:feast_day ?p . { { ?p rdf:type ontology:time_interval } UNION { ?p rdf:type ontology:day } } } } . FILTER ( ?r < ?h ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q495892
P841
Q186081 Q573 Q502895
USER
And how about Andrew Avellino?
(c(Q502895),P841,c(Q186081)|c(Q573))
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q186081
action find_tuple_counts
relation P841
type Q502895
type Q573
action count
action filter_multi_types
action find
entity Q495892
relation P841
type Q186081
type Q573
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q186081'}, {'concept': 'Q573'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) ?t WHERE { { ?t property:P841 ?k . ?t rdf:type ontology:Q502895 . ?k rdf:type ontology:Q573 } UNION { ?t property:P841 ?k . ?t rdf:type ontology:Q502895 . ?k rdf:type ontology:Q186081 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { { ?o rdf:type ontology:Q186081 } UNION { ?o rdf:type ontology:Q573 } } . resource:Q495892 property:P841 ?o } } . FILTER ( ?j < ?s ) }
Andrew Avellino
action less
action union
action find_tuple_counts
relation feast day
type common name
type time interval
action find_tuple_counts
relation feast day
type common name
type day
action count
action filter_multi_types
action find
entity Andrew Avellino
relation feast day
type time interval
type day
[{'concept': 'common name'}, 'feast day', [{'concept': 'time interval'}, {'concept': 'day'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) ?t WHERE { { ?t property:feast_day ?k . ?t rdf:type ontology:common_name . ?k rdf:type ontology:day } UNION { ?t property:feast_day ?k . ?t rdf:type ontology:common_name . ?k rdf:type ontology:time_interval } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { { ?o rdf:type ontology:time_interval } UNION { ?o rdf:type ontology:day } } . resource:Andrew_Avellino property:feast_day ?o } } . FILTER ( ?j < ?s ) }
[]
time interval day common name
Q679784 Q3047912 Q167477
SYSTEM
Pier Giorgio Frassati, Seraphina Sforza, Anthony of Padua
Q384117 Q365797 Q3483257 Q679784 Q3483161 Q3483259 Q3483263 Q167477 Q3047912 Q269889 Q2701365
(c(Q502895),P841,c(Q186081)|c(Q573))
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q186081
action find_tuple_counts
relation P841
type Q502895
type Q573
action count
action filter_multi_types
action find
entity Q495892
relation P841
type Q186081
type Q573
[ANSWERS]
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q186081'}, {'concept': 'Q573'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) ?t WHERE { { ?t property:P841 ?k . ?t rdf:type ontology:Q502895 . ?k rdf:type ontology:Q573 } UNION { ?t property:P841 ?k . ?t rdf:type ontology:Q502895 . ?k rdf:type ontology:Q186081 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { { ?o rdf:type ontology:Q186081 } UNION { ?o rdf:type ontology:Q573 } } . resource:Q495892 property:P841 ?o } } . FILTER ( ?j < ?s ) }
Aignan of Orleans Ahmad al-Tijani Sidi M'hamed Bou Qobrine Pier Giorgio Frassati Sidi Abder Rahman El Thaelebi Sidi M'hand Oumalek Sidi Mansour Anthony of Padua Seraphina Sforza Joanna, wife of Chuza Thomas Percy, 7th Earl of Northumberland
Pier Giorgio Frassati Seraphina Sforza Anthony of Padua
action less
action union
action find_tuple_counts
relation feast day
type common name
type time interval
action find_tuple_counts
relation feast day
type common name
type day
action count
action filter_multi_types
action find
entity Andrew Avellino
relation feast day
type time interval
type day
[{'concept': 'common name'}, 'feast day', [{'concept': 'time interval'}, {'concept': 'day'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) ?t WHERE { { ?t property:feast_day ?k . ?t rdf:type ontology:common_name . ?k rdf:type ontology:day } UNION { ?t property:feast_day ?k . ?t rdf:type ontology:common_name . ?k rdf:type ontology:time_interval } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { { ?o rdf:type ontology:time_interval } UNION { ?o rdf:type ontology:day } } . resource:Andrew_Avellino property:feast_day ?o } } . FILTER ( ?j < ?s ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3047912
P1038
Q502895
USER
Which person is related to that one ?
(c(Q502895),P1038,Q3047912)
action filter_type
action find
entity Q3047912
relation P1038
type Q502895
[{'concept': 'Q502895'}, 'P1038', 'Q3047912']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q3047912 property:P1038 ?p }
Seraphina Sforza
action filter_type
action find
entity Seraphina Sforza
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'Seraphina Sforza']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Seraphina_Sforza property:relative ?p }
[]
common name
Clarification for simple ques.
Q3047912
SYSTEM
Did you mean Seraphina Sforza ?
Q679784 Q3047912 Q167477
(c(Q502895),P1038,Q679784) (c(Q502895),P1038,Q3047912) (c(Q502895),P1038,Q167477)
[ANSWER]
[{'concept': 'Q502895'}, 'P1038', 'Q679784'] [{'concept': 'Q502895'}, 'P1038', 'Q3047912'] [{'concept': 'Q502895'}, 'P1038', 'Q167477']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q3047912 property:P1038 ?p }
Pier Giorgio Frassati Seraphina Sforza Anthony of Padua
Did you mean Seraphina Sforza ?
Seraphina Sforza
[{'concept': 'common name'}, 'relative', 'Pier Giorgio Frassati'] [{'concept': 'common name'}, 'relative', 'Seraphina Sforza'] [{'concept': 'common name'}, 'relative', 'Anthony of Padua']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Seraphina_Sforza property:relative ?p }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P1038,Q3047912)
[{'concept': 'Q502895'}, 'P1038', 'Q3047912']
[{'concept': 'common name'}, 'relative', 'Seraphina Sforza']
[]
Q810972
SYSTEM
Battista Sforza
Q810972
(c(Q502895),P1038,Q3047912)
action filter_type
action find
entity Q3047912
relation P1038
type Q502895
[ANSWER] is related to that one
[{'concept': 'Q502895'}, 'P1038', 'Q3047912']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q3047912 property:P1038 ?p }
Battista Sforza
Battista Sforza is related to that one
Battista Sforza
action filter_type
action find
entity Seraphina Sforza
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'Seraphina Sforza']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Seraphina_Sforza property:relative ?p }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q810972 Q310536 Q3047912
P1038
Q502895
USER
Is that person a kin of Francesco I Sforza and Seraphina Sforza ?
(Q810972,P1038,Q310536) (Q810972,P1038,Q3047912)
action is_in
entity Q810972
action intersection
action find_reverse
entity Q310536
relation P1038
action find_reverse
entity Q3047912
relation P1038
['Q810972', 'P1038', 'Q310536'] ['Q810972', 'P1038', 'Q3047912']
ASK WHERE { resource:Q810972 property:P1038 resource:Q310536 . resource:Q810972 property:P1038 resource:Q3047912 }
Battista Sforza Francesco I Sforza Seraphina Sforza
action is_in
entity Battista Sforza
action intersection
action find_reverse
entity Francesco I Sforza
relation relative
action find_reverse
entity Seraphina Sforza
relation relative
['Battista Sforza', 'relative', 'Francesco I Sforza'] ['Battista Sforza', 'relative', 'Seraphina Sforza']
ASK WHERE { resource:Battista_Sforza property:relative resource:Francesco_I_Sforza . resource:Battista_Sforza property:relative resource:Seraphina_Sforza }
[]
common name
SYSTEM
YES
(Q810972,P1038,Q310536) (Q810972,P1038,Q3047912)
action is_in
entity Q810972
action intersection
action find_reverse
entity Q310536
relation P1038
action find_reverse
entity Q3047912
relation P1038
[ANSWER]
['Q810972', 'P1038', 'Q310536'] ['Q810972', 'P1038', 'Q3047912']
ASK WHERE { resource:Q810972 property:P1038 resource:Q310536 . resource:Q810972 property:P1038 resource:Q3047912 }
Yes
action is_in
entity Battista Sforza
action intersection
action find_reverse
entity Francesco I Sforza
relation relative
action find_reverse
entity Seraphina Sforza
relation relative
['Battista Sforza', 'relative', 'Francesco I Sforza'] ['Battista Sforza', 'relative', 'Seraphina Sforza']
ASK WHERE { resource:Battista_Sforza property:relative resource:Francesco_I_Sforza . resource:Battista_Sforza property:relative resource:Seraphina_Sforza }
[]