Simple Question (Direct)
Simple Question
Q1767559
P22
Q502895
USER
Who was the father of François-Isidore de Ricard ?
(Q1767559,P22,c(Q502895))
action filter_type
action find
entity Q1767559
relation P22
type Q502895
['Q1767559', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q1767559 property:P22 ?o . ?o rdf:type ontology:Q502895 }
François-Isidore de Ricard
action filter_type
action find
entity François-Isidore de Ricard
relation father
type common name
['François-Isidore de Ricard', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:François-Isidore_de_Ricard property:father ?o . ?o rdf:type ontology:common_name }
[]
common name
Q1768195
SYSTEM
Louis-Étienne Ricard
Q1768195
(Q1767559,P22,c(Q502895))
action filter_type
action find
entity Q1767559
relation P22
type Q502895
The father of François-Isidore de Ricard was named [ANSWER]
['Q1767559', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q1767559 property:P22 ?o . ?o rdf:type ontology:Q502895 }
Louis-Étienne Ricard
The father of François-Isidore de Ricard was named Louis-Étienne Ricard
Louis-Étienne Ricard
action filter_type
action find
entity François-Isidore de Ricard
relation father
type common name
['François-Isidore de Ricard', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:François-Isidore_de_Ricard property:father ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1768195
P734
Q82799
USER
Who is associated with that person ?
(Q1768195,P734,c(Q82799))
action filter_type
action find
entity Q1768195
relation P734
type Q82799
['Q1768195', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { resource:Q1768195 property:P734 ?x . ?x rdf:type ontology:Q82799 }
Louis-Étienne Ricard
action filter_type
action find
entity Louis-Étienne Ricard
relation family name
type name
['Louis-Étienne Ricard', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { resource:Louis-Étienne_Ricard property:family_name ?x . ?x rdf:type ontology:name }
[]
name
Q21502146
SYSTEM
Ricard
Q21502146
(Q1768195,P734,c(Q82799))
action filter_type
action find
entity Q1768195
relation P734
type Q82799
[ANSWER] is associated with that person
['Q1768195', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { resource:Q1768195 property:P734 ?x . ?x rdf:type ontology:Q82799 }
Ricard
Ricard is associated with that person
Ricard
action filter_type
action find
entity Louis-Étienne Ricard
relation family name
type name
['Louis-Étienne Ricard', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { resource:Louis-Étienne_Ricard property:family_name ?x . ?x rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1768195 Q12313022
P22
Q502895
USER
How many people have Louis-Étienne Ricard or Fritz Brun as father ?
(c(Q502895),P22,Q1768195) (c(Q502895),P22,Q12313022)
action count
action union
action filter_type
action find_reverse
entity Q1768195
relation P22
type Q502895
action filter_type
action find_reverse
entity Q12313022
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q1768195'] [{'concept': 'Q502895'}, 'P22', 'Q12313022']
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { ?a property:P22 ?y . VALUES ( ?y ) { ( resource:Q12313022 ) ( resource:Q1768195 ) } }
Louis-Étienne Ricard Fritz Brun
action count
action union
action filter_type
action find_reverse
entity Louis-Étienne Ricard
relation father
type common name
action filter_type
action find_reverse
entity Fritz Brun
relation father
type common name
[{'concept': 'common name'}, 'father', 'Louis-Étienne Ricard'] [{'concept': 'common name'}, 'father', 'Fritz Brun']
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { ?a property:father ?y . VALUES ( ?y ) { ( resource:Fritz_Brun ) ( resource:Louis-Étienne_Ricard ) } }
[]
common name
SYSTEM
2
Q12330483 Q1767559
(c(Q502895),P22,Q1768195) (c(Q502895),P22,Q12313022)
action count
action union
action filter_type
action find_reverse
entity Q1768195
relation P22
type Q502895
action filter_type
action find_reverse
entity Q12313022
relation P22
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q1768195'] [{'concept': 'Q502895'}, 'P22', 'Q12313022']
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { ?a property:P22 ?y . VALUES ( ?y ) { ( resource:Q12313022 ) ( resource:Q1768195 ) } }
Oscar Brun François-Isidore de Ricard
2
action count
action union
action filter_type
action find_reverse
entity Louis-Étienne Ricard
relation father
type common name
action filter_type
action find_reverse
entity Fritz Brun
relation father
type common name
[{'concept': 'common name'}, 'father', 'Louis-Étienne Ricard'] [{'concept': 'common name'}, 'father', 'Fritz Brun']
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { ?a property:father ?y . VALUES ( ?y ) { ( resource:Fritz_Brun ) ( resource:Louis-Étienne_Ricard ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P417
Q502895 Q12737077 Q15617994
USER
Which people are the patron saints of max number of occupations or administrative territories ?
(c(Q12737077)|c(Q15617994),P417,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action find_reverse_tuple_counts
relation P417
type Q502895
type Q15617994
[[{'concept': 'Q12737077'}, {'concept': 'Q15617994'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?d = ?n ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) ?x WHERE { VALUES ( ?t ) { ( ontology:Q12737077 ) ( ontology:Q15617994 ) } . ?r rdf:type ?t } GROUP BY ?x } . { SELECT DISTINCT ( MAX ( ?z ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) ?k WHERE { VALUES ( ?g ) { ( ontology:Q12737077 ) ( ontology:Q15617994 ) } . ?l rdf:type ?g } GROUP BY ?k } } }
action argmax
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action find_reverse_tuple_counts
relation patron saint
type common name
type designation for an administrative territorial entity
[[{'concept': 'occupation'}, {'concept': 'designation for an administrative territorial entity'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?d = ?n ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) ?x WHERE { VALUES ( ?t ) { ( ontology:occupation ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?r rdf:type ?t } GROUP BY ?x } . { SELECT DISTINCT ( MAX ( ?z ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) ?k WHERE { VALUES ( ?g ) { ( ontology:occupation ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?l rdf:type ?g } GROUP BY ?k } } }
[]
common name occupation designation for an administrative territorial entity
Q133704
SYSTEM
Martin of Tours
Q133704
(c(Q12737077)|c(Q15617994),P417,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action find_reverse_tuple_counts
relation P417
type Q502895
type Q15617994
[ANSWER] is the patron saints of max number of occupations or administrative territories
[[{'concept': 'Q12737077'}, {'concept': 'Q15617994'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?d = ?n ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) ?x WHERE { VALUES ( ?t ) { ( ontology:Q12737077 ) ( ontology:Q15617994 ) } . ?r rdf:type ?t } GROUP BY ?x } . { SELECT DISTINCT ( MAX ( ?z ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) ?k WHERE { VALUES ( ?g ) { ( ontology:Q12737077 ) ( ontology:Q15617994 ) } . ?l rdf:type ?g } GROUP BY ?k } } }
Martin of Tours
Martin of Tours is the patron saints of max number of occupations or administrative territories
Martin of Tours
action argmax
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action find_reverse_tuple_counts
relation patron saint
type common name
type designation for an administrative territorial entity
[[{'concept': 'occupation'}, {'concept': 'designation for an administrative territorial entity'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?d = ?n ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) ?x WHERE { VALUES ( ?t ) { ( ontology:occupation ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?r rdf:type ?t } GROUP BY ?x } . { SELECT DISTINCT ( MAX ( ?z ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) ?k WHERE { VALUES ( ?g ) { ( ontology:occupation ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?l rdf:type ?g } GROUP BY ?k } } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q133704 Q42007
P19
Q515
USER
Was Martin of Tours born in Szombathely ?
(Q133704,P19,Q42007)
action is_in
entity Q42007
action find
entity Q133704
relation P19
['Q133704', 'P19', 'Q42007']
ASK WHERE { resource:Q133704 property:P19 resource:Q42007 }
Martin of Tours Szombathely
action is_in
entity Szombathely
action find
entity Martin of Tours
relation place of birth
['Martin of Tours', 'place of birth', 'Szombathely']
ASK WHERE { resource:Martin_of_Tours property:place_of_birth resource:Szombathely }
[]
city
SYSTEM
YES
(Q133704,P19,Q42007)
action is_in
entity Q42007
action find
entity Q133704
relation P19
[ANSWER]
['Q133704', 'P19', 'Q42007']
ASK WHERE { resource:Q133704 property:P19 resource:Q42007 }
Yes
action is_in
entity Szombathely
action find
entity Martin of Tours
relation place of birth
['Martin of Tours', 'place of birth', 'Szombathely']
ASK WHERE { resource:Martin_of_Tours property:place_of_birth resource:Szombathely }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1767559 Q142 Q48016
P27
Q15617994
USER
Is François-Isidore de Ricard a native of France and Gruaro ?
(Q1767559,P27,Q142) (Q1767559,P27,Q48016)
action is_in
entity Q1767559
action intersection
action find_reverse
entity Q142
relation P27
action find_reverse
entity Q48016
relation P27
['Q1767559', 'P27', 'Q142'] ['Q1767559', 'P27', 'Q48016']
ASK WHERE { resource:Q1767559 property:P27 resource:Q142 . resource:Q1767559 property:P27 resource:Q48016 }
François-Isidore de Ricard France Gruaro
action is_in
entity François-Isidore de Ricard
action intersection
action find_reverse
entity France
relation country of citizenship
action find_reverse
entity Gruaro
relation country of citizenship
['François-Isidore de Ricard', 'country of citizenship', 'France'] ['François-Isidore de Ricard', 'country of citizenship', 'Gruaro']
ASK WHERE { resource:François-Isidore_de_Ricard property:country_of_citizenship resource:France . resource:François-Isidore_de_Ricard property:country_of_citizenship resource:Gruaro }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q1767559,P27,Q142) (Q1767559,P27,Q48016)
action is_in
entity Q1767559
action intersection
action find_reverse
entity Q142
relation P27
action find_reverse
entity Q48016
relation P27
[ANSWER]
['Q1767559', 'P27', 'Q142'] ['Q1767559', 'P27', 'Q48016']
ASK WHERE { resource:Q1767559 property:P27 resource:Q142 . resource:Q1767559 property:P27 resource:Q48016 }
YES and NO respectively
action is_in
entity François-Isidore de Ricard
action intersection
action find_reverse
entity France
relation country of citizenship
action find_reverse
entity Gruaro
relation country of citizenship
['François-Isidore de Ricard', 'country of citizenship', 'France'] ['François-Isidore de Ricard', 'country of citizenship', 'Gruaro']
ASK WHERE { resource:François-Isidore_de_Ricard property:country_of_citizenship resource:France . resource:François-Isidore_de_Ricard property:country_of_citizenship resource:Gruaro }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1767559
P40
Q502895
USER
How many people have François-Isidore de Ricard as an offspring ?
(c(Q502895),P40,Q1767559)
action count
action filter_type
action find_reverse
entity Q1767559
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q1767559']
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { ?y property:P40 resource:Q1767559 . ?y rdf:type ontology:Q502895 }
François-Isidore de Ricard
action count
action filter_type
action find_reverse
entity François-Isidore de Ricard
relation child
type common name
[{'concept': 'common name'}, 'child', 'François-Isidore de Ricard']
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { ?y property:child resource:François-Isidore_de_Ricard . ?y rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q1768195
(c(Q502895),P40,Q1767559)
action count
action filter_type
action find_reverse
entity Q1767559
relation P40
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q1767559']
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { ?y property:P40 resource:Q1767559 . ?y rdf:type ontology:Q502895 }
Louis-Étienne Ricard
1
action count
action filter_type
action find_reverse
entity François-Isidore de Ricard
relation child
type common name
[{'concept': 'common name'}, 'child', 'François-Isidore de Ricard']
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { ?y property:child resource:François-Isidore_de_Ricard . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1767559
P40
Q502895
USER
Which person has that one as an offspring ?
action filter_type
action find_reverse
entity Q1767559
relation P40
type Q502895
SELECT DISTINCT ?j WHERE { ?j property:P40 resource:Q1767559 . ?j rdf:type ontology:Q502895 }
François-Isidore de Ricard
action filter_type
action find_reverse
entity François-Isidore de Ricard
relation child
type common name
SELECT DISTINCT ?j WHERE { ?j property:child resource:François-Isidore_de_Ricard . ?j rdf:type ontology:common_name }
[]
common name
Q1768195
SYSTEM
Louis-Étienne Ricard
Q1768195
action filter_type
action find_reverse
entity Q1767559
relation P40
type Q502895
[ANSWER] has that one as an offspring
SELECT DISTINCT ?j WHERE { ?j property:P40 resource:Q1767559 . ?j rdf:type ontology:Q502895 }
Louis-Étienne Ricard
Louis-Étienne Ricard has that one as an offspring
Louis-Étienne Ricard
action filter_type
action find_reverse
entity François-Isidore de Ricard
relation child
type common name
SELECT DISTINCT ?j WHERE { ?j property:child resource:François-Isidore_de_Ricard . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1768195
P21
Q290
USER
Which sex does that person have ?
(Q1768195,P21,c(Q290))
action filter_type
action find
entity Q1768195
relation P21
type Q290
['Q1768195', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q1768195 property:P21 ?e . ?e rdf:type ontology:Q290 }
Louis-Étienne Ricard
action filter_type
action find
entity Louis-Étienne Ricard
relation gender
type sex
['Louis-Étienne Ricard', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Louis-Étienne_Ricard property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1768195,P21,c(Q290))
action filter_type
action find
entity Q1768195
relation P21
type Q290
That person has a [ANSWER]
['Q1768195', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q1768195 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Louis-Étienne Ricard
relation gender
type sex
['Louis-Étienne Ricard', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Louis-Étienne_Ricard property:gender ?e . ?e rdf:type ontology:sex }
[]