Simple Question (Direct)
Simple Question
Q7519242
P40
Q502895
USER
Which person is a child of Simon Luttrell, 1st Earl of Carhampton ?
(Q7519242,P40,c(Q502895))
action filter_type
action find
entity Q7519242
relation P40
type Q502895
['Q7519242', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . resource:Q7519242 property:P40 ?t }
Simon Luttrell, 1st Earl of Carhampton
action filter_type
action find
entity Simon Luttrell, 1st Earl of Carhampton
relation child
type common name
['Simon Luttrell, 1st Earl of Carhampton', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . resource:Simon_Luttrell,_1st_Earl_of_Carhampton property:child ?t }
[]
common name
Q4768055
SYSTEM
Anne, Duchess of Cumberland and Strathearn
Q4768055
(Q7519242,P40,c(Q502895))
action filter_type
action find
entity Q7519242
relation P40
type Q502895
And [ANSWER] is a child of Simon Luttrell, 1st Earl of Carhampton
['Q7519242', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . resource:Q7519242 property:P40 ?t }
Anne, Duchess of Cumberland and Strathearn
And Anne, Duchess of Cumberland and Strathearn is a child of Simon Luttrell, 1st Earl of Carhampton
Anne, Duchess of Cumberland and Strathearn
action filter_type
action find
entity Simon Luttrell, 1st Earl of Carhampton
relation child
type common name
['Simon Luttrell, 1st Earl of Carhampton', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . resource:Simon_Luttrell,_1st_Earl_of_Carhampton property:child ?t }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4768055
P26
Q502895
USER
Who is married to that one ?
(Q4768055,P26,c(Q502895))
action filter_type
action find
entity Q4768055
relation P26
type Q502895
['Q4768055', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q4768055 property:P26 ?v }
Anne, Duchess of Cumberland and Strathearn
action filter_type
action find
entity Anne, Duchess of Cumberland and Strathearn
relation spouse
type common name
['Anne, Duchess of Cumberland and Strathearn', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:Anne,_Duchess_of_Cumberland_and_Strathearn property:spouse ?v }
[]
common name
Q699738
SYSTEM
Prince Henry, Duke of Cumberland and Strathearn
Q699738
(Q4768055,P26,c(Q502895))
action filter_type
action find
entity Q4768055
relation P26
type Q502895
[ANSWER] is married to that one
['Q4768055', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q4768055 property:P26 ?v }
Prince Henry, Duke of Cumberland and Strathearn
Prince Henry, Duke of Cumberland and Strathearn is married to that one
Prince Henry, Duke of Cumberland and Strathearn
action filter_type
action find
entity Anne, Duchess of Cumberland and Strathearn
relation spouse
type common name
['Anne, Duchess of Cumberland and Strathearn', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:Anne,_Duchess_of_Cumberland_and_Strathearn property:spouse ?v }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19046287 Q4768055
P26 P50
Q502895
USER
Which people are married to Anne, Duchess of Cumberland and Strathearn or were the writers of Vautrollier, Thomas (DNB00) ?
OR((Q4768055,P26,c(Q502895)), (Q19046287,P50,c(Q502895)))
action filter_type
action union
action find
entity Q4768055
relation P26
action find
entity Q19046287
relation P50
type Q502895
{'OR': [['Q4768055', 'P26', {'concept': 'Q502895'}], ['Q19046287', 'P50', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q19046287 property:P50 ?b } UNION { resource:Q4768055 property:P26 ?b } } . ?b rdf:type ontology:Q502895 }
Vautrollier, Thomas (DNB00) Anne, Duchess of Cumberland and Strathearn
action filter_type
action union
action find
entity Anne, Duchess of Cumberland and Strathearn
relation spouse
action find
entity Vautrollier, Thomas (DNB00)
relation author
type common name
{'OR': [['Anne, Duchess of Cumberland and Strathearn', 'spouse', {'concept': 'common name'}], ['Vautrollier, Thomas (DNB00)', 'author', {'concept': 'common name'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Vautrollier,_Thomas_(DNB00) property:author ?b } UNION { resource:Anne,_Duchess_of_Cumberland_and_Strathearn property:spouse ?b } } . ?b rdf:type ontology:common_name }
[]
common name
Q19357030 Q699738
SYSTEM
George Stronach, Prince Henry, Duke of Cumberland and Strathearn
Q19357030 Q699738
OR((Q4768055,P26,c(Q502895)), (Q19046287,P50,c(Q502895)))
action filter_type
action union
action find
entity Q4768055
relation P26
action find
entity Q19046287
relation P50
type Q502895
[ANSWERS]
{'OR': [['Q4768055', 'P26', {'concept': 'Q502895'}], ['Q19046287', 'P50', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q19046287 property:P50 ?b } UNION { resource:Q4768055 property:P26 ?b } } . ?b rdf:type ontology:Q502895 }
George Stronach Prince Henry, Duke of Cumberland and Strathearn
George Stronach and Prince Henry, Duke of Cumberland and Strathearn are married to Anne, Duchess of Cumberland and Strathearn or were the writers of Vautrollier, Thomas (DNB00)
George Stronach Prince Henry, Duke of Cumberland and Strathearn
action filter_type
action union
action find
entity Anne, Duchess of Cumberland and Strathearn
relation spouse
action find
entity Vautrollier, Thomas (DNB00)
relation author
type common name
{'OR': [['Anne, Duchess of Cumberland and Strathearn', 'spouse', {'concept': 'common name'}], ['Vautrollier, Thomas (DNB00)', 'author', {'concept': 'common name'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Vautrollier,_Thomas_(DNB00) property:author ?b } UNION { resource:Anne,_Duchess_of_Cumberland_and_Strathearn property:spouse ?b } } . ?b rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q699738
P53
Q8436
USER
Which family did Prince Henry, Duke of Cumberland and Strathearn belong to ?
(Q699738,P53,c(Q8436))
action filter_type
action find
entity Q699738
relation P53
type Q8436
['Q699738', 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?i WHERE { resource:Q699738 property:P53 ?i . ?i rdf:type ontology:Q8436 }
Prince Henry, Duke of Cumberland and Strathearn
action filter_type
action find
entity Prince Henry, Duke of Cumberland and Strathearn
relation noble family
type family
['Prince Henry, Duke of Cumberland and Strathearn', 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?i WHERE { resource:Prince_Henry,_Duke_of_Cumberland_and_Strathearn property:noble_family ?i . ?i rdf:type ontology:family }
[]
family
Q157217
SYSTEM
House of Hanover
Q157217
(Q699738,P53,c(Q8436))
action filter_type
action find
entity Q699738
relation P53
type Q8436
Prince Henry , Duke of Cumberland and Strathearn belonged to the [ANSWER]
['Q699738', 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?i WHERE { resource:Q699738 property:P53 ?i . ?i rdf:type ontology:Q8436 }
House of Hanover
Prince Henry , Duke of Cumberland and Strathearn belonged to the House of Hanover
House of Hanover
action filter_type
action find
entity Prince Henry, Duke of Cumberland and Strathearn
relation noble family
type family
['Prince Henry, Duke of Cumberland and Strathearn', 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?i WHERE { resource:Prince_Henry,_Duke_of_Cumberland_and_Strathearn property:noble_family ?i . ?i rdf:type ontology:family }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2981265
Q8436
USER
And how about Aleksander Ostrogski?
(Q2981265,P53,c(Q8436))
action filter_type
action find
entity Q2981265
relation P53
type Q8436
['Q2981265', 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?o WHERE { resource:Q2981265 property:P53 ?o . ?o rdf:type ontology:Q8436 }
Aleksander Ostrogski
action filter_type
action find
entity Aleksander Ostrogski
relation noble family
type family
['Aleksander Ostrogski', 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?o WHERE { resource:Aleksander_Ostrogski property:noble_family ?o . ?o rdf:type ontology:family }
[]
family
Q1642242
SYSTEM
Ostrogski family
Q1642242
(Q2981265,P53,c(Q8436))
action filter_type
action find
entity Q2981265
relation P53
type Q8436
[ANSWER]
['Q2981265', 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?o WHERE { resource:Q2981265 property:P53 ?o . ?o rdf:type ontology:Q8436 }
Ostrogski family
Ostrogski family
action filter_type
action find
entity Aleksander Ostrogski
relation noble family
type family
['Aleksander Ostrogski', 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?o WHERE { resource:Aleksander_Ostrogski property:noble_family ?o . ?o rdf:type ontology:family }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q16968866
P608
Q1656682 Q33506 Q502895
USER
How many people were exhibited at lesser number of events or museums than Lydia Schouten ?
(c(Q502895),P608,c(Q1656682)|c(Q33506))
action count
action less
action union
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action find_tuple_counts
relation P608
type Q502895
type Q33506
action count
action filter_multi_types
action find
entity Q16968866
relation P608
type Q1656682
type Q33506
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q1656682'}, {'concept': 'Q33506'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?z ) WHERE { { ?h property:P608 ?w . ?w rdf:type ontology:Q33506 . ?h rdf:type ontology:Q502895 } UNION { ?h property:P608 ?w . ?w rdf:type ontology:Q1656682 . ?h rdf:type ontology:Q502895 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { { ?g rdf:type ontology:Q1656682 } UNION { ?g rdf:type ontology:Q33506 } } . resource:Q16968866 property:P608 ?g } } . FILTER ( ?z < ?e ) }
Lydia Schouten
action count
action less
action union
action find_tuple_counts
relation exhibition history
type common name
type event
action find_tuple_counts
relation exhibition history
type common name
type museum
action count
action filter_multi_types
action find
entity Lydia Schouten
relation exhibition history
type event
type museum
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'event'}, {'concept': 'museum'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?z ) WHERE { { ?h property:exhibition_history ?w . ?w rdf:type ontology:museum . ?h rdf:type ontology:common_name } UNION { ?h property:exhibition_history ?w . ?w rdf:type ontology:event . ?h rdf:type ontology:common_name } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { { ?g rdf:type ontology:event } UNION { ?g rdf:type ontology:museum } } . resource:Lydia_Schouten property:exhibition_history ?g } } . FILTER ( ?z < ?e ) }
[]
event museum common name
SYSTEM
30
Q70006 Q17314881 Q17455385 Q15734263 Q15734265 Q6196481 Q7649008 Q16858002 Q15991813 Q16062545 Q5671224 Q17625628 Q16005428 Q27505608 Q5248733 Q2824894 Q1964408 Q15734237 Q2965423 Q6687160 Q3289592 Q22815085 Q5375139 Q9015308 Q805807 Q16080418 Q15527965 Q15873898 Q55192 Q3335569
(c(Q502895),P608,c(Q1656682)|c(Q33506))
action count
action less
action union
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action find_tuple_counts
relation P608
type Q502895
type Q33506
action count
action filter_multi_types
action find
entity Q16968866
relation P608
type Q1656682
type Q33506
[ANSWER]
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q1656682'}, {'concept': 'Q33506'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?z ) WHERE { { ?h property:P608 ?w . ?w rdf:type ontology:Q33506 . ?h rdf:type ontology:Q502895 } UNION { ?h property:P608 ?w . ?w rdf:type ontology:Q1656682 . ?h rdf:type ontology:Q502895 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { { ?g rdf:type ontology:Q1656682 } UNION { ?g rdf:type ontology:Q33506 } } . resource:Q16968866 property:P608 ?g } } . FILTER ( ?z < ?e ) }
Lotte Jacobi René Izaure Jerry Cooke Johanna Bleuland van Oordt Adri Bleuland van Oordt Jim Love Susie Bootja Bootja Napaltjarri Anne Mee Judie Bamber Alice Havers Pablo Borges Delgado Deborah De Robertis Andrea Bowers Wolfgang Sellinger Manuel Ocampo Adolphe Péterelle Nan Hoover Tony van Alphen Christian Lhopital Louis Ferstadt Moniek Toebosch Georges Violet Ena Swansea Juan Carlos Alom Balto Alyce Frank Margaretha Roosenboom Chrisje van der Willigen Gertrude Abercrombie Nancy Elizabeth Prophet
30
action count
action less
action union
action find_tuple_counts
relation exhibition history
type common name
type event
action find_tuple_counts
relation exhibition history
type common name
type museum
action count
action filter_multi_types
action find
entity Lydia Schouten
relation exhibition history
type event
type museum
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'event'}, {'concept': 'museum'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?z ) WHERE { { ?h property:exhibition_history ?w . ?w rdf:type ontology:museum . ?h rdf:type ontology:common_name } UNION { ?h property:exhibition_history ?w . ?w rdf:type ontology:event . ?h rdf:type ontology:common_name } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { { ?g rdf:type ontology:event } UNION { ?g rdf:type ontology:museum } } . resource:Lydia_Schouten property:exhibition_history ?g } } . FILTER ( ?z < ?e ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q1642242
P21 P53
Q502895
USER
Which people are from Ostrogski family and have male as the sex ?
AND((c(Q502895),P53,Q1642242), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1642242
relation P53
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P53', 'Q1642242'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?t WHERE { ?t property:P21 resource:Q6581097 . ?t property:P53 resource:Q1642242 . ?t rdf:type ontology:Q502895 }
male Ostrogski family
action filter_type
action intersection
action find_reverse
entity Ostrogski family
relation noble family
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'noble family', 'Ostrogski family'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?t WHERE { ?t property:gender resource:male . ?t property:noble_family resource:Ostrogski_family . ?t rdf:type ontology:common_name }
[]
common name
Q4493865 Q153612 Q4383543 Q4154544 Q2981265 Q712444 Q2470469
SYSTEM
Feodor Ostrogski, Ivan-Yanush Ostrozky, Ilia Ostrogski, Daniil Ostrogski, Aleksander Ostrogski, Konstanty Ostrogski, Konstanty Wasyl Ostrogski
Q4493865 Q153612 Q4383543 Q4154544 Q2981265 Q712444 Q2470469
AND((c(Q502895),P53,Q1642242), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1642242
relation P53
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] are from Ostrogski family and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P53', 'Q1642242'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?t WHERE { ?t property:P21 resource:Q6581097 . ?t property:P53 resource:Q1642242 . ?t rdf:type ontology:Q502895 }
Feodor Ostrogski Ivan-Yanush Ostrozky Ilia Ostrogski Daniil Ostrogski Aleksander Ostrogski Konstanty Ostrogski Konstanty Wasyl Ostrogski
Feodor Ostrogski, Ivan-Yanush Ostrozky, Ilia Ostrogski, Daniil Ostrogski, Aleksander Ostrogski, Konstanty Ostrogski and Konstanty Wasyl Ostrogski are from Ostrogski family and have male as the sex
Feodor Ostrogski Ivan-Yanush Ostrozky Ilia Ostrogski Daniil Ostrogski Aleksander Ostrogski Konstanty Ostrogski Konstanty Wasyl Ostrogski
action filter_type
action intersection
action find_reverse
entity Ostrogski family
relation noble family
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'noble family', 'Ostrogski family'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?t WHERE { ?t property:gender resource:male . ?t property:noble_family resource:Ostrogski_family . ?t rdf:type ontology:common_name }
[]