Simple Question (Direct)
Simple Question
Q731373
P40
Q502895
USER
Which person is an offspring of Erhard III. von Le Puiset ?
(Q731373,P40,c(Q502895))
action filter_type
action find
entity Q731373
relation P40
type Q502895
['Q731373', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q731373 property:P40 ?v . ?v rdf:type ontology:Q502895 }
Erhard III. von Le Puiset
action filter_type
action find
entity Erhard III. von Le Puiset
relation child
type common name
['Erhard III. von Le Puiset', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Erhard_III._von_Le_Puiset property:child ?v . ?v rdf:type ontology:common_name }
[]
common name
Q1635254
SYSTEM
Hugues III du Puiset
Q1635254
(Q731373,P40,c(Q502895))
action filter_type
action find
entity Q731373
relation P40
type Q502895
[ANSWER] is an offspring of Erhard III. von Le Puiset
['Q731373', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q731373 property:P40 ?v . ?v rdf:type ontology:Q502895 }
Hugues III du Puiset
Hugues III du Puiset is an offspring of Erhard III. von Le Puiset
Hugues III du Puiset
action filter_type
action find
entity Erhard III. von Le Puiset
relation child
type common name
['Erhard III. von Le Puiset', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Erhard_III._von_Le_Puiset property:child ?v . ?v rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1635254
P22
Q502895
USER
Who was the father of that one ?
(Q1635254,P22,c(Q502895))
action filter_type
action find
entity Q1635254
relation P22
type Q502895
['Q1635254', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q1635254 property:P22 ?f . ?f rdf:type ontology:Q502895 }
Hugues III du Puiset
action filter_type
action find
entity Hugues III du Puiset
relation father
type common name
['Hugues III du Puiset', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Hugues_III_du_Puiset property:father ?f . ?f rdf:type ontology:common_name }
[]
common name
Q731373
SYSTEM
Erhard III. von Le Puiset
Q731373
(Q1635254,P22,c(Q502895))
action filter_type
action find
entity Q1635254
relation P22
type Q502895
The father of that one was Duke [ANSWER]
['Q1635254', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q1635254 property:P22 ?f . ?f rdf:type ontology:Q502895 }
Erhard III. von Le Puiset
The father of that one was Duke Erhard III. von Le Puiset
Erhard III. von Le Puiset
action filter_type
action find
entity Hugues III du Puiset
relation father
type common name
['Hugues III du Puiset', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Hugues_III_du_Puiset property:father ?f . ?f rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q647430 Q1635254
P26
Q502895
USER
Which people are married to Hugues III du Puiset or Stephen VIII Báthory ?
OR((Q1635254,P26,c(Q502895)), (Q647430,P26,c(Q502895)))
action filter_type
action union
action find
entity Q1635254
relation P26
action find
entity Q647430
relation P26
type Q502895
{'OR': [['Q1635254', 'P26', {'concept': 'Q502895'}], ['Q647430', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?h ) { ( resource:Q1635254 ) ( resource:Q647430 ) } . ?h property:P26 ?f } . ?f rdf:type ontology:Q502895 }
Stephen VIII Báthory Hugues III du Puiset
action filter_type
action union
action find
entity Hugues III du Puiset
relation spouse
action find
entity Stephen VIII Báthory
relation spouse
type common name
{'OR': [['Hugues III du Puiset', 'spouse', {'concept': 'common name'}], ['Stephen VIII Báthory', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?h ) { ( resource:Hugues_III_du_Puiset ) ( resource:Stephen_VIII_Báthory ) } . ?h property:spouse ?f } . ?f rdf:type ontology:common_name }
[]
common name
Q5052944 Q15665341
SYSTEM
Catherine Telegdi, Agnès de Blois
Q5052944 Q15665341
OR((Q1635254,P26,c(Q502895)), (Q647430,P26,c(Q502895)))
action filter_type
action union
action find
entity Q1635254
relation P26
action find
entity Q647430
relation P26
type Q502895
[ANSWERS] are married to Hugues III du Puiset or Stephen VIII Báthory
{'OR': [['Q1635254', 'P26', {'concept': 'Q502895'}], ['Q647430', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?h ) { ( resource:Q1635254 ) ( resource:Q647430 ) } . ?h property:P26 ?f } . ?f rdf:type ontology:Q502895 }
Catherine Telegdi Agnès de Blois
Catherine Telegdi and Agnès de Blois are married to Hugues III du Puiset or Stephen VIII Báthory
Catherine Telegdi Agnès de Blois
action filter_type
action union
action find
entity Hugues III du Puiset
relation spouse
action find
entity Stephen VIII Báthory
relation spouse
type common name
{'OR': [['Hugues III du Puiset', 'spouse', {'concept': 'common name'}], ['Stephen VIII Báthory', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?h ) { ( resource:Hugues_III_du_Puiset ) ( resource:Stephen_VIII_Báthory ) } . ?h property:spouse ?f } . ?f rdf:type ontology:common_name }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P40
Q502895
USER
How many people have that person as a child ?
(c(Q502895),P40,Q15665341)
[{'concept': 'Q502895'}, 'P40', 'Q15665341']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q23038905 resource:Q15665341 . ?z rdf:type ontology:Q502895 }
[{'concept': 'common name'}, 'child', 'Agnès de Blois']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:child resource:Agnès_de_Blois . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q15665341
SYSTEM
Did you mean Agnès de Blois ?
(c(Q502895),P40,Q5052944) (c(Q502895),P40,Q15665341)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q5052944'] [{'concept': 'Q502895'}, 'P40', 'Q15665341']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q23038905 resource:Q15665341 . ?z rdf:type ontology:Q502895 }
Did you mean Agnès de Blois ?
Agnès de Blois
[{'concept': 'common name'}, 'child', 'Catherine Telegdi'] [{'concept': 'common name'}, 'child', 'Agnès de Blois']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:child resource:Agnès_de_Blois . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q502895),P40,Q15665341)
[{'concept': 'Q502895'}, 'P40', 'Q15665341']
[{'concept': 'common name'}, 'child', 'Agnès de Blois']
[]
SYSTEM
2
Q316006 Q237886
(c(Q502895),P40,Q15665341)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q15665341']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q23038905 resource:Q15665341 . ?z rdf:type ontology:Q502895 }
Stephen, Count of Blois Adela of Normandy
2
[{'concept': 'common name'}, 'child', 'Agnès de Blois']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:child resource:Agnès_de_Blois . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q2342494
USER
Which collectables did atmost 3 people dub for ?
(c(Q2342494),P725,c(Q502895))
action atmost
action find_tuple_counts
relation P725
type Q2342494
type Q502895
value 3
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?p ) WHERE { ?e property:P725 ?d . ?e rdf:type ontology:Q2342494 . ?d rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?p <= 3 ) }
action atmost
action find_tuple_counts
relation voice actor
type collectable
type common name
value 3
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?p ) WHERE { ?e property:voice_actor ?d . ?e rdf:type ontology:collectable . ?d rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?p <= 3 ) }
[]
common name collectable
Q482870 Q119534 Q483263
SYSTEM
Boku wa Tomodachi ga Sukunai, Shakugan no Shana, Baka and Test
Q50035 Q483263 Q495094 Q482870 Q336056 Q1204015 Q304061 Q11272884 Q11325839 Q119534 Q184667 Q485958 Q5647726 Q2759489
(c(Q2342494),P725,c(Q502895))
action atmost
action find_tuple_counts
relation P725
type Q2342494
type Q502895
value 3
Atmost 3 people dubbed [ANSWERS]
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?p ) WHERE { ?e property:P725 ?d . ?e rdf:type ontology:Q2342494 . ?d rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?p <= 3 ) }
Nyaruko: Crawling with Love Baka and Test Durarara!! Boku wa Tomodachi ga Sukunai The Girl Who Leapt Through Time Ōkami Kakushi Kyo Kara Maoh! Toaru Hikūshi e no Koiuta No Game No Life-mart Shakugan no Shana Kanojo ga Flag o Oraretara Ro-Kyu-Bu! Handy Manny's Motorcycle Adventure Muv-Luv
Atmost 3 people dubbed Boku wa Tomodachi ga Sukunai, Shakugan no Shana and Baka and Test
Boku wa Tomodachi ga Sukunai Shakugan no Shana Baka and Test
action atmost
action find_tuple_counts
relation voice actor
type collectable
type common name
value 3
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?p ) WHERE { ?e property:voice_actor ?d . ?e rdf:type ontology:collectable . ?d rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?p <= 3 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581072 Q119534
P800 P21
Q502895
USER
Which people are author of Shakugan no Shana and are a female ?
AND((c(Q502895),P800,Q119534), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q119534
relation P800
action find_reverse
entity Q6581072
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P800', 'Q119534'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?q WHERE { ?q property:P800 resource:Q119534 . ?q property:P21 resource:Q6581072 . ?q rdf:type ontology:Q502895 }
female Shakugan no Shana
action filter_type
action intersection
action find_reverse
entity Shakugan no Shana
relation notable work
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'notable work', 'Shakugan no Shana'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?q WHERE { ?q property:notable_work resource:Shakugan_no_Shana . ?q property:gender resource:female . ?q rdf:type ontology:common_name }
[]
common name
Q859730
SYSTEM
Ayato Sasakura
Q859730
AND((c(Q502895),P800,Q119534), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q119534
relation P800
action find_reverse
entity Q6581072
relation P21
type Q502895
[ANSWER] is author of Shakugan no Shana and is a female
{'AND': [[{'concept': 'Q502895'}, 'P800', 'Q119534'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?q WHERE { ?q property:P800 resource:Q119534 . ?q property:P21 resource:Q6581072 . ?q rdf:type ontology:Q502895 }
Ayato Sasakura
Ayato Sasakura is author of Shakugan no Shana and is a female
Ayato Sasakura
action filter_type
action intersection
action find_reverse
entity Shakugan no Shana
relation notable work
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'notable work', 'Shakugan no Shana'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?q WHERE { ?q property:notable_work resource:Shakugan_no_Shana . ?q property:gender resource:female . ?q rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1635254
P26
Q502895
USER
How many people are married to Hugues III du Puiset ?
(c(Q502895),P26,Q1635254)
action count
action filter_type
action find_reverse
entity Q1635254
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q1635254']
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { ?v property:P26 resource:Q1635254 . ?v rdf:type ontology:Q502895 }
Hugues III du Puiset
action count
action filter_type
action find_reverse
entity Hugues III du Puiset
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Hugues III du Puiset']
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { ?v property:spouse resource:Hugues_III_du_Puiset . ?v rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q15665341
(c(Q502895),P26,Q1635254)
action count
action filter_type
action find_reverse
entity Q1635254
relation P26
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q1635254']
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { ?v property:P26 resource:Q1635254 . ?v rdf:type ontology:Q502895 }
Agnès de Blois
1
action count
action filter_type
action find_reverse
entity Hugues III du Puiset
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Hugues III du Puiset']
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { ?v property:spouse resource:Hugues_III_du_Puiset . ?v rdf:type ontology:common_name }
[]