Simple Question (Direct)
Simple Question
Q18575933
P27
Q3024240
USER
Which former country does Nicholas Sergeyev belong to ?
(Q18575933,P27,c(Q3024240))
action filter_type
action find
entity Q18575933
relation P27
type Q3024240
['Q18575933', 'P27', {'concept': 'Q3024240'}]
SELECT DISTINCT ?e WHERE { resource:Q18575933 property:P27 ?e . ?e rdf:type ontology:Q3024240 }
Nicholas Sergeyev
action filter_type
action find
entity Nicholas Sergeyev
relation country of citizenship
type former country
['Nicholas Sergeyev', 'country of citizenship', {'concept': 'former country'}]
SELECT DISTINCT ?e WHERE { resource:Nicholas_Sergeyev property:country_of_citizenship ?e . ?e rdf:type ontology:former_country }
[]
former country
Q34266
SYSTEM
Russian Empire
Q34266
(Q18575933,P27,c(Q3024240))
action filter_type
action find
entity Q18575933
relation P27
type Q3024240
Nicholas Sergeyev belongs to [ANSWER]
['Q18575933', 'P27', {'concept': 'Q3024240'}]
SELECT DISTINCT ?e WHERE { resource:Q18575933 property:P27 ?e . ?e rdf:type ontology:Q3024240 }
Russian Empire
Nicholas Sergeyev belongs to Russian Empire
Russian Empire
action filter_type
action find
entity Nicholas Sergeyev
relation country of citizenship
type former country
['Nicholas Sergeyev', 'country of citizenship', {'concept': 'former country'}]
SELECT DISTINCT ?e WHERE { resource:Nicholas_Sergeyev property:country_of_citizenship ?e . ?e rdf:type ontology:former_country }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18575933
P20
Q56061
USER
Where did Nicholas Sergeyev die ?
(Q18575933,P20,c(Q56061))
action filter_type
action find
entity Q18575933
relation P20
type Q56061
['Q18575933', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q18575933 property:P20 ?c . ?c rdf:type ontology:Q56061 }
Nicholas Sergeyev
action filter_type
action find
entity Nicholas Sergeyev
relation place of death
type administrative territorial entity
['Nicholas Sergeyev', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Nicholas_Sergeyev property:place_of_death ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q33959
SYSTEM
Nice
Q33959
(Q18575933,P20,c(Q56061))
action filter_type
action find
entity Q18575933
relation P20
type Q56061
Nicholas Sergeyev died in [ANSWER]
['Q18575933', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q18575933 property:P20 ?c . ?c rdf:type ontology:Q56061 }
Nice
Nicholas Sergeyev died in Nice
Nice
action filter_type
action find
entity Nicholas Sergeyev
relation place of death
type administrative territorial entity
['Nicholas Sergeyev', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Nicholas_Sergeyev property:place_of_death ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q33959 Q641 Q3471565
P190
Q56061
USER
Is that administrative territory partner town of Venice and San Mateo, Anzoátegui ?
(Q33959,P190,Q641) (Q33959,P190,Q3471565)
action is_in
entity Q33959
action intersection
action find_reverse
entity Q641
relation P190
action find_reverse
entity Q3471565
relation P190
['Q33959', 'P190', 'Q641'] ['Q33959', 'P190', 'Q3471565']
ASK WHERE { resource:Q33959 property:P190 resource:Q641 . resource:Q33959 property:P190 resource:Q3471565 }
Nice Venice San Mateo, Anzoátegui
action is_in
entity Nice
action intersection
action find_reverse
entity Venice
relation sister city
action find_reverse
entity San Mateo, Anzoátegui
relation sister city
['Nice', 'sister city', 'Venice'] ['Nice', 'sister city', 'San Mateo, Anzoátegui']
ASK WHERE { resource:Nice property:sister_city resource:Venice . resource:Nice property:sister_city resource:San_Mateo,_Anzoátegui }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q33959,P190,Q641) (Q33959,P190,Q3471565)
action is_in
entity Q33959
action intersection
action find_reverse
entity Q641
relation P190
action find_reverse
entity Q3471565
relation P190
[ANSWER]
['Q33959', 'P190', 'Q641'] ['Q33959', 'P190', 'Q3471565']
ASK WHERE { resource:Q33959 property:P190 resource:Q641 . resource:Q33959 property:P190 resource:Q3471565 }
YES and NO respectively
action is_in
entity Nice
action intersection
action find_reverse
entity Venice
relation sister city
action find_reverse
entity San Mateo, Anzoátegui
relation sister city
['Nice', 'sister city', 'Venice'] ['Nice', 'sister city', 'San Mateo, Anzoátegui']
ASK WHERE { resource:Nice property:sister_city resource:Venice . resource:Nice property:sister_city resource:San_Mateo,_Anzoátegui }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q33959
P915
Q838948
USER
Which works of art were filmed at Nice ?
(c(Q838948),P915,Q33959)
action filter_type
action find_reverse
entity Q33959
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q33959']
SELECT DISTINCT ?x WHERE { ?x property:P915 resource:Q33959 . ?x rdf:type ontology:Q838948 }
Nice
action filter_type
action find_reverse
entity Nice
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Nice']
SELECT DISTINCT ?x WHERE { ?x property:filming_location resource:Nice . ?x rdf:type ontology:work_of_art }
[]
work of art
Q865580 Q1405943 Q681225
SYSTEM
Children of Paradise, Wise Guys, Army of Shadows
Q3538034 Q32734 Q261817 Q819972 Q232091 Q1395528 Q10966636 Q1196127 Q3264300 Q3204977 Q3213705 Q232170 Q3205392 Q3235406 Q1405901 Q210182 Q18170549 Q1405943 Q579480 Q14511869 Q604912 Q3156675 Q116734 Q206740 Q1196439 Q5464742 Q568696 Q891843 Q3043300 Q3024113 Q1471752 Q1430568 Q426490 Q16652209 Q2713293 Q3472447 Q892965 Q751401 Q369094 Q865580 Q5627325 Q681225 Q640067
(c(Q838948),P915,Q33959)
action filter_type
action find_reverse
entity Q33959
relation P915
type Q838948
[ANSWERS] were filmed at Nice
[{'concept': 'Q838948'}, 'P915', 'Q33959']
SELECT DISTINCT ?x WHERE { ?x property:P915 resource:Q33959 . ?x rdf:type ontology:Q838948 }
A View of Love Cold Sweat À propos de Nice The Transporter Two English Girls Fanfan la Tulipe Mondo Classe tous risques Lovely Rita, sainte patronne des cas désespérés The Man Who Understood Women La vie promise Two for the Road The Finishers Les Seins de glace The Young Lieutenant La Piscine The Transporter Legacy Wise Guys The Return of the Pink Panther Magic in the Moonlight Cop or Hood I Spit on Your Graves Gendarme in New York La Cage aux Folles II The Umbrella Coup Follow the Boys The Comedians Bombs on Monte Carlo Déjà mort Des gens qui s'embrassent Happy Easter The Marseille Contract Je suis timide mais je me soigne La Liste de mes envies Brice de Nice Without Apparent Motive The Christmas Tree Ronin Botched Children of Paradise Le Gitan Army of Shadows The Hands of Orlac
Children of Paradise, Wise Guys and Army of Shadows were filmed at Nice
Children of Paradise Wise Guys Army of Shadows
action filter_type
action find_reverse
entity Nice
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Nice']
SELECT DISTINCT ?x WHERE { ?x property:filming_location resource:Nice . ?x rdf:type ontology:work_of_art }
[]
Clarification
Simple Question|Single Entity|Indirect
Q681225
P1431
Q502895
USER
Whose production is that work of art of ?
(Q681225,P1431,c(Q502895))
action filter_type
action find
entity Q681225
relation P1431
type Q502895
['Q681225', 'P1431', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q681225 property:P1431 ?e . ?e rdf:type ontology:Q502895 }
Army of Shadows
action filter_type
action find
entity Army of Shadows
relation executive producer
type common name
['Army of Shadows', 'executive producer', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Army_of_Shadows property:executive_producer ?e . ?e rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1405943
SYSTEM
Did you mean Wise Guys ?
Q865580 Q1405943 Q681225
(Q865580,P1431,c(Q502895)) (Q1405943,P1431,c(Q502895)) (Q681225,P1431,c(Q502895))
[ANSWER]
['Q865580', 'P1431', {'concept': 'Q502895'}] ['Q1405943', 'P1431', {'concept': 'Q502895'}] ['Q681225', 'P1431', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q681225 property:P1431 ?e . ?e rdf:type ontology:Q502895 }
Children of Paradise Wise Guys Army of Shadows
Did you mean Wise Guys ?
Wise Guys
['Children of Paradise', 'executive producer', {'concept': 'common name'}] ['Wise Guys', 'executive producer', {'concept': 'common name'}] ['Army of Shadows', 'executive producer', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Army_of_Shadows property:executive_producer ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Army of Shadows. Could you tell me the answer for that?
(Q681225,P1431,c(Q502895))
Q681225
['Q681225', 'P1431', {'concept': 'Q502895'}]
['Army of Shadows', 'executive producer', {'concept': 'common name'}]
[]
Q168693
SYSTEM
Jean-Pierre Melville
Q168693
(Q681225,P1431,c(Q502895))
action filter_type
action find
entity Q681225
relation P1431
type Q502895
De [ANSWER] is that work of art of
['Q681225', 'P1431', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q681225 property:P1431 ?e . ?e rdf:type ontology:Q502895 }
Jean-Pierre Melville
De Jean-Pierre Melville is that work of art of
Jean-Pierre Melville
action filter_type
action find
entity Army of Shadows
relation executive producer
type common name
['Army of Shadows', 'executive producer', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Army_of_Shadows property:executive_producer ?e . ?e rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q681225
P915
Q515 Q56061
USER
How many cities and administrative territories were Army of Shadows filmed ?
(Q681225,P915,c(Q515)) (Q681225,P915,c(Q56061))
action count
action union
action filter_type
action find
entity Q681225
relation P915
type Q515
action filter_type
action find
entity Q681225
relation P915
type Q56061
['Q681225', 'P915', {'concept': 'Q515'}] ['Q681225', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { resource:Q681225 property:P915 ?s . ?s rdf:type ontology:Q56061 } UNION { ?s rdf:type ontology:Q515 . resource:Q681225 property:P915 ?s } }
Army of Shadows
action count
action union
action filter_type
action find
entity Army of Shadows
relation filming location
type city
action filter_type
action find
entity Army of Shadows
relation filming location
type administrative territorial entity
['Army of Shadows', 'filming location', {'concept': 'city'}] ['Army of Shadows', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { resource:Army_of_Shadows property:filming_location ?s . ?s rdf:type ontology:administrative_territorial_entity } UNION { ?s rdf:type ontology:city . resource:Army_of_Shadows property:filming_location ?s } }
[]
city administrative territorial entity
SYSTEM
1 cities and 2 administrative territories
Q33959 Q456 Q90
(Q681225,P915,c(Q515)) (Q681225,P915,c(Q56061))
action count
action union
action filter_type
action find
entity Q681225
relation P915
type Q515
action filter_type
action find
entity Q681225
relation P915
type Q56061
[ANSWER]
['Q681225', 'P915', {'concept': 'Q515'}] ['Q681225', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { resource:Q681225 property:P915 ?s . ?s rdf:type ontology:Q56061 } UNION { ?s rdf:type ontology:Q515 . resource:Q681225 property:P915 ?s } }
Nice Lyon Paris
1 cities and 2 administrative territories
action count
action union
action filter_type
action find
entity Army of Shadows
relation filming location
type city
action filter_type
action find
entity Army of Shadows
relation filming location
type administrative territorial entity
['Army of Shadows', 'filming location', {'concept': 'city'}] ['Army of Shadows', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { resource:Army_of_Shadows property:filming_location ?s . ?s rdf:type ontology:administrative_territorial_entity } UNION { ?s rdf:type ontology:city . resource:Army_of_Shadows property:filming_location ?s } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18575933
P21
Q290
USER
Which sex does Nicholas Sergeyev belong to ?
(Q18575933,P21,c(Q290))
action filter_type
action find
entity Q18575933
relation P21
type Q290
['Q18575933', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q18575933 property:P21 ?r . ?r rdf:type ontology:Q290 }
Nicholas Sergeyev
action filter_type
action find
entity Nicholas Sergeyev
relation gender
type sex
['Nicholas Sergeyev', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Nicholas_Sergeyev property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q18575933,P21,c(Q290))
action filter_type
action find
entity Q18575933
relation P21
type Q290
Nicholas Sergeyev belongs to [ANSWER]
['Q18575933', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q18575933 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
Nicholas Sergeyev belongs to male
male
action filter_type
action find
entity Nicholas Sergeyev
relation gender
type sex
['Nicholas Sergeyev', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Nicholas_Sergeyev property:gender ?r . ?r rdf:type ontology:sex }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q786019
P1441
Q838948 Q15707583 Q15619164
USER
Which works of art are greater number of fictional taxons or abstract beings present in than The Haunting ?
(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 Q786019
relation P1441
type Q15707583
type Q15619164
[[{'concept': 'Q15707583'}, {'concept': 'Q15619164'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) ?d WHERE { { ?f property:P1441 ?d . ?f rdf:type ontology:Q15619164 . ?d rdf:type ontology:Q838948 } UNION { ?f property:P1441 ?d . ?d rdf:type ontology:Q838948 . ?f rdf:type ontology:Q15707583 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:P1441 resource:Q786019 . { { ?e rdf:type ontology:Q15707583 } UNION { ?e rdf:type ontology:Q15619164 } } } } . FILTER ( ?v > ?h ) }
The Haunting
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 The Haunting
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 ?d WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) ?d WHERE { { ?f property:present_in_work ?d . ?f rdf:type ontology:abstract_being . ?d rdf:type ontology:work_of_art } UNION { ?f property:present_in_work ?d . ?d rdf:type ontology:work_of_art . ?f rdf:type ontology:fictional_taxon } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:present_in_work resource:The_Haunting . { { ?e rdf:type ontology:fictional_taxon } UNION { ?e rdf:type ontology:abstract_being } } } } . FILTER ( ?v > ?h ) }
[]
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 Q786019
relation P1441
type Q15707583
type Q15619164
[ANSWERS] are greater number of fictional taxons or abstract beings present in than The Haunting
[[{'concept': 'Q15707583'}, {'concept': 'Q15619164'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) ?d WHERE { { ?f property:P1441 ?d . ?f rdf:type ontology:Q15619164 . ?d rdf:type ontology:Q838948 } UNION { ?f property:P1441 ?d . ?d rdf:type ontology:Q838948 . ?f rdf:type ontology:Q15707583 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:P1441 resource:Q786019 . { { ?e rdf:type ontology:Q15707583 } UNION { ?e rdf:type ontology:Q15619164 } } } } . FILTER ( ?v > ?h ) }
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 and The Bourne Ultimatum are greater number of fictional taxons or abstract beings present in than The Haunting
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 The Haunting
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 ?d WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) ?d WHERE { { ?f property:present_in_work ?d . ?f rdf:type ontology:abstract_being . ?d rdf:type ontology:work_of_art } UNION { ?f property:present_in_work ?d . ?d rdf:type ontology:work_of_art . ?f rdf:type ontology:fictional_taxon } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:present_in_work resource:The_Haunting . { { ?e rdf:type ontology:fictional_taxon } UNION { ?e rdf:type ontology:abstract_being } } } } . FILTER ( ?v > ?h ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q184768
P1441
Q838948 Q15707583 Q15619164
USER
And also tell me about The Godfather Part II?
(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 Q184768
relation P1441
type Q15707583
type Q15619164
[[{'concept': 'Q15707583'}, {'concept': 'Q15619164'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?r ) WHERE { { ?y property:P1441 ?e . ?e rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15707583 } UNION { ?y property:P1441 ?e . ?e rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15619164 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { ?b rdf:type ?j . VALUES ( ?j ) { ( ontology:Q15707583 ) ( ontology:Q15619164 ) } } . ?b property:P1441 resource:Q184768 } } . FILTER ( ?r > ?i ) }
The Godfather Part II
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 The Godfather Part II
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 ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?r ) WHERE { { ?y property:present_in_work ?e . ?e rdf:type ontology:work_of_art . ?y rdf:type ontology:fictional_taxon } UNION { ?y property:present_in_work ?e . ?e rdf:type ontology:work_of_art . ?y rdf:type ontology:abstract_being } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { ?b rdf:type ?j . VALUES ( ?j ) { ( ontology:fictional_taxon ) ( ontology:abstract_being ) } } . ?b property:present_in_work resource:The_Godfather_Part_II } } . FILTER ( ?r > ?i ) }
[]
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 Q184768
relation P1441
type Q15707583
type Q15619164
[ANSWERS]
[[{'concept': 'Q15707583'}, {'concept': 'Q15619164'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?r ) WHERE { { ?y property:P1441 ?e . ?e rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15707583 } UNION { ?y property:P1441 ?e . ?e rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15619164 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { ?b rdf:type ?j . VALUES ( ?j ) { ( ontology:Q15707583 ) ( ontology:Q15619164 ) } } . ?b property:P1441 resource:Q184768 } } . FILTER ( ?r > ?i ) }
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 The Godfather Part II
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 ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?r ) WHERE { { ?y property:present_in_work ?e . ?e rdf:type ontology:work_of_art . ?y rdf:type ontology:fictional_taxon } UNION { ?y property:present_in_work ?e . ?e rdf:type ontology:work_of_art . ?y rdf:type ontology:abstract_being } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { ?b rdf:type ?j . VALUES ( ?j ) { ( ontology:fictional_taxon ) ( ontology:abstract_being ) } } . ?b property:present_in_work resource:The_Godfather_Part_II } } . FILTER ( ?r > ?i ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q192724 Q205028 Q107226
P1441
Q15619164
USER
Which abstract beings are present in those works of art ?
(c(Q15619164),P1441,Q192724) (c(Q15619164),P1441,Q205028) (c(Q15619164),P1441,Q107226)
action filter_type
action find_reverse
entity prev_answer
relation P1441
type Q15619164
[{'concept': 'Q15619164'}, 'P1441', 'Q192724'] [{'concept': 'Q15619164'}, 'P1441', 'Q205028'] [{'concept': 'Q15619164'}, 'P1441', 'Q107226']
SELECT DISTINCT ?w WHERE { VALUES ( ?g ) { ( resource:Q86440 ) ( resource:Q1507513 ) ( resource:Q22665878 ) } . ?w property:P1441 ?g . ?w rdf:type ontology:Q15619164 }
Iron Man Iron Man 2 The Bourne Ultimatum
action filter_type
action find_reverse
entity prev_answer
relation present in work
type abstract being
[{'concept': 'abstract being'}, 'present in work', 'Iron Man'] [{'concept': 'abstract being'}, 'present in work', 'Iron Man 2'] [{'concept': 'abstract being'}, 'present in work', 'The Bourne Ultimatum']
SELECT DISTINCT ?w WHERE { VALUES ( ?g ) { ( resource:The_Tempest ) ( resource:Tremors_3:_Back_to_Perfection ) ( resource:Thor:_Ragnarok ) } . ?w property:present_in_work ?g . ?w rdf:type ontology:abstract_being }
[]
abstract being
Q1059919 Q23895000 Q23895000
SYSTEM
Jason Bourne for 1st, Pepper Potts for 2nd, 3rd
Q23895000 Q23751055 Q1369292 Q23895000 Q1369292 Q1059919 Q7129195
(c(Q15619164),P1441,Q192724) (c(Q15619164),P1441,Q205028) (c(Q15619164),P1441,Q107226)
action filter_type
action find_reverse
entity prev_answer
relation P1441
type Q15619164
[ANSWERS]
[{'concept': 'Q15619164'}, 'P1441', 'Q192724'] [{'concept': 'Q15619164'}, 'P1441', 'Q205028'] [{'concept': 'Q15619164'}, 'P1441', 'Q107226']
SELECT DISTINCT ?w WHERE { VALUES ( ?g ) { ( resource:Q86440 ) ( resource:Q1507513 ) ( resource:Q22665878 ) } . ?w property:P1441 ?g . ?w rdf:type ontology:Q15619164 }
Pepper Potts Guard Phil Coulson Pepper Potts Phil Coulson Jason Bourne Pamela Landy
Jason Bourne, Pepper Potts and Pepper Potts are present in those works of art
Jason Bourne Pepper Potts Pepper Potts
action filter_type
action find_reverse
entity prev_answer
relation present in work
type abstract being
[{'concept': 'abstract being'}, 'present in work', 'Iron Man'] [{'concept': 'abstract being'}, 'present in work', 'Iron Man 2'] [{'concept': 'abstract being'}, 'present in work', 'The Bourne Ultimatum']
SELECT DISTINCT ?w WHERE { VALUES ( ?g ) { ( resource:The_Tempest ) ( resource:Tremors_3:_Back_to_Perfection ) ( resource:Thor:_Ragnarok ) } . ?w property:present_in_work ?g . ?w rdf:type ontology:abstract_being }
[]
Clarification
Simple Question|Single Entity|Indirect
Q23895000
P1080
Q36649
USER
Which visual arts does that abstract being belong to ?
(Q23895000,P1080,c(Q36649))
action filter_type
action find
entity Q23895000
relation P1080
type Q36649
['Q23895000', 'P1080', {'concept': 'Q36649'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q36649 . resource:Q23895000 property:P1080 ?y }
Pepper Potts
action filter_type
action find
entity Pepper Potts
relation from fictional universe
type visual arts
['Pepper Potts', 'from fictional universe', {'concept': 'visual arts'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:visual_arts . resource:Pepper_Potts property:from_fictional_universe ?y }
[]
visual arts
Clarification for simple ques.
Q23895000
SYSTEM
Did you mean Pepper Potts ?
Q1059919 Q23895000 Q23895000
(Q1059919,P1080,c(Q36649)) (Q23895000,P1080,c(Q36649)) (Q23895000,P1080,c(Q36649))
[ANSWER]
['Q1059919', 'P1080', {'concept': 'Q36649'}] ['Q23895000', 'P1080', {'concept': 'Q36649'}] ['Q23895000', 'P1080', {'concept': 'Q36649'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q36649 . resource:Q23895000 property:P1080 ?y }
Jason Bourne Pepper Potts Pepper Potts
Did you mean Pepper Potts ?
Pepper Potts
['Jason Bourne', 'from fictional universe', {'concept': 'visual arts'}] ['Pepper Potts', 'from fictional universe', {'concept': 'visual arts'}] ['Pepper Potts', 'from fictional universe', {'concept': 'visual arts'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:visual_arts . resource:Pepper_Potts property:from_fictional_universe ?y }
[]
Simple Question (Coreferenced)
USER
Yes
(Q23895000,P1080,c(Q36649))
['Q23895000', 'P1080', {'concept': 'Q36649'}]
['Pepper Potts', 'from fictional universe', {'concept': 'visual arts'}]
[]
Q642878
SYSTEM
Marvel Cinematic Universe
Q642878
(Q23895000,P1080,c(Q36649))
action filter_type
action find
entity Q23895000
relation P1080
type Q36649
That abstract being belongs to [ANSWER]
['Q23895000', 'P1080', {'concept': 'Q36649'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q36649 . resource:Q23895000 property:P1080 ?y }
Marvel Cinematic Universe
That abstract being belongs to Marvel Cinematic Universe
Marvel Cinematic Universe
action filter_type
action find
entity Pepper Potts
relation from fictional universe
type visual arts
['Pepper Potts', 'from fictional universe', {'concept': 'visual arts'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:visual_arts . resource:Pepper_Potts property:from_fictional_universe ?y }
[]