Simple Question (Direct)
Simple Question
Q259434
P1411
Q4220917
USER
Which film award does Sylvia Miles have ?
(Q259434,P1411,c(Q4220917))
action filter_type
action find
entity Q259434
relation P1411
type Q4220917
['Q259434', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?i WHERE { resource:Q259434 property:P1411 ?i . ?i rdf:type ontology:Q4220917 }
Sylvia Miles
action filter_type
action find
entity Sylvia Miles
relation nominated for
type film award
['Sylvia Miles', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?i WHERE { resource:Sylvia_Miles property:nominated_for ?i . ?i rdf:type ontology:film_award }
[]
film award
Q106301
SYSTEM
Academy Award for Best Supporting Actress
Q106301
(Q259434,P1411,c(Q4220917))
action filter_type
action find
entity Q259434
relation P1411
type Q4220917
Sylvia Miles has won [ANSWER]
['Q259434', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?i WHERE { resource:Q259434 property:P1411 ?i . ?i rdf:type ontology:Q4220917 }
Academy Award for Best Supporting Actress
Sylvia Miles has won Academy Award for Best Supporting Actress
Academy Award for Best Supporting Actress
action filter_type
action find
entity Sylvia Miles
relation nominated for
type film award
['Sylvia Miles', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?i WHERE { resource:Sylvia_Miles property:nominated_for ?i . ?i rdf:type ontology:film_award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q259434
P106
Q12737077
USER
What are the job of Sylvia Miles ?
(Q259434,P106,c(Q12737077))
action filter_type
action find
entity Q259434
relation P106
type Q12737077
['Q259434', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q259434 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
Sylvia Miles
action filter_type
action find
entity Sylvia Miles
relation occupation
type occupation
['Sylvia Miles', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Sylvia_Miles property:occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q10798782 Q33999 Q2259451
SYSTEM
television actor, actor, stage actor
Q10798782 Q33999 Q2259451
(Q259434,P106,c(Q12737077))
action filter_type
action find
entity Q259434
relation P106
type Q12737077
The job of Sylvia Miles are a [ANSWERS]
['Q259434', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q259434 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
television actor actor stage actor
The job of Sylvia Miles are a television actor, actor and stage actor
television actor actor stage actor
action filter_type
action find
entity Sylvia Miles
relation occupation
type occupation
['Sylvia Miles', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Sylvia_Miles property:occupation ?e . ?e rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q21537781
P106
Q502895
USER
Do Frank Wentworth Duesbury have a job as those occupations ?
(Q21537781,P106,Q10798782) (Q21537781,P106,Q33999) (Q21537781,P106,Q2259451)
action is_in
entity prev_answer
action find
entity Q21537781
relation P106
['Q21537781', 'P106', 'Q10798782'] ['Q21537781', 'P106', 'Q33999'] ['Q21537781', 'P106', 'Q2259451']
ASK WHERE { VALUES ( ?y ) { ( resource:Q10798782 ) ( resource:Q33999 ) ( resource:Q2259451 ) } . resource:Q21537781 property:P106 ?y }
Frank Wentworth Duesbury
action is_in
entity prev_answer
action find
entity Frank Wentworth Duesbury
relation occupation
['Frank Wentworth Duesbury', 'occupation', 'television actor'] ['Frank Wentworth Duesbury', 'occupation', 'actor'] ['Frank Wentworth Duesbury', 'occupation', 'stage actor']
ASK WHERE { VALUES ( ?y ) { ( resource:television_actor ) ( resource:actor ) ( resource:stage_actor ) } . resource:Frank_Wentworth_Duesbury property:occupation ?y }
[]
common name
SYSTEM
NO
(Q21537781,P106,Q10798782) (Q21537781,P106,Q33999) (Q21537781,P106,Q2259451)
action is_in
entity prev_answer
action find
entity Q21537781
relation P106
[ANSWER]
['Q21537781', 'P106', 'Q10798782'] ['Q21537781', 'P106', 'Q33999'] ['Q21537781', 'P106', 'Q2259451']
ASK WHERE { VALUES ( ?y ) { ( resource:Q10798782 ) ( resource:Q33999 ) ( resource:Q2259451 ) } . resource:Q21537781 property:P106 ?y }
No
action is_in
entity prev_answer
action find
entity Frank Wentworth Duesbury
relation occupation
['Frank Wentworth Duesbury', 'occupation', 'television actor'] ['Frank Wentworth Duesbury', 'occupation', 'actor'] ['Frank Wentworth Duesbury', 'occupation', 'stage actor']
ASK WHERE { VALUES ( ?y ) { ( resource:television_actor ) ( resource:actor ) ( resource:stage_actor ) } . resource:Frank_Wentworth_Duesbury property:occupation ?y }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q106301
P166
Q502895
USER
Which people received the award titled Academy Award for Best Supporting Actress ?
(c(Q502895),P166,Q106301)
action filter_type
action find_reverse
entity Q106301
relation P166
type Q502895
[{'concept': 'Q502895'}, 'P166', 'Q106301']
SELECT DISTINCT ?n WHERE { ?n property:P166 resource:Q106301 . ?n rdf:type ontology:Q502895 }
Academy Award for Best Supporting Actress
action filter_type
action find_reverse
entity Academy Award for Best Supporting Actress
relation award received
type common name
[{'concept': 'common name'}, 'award received', 'Academy Award for Best Supporting Actress']
SELECT DISTINCT ?n WHERE { ?n property:award_received resource:Academy_Award_for_Best_Supporting_Actress . ?n rdf:type ontology:common_name }
[]
common name
Q13909 Q192410 Q873
SYSTEM
Angelina Jolie, Jennifer Hudson, Meryl Streep
Q229254 Q224021 Q212026 Q230832 Q152888 Q239691 Q3840847 Q217573 Q230841 Q239770 Q232541 Q230184 Q140017 Q188459 Q232562 Q192410 Q232588 Q134077 Q230188 Q199884 Q47664 Q230143 Q233856 Q215976 Q106275 Q439314 Q173585 Q172653 Q59314 Q43247 Q229169 Q228928 Q230126 Q232874 Q233832 Q233845 Q232109 Q232879 Q229410 Q202144 Q230128 Q36301 Q873 Q239745 Q230626 Q80966 Q59824 Q191828 Q131380 Q230147 Q28054 Q200534 Q39666 Q228906 Q190998 Q13909 Q213302 Q280098 Q232538 Q228904 Q230151 Q230214 Q228931 Q103343 Q233850 Q347879 Q232532 Q230159 Q212957 Q108935 Q230136 Q49001 Q232933 Q230131 Q59525 Q122614 Q230218 Q230138
(c(Q502895),P166,Q106301)
action filter_type
action find_reverse
entity Q106301
relation P166
type Q502895
[ANSWERS] received the award titled Academy Award for Best Supporting Actress
[{'concept': 'Q502895'}, 'P166', 'Q106301']
SELECT DISTINCT ?n WHERE { ?n property:P166 resource:Q106301 . ?n rdf:type ontology:Q502895 }
Octavia Spencer Donna Reed Mira Sorvino Peggy Ashcroft Fay Bainter Sandy Dennis Lupita Nyong'o Dianne Wiest Maureen Stapleton Anne Revere Estelle Parsons Lee Grant Mercedes McCambridge Goldie Hawn Ruth Gordon Jennifer Hudson Miyoshi Umeki Rachel Weisz Olympia Dukakis Anna Paquin Catherine Zeta-Jones Margaret Rutherford Alice Brady Patricia Arquette Juliette Binoche Alicia Vikander Jessica Lange Maggie Smith Gloria Grahame Ingrid Bergman Mo'Nique Eva Marie Saint Dorothy Malone Linda Hunt Jo Van Fleet Gale Sondergaard Mary Astor Lila Kedrova Melissa Leo Shelley Winters Katina Paxinou Anne Hathaway Meryl Streep Eileen Heckart Wendy Hiller Cate Blanchett Kim Hunter Marisa Tomei Kim Basinger Ethel Barrymore Judi Dench Tilda Swinton Penélope Cruz Anne Baxter Anjelica Huston Angelina Jolie Helen Hayes Geena Davis Patty Duke Hattie McDaniel Rita Moreno Brenda Fricker Marcia Gay Harden Jennifer Connelly Claire Trevor Vanessa Redgrave Beatrice Straight Jane Darwell Celeste Holm Mary Steenburgen Teresa Wright Whoopi Goldberg Mercedes Ruehl Cloris Leachman Josephine Hull Renée Zellweger Shirley Jones Tatum O'Neal
Angelina Jolie, Jennifer Hudson and Meryl Streep received the award titled Academy Award for Best Supporting Actress
Angelina Jolie Jennifer Hudson Meryl Streep
action filter_type
action find_reverse
entity Academy Award for Best Supporting Actress
relation award received
type common name
[{'concept': 'common name'}, 'award received', 'Academy Award for Best Supporting Actress']
SELECT DISTINCT ?n WHERE { ?n property:award_received resource:Academy_Award_for_Best_Supporting_Actress . ?n rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q873
P26
Q502895
USER
Which person is married to that one ?
(Q873,P26,c(Q502895))
action filter_type
action find
entity Q873
relation P26
type Q502895
['Q873', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q873 property:P26 ?g }
Meryl Streep
action filter_type
action find
entity Meryl Streep
relation spouse
type common name
['Meryl Streep', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Meryl_Streep property:spouse ?g }
[]
common name
Clarification for simple ques.
Q873
SYSTEM
Did you mean Meryl Streep ?
Q13909 Q192410 Q873
(Q13909,P26,c(Q502895)) (Q192410,P26,c(Q502895)) (Q873,P26,c(Q502895))
[ANSWER]
['Q13909', 'P26', {'concept': 'Q502895'}] ['Q192410', 'P26', {'concept': 'Q502895'}] ['Q873', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q873 property:P26 ?g }
Angelina Jolie Jennifer Hudson Meryl Streep
Did you mean Meryl Streep ?
Meryl Streep
['Angelina Jolie', 'spouse', {'concept': 'common name'}] ['Jennifer Hudson', 'spouse', {'concept': 'common name'}] ['Meryl Streep', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Meryl_Streep property:spouse ?g }
[]
Simple Question (Coreferenced)
USER
Yes
(Q873,P26,c(Q502895))
['Q873', 'P26', {'concept': 'Q502895'}]
['Meryl Streep', 'spouse', {'concept': 'common name'}]
[]
Q1271632
SYSTEM
Don Gummer
Q1271632
(Q873,P26,c(Q502895))
action filter_type
action find
entity Q873
relation P26
type Q502895
[ANSWER] is married to that one
['Q873', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q873 property:P26 ?g }
Don Gummer
Don Gummer is married to that one
Don Gummer
action filter_type
action find
entity Meryl Streep
relation spouse
type common name
['Meryl Streep', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Meryl_Streep property:spouse ?g }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1271632 Q15052227 Q3486444
P40
Q502895
USER
Does that person have Henry Wolfe Gummer and Grace Gummer as a child ?
(Q1271632,P40,Q15052227) (Q1271632,P40,Q3486444)
action is_in
entity Q1271632
action intersection
action find_reverse
entity Q15052227
relation P40
action find_reverse
entity Q3486444
relation P40
['Q1271632', 'P40', 'Q15052227'] ['Q1271632', 'P40', 'Q3486444']
ASK WHERE { resource:Q1271632 property:P40 resource:Q3486444 . resource:Q1271632 property:P40 resource:Q15052227 }
Don Gummer Henry Wolfe Gummer Grace Gummer
action is_in
entity Don Gummer
action intersection
action find_reverse
entity Henry Wolfe Gummer
relation child
action find_reverse
entity Grace Gummer
relation child
['Don Gummer', 'child', 'Henry Wolfe Gummer'] ['Don Gummer', 'child', 'Grace Gummer']
ASK WHERE { resource:Don_Gummer property:child resource:Grace_Gummer . resource:Don_Gummer property:child resource:Henry_Wolfe_Gummer }
[]
common name
SYSTEM
YES
(Q1271632,P40,Q15052227) (Q1271632,P40,Q3486444)
action is_in
entity Q1271632
action intersection
action find_reverse
entity Q15052227
relation P40
action find_reverse
entity Q3486444
relation P40
[ANSWER]
['Q1271632', 'P40', 'Q15052227'] ['Q1271632', 'P40', 'Q3486444']
ASK WHERE { resource:Q1271632 property:P40 resource:Q3486444 . resource:Q1271632 property:P40 resource:Q15052227 }
Yes
action is_in
entity Don Gummer
action intersection
action find_reverse
entity Henry Wolfe Gummer
relation child
action find_reverse
entity Grace Gummer
relation child
['Don Gummer', 'child', 'Henry Wolfe Gummer'] ['Don Gummer', 'child', 'Grace Gummer']
ASK WHERE { resource:Don_Gummer property:child resource:Grace_Gummer . resource:Don_Gummer property:child resource:Henry_Wolfe_Gummer }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13909
P69
Q159334
USER
Which secondary school is the alma mater of Angelina Jolie ?
(Q13909,P69,c(Q159334))
action filter_type
action find
entity Q13909
relation P69
type Q159334
['Q13909', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?g WHERE { resource:Q13909 property:P69 ?g . ?g rdf:type ontology:Q159334 }
Angelina Jolie
action filter_type
action find
entity Angelina Jolie
relation educated at
type secondary school
['Angelina Jolie', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?g WHERE { resource:Angelina_Jolie property:educated_at ?g . ?g rdf:type ontology:secondary_school }
[]
secondary school
Q1185037
SYSTEM
Beverly Hills High School
Q1185037
(Q13909,P69,c(Q159334))
action filter_type
action find
entity Q13909
relation P69
type Q159334
[ANSWER] is the alma mater of Angelina Jolie
['Q13909', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?g WHERE { resource:Q13909 property:P69 ?g . ?g rdf:type ontology:Q159334 }
Beverly Hills High School
Beverly Hills High School is the alma mater of Angelina Jolie
Beverly Hills High School
action filter_type
action find
entity Angelina Jolie
relation educated at
type secondary school
['Angelina Jolie', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?g WHERE { resource:Angelina_Jolie property:educated_at ?g . ?g rdf:type ontology:secondary_school }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6395885
Q159334
USER
And also tell me about Kevin Braswell?
(Q6395885,P69,c(Q159334))
action filter_type
action find
entity Q6395885
relation P69
type Q159334
['Q6395885', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?u WHERE { resource:Q6395885 property:P69 ?u . ?u rdf:type ontology:Q159334 }
Kevin Braswell
action filter_type
action find
entity Kevin Braswell
relation educated at
type secondary school
['Kevin Braswell', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?u WHERE { resource:Kevin_Braswell property:educated_at ?u . ?u rdf:type ontology:secondary_school }
[]
secondary school
Q6475416
SYSTEM
Lake Clifton Eastern High School
Q6475416
(Q6395885,P69,c(Q159334))
action filter_type
action find
entity Q6395885
relation P69
type Q159334
[ANSWER]
['Q6395885', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?u WHERE { resource:Q6395885 property:P69 ?u . ?u rdf:type ontology:Q159334 }
Lake Clifton Eastern High School
Lake Clifton Eastern High School
action filter_type
action find
entity Kevin Braswell
relation educated at
type secondary school
['Kevin Braswell', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?u WHERE { resource:Kevin_Braswell property:educated_at ?u . ?u rdf:type ontology:secondary_school }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q116861 Q873
P1411
Q4220917
USER
Which film awards were Meryl Streep or Fran Walsh a recipient of ?
OR((Q873,P1411,c(Q4220917)), (Q116861,P1411,c(Q4220917)))
action filter_type
action union
action find
entity Q873
relation P1411
action find
entity Q116861
relation P1411
type Q4220917
{'OR': [['Q873', 'P1411', {'concept': 'Q4220917'}], ['Q116861', 'P1411', {'concept': 'Q4220917'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q4220917 . { VALUES ( ?l ) { ( resource:Q873 ) ( resource:Q116861 ) } . ?l property:P1411 ?x } }
Fran Walsh Meryl Streep
action filter_type
action union
action find
entity Meryl Streep
relation nominated for
action find
entity Fran Walsh
relation nominated for
type film award
{'OR': [['Meryl Streep', 'nominated for', {'concept': 'film award'}], ['Fran Walsh', 'nominated for', {'concept': 'film award'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:film_award . { VALUES ( ?l ) { ( resource:Meryl_Streep ) ( resource:Fran_Walsh ) } . ?l property:nominated_for ?x } }
[]
film award
Q41417 Q103618 Q1634847 Q1075366 Q107258 Q139184 Q739694 Q102427 Q1011564 Q1472235
SYSTEM
Some of them are Academy Award for Best Writing, Original Screenplay, Academy Award for Best Actress, Satellite Award for Best Adapted Screenplay, Chlotrudis Award for Best Adapted Screenplay, Academy Award for Best Writing, Adapted Screenplay, BAFTA Award for Best Film, BAFTA Award for Best Adapted Screenplay, Academy Award for Best Picture, Golden Globe Award for Best Actress – Motion Picture Musical or Comedy, Golden Globe Award for Best Original Song
Q139184 Q106301 Q103618 Q107258 Q102427 Q1075366 Q1011564 Q1634847 Q1472235 Q739694 Q41417
OR((Q873,P1411,c(Q4220917)), (Q116861,P1411,c(Q4220917)))
action filter_type
action union
action find
entity Q873
relation P1411
action find
entity Q116861
relation P1411
type Q4220917
[ANSWERS] were Meryl Streep or Fran Walsh a recipient of
{'OR': [['Q873', 'P1411', {'concept': 'Q4220917'}], ['Q116861', 'P1411', {'concept': 'Q4220917'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q4220917 . { VALUES ( ?l ) { ( resource:Q873 ) ( resource:Q116861 ) } . ?l property:P1411 ?x } }
BAFTA Award for Best Film Academy Award for Best Supporting Actress Academy Award for Best Actress Academy Award for Best Writing, Adapted Screenplay Academy Award for Best Picture Chlotrudis Award for Best Adapted Screenplay Golden Globe Award for Best Actress – Motion Picture Musical or Comedy Satellite Award for Best Adapted Screenplay Golden Globe Award for Best Original Song BAFTA Award for Best Adapted Screenplay Academy Award for Best Writing, Original Screenplay
Academy Award for Best Writing, Original Screenplay, Academy Award for Best Actress, Satellite Award for Best Adapted Screenplay, Chlotrudis Award for Best Adapted Screenplay, Academy Award for Best Writing, Adapted Screenplay, BAFTA Award for Best Film, BAFTA Award for Best Adapted Screenplay, Academy Award for Best Picture, Golden Globe Award for Best Actress – Motion Picture Musical or Comedy and Golden Globe Award for Best Original Song were Meryl Streep or Fran Walsh a recipient of
Academy Award for Best Writing, Original Screenplay Academy Award for Best Actress Satellite Award for Best Adapted Screenplay Chlotrudis Award for Best Adapted Screenplay Academy Award for Best Writing, Adapted Screenplay BAFTA Award for Best Film BAFTA Award for Best Adapted Screenplay Academy Award for Best Picture Golden Globe Award for Best Actress – Motion Picture Musical or Comedy Golden Globe Award for Best Original Song
action filter_type
action union
action find
entity Meryl Streep
relation nominated for
action find
entity Fran Walsh
relation nominated for
type film award
{'OR': [['Meryl Streep', 'nominated for', {'concept': 'film award'}], ['Fran Walsh', 'nominated for', {'concept': 'film award'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:film_award . { VALUES ( ?l ) { ( resource:Meryl_Streep ) ( resource:Fran_Walsh ) } . ?l property:nominated_for ?x } }
[]