Simple Question (Direct)
Simple Question
Q42047
P272
Q375336
USER
Which film studio was the production company of Goodfellas ?
(Q42047,P272,c(Q375336))
action filter_type
action find
entity Q42047
relation P272
type Q375336
['Q42047', 'P272', {'concept': 'Q375336'}]
SELECT DISTINCT ?t WHERE { resource:Q42047 property:P272 ?t . ?t rdf:type ontology:Q375336 }
Goodfellas
action filter_type
action find
entity Goodfellas
relation production company
type film studio
['Goodfellas', 'production company', {'concept': 'film studio'}]
SELECT DISTINCT ?t WHERE { resource:Goodfellas property:production_company ?t . ?t rdf:type ontology:film_studio }
[]
film studio
Q126399
SYSTEM
Warner Bros.
Q126399
(Q42047,P272,c(Q375336))
action filter_type
action find
entity Q42047
relation P272
type Q375336
[ANSWER] was the production company of Goodfellas
['Q42047', 'P272', {'concept': 'Q375336'}]
SELECT DISTINCT ?t WHERE { resource:Q42047 property:P272 ?t . ?t rdf:type ontology:Q375336 }
Warner Bros.
Warner Bros. was the production company of Goodfellas
Warner Bros.
action filter_type
action find
entity Goodfellas
relation production company
type film studio
['Goodfellas', 'production company', {'concept': 'film studio'}]
SELECT DISTINCT ?t WHERE { resource:Goodfellas property:production_company ?t . ?t rdf:type ontology:film_studio }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q42047
P162
Q502895
USER
Which person produced that work of art ?
(Q126399,P162,c(Q502895))
action filter_type
action find
entity Q42047
relation P162
type Q502895
['Q126399', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q42047 property:P162 ?d . ?d rdf:type ontology:Q502895 }
Goodfellas
action filter_type
action find
entity Goodfellas
relation producer
type common name
['Warner Bros.', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Goodfellas property:producer ?d . ?d rdf:type ontology:common_name }
[]
common name
Q950428
SYSTEM
Irwin Winkler
Q950428
(Q126399,P162,c(Q502895))
action filter_type
action find
entity Q42047
relation P162
type Q502895
[ANSWER] produced that work of art
['Q126399', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q42047 property:P162 ?d . ?d rdf:type ontology:Q502895 }
Irwin Winkler
Irwin Winkler produced that work of art
Irwin Winkler
action filter_type
action find
entity Goodfellas
relation producer
type common name
['Warner Bros.', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Goodfellas property:producer ?d . ?d rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q16887380 Q852446 Q838948
USER
Which works of art are a component of atleast 2 groups and US administrative territories ?
(c(Q838948),P361,c(Q16887380)|c(Q852446))
action atleast
action union
action find_tuple_counts
relation P361
type Q838948
type Q16887380
action find_tuple_counts
relation P361
type Q838948
type Q852446
value 2
[{'concept': 'Q838948'}, 'P361', [{'concept': 'Q16887380'}, {'concept': 'Q852446'}]]
SELECT DISTINCT ?c WHERE { FILTER ( ?f >= 2 ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) ?c WHERE { VALUES ( ?d ) { ( ontology:Q16887380 ) ( ontology:Q852446 ) } . ?a rdf:type ?d } GROUP BY ?c } }
action atleast
action union
action find_tuple_counts
relation part of
type work of art
type group
action find_tuple_counts
relation part of
type work of art
type administrative territorial entity of the United States
value 2
[{'concept': 'work of art'}, 'part of', [{'concept': 'group'}, {'concept': 'administrative territorial entity of the United States'}]]
SELECT DISTINCT ?c WHERE { FILTER ( ?f >= 2 ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) ?c WHERE { VALUES ( ?d ) { ( ontology:group ) ( ontology:administrative_territorial_entity_of_the_United_States ) } . ?a rdf:type ?d } GROUP BY ?c } }
[]
group administrative territorial entity of the United States work of art
Q5316041
SYSTEM
Dupont Circle Fountain
Q5316041
(c(Q838948),P361,c(Q16887380)|c(Q852446))
action atleast
action union
action find_tuple_counts
relation P361
type Q838948
type Q16887380
action find_tuple_counts
relation P361
type Q838948
type Q852446
value 2
[ANSWER] is a component of atleast 2 groups and US administrative territories
[{'concept': 'Q838948'}, 'P361', [{'concept': 'Q16887380'}, {'concept': 'Q852446'}]]
SELECT DISTINCT ?c WHERE { FILTER ( ?f >= 2 ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) ?c WHERE { VALUES ( ?d ) { ( ontology:Q16887380 ) ( ontology:Q852446 ) } . ?a rdf:type ?d } GROUP BY ?c } }
Dupont Circle Fountain
Dupont Circle Fountain is a component of atleast 2 groups and US administrative territories
Dupont Circle Fountain
action atleast
action union
action find_tuple_counts
relation part of
type work of art
type group
action find_tuple_counts
relation part of
type work of art
type administrative territorial entity of the United States
value 2
[{'concept': 'work of art'}, 'part of', [{'concept': 'group'}, {'concept': 'administrative territorial entity of the United States'}]]
SELECT DISTINCT ?c WHERE { FILTER ( ?f >= 2 ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) ?c WHERE { VALUES ( ?d ) { ( ontology:group ) ( ontology:administrative_territorial_entity_of_the_United_States ) } . ?a rdf:type ?d } GROUP BY ?c } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q434342 Q42047
P1411
Q4220917
USER
Which film awards do Goodfellas or Richard Brooks have ?
OR((Q42047,P1411,c(Q4220917)), (Q434342,P1411,c(Q4220917)))
action filter_type
action union
action find
entity Q42047
relation P1411
action find
entity Q434342
relation P1411
type Q4220917
{'OR': [['Q42047', 'P1411', {'concept': 'Q4220917'}], ['Q434342', 'P1411', {'concept': 'Q4220917'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q42047 property:P1411 ?w } UNION { resource:Q434342 property:P1411 ?w } } . ?w rdf:type ontology:Q4220917 }
Richard Brooks Goodfellas
action filter_type
action union
action find
entity Goodfellas
relation nominated for
action find
entity Richard Brooks
relation nominated for
type film award
{'OR': [['Goodfellas', 'nominated for', {'concept': 'film award'}], ['Richard Brooks', 'nominated for', {'concept': 'film award'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Goodfellas property:nominated_for ?w } UNION { resource:Richard_Brooks property:nominated_for ?w } } . ?w rdf:type ontology:film_award }
[]
film award
Q106301 Q107258 Q102427 Q106291 Q103360 Q281939
SYSTEM
Academy Award for Best Supporting Actress, Academy Award for Best Writing, Adapted Screenplay, Academy Award for Best Picture, Academy Award for Best Supporting Actor, Academy Award for Best Director, Academy Award for Best Film Editing
Q106301 Q107258 Q102427 Q106291 Q103360 Q281939
OR((Q42047,P1411,c(Q4220917)), (Q434342,P1411,c(Q4220917)))
action filter_type
action union
action find
entity Q42047
relation P1411
action find
entity Q434342
relation P1411
type Q4220917
Goodfellas or Richard Brooks have won [ANSWERS]
{'OR': [['Q42047', 'P1411', {'concept': 'Q4220917'}], ['Q434342', 'P1411', {'concept': 'Q4220917'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q42047 property:P1411 ?w } UNION { resource:Q434342 property:P1411 ?w } } . ?w rdf:type ontology:Q4220917 }
Academy Award for Best Supporting Actress Academy Award for Best Writing, Adapted Screenplay Academy Award for Best Picture Academy Award for Best Supporting Actor Academy Award for Best Director Academy Award for Best Film Editing
Goodfellas or Richard Brooks have won Academy Award for Best Supporting Actress, Academy Award for Best Writing, Adapted Screenplay, Academy Award for Best Picture, Academy Award for Best Supporting Actor, Academy Award for Best Director and Academy Award for Best Film Editing
Academy Award for Best Supporting Actress Academy Award for Best Writing, Adapted Screenplay Academy Award for Best Picture Academy Award for Best Supporting Actor Academy Award for Best Director Academy Award for Best Film Editing
action filter_type
action union
action find
entity Goodfellas
relation nominated for
action find
entity Richard Brooks
relation nominated for
type film award
{'OR': [['Goodfellas', 'nominated for', {'concept': 'film award'}], ['Richard Brooks', 'nominated for', {'concept': 'film award'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Goodfellas property:nominated_for ?w } UNION { resource:Richard_Brooks property:nominated_for ?w } } . ?w rdf:type ontology:film_award }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P1346
Q502895 Q4220917
USER
How many film awards were won by more number of people than that film award ?
(c(Q4220917),P1346,c(Q502895))
[{'concept': 'Q4220917'}, 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q18560095 ?y . ?z rdf:type ontology:Q4220917 . ?y rdf:type ontology:Q502895 }
[{'concept': 'film award'}, 'winner', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:winner ?y . ?z rdf:type ontology:film_award . ?y rdf:type ontology:common_name }
[]
common name film award
Comparative|Count over More/Less|Single entity type|Clarification
Q102427
SYSTEM
Did you mean Academy Award for Best Picture ?
(c(Q4220917),P1346,c(Q502895))
[ANSWER]
[{'concept': 'Q4220917'}, 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q18560095 ?y . ?z rdf:type ontology:Q4220917 . ?y rdf:type ontology:Q502895 }
Did you mean Academy Award for Best Picture ?
Academy Award for Best Picture
[{'concept': 'film award'}, 'winner', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:winner ?y . ?z rdf:type ontology:film_award . ?y rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Academy Award for Best Film Editing. Could you tell me the answer for that?
(c(Q4220917),P1346,c(Q502895))
Q281939
[{'concept': 'Q4220917'}, 'P1346', {'concept': 'Q502895'}]
[{'concept': 'film award'}, 'winner', {'concept': 'common name'}]
[]
SYSTEM
64
Q181883 Q787148 Q787145 Q165313 Q765404 Q1967731 Q787098 Q3827269 Q1414525 Q7209850 Q1461985 Q838482 Q1377777 Q1113428 Q1419495 Q175235 Q1377763 Q739694 Q6978541 Q849124 Q1414482 Q1414504 Q41375 Q257235 Q4671338 Q1071903 Q106301 Q1315008 Q1790292 Q1414514 Q649232 Q5449077 Q768476 Q3473896 Q3473898 Q2925687 Q1627408 Q548389 Q1377738 Q1062026 Q1377733 Q106291 Q894598 Q7426017 Q5449062 Q905247 Q5894560 Q1268927 Q734036 Q1075361 Q1647268 Q787127 Q932281 Q930627 Q787123 Q4220901 Q1967186 Q2357620 Q4834543 Q389628 Q787131 Q5449066 Q4220900 Q777921
(c(Q4220917),P1346,c(Q502895))
[ANSWER]
[{'concept': 'Q4220917'}, 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q18560095 ?y . ?z rdf:type ontology:Q4220917 . ?y rdf:type ontology:Q502895 }
Golden Globe Award for Best Actor – Motion Picture Musical or Comedy BAFTA Academy Fellowship Award BAFTA Award for Best Editing National Society of Film Critics Award for Best Supporting Actor Satellite Award for Best Original Screenplay National Society of Film Critics Award for Best Actor BAFTA Award for Best Film Music Las Vegas Film Critics Society Award for Best Actor Filmfare Award for Best Film Polish Academy Award for Best Screenplay National Film Award for Best Supporting Actor Chlotrudis Award for Best Actor European Film Award for Best Screenwriter Filmfare Award for Best Director National Board of Review Award for Best Actress Chicago Film Critics Association Award for Best Supporting Actor European Film Award for European Discovery of the Year BAFTA Award for Best Adapted Screenplay National Society of Film Critics Award for Best Screenplay Golden Globe Award for Best Screenplay Filmfare Award for Best Actress Filmfare Award for Best Story BAFTA Award for Best Original Screenplay MTV Movie Award for Best Kiss Academy Award for Best Original Musical Score Chicago Film Critics Association Award for Best Actor Academy Award for Best Supporting Actress National Society of Film Critics Award for Best Director National Board of Review Award for Best Actor Filmfare Award for Best Dialogue Satellite Award for Best Art Direction and Production Design Filmfare Award for Best Director – Telugu David di Donatello for Best Film Satellite Award for Best Supporting Actor – Series, Miniseries or Television Film Satellite Award for Best Actor – Television Series Drama BAFTA Award for Best Film Not in the English Language Satellite Award for Best Actor – Motion Picture BAFTA Award for Best Actor in a Supporting Role European Film Award for Best Actress MTV Movie Award for Best Villain European Film Award for Best Cinematographer Academy Award for Best Supporting Actor Boston Society of Film Critics Award for Best Supporting Actress Satellite Award for Best Cast – Television Series Filmfare Award for Best Actor – Telugu MTV Movie Award for Best Comedic Performance Hong Kong Film Award for Best Director National Society of Film Critics Award for Best Actress MTV Movie Award for Best Fight Chlotrudis Award for Best Supporting Actor Satellite Award for Best Costume Design BAFTA Award for Best Special Visual Effects European Film Award for Best Actor Polish Academy Award for Best Film BAFTA Award for Best Actress in a Supporting Role MTV Movie Award for Best Male Performance National Film Award for Best Film on Family Welfare Satellite Award for Best Original Score BAFTA Award for Most Promising Newcomer to Leading Film Roles Filmfare Award for Best Performance in a Comic Role BAFTA Award for Best Direction Filmfare Award for Best Actress – Telugu MTV Movie Award for Best On-Screen Duo European Film Award for Best Film
64
[{'concept': 'film award'}, 'winner', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:winner ?y . ?z rdf:type ontology:film_award . ?y rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q18402
P1441
Q838948 Q15707583 Q15619164
USER
Which works of art contain greater number of fictional taxons or abstract beings than La Strada ?
(c(Q15707583)|c(Q15619164),P1441,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q15707583
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q15619164
action count
action filter_multi_types
action find_reverse
entity Q18402
relation P1441
type Q15707583
type Q15619164
[[{'concept': 'Q15707583'}, {'concept': 'Q15619164'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) ?f WHERE { { ?f rdf:type ontology:Q838948 . ?e rdf:type ontology:Q15707583 . ?e property:P1441 ?f } UNION { ?e property:P1441 ?f . ?f rdf:type ontology:Q838948 . ?e rdf:type ontology:Q15619164 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:P1441 resource:Q18402 . { ?l rdf:type ?a . VALUES ( ?a ) { ( ontology:Q15707583 ) ( ontology:Q15619164 ) } } } } . FILTER ( ?w > ?r ) }
La Strada
action greater
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional taxon
action find_reverse_tuple_counts
relation present in work
type work of art
type abstract being
action count
action filter_multi_types
action find_reverse
entity La Strada
relation present in work
type fictional taxon
type abstract being
[[{'concept': 'fictional taxon'}, {'concept': 'abstract being'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) ?f WHERE { { ?f rdf:type ontology:work_of_art . ?e rdf:type ontology:fictional_taxon . ?e property:present_in_work ?f } UNION { ?e property:present_in_work ?f . ?f rdf:type ontology:work_of_art . ?e rdf:type ontology:abstract_being } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:present_in_work resource:La_Strada . { ?l rdf:type ?a . VALUES ( ?a ) { ( ontology:fictional_taxon ) ( ontology:abstract_being ) } } } } . FILTER ( ?w > ?r ) }
[]
work of art fictional taxon abstract being
Q192724 Q205028 Q107226
SYSTEM
Iron Man, Iron Man 2, The Bourne Ultimatum
Q86440 Q22665878 Q181803 Q922006 Q205028 Q332387 Q5887360 Q42051 Q17485699 Q19946102 Q494048 Q182218 Q20001199 Q217020 Q165713 Q26833 Q387674 Q14513321 Q14171368 Q184843 Q6074 Q19032697 Q156608 Q107226 Q1193324 Q504697 Q15005 Q15624215 Q17738 Q1201853 Q16857406 Q23781155 Q192724 Q181069 Q23780914
(c(Q15707583)|c(Q15619164),P1441,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q15707583
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q15619164
action count
action filter_multi_types
action find_reverse
entity Q18402
relation P1441
type Q15707583
type Q15619164
[ANSWERS] contain greater number of fictional taxons or abstract beings than La Strada
[[{'concept': 'Q15707583'}, {'concept': 'Q15619164'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) ?f WHERE { { ?f rdf:type ontology:Q838948 . ?e rdf:type ontology:Q15707583 . ?e property:P1441 ?f } UNION { ?e property:P1441 ?f . ?f rdf:type ontology:Q838948 . ?e rdf:type ontology:Q15619164 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:P1441 resource:Q18402 . { ?l rdf:type ?a . VALUES ( ?a ) { ( ontology:Q15707583 ) ( ontology:Q15619164 ) } } } } . FILTER ( ?w > ?r ) }
The Tempest Thor: Ragnarok Star Wars Episode VI: Return of the Jedi Race to Witch Mountain Iron Man 2 The Taming of the Shrew Guardians of the Galaxy Star Wars: Episode III – Revenge of the Sith Alice Through the Looking Glass Beauty and the Beast The Bourne Legacy The Avengers Guardians of the Galaxy Vol. 2 Thor Star Wars: Episode I – The Phantom Menace Othello Final Fantasy VII: Advent Children Warcraft Avengers: Age of Ultron Blade Runner Star Wars: The Force Awakens Peter Pan, or The Boy Who Wouldn't Grow Up The Bourne Supremacy The Bourne Ultimatum The Disappearance of Haruhi Suzumiya WarGames Woe from Wit Lucy Star Wars Episode IV: A New Hope Thor: The Dark World The Jungle Book Untitled Avengers Movie Iron Man Star Wars Episode II: Attack of the Clones Avengers: Infinity War
Iron Man, Iron Man 2 and The Bourne Ultimatum contain greater number of fictional taxons or abstract beings than La Strada
Iron Man Iron Man 2 The Bourne Ultimatum
action greater
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional taxon
action find_reverse_tuple_counts
relation present in work
type work of art
type abstract being
action count
action filter_multi_types
action find_reverse
entity La Strada
relation present in work
type fictional taxon
type abstract being
[[{'concept': 'fictional taxon'}, {'concept': 'abstract being'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) ?f WHERE { { ?f rdf:type ontology:work_of_art . ?e rdf:type ontology:fictional_taxon . ?e property:present_in_work ?f } UNION { ?e property:present_in_work ?f . ?f rdf:type ontology:work_of_art . ?e rdf:type ontology:abstract_being } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:present_in_work resource:La_Strada . { ?l rdf:type ?a . VALUES ( ?a ) { ( ontology:fictional_taxon ) ( ontology:abstract_being ) } } } } . FILTER ( ?w > ?r ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1102220
P1441
Q838948 Q15707583 Q15619164
USER
And how about Jurassic Park III?
(c(Q15707583)|c(Q15619164),P1441,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q15707583
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q15619164
action count
action filter_multi_types
action find_reverse
entity Q1102220
relation P1441
type Q15707583
type Q15619164
[[{'concept': 'Q15707583'}, {'concept': 'Q15619164'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?f > ?h ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { ?m property:P1441 resource:Q1102220 . { ?m rdf:type ?t . VALUES ( ?t ) { ( ontology:Q15619164 ) ( ontology:Q15707583 ) } } } } . { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?f ) WHERE { ?w rdf:type ?g . VALUES ( ?g ) { ( ontology:Q15707583 ) ( ontology:Q15619164 ) } } GROUP BY ?c } }
Jurassic Park III
action greater
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional taxon
action find_reverse_tuple_counts
relation present in work
type work of art
type abstract being
action count
action filter_multi_types
action find_reverse
entity Jurassic Park III
relation present in work
type fictional taxon
type abstract being
[[{'concept': 'fictional taxon'}, {'concept': 'abstract being'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?f > ?h ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { ?m property:present_in_work resource:Jurassic_Park_III . { ?m rdf:type ?t . VALUES ( ?t ) { ( ontology:abstract_being ) ( ontology:fictional_taxon ) } } } } . { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?f ) WHERE { ?w rdf:type ?g . VALUES ( ?g ) { ( ontology:fictional_taxon ) ( ontology:abstract_being ) } } GROUP BY ?c } }
[]
work of art fictional taxon abstract being
Q192724 Q205028 Q107226
SYSTEM
Iron Man, Iron Man 2, The Bourne Ultimatum
Q86440 Q1507513 Q22665878 Q1388653 Q25043 Q181803 Q7756461 Q484675 Q922006 Q205028 Q332387 Q58972 Q458629 Q886675 Q108543 Q1293934 Q181598 Q177930 Q5887360 Q592457 Q370326 Q743194 Q27061795 Q42051 Q1332299 Q161087 Q881000 Q133654 Q753899 Q1271824 Q183304 Q7561043 Q1433571 Q17485699 Q18402 Q130851 Q19946102 Q105702 Q220713 Q303040 Q785461 Q18786473 Q494048 Q182218 Q19842746 Q1248429 Q20001199 Q466423 Q548303 Q217020 Q886719 Q1702819 Q165713 Q26833 Q167726 Q302174 Q18200409 Q104814 Q387674 Q1639322 Q969098 Q14513321 Q284641 Q105624 Q3739484 Q5901134 Q1749311 Q14171368 Q184843 Q156597 Q263460 Q153723 Q110206 Q19481099 Q6402953 Q515931 Q6074 Q19032697 Q156608 Q107226 Q1193324 Q504697 Q209538 Q15005 Q1168778 Q1224659 Q9125658 Q329127 Q3114616 Q15624215 Q17738 Q19264018 Q268824 Q458852 Q835650 Q104871 Q211009 Q7913393 Q3282491 Q170564 Q1201853 Q16857406 Q103569 Q458314 Q23781155 Q192724 Q192979 Q226773 Q190050 Q1322906 Q722682 Q722267 Q181069 Q23780914 Q15040681 Q3476432
(c(Q15707583)|c(Q15619164),P1441,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q15707583
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q15619164
action count
action filter_multi_types
action find_reverse
entity Q1102220
relation P1441
type Q15707583
type Q15619164
[ANSWERS]
[[{'concept': 'Q15707583'}, {'concept': 'Q15619164'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?f > ?h ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { ?m property:P1441 resource:Q1102220 . { ?m rdf:type ?t . VALUES ( ?t ) { ( ontology:Q15619164 ) ( ontology:Q15707583 ) } } } } . { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?f ) WHERE { ?w rdf:type ?g . VALUES ( ?g ) { ( ontology:Q15707583 ) ( ontology:Q15619164 ) } } GROUP BY ?c } }
The Tempest Tremors 3: Back to Perfection Thor: Ragnarok Pacific Rim Monty Python and the Holy Grail Star Wars Episode VI: Return of the Jedi The Pee-wee Herman Show Léon: The Professional Race to Witch Mountain Iron Man 2 The Taming of the Shrew Masters of the Universe Billy Elliot My Bloody Valentine Alien 3 Fright Night II King Lear Enemy of the State Guardians of the Galaxy The Enforcer Eraser The Winter's Tale The Wacky World of Dr. Morgus Star Wars: Episode III – Revenge of the Sith Pete's Dragon Pirates of the Caribbean: Dead Man's Chest Blacula The Silence of the Lambs Scott Pilgrim vs. the World Cleopatra Jones Troilus and Cressida Final Destination Tremors 2: Aftershocks Alice Through the Looking Glass La Strada Much Ado About Nothing Beauty and the Beast Dr. Strangelove American Pie American Reunion Sudden Impact Pete's Dragon The Bourne Legacy The Avengers Teenage Mutant Ninja Turtles: Out of the Shadows Police Academy Guardians of the Galaxy Vol. 2 American Wedding The Tailor of Panama Thor Manhunter Secret of the Wings Star Wars: Episode I – The Phantom Menace Othello Jurassic Park I Know What You Did Last Summer A Monster Calls Aliens Final Fantasy VII: Advent Children Our American Cousin Phèdre Warcraft Timon of Athens The Bourne Identity The Adventures of Buratino Ant-Man Tremors 4: The Legend Begins Avengers: Age of Ultron Blade Runner Men in Black II The Dead Pool Inglourious Basterds Dirty Harry Jason Bourne Khumba Willow Star Wars: The Force Awakens Peter Pan, or The Boy Who Wouldn't Grow Up The Bourne Supremacy The Bourne Ultimatum The Disappearance of Haruhi Suzumiya WarGames Iron Man 3 Woe from Wit The House by the Cemetery Digimon Adventure: Bokura no War Game! Red Dragon American Pie 2 Hannibal Rising Lucy Star Wars Episode IV: A New Hope Tremors 5: Bloodline Fright Night Magnum Force Tremors A Midsummer Night's Dream Van Helsing Van Helsing: The London Assignment Trigun: Badlands Rumble Terminator 2: Judgment Day Thor: The Dark World The Jungle Book Alien Alien: Resurrection Untitled Avengers Movie Iron Man Clash of the Titans Wrath of the Titans Fight Club Centurion Hannibal Beverly Hills Cop Star Wars Episode II: Attack of the Clones Avengers: Infinity War Fright Night 2: New Blood Scream Blacula Scream
Iron Man Iron Man 2 The Bourne Ultimatum
action greater
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional taxon
action find_reverse_tuple_counts
relation present in work
type work of art
type abstract being
action count
action filter_multi_types
action find_reverse
entity Jurassic Park III
relation present in work
type fictional taxon
type abstract being
[[{'concept': 'fictional taxon'}, {'concept': 'abstract being'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?f > ?h ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { ?m property:present_in_work resource:Jurassic_Park_III . { ?m rdf:type ?t . VALUES ( ?t ) { ( ontology:abstract_being ) ( ontology:fictional_taxon ) } } } } . { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?f ) WHERE { ?w rdf:type ?g . VALUES ( ?g ) { ( ontology:fictional_taxon ) ( ontology:abstract_being ) } } GROUP BY ?c } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q205028
P166
Q15416
USER
Which television program was Iron Man 2 awarded with ?
(Q205028,P166,c(Q15416))
action filter_type
action find
entity Q205028
relation P166
type Q15416
['Q205028', 'P166', {'concept': 'Q15416'}]
SELECT DISTINCT ?d WHERE { resource:Q205028 property:P166 ?d . ?d rdf:type ontology:Q15416 }
Iron Man 2
action filter_type
action find
entity Iron Man 2
relation award received
type television program
['Iron Man 2', 'award received', {'concept': 'television program'}]
SELECT DISTINCT ?d WHERE { resource:Iron_Man_2 property:award_received ?d . ?d rdf:type ontology:television_program }
[]
television program
Q23894553
SYSTEM
People's Choice Award for Favorite Action Movie
Q23894553
(Q205028,P166,c(Q15416))
action filter_type
action find
entity Q205028
relation P166
type Q15416
The [ANSWER] was Iron Man 2 awarded with
['Q205028', 'P166', {'concept': 'Q15416'}]
SELECT DISTINCT ?d WHERE { resource:Q205028 property:P166 ?d . ?d rdf:type ontology:Q15416 }
People's Choice Award for Favorite Action Movie
The People's Choice Award for Favorite Action Movie was Iron Man 2 awarded with
People's Choice Award for Favorite Action Movie
action filter_type
action find
entity Iron Man 2
relation award received
type television program
['Iron Man 2', 'award received', {'concept': 'television program'}]
SELECT DISTINCT ?d WHERE { resource:Iron_Man_2 property:award_received ?d . ?d rdf:type ontology:television_program }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q205028
Q618779
USER
And which award?
(Q205028,P166,c(Q618779))
action filter_type
action find
entity Q205028
relation P166
type Q618779
['Q205028', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?o WHERE { resource:Q205028 property:P166 ?o . ?o rdf:type ontology:Q618779 }
Iron Man 2
action filter_type
action find
entity Iron Man 2
relation award received
type award
['Iron Man 2', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?o WHERE { resource:Iron_Man_2 property:award_received ?o . ?o rdf:type ontology:award }
[]
award
Q24034699 Q24053941 Q24034692
SYSTEM
Scream Award for Best Superhero, Golden Schmoes for Biggest Disappointment of the Year, Scream Award for Best Villain
Q24034699 Q24053941 Q24034692
(Q205028,P166,c(Q618779))
action filter_type
action find
entity Q205028
relation P166
type Q618779
[ANSWERS]
['Q205028', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?o WHERE { resource:Q205028 property:P166 ?o . ?o rdf:type ontology:Q618779 }
Scream Award for Best Superhero Golden Schmoes for Biggest Disappointment of the Year Scream Award for Best Villain
Scream Award for Best Superhero Golden Schmoes for Biggest Disappointment of the Year Scream Award for Best Villain
action filter_type
action find
entity Iron Man 2
relation award received
type award
['Iron Man 2', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?o WHERE { resource:Iron_Man_2 property:award_received ?o . ?o rdf:type ontology:award }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1201141 Q42047
P58
Q502895
USER
Which people served as the screenwriter for Goodfellas or Detention ?
OR((Q42047,P58,c(Q502895)), (Q1201141,P58,c(Q502895)))
action filter_type
action union
action find
entity Q42047
relation P58
action find
entity Q1201141
relation P58
type Q502895
{'OR': [['Q42047', 'P58', {'concept': 'Q502895'}], ['Q1201141', 'P58', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?t ) { ( resource:Q42047 ) ( resource:Q1201141 ) } . ?t property:P58 ?u } . ?u rdf:type ontology:Q502895 }
Detention Goodfellas
action filter_type
action union
action find
entity Goodfellas
relation screenwriter
action find
entity Detention
relation screenwriter
type common name
{'OR': [['Goodfellas', 'screenwriter', {'concept': 'common name'}], ['Detention', 'screenwriter', {'concept': 'common name'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?t ) { ( resource:Goodfellas ) ( resource:Detention ) } . ?t property:screenwriter ?u } . ?u rdf:type ontology:common_name }
[]
common name
Q1363428 Q450279 Q41148
SYSTEM
Joseph Kahn, Nicholas Pileggi, Martin Scorsese
Q1363428 Q450279 Q41148
OR((Q42047,P58,c(Q502895)), (Q1201141,P58,c(Q502895)))
action filter_type
action union
action find
entity Q42047
relation P58
action find
entity Q1201141
relation P58
type Q502895
[ANSWERS] served as the screenwriter for Goodfellas or Detention
{'OR': [['Q42047', 'P58', {'concept': 'Q502895'}], ['Q1201141', 'P58', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?t ) { ( resource:Q42047 ) ( resource:Q1201141 ) } . ?t property:P58 ?u } . ?u rdf:type ontology:Q502895 }
Joseph Kahn Nicholas Pileggi Martin Scorsese
Joseph Kahn, Nicholas Pileggi and Martin Scorsese served as the screenwriter for Goodfellas or Detention
Joseph Kahn Nicholas Pileggi Martin Scorsese
action filter_type
action union
action find
entity Goodfellas
relation screenwriter
action find
entity Detention
relation screenwriter
type common name
{'OR': [['Goodfellas', 'screenwriter', {'concept': 'common name'}], ['Detention', 'screenwriter', {'concept': 'common name'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?t ) { ( resource:Goodfellas ) ( resource:Detention ) } . ?t property:screenwriter ?u } . ?u rdf:type ontology:common_name }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P58
Q15416 Q838948
USER
How many television programs or works of art did that person do the screenwriting for ?
(c(Q15416),P58,Q450279) (c(Q838948),P58,Q450279) (c(Q15416),P58,Q1363428) (c(Q838948),P58,Q1363428) (c(Q15416),P58,Q450279) (c(Q838948),P58,Q450279) (c(Q15416),P58,Q41148) (c(Q838948),P58,Q41148)
[{'concept': 'Q15416'}, 'P58', 'Q450279'] [{'concept': 'Q838948'}, 'P58', 'Q450279'] [{'concept': 'Q15416'}, 'P58', 'Q1363428'] [{'concept': 'Q838948'}, 'P58', 'Q1363428'] [{'concept': 'Q15416'}, 'P58', 'Q450279'] [{'concept': 'Q838948'}, 'P58', 'Q450279'] [{'concept': 'Q15416'}, 'P58', 'Q41148'] [{'concept': 'Q838948'}, 'P58', 'Q41148']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q28389 resource:Q450279 } UNION { ?y property:Q28389 resource:Q450279 } UNION { ?z property:Q28389 resource:Q17048444 } UNION { ?y property:Q28389 resource:Q17048444 } UNION { ?z property:Q28389 resource:Q450279 } UNION { ?y property:Q28389 resource:Q450279 } UNION { ?z property:Q28389 resource:Q6776552 } UNION { ?y property:Q28389 resource:Q6776552 } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q838948 }
[{'concept': 'television program'}, 'screenwriter', 'Nicholas Pileggi'] [{'concept': 'work of art'}, 'screenwriter', 'Nicholas Pileggi'] [{'concept': 'television program'}, 'screenwriter', 'Joseph Kahn'] [{'concept': 'work of art'}, 'screenwriter', 'Joseph Kahn'] [{'concept': 'television program'}, 'screenwriter', 'Nicholas Pileggi'] [{'concept': 'work of art'}, 'screenwriter', 'Nicholas Pileggi'] [{'concept': 'television program'}, 'screenwriter', 'Martin Scorsese'] [{'concept': 'work of art'}, 'screenwriter', 'Martin Scorsese']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:screenwriter resource:Nicholas_Pileggi } UNION { ?y property:screenwriter resource:Nicholas_Pileggi } UNION { ?z property:screenwriter resource:Joseph_Kahn } UNION { ?y property:screenwriter resource:Joseph_Kahn } UNION { ?z property:screenwriter resource:Nicholas_Pileggi } UNION { ?y property:screenwriter resource:Nicholas_Pileggi } UNION { ?z property:screenwriter resource:Martin_Scorsese } UNION { ?y property:screenwriter resource:Martin_Scorsese } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:work_of_art }
[]
television program work of art
Quantitative|Count|Mult. entity type|Clarification
Q1363428
SYSTEM
Did you mean Joseph Kahn ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q28389 resource:Q450279 } UNION { ?y property:Q28389 resource:Q450279 } UNION { ?z property:Q28389 resource:Q17048444 } UNION { ?y property:Q28389 resource:Q17048444 } UNION { ?z property:Q28389 resource:Q450279 } UNION { ?y property:Q28389 resource:Q450279 } UNION { ?z property:Q28389 resource:Q6776552 } UNION { ?y property:Q28389 resource:Q6776552 } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q838948 }
Did you mean Joseph Kahn ?
Joseph Kahn
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:screenwriter resource:Nicholas_Pileggi } UNION { ?y property:screenwriter resource:Nicholas_Pileggi } UNION { ?z property:screenwriter resource:Joseph_Kahn } UNION { ?y property:screenwriter resource:Joseph_Kahn } UNION { ?z property:screenwriter resource:Nicholas_Pileggi } UNION { ?y property:screenwriter resource:Nicholas_Pileggi } UNION { ?z property:screenwriter resource:Martin_Scorsese } UNION { ?y property:screenwriter resource:Martin_Scorsese } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Nicholas Pileggi. Could you tell me the answer for that?
(c(Q15416),P58,Q450279) (c(Q838948),P58,Q450279) (c(Q15416),P58,Q1363428) (c(Q838948),P58,Q1363428) (c(Q15416),P58,Q450279) (c(Q838948),P58,Q450279) (c(Q15416),P58,Q41148) (c(Q838948),P58,Q41148)
Q450279
[{'concept': 'Q15416'}, 'P58', 'Q450279'] [{'concept': 'Q838948'}, 'P58', 'Q450279'] [{'concept': 'Q15416'}, 'P58', 'Q1363428'] [{'concept': 'Q838948'}, 'P58', 'Q1363428'] [{'concept': 'Q15416'}, 'P58', 'Q450279'] [{'concept': 'Q838948'}, 'P58', 'Q450279'] [{'concept': 'Q15416'}, 'P58', 'Q41148'] [{'concept': 'Q838948'}, 'P58', 'Q41148']
[{'concept': 'television program'}, 'screenwriter', 'Nicholas Pileggi'] [{'concept': 'work of art'}, 'screenwriter', 'Nicholas Pileggi'] [{'concept': 'television program'}, 'screenwriter', 'Joseph Kahn'] [{'concept': 'work of art'}, 'screenwriter', 'Joseph Kahn'] [{'concept': 'television program'}, 'screenwriter', 'Nicholas Pileggi'] [{'concept': 'work of art'}, 'screenwriter', 'Nicholas Pileggi'] [{'concept': 'television program'}, 'screenwriter', 'Martin Scorsese'] [{'concept': 'work of art'}, 'screenwriter', 'Martin Scorsese']
[]
SYSTEM
4
Q42047 Q785074 Q220910 Q44686
(c(Q15416),P58,Q450279) (c(Q838948),P58,Q450279) (c(Q15416),P58,Q1363428) (c(Q838948),P58,Q1363428) (c(Q15416),P58,Q450279) (c(Q838948),P58,Q450279) (c(Q15416),P58,Q41148) (c(Q838948),P58,Q41148)
[ANSWER]
[{'concept': 'Q15416'}, 'P58', 'Q450279'] [{'concept': 'Q838948'}, 'P58', 'Q450279'] [{'concept': 'Q15416'}, 'P58', 'Q1363428'] [{'concept': 'Q838948'}, 'P58', 'Q1363428'] [{'concept': 'Q15416'}, 'P58', 'Q450279'] [{'concept': 'Q838948'}, 'P58', 'Q450279'] [{'concept': 'Q15416'}, 'P58', 'Q41148'] [{'concept': 'Q838948'}, 'P58', 'Q41148']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q28389 resource:Q450279 } UNION { ?y property:Q28389 resource:Q450279 } UNION { ?z property:Q28389 resource:Q17048444 } UNION { ?y property:Q28389 resource:Q17048444 } UNION { ?z property:Q28389 resource:Q450279 } UNION { ?y property:Q28389 resource:Q450279 } UNION { ?z property:Q28389 resource:Q6776552 } UNION { ?y property:Q28389 resource:Q6776552 } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q838948 }
Goodfellas Kings of South Beach Casino City Hall
4
[{'concept': 'television program'}, 'screenwriter', 'Nicholas Pileggi'] [{'concept': 'work of art'}, 'screenwriter', 'Nicholas Pileggi'] [{'concept': 'television program'}, 'screenwriter', 'Joseph Kahn'] [{'concept': 'work of art'}, 'screenwriter', 'Joseph Kahn'] [{'concept': 'television program'}, 'screenwriter', 'Nicholas Pileggi'] [{'concept': 'work of art'}, 'screenwriter', 'Nicholas Pileggi'] [{'concept': 'television program'}, 'screenwriter', 'Martin Scorsese'] [{'concept': 'work of art'}, 'screenwriter', 'Martin Scorsese']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:screenwriter resource:Nicholas_Pileggi } UNION { ?y property:screenwriter resource:Nicholas_Pileggi } UNION { ?z property:screenwriter resource:Joseph_Kahn } UNION { ?y property:screenwriter resource:Joseph_Kahn } UNION { ?z property:screenwriter resource:Nicholas_Pileggi } UNION { ?y property:screenwriter resource:Nicholas_Pileggi } UNION { ?z property:screenwriter resource:Martin_Scorsese } UNION { ?y property:screenwriter resource:Martin_Scorsese } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1860 Q107258
P1411 P364
Q838948
USER
Which works of art were nominated for Academy Award for Best Writing, Adapted Screenplay and were done in English language during their inception ?
AND((c(Q838948),P1411,Q107258), (c(Q838948),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q107258
relation P1411
action find_reverse
entity Q1860
relation P364
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P1411', 'Q107258'], [{'concept': 'Q838948'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?m WHERE { ?m property:P364 resource:Q1860 . ?m property:P1411 resource:Q107258 . ?m rdf:type ontology:Q838948 }
English Academy Award for Best Writing, Adapted Screenplay
action filter_type
action intersection
action find_reverse
entity Academy Award for Best Writing, Adapted Screenplay
relation nominated for
action find_reverse
entity English
relation original language of work
type work of art
{'AND': [[{'concept': 'work of art'}, 'nominated for', 'Academy Award for Best Writing, Adapted Screenplay'], [{'concept': 'work of art'}, 'original language of work', 'English']]}
SELECT DISTINCT ?m WHERE { ?m property:original_language_of_work resource:English . ?m property:nominated_for resource:Academy_Award_for_Best_Writing,_Adapted_Screenplay . ?m rdf:type ontology:work_of_art }
[]
work of art
Q42047 Q659843 Q466781 Q936037 Q1580597 Q2345 Q1171440 Q471159 Q1125442 Q741823
SYSTEM
Some of them are Goodfellas, The Snake Pit, All the President's Men, Victor Victoria, Holiday, 12 Angry Men, The Last Detail, Born on the Fourth of July, The Age of Innocence, JFK
Q352431 Q400093 Q152456 Q651722 Q581906 Q301049 Q59653 Q1077690 Q2875 Q3376986 Q34414 Q125076 Q463615 Q645168 Q583525 Q164103 Q1425815 Q463832 Q770741 Q2162060 Q251997 Q898721 Q185888 Q182692 Q727016 Q651923 Q1345583 Q1824959 Q543581 Q1536746 Q13806537 Q637180 Q15648198 Q272860 Q1140611 Q477296 Q14918344 Q1206261 Q208204 Q691672 Q1166180 Q241876 Q221820 Q134773 Q1210973 Q118375 Q409022 Q183239 Q2909183 Q205321 Q2456779 Q936037 Q910226 Q1532392 Q1621402 Q207588 Q976149 Q301649 Q1551573 Q478209 Q1471328 Q1972135 Q1624196 Q47703 Q1439574 Q496734 Q589894 Q63009 Q563731 Q174371 Q16954098 Q211429 Q780951 Q203574 Q596984 Q1215931 Q201293 Q1171692 Q570221 Q1020603 Q1332957 Q1618931 Q2345 Q1218318 Q43228 Q244448 Q171669 Q501874 Q132689 Q1199357 Q105702 Q503313 Q1626186 Q979726 Q1169951 Q1218959 Q988004 Q280918 Q488376 Q61696 Q1623002 Q2269586 Q131074 Q16970789 Q1199222 Q228186 Q32433 Q127367 Q684150 Q1304320 Q193066 Q1045165 Q152493 Q703011 Q244865 Q475529 Q648977 Q898840 Q165627 Q1012216 Q195274 Q686533 Q1198073 Q738456 Q622240 Q1467214 Q1198497 Q781608 Q141359 Q536560 Q200299 Q334735 Q244315 Q159063 Q483941 Q221586 Q1196539 Q1520037 Q426466 Q652186 Q741823 Q157044 Q201215 Q614864 Q152780 Q1171247 Q659843 Q627157 Q184255 Q1620394 Q325643 Q339425 Q2558644 Q133654 Q19850715 Q466781 Q1580597 Q517958 Q1423854 Q498822 Q728485 Q733627 Q1809616 Q1129567 Q76824 Q669592 Q160618 Q1122571 Q1035124 Q221462 Q818710 Q400985 Q177922 Q2296064 Q188718 Q116845 Q577757 Q201819 Q630132 Q643263 Q1198860 Q204212 Q212775 Q1402938 Q1169380 Q139258 Q533585 Q720724 Q756882 Q494582 Q1125442 Q3110701 Q696057 Q1625242 Q657079 Q564958 Q193577 Q185053 Q1403132 Q304074 Q1737987 Q681962 Q632718 Q482436 Q274167 Q1579960 Q1171440 Q18547944 Q221090 Q620731 Q504157 Q645094 Q150804 Q1285467 Q482652 Q1140171 Q1323132 Q3211521 Q1621941 Q494085 Q1753575 Q640450 Q284917 Q2625466 Q223299 Q1480617 Q676039 Q5435430 Q1811134 Q1198767 Q136605 Q190956 Q3849362 Q190086 Q1198545 Q3023357 Q1722631 Q756849 Q172975 Q1401821 Q571183 Q623443 Q1619412 Q478371 Q1212928 Q603162 Q1215857 Q1129778 Q375594 Q3381163 Q174699 Q278513 Q221491 Q494722 Q2016342 Q15079318 Q1066873 Q390052 Q208263 Q208266 Q713979 Q451603 Q465087 Q181086 Q1271874 Q237134 Q217627 Q3491163 Q1130084 Q180098 Q1620549 Q313315 Q873186 Q817159 Q841781 Q189889 Q471716 Q1709419 Q109135 Q339876 Q637835 Q913389 Q669749 Q184768 Q2033247 Q1129227 Q287536 Q798692 Q687600 Q273686 Q179018 Q2349200 Q15963780 Q220735 Q63026 Q470560 Q679373 Q1551887 Q139460 Q183081 Q218999 Q1305029 Q866120 Q402645 Q1195311 Q1622751 Q726823 Q151945 Q166462 Q220423 Q813724 Q1144850 Q470916 Q1215865 Q186323 Q384397 Q185048 Q1042931 Q172241 Q1754631 Q273704 Q206576 Q830553 Q2604288 Q42047 Q196933 Q920105 Q746574 Q1553640 Q1419066 Q797849 Q329709 Q304488 Q135315 Q559893 Q209170 Q106428 Q251559 Q607179 Q3241699 Q168862 Q269331 Q309545 Q1282209 Q565643 Q739678 Q1622379 Q463869 Q237116 Q1392744 Q212129 Q15623971 Q300439 Q3648192 Q2346116 Q245208 Q918363 Q963045 Q605867 Q18703032 Q326114 Q830778 Q814296 Q1196849 Q1619752 Q2264347 Q2719978 Q173945 Q1193261 Q617997 Q1323446 Q2937646 Q1195774 Q581501 Q842073 Q460664 Q775923 Q471159 Q243439 Q321561 Q185071 Q675937 Q142292 Q738552 Q671718 Q468877 Q248289 Q2521361 Q1500395 Q208632 Q820061 Q211373 Q841203 Q20456 Q466961 Q662679 Q323827
AND((c(Q838948),P1411,Q107258), (c(Q838948),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q107258
relation P1411
action find_reverse
entity Q1860
relation P364
type Q838948
[ANSWERS]
{'AND': [[{'concept': 'Q838948'}, 'P1411', 'Q107258'], [{'concept': 'Q838948'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?m WHERE { ?m property:P364 resource:Q1860 . ?m property:P1411 resource:Q107258 . ?m rdf:type ontology:Q838948 }
Adaptation The Citadel Munich Quiz Show A River Runs Through It Winter's Bone Argo The Odd Couple Gone with the Wind Pete 'n' Tillie Rear Window Slumdog Millionaire Capote The Constant Gardener Here Comes Mr. Jordan A Beautiful Mind Captain Blood The Insider In the Loop The Man in the White Suit Cimarron Hamlet The Social Network Apocalypse Now Boys Town Young Frankenstein The Bad and the Beautiful Lili The Ides of March Four Daughters Inherent Vice Heaven Can Wait Whiplash The Elephant Man Wuthering Heights Broken Arrow The Imitation Game Election Finding Neverland Frost/Nixon Julia Captains Courageous Moneyball Forrest Gump Reversal of Fortune Fried Green Tomatoes Airport The Curious Case of Benjamin Button Before Midnight The Killers A Little Romance Victor Victoria Anne of the Thousand Days Peyton Place Friendly Persuasion From Here to Eternity Laura Lady for a Day The Player Double Indemnity Kitty Foyle Enchanted April A Soldier's Story The Godfather Johnny Belinda Equus Ninotchka The Prince of Tides Anna and the King of Siam 127 Hours Brooklyn Up in the Air Greystoke: The Legend of Tarzan, Lord of the Apes A Room with a View The Crucible Blackboard Jungle Roman Holiday California Suite Reuben, Reuben Stage Door Elmer Gantry State Fair 12 Angry Men The Professionals Goodbye, Mr. Chips How Green Was My Valley One Flew Over the Cuckoo's Nest O Brother, Where Art Thou? Casablanca The Long Voyage Home Dr. Strangelove Ordinary People Atonement Mildred Pierce Ship of Fools The Last Picture Show A Letter to Three Wives Leaving Las Vegas Anatomy of a Murder Midnight Cowboy Lenny Boomerang The Lord of the Rings: The Return of the King American Sniper Little Caesar Lawrence of Arabia Lincoln The Lord of the Rings: The Fellowship of the Ring Cool Hand Luke A Tree Grows in Brooklyn Breakfast at Tiffany's Shane Sabrina Arrowsmith Champion Mr. Deeds Goes to Town The Cider House Rules Gentleman's Agreement Sophie's Choice Gorillas in the Mist Little Women Gods and Monsters Hud Donnie Brasco In the Heat of the Night Miracle on 34th Street The Thin Man The Nun's Story Oliver! Lolita All About Eve Lilies of the Field There Will Be Blood The Reader Schindler's List Mystic River Pygmalion Separate Tables Skippy Before Sunset JFK The Hours My Fair Lady Sayonara Life of Pi Hold Back the Dawn The Snake Pit The Collector Million Dollar Baby 49th Parallel Who's Afraid of Virginia Woolf? Random Harvest Same Time, Next Year The Silence of the Lambs The Big Short All the President's Men Holiday Field of Dreams Lust for Life The Philadelphia Story The Asphalt Jungle A Place in the Sun I Want to Live! The Criminal Code Cat Ballou Giant Brokeback Mountain The Unbearable Lightness of Being Captain Newman, M.D. The Maltese Falcon Zorba the Greek Missing To Kill a Mockingbird Love Me or Leave Me The Bridge on the River Kwai Silver Linings Playbook Gigi District 9 Women in Love Sense and Sensibility The Pride of the Yankees Rebecca The Last Emperor The Apprenticeship of Duddy Kravitz Crimes of the Heart The Lives of a Bengal Lancer Bound for Glory Babe The Guns of Navarone The Killing Fields The Age of Innocence Goodbye, Columbus Around the World in 80 Days The Remains of the Day Serpico A Simple Plan Kramer vs. Kramer The Paper Chase Shadowlands In the Name of the Father The Seven-Per-Cent Solution Tinker Tailor Soldier Spy Crossfire An Education The Exorcist I Never Sang for My Father The Last Detail The Martian Children of Men The Dresser Fatal Attraction The Best Years of Our Lives The Pianist Coal Miner's Daughter Away from Her They Shoot Horses, Don't They? A Passage to India Little Dorrit Sons and Lovers MASH Educating Rita Doubt Voyage of the Damned Bloodbrothers The Color Purple Primary Colors The Grapes of Wrath The Caine Mutiny My Man Godfrey The Cruel Sea Z Amadeus Holy Matrimony Some Like It Hot The Sundowners 12 Years a Slave In Cold Blood Notes on a Scandal The Departed Enemies, a Love Story Out of Sight Wag the Dog Viva Villa! Mrs. Miniver The French Lieutenant's Woman Paper Moon The Russians Are Coming, the Russians Are Coming East of Eden Born Yesterday Philomena Midnight Express The Awful Truth The Thin Red Line Stand by Me Oh, God! The Theory of Everything Meet Me in St. Louis The Talented Mr. Ripley The Green Mile Out of Africa Cat on a Hot Tin Roof On Golden Pond The Jazz Singer A Clockwork Orange After the Thin Man The Lost Weekend The Graduate Betrayal The Hustler Ben-Hur The More the Merrier Tom Jones A Star Is Born All the King's Men Gaslight Chicago Barry Lyndon Prince of the City Trainspotting L.A. Confidential You Can't Take It With You Howards End The Song of Bernadette The Godfather Part II The Story of G.I. Joe About a Boy The Miracle Worker Bad Girl The Dead The Descendants Seabiscuit The Fallen Idol Carol The French Connection The English Patient The Quiet Man The Verdict Nobody's Fool Ghost World No Country for Old Men A Man for All Seasons The Country Girl Mr. Smith Goes to Washington Alfie The Lion in Winter Sounder The Stunt Man In the Bedroom Beasts of the Southern Wild Chocolat Becket Father of the Bride The Color of Money Kiss of the Spider Woman Borat The African Queen Dodsworth The Man Who Would Be King The Shawshank Redemption I Never Promised You a Rose Garden West Side Story Hugo Dangerous Liaisons Ragtime Goodfellas The Talk of the Town Watch on the Rhine My Left Foot Lovers and Other Strangers Norma Rae Baby Doll Mutiny on the Bounty The Grifters The Sweet Hereafter The Wings of the Dove Mary Poppins Apollo 13 The Treasure of the Sierra Madre Rosemary's Baby Murder on the Orient Express Wonder Boys Precious Judgment at Nuremberg Great Expectations The Little Foxes Tunes of Glory A Thousand Clowns The Informer Marty The Wolf of Wall Street A Streetcar Named Desire The Sunshine Boys A History of Violence Pride of the Marines The Horse's Mouth High Noon Cabaret Bad Day at Black Rock Detective Story Room True Grit Dr. Jekyll and Mr. Hyde Brief Encounter Heaven Knows, Mr. Allison The Story of Louis Pasteur Sling Blade Pennies from Heaven A Foreign Affair 5 Fingers Room at the Top Children of a Lesser God Captain Phillips Breaker Morant The Madness of King George Awakenings Prizzi's Honor Rachel, Rachel Born on the Fourth of July Full Metal Jacket Scent of a Woman Terms of Endearment Sideways Traffic The Life of Emile Zola The Search Going My Way The Accidental Tourist The Trip to Bountiful Inherit the Wind It Happened One Night Ulysses Driving Miss Daisy Little Children Dances with Wolves American Splendor Seven Brides for Seven Brothers Doctor Zhivago
Born on the Fourth of July, The Age of Innocence and JFK were nominated for Academy Award for Best Writing, Adapted Screenplay and were done in English language during their inception
Goodfellas The Snake Pit All the President's Men Victor Victoria Holiday 12 Angry Men The Last Detail Born on the Fourth of July The Age of Innocence JFK
action filter_type
action intersection
action find_reverse
entity Academy Award for Best Writing, Adapted Screenplay
relation nominated for
action find_reverse
entity English
relation original language of work
type work of art
{'AND': [[{'concept': 'work of art'}, 'nominated for', 'Academy Award for Best Writing, Adapted Screenplay'], [{'concept': 'work of art'}, 'original language of work', 'English']]}
SELECT DISTINCT ?m WHERE { ?m property:original_language_of_work resource:English . ?m property:nominated_for resource:Academy_Award_for_Best_Writing,_Adapted_Screenplay . ?m rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P144
Q838948 Q201658 Q1001378
USER
Which works of art are atleast 2 film genres or cinematic techniques adapted from ?
(c(Q201658)|c(Q1001378),P144,c(Q838948))
action atleast
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q201658
action find_reverse_tuple_counts
relation P144
type Q838948
type Q1001378
value 2
[[{'concept': 'Q201658'}, {'concept': 'Q1001378'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?v >= 2 ) . { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?v ) WHERE { ?l rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1001378 ) ( ontology:Q201658 ) } } GROUP BY ?s } }
action atleast
action union
action find_reverse_tuple_counts
relation based on
type work of art
type film genre
action find_reverse_tuple_counts
relation based on
type work of art
type cinematic technique
value 2
[[{'concept': 'film genre'}, {'concept': 'cinematic technique'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?v >= 2 ) . { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?v ) WHERE { ?l rdf:type ?h . VALUES ( ?h ) { ( ontology:cinematic_technique ) ( ontology:film_genre ) } } GROUP BY ?s } }
[]
work of art film genre cinematic technique
Q41567 Q130283 Q83186
SYSTEM
Hamlet, Macbeth, Romeo and Juliet
Q130283 Q83186 Q3987496 Q41567 Q669694
(c(Q201658)|c(Q1001378),P144,c(Q838948))
action atleast
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q201658
action find_reverse_tuple_counts
relation P144
type Q838948
type Q1001378
value 2
[ANSWERS] are atleast 2 film genres or cinematic techniques adapted from
[[{'concept': 'Q201658'}, {'concept': 'Q1001378'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?v >= 2 ) . { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?v ) WHERE { ?l rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1001378 ) ( ontology:Q201658 ) } } GROUP BY ?s } }
Macbeth Romeo and Juliet The Heart of Maryland Hamlet A Doll's House
Hamlet, Macbeth and Romeo and Juliet are atleast 2 film genres or cinematic techniques adapted from
Hamlet Macbeth Romeo and Juliet
action atleast
action union
action find_reverse_tuple_counts
relation based on
type work of art
type film genre
action find_reverse_tuple_counts
relation based on
type work of art
type cinematic technique
value 2
[[{'concept': 'film genre'}, {'concept': 'cinematic technique'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?v >= 2 ) . { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?v ) WHERE { ?l rdf:type ?h . VALUES ( ?h ) { ( ontology:cinematic_technique ) ( ontology:film_genre ) } } GROUP BY ?s } }
[]