Simple Question (Direct)
Simple Question
Q20011101
P26
Q502895
USER
Which person is married to Charles Lefebvre ?
(Q20011101,P26,c(Q502895))
action filter_type
action find
entity Q20011101
relation P26
type Q502895
['Q20011101', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . resource:Q20011101 property:P26 ?j }
Charles Lefebvre
action filter_type
action find
entity Charles Lefebvre
relation spouse
type common name
['Charles Lefebvre', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . resource:Charles_Lefebvre property:spouse ?j }
[]
common name
Q20011103
SYSTEM
Claire Brugière de Sorsum
Q20011103
(Q20011101,P26,c(Q502895))
action filter_type
action find
entity Q20011101
relation P26
type Q502895
[ANSWER] is married to Charles Lefebvre
['Q20011101', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . resource:Q20011101 property:P26 ?j }
Claire Brugière de Sorsum
Claire Brugière de Sorsum is married to Charles Lefebvre
Claire Brugière de Sorsum
action filter_type
action find
entity Charles Lefebvre
relation spouse
type common name
['Charles Lefebvre', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . resource:Charles_Lefebvre property:spouse ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q20011103
P25
Q502895
USER
Which person has that one as mom ?
(c(Q502895),P25,Q20011103)
action filter_type
action find_reverse
entity Q20011103
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q20011103']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?x property:P25 resource:Q20011103 }
Claire Brugière de Sorsum
action filter_type
action find_reverse
entity Claire Brugière de Sorsum
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Claire Brugière de Sorsum']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?x property:mother resource:Claire_Brugière_de_Sorsum }
[]
common name
Q1065318
SYSTEM
Charles-Édouard Lefebvre
Q1065318
(c(Q502895),P25,Q20011103)
action filter_type
action find_reverse
entity Q20011103
relation P25
type Q502895
[ANSWER] has that one as mom
[{'concept': 'Q502895'}, 'P25', 'Q20011103']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?x property:P25 resource:Q20011103 }
Charles-Édouard Lefebvre
Charles-Édouard Lefebvre has that one as mom
Charles-Édouard Lefebvre
action filter_type
action find_reverse
entity Claire Brugière de Sorsum
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Claire Brugière de Sorsum']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?x property:mother resource:Claire_Brugière_de_Sorsum }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1065318 Q142
P27
Q15617994
USER
Is that person an inhabitant of France ?
(Q1065318,P27,Q142)
action is_in
entity Q142
action find
entity Q1065318
relation P27
['Q1065318', 'P27', 'Q142']
ASK WHERE { resource:Q1065318 property:P27 resource:Q142 }
Charles-Édouard Lefebvre France
action is_in
entity France
action find
entity Charles-Édouard Lefebvre
relation country of citizenship
['Charles-Édouard Lefebvre', 'country of citizenship', 'France']
ASK WHERE { resource:Charles-Édouard_Lefebvre property:country_of_citizenship resource:France }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q1065318,P27,Q142)
action is_in
entity Q142
action find
entity Q1065318
relation P27
[ANSWER]
['Q1065318', 'P27', 'Q142']
ASK WHERE { resource:Q1065318 property:P27 resource:Q142 }
Yes
action is_in
entity France
action find
entity Charles-Édouard Lefebvre
relation country of citizenship
['Charles-Édouard Lefebvre', 'country of citizenship', 'France']
ASK WHERE { resource:Charles-Édouard_Lefebvre property:country_of_citizenship resource:France }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1065318
P802
Q502895
USER
How many people were pupils of Charles-Édouard Lefebvre ?
(c(Q502895),P802,Q1065318)
action count
action filter_type
action find_reverse
entity Q1065318
relation P802
type Q502895
[{'concept': 'Q502895'}, 'P802', 'Q1065318']
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m rdf:type ontology:Q502895 . ?m property:P802 resource:Q1065318 }
Charles-Édouard Lefebvre
action count
action filter_type
action find_reverse
entity Charles-Édouard Lefebvre
relation student
type common name
[{'concept': 'common name'}, 'student', 'Charles-Édouard Lefebvre']
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m rdf:type ontology:common_name . ?m property:student resource:Charles-Édouard_Lefebvre }
[]
common name
SYSTEM
2
Q297717 Q180278
(c(Q502895),P802,Q1065318)
action count
action filter_type
action find_reverse
entity Q1065318
relation P802
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P802', 'Q1065318']
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m rdf:type ontology:Q502895 . ?m property:P802 resource:Q1065318 }
Ambroise Thomas Charles Gounod
2
action count
action filter_type
action find_reverse
entity Charles-Édouard Lefebvre
relation student
type common name
[{'concept': 'common name'}, 'student', 'Charles-Édouard Lefebvre']
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m rdf:type ontology:common_name . ?m property:student resource:Charles-Édouard_Lefebvre }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1065318
P40
Q502895
USER
How many people have Charles-Édouard Lefebvre as a child ?
(c(Q502895),P40,Q1065318)
action count
action filter_type
action find_reverse
entity Q1065318
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q1065318']
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:P40 resource:Q1065318 . ?e rdf:type ontology:Q502895 }
Charles-Édouard Lefebvre
action count
action filter_type
action find_reverse
entity Charles-Édouard Lefebvre
relation child
type common name
[{'concept': 'common name'}, 'child', 'Charles-Édouard Lefebvre']
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:child resource:Charles-Édouard_Lefebvre . ?e rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q20011101 Q20011103
(c(Q502895),P40,Q1065318)
action count
action filter_type
action find_reverse
entity Q1065318
relation P40
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q1065318']
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:P40 resource:Q1065318 . ?e rdf:type ontology:Q502895 }
Charles Lefebvre Claire Brugière de Sorsum
2
action count
action filter_type
action find_reverse
entity Charles-Édouard Lefebvre
relation child
type common name
[{'concept': 'common name'}, 'child', 'Charles-Édouard Lefebvre']
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:child resource:Charles-Édouard_Lefebvre . ?e rdf:type ontology:common_name }
[]