Simple Question (Direct)
Simple Question
Q163869
P57
Q502895
USER
Which person directed Rampage ?
(Q163869,P57,c(Q502895))
action filter_type
action find
entity Q163869
relation P57
type Q502895
['Q163869', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q163869 property:P57 ?w . ?w rdf:type ontology:Q502895 }
Rampage
action filter_type
action find
entity Rampage
relation director
type common name
['Rampage', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Rampage property:director ?w . ?w rdf:type ontology:common_name }
[]
common name
Q61347
SYSTEM
Uwe Boll
Q61347
(Q163869,P57,c(Q502895))
action filter_type
action find
entity Q163869
relation P57
type Q502895
[ANSWER] directed Rampage
['Q163869', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q163869 property:P57 ?w . ?w rdf:type ontology:Q502895 }
Uwe Boll
Uwe Boll directed Rampage
Uwe Boll
action filter_type
action find
entity Rampage
relation director
type common name
['Rampage', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Rampage property:director ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q61347
P1412
Q34770
USER
Which language is spoken by that person ?
(Q61347,P1412,c(Q34770))
action filter_type
action find
entity Q61347
relation P1412
type Q34770
['Q61347', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { resource:Q61347 property:P1412 ?p . ?p rdf:type ontology:Q34770 }
Uwe Boll
action filter_type
action find
entity Uwe Boll
relation languages spoken, written or signed
type language
['Uwe Boll', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { resource:Uwe_Boll property:languages_spoken,_written_or_signed ?p . ?p rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q61347,P1412,c(Q34770))
action filter_type
action find
entity Q61347
relation P1412
type Q34770
Are [ANSWER] is spoken by that person
['Q61347', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { resource:Q61347 property:P1412 ?p . ?p rdf:type ontology:Q34770 }
English
Are English is spoken by that person
English
action filter_type
action find
entity Uwe Boll
relation languages spoken, written or signed
type language
['Uwe Boll', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { resource:Uwe_Boll property:languages_spoken,_written_or_signed ?p . ?p rdf:type ontology:language }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q61347
P57
Q838948 Q15416
USER
How many works of art and television programs have Uwe Boll as their director ?
(c(Q838948),P57,Q61347) (c(Q15416),P57,Q61347)
action count
action union
action filter_type
action find_reverse
entity Q61347
relation P57
type Q838948
action filter_type
action find_reverse
entity Q61347
relation P57
type Q15416
[{'concept': 'Q838948'}, 'P57', 'Q61347'] [{'concept': 'Q15416'}, 'P57', 'Q61347']
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { ?z rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } }
Uwe Boll
action count
action union
action filter_type
action find_reverse
entity Uwe Boll
relation director
type work of art
action filter_type
action find_reverse
entity Uwe Boll
relation director
type television program
[{'concept': 'work of art'}, 'director', 'Uwe Boll'] [{'concept': 'television program'}, 'director', 'Uwe Boll']
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { ?z rdf:type ?w . VALUES ( ?w ) { ( ontology:television_program ) ( ontology:work_of_art ) } }
[]
work of art television program
SYSTEM
26 works of art and 1 television programs
Q2657424 Q19794109 Q17996652 Q2905622 Q885069 Q543248 Q705216 Q163293 Q701977 Q117359 Q477370 Q208047 Q3016694 Q1165832 Q823020 Q4928666 Q481118 Q18151051 Q1711295 Q560008 Q17355852 Q509805 Q163869 Q636239 Q166031 Q14594687 Q700905
(c(Q838948),P57,Q61347) (c(Q15416),P57,Q61347)
action count
action union
action filter_type
action find_reverse
entity Q61347
relation P57
type Q838948
action filter_type
action find_reverse
entity Q61347
relation P57
type Q15416
[ANSWER]
[{'concept': 'Q838948'}, 'P57', 'Q61347'] [{'concept': 'Q15416'}, 'P57', 'Q61347']
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { ?z rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } }
In the Name of the King 2: Two Worlds Barschel: A Murder in Geneva Rampage: Capital Punishment Blackwoods BloodRayne Far Cry House of the Dead Auschwitz Alone in the Dark Stoic Heart of America 1968 Tunnel Rats The First Semester Darfur The Final Storm Blubberella Max Schmeling In the Name of the King 3: The Last Mission Seed BloodRayne: The Third Reich Suddenly Sanctimony Rampage BloodRayne 2: Deliverance In the Name of the King Assault on Wall Street Postal
26 works of art and 1 television programs
action count
action union
action filter_type
action find_reverse
entity Uwe Boll
relation director
type work of art
action filter_type
action find_reverse
entity Uwe Boll
relation director
type television program
[{'concept': 'work of art'}, 'director', 'Uwe Boll'] [{'concept': 'television program'}, 'director', 'Uwe Boll']
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { ?z rdf:type ?w . VALUES ( ?w ) { ( ontology:television_program ) ( ontology:work_of_art ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q970649 Q61347
P19 P937
Q56061
USER
Which administrative territories were Uwe Boll born in or are the work locations of Juan Gabriel Vásquez ?
OR((Q61347,P19,c(Q56061)), (Q970649,P937,c(Q56061)))
action filter_type
action union
action find
entity Q61347
relation P19
action find
entity Q970649
relation P937
type Q56061
{'OR': [['Q61347', 'P19', {'concept': 'Q56061'}], ['Q970649', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q61347 property:P19 ?i } UNION { resource:Q970649 property:P937 ?i } } . ?i rdf:type ontology:Q56061 }
Juan Gabriel Vásquez Uwe Boll
action filter_type
action union
action find
entity Uwe Boll
relation place of birth
action find
entity Juan Gabriel Vásquez
relation work location
type administrative territorial entity
{'OR': [['Uwe Boll', 'place of birth', {'concept': 'administrative territorial entity'}], ['Juan Gabriel Vásquez', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Uwe_Boll property:place_of_birth ?i } UNION { resource:Juan_Gabriel_Vásquez property:work_location ?i } } . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1492 Q7507
SYSTEM
Barcelona, Wermelskirchen
Q1492 Q7507
OR((Q61347,P19,c(Q56061)), (Q970649,P937,c(Q56061)))
action filter_type
action union
action find
entity Q61347
relation P19
action find
entity Q970649
relation P937
type Q56061
Uwe Boll were born in [ANSWERS] or are the work locations of Juan Gabriel Vásquez
{'OR': [['Q61347', 'P19', {'concept': 'Q56061'}], ['Q970649', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q61347 property:P19 ?i } UNION { resource:Q970649 property:P937 ?i } } . ?i rdf:type ontology:Q56061 }
Barcelona Wermelskirchen
Uwe Boll were born in Barcelona and Wermelskirchen or are the work locations of Juan Gabriel Vásquez
Barcelona Wermelskirchen
action filter_type
action union
action find
entity Uwe Boll
relation place of birth
action find
entity Juan Gabriel Vásquez
relation work location
type administrative territorial entity
{'OR': [['Uwe Boll', 'place of birth', {'concept': 'administrative territorial entity'}], ['Juan Gabriel Vásquez', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Uwe_Boll property:place_of_birth ?i } UNION { resource:Juan_Gabriel_Vásquez property:work_location ?i } } . ?i rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q7758112
P941
Q838948 Q838948 Q15416
USER
Which works of art were the sources of inspiration for greater number of works of art and television programs than The Pretty Sister of Jose ?
(c(Q838948)|c(Q15416),P941,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
action find_reverse_tuple_counts
relation P941
type Q838948
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q7758112
relation P941
type Q838948
type Q15416
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:P941 resource:Q7758112 . { { ?c rdf:type ontology:Q838948 } UNION { ?c rdf:type ontology:Q15416 } } } } . FILTER ( ?r > ?n ) . { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?r ) WHERE { { ?v property:P941 ?t . ?t rdf:type ontology:Q838948 . ?v rdf:type ontology:Q838948 } UNION { ?v property:P941 ?t . ?t rdf:type ontology:Q838948 . ?v rdf:type ontology:Q15416 } } GROUP BY ?t } }
The Pretty Sister of Jose
action greater
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 television program
action count
action filter_multi_types
action find_reverse
entity The Pretty Sister of Jose
relation inspired by
type work of art
type television program
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:inspired_by resource:The_Pretty_Sister_of_Jose . { { ?c rdf:type ontology:work_of_art } UNION { ?c rdf:type ontology:television_program } } } } . FILTER ( ?r > ?n ) . { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?r ) WHERE { { ?v property:inspired_by ?t . ?t rdf:type ontology:work_of_art . ?v rdf:type ontology:work_of_art } UNION { ?v property:inspired_by ?t . ?t rdf:type ontology:work_of_art . ?v rdf:type ontology:television_program } } GROUP BY ?t } }
[]
work of art work of art television program
Q1144983 Q17738 Q107724
SYSTEM
Animal Kingdom, Star Wars Episode IV: A New Hope, Thunderball
Q1136305 Q1198611 Q107724 Q1852671 Q17738 Q181598 Q753298 Q1754737 Q1144983 Q186014 Q734834 Q1170100 Q375786 Q83186 Q465478 Q169082
(c(Q838948)|c(Q15416),P941,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
action find_reverse_tuple_counts
relation P941
type Q838948
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q7758112
relation P941
type Q838948
type Q15416
[ANSWERS] were the sources of inspiration for greater number of works of art and television programs than The Pretty Sister of Jose
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:P941 resource:Q7758112 . { { ?c rdf:type ontology:Q838948 } UNION { ?c rdf:type ontology:Q15416 } } } } . FILTER ( ?r > ?n ) . { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?r ) WHERE { { ?v property:P941 ?t . ?t rdf:type ontology:Q838948 . ?v rdf:type ontology:Q838948 } UNION { ?v property:P941 ?t . ?t rdf:type ontology:Q838948 . ?v rdf:type ontology:Q15416 } } GROUP BY ?t } }
Doryphoros The Absent-Minded Professor Thunderball Carnival of Souls Star Wars Episode IV: A New Hope King Lear Uncle Vanya Lady Snowblood Animal Kingdom Zeitgeist: The Movie Ghent Altarpiece The Philadelphia Experiment Hippolytus Romeo and Juliet Star Trek II: The Wrath of Khan 10 Things I Hate About You
Animal Kingdom, Star Wars Episode IV: A New Hope and Thunderball were the sources of inspiration for greater number of works of art and television programs than The Pretty Sister of Jose
Animal Kingdom Star Wars Episode IV: A New Hope Thunderball
action greater
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 television program
action count
action filter_multi_types
action find_reverse
entity The Pretty Sister of Jose
relation inspired by
type work of art
type television program
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:inspired_by resource:The_Pretty_Sister_of_Jose . { { ?c rdf:type ontology:work_of_art } UNION { ?c rdf:type ontology:television_program } } } } . FILTER ( ?r > ?n ) . { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?r ) WHERE { { ?v property:inspired_by ?t . ?t rdf:type ontology:work_of_art . ?v rdf:type ontology:work_of_art } UNION { ?v property:inspired_by ?t . ?t rdf:type ontology:work_of_art . ?v rdf:type ontology:television_program } } GROUP BY ?t } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1860 Q1144983
P364 P144
Q15416
USER
Which television programs are an extension Animal Kingdom and were done in English language during their inception ?
AND((c(Q15416),P144,Q1144983), (c(Q15416),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q1144983
relation P144
action find_reverse
entity Q1860
relation P364
type Q15416
{'AND': [[{'concept': 'Q15416'}, 'P144', 'Q1144983'], [{'concept': 'Q15416'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?h WHERE { ?h property:P144 resource:Q1144983 . ?h property:P364 resource:Q1860 . ?h rdf:type ontology:Q15416 }
English Animal Kingdom
action filter_type
action intersection
action find_reverse
entity Animal Kingdom
relation based on
action find_reverse
entity English
relation original language of work
type television program
{'AND': [[{'concept': 'television program'}, 'based on', 'Animal Kingdom'], [{'concept': 'television program'}, 'original language of work', 'English']]}
SELECT DISTINCT ?h WHERE { ?h property:based_on resource:Animal_Kingdom . ?h property:original_language_of_work resource:English . ?h rdf:type ontology:television_program }
[]
television program
Q22266766
SYSTEM
Animal Kingdom
Q22266766
AND((c(Q15416),P144,Q1144983), (c(Q15416),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q1144983
relation P144
action find_reverse
entity Q1860
relation P364
type Q15416
[ANSWER] is an extension [ANSWER] and were done in English language during their inception
{'AND': [[{'concept': 'Q15416'}, 'P144', 'Q1144983'], [{'concept': 'Q15416'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?h WHERE { ?h property:P144 resource:Q1144983 . ?h property:P364 resource:Q1860 . ?h rdf:type ontology:Q15416 }
Animal Kingdom
Animal Kingdom is an extension Animal Kingdom and were done in English language during their inception
Animal Kingdom
action filter_type
action intersection
action find_reverse
entity Animal Kingdom
relation based on
action find_reverse
entity English
relation original language of work
type television program
{'AND': [[{'concept': 'television program'}, 'based on', 'Animal Kingdom'], [{'concept': 'television program'}, 'original language of work', 'English']]}
SELECT DISTINCT ?h WHERE { ?h property:based_on resource:Animal_Kingdom . ?h property:original_language_of_work resource:English . ?h rdf:type ontology:television_program }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2885006 Q107724
P161
Q502895
USER
Which people starred in Thunderball or This Angry Age ?
OR((Q107724,P161,c(Q502895)), (Q2885006,P161,c(Q502895)))
action filter_type
action union
action find
entity Q107724
relation P161
action find
entity Q2885006
relation P161
type Q502895
{'OR': [['Q107724', 'P161', {'concept': 'Q502895'}], ['Q2885006', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q107724 property:P161 ?y } UNION { resource:Q2885006 property:P161 ?y } } . ?y rdf:type ontology:Q502895 }
This Angry Age Thunderball
action filter_type
action union
action find
entity Thunderball
relation cast member
action find
entity This Angry Age
relation cast member
type common name
{'OR': [['Thunderball', 'cast member', {'concept': 'common name'}], ['This Angry Age', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Thunderball property:cast_member ?y } UNION { resource:This_Angry_Age property:cast_member ?y } } . ?y rdf:type ontology:common_name }
[]
common name
Q269832 Q460063 Q273351 Q1557469 Q1508089 Q7153771 Q1804810 Q233832 Q434602 Q7308595
SYSTEM
Some of them are Claudine Auger, Guido Celano, Molly Peters, Guy Doleman, George Pravda, Paul Stassino, Philip Stone, Jo Van Fleet, Martine Beswick, Reginald Beckwith
Q106940 Q1508089 Q1927055 Q2848238 Q7153771 Q1029099 Q29092 Q434602 Q1557469 Q918369 Q458755 Q734043 Q269832 Q365044 Q4573 Q233832 Q7308595 Q106919 Q353050 Q1859922 Q437806 Q383681 Q323452 Q16013003 Q273351 Q193146 Q460063 Q1804810 Q573128 Q888254 Q232860 Q3046377
OR((Q107724,P161,c(Q502895)), (Q2885006,P161,c(Q502895)))
action filter_type
action union
action find
entity Q107724
relation P161
action find
entity Q2885006
relation P161
type Q502895
[ANSWERS] starred in Thunderball or This Angry Age
{'OR': [['Q107724', 'P161', {'concept': 'Q502895'}], ['Q2885006', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q107724 property:P161 ?y } UNION { resource:Q2885006 property:P161 ?y } } . ?y rdf:type ontology:Q502895 }
Alida Valli George Pravda Michael Brennan André Maranne Paul Stassino Jack Gwillim Desmond Llewelyn Martine Beswick Guy Doleman Nehemiah Persoff Roland Culver Richard Conte Claudine Auger Adolfo Celi Sean Connery Jo Van Fleet Reginald Beckwith Silvana Mangano Philip Locke Rik Van Nutter Luciana Paluzzi Yvonne Sanson Bernard Lee Patrick Holt Molly Peters Anthony Perkins Guido Celano Philip Stone Anthony Dawson Bob Simmons Lois Maxwell Earl Cameron
Claudine Auger, Guido Celano, Molly Peters, Guy Doleman, George Pravda, Paul Stassino, Philip Stone, Jo Van Fleet, Martine Beswick and Reginald Beckwith starred in Thunderball or This Angry Age
Claudine Auger Guido Celano Molly Peters Guy Doleman George Pravda Paul Stassino Philip Stone Jo Van Fleet Martine Beswick Reginald Beckwith
action filter_type
action union
action find
entity Thunderball
relation cast member
action find
entity This Angry Age
relation cast member
type common name
{'OR': [['Thunderball', 'cast member', {'concept': 'common name'}], ['This Angry Age', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Thunderball property:cast_member ?y } UNION { resource:This_Angry_Age property:cast_member ?y } } . ?y rdf:type ontology:common_name }
[]