Simple Question (Direct)
Simple Question
Q3284774
P2554
Q502895
USER
Who is the production designer of Mr. Music ?
(Q3284774,P2554,c(Q502895))
action filter_type
action find
entity Q3284774
relation P2554
type Q502895
['Q3284774', 'P2554', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q3284774 property:P2554 ?s . ?s rdf:type ontology:Q502895 }
Mr. Music
action filter_type
action find
entity Mr. Music
relation production designer
type common name
['Mr. Music', 'production designer', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Mr._Music property:production_designer ?s . ?s rdf:type ontology:common_name }
[]
common name
Q70495
SYSTEM
Hans Dreier
Q70495
(Q3284774,P2554,c(Q502895))
action filter_type
action find
entity Q3284774
relation P2554
type Q502895
The production designer of Mr. Music is by [ANSWER]
['Q3284774', 'P2554', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q3284774 property:P2554 ?s . ?s rdf:type ontology:Q502895 }
Hans Dreier
The production designer of Mr. Music is by Hans Dreier
Hans Dreier
action filter_type
action find
entity Mr. Music
relation production designer
type common name
['Mr. Music', 'production designer', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Mr._Music property:production_designer ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3284774
P57
Q502895
USER
Who was that work of art directed by ?
(Q70495,P57,c(Q502895))
action filter_type
action find
entity Q3284774
relation P57
type Q502895
['Q70495', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q3284774 property:P57 ?q }
Mr. Music
action filter_type
action find
entity Mr. Music
relation director
type common name
['Hans Dreier', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Mr._Music property:director ?q }
[]
common name
Q1355379
SYSTEM
Richard Haydn
Q1355379
(Q70495,P57,c(Q502895))
action filter_type
action find
entity Q3284774
relation P57
type Q502895
By that work of art directed was by [ANSWER]
['Q70495', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q3284774 property:P57 ?q }
Richard Haydn
By that work of art directed was by Richard Haydn
Richard Haydn
action filter_type
action find
entity Mr. Music
relation director
type common name
['Hans Dreier', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Mr._Music property:director ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1355379
P161
Q838948
USER
What are the name of works of art staring that person ?
(c(Q838948),P161,Q1355379)
action filter_type
action find_reverse
entity Q1355379
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q1355379']
SELECT DISTINCT ?q WHERE { ?q property:P161 resource:Q1355379 . ?q rdf:type ontology:Q838948 }
Richard Haydn
action filter_type
action find_reverse
entity Richard Haydn
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Richard Haydn']
SELECT DISTINCT ?q WHERE { ?q property:cast_member resource:Richard_Haydn . ?q rdf:type ontology:work_of_art }
[]
work of art
Q60072 Q456822 Q59084
SYSTEM
The Sound of Music, Forever Amber, Mutiny on the Bounty
Q2140783 Q4053119 Q2062944 Q3208985 Q2481791 Q1347666 Q456822 Q391452 Q6159095 Q1527783 Q3203845 Q1634649 Q1349909 Q2249423 Q60072 Q1656298 Q3484945 Q1095349 Q1750424 Q2517672 Q2698658 Q2870327 Q953525 Q675031 Q3790598 Q3825111 Q1428094 Q651923 Q59084 Q1093283 Q1199685
(c(Q838948),P161,Q1355379)
action filter_type
action find_reverse
entity Q1355379
relation P161
type Q838948
The name of works of art staring that person are [ANSWERS]
[{'concept': 'Q838948'}, 'P161', 'Q1355379']
SELECT DISTINCT ?q WHERE { ?q property:P161 resource:Q1355379 . ?q rdf:type ontology:Q838948 }
The Late George Apley Who Killed Who? Five Weeks in a Balloon The Foxes of Harrow Jupiter's Darling Never Let Me Go Forever Amber Ball of Fire Twilight for the Gods The Lost World The Adventures of Bullwhip Griffin No Time for Love Adventure The Merry Widow The Sound of Music The Emperor Waltz Singapore Clarence, the Cross-Eyed Lion Thunder Birds And Then There Were None Please Don't Eat the Daisies The Beginning or the End Her Twelve Men Cluny Brown Miss Tatlock's Millions Charley's Aunt Sitting Pretty Young Frankenstein Mutiny on the Bounty The Green Years Money from Home
The name of works of art staring that person are The Sound of Music, Forever Amber and Mutiny on the Bounty
The Sound of Music Forever Amber Mutiny on the Bounty
action filter_type
action find_reverse
entity Richard Haydn
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Richard Haydn']
SELECT DISTINCT ?q WHERE { ?q property:cast_member resource:Richard_Haydn . ?q rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5529813 Q456822
P161
Q502895
USER
Which people starred in Forever Amber or Geeks ?
OR((Q456822,P161,c(Q502895)), (Q5529813,P161,c(Q502895)))
action filter_type
action union
action find
entity Q456822
relation P161
action find
entity Q5529813
relation P161
type Q502895
{'OR': [['Q456822', 'P161', {'concept': 'Q502895'}], ['Q5529813', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q456822 property:P161 ?t } UNION { resource:Q5529813 property:P161 ?t } } . ?t rdf:type ontology:Q502895 }
Geeks Forever Amber
action filter_type
action union
action find
entity Forever Amber
relation cast member
action find
entity Geeks
relation cast member
type common name
{'OR': [['Forever Amber', 'cast member', {'concept': 'common name'}], ['Geeks', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Forever_Amber property:cast_member ?t } UNION { resource:Geeks property:cast_member ?t } } . ?t rdf:type ontology:common_name }
[]
common name
Q625877 Q650792 Q2839063 Q1030465 Q727740 Q919192 Q720553 Q5339316 Q5158665 Q3435272
SYSTEM
Some of them are Margot Grahame, Leonard Carey, Alma Kruger, John Russell, Cornel Wilde, Leo G. Carroll, Glenn Shadix, Edmund Breon, Cyril Delevanti, Robert Greig
Q128379 Q3517461 Q239770 Q919192 Q13415421 Q3992510 Q234900 Q6170516 Q7534529 Q3087184 Q524325 Q452232 Q1355379 Q1030465 Q4690 Q2839063 Q435475 Q650792 Q296491 Q182104 Q363684 Q625877 Q373306 Q1486368 Q1309447 Q727740 Q374093 Q5339316 Q3435272 Q720553 Q15999694 Q2347315 Q1805442 Q119348 Q5158665 Q202449
OR((Q456822,P161,c(Q502895)), (Q5529813,P161,c(Q502895)))
action filter_type
action union
action find
entity Q456822
relation P161
action find
entity Q5529813
relation P161
type Q502895
[ANSWERS] starred in Forever Amber or Geeks
{'OR': [['Q456822', 'P161', {'concept': 'Q502895'}], ['Q5529813', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q456822 property:P161 ?t } UNION { resource:Q5529813 property:P161 ?t } } . ?t rdf:type ontology:Q502895 }
David Prowse Tempe Pigott Anne Revere Leo G. Carroll Glenn Langan Tom Moore Linda Darnell Jean De Briac Skelton Knaggs Frederick Worlock Norma Varden Tim Russ Richard Haydn John Russell Margaret Wycherly Alma Kruger Ethan Phillips Leonard Carey George Sanders Jessica Tandy Chris Sarandon Margot Grahame Alan Napier Robert Coote Richard Greene Cornel Wilde John Ratzenberger Edmund Breon Robert Greig Glenn Shadix Douglas Walton Colleen O'Shaughnessey Ken Page Irvin Kershner Cyril Delevanti David Ogden Stiers
Margot Grahame, Leonard Carey, Alma Kruger, John Russell, Cornel Wilde, Leo G. Carroll, Glenn Shadix, Edmund Breon, Cyril Delevanti and Robert Greig starred in Forever Amber or Geeks
Margot Grahame Leonard Carey Alma Kruger John Russell Cornel Wilde Leo G. Carroll Glenn Shadix Edmund Breon Cyril Delevanti Robert Greig
action filter_type
action union
action find
entity Forever Amber
relation cast member
action find
entity Geeks
relation cast member
type common name
{'OR': [['Forever Amber', 'cast member', {'concept': 'common name'}], ['Geeks', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Forever_Amber property:cast_member ?t } UNION { resource:Geeks property:cast_member ?t } } . ?t rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q727740
P106
Q12737077 Q28640
USER
How many occupations or professions do Cornel Wilde do for a living ?
(Q727740,P106,c(Q12737077)) (Q727740,P106,c(Q28640))
action count
action union
action filter_type
action find
entity Q727740
relation P106
type Q12737077
action filter_type
action find
entity Q727740
relation P106
type Q28640
['Q727740', 'P106', {'concept': 'Q12737077'}] ['Q727740', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { resource:Q727740 property:P106 ?l . ?l rdf:type ontology:Q12737077 } UNION { resource:Q727740 property:P106 ?l . ?l rdf:type ontology:Q28640 } }
Cornel Wilde
action count
action union
action filter_type
action find
entity Cornel Wilde
relation occupation
type occupation
action filter_type
action find
entity Cornel Wilde
relation occupation
type profession
['Cornel Wilde', 'occupation', {'concept': 'occupation'}] ['Cornel Wilde', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { resource:Cornel_Wilde property:occupation ?l . ?l rdf:type ontology:occupation } UNION { resource:Cornel_Wilde property:occupation ?l . ?l rdf:type ontology:profession } }
[]
occupation profession
SYSTEM
4
Q2526255 Q33999 Q28389 Q10800557
(Q727740,P106,c(Q12737077)) (Q727740,P106,c(Q28640))
action count
action union
action filter_type
action find
entity Q727740
relation P106
type Q12737077
action filter_type
action find
entity Q727740
relation P106
type Q28640
[ANSWER]
['Q727740', 'P106', {'concept': 'Q12737077'}] ['Q727740', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { resource:Q727740 property:P106 ?l . ?l rdf:type ontology:Q12737077 } UNION { resource:Q727740 property:P106 ?l . ?l rdf:type ontology:Q28640 } }
film director actor screenwriter film actor
4
action count
action union
action filter_type
action find
entity Cornel Wilde
relation occupation
type occupation
action filter_type
action find
entity Cornel Wilde
relation occupation
type profession
['Cornel Wilde', 'occupation', {'concept': 'occupation'}] ['Cornel Wilde', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { resource:Cornel_Wilde property:occupation ?l . ?l rdf:type ontology:occupation } UNION { resource:Cornel_Wilde property:occupation ?l . ?l rdf:type ontology:profession } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P941
Q838948 Q838948 Q7725634
USER
Which works of art were atmost 1 works of art and literary works inspired by ?
(c(Q838948)|c(Q7725634),P941,c(Q838948))
action atmost
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
action find_reverse_tuple_counts
relation P941
type Q838948
type Q7725634
value 1
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?o ) WHERE { VALUES ( ?h ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } . ?f rdf:type ?h } GROUP BY ?c } . FILTER ( ?o <= 1 ) }
action atmost
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type work of art
action find_reverse_tuple_counts
relation inspired by
type work of art
type literary work
value 1
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?o ) WHERE { VALUES ( ?h ) { ( ontology:work_of_art ) ( ontology:literary_work ) } . ?f rdf:type ?h } GROUP BY ?c } . FILTER ( ?o <= 1 ) }
[]
work of art work of art literary work
Q1144983 Q17738 Q107724
SYSTEM
Animal Kingdom, Star Wars Episode IV: A New Hope, Thunderball
Q125191 Q1136305 Q1198611 Q107724 Q1217787 Q1856846 Q7758112 Q46239 Q1852671 Q19560629 Q17738 Q1345920 Q181598 Q2568137 Q753298 Q201293 Q1754737 Q1432001 Q41567 Q1144983 Q18668045 Q7445655 Q186014 Q4936847 Q3223805 Q5968141 Q379873 Q734834 Q1170100 Q375786 Q83186 Q465478 Q493755 Q214619 Q169082
(c(Q838948)|c(Q7725634),P941,c(Q838948))
action atmost
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
action find_reverse_tuple_counts
relation P941
type Q838948
type Q7725634
value 1
[ANSWERS] were atmost 1 works of art and literary works inspired by
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?o ) WHERE { VALUES ( ?h ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } . ?f rdf:type ?h } GROUP BY ?c } . FILTER ( ?o <= 1 ) }
photograph Doryphoros The Absent-Minded Professor Thunderball The Time Machine The Ballad of Cable Hogue The Pretty Sister of Jose Statue of Zeus at Olympia Carnival of Souls 9/11 entschlüsselt Star Wars Episode IV: A New Hope Song of the South King Lear How to Explain Pictures to a Dead Hare Uncle Vanya Roman Holiday Lady Snowblood Torquato Tasso Hamlet Animal Kingdom The Old Fisherman Seedbed Zeitgeist: The Movie Body Pressure The Judgement of Paris La sirena varada Who Framed Roger Rabbit Ghent Altarpiece The Philadelphia Experiment Hippolytus Romeo and Juliet Star Trek II: The Wrath of Khan Coming to America The Little Mermaid 10 Things I Hate About You
Animal Kingdom, Star Wars Episode IV: A New Hope and Thunderball were atmost 1 works of art and literary works inspired by
Animal Kingdom Star Wars Episode IV: A New Hope Thunderball
action atmost
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type work of art
action find_reverse_tuple_counts
relation inspired by
type work of art
type literary work
value 1
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?o ) WHERE { VALUES ( ?h ) { ( ontology:work_of_art ) ( ontology:literary_work ) } . ?f rdf:type ?h } GROUP BY ?c } . FILTER ( ?o <= 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q741686 Q456822
P161
Q502895
USER
Which people starred in Forever Amber or Moonfleet ?
OR((Q456822,P161,c(Q502895)), (Q741686,P161,c(Q502895)))
action filter_type
action union
action find
entity Q456822
relation P161
action find
entity Q741686
relation P161
type Q502895
{'OR': [['Q456822', 'P161', {'concept': 'Q502895'}], ['Q741686', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?q ) { ( resource:Q456822 ) ( resource:Q741686 ) } . ?q property:P161 ?g } . ?g rdf:type ontology:Q502895 }
Moonfleet Forever Amber
action filter_type
action union
action find
entity Forever Amber
relation cast member
action find
entity Moonfleet
relation cast member
type common name
{'OR': [['Forever Amber', 'cast member', {'concept': 'common name'}], ['Moonfleet', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?q ) { ( resource:Forever_Amber ) ( resource:Moonfleet ) } . ?q property:cast_member ?g } . ?g rdf:type ontology:common_name }
[]
common name
Q446064 Q373306 Q2839063 Q1444608 Q15999694 Q500155 Q296491 Q3517461 Q3476753 Q6170516
SYSTEM
Some of them are Joan Greenwood, Alan Napier, Alma Kruger, Melville Cooper, Douglas Walton, Jack Elam, George Sanders, Tempe Pigott, Sean McClory, Jean De Briac
Q3517461 Q15512268 Q239770 Q919192 Q13415421 Q3992510 Q1700513 Q6170516 Q7534529 Q1702859 Q3430837 Q3240839 Q524325 Q1355379 Q234900 Q267217 Q1030465 Q310150 Q4690 Q2839063 Q500155 Q650792 Q296491 Q182104 Q625877 Q373306 Q1486368 Q3087184 Q1309447 Q1444608 Q446064 Q5339316 Q3435272 Q249968 Q3476753 Q15999694 Q5158665 Q727740
OR((Q456822,P161,c(Q502895)), (Q741686,P161,c(Q502895)))
action filter_type
action union
action find
entity Q456822
relation P161
action find
entity Q741686
relation P161
type Q502895
[ANSWERS] starred in Forever Amber or Moonfleet
{'OR': [['Q456822', 'P161', {'concept': 'Q502895'}], ['Q741686', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?q ) { ( resource:Q456822 ) ( resource:Q741686 ) } . ?q property:P161 ?g } . ?g rdf:type ontology:Q502895 }
Tempe Pigott Jean Del Val Anne Revere Leo G. Carroll Glenn Langan Tom Moore John Hoyt Jean De Briac Skelton Knaggs Jon Whiteley Richard Hale Liliane Montevecchi Norma Varden Richard Haydn Linda Darnell Viveca Lindfors John Russell Stewart Granger Margaret Wycherly Alma Kruger Jack Elam Leonard Carey George Sanders Jessica Tandy Margot Grahame Alan Napier Robert Coote Frederick Worlock Richard Greene Melville Cooper Joan Greenwood Edmund Breon Robert Greig Lester Matthews Sean McClory Douglas Walton Cyril Delevanti Cornel Wilde
Joan Greenwood, Alan Napier, Alma Kruger, Melville Cooper, Douglas Walton, Jack Elam, George Sanders, Tempe Pigott, Sean McClory and Jean De Briac starred in Forever Amber or Moonfleet
Joan Greenwood Alan Napier Alma Kruger Melville Cooper Douglas Walton Jack Elam George Sanders Tempe Pigott Sean McClory Jean De Briac
action filter_type
action union
action find
entity Forever Amber
relation cast member
action find
entity Moonfleet
relation cast member
type common name
{'OR': [['Forever Amber', 'cast member', {'concept': 'common name'}], ['Moonfleet', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?q ) { ( resource:Forever_Amber ) ( resource:Moonfleet ) } . ?q property:cast_member ?g } . ?g rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2839063
P20
Q56061
USER
Where did Alma Kruger expire ?
(Q2839063,P20,c(Q56061))
action filter_type
action find
entity Q2839063
relation P20
type Q56061
['Q2839063', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q2839063 property:P20 ?z . ?z rdf:type ontology:Q56061 }
Alma Kruger
action filter_type
action find
entity Alma Kruger
relation place of death
type administrative territorial entity
['Alma Kruger', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Alma_Kruger property:place_of_death ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q5083
SYSTEM
Seattle
Q5083
(Q2839063,P20,c(Q56061))
action filter_type
action find
entity Q2839063
relation P20
type Q56061
Alma Kruger expired in [ANSWER]
['Q2839063', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q2839063 property:P20 ?z . ?z rdf:type ontology:Q56061 }
Seattle
Alma Kruger expired in Seattle
Seattle
action filter_type
action find
entity Alma Kruger
relation place of death
type administrative territorial entity
['Alma Kruger', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Alma_Kruger property:place_of_death ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]