Simple Question (Direct)
Simple Question
Q451631
P26
Q502895
USER
Who is married to Françoise Rosay ?
(Q451631,P26,c(Q502895))
action filter_type
action find
entity Q451631
relation P26
type Q502895
['Q451631', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q451631 property:P26 ?c . ?c rdf:type ontology:Q502895 }
Françoise Rosay
action filter_type
action find
entity Françoise Rosay
relation spouse
type common name
['Françoise Rosay', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Françoise_Rosay property:spouse ?c . ?c rdf:type ontology:common_name }
[]
common name
Q122187
SYSTEM
Jacques Feyder
Q122187
(Q451631,P26,c(Q502895))
action filter_type
action find
entity Q451631
relation P26
type Q502895
[ANSWER] is married to Françoise Rosay
['Q451631', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q451631 property:P26 ?c . ?c rdf:type ontology:Q502895 }
Jacques Feyder
Jacques Feyder is married to Françoise Rosay
Jacques Feyder
action filter_type
action find
entity Françoise Rosay
relation spouse
type common name
['Françoise Rosay', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Françoise_Rosay property:spouse ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q122187
P162
Q838948
USER
Which works of art have been produced by that person ?
(c(Q838948),P162,Q122187)
action filter_type
action find_reverse
entity Q122187
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q122187']
SELECT DISTINCT ?z WHERE { ?z property:P162 resource:Q122187 . ?z rdf:type ontology:Q838948 }
Jacques Feyder
action filter_type
action find_reverse
entity Jacques Feyder
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Jacques Feyder']
SELECT DISTINCT ?z WHERE { ?z property:producer resource:Jacques_Feyder . ?z rdf:type ontology:work_of_art }
[]
work of art
Q3823544 Q3002085 Q820636
SYSTEM
Daybreak, Crainquebille, Thérèse Raquin
Q3823544 Q3002085 Q820636
(c(Q838948),P162,Q122187)
action filter_type
action find_reverse
entity Q122187
relation P162
type Q838948
[ANSWERS] have been produced by that person
[{'concept': 'Q838948'}, 'P162', 'Q122187']
SELECT DISTINCT ?z WHERE { ?z property:P162 resource:Q122187 . ?z rdf:type ontology:Q838948 }
Daybreak Crainquebille Thérèse Raquin
Daybreak, Crainquebille and Thérèse Raquin have been produced by that person
Daybreak Crainquebille Thérèse Raquin
action filter_type
action find_reverse
entity Jacques Feyder
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Jacques Feyder']
SELECT DISTINCT ?z WHERE { ?z property:producer resource:Jacques_Feyder . ?z rdf:type ontology:work_of_art }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3823544
P161
Q502895
USER
Who starred in that work of art ?
(Q3823544,P161,c(Q502895))
action filter_type
action find
entity Q3823544
relation P161
type Q502895
['Q3823544', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q3823544 property:P161 ?t . ?t rdf:type ontology:Q502895 }
Daybreak
action filter_type
action find
entity Daybreak
relation cast member
type common name
['Daybreak', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Daybreak property:cast_member ?t . ?t rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q3002085
SYSTEM
Did you mean Crainquebille ?
Q3823544 Q3002085 Q820636
(Q3823544,P161,c(Q502895)) (Q3002085,P161,c(Q502895)) (Q820636,P161,c(Q502895))
[ANSWER]
['Q3823544', 'P161', {'concept': 'Q502895'}] ['Q3002085', 'P161', {'concept': 'Q502895'}] ['Q820636', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q3823544 property:P161 ?t . ?t rdf:type ontology:Q502895 }
Daybreak Crainquebille Thérèse Raquin
Did you mean Crainquebille ?
Crainquebille
['Daybreak', 'cast member', {'concept': 'common name'}] ['Crainquebille', 'cast member', {'concept': 'common name'}] ['Thérèse Raquin', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Daybreak property:cast_member ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Daybreak. Could you tell me the answer for that?
(Q3823544,P161,c(Q502895))
Q3823544
['Q3823544', 'P161', {'concept': 'Q502895'}]
['Daybreak', 'cast member', {'concept': 'common name'}]
[]
Q359251 Q711642 Q552813
SYSTEM
Jean Hersholt, Ramon Novarro, C. Aubrey Smith
Q359251 Q1414971 Q552813 Q1252598 Q711642 Q325695 Q273104
(Q3823544,P161,c(Q502895))
action filter_type
action find
entity Q3823544
relation P161
type Q502895
[ANSWERS] starred in that work of art
['Q3823544', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q3823544 property:P161 ?t . ?t rdf:type ontology:Q502895 }
Jean Hersholt William Lincoln Bakewell C. Aubrey Smith Douglass Montgomery Ramon Novarro Clara Blandick Helen Chandler
Jean Hersholt, Ramon Novarro and C. Aubrey Smith starred in that work of art
Jean Hersholt Ramon Novarro C. Aubrey Smith
action filter_type
action find
entity Daybreak
relation cast member
type common name
['Daybreak', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Daybreak property:cast_member ?t . ?t rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q552813
P27
Q15617994
USER
How many administrative territories are C. Aubrey Smith an inhabitant of ?
(Q552813,P27,c(Q15617994))
action count
action filter_type
action find
entity Q552813
relation P27
type Q15617994
['Q552813', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:Q552813 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
C. Aubrey Smith
action count
action filter_type
action find
entity C. Aubrey Smith
relation country of citizenship
type designation for an administrative territorial entity
['C. Aubrey Smith', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:C._Aubrey_Smith property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q145
(Q552813,P27,c(Q15617994))
action count
action filter_type
action find
entity Q552813
relation P27
type Q15617994
[ANSWER]
['Q552813', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:Q552813 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
United Kingdom
1
action count
action filter_type
action find
entity C. Aubrey Smith
relation country of citizenship
type designation for an administrative territorial entity
['C. Aubrey Smith', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:C._Aubrey_Smith property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7324236
P106
Q12737077
USER
Which occupations have Richard Bodle as his/her 's career ?
(Q7324236,P106,c(Q12737077))
action filter_type
action find
entity Q7324236
relation P106
type Q12737077
['Q7324236', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q7324236 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Richard Bodle
action filter_type
action find
entity Richard Bodle
relation occupation
type occupation
['Richard Bodle', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Richard_Bodle property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q2143894 Q12299841
SYSTEM
cricket umpire, cricketer
Q2143894 Q12299841
(Q7324236,P106,c(Q12737077))
action filter_type
action find
entity Q7324236
relation P106
type Q12737077
[ANSWERS] have Richard Bodle as his/her 's career
['Q7324236', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q7324236 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
cricket umpire cricketer
Cricket umpire and cricketer have Richard Bodle as his/her 's career
cricket umpire cricketer
action filter_type
action find
entity Richard Bodle
relation occupation
type occupation
['Richard Bodle', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Richard_Bodle property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q552813
P161
Q838948
USER
Which works of art do C. Aubrey Smith star in ?
(c(Q838948),P161,Q552813)
action filter_type
action find_reverse
entity Q552813
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q552813']
SELECT DISTINCT ?d WHERE { ?d property:P161 resource:Q552813 . ?d rdf:type ontology:Q838948 }
C. Aubrey Smith
action filter_type
action find_reverse
entity C. Aubrey Smith
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'C. Aubrey Smith']
SELECT DISTINCT ?d WHERE { ?d property:cast_member resource:C._Aubrey_Smith . ?d rdf:type ontology:work_of_art }
[]
work of art
Q204212 Q1199248 Q621716
SYSTEM
Rebecca, Little Lord Fauntleroy, Madame Curie
Q3907622 Q1554101 Q3348516 Q3607574 Q3221724 Q1466426 Q1271867 Q1758675 Q3080518 Q7092972 Q7435666 Q2687809 Q1586693 Q1193704 Q1114432 Q3408633 Q637153 Q19599999 Q2837940 Q3823544 Q3018129 Q20649604 Q2937895 Q6737010 Q1631795 Q572789 Q3806374 Q3073109 Q256416 Q804611 Q204212 Q4003911 Q1634665 Q6316523 Q340187 Q279465 Q1217011 Q1100552 Q262793 Q3226392 Q7833578 Q3825058 Q2517672 Q2280894 Q718917 Q391157 Q675031 Q2704217 Q7304750 Q139258 Q3226031 Q1142707 Q3032438 Q1537166 Q426272 Q1193773 Q7632782 Q621716 Q1081181 Q1367668 Q1199248 Q1331849 Q2489647 Q319147 Q12126600 Q7444499 Q1215836
(c(Q838948),P161,Q552813)
action filter_type
action find_reverse
entity Q552813
relation P161
type Q838948
[ANSWERS] do C. Aubrey Smith star in
[{'concept': 'Q838948'}, 'P161', 'Q552813']
SELECT DISTINCT ?d WHERE { ?d property:P161 resource:Q552813 . ?d rdf:type ontology:Q838948 }
Polly of the Circus Guilty Hands Flesh and Fantasy Beyond Tomorrow Clive of India Little Women Another Thin Man Bombshell Gambling Lady One More River Scotland Yard Investigator Adorable Lloyd's of London The Garden of Allah The Four Feathers The Adventures of Mark Twain The White Cliffs of Dover The Temptation of Carlton Earle The Gilded Lily Daybreak Son of India Contraband Love Caravan Maisie Was a Lady Wee Willie Winkie Morning Glory Jalna Five Came Back Trouble in Paradise Balalaika Rebecca An Ideal Husband Queen Christina Just a Gigolo The Crusades The Scarlet Empress Unconquered Cleopatra Tarzan the Ape Man Bulldog Drummond Strikes Back The Tunnel Never the Twain Shall Meet And Then There Were None Four Men and a Prayer Dr. Jekyll and Mr. Hyde Two Tickets to London Cluny Brown Secrets Red Pottage The Lives of a Bengal Lancer Kidnapped Trader Horn Eternally Yours We Live Again The Hurricane The Prisoner of Zenda Such Is the Law Madame Curie Romeo and Juliet Waterloo Bridge Little Lord Fauntleroy Love Me Tonight Thoroughbreds Don't Cry China Seas No More Orchids Secrets of Scotland Yard The House of Rothschild
Rebecca, Little Lord Fauntleroy and Madame Curie do C. Aubrey Smith star in
Rebecca Little Lord Fauntleroy Madame Curie
action filter_type
action find_reverse
entity C. Aubrey Smith
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'C. Aubrey Smith']
SELECT DISTINCT ?d WHERE { ?d property:cast_member resource:C._Aubrey_Smith . ?d rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q204212 Q1199248 Q621716
P86
Q502895
USER
Who composed those works of art ?
(Q204212,P86,c(Q502895)) (Q1199248,P86,c(Q502895)) (Q621716,P86,c(Q502895))
action filter_type
action find
entity prev_answer
relation P86
type Q502895
['Q204212', 'P86', {'concept': 'Q502895'}] ['Q1199248', 'P86', {'concept': 'Q502895'}] ['Q621716', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?x property:P86 ?u . ?u rdf:type ontology:Q502895 . VALUES ( ?x ) { ( resource:Q3907622 ) ( resource:Q1554101 ) ( resource:Q3348516 ) } }
Rebecca Little Lord Fauntleroy Madame Curie
action filter_type
action find
entity prev_answer
relation composer
type common name
['Rebecca', 'composer', {'concept': 'common name'}] ['Little Lord Fauntleroy', 'composer', {'concept': 'common name'}] ['Madame Curie', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?x property:composer ?u . ?u rdf:type ontology:common_name . VALUES ( ?x ) { ( resource:Polly_of_the_Circus ) ( resource:Guilty_Hands ) ( resource:Flesh_and_Fantasy ) } }
[]
common name
Q213611 Q350704 Q1609199
SYSTEM
Franz Waxman, Max Steiner, Herbert Stothart
Q213611 Q350704 Q1609199
(Q204212,P86,c(Q502895)) (Q1199248,P86,c(Q502895)) (Q621716,P86,c(Q502895))
action filter_type
action find
entity prev_answer
relation P86
type Q502895
[ANSWERS] composed those works of art
['Q204212', 'P86', {'concept': 'Q502895'}] ['Q1199248', 'P86', {'concept': 'Q502895'}] ['Q621716', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?x property:P86 ?u . ?u rdf:type ontology:Q502895 . VALUES ( ?x ) { ( resource:Q3907622 ) ( resource:Q1554101 ) ( resource:Q3348516 ) } }
Franz Waxman Max Steiner Herbert Stothart
Franz Waxman, Max Steiner and Herbert Stothart composed those works of art
Franz Waxman Max Steiner Herbert Stothart
action filter_type
action find
entity prev_answer
relation composer
type common name
['Rebecca', 'composer', {'concept': 'common name'}] ['Little Lord Fauntleroy', 'composer', {'concept': 'common name'}] ['Madame Curie', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?x property:composer ?u . ?u rdf:type ontology:common_name . VALUES ( ?x ) { ( resource:Polly_of_the_Circus ) ( resource:Guilty_Hands ) ( resource:Flesh_and_Fantasy ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q350704
P40
Q502895
USER
Who has that one as an offspring ?
(c(Q502895),P40,Q350704)
action filter_type
action find_reverse
entity Q350704
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q350704']
SELECT DISTINCT ?o WHERE { ?o property:P40 resource:Q350704 . ?o rdf:type ontology:Q502895 }
Max Steiner
action filter_type
action find_reverse
entity Max Steiner
relation child
type common name
[{'concept': 'common name'}, 'child', 'Max Steiner']
SELECT DISTINCT ?o WHERE { ?o property:child resource:Max_Steiner . ?o rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q350704
SYSTEM
Did you mean Max Steiner ?
Q213611 Q350704 Q1609199
(c(Q502895),P40,Q213611) (c(Q502895),P40,Q350704) (c(Q502895),P40,Q1609199)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q213611'] [{'concept': 'Q502895'}, 'P40', 'Q350704'] [{'concept': 'Q502895'}, 'P40', 'Q1609199']
SELECT DISTINCT ?o WHERE { ?o property:P40 resource:Q350704 . ?o rdf:type ontology:Q502895 }
Franz Waxman Max Steiner Herbert Stothart
Did you mean Max Steiner ?
Max Steiner
[{'concept': 'common name'}, 'child', 'Franz Waxman'] [{'concept': 'common name'}, 'child', 'Max Steiner'] [{'concept': 'common name'}, 'child', 'Herbert Stothart']
SELECT DISTINCT ?o WHERE { ?o property:child resource:Max_Steiner . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P40,Q350704)
[{'concept': 'Q502895'}, 'P40', 'Q350704']
[{'concept': 'common name'}, 'child', 'Max Steiner']
[]
Q1488763
SYSTEM
Gabor Steiner
Q1488763
(c(Q502895),P40,Q350704)
action filter_type
action find_reverse
entity Q350704
relation P40
type Q502895
[ANSWER] has that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q350704']
SELECT DISTINCT ?o WHERE { ?o property:P40 resource:Q350704 . ?o rdf:type ontology:Q502895 }
Gabor Steiner
Gabor Steiner has that one as an offspring
Gabor Steiner
action filter_type
action find_reverse
entity Max Steiner
relation child
type common name
[{'concept': 'common name'}, 'child', 'Max Steiner']
SELECT DISTINCT ?o WHERE { ?o property:child resource:Max_Steiner . ?o rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4699668 Q7324236
P27
Q15617994
USER
Which administrative territories are Richard Bodle or Ajay Varma an inhabitant of ?
OR((Q7324236,P27,c(Q15617994)), (Q4699668,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7324236
relation P27
action find
entity Q4699668
relation P27
type Q15617994
{'OR': [['Q7324236', 'P27', {'concept': 'Q15617994'}], ['Q4699668', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q4699668 property:P27 ?g } UNION { resource:Q7324236 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
Ajay Varma Richard Bodle
action filter_type
action union
action find
entity Richard Bodle
relation country of citizenship
action find
entity Ajay Varma
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Richard Bodle', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ajay Varma', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Ajay_Varma property:country_of_citizenship ?g } UNION { resource:Richard_Bodle property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145 Q668
SYSTEM
United Kingdom, India
Q145 Q668
OR((Q7324236,P27,c(Q15617994)), (Q4699668,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7324236
relation P27
action find
entity Q4699668
relation P27
type Q15617994
[ANSWERS] are Richard Bodle or Ajay Varma an inhabitant of
{'OR': [['Q7324236', 'P27', {'concept': 'Q15617994'}], ['Q4699668', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q4699668 property:P27 ?g } UNION { resource:Q7324236 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
United Kingdom India
United Kingdom and India are Richard Bodle or Ajay Varma an inhabitant of
United Kingdom India
action filter_type
action union
action find
entity Richard Bodle
relation country of citizenship
action find
entity Ajay Varma
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Richard Bodle', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ajay Varma', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Ajay_Varma property:country_of_citizenship ?g } UNION { resource:Richard_Bodle property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q838948 Q502895 Q7725634
USER
Which works of art are atleast 1 people or literary works a part of ?
(c(Q502895)|c(Q7725634),P361,c(Q838948))
action atleast
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q502895
action find_reverse_tuple_counts
relation P361
type Q838948
type Q7725634
value 1
[[{'concept': 'Q502895'}, {'concept': 'Q7725634'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?x >= 1 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?s WHERE { { ?k property:P361 ?s . ?s rdf:type ontology:Q838948 . ?k rdf:type ontology:Q502895 } UNION { ?k property:P361 ?s . ?s rdf:type ontology:Q838948 . ?k rdf:type ontology:Q7725634 } } GROUP BY ?s } }
action atleast
action union
action find_reverse_tuple_counts
relation part of
type work of art
type common name
action find_reverse_tuple_counts
relation part of
type work of art
type literary work
value 1
[[{'concept': 'common name'}, {'concept': 'literary work'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?x >= 1 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?s WHERE { { ?k property:part_of ?s . ?s rdf:type ontology:work_of_art . ?k rdf:type ontology:common_name } UNION { ?k property:part_of ?s . ?s rdf:type ontology:work_of_art . ?k rdf:type ontology:literary_work } } GROUP BY ?s } }
[]
work of art common name literary work
Q127367 Q213053 Q945138
SYSTEM
The Lord of the Rings: The Fellowship of the Ring, Superman, Bedknobs and Broomsticks
Q1762957 Q127367 Q10371896 Q10550583 Q733065 Q747847 Q1195466 Q945138 Q6519361 Q976149 Q632753 Q309153 Q2905386 Q213053 Q1125687 Q283134 Q1230318 Q10512738
(c(Q502895)|c(Q7725634),P361,c(Q838948))
action atleast
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q502895
action find_reverse_tuple_counts
relation P361
type Q838948
type Q7725634
value 1
[ANSWERS] are atleast 1 people or literary works a part of
[[{'concept': 'Q502895'}, {'concept': 'Q7725634'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?x >= 1 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?s WHERE { { ?k property:P361 ?s . ?s rdf:type ontology:Q838948 . ?k rdf:type ontology:Q502895 } UNION { ?k property:P361 ?s . ?s rdf:type ontology:Q838948 . ?k rdf:type ontology:Q7725634 } } GROUP BY ?s } }
Release the Prisoners to Spring The Lord of the Rings: The Fellowship of the Ring Sing, Baby, Sing Kurt Olsson – filmen om mitt liv som mig själv Dabangg New Orleans The Man on the Roof Bedknobs and Broomsticks Leif Laura Babes in Arms Singin' in the Rain Black Jack Superman Teheran 43 Supergirl Carefree Göta kanal eller Vem drog ur proppen?
The Lord of the Rings: The Fellowship of the Ring, Superman and Bedknobs and Broomsticks are atleast 1 people or literary works a part of
The Lord of the Rings: The Fellowship of the Ring Superman Bedknobs and Broomsticks
action atleast
action union
action find_reverse_tuple_counts
relation part of
type work of art
type common name
action find_reverse_tuple_counts
relation part of
type work of art
type literary work
value 1
[[{'concept': 'common name'}, {'concept': 'literary work'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?x >= 1 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?s WHERE { { ?k property:part_of ?s . ?s rdf:type ontology:work_of_art . ?k rdf:type ontology:common_name } UNION { ?k property:part_of ?s . ?s rdf:type ontology:work_of_art . ?k rdf:type ontology:literary_work } } GROUP BY ?s } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q56094 Q204212
P1411
Q4220917
USER
Which film awards do Rebecca or Francis Ford Coppola have ?
OR((Q204212,P1411,c(Q4220917)), (Q56094,P1411,c(Q4220917)))
action filter_type
action union
action find
entity Q204212
relation P1411
action find
entity Q56094
relation P1411
type Q4220917
{'OR': [['Q204212', 'P1411', {'concept': 'Q4220917'}], ['Q56094', 'P1411', {'concept': 'Q4220917'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q204212 property:P1411 ?h } UNION { resource:Q56094 property:P1411 ?h } } . ?h rdf:type ontology:Q4220917 }
Francis Ford Coppola Rebecca
action filter_type
action union
action find
entity Rebecca
relation nominated for
action find
entity Francis Ford Coppola
relation nominated for
type film award
{'OR': [['Rebecca', 'nominated for', {'concept': 'film award'}], ['Francis Ford Coppola', 'nominated for', {'concept': 'film award'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Rebecca property:nominated_for ?h } UNION { resource:Francis_Ford_Coppola property:nominated_for ?h } } . ?h rdf:type ontology:film_award }
[]
film award
Q22917729 Q41417 Q22253133 Q107258 Q281939 Q488651 Q103618 Q106301 Q103916 Q103360
SYSTEM
Some of them are Academy Award for Best Special Effects, Academy Award for Best Writing, Original Screenplay, Academy Award for Best Art Direction, Black and White, Academy Award for Best Writing, Adapted Screenplay, Academy Award for Best Film Editing, Academy Award for Best Original Score, Academy Award for Best Actress, Academy Award for Best Supporting Actress, Academy Award for Best Actor, Academy Award for Best Director
Q106301 Q103618 Q107258 Q102427 Q103360 Q281939 Q21995139 Q41417 Q22917729 Q103916 Q488651 Q22253133
OR((Q204212,P1411,c(Q4220917)), (Q56094,P1411,c(Q4220917)))
action filter_type
action union
action find
entity Q204212
relation P1411
action find
entity Q56094
relation P1411
type Q4220917
Rebecca or Francis Ford Coppola have won [ANSWERS]
{'OR': [['Q204212', 'P1411', {'concept': 'Q4220917'}], ['Q56094', 'P1411', {'concept': 'Q4220917'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q204212 property:P1411 ?h } UNION { resource:Q56094 property:P1411 ?h } } . ?h rdf:type ontology:Q4220917 }
Academy Award for Best Supporting Actress Academy Award for Best Actress Academy Award for Best Writing, Adapted Screenplay Academy Award for Best Picture Academy Award for Best Director Academy Award for Best Film Editing Academy Award for Best Cinematography, Black-and-White Academy Award for Best Writing, Original Screenplay Academy Award for Best Special Effects Academy Award for Best Actor Academy Award for Best Original Score Academy Award for Best Art Direction, Black and White
Rebecca or Francis Ford Coppola have won Academy Award for Best Special Effects, Academy Award for Best Writing, Original Screenplay, Academy Award for Best Art Direction, Black and White, Academy Award for Best Writing, Adapted Screenplay, Academy Award for Best Film Editing, Academy Award for Best Original Score, Academy Award for Best Actress, Academy Award for Best Supporting Actress, Academy Award for Best Actor and Academy Award for Best Director
Academy Award for Best Special Effects Academy Award for Best Writing, Original Screenplay Academy Award for Best Art Direction, Black and White Academy Award for Best Writing, Adapted Screenplay Academy Award for Best Film Editing Academy Award for Best Original Score Academy Award for Best Actress Academy Award for Best Supporting Actress Academy Award for Best Actor Academy Award for Best Director
action filter_type
action union
action find
entity Rebecca
relation nominated for
action find
entity Francis Ford Coppola
relation nominated for
type film award
{'OR': [['Rebecca', 'nominated for', {'concept': 'film award'}], ['Francis Ford Coppola', 'nominated for', {'concept': 'film award'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Rebecca property:nominated_for ?h } UNION { resource:Francis_Ford_Coppola property:nominated_for ?h } } . ?h rdf:type ontology:film_award }
[]