Simple Question (Direct)
Simple Question
Q3154857
P9
Q502895
USER
Who are the sisters of Isabel Maria de Alcântara Brasileira ?
(Q3154857,P9,c(Q502895))
action filter_type
action find
entity Q3154857
relation P9
type Q502895
['Q3154857', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q3154857 property:P9 ?q . ?q rdf:type ontology:Q502895 }
Isabel Maria de Alcântara Brasileira
action filter_type
action find
entity Isabel Maria de Alcântara Brasileira
relation sister
type common name
['Isabel Maria de Alcântara Brasileira', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Isabel_Maria_de_Alcântara_Brasileira property:sister ?q . ?q rdf:type ontology:common_name }
[]
common name
Q221145 Q242159 Q235815
SYSTEM
Maria II of Portugal, Princess Francisca of Brazil, Princess Maria Amélia of Brazil
Q221145 Q261802 Q4765169 Q235815 Q242159
(Q3154857,P9,c(Q502895))
action filter_type
action find
entity Q3154857
relation P9
type Q502895
The sisters of Isabel Maria de Alcântara Brasileira are King [ANSWERS]
['Q3154857', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q3154857 property:P9 ?q . ?q rdf:type ontology:Q502895 }
Maria II of Portugal Princess Januária of Brazil Princess Paula of Brazil Princess Maria Amélia of Brazil Princess Francisca of Brazil
The sisters of Isabel Maria de Alcântara Brasileira are King Maria II of Portugal, Princess Francisca of Brazil and Princess Maria Amélia of Brazil
Maria II of Portugal Princess Francisca of Brazil Princess Maria Amélia of Brazil
action filter_type
action find
entity Isabel Maria de Alcântara Brasileira
relation sister
type common name
['Isabel Maria de Alcântara Brasileira', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Isabel_Maria_de_Alcântara_Brasileira property:sister ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3154857
P40
Q502895
USER
Who have Isabel Maria de Alcântara Brasileira as an offspring ?
(c(Q502895),P40,Q3154857)
action filter_type
action find_reverse
entity Q3154857
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q3154857']
SELECT DISTINCT ?l WHERE { ?l property:P40 resource:Q3154857 . ?l rdf:type ontology:Q502895 }
Isabel Maria de Alcântara Brasileira
action filter_type
action find_reverse
entity Isabel Maria de Alcântara Brasileira
relation child
type common name
[{'concept': 'common name'}, 'child', 'Isabel Maria de Alcântara Brasileira']
SELECT DISTINCT ?l WHERE { ?l property:child resource:Isabel_Maria_de_Alcântara_Brasileira . ?l rdf:type ontology:common_name }
[]
common name
Q939 Q508648
SYSTEM
Pedro I, Domitila de Castro, Marchioness of Santos
Q939 Q508648
(c(Q502895),P40,Q3154857)
action filter_type
action find_reverse
entity Q3154857
relation P40
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P40', 'Q3154857']
SELECT DISTINCT ?l WHERE { ?l property:P40 resource:Q3154857 . ?l rdf:type ontology:Q502895 }
Pedro I Domitila de Castro, Marchioness of Santos
Pedro I and Domitila de Castro, Marchioness of Santos have Isabel Maria de Alcântara Brasileira as an offspring
Pedro I Domitila de Castro, Marchioness of Santos
action filter_type
action find_reverse
entity Isabel Maria de Alcântara Brasileira
relation child
type common name
[{'concept': 'common name'}, 'child', 'Isabel Maria de Alcântara Brasileira']
SELECT DISTINCT ?l WHERE { ?l property:child resource:Isabel_Maria_de_Alcântara_Brasileira . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q221145
P25
Q502895
USER
Which female person was the parent of Maria II of Portugal ?
(Q221145,P25,c(Q502895))
action filter_type
action find
entity Q221145
relation P25
type Q502895
['Q221145', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q221145 property:P25 ?j . ?j rdf:type ontology:Q502895 }
Maria II of Portugal
action filter_type
action find
entity Maria II of Portugal
relation mother
type common name
['Maria II of Portugal', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Maria_II_of_Portugal property:mother ?j . ?j rdf:type ontology:common_name }
[]
common name
Q84239
SYSTEM
Maria Leopoldina of Austria
Q84239
(Q221145,P25,c(Q502895))
action filter_type
action find
entity Q221145
relation P25
type Q502895
[ANSWER] was the parent of Maria II of Portugal
['Q221145', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q221145 property:P25 ?j . ?j rdf:type ontology:Q502895 }
Maria Leopoldina of Austria
Maria Leopoldina of Austria was the parent of Maria II of Portugal
Maria Leopoldina of Austria
action filter_type
action find
entity Maria II of Portugal
relation mother
type common name
['Maria II of Portugal', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Maria_II_of_Portugal property:mother ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q221145
P26
Q502895
USER
Which people are married to Maria II of Portugal ?
(c(Q502895),P26,Q221145)
action filter_type
action find
entity Q221145
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q221145']
SELECT DISTINCT ?z WHERE { resource:Q221145 property:P26 ?z . ?z rdf:type ontology:Q502895 }
Maria II of Portugal
action filter_type
action find
entity Maria II of Portugal
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Maria II of Portugal']
SELECT DISTINCT ?z WHERE { resource:Maria_II_of_Portugal property:spouse ?z . ?z rdf:type ontology:common_name }
[]
common name
Q60721 Q461630
SYSTEM
Fernando II of Portugal, Auguste de Beauharnais
Q60721 Q461630
(c(Q502895),P26,Q221145)
action filter_type
action find
entity Q221145
relation P26
type Q502895
[ANSWERS] are married to Maria II of Portugal
[{'concept': 'Q502895'}, 'P26', 'Q221145']
SELECT DISTINCT ?z WHERE { resource:Q221145 property:P26 ?z . ?z rdf:type ontology:Q502895 }
Fernando II of Portugal Auguste de Beauharnais
Fernando II of Portugal and Auguste de Beauharnais are married to Maria II of Portugal
Fernando II of Portugal Auguste de Beauharnais
action filter_type
action find
entity Maria II of Portugal
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Maria II of Portugal']
SELECT DISTINCT ?z WHERE { resource:Maria_II_of_Portugal property:spouse ?z . ?z rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q60721
P140
Q879146
USER
Which Christian denomination is the religion of that person ?
(Q60721,P140,c(Q879146))
action filter_type
action find
entity Q60721
relation P140
type Q879146
['Q60721', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?d WHERE { resource:Q60721 property:P140 ?d . ?d rdf:type ontology:Q879146 }
Fernando II of Portugal
action filter_type
action find
entity Fernando II of Portugal
relation religion
type Christian denomination
['Fernando II of Portugal', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?d WHERE { resource:Fernando_II_of_Portugal property:religion ?d . ?d rdf:type ontology:Christian_denomination }
[]
Christian denomination
Clarification for simple ques.
Q461630
SYSTEM
Did you mean Auguste de Beauharnais ?
Q60721 Q461630
(Q60721,P140,c(Q879146)) (Q461630,P140,c(Q879146))
[ANSWER]
['Q60721', 'P140', {'concept': 'Q879146'}] ['Q461630', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?d WHERE { resource:Q60721 property:P140 ?d . ?d rdf:type ontology:Q879146 }
Fernando II of Portugal Auguste de Beauharnais
Did you mean Auguste de Beauharnais ?
Auguste de Beauharnais
['Fernando II of Portugal', 'religion', {'concept': 'Christian denomination'}] ['Auguste de Beauharnais', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?d WHERE { resource:Fernando_II_of_Portugal property:religion ?d . ?d rdf:type ontology:Christian_denomination }
[]
Simple Question (Coreferenced)
USER
No, I meant Fernando II of Portugal. Could you tell me the answer for that?
(Q60721,P140,c(Q879146))
Q60721
['Q60721', 'P140', {'concept': 'Q879146'}]
['Fernando II of Portugal', 'religion', {'concept': 'Christian denomination'}]
[]
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q60721,P140,c(Q879146))
action filter_type
action find
entity Q60721
relation P140
type Q879146
[ANSWER] is the religion of that person
['Q60721', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?d WHERE { resource:Q60721 property:P140 ?d . ?d rdf:type ontology:Q879146 }
Roman Catholic Church
Roman Catholic Church is the religion of that person
Roman Catholic Church
action filter_type
action find
entity Fernando II of Portugal
relation religion
type Christian denomination
['Fernando II of Portugal', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?d WHERE { resource:Fernando_II_of_Portugal property:religion ?d . ?d rdf:type ontology:Christian_denomination }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P361
Q879146 Q44539 Q102496
USER
Which Christian denominations are around the same number of temples or parishes a part of as that Christian denomination ?
(c(Q44539)|c(Q102496),P361,c(Q879146))
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q879146
type Q44539
action find_reverse_tuple_counts
relation P361
type Q879146
type Q102496
action count
action filter_multi_types
action find_reverse
entity Q9592
relation P361
type Q44539
type Q102496
[[{'concept': 'Q44539'}, {'concept': 'Q102496'}], 'P361', {'concept': 'Q879146'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?u ) AS ?z ) WHERE { { ?u property:P361 ?o . ?u rdf:type ontology:Q44539 . ?o rdf:type ontology:Q879146 } UNION { ?u property:P361 ?o . ?u rdf:type ontology:Q102496 . ?o rdf:type ontology:Q879146 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:P361 resource:Q9592 . { ?e rdf:type ?h . VALUES ( ?h ) { ( ontology:Q44539 ) ( ontology:Q102496 ) } } } } . FILTER ( ?z = ?m ) }
action approx
action union
action find_reverse_tuple_counts
relation part of
type Christian denomination
type temple
action find_reverse_tuple_counts
relation part of
type Christian denomination
type parish
action count
action filter_multi_types
action find_reverse
entity Roman Catholic Church
relation part of
type temple
type parish
[[{'concept': 'temple'}, {'concept': 'parish'}], 'part of', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?u ) AS ?z ) WHERE { { ?u property:part_of ?o . ?u rdf:type ontology:temple . ?o rdf:type ontology:Christian_denomination } UNION { ?u property:part_of ?o . ?u rdf:type ontology:parish . ?o rdf:type ontology:Christian_denomination } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:part_of resource:Roman_Catholic_Church . { ?e rdf:type ?h . VALUES ( ?h ) { ( ontology:temple ) ( ontology:parish ) } } } } . FILTER ( ?z = ?m ) }
[]
Christian denomination temple parish
Q682443 Q749243 Q9592
SYSTEM
Episcopal Church, Church of Sweden, Roman Catholic Church
Q682443 Q749243 Q9592
(c(Q44539)|c(Q102496),P361,c(Q879146))
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q879146
type Q44539
action find_reverse_tuple_counts
relation P361
type Q879146
type Q102496
action count
action filter_multi_types
action find_reverse
entity Q9592
relation P361
type Q44539
type Q102496
[ANSWERS] are around the same number of temples or parishes a part of as that Christian denomination
[[{'concept': 'Q44539'}, {'concept': 'Q102496'}], 'P361', {'concept': 'Q879146'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?u ) AS ?z ) WHERE { { ?u property:P361 ?o . ?u rdf:type ontology:Q44539 . ?o rdf:type ontology:Q879146 } UNION { ?u property:P361 ?o . ?u rdf:type ontology:Q102496 . ?o rdf:type ontology:Q879146 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:P361 resource:Q9592 . { ?e rdf:type ?h . VALUES ( ?h ) { ( ontology:Q44539 ) ( ontology:Q102496 ) } } } } . FILTER ( ?z = ?m ) }
Episcopal Church Church of Sweden Roman Catholic Church
Episcopal Church, Church of Sweden and Roman Catholic Church are around the same number of temples or parishes a part of as that Christian denomination
Episcopal Church Church of Sweden Roman Catholic Church
action approx
action union
action find_reverse_tuple_counts
relation part of
type Christian denomination
type temple
action find_reverse_tuple_counts
relation part of
type Christian denomination
type parish
action count
action filter_multi_types
action find_reverse
entity Roman Catholic Church
relation part of
type temple
type parish
[[{'concept': 'temple'}, {'concept': 'parish'}], 'part of', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?u ) AS ?z ) WHERE { { ?u property:part_of ?o . ?u rdf:type ontology:temple . ?o rdf:type ontology:Christian_denomination } UNION { ?u property:part_of ?o . ?u rdf:type ontology:parish . ?o rdf:type ontology:Christian_denomination } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:part_of resource:Roman_Catholic_Church . { ?e rdf:type ?h . VALUES ( ?h ) { ( ontology:temple ) ( ontology:parish ) } } } } . FILTER ( ?z = ?m ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q749243
P140
Q874405
USER
Which social group does that Christian denomination relate to ?
(Q749243,P140,c(Q874405))
action filter_type
action find
entity Q749243
relation P140
type Q874405
['Q749243', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?v WHERE { resource:Q749243 property:P140 ?v . ?v rdf:type ontology:Q874405 }
Church of Sweden
action filter_type
action find
entity Church of Sweden
relation religion
type social group
['Church of Sweden', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?v WHERE { resource:Church_of_Sweden property:religion ?v . ?v rdf:type ontology:social_group }
[]
social group
Clarification for simple ques.
Q9592
SYSTEM
Did you mean Roman Catholic Church ?
Q682443 Q749243 Q9592
(Q682443,P140,c(Q874405)) (Q749243,P140,c(Q874405)) (Q9592,P140,c(Q874405))
[ANSWER]
['Q682443', 'P140', {'concept': 'Q874405'}] ['Q749243', 'P140', {'concept': 'Q874405'}] ['Q9592', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?v WHERE { resource:Q749243 property:P140 ?v . ?v rdf:type ontology:Q874405 }
Episcopal Church Church of Sweden Roman Catholic Church
Did you mean Roman Catholic Church ?
Roman Catholic Church
['Episcopal Church', 'religion', {'concept': 'social group'}] ['Church of Sweden', 'religion', {'concept': 'social group'}] ['Roman Catholic Church', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?v WHERE { resource:Church_of_Sweden property:religion ?v . ?v rdf:type ontology:social_group }
[]
Simple Question (Coreferenced)
USER
No, I meant Church of Sweden. Could you tell me the answer for that?
(Q749243,P140,c(Q874405))
Q749243
['Q749243', 'P140', {'concept': 'Q874405'}]
['Church of Sweden', 'religion', {'concept': 'social group'}]
[]
Q75809
SYSTEM
Lutheranism
Q75809
(Q749243,P140,c(Q874405))
action filter_type
action find
entity Q749243
relation P140
type Q874405
That Christian denomination relates to [ANSWER]
['Q749243', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?v WHERE { resource:Q749243 property:P140 ?v . ?v rdf:type ontology:Q874405 }
Lutheranism
That Christian denomination relates to Lutheranism
Lutheranism
action filter_type
action find
entity Church of Sweden
relation religion
type social group
['Church of Sweden', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?v WHERE { resource:Church_of_Sweden property:religion ?v . ?v rdf:type ontology:social_group }
[]