Simple Question (Direct)
Simple Question
Q327831
P172
Q2472587
USER
Which people does Will Knightley have as his/her race ?
(Q327831,P172,c(Q2472587))
action filter_type
action find
entity Q327831
relation P172
type Q2472587
['Q327831', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?a WHERE { resource:Q327831 property:P172 ?a . ?a rdf:type ontology:Q2472587 }
Will Knightley
action filter_type
action find
entity Will Knightley
relation ethnic group
type people
['Will Knightley', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?a WHERE { resource:Will_Knightley property:ethnic_group ?a . ?a rdf:type ontology:people }
[]
people
Q42406
SYSTEM
English people
Q42406
(Q327831,P172,c(Q2472587))
action filter_type
action find
entity Q327831
relation P172
type Q2472587
[ANSWER]
['Q327831', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?a WHERE { resource:Q327831 property:P172 ?a . ?a rdf:type ontology:Q2472587 }
English people
English people
action filter_type
action find
entity Will Knightley
relation ethnic group
type people
['Will Knightley', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?a WHERE { resource:Will_Knightley property:ethnic_group ?a . ?a rdf:type ontology:people }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q327831
P161
Q838948
USER
Which work of art does that person star in ?
(c(Q838948),P161,Q42406)
action filter_type
action find_reverse
entity Q327831
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q42406']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q838948 . ?w property:P161 resource:Q327831 }
Will Knightley
action filter_type
action find_reverse
entity Will Knightley
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'English people']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:work_of_art . ?w property:cast_member resource:Will_Knightley }
[]
work of art
Q3569711
SYSTEM
Wolfshead: The Legend of Robin Hood
Q3569711
(c(Q838948),P161,Q42406)
action filter_type
action find_reverse
entity Q327831
relation P161
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q42406']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q838948 . ?w property:P161 resource:Q327831 }
Wolfshead: The Legend of Robin Hood
Wolfshead: The Legend of Robin Hood
action filter_type
action find_reverse
entity Will Knightley
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'English people']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:work_of_art . ?w property:cast_member resource:Will_Knightley }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q327831 Q980534
P26
Q502895
USER
How many people are the life partner of Will Knightley or Clarissa ?
(c(Q502895),P26,Q327831) (c(Q502895),P26,Q980534)
action count
action union
action filter_type
action find_reverse
entity Q327831
relation P26
type Q502895
action filter_type
action find_reverse
entity Q980534
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q327831'] [{'concept': 'Q502895'}, 'P26', 'Q980534']
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { ?o rdf:type ontology:Q502895 . ?o property:P26 resource:Q327831 } UNION { ?o property:P26 resource:Q980534 . ?o rdf:type ontology:Q502895 } }
Will Knightley Clarissa
action count
action union
action filter_type
action find_reverse
entity Will Knightley
relation spouse
type common name
action filter_type
action find_reverse
entity Clarissa
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Will Knightley'] [{'concept': 'common name'}, 'spouse', 'Clarissa']
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { ?o rdf:type ontology:common_name . ?o property:spouse resource:Will_Knightley } UNION { ?o property:spouse resource:Clarissa . ?o rdf:type ontology:common_name } }
[]
common name
SYSTEM
2
Q6933950 Q449569
(c(Q502895),P26,Q327831) (c(Q502895),P26,Q980534)
action count
action union
action filter_type
action find_reverse
entity Q327831
relation P26
type Q502895
action filter_type
action find_reverse
entity Q980534
relation P26
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q327831'] [{'concept': 'Q502895'}, 'P26', 'Q980534']
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { ?o rdf:type ontology:Q502895 . ?o property:P26 resource:Q327831 } UNION { ?o property:P26 resource:Q980534 . ?o rdf:type ontology:Q502895 } }
Mulford Winsor Sharman Macdonald
2
action count
action union
action filter_type
action find_reverse
entity Will Knightley
relation spouse
type common name
action filter_type
action find_reverse
entity Clarissa
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Will Knightley'] [{'concept': 'common name'}, 'spouse', 'Clarissa']
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { ?o rdf:type ontology:common_name . ?o property:spouse resource:Will_Knightley } UNION { ?o property:spouse resource:Clarissa . ?o rdf:type ontology:common_name } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1445
Q838948 Q386724
USER
How many works represents a fictional universe described in approximately 1 work of art ?
(c(Q386724),P1445,c(Q838948))
action count
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q838948
value 1
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?g ) WHERE { ?c property:P1445 ?o . ?o rdf:type ontology:Q838948 . ?c rdf:type ontology:Q386724 } GROUP BY ?c } . FILTER ( ?g = 1 ) }
action count
action approx
action find_tuple_counts
relation fictional universe described in
type work
type work of art
value 1
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?g ) WHERE { ?c property:fictional_universe_described_in ?o . ?o rdf:type ontology:work_of_art . ?c rdf:type ontology:work } GROUP BY ?c } . FILTER ( ?g = 1 ) }
[]
work of art work
SYSTEM
4
Q1203222 Q15731902 Q11927 Q3177580
(c(Q386724),P1445,c(Q838948))
action count
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q838948
value 1
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?g ) WHERE { ?c property:P1445 ?o . ?o rdf:type ontology:Q838948 . ?c rdf:type ontology:Q386724 } GROUP BY ?c } . FILTER ( ?g = 1 ) }
Shrek Aladdin media franchise Stargate The Walking Dead
4
action count
action approx
action find_tuple_counts
relation fictional universe described in
type work
type work of art
value 1
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?g ) WHERE { ?c property:fictional_universe_described_in ?o . ?o rdf:type ontology:work_of_art . ?c rdf:type ontology:work } GROUP BY ?c } . FILTER ( ?g = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16679862 Q3569711
P161
Q502895
USER
Which people were casted in Wolfshead: The Legend of Robin Hood or The Woman in Black: Angels of Death ?
OR((Q3569711,P161,c(Q502895)), (Q16679862,P161,c(Q502895)))
action filter_type
action union
action find
entity Q3569711
relation P161
action find
entity Q16679862
relation P161
type Q502895
{'OR': [['Q3569711', 'P161', {'concept': 'Q502895'}], ['Q16679862', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?k ) { ( resource:Q16679862 ) ( resource:Q3569711 ) } . ?k property:P161 ?c } . ?c rdf:type ontology:Q502895 }
The Woman in Black: Angels of Death Wolfshead: The Legend of Robin Hood
action filter_type
action union
action find
entity Wolfshead: The Legend of Robin Hood
relation cast member
action find
entity The Woman in Black: Angels of Death
relation cast member
type common name
{'OR': [['Wolfshead: The Legend of Robin Hood', 'cast member', {'concept': 'common name'}], ['The Woman in Black: Angels of Death', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?k ) { ( resource:The_Woman_in_Black:_Angels_of_Death ) ( resource:Wolfshead:_The_Legend_of_Robin_Hood ) } . ?k property:cast_member ?c } . ?c rdf:type ontology:common_name }
[]
common name
Q6780635 Q460253 Q732161 Q374041 Q11954863 Q568813 Q5416189 Q20974081 Q630643 Q7186668
SYSTEM
Some of them are Mary Roscoe, Kathleen Byron, Genelle Williams, Adrian Rawlins, Amelia Pidgeon, Kim Braden, Eve Pearce, Leanne Best, David Warbeck, Phoebe Fox
Q374041 Q568813 Q8394815 Q542571 Q20974081 Q231310 Q460253 Q327831 Q2972222 Q6985971 Q6780635 Q7186668 Q11954863 Q732161 Q630643 Q5416189
OR((Q3569711,P161,c(Q502895)), (Q16679862,P161,c(Q502895)))
action filter_type
action union
action find
entity Q3569711
relation P161
action find
entity Q16679862
relation P161
type Q502895
[ANSWERS]
{'OR': [['Q3569711', 'P161', {'concept': 'Q502895'}], ['Q16679862', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?k ) { ( resource:Q16679862 ) ( resource:Q3569711 ) } . ?k property:P161 ?c } . ?c rdf:type ontology:Q502895 }
Adrian Rawlins Kim Braden Jude Wright Jeremy Irvine Leanne Best Helen McCrory Kathleen Byron Will Knightley Ciaran Madden Ned Dennehy Mary Roscoe Phoebe Fox Amelia Pidgeon Genelle Williams David Warbeck Eve Pearce
Mary Roscoe Kathleen Byron Genelle Williams Adrian Rawlins Amelia Pidgeon Kim Braden Eve Pearce Leanne Best David Warbeck Phoebe Fox
action filter_type
action union
action find
entity Wolfshead: The Legend of Robin Hood
relation cast member
action find
entity The Woman in Black: Angels of Death
relation cast member
type common name
{'OR': [['Wolfshead: The Legend of Robin Hood', 'cast member', {'concept': 'common name'}], ['The Woman in Black: Angels of Death', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?k ) { ( resource:The_Woman_in_Black:_Angels_of_Death ) ( resource:Wolfshead:_The_Legend_of_Robin_Hood ) } . ?k property:cast_member ?c } . ?c rdf:type ontology:common_name }
[]