Simple Question (Direct)
Simple Question
Q7733577
P57
Q502895
USER
Who were the director of The Fear Chamber ?
(Q7733577,P57,c(Q502895))
action filter_type
action find
entity Q7733577
relation P57
type Q502895
['Q7733577', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q7733577 property:P57 ?f . ?f rdf:type ontology:Q502895 }
The Fear Chamber
action filter_type
action find
entity The Fear Chamber
relation director
type common name
['The Fear Chamber', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:The_Fear_Chamber property:director ?f . ?f rdf:type ontology:common_name }
[]
common name
Q722764 Q1268509
SYSTEM
Jack Hill, Juan Ibáñez Díez-Gutiérrez
Q722764 Q1268509
(Q7733577,P57,c(Q502895))
action filter_type
action find
entity Q7733577
relation P57
type Q502895
The director of The Fear Chamber were [ANSWERS]
['Q7733577', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q7733577 property:P57 ?f . ?f rdf:type ontology:Q502895 }
Jack Hill Juan Ibáñez Díez-Gutiérrez
The director of The Fear Chamber were Jack Hill and Juan Ibáñez Díez-Gutiérrez
Jack Hill Juan Ibáñez Díez-Gutiérrez
action filter_type
action find
entity The Fear Chamber
relation director
type common name
['The Fear Chamber', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:The_Fear_Chamber property:director ?f . ?f rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q722764
P161
Q838948
USER
Which works of art stars that person as actor ?
(c(Q838948),P161,Q722764)
action filter_type
action find_reverse
entity Q722764
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q722764']
SELECT DISTINCT ?m WHERE { ?m property:P161 resource:Q722764 . ?m rdf:type ontology:Q838948 }
Jack Hill
action filter_type
action find_reverse
entity Jack Hill
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Jack Hill']
SELECT DISTINCT ?m WHERE { ?m property:cast_member resource:Jack_Hill . ?m rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q722764
SYSTEM
Did you mean Jack Hill ?
Q722764 Q1268509
(c(Q838948),P161,Q722764) (c(Q838948),P161,Q1268509)
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q722764'] [{'concept': 'Q838948'}, 'P161', 'Q1268509']
SELECT DISTINCT ?m WHERE { ?m property:P161 resource:Q722764 . ?m rdf:type ontology:Q838948 }
Jack Hill Juan Ibáñez Díez-Gutiérrez
Did you mean Jack Hill ?
Jack Hill
[{'concept': 'work of art'}, 'cast member', 'Jack Hill'] [{'concept': 'work of art'}, 'cast member', 'Juan Ibáñez Díez-Gutiérrez']
SELECT DISTINCT ?m WHERE { ?m property:cast_member resource:Jack_Hill . ?m rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q838948),P161,Q722764)
[{'concept': 'Q838948'}, 'P161', 'Q722764']
[{'concept': 'work of art'}, 'cast member', 'Jack Hill']
[]
Q496742 Q3323521 Q451407
SYSTEM
Leave 'Em Laughing, Mooching Through Georgia, Busy Bodies
Q496742 Q3323521 Q3773105 Q451407
(c(Q838948),P161,Q722764)
action filter_type
action find_reverse
entity Q722764
relation P161
type Q838948
[ANSWERS] star that person as actor
[{'concept': 'Q838948'}, 'P161', 'Q722764']
SELECT DISTINCT ?m WHERE { ?m property:P161 resource:Q722764 . ?m rdf:type ontology:Q838948 }
Leave 'Em Laughing Mooching Through Georgia Divot Diggers Busy Bodies
Leave 'Em Laughing, Mooching Through Georgia and Busy Bodies star that person as actor
Leave 'Em Laughing Mooching Through Georgia Busy Bodies
action filter_type
action find_reverse
entity Jack Hill
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Jack Hill']
SELECT DISTINCT ?m WHERE { ?m property:cast_member resource:Jack_Hill . ?m rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P941
Q838948 Q95074 Q15416
USER
Which works of art inspired min number of fictional characters and television programs ?
(c(Q95074)|c(Q15416),P941,c(Q838948))
action argmin
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action find_reverse_tuple_counts
relation P941
type Q838948
type Q15416
[[{'concept': 'Q95074'}, {'concept': 'Q15416'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?t ) { SELECT DISTINCT ?h ( COUNT ( ?e ) AS ?f ) WHERE { VALUES ( ?r ) { ( ontology:Q95074 ) ( ontology:Q15416 ) } . ?e rdf:type ?r } GROUP BY ?h } } . { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?o ) WHERE { { ?y property:P941 ?z . ?y rdf:type ontology:Q95074 . ?z rdf:type ontology:Q838948 } UNION { ?y property:P941 ?z . ?y rdf:type ontology:Q15416 . ?z rdf:type ontology:Q838948 } } GROUP BY ?z } . FILTER ( ?o = ?t ) }
action argmin
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
action find_reverse_tuple_counts
relation inspired by
type work of art
type television program
[[{'concept': 'fictional character'}, {'concept': 'television program'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?t ) { SELECT DISTINCT ?h ( COUNT ( ?e ) AS ?f ) WHERE { VALUES ( ?r ) { ( ontology:fictional_character ) ( ontology:television_program ) } . ?e rdf:type ?r } GROUP BY ?h } } . { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?o ) WHERE { { ?y property:inspired_by ?z . ?y rdf:type ontology:fictional_character . ?z rdf:type ontology:work_of_art } UNION { ?y property:inspired_by ?z . ?y rdf:type ontology:television_program . ?z rdf:type ontology:work_of_art } } GROUP BY ?z } . FILTER ( ?o = ?t ) }
[]
work of art fictional character television program
Q17738 Q107724 Q201293
SYSTEM
Star Wars Episode IV: A New Hope, Thunderball, Roman Holiday
Q125191 Q1136305 Q107724 Q1217787 Q1856846 Q7758112 Q46239 Q1852671 Q19560629 Q17738 Q181598 Q2568137 Q753298 Q201293 Q1754737 Q1432001 Q41567 Q18668045 Q7445655 Q186014 Q4936847 Q3223805 Q5968141 Q734834 Q375786 Q83186 Q465478
(c(Q95074)|c(Q15416),P941,c(Q838948))
action argmin
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action find_reverse_tuple_counts
relation P941
type Q838948
type Q15416
[ANSWERS] inspired min number of fictional characters and television programs
[[{'concept': 'Q95074'}, {'concept': 'Q15416'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?t ) { SELECT DISTINCT ?h ( COUNT ( ?e ) AS ?f ) WHERE { VALUES ( ?r ) { ( ontology:Q95074 ) ( ontology:Q15416 ) } . ?e rdf:type ?r } GROUP BY ?h } } . { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?o ) WHERE { { ?y property:P941 ?z . ?y rdf:type ontology:Q95074 . ?z rdf:type ontology:Q838948 } UNION { ?y property:P941 ?z . ?y rdf:type ontology:Q15416 . ?z rdf:type ontology:Q838948 } } GROUP BY ?z } . FILTER ( ?o = ?t ) }
photograph Doryphoros 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 King Lear How to Explain Pictures to a Dead Hare Uncle Vanya Roman Holiday Lady Snowblood Torquato Tasso Hamlet The Old Fisherman Seedbed Zeitgeist: The Movie Body Pressure The Judgement of Paris La sirena varada Ghent Altarpiece Hippolytus Romeo and Juliet Star Trek II: The Wrath of Khan
Star Wars Episode IV: A New Hope, Thunderball and Roman Holiday inspired min number of fictional characters and television programs
Star Wars Episode IV: A New Hope Thunderball Roman Holiday
action argmin
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
action find_reverse_tuple_counts
relation inspired by
type work of art
type television program
[[{'concept': 'fictional character'}, {'concept': 'television program'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?t ) { SELECT DISTINCT ?h ( COUNT ( ?e ) AS ?f ) WHERE { VALUES ( ?r ) { ( ontology:fictional_character ) ( ontology:television_program ) } . ?e rdf:type ?r } GROUP BY ?h } } . { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?o ) WHERE { { ?y property:inspired_by ?z . ?y rdf:type ontology:fictional_character . ?z rdf:type ontology:work_of_art } UNION { ?y property:inspired_by ?z . ?y rdf:type ontology:television_program . ?z rdf:type ontology:work_of_art } } GROUP BY ?z } . FILTER ( ?o = ?t ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q30 Q722764
P58 P495
Q838948
USER
Which works of art are Jack Hill a screwriter of and have United States of America as their place of origin ?
AND((c(Q838948),P58,Q722764), (c(Q838948),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q722764
relation P58
action find_reverse
entity Q30
relation P495
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P58', 'Q722764'], [{'concept': 'Q838948'}, 'P495', 'Q30']]}
SELECT DISTINCT ?k WHERE { ?k property:P58 resource:Q722764 . ?k property:P495 resource:Q30 . ?k rdf:type ontology:Q838948 }
United States of America Jack Hill
action filter_type
action intersection
action find_reverse
entity Jack Hill
relation screenwriter
action find_reverse
entity United States of America
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'screenwriter', 'Jack Hill'], [{'concept': 'work of art'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?k WHERE { ?k property:screenwriter resource:Jack_Hill . ?k property:country_of_origin resource:United_States_of_America . ?k rdf:type ontology:work_of_art }
[]
work of art
Q7733577 Q166734 Q1440249 Q1185312 Q3519979 Q1211739 Q2702180 Q2309756
SYSTEM
The Fear Chamber, City on Fire, Foxy Brown, Dementia 13, The Big Bird Cage, Switchblade Sisters, Coffy, Spider Baby
Q7733577 Q166734 Q1440249 Q1185312 Q3519979 Q1211739 Q2702180 Q2309756
AND((c(Q838948),P58,Q722764), (c(Q838948),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q722764
relation P58
action find_reverse
entity Q30
relation P495
type Q838948
[ANSWERS] are Jack Hill a screwriter of and have United States of America as their place of origin
{'AND': [[{'concept': 'Q838948'}, 'P58', 'Q722764'], [{'concept': 'Q838948'}, 'P495', 'Q30']]}
SELECT DISTINCT ?k WHERE { ?k property:P58 resource:Q722764 . ?k property:P495 resource:Q30 . ?k rdf:type ontology:Q838948 }
The Fear Chamber City on Fire Foxy Brown Dementia 13 The Big Bird Cage Switchblade Sisters Coffy Spider Baby
The Fear Chamber, City on Fire, Foxy Brown, Dementia 13, The Big Bird Cage, Switchblade Sisters, Coffy and Spider Baby are Jack Hill a screwriter of and have United States of America as their place of origin
The Fear Chamber City on Fire Foxy Brown Dementia 13 The Big Bird Cage Switchblade Sisters Coffy Spider Baby
action filter_type
action intersection
action find_reverse
entity Jack Hill
relation screenwriter
action find_reverse
entity United States of America
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'screenwriter', 'Jack Hill'], [{'concept': 'work of art'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?k WHERE { ?k property:screenwriter resource:Jack_Hill . ?k property:country_of_origin resource:United_States_of_America . ?k rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q17738
P144
Q166142 Q838948
USER
How many applications or works of art are an extension Star Wars Episode IV: A New Hope ?
(c(Q166142),P144,Q17738) (c(Q838948),P144,Q17738)
action count
action union
action filter_type
action find_reverse
entity Q17738
relation P144
type Q166142
action filter_type
action find_reverse
entity Q17738
relation P144
type Q838948
[{'concept': 'Q166142'}, 'P144', 'Q17738'] [{'concept': 'Q838948'}, 'P144', 'Q17738']
SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { { ?p property:P144 resource:Q17738 . ?p rdf:type ontology:Q166142 } UNION { ?p property:P144 resource:Q17738 . ?p rdf:type ontology:Q838948 } }
Star Wars Episode IV: A New Hope
action count
action union
action filter_type
action find_reverse
entity Star Wars Episode IV: A New Hope
relation based on
type application
action filter_type
action find_reverse
entity Star Wars Episode IV: A New Hope
relation based on
type work of art
[{'concept': 'application'}, 'based on', 'Star Wars Episode IV: A New Hope'] [{'concept': 'work of art'}, 'based on', 'Star Wars Episode IV: A New Hope']
SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { { ?p property:based_on resource:Star_Wars_Episode_IV:_A_New_Hope . ?p rdf:type ontology:application } UNION { ?p property:based_on resource:Star_Wars_Episode_IV:_A_New_Hope . ?p rdf:type ontology:work_of_art } }
[]
application work of art
SYSTEM
2
Q15848933 Q54317
(c(Q166142),P144,Q17738) (c(Q838948),P144,Q17738)
action count
action union
action filter_type
action find_reverse
entity Q17738
relation P144
type Q166142
action filter_type
action find_reverse
entity Q17738
relation P144
type Q838948
[ANSWER]
[{'concept': 'Q166142'}, 'P144', 'Q17738'] [{'concept': 'Q838948'}, 'P144', 'Q17738']
SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { { ?p property:P144 resource:Q17738 . ?p rdf:type ontology:Q166142 } UNION { ?p property:P144 resource:Q17738 . ?p rdf:type ontology:Q838948 } }
Star Wars XXX: A Porn Parody Star Wars
2
action count
action union
action filter_type
action find_reverse
entity Star Wars Episode IV: A New Hope
relation based on
type application
action filter_type
action find_reverse
entity Star Wars Episode IV: A New Hope
relation based on
type work of art
[{'concept': 'application'}, 'based on', 'Star Wars Episode IV: A New Hope'] [{'concept': 'work of art'}, 'based on', 'Star Wars Episode IV: A New Hope']
SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { { ?p property:based_on resource:Star_Wars_Episode_IV:_A_New_Hope . ?p rdf:type ontology:application } UNION { ?p property:based_on resource:Star_Wars_Episode_IV:_A_New_Hope . ?p rdf:type ontology:work_of_art } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17738
P2515
Q502895
USER
Who was the costume designer for Star Wars Episode IV: A New Hope ?
(Q17738,P2515,c(Q502895))
action filter_type
action find
entity Q17738
relation P2515
type Q502895
['Q17738', 'P2515', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q17738 property:P2515 ?f . ?f rdf:type ontology:Q502895 }
Star Wars Episode IV: A New Hope
action filter_type
action find
entity Star Wars Episode IV: A New Hope
relation costume designer
type common name
['Star Wars Episode IV: A New Hope', 'costume designer', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Star_Wars_Episode_IV:_A_New_Hope property:costume_designer ?f . ?f rdf:type ontology:common_name }
[]
common name
Q1701116
SYSTEM
John Mollo
Q1701116
(Q17738,P2515,c(Q502895))
action filter_type
action find
entity Q17738
relation P2515
type Q502895
The costume designer for Star Wars Episode IV : A New Hope was created [ANSWER]
['Q17738', 'P2515', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q17738 property:P2515 ?f . ?f rdf:type ontology:Q502895 }
John Mollo
The costume designer for Star Wars Episode IV : A New Hope was created John Mollo
John Mollo
action filter_type
action find
entity Star Wars Episode IV: A New Hope
relation costume designer
type common name
['Star Wars Episode IV: A New Hope', 'costume designer', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Star_Wars_Episode_IV:_A_New_Hope property:costume_designer ?f . ?f rdf:type ontology:common_name }
[]