Simple Question (Direct)
Simple Question
Q2902762
P802
Q502895
USER
Who taught Jacques Bouhy ?
(Q2902762,P802,c(Q502895))
action filter_type
action find
entity Q2902762
relation P802
type Q502895
['Q2902762', 'P802', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q2902762 property:P802 ?j . ?j rdf:type ontology:Q502895 }
Jacques Bouhy
action filter_type
action find
entity Jacques Bouhy
relation student
type common name
['Jacques Bouhy', 'student', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Jacques_Bouhy property:student ?j . ?j rdf:type ontology:common_name }
[]
common name
Q3978376 Q4896455
SYSTEM
Suzanne Adams, Bessie Abott
Q3978376 Q4896455
(Q2902762,P802,c(Q502895))
action filter_type
action find
entity Q2902762
relation P802
type Q502895
[ANSWERS] taught Jacques Bouhy
['Q2902762', 'P802', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q2902762 property:P802 ?j . ?j rdf:type ontology:Q502895 }
Suzanne Adams Bessie Abott
Suzanne Adams and Bessie Abott taught Jacques Bouhy
Suzanne Adams Bessie Abott
action filter_type
action find
entity Jacques Bouhy
relation student
type common name
['Jacques Bouhy', 'student', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Jacques_Bouhy property:student ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4896455
P1066
Q502895
USER
Which people were the professors of Bessie Abott ?
(Q4896455,P1066,c(Q502895))
action filter_type
action find
entity Q4896455
relation P1066
type Q502895
['Q4896455', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q4896455 property:P1066 ?n . ?n rdf:type ontology:Q502895 }
Bessie Abott
action filter_type
action find
entity Bessie Abott
relation student of
type common name
['Bessie Abott', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Bessie_Abott property:student_of ?n . ?n rdf:type ontology:common_name }
[]
common name
Q2902762 Q437075
SYSTEM
Jacques Bouhy, Mathilde Marchesi
Q2902762 Q437075
(Q4896455,P1066,c(Q502895))
action filter_type
action find
entity Q4896455
relation P1066
type Q502895
[ANSWERS] were the professors of Bessie Abott
['Q4896455', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q4896455 property:P1066 ?n . ?n rdf:type ontology:Q502895 }
Jacques Bouhy Mathilde Marchesi
Jacques Bouhy and Mathilde Marchesi were the professors of Bessie Abott
Jacques Bouhy Mathilde Marchesi
action filter_type
action find
entity Bessie Abott
relation student of
type common name
['Bessie Abott', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Bessie_Abott property:student_of ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q9682
Q502895
USER
And what about Elizabeth II?
(Q9682,P1066,c(Q502895))
action filter_type
action find
entity Q9682
relation P1066
type Q502895
['Q9682', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q9682 property:P1066 ?x . ?x rdf:type ontology:Q502895 }
Elizabeth II
action filter_type
action find
entity Elizabeth II
relation student of
type common name
['Elizabeth II', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Elizabeth_II property:student_of ?x . ?x rdf:type ontology:common_name }
[]
common name
Q4943587 Q5725489
SYSTEM
Marion Crawford, Henry Marten
Q4943587 Q5725489
(Q9682,P1066,c(Q502895))
action filter_type
action find
entity Q9682
relation P1066
type Q502895
[ANSWERS]
['Q9682', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q9682 property:P1066 ?x . ?x rdf:type ontology:Q502895 }
Marion Crawford Henry Marten
Marion Crawford Henry Marten
action filter_type
action find
entity Elizabeth II
relation student of
type common name
['Elizabeth II', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Elizabeth_II property:student_of ?x . ?x rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q4943587 Q5725489
P1066
Q502895
USER
Which people were advised by Marion Crawford and Henry Marten ?
(c(Q502895),P1066,Q4943587) (c(Q502895),P1066,Q5725489)
action union
action filter_type
action find_reverse
entity Q4943587
relation P1066
type Q502895
action filter_type
action find_reverse
entity Q5725489
relation P1066
type Q502895
[{'concept': 'Q502895'}, 'P1066', 'Q4943587'] [{'concept': 'Q502895'}, 'P1066', 'Q5725489']
SELECT DISTINCT ?x WHERE { { ?x rdf:type ontology:Q502895 . ?x property:P1066 resource:Q4943587 } UNION { ?x property:P1066 resource:Q5725489 . ?x rdf:type ontology:Q502895 } }
Marion Crawford Henry Marten
action union
action filter_type
action find_reverse
entity Marion Crawford
relation student of
type common name
action filter_type
action find_reverse
entity Henry Marten
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Marion Crawford'] [{'concept': 'common name'}, 'student of', 'Henry Marten']
SELECT DISTINCT ?x WHERE { { ?x rdf:type ontology:common_name . ?x property:student_of resource:Marion_Crawford } UNION { ?x property:student_of resource:Henry_Marten . ?x rdf:type ontology:common_name } }
[]
common name
Q153815 Q9682 Q9682
SYSTEM
Princess Margaret, Countess of Snowdon for 1st, Elizabeth II for 2nd, 3rd
Q153815 Q9682 Q9682
(c(Q502895),P1066,Q4943587) (c(Q502895),P1066,Q5725489)
action union
action filter_type
action find_reverse
entity Q4943587
relation P1066
type Q502895
action filter_type
action find_reverse
entity Q5725489
relation P1066
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P1066', 'Q4943587'] [{'concept': 'Q502895'}, 'P1066', 'Q5725489']
SELECT DISTINCT ?x WHERE { { ?x rdf:type ontology:Q502895 . ?x property:P1066 resource:Q4943587 } UNION { ?x property:P1066 resource:Q5725489 . ?x rdf:type ontology:Q502895 } }
Princess Margaret, Countess of Snowdon Elizabeth II Elizabeth II
The Princess Margaret, Countess of Snowdon, Elizabeth II and Elizabeth II were advised by Marion Crawford and Henry Marten
Princess Margaret, Countess of Snowdon Elizabeth II Elizabeth II
action union
action filter_type
action find_reverse
entity Marion Crawford
relation student of
type common name
action filter_type
action find_reverse
entity Henry Marten
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Marion Crawford'] [{'concept': 'common name'}, 'student of', 'Henry Marten']
SELECT DISTINCT ?x WHERE { { ?x rdf:type ontology:common_name . ?x property:student_of resource:Marion_Crawford } UNION { ?x property:student_of resource:Henry_Marten . ?x rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9682
P1412
Q34770
USER
Which language does Elizabeth II speak in ?
(Q9682,P1412,c(Q34770))
action filter_type
action find
entity Q9682
relation P1412
type Q34770
['Q9682', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { resource:Q9682 property:P1412 ?x . ?x rdf:type ontology:Q34770 }
Elizabeth II
action filter_type
action find
entity Elizabeth II
relation languages spoken, written or signed
type language
['Elizabeth II', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { resource:Elizabeth_II property:languages_spoken,_written_or_signed ?x . ?x rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q9682,P1412,c(Q34770))
action filter_type
action find
entity Q9682
relation P1412
type Q34770
Elizabeth II speaks [ANSWER]
['Q9682', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { resource:Q9682 property:P1412 ?x . ?x rdf:type ontology:Q34770 }
English
Elizabeth II speaks English
English
action filter_type
action find
entity Elizabeth II
relation languages spoken, written or signed
type language
['Elizabeth II', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { resource:Elizabeth_II property:languages_spoken,_written_or_signed ?x . ?x rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1860
P361
Q5962346
USER
Which classification schemes are that language a part of ?
(Q1860,P361,c(Q5962346))
action filter_type
action find
entity Q1860
relation P361
type Q5962346
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?k WHERE { resource:Q1860 property:P361 ?k . ?k rdf:type ontology:Q5962346 }
English
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?k WHERE { resource:English property:part_of ?k . ?k rdf:type ontology:classification_scheme }
[]
classification scheme
Q1346342 Q5329170
SYSTEM
Anglic languages, Anglo-Frisian languages
Q1346342 Q5329170
(Q1860,P361,c(Q5962346))
action filter_type
action find
entity Q1860
relation P361
type Q5962346
[ANSWERS] are that language a part of
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?k WHERE { resource:Q1860 property:P361 ?k . ?k rdf:type ontology:Q5962346 }
Anglic languages Anglo-Frisian languages
Anglic languages and Anglo-Frisian languages are that language a part of
Anglic languages Anglo-Frisian languages
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?k WHERE { resource:English property:part_of ?k . ?k rdf:type ontology:classification_scheme }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3297839 Q1860
P361 P136
Q5962346
USER
Which classification schemes are English a component of or are the genre for MasterChef Junior ?
OR((Q1860,P361,c(Q5962346)), (Q3297839,P136,c(Q5962346)))
action filter_type
action union
action find
entity Q1860
relation P361
action find
entity Q3297839
relation P136
type Q5962346
{'OR': [['Q1860', 'P361', {'concept': 'Q5962346'}], ['Q3297839', 'P136', {'concept': 'Q5962346'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q1860 property:P361 ?d } UNION { resource:Q3297839 property:P136 ?d } } . ?d rdf:type ontology:Q5962346 }
MasterChef Junior English
action filter_type
action union
action find
entity English
relation part of
action find
entity MasterChef Junior
relation genre
type classification scheme
{'OR': [['English', 'part of', {'concept': 'classification scheme'}], ['MasterChef Junior', 'genre', {'concept': 'classification scheme'}]]}
SELECT DISTINCT ?d WHERE { { { resource:English property:part_of ?d } UNION { resource:MasterChef_Junior property:genre ?d } } . ?d rdf:type ontology:classification_scheme }
[]
classification scheme
Q1346342 Q182415 Q5329170
SYSTEM
Anglic languages, reality television, Anglo-Frisian languages
Q1346342 Q182415 Q5329170
OR((Q1860,P361,c(Q5962346)), (Q3297839,P136,c(Q5962346)))
action filter_type
action union
action find
entity Q1860
relation P361
action find
entity Q3297839
relation P136
type Q5962346
[ANSWERS] are English a component of or are the genre for MasterChef Junior
{'OR': [['Q1860', 'P361', {'concept': 'Q5962346'}], ['Q3297839', 'P136', {'concept': 'Q5962346'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q1860 property:P361 ?d } UNION { resource:Q3297839 property:P136 ?d } } . ?d rdf:type ontology:Q5962346 }
Anglic languages reality television Anglo-Frisian languages
Anglic languages, reality television and Anglo-Frisian languages are English a component of or are the genre for MasterChef Junior
Anglic languages reality television Anglo-Frisian languages
action filter_type
action union
action find
entity English
relation part of
action find
entity MasterChef Junior
relation genre
type classification scheme
{'OR': [['English', 'part of', {'concept': 'classification scheme'}], ['MasterChef Junior', 'genre', {'concept': 'classification scheme'}]]}
SELECT DISTINCT ?d WHERE { { { resource:English property:part_of ?d } UNION { resource:MasterChef_Junior property:genre ?d } } . ?d rdf:type ontology:classification_scheme }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9682
P921
Q838948
USER
Which work of art has Elizabeth II as its principal topic ?
(c(Q838948),P921,Q9682)
action filter_type
action find_reverse
entity Q9682
relation P921
type Q838948
[{'concept': 'Q838948'}, 'P921', 'Q9682']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q838948 . ?h property:P921 resource:Q9682 }
Elizabeth II
action filter_type
action find_reverse
entity Elizabeth II
relation main subject
type work of art
[{'concept': 'work of art'}, 'main subject', 'Elizabeth II']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:work_of_art . ?h property:main_subject resource:Elizabeth_II }
[]
work of art
Q223367
SYSTEM
The Queen
Q223367
(c(Q838948),P921,Q9682)
action filter_type
action find_reverse
entity Q9682
relation P921
type Q838948
[ANSWER] has Elizabeth II as its principal topic
[{'concept': 'Q838948'}, 'P921', 'Q9682']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q838948 . ?h property:P921 resource:Q9682 }
The Queen
The Queen has Elizabeth II as its principal topic
The Queen
action filter_type
action find_reverse
entity Elizabeth II
relation main subject
type work of art
[{'concept': 'work of art'}, 'main subject', 'Elizabeth II']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:work_of_art . ?h property:main_subject resource:Elizabeth_II }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q223367
P1411
Q4220917
USER
What were that work of art nominated for ?
(Q223367,P1411,c(Q4220917))
action filter_type
action find
entity Q223367
relation P1411
type Q4220917
['Q223367', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?k WHERE { resource:Q223367 property:P1411 ?k . ?k rdf:type ontology:Q4220917 }
The Queen
action filter_type
action find
entity The Queen
relation nominated for
type film award
['The Queen', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?k WHERE { resource:The_Queen property:nominated_for ?k . ?k rdf:type ontology:film_award }
[]
film award
Q1419495 Q6978541 Q787145
SYSTEM
National Board of Review Award for Best Actress, National Society of Film Critics Award for Best Screenplay, BAFTA Award for Best Editing
Q2358089 Q103618 Q1790273 Q687123 Q102427 Q894589 Q765404 Q628637 Q41417 Q787145 Q6978541 Q139184 Q849124 Q2092962 Q3667647 Q586356 Q918617 Q3667644 Q5211222 Q2947541 Q463085 Q7414009 Q787131 Q488651 Q787098 Q548389 Q1371682 Q2663714 Q1377736 Q1377755 Q41375 Q1377738 Q1377777 Q103360 Q2418096 Q1071888 Q894596 Q3827282 Q1268927 Q1419495 Q175235 Q2827843 Q777921 Q7971807 Q3021821 Q1011509 Q277536 Q947811
(Q223367,P1411,c(Q4220917))
action filter_type
action find
entity Q223367
relation P1411
type Q4220917
Nominated for the [ANSWERS]
['Q223367', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?k WHERE { resource:Q223367 property:P1411 ?k . ?k rdf:type ontology:Q4220917 }
Satellite Award for Best Film Academy Award for Best Actress New York Film Critics Circle Award for Best Actress BAFTA Award for Best Actress in a Leading Role Academy Award for Best Picture Boston Society of Film Critics Award for Best Film Satellite Award for Best Original Screenplay European Film Award – People's Choice Award for Best European Film Academy Award for Best Writing, Original Screenplay BAFTA Award for Best Editing National Society of Film Critics Award for Best Screenplay BAFTA Award for Best Film Golden Globe Award for Best Screenplay Satellite Award for Best Director Chicago Film Critics Association Award for Best Original Screenplay Golden Globe Award for Best Director BAFTA Award for Best Makeup and Hair Chicago Film Critics Association Award for Best Original Score Dallas-Fort Worth Film Critics Association Award for Best Actress Kansas City Film Critics Circle Award for Best Actress Golden Globe Award for Best Actress – Motion Picture Drama San Francisco Film Critics Circle Award for Best Actress BAFTA Award for Best Direction Academy Award for Best Original Score BAFTA Award for Best Film Music BAFTA Award for Best Actor in a Supporting Role Satellite Award for Best Actress – Motion Picture British Academy Film Award for Best British Film European Film Award for Best Composer European Film Award for Best Director BAFTA Award for Best Original Screenplay European Film Award for Best Actress European Film Award for Best Screenwriter Academy Award for Best Director Goya Award for Best European Film Chicago Film Critics Association Award for Best Actress Boston Society of Film Critics Award for Best Actress Las Vegas Film Critics Society Award for Best Actress National Society of Film Critics Award for Best Actress National Board of Review Award for Best Actress Chicago Film Critics Association Award for Best Supporting Actor Polish Academy Award for Best European Film European Film Award for Best Film Washington D.C. Area Film Critics Association Award for Best Actress Kansas City Film Critics Circle Award for Best Supporting Actor Golden Globe Award for Best Motion Picture – Drama Academy Award for Best Costume Design Chicago Film Critics Association Award for Best Director
Nominated for the National Board of Review Award for Best Actress, National Society of Film Critics Award for Best Screenplay and BAFTA Award for Best Editing
National Board of Review Award for Best Actress National Society of Film Critics Award for Best Screenplay BAFTA Award for Best Editing
action filter_type
action find
entity The Queen
relation nominated for
type film award
['The Queen', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?k WHERE { resource:The_Queen property:nominated_for ?k . ?k rdf:type ontology:film_award }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P1346
Q502895 Q4220917
USER
Which film awards were won by less number of people than that film award ?
(c(Q4220917),P1346,c(Q502895))
[{'concept': 'Q4220917'}, 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { ?z property:Q18560095 ?y . ?z rdf:type ontology:Q4220917 . ?y rdf:type ontology:Q502895 }
[{'concept': 'film award'}, 'winner', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { ?z property:winner ?y . ?z rdf:type ontology:film_award . ?y rdf:type ontology:common_name }
[]
common name film award
Comparative|More/Less|Single entity type|Clarification
Q1419495
SYSTEM
Did you mean National Board of Review Award for Best Actress ?
(c(Q4220917),P1346,c(Q502895))
[ANSWER]
[{'concept': 'Q4220917'}, 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { ?z property:Q18560095 ?y . ?z rdf:type ontology:Q4220917 . ?y rdf:type ontology:Q502895 }
Did you mean National Board of Review Award for Best Actress ?
National Board of Review Award for Best Actress
[{'concept': 'film award'}, 'winner', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { ?z property:winner ?y . ?z rdf:type ontology:film_award . ?y rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q4220917),P1346,c(Q502895))
[{'concept': 'Q4220917'}, 'P1346', {'concept': 'Q502895'}]
[{'concept': 'film award'}, 'winner', {'concept': 'common name'}]
[]
Q4722629 Q1402316 Q2620855
SYSTEM
Hong Kong Film Award for Best Film, Czech Lion for Best Film, Satellite Award for Best Animated or Mixed Media Feature
Q1062019 Q7601595 Q1653839 Q4377007 Q1653830 Q5412592 Q1367639 Q918660 Q15096815 Q1468372 Q6718743 Q628637 Q2663714 Q905413 Q2620855 Q5569281 Q4806635 Q2354778 Q4220897 Q962236 Q4806633 Q281939 Q9256282 Q103916 Q1402316 Q3841639 Q7426018 Q820046 Q277536 Q4722629 Q425675 Q174673 Q491025 Q7426020 Q748006 Q1749539 Q2947527 Q7601584 Q1161101 Q1161103 Q529134 Q3827284 Q748018
(c(Q4220917),P1346,c(Q502895))
Hong Kong Film Award for Best Film, Czech Lion for Best Film and Satellite Award for Best animated or Mixed Media Feature were won by less number of people than that film award
[{'concept': 'Q4220917'}, 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { ?z property:Q18560095 ?y . ?z rdf:type ontology:Q4220917 . ?y rdf:type ontology:Q502895 }
MTV Movie Award for Best Breakthrough Performance Stardust Award for Superstar of Tomorrow – Male IIFA Award for Best Actor Nika Award for best film IIFA Award for Best Director European Film Award – Jameson People's Choice Award – Best Actor Goya Award for Best Supporting Actor Rising Star Award, BAFTA MTV Movie Award for Best Female Performance IIFA Award for Best Actress MTV Movie Award for Best Cameo European Film Award – People's Choice Award for Best European Film British Academy Film Award for Best British Film MTV Movie Award for Best Performance Satellite Award for Best Animated or Mixed Media Feature Washington D.C. Area Film Critics Association Award for Best Actor Asian Film Award for Best Supporting Actress Satellite Award for Best Foreign Language Film MTV Movie Award for Best Dance Sequence MTV Movie Award for Best Hero Asian Film Award for Best Supporting Actor Academy Award for Best Film Editing European Film Award: Audience Award for Best Director Academy Award for Best Actor Czech Lion for Best Film MTV Movie Award for Most Desirable Female Satellite Award for Best Miniseries or Television Film MTV Movie Award for Best Song from a Movie Academy Award for Best Costume Design Hong Kong Film Award for Best Film MTV Movie Award for Best Scared-As-S**t Performance Polish Academy Award for Best Director IIFA Award for Best Movie Satellite Award for Best Miniseries MTV Movie Award for Best New Filmmaker Satellite Award for Best Visual Effects Kansas City Film Critics Circle Award for Best Director Stardust Award for Best Supporting Actress MTV Award for Global Superstar MTV Movie Award for Most Desirable Male MTV Movie Award for Best Dressed Las Vegas Film Critics Society Award for Best Supporting Actress MTV Movie Award for Best Action Sequence
Hong Kong Film Award for Best Film, Czech Lion for Best Film and Satellite Award for Best animated or Mixed Media Feature were won by less number of people than that film award
Hong Kong Film Award for Best Film Czech Lion for Best Film Satellite Award for Best Animated or Mixed Media Feature
[{'concept': 'film award'}, 'winner', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { ?z property:winner ?y . ?z rdf:type ontology:film_award . ?y rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581072 Q9682
P9 P21
Q502895
USER
Which people have Elizabeth II as their sibling and have female as the sex ?
AND((c(Q502895),P9,Q9682), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q9682
relation P9
action find_reverse
entity Q6581072
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P9', 'Q9682'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . ?w property:P9 resource:Q9682 . ?w property:P21 resource:Q6581072 }
female Elizabeth II
action filter_type
action intersection
action find_reverse
entity Elizabeth II
relation sister
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'sister', 'Elizabeth II'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . ?w property:sister resource:Elizabeth_II . ?w property:gender resource:female }
[]
common name
Q153815
SYSTEM
Princess Margaret, Countess of Snowdon
Q153815
AND((c(Q502895),P9,Q9682), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q9682
relation P9
action find_reverse
entity Q6581072
relation P21
type Q502895
[ANSWER] have Elizabeth II as their sibling and have female as the sex
{'AND': [[{'concept': 'Q502895'}, 'P9', 'Q9682'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . ?w property:P9 resource:Q9682 . ?w property:P21 resource:Q6581072 }
Princess Margaret, Countess of Snowdon
Princess Margaret, Countess of Snowdon have Elizabeth II as their sibling and have female as the sex
Princess Margaret, Countess of Snowdon
action filter_type
action intersection
action find_reverse
entity Elizabeth II
relation sister
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'sister', 'Elizabeth II'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . ?w property:sister resource:Elizabeth_II . ?w property:gender resource:female }
[]