Simple Question (Direct)
Simple Question
Q197736
P102
Q7210356
USER
Which party does Rajendra Prasad belong to ?
(Q197736,P102,c(Q7210356))
action filter_type
action find
entity Q197736
relation P102
type Q7210356
['Q197736', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?e WHERE { resource:Q197736 property:P102 ?e . ?e rdf:type ontology:Q7210356 }
Rajendra Prasad
action filter_type
action find
entity Rajendra Prasad
relation member of political party
type political organization
['Rajendra Prasad', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?e WHERE { resource:Rajendra_Prasad property:member_of_political_party ?e . ?e rdf:type ontology:political_organization }
[]
political organization
Q10225
SYSTEM
Indian National Congress
Q10225
(Q197736,P102,c(Q7210356))
action filter_type
action find
entity Q197736
relation P102
type Q7210356
Rajendra Prasad belongs to [ANSWER]
['Q197736', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?e WHERE { resource:Q197736 property:P102 ?e . ?e rdf:type ontology:Q7210356 }
Indian National Congress
Rajendra Prasad belongs to Indian National Congress
Indian National Congress
action filter_type
action find
entity Rajendra Prasad
relation member of political party
type political organization
['Rajendra Prasad', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?e WHERE { resource:Rajendra_Prasad property:member_of_political_party ?e . ?e rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q197736
P39
Q12737077
USER
Which occupation was a position for which that person was appointed ?
(Q10225,P39,c(Q12737077))
action filter_type
action find
entity Q197736
relation P39
type Q12737077
['Q10225', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q197736 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
Rajendra Prasad
action filter_type
action find
entity Rajendra Prasad
relation position held
type occupation
['Indian National Congress', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Rajendra_Prasad property:position_held ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q313383
SYSTEM
President of India
Q313383
(Q10225,P39,c(Q12737077))
action filter_type
action find
entity Q197736
relation P39
type Q12737077
[ANSWER] was a position for which that person was appointed
['Q10225', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q197736 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
President of India
President of India was a position for which that person was appointed
President of India
action filter_type
action find
entity Rajendra Prasad
relation position held
type occupation
['Indian National Congress', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Rajendra_Prasad property:position_held ?o . ?o rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q313383 Q40897
P1001
Q15617994
USER
Is Verano Brianza linked to President of India ?
(Q313383,P1001,Q40897)
action is_in
entity Q40897
action find
entity Q313383
relation P1001
['Q313383', 'P1001', 'Q40897']
ASK WHERE { resource:Q313383 property:P1001 resource:Q40897 }
President of India Verano Brianza
action is_in
entity Verano Brianza
action find
entity President of India
relation applies to jurisdiction
['President of India', 'applies to jurisdiction', 'Verano Brianza']
ASK WHERE { resource:President_of_India property:applies_to_jurisdiction resource:Verano_Brianza }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q313383,P1001,Q40897)
action is_in
entity Q40897
action find
entity Q313383
relation P1001
[ANSWER]
['Q313383', 'P1001', 'Q40897']
ASK WHERE { resource:Q313383 property:P1001 resource:Q40897 }
No
action is_in
entity Verano Brianza
action find
entity President of India
relation applies to jurisdiction
['President of India', 'applies to jurisdiction', 'Verano Brianza']
ASK WHERE { resource:President_of_India property:applies_to_jurisdiction resource:Verano_Brianza }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q838948 Q2342494
USER
Which occupations were the main subjects of atleast 43 works of art and collectables 's work ?
(c(Q838948)|c(Q2342494),P921,c(Q12737077))
action atleast
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
value 43
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?i ) WHERE { ?h rdf:type ?c . VALUES ( ?c ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } GROUP BY ?b } . FILTER ( ?i >= 43 ) }
action atleast
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
value 43
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?i ) WHERE { ?h rdf:type ?c . VALUES ( ?c ) { ( ontology:collectable ) ( ontology:work_of_art ) } } GROUP BY ?b } . FILTER ( ?i >= 43 ) }
[]
occupation work of art collectable
Q33999 Q9402
SYSTEM
actor, ninja
Q33999 Q9402
(c(Q838948)|c(Q2342494),P921,c(Q12737077))
action atleast
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
value 43
[ANSWERS] were the main subjects of atleast 43 works of art and collectables 's work
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?i ) WHERE { ?h rdf:type ?c . VALUES ( ?c ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } GROUP BY ?b } . FILTER ( ?i >= 43 ) }
actor ninja
Actor and ninja were the main subjects of atleast 43 works of art and collectables 's work
actor ninja
action atleast
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
value 43
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?i ) WHERE { ?h rdf:type ?c . VALUES ( ?c ) { ( ontology:collectable ) ( ontology:work_of_art ) } } GROUP BY ?b } . FILTER ( ?i >= 43 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q33999 Q9402
P921
Q838948
USER
Which works of art were primarily based on actor and ninja ?
(c(Q838948),P921,Q33999) (c(Q838948),P921,Q9402)
action union
action filter_type
action find_reverse
entity Q33999
relation P921
type Q838948
action filter_type
action find_reverse
entity Q9402
relation P921
type Q838948
[{'concept': 'Q838948'}, 'P921', 'Q33999'] [{'concept': 'Q838948'}, 'P921', 'Q9402']
SELECT DISTINCT ?u WHERE { VALUES ( ?v ) { ( resource:Q33999 ) ( resource:Q9402 ) } . ?u property:P921 ?v }
actor ninja
action union
action filter_type
action find_reverse
entity actor
relation main subject
type work of art
action filter_type
action find_reverse
entity ninja
relation main subject
type work of art
[{'concept': 'work of art'}, 'main subject', 'actor'] [{'concept': 'work of art'}, 'main subject', 'ninja']
SELECT DISTINCT ?u WHERE { VALUES ( ?v ) { ( resource:actor ) ( resource:ninja ) } . ?u property:main_subject ?v }
[]
work of art
Q166262 Q107761 Q288645
SYSTEM
Batman Begins, You Only Live Twice, G.I. Joe: The Rise of Cobra
Q7522740 Q6346446 Q6544705 Q6763489 Q6534023 Q7644217 Q7232271 Q7208837 Q1999059 Q4101775 Q2996397 Q15728502 Q3498669 Q6580816 Q7750101 Q7728271 Q258126 Q4885932 Q15944402 Q1145421 Q17145438 Q479455 Q19866616 Q7774830 Q3488987 Q18150429 Q4677083 Q18152725 Q19881856 Q5120735 Q3414468 Q5505677 Q15052313 Q10271690 Q7354481 Q4877691 Q18150884 Q1493156 Q6945014 Q7680202 Q5123703 Q16250107 Q592300 Q7711198 Q3369396 Q1550654 Q6690938 Q2928788 Q611137 Q151937 Q3824444 Q16249471 Q18703492 Q6967915 Q3845638 Q5073244 Q4876099 Q17014102 Q17426190 Q7721295 Q2526711 Q3531547 Q819196 Q516222 Q1536550 Q6470475 Q2736281 Q2328936 Q2733515 Q288645 Q7744985 Q5231437 Q107761 Q7038931 Q1645315 Q7755312 Q7413111 Q5369359 Q2599006 Q7038961 Q7825422 Q7038976 Q7238960 Q4658648 Q1758544 Q464315 Q1052531 Q7497703 Q5512041 Q10897320 Q1199756 Q9653404 Q1753761 Q464294 Q464296 Q3877131 Q1146345 Q1767117 Q851810 Q7374369 Q229643 Q229645 Q7749470 Q4296475 Q2620813 Q671631 Q4163169 Q58439 Q3109069 Q12126593 Q1326619 Q1463466 Q14948582 Q7450596 Q464328 Q464326 Q5442731 Q4083150 Q7754218 Q197491 Q8187723 Q2363062 Q5089355 Q1786902 Q426837 Q137984 Q841233 Q7038885 Q6380965 Q5455902 Q1745933 Q1326153 Q1962193 Q15030944 Q1961722 Q166262 Q1473596 Q610159
(c(Q838948),P921,Q33999) (c(Q838948),P921,Q9402)
action union
action filter_type
action find_reverse
entity Q33999
relation P921
type Q838948
action filter_type
action find_reverse
entity Q9402
relation P921
type Q838948
Batman Begins, You Only live Twice and G.I. Joe: The Rise of Cobra were primarily based on actor and ninja
[{'concept': 'Q838948'}, 'P921', 'Q33999'] [{'concept': 'Q838948'}, 'P921', 'Q9402']
SELECT DISTINCT ?u WHERE { VALUES ( ?v ) { ( resource:Q33999 ) ( resource:Q9402 ) } . ?u property:P921 ?v }
Sing Your Song Kage no Hikari Life After Tomorrow Marilyn Leuchtturm des Chaos Superstar in a Housedress Portrait of Gina Pola Negri: Life Is a Dream in Cinema Jackie Chan: My Stunts Searching for Debra Winger A Conversation With Gregory Peck I Know That Voice Stephen Tobolowsky's Birthday Party To Whom It May Concern: Ka Shen's Journey The Man in the Silk Hat The Cruise Traces of a Dragon Ben Johnson: Third Cowboy on the Right Chi Curtain Call That Guy Dick Miller Marlene The Racing Scene The Wild, Wild World of Jayne Mansfield Sois belle et tais-toi The Green Girl Action Boys Mind Meld: Secrets Behind the Voyage of a Life Winning: The Racing Life of Paul Newman Cinema Is Everywhere Bruce Lee: A Warrior's Journey From the Journals of Jean Seberg I Am Divine Elena Rock Hudson's Home Movies Beautiful Darling I Am Nancy Looking for Richard My Big Break Tally Brown, New York City of God – 10 Years Later Elaine Stritch: Shoot Me My Best Fiend That Guy... Who Was in That Thing Patrick Dewaere I Knew It Was You Love Letter to Edie Buster Keaton Rides Again The Legend of Marilyn Monroe My Date with Drew The James Dean Story Cooper & Hemingway: The True Gen To Live for the Masses Nata Sarvabhouma Marcello Mastroianni: I Remember Chaplinesque, My Life and Hard Times Beah: A Black Woman Speaks To Be Takei Shooting Stars The Captains The Scorpion King 3: Battle for Redemption Tongan Ninja Mortal Kombat DOA: Dead or Alive Shinobi: Heart Under Blade Lady Ninja Kasumi The Hunted Red Shadow Azumi G.I. Joe: The Rise of Cobra The Kunoichi: Ninja Girl Owls' Castle You Only Live Twice Ninja Over the Great Wall 3 Ninjas: High Noon at Mega Mountain The Order of the Black Eagle Samurai Spy Fukurō no Shiro Ninja Ninja in the Dragon's Den Torawakamaru the Koga Ninja Ninjas vs. Zombies Pray for Death A Ninja Pays Half My Rent Revenge of the Ninja American Ninja 4: The Annihilation Ninja Scroll Shinobi no Mono G.I. Joe: Ninja Battles Rage of Honor Blood: The Last Vampire Teenage Mutant Ninja Turtles Enter the Ninja American Ninja American Ninja 3: Blood Hunt Alien vs Ninja G.I. Joe: Retaliation The Octagon Beverly Hills Ninja Royal Kill 3 Ninjas Knuckle Up 3 Ninjas Kick Back The Magic Serpent The Ninja Mission Surf Ninjas Ninja Assassin Miami Connection Teenage Mutant Ninja Turtles Ninja Cheerleaders Ninja Turf Teenage Mutant Ninja Turtles II: The Secret of the Ooze Teenage Mutant Ninja Turtles III Ninja: Shadow of a Tear Sengoku Yaro American Ninja 2: The Confrontation American Ninja V Female Ninja Magic: 100 Trampled Flowers White Phantom The Ninja Dragon The Wolverine Kamui Gaiden 3 Ninjas Cheerleader Ninjas Azumi 2: Death or Love Mortal Kombat: Annihilation Goemon RoboCop 3 Ninja Academy Kaze no Bushi Five Element Ninjas The Warrior's Way Norwegian Ninja The Last Dragon Mirai Ninja Ninja III: The Domination Batman Begins Mighty Morphin Power Rangers: The Movie Elektra
Batman Begins, You Only live Twice and G.I. Joe: The Rise of Cobra were primarily based on actor and ninja
Batman Begins You Only Live Twice G.I. Joe: The Rise of Cobra
action union
action filter_type
action find_reverse
entity actor
relation main subject
type work of art
action filter_type
action find_reverse
entity ninja
relation main subject
type work of art
[{'concept': 'work of art'}, 'main subject', 'actor'] [{'concept': 'work of art'}, 'main subject', 'ninja']
SELECT DISTINCT ?u WHERE { VALUES ( ?v ) { ( resource:actor ) ( resource:ninja ) } . ?u property:main_subject ?v }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q166262 Q107761 Q288645
P86
Q502895
USER
Who composed those works of art ?
(Q166262,P86,c(Q502895)) (Q107761,P86,c(Q502895)) (Q288645,P86,c(Q502895))
action filter_type
action find
entity prev_answer
relation P86
type Q502895
['Q166262', 'P86', {'concept': 'Q502895'}] ['Q107761', 'P86', {'concept': 'Q502895'}] ['Q288645', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { VALUES ( ?c ) { ( resource:Q7522740 ) ( resource:Q6346446 ) ( resource:Q6544705 ) } . ?x rdf:type ontology:Q502895 . ?c property:P86 ?x }
Batman Begins You Only Live Twice G.I. Joe: The Rise of Cobra
action filter_type
action find
entity prev_answer
relation composer
type common name
['Batman Begins', 'composer', {'concept': 'common name'}] ['You Only Live Twice', 'composer', {'concept': 'common name'}] ['G.I. Joe: The Rise of Cobra', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { VALUES ( ?c ) { ( resource:Sing_Your_Song ) ( resource:Kage_no_Hikari ) ( resource:Life_After_Tomorrow ) } . ?x rdf:type ontology:common_name . ?c property:composer ?x }
[]
common name
Q111074 Q76364 Q213869
SYSTEM
John Barry, Hans Zimmer, James Newton Howard
Q76364 Q213869 Q111074 Q313537
(Q166262,P86,c(Q502895)) (Q107761,P86,c(Q502895)) (Q288645,P86,c(Q502895))
action filter_type
action find
entity prev_answer
relation P86
type Q502895
[ANSWERS] composed those works of art
['Q166262', 'P86', {'concept': 'Q502895'}] ['Q107761', 'P86', {'concept': 'Q502895'}] ['Q288645', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { VALUES ( ?c ) { ( resource:Q7522740 ) ( resource:Q6346446 ) ( resource:Q6544705 ) } . ?x rdf:type ontology:Q502895 . ?c property:P86 ?x }
Hans Zimmer James Newton Howard John Barry Alan Silvestri
John Barry, Hans Zimmer and James Newton Howard composed those works of art
John Barry Hans Zimmer James Newton Howard
action filter_type
action find
entity prev_answer
relation composer
type common name
['Batman Begins', 'composer', {'concept': 'common name'}] ['You Only Live Twice', 'composer', {'concept': 'common name'}] ['G.I. Joe: The Rise of Cobra', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { VALUES ( ?c ) { ( resource:Sing_Your_Song ) ( resource:Kage_no_Hikari ) ( resource:Life_After_Tomorrow ) } . ?x rdf:type ontology:common_name . ?c property:composer ?x }
[]
Clarification
Simple Question|Single Entity|Indirect
Q213869
P1303
Q34379
USER
Which musical instrument can that person perform with ?
(Q213869,P1303,c(Q34379))
action filter_type
action find
entity Q213869
relation P1303
type Q34379
['Q213869', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { resource:Q213869 property:P1303 ?v . ?v rdf:type ontology:Q34379 }
James Newton Howard
action filter_type
action find
entity James Newton Howard
relation instrument
type musical instrument
['James Newton Howard', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { resource:James_Newton_Howard property:instrument ?v . ?v rdf:type ontology:musical_instrument }
[]
musical instrument
Clarification for simple ques.
Q213869
SYSTEM
Did you mean James Newton Howard ?
Q111074 Q76364 Q213869
(Q111074,P1303,c(Q34379)) (Q76364,P1303,c(Q34379)) (Q213869,P1303,c(Q34379))
[ANSWER]
['Q111074', 'P1303', {'concept': 'Q34379'}] ['Q76364', 'P1303', {'concept': 'Q34379'}] ['Q213869', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { resource:Q213869 property:P1303 ?v . ?v rdf:type ontology:Q34379 }
John Barry Hans Zimmer James Newton Howard
Did you mean James Newton Howard ?
James Newton Howard
['John Barry', 'instrument', {'concept': 'musical instrument'}] ['Hans Zimmer', 'instrument', {'concept': 'musical instrument'}] ['James Newton Howard', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { resource:James_Newton_Howard property:instrument ?v . ?v rdf:type ontology:musical_instrument }
[]
Simple Question (Coreferenced)
USER
Yes
(Q213869,P1303,c(Q34379))
['Q213869', 'P1303', {'concept': 'Q34379'}]
['James Newton Howard', 'instrument', {'concept': 'musical instrument'}]
[]
Q5994
SYSTEM
piano
Q5994
(Q213869,P1303,c(Q34379))
action filter_type
action find
entity Q213869
relation P1303
type Q34379
That person can perform a [ANSWER]
['Q213869', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { resource:Q213869 property:P1303 ?v . ?v rdf:type ontology:Q34379 }
piano
That person can perform a piano
piano
action filter_type
action find
entity James Newton Howard
relation instrument
type musical instrument
['James Newton Howard', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { resource:James_Newton_Howard property:instrument ?v . ?v rdf:type ontology:musical_instrument }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q5994 Q1903703
P61
Q502895
USER
Was Martin Espenhorst the inventor or discoverer of that musical instrument ?
(Q5994,P61,Q1903703)
action is_in
entity Q1903703
action find
entity Q5994
relation P61
['Q5994', 'P61', 'Q1903703']
ASK WHERE { resource:Q5994 property:P61 resource:Q1903703 }
piano Martin Espenhorst
action is_in
entity Martin Espenhorst
action find
entity piano
relation discoverer or inventor
['piano', 'discoverer or inventor', 'Martin Espenhorst']
ASK WHERE { resource:piano property:discoverer_or_inventor resource:Martin_Espenhorst }
[]
common name
SYSTEM
NO
(Q5994,P61,Q1903703)
action is_in
entity Q1903703
action find
entity Q5994
relation P61
[ANSWER]
['Q5994', 'P61', 'Q1903703']
ASK WHERE { resource:Q5994 property:P61 resource:Q1903703 }
No
action is_in
entity Martin Espenhorst
action find
entity piano
relation discoverer or inventor
['piano', 'discoverer or inventor', 'Martin Espenhorst']
ASK WHERE { resource:piano property:discoverer_or_inventor resource:Martin_Espenhorst }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q183 Q213869
P86 P495
Q838948
USER
Which works of art have James Newton Howard as the composer and do n't have Germany as their origination points ?
AND((c(Q838948),P86,Q213869), NOT((c(Q838948),P495,Q183)))
action filter_type
action difference
action find_reverse
entity Q213869
relation P86
action find_reverse
entity Q183
relation P495
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P86', 'Q213869'], {'NOT': [[{'concept': 'Q838948'}, 'P495', 'Q183']]}]}
SELECT DISTINCT ?o WHERE { ?o property:P86 resource:Q213869 . FILTER NOT EXISTS { ?o property:P495 resource:Q183 } . ?o rdf:type ontology:Q838948 }
Germany James Newton Howard
action filter_type
action difference
action find_reverse
entity James Newton Howard
relation composer
action find_reverse
entity Germany
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'composer', 'James Newton Howard'], {'NOT': [[{'concept': 'work of art'}, 'country of origin', 'Germany']]}]}
SELECT DISTINCT ?o WHERE { ?o property:composer resource:James_Newton_Howard . FILTER NOT EXISTS { ?o property:country_of_origin resource:Germany } . ?o rdf:type ontology:work_of_art }
[]
work of art
Q743487 Q15409303 Q1350631 Q1355172 Q282069 Q1160813 Q289598 Q494048 Q1542548 Q163872
SYSTEM
Some of them are One Fine Day, Pawn Sacrifice, Off Limits, Wyatt Earp, A Perfect Murder, Runaway Bride, Falling Down, The Bourne Legacy, Grand Canyon, The Dark Knight
Q21869840 Q129265 Q1355172 Q1256231 Q1364029 Q472313 Q681092 Q1153280 Q1455280 Q137595 Q1542548 Q1122688 Q3031698 Q1458649 Q574583 Q2093029 Q1350631 Q914247 Q166262 Q629975 Q621529 Q903885 Q21168538 Q1425483 Q18199330 Q2624954 Q628139 Q1305299 Q1213621 Q822057 Q22432 Q332798 Q2365600 Q743487 Q514348 Q1254088 Q432582 Q464861 Q1475275 Q1535251 Q16249654 Q977750 Q833299 Q3365474 Q478944 Q273568 Q650613 Q110203 Q624603 Q969425 Q26665 Q1961833 Q2935610 Q18485021 Q494048 Q109110 Q224647 Q18356955 Q923343 Q852963 Q2713478 Q975358 Q1356402 Q7976904 Q212965 Q694140 Q660890 Q1160813 Q10307713 Q814295 Q1198844 Q272595 Q63009 Q1547384 Q183063 Q634115 Q3211250 Q738152 Q1345359 Q212689 Q539658 Q666182 Q261899 Q163872 Q207659 Q918380 Q1659511 Q2079635 Q282069 Q2067091 Q477523 Q931158 Q760229 Q465227 Q1090108 Q1342027 Q274904 Q11593 Q318975 Q785249 Q172271 Q495513 Q156309 Q289598 Q842094 Q382864 Q582147 Q467631 Q1768470 Q15154975 Q733722 Q4142083 Q736239 Q3407424 Q1195571 Q844068 Q15409303 Q207954 Q1165516 Q129283 Q2624856
AND((c(Q838948),P86,Q213869), NOT((c(Q838948),P495,Q183)))
action filter_type
action difference
action find_reverse
entity Q213869
relation P86
action find_reverse
entity Q183
relation P495
type Q838948
[ANSWERS] have James Newton Howard as the composer and do n't have Germany as their origination points
{'AND': [[{'concept': 'Q838948'}, 'P86', 'Q213869'], {'NOT': [[{'concept': 'Q838948'}, 'P495', 'Q183']]}]}
SELECT DISTINCT ?o WHERE { ?o property:P86 resource:Q213869 . FILTER NOT EXISTS { ?o property:P495 resource:Q183 } . ?o rdf:type ontology:Q838948 }
Split Junior Wyatt Earp Dreamcatcher Peter Pan The Interpreter The Happening The Package French Kiss Mumford Grand Canyon The Postman Nobody's Fool Muppets from Space The Hunger Games: Catching Fire Restoration Off Limits Dante's Peak Batman Begins The Tourist Lady in the Water Green Lantern Jack Reacher: Never Go Back Five Corners Fantastic Beasts and Where to Find Them Everybody's All-American Salt Fathers' Day Major League Primal Fear Signs Alive Head Office One Fine Day Flatliners After Earth Water for Elephants American Heart The Juror The Water Horse Cut Bank Hidalgo My Girl Parkland Tap Charlie Wilson's War Unbreakable Collateral Snow White and the Huntsman Mad Money Wildcats Coupe de Ville Campus Man The Huntsman: Winter's War The Bourne Legacy Marked for Death The Devil's Advocate Concussion RV Confessions of a Shopaholic Unconditional Love Stir of Echoes Vertical Limit Wayward Son The Hunger Games Michael Clayton Guilty by Suspicion Runaway Bride The Hunger Games: Mockingjay – Part 2 Intersection The Trigger Effect Waterworld The Prince of Tides Night and the City The Sixth Sense Tough Guys Diggstown The Green Hornet Dying Young I Am Legend Dave Inhale The Emperor's Club The Dark Knight Space Jam My Best Friend's Wedding Just Cause Darling Companion A Perfect Murder Russkies Three Men and a Little Lady The Lookout Eye for an Eye The Village Big Trouble The Saint of Fort Washington 8 Million Ways to Die The Last Airbender Atlantis: The Lost Empire Nanny McPhee and the Big Bang Maleficent Outbreak The Fugitive Falling Down Defiance Larry Crowne Snow Falling on Cedars America's Sweethearts The Great Debaters Nightcrawler Love and Other Drugs The Hunger Games: Mockingjay – Part 1 Freedomland Promised Land The Man in the Moon Glengarry Glen Ross Pawn Sacrifice Pretty Woman Duplicity King Ralph Some Girls
One Fine Day, Pawn Sacrifice, Off Limits, Wyatt Earp, A Perfect Murder, Runaway Bride, Falling Down, The Bourne Legacy, Grand Canyon and The Dark Knight have James Newton Howard as the composer and do n't have Germany as their origination points
One Fine Day Pawn Sacrifice Off Limits Wyatt Earp A Perfect Murder Runaway Bride Falling Down The Bourne Legacy Grand Canyon The Dark Knight
action filter_type
action difference
action find_reverse
entity James Newton Howard
relation composer
action find_reverse
entity Germany
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'composer', 'James Newton Howard'], {'NOT': [[{'concept': 'work of art'}, 'country of origin', 'Germany']]}]}
SELECT DISTINCT ?o WHERE { ?o property:composer resource:James_Newton_Howard . FILTER NOT EXISTS { ?o property:country_of_origin resource:Germany } . ?o rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q313383
P39 P21
Q502895
USER
Which people were appointed for the position of President of India and are a male ?
AND((c(Q502895),P39,Q313383), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q313383
relation P39
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P39', 'Q313383'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?x WHERE { ?x property:P21 resource:Q6581097 . ?x property:P39 resource:Q313383 . ?x rdf:type ontology:Q502895 }
male President of India
action filter_type
action intersection
action find_reverse
entity President of India
relation position held
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'position held', 'President of India'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?x WHERE { ?x property:gender resource:male . ?x property:position_held resource:President_of_India . ?x rdf:type ontology:common_name }
[]
common name
Q312557 Q197736 Q557749 Q336913 Q144732 Q317778 Q57446 Q297950 Q235454 Q332157
SYSTEM
Some of them are V. V. Giri, Rajendra Prasad, Mohammad Hidayatullah, Neelam Sanjiva Reddy, Zakir Hussain, Fakhruddin Ali Ahmed, Pranab Mukherjee, R. Venkataraman, K. R. Narayanan, Shankar Dayal Sharma
Q9513 Q197736 Q557749 Q317778 Q334851 Q336913 Q156349 Q312557 Q555247 Q57446 Q235454 Q332157 Q297950 Q144732
AND((c(Q502895),P39,Q313383), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q313383
relation P39
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS]
{'AND': [[{'concept': 'Q502895'}, 'P39', 'Q313383'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?x WHERE { ?x property:P21 resource:Q6581097 . ?x property:P39 resource:Q313383 . ?x rdf:type ontology:Q502895 }
A. P. J. Abdul Kalam Rajendra Prasad Mohammad Hidayatullah Fakhruddin Ali Ahmed Zail Singh Neelam Sanjiva Reddy Sarvepalli Radhakrishnan V. V. Giri Basappa Danappa Jatti Pranab Mukherjee K. R. Narayanan Shankar Dayal Sharma R. Venkataraman Zakir Hussain
V. Giri, Rajendra Prasad, Mohammad Hidayatullah, Neelam Sanjiva Reddy, Zakir Hussain, Fakhruddin Ali Ahmed, Pranab Mukherjee, R. Venkataraman, K. R. Narayanan and Shankar Dayal Sharma were appointed for the position of President of India and are a male
V. V. Giri Rajendra Prasad Mohammad Hidayatullah Neelam Sanjiva Reddy Zakir Hussain Fakhruddin Ali Ahmed Pranab Mukherjee R. Venkataraman K. R. Narayanan Shankar Dayal Sharma
action filter_type
action intersection
action find_reverse
entity President of India
relation position held
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'position held', 'President of India'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?x WHERE { ?x property:gender resource:male . ?x property:position_held resource:President_of_India . ?x rdf:type ontology:common_name }
[]