Simple Question (Direct)
Simple Question
Q15999831
P641
Q349
USER
Which sport did Chris Foote participate in ?
(Q15999831,P641,c(Q349))
action filter_type
action find
entity Q15999831
relation P641
type Q349
['Q15999831', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q15999831 property:P641 ?r . ?r rdf:type ontology:Q349 }
Chris Foote
action filter_type
action find
entity Chris Foote
relation sport
type sport
['Chris Foote', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Chris_Foote property:sport ?r . ?r rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q15999831,P641,c(Q349))
action filter_type
action find
entity Q15999831
relation P641
type Q349
Chris Foote participated in [ANSWER]
['Q15999831', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q15999831 property:P641 ?r . ?r rdf:type ontology:Q349 }
association football
Chris Foote participated in association football
association football
action filter_type
action find
entity Chris Foote
relation sport
type sport
['Chris Foote', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Chris_Foote property:sport ?r . ?r rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15999831
P21
Q290
USER
Which sex does Chris Foote have ?
(Q15999831,P21,c(Q290))
action filter_type
action find
entity Q15999831
relation P21
type Q290
['Q15999831', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q15999831 property:P21 ?h . ?h rdf:type ontology:Q290 }
Chris Foote
action filter_type
action find
entity Chris Foote
relation gender
type sex
['Chris Foote', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Chris_Foote property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q15999831,P21,c(Q290))
action filter_type
action find
entity Q15999831
relation P21
type Q290
Chris Foote has a [ANSWER]
['Q15999831', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q15999831 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
Chris Foote has a male
male
action filter_type
action find
entity Chris Foote
relation gender
type sex
['Chris Foote', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Chris_Foote property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17399005
Q290
USER
And how about Isaac van der Vinne?
(Q17399005,P21,c(Q290))
action filter_type
action find
entity Q17399005
relation P21
type Q290
['Q17399005', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q290 . resource:Q17399005 property:P21 ?s }
Isaac van der Vinne
action filter_type
action find
entity Isaac van der Vinne
relation gender
type sex
['Isaac van der Vinne', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:sex . resource:Isaac_van_der_Vinne property:gender ?s }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q17399005,P21,c(Q290))
action filter_type
action find
entity Q17399005
relation P21
type Q290
[ANSWER]
['Q17399005', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q290 . resource:Q17399005 property:P21 ?s }
male
male
action filter_type
action find
entity Isaac van der Vinne
relation gender
type sex
['Isaac van der Vinne', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:sex . resource:Isaac_van_der_Vinne property:gender ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17399005
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q17399005
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q17399005 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Isaac van der Vinne
action filter_type
action find
entity Isaac van der Vinne
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Isaac_van_der_Vinne property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55
SYSTEM
Netherlands
Q55
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q17399005
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q17399005 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Netherlands
Netherlands is the country of citizenship of that person
Netherlands
action filter_type
action find
entity Isaac van der Vinne
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Isaac_van_der_Vinne property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q55 Q19006220
P17
Q34442
USER
Is De Bullstraat present in that administrative territory ?
(Q19006220,P17,Q55)
action is_in
entity Q55
action find
entity Q19006220
relation P17
['Q19006220', 'P17', 'Q55']
ASK WHERE { resource:Q19006220 property:P17 resource:Q55 }
Netherlands De Bullstraat
action is_in
entity Netherlands
action find
entity De Bullstraat
relation country
['De Bullstraat', 'country', 'Netherlands']
ASK WHERE { resource:De_Bullstraat property:country resource:Netherlands }
[]
road
SYSTEM
YES
(Q19006220,P17,Q55)
action is_in
entity Q55
action find
entity Q19006220
relation P17
[ANSWER]
['Q19006220', 'P17', 'Q55']
ASK WHERE { resource:Q19006220 property:P17 resource:Q55 }
Yes
action is_in
entity Netherlands
action find
entity De Bullstraat
relation country
['De Bullstraat', 'country', 'Netherlands']
ASK WHERE { resource:De_Bullstraat property:country resource:Netherlands }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q55
P530
Q1048835
USER
Which political territories have ambassadorial relations with Netherlands ?
(c(Q1048835),P530,Q55)
action filter_type
action find
entity Q55
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q55']
SELECT DISTINCT ?z WHERE { resource:Q55 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Netherlands
action filter_type
action find
entity Netherlands
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Netherlands']
SELECT DISTINCT ?z WHERE { resource:Netherlands property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
(c(Q1048835),P530,Q55)
action filter_type
action find
entity Q55
relation P530
type Q1048835
[ANSWERS] have ambassadorial relations with Netherlands
[{'concept': 'Q1048835'}, 'P530', 'Q55']
SELECT DISTINCT ?z WHERE { resource:Q55 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Australia Germany
Australia and Germany have ambassadorial relations with Netherlands
Australia Germany
action filter_type
action find
entity Netherlands
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Netherlands']
SELECT DISTINCT ?z WHERE { resource:Netherlands property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q408 Q183
P915
Q838948
USER
Which works of art were filmed at Australia and Germany ?
(c(Q838948),P915,Q408) (c(Q838948),P915,Q183)
action union
action filter_type
action find_reverse
entity Q408
relation P915
type Q838948
action filter_type
action find_reverse
entity Q183
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q408'] [{'concept': 'Q838948'}, 'P915', 'Q183']
SELECT DISTINCT ?o WHERE { { ?o property:P915 resource:Q408 . ?o rdf:type ontology:Q838948 } UNION { ?o property:P915 resource:Q183 . ?o rdf:type ontology:Q838948 } }
Australia Germany
action union
action filter_type
action find_reverse
entity Australia
relation filming location
type work of art
action filter_type
action find_reverse
entity Germany
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Australia'] [{'concept': 'work of art'}, 'filming location', 'Germany']
SELECT DISTINCT ?o WHERE { { ?o property:filming_location resource:Australia . ?o rdf:type ontology:work_of_art } UNION { ?o property:filming_location resource:Germany . ?o rdf:type ontology:work_of_art } }
[]
work of art
Q18407657 Q159063 Q3521099
SYSTEM
Captain America: Civil War, The Reader, The Grand Budapest Hotel
Q3422730 Q6986572 Q1467545 Q3429521 Q18611372 Q115993 Q3232062 Q2579375 Q7728500 Q19874606 Q926678 Q1091580 Q200873 Q622742 Q16961093 Q1140738 Q189505 Q17014394 Q1305119 Q6376051 Q930294 Q1660083 Q15411503 Q19573090 Q2819997 Q17015508 Q83730 Q7203385 Q19007199 Q7719728 Q5433095 Q731335 Q4956299 Q3283835 Q690463 Q1400892 Q1029548 Q2548513 Q612373 Q6960773 Q132374 Q6691811 Q1148499 Q580351 Q12126894 Q679679 Q505790 Q3520813 Q7617526 Q18350575 Q429934 Q15972938 Q7785141 Q2894960 Q18389586 Q945685 Q4959331 Q962592 Q426663 Q93876 Q4778174 Q1515931 Q24154 Q7093117 Q180337 Q1783930 Q6929084 Q980327 Q207536 Q2710763 Q5207857 Q1364029 Q685694 Q7379502 Q1632707 Q1346439 Q17379618 Q7622858 Q1680405 Q6122574 Q18166039 Q7770748 Q1114179 Q2986009 Q5242390 Q15140361 Q198560 Q15039765 Q1249239 Q10350033 Q221491 Q600253 Q6412332 Q7757326 Q845077 Q42051 Q16172886 Q6477009 Q2565495 Q623072 Q798641 Q5447888 Q14921984 Q217552 Q7142697 Q5187761 Q255328 Q83495 Q172260 Q936302 Q7709495 Q18636742 Q3176350 Q391143 Q1356265 Q5190184 Q5212753 Q1198545 Q1755928 Q12125270 Q2902017 Q12125818 Q5042347 Q1537088 Q5897662 Q12126705 Q5016137 Q720724 Q3007933 Q16985835 Q20002353 Q158398 Q17052588 Q197491 Q1421747 Q15039629 Q4877736 Q275180 Q4178880 Q1144962 Q15973073 Q7560679 Q737318 Q16679516 Q4898722 Q3028325 Q5141012 Q7972859 Q469624 Q6672759 Q7295920 Q1692212 Q177340 Q796792 Q5912157 Q5256327 Q41754 Q1469774 Q2893302 Q3503837 Q746538 Q3111799 Q1144983 Q181069 Q2767704 Q1170071 Q15146380 Q7961003 Q3421998 Q1130317 Q5256446 Q1134648 Q1473596 Q7418710 Q19874556 Q1302032 Q250971 Q14952480 Q13564191 Q1347086 Q216269 Q652251 Q677347 Q167411 Q313819 Q7745749 Q5896770 Q6750834 Q21065355 Q3560411 Q3560415 Q842720 Q18407657 Q1430155 Q1454148 Q3016883 Q16249045 Q421583 Q3206615 Q926309 Q5395738 Q1169101 Q12123479 Q185658 Q7879141 Q3346699 Q627209 Q1806709 Q488316 Q1467237 Q3088260 Q637849 Q498442 Q666707 Q270061 Q16494458 Q188159 Q170268 Q16249196 Q153723 Q2394581 Q694781 Q498287 Q3246496 Q14511981 Q892039 Q2251852 Q157879 Q18067135 Q158023 Q671718 Q180416 Q228554 Q4656385 Q19315473 Q17014725 Q760989 Q1192054 Q15140361 Q204398 Q5967392 Q7758601 Q705871 Q541354 Q107914 Q4407383 Q1637791 Q474425 Q15715216 Q971985 Q15040678 Q158759 Q164813 Q166696 Q1195819 Q671631 Q12485037 Q1524596 Q1283810 Q490076 Q540624 Q895543 Q455555 Q936327 Q3210569 Q314942 Q571583 Q1218840 Q2500178 Q16251439 Q1171442 Q797445 Q2906966 Q378754 Q4536024 Q1203252 Q18713033 Q1575773 Q1630478 Q158398 Q325648 Q159063 Q819084 Q2524426 Q546900 Q7138266 Q207916 Q313764 Q309248 Q587566 Q3521099 Q7924385 Q4666737 Q12137068 Q6818502 Q535628 Q5943675 Q664234 Q478793 Q5002116 Q3352751 Q3045056 Q1033396 Q7749543 Q152857 Q481310 Q679833 Q127021 Q15040657 Q643847 Q163549 Q5619208
(c(Q838948),P915,Q408) (c(Q838948),P915,Q183)
action union
action filter_type
action find_reverse
entity Q408
relation P915
type Q838948
action filter_type
action find_reverse
entity Q183
relation P915
type Q838948
[ANSWERS] were filmed at Australia and Germany
[{'concept': 'Q838948'}, 'P915', 'Q408'] [{'concept': 'Q838948'}, 'P915', 'Q183']
SELECT DISTINCT ?o WHERE { { ?o property:P915 resource:Q408 . ?o rdf:type ontology:Q838948 } UNION { ?o property:P915 resource:Q183 . ?o rdf:type ontology:Q838948 } }
Red Hill Needle See No Evil Unnale Unnale Fat Pizza vs. Housos Tomorrow, When the War Began Love in Space Suburban Mayhem The Custodian Infini The Cars That Ate Paris The Island of Dr. Moreau The Lost World: Jurassic Park Where the Wild Things Are Locker The Crocodile Hunter: Collision Course Jaws Predestination Fool's Gold Kath & Kimderella My Brilliant Career Last Ride The Water Diviner Mountains May Depart Aadavari Matalaku Arthale Verule Nerve December Boys Playing Beatie Bow The Wilding The Boys Family Demons The Pirate Movie Bran Nue Dae Puberty Blues Lantana Feed Chak De! India Romulus, My Father Fortress Nala Damayanthi Inspector Gadget 2 Love in Perth Stealth Sanctum Peaches House of Wax Mission: Impossible II The Eye of the Storm Stir Love Lies Bleeding Pitch Black Gods of Egypt Thirst A Girl in Australia The Dressmaker Red Planet Break of Day Sniper Mad Max Beyond Thunderdome The Condemned Any Questions for Ben? Rogue Van Diemen's Land One Perfect Day The Proposition Triangle Mr. Perfect The Clinic The Matrix Revolutions Road Kill Dad and Dave: On Our Selection Peter Pan Bachna Ae Haseeno Run Chrissie Run! The Reef Strictly Ballroom The Moon and the Sun Street Hero The Boys Are Back Jaggubhai Lemon Tree Passage The Turning Return to the Blue Lagoon Beneath Hill 60 Dawn! Porobashinee A Few Best Men The Fire In The Stone Evil Angels Pirates of the Caribbean: Dead Men Tell No Tales The Thin Red Line The Hard Word King of the Coral Sea The Place at the Coast Dead Calm Star Wars: Episode III – Revenge of the Sith Crush Lake Mungo Newcastle Aquamarine Bad Boy Bubby Fighting Fear The Reckoning X-Men Origins: Wolverine Passion Crook The Adventures of Priscilla, Queen of the Desert The Matrix Singularity Scooby-Doo Thalaivaa The Light Between Oceans Jedda Chinese Zodiac Ghost Ship Crush Damned by Dawn The Sundowners The Black Balloon Journey Out of Darkness Welcome to Woop Woop Look Both Ways The Rover Gone Hoodwink Offside Cactus Babe Garage Days The Inbetweeners 2 Performance Anxiety Iron Sky Love of My Life The Wolverine Picnic at Hanging Rock Healing Beautiful Kate Australia The Railway Man Police Story 4: First Strike San Andreas Son of a Gun Salaam Namaste The Dying of the Light Betty Blokk-buster Follies Dingo Coffin Rock Wasted on the Young Planet of the Apes Long John Silver Rats in the Ranks Malcolm Nim's Island BMX Bandits Hotel de Love Demonstrator Ghost Rider On the Beach Beautiful Sunday Too Far Away Race the Sun Indian Animal Kingdom Star Wars Episode II: Attack of the Clones Free Willy: Escape from Pirate's Cove The Phantom Unbroken Wake in Fright Reckless Kelly The Marine Den Orange Mighty Morphin Power Rangers: The Movie Sankham In the Winter Dark Chicken with Plums Young Goethe in Love Early to Bed 102 Years in the Heart of Europe: A Portrait of Ernst Jünger Slasher 23 Nekromantik The Countess The Counterfeiters Anonymous The Last Escape Honor Bound Manniac Look Who's Back Violent Shit II: Mother Hold My Hand Violent Shit Hostel Captain America: Civil War The Angel's Melancholy Free Land Passion Unfinished Business Lore Beauty and the Beast Brüno Errors of the Human Body Dr. M Fuck for Forest Indiana Jones and the Last Crusade Ullasa Paravaigal Nymphomaniac Rollerball Last Hippie Standing Anatomy Ruby Cairo Pola X The Damned Spaceballs The Bridesmaid 7 Zwerge – Der Wald ist nicht genug Run Boy Run A Dangerous Method Hanna Amour Fou Inglourious Basterds Les Misérables The American Friend Hansel and Gretel: Witch Hunters House of Boys The Book Thief Bon Appétit F for Fake The Ghost Writer Bridge of Spies The White Ribbon The Search Das Experiment Trains'n'Roses A Defeated People Snowden Under the Pavement Lies the Strand Moscow on the Hudson The Holcroft Covenant Porobashinee Octopussy I, Anna The Prosecutor Hallers The Edge of Heaven Faust Diamonds Are Forever Monuments Men Chitty Chitty Bang Bang Nekromantik 2 Hitman: Agent 47 Target The Voices Unknown Perfume: The Story of a Murderer The Baader Meinhof Complex $ Ninja Assassin Habibie & Ainun Chalet Girl One, Two, Three Night Crossing Germany, Year Zero Among Vultures Anatomy 2 Willy Wonka & the Chocolate Factory The Mark of the Angels – Miserere Pandorum Laser Mission The Last Company Urban Explorer A Hologram for the King The Silence Baader Blood Trails The Church The Apparition Don 2 Hunter's Prayer Hannah Arendt The Good Neighbour Iron Sky Head-On The Reader Before the Fall Viktor Vogel – Commercial Man Suspiria Parker Tomorrow Never Dies The Tin Drum The Three Musketeers Stroszek The Grand Budapest Hotel Via Mala Abendland The Eye of Evil Mercilessly Betrayed First Spaceship on Venus Az Karkheh ta Rhein Itinéraire d'un enfant gâté Berlin 36 Buster's Bedroom Only Lovers Left Alive Disengagement Cannibal The Magician of Lublin Downfall Visions of Eight Black Death M K3: Prison of Hell Smilla's Sense of Snow Black Book Gunner Palace
Captain America: Civil War, The Reader and The Grand Budapest Hotel were filmed at Australia and Germany
Captain America: Civil War The Reader The Grand Budapest Hotel
action union
action filter_type
action find_reverse
entity Australia
relation filming location
type work of art
action filter_type
action find_reverse
entity Germany
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Australia'] [{'concept': 'work of art'}, 'filming location', 'Germany']
SELECT DISTINCT ?o WHERE { { ?o property:filming_location resource:Australia . ?o rdf:type ontology:work_of_art } UNION { ?o property:filming_location resource:Germany . ?o rdf:type ontology:work_of_art } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q159063
P921
Q198
USER
What was that work of art mainly about ?
(Q159063,P921,c(Q198))
action filter_type
action find
entity Q159063
relation P921
type Q198
['Q159063', 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ?b WHERE { resource:Q159063 property:P921 ?b . ?b rdf:type ontology:Q198 }
The Reader
action filter_type
action find
entity The Reader
relation main subject
type war
['The Reader', 'main subject', {'concept': 'war'}]
SELECT DISTINCT ?b WHERE { resource:The_Reader property:main_subject ?b . ?b rdf:type ontology:war }
[]
war
Clarification for simple ques.
Q18407657
SYSTEM
Did you mean Captain America: Civil War ?
Q18407657 Q159063 Q3521099
(Q18407657,P921,c(Q198)) (Q159063,P921,c(Q198)) (Q3521099,P921,c(Q198))
[ANSWER]
['Q18407657', 'P921', {'concept': 'Q198'}] ['Q159063', 'P921', {'concept': 'Q198'}] ['Q3521099', 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ?b WHERE { resource:Q159063 property:P921 ?b . ?b rdf:type ontology:Q198 }
Captain America: Civil War The Reader The Grand Budapest Hotel
Did you mean Captain America: Civil War ?
Captain America: Civil War
['Captain America: Civil War', 'main subject', {'concept': 'war'}] ['The Reader', 'main subject', {'concept': 'war'}] ['The Grand Budapest Hotel', 'main subject', {'concept': 'war'}]
SELECT DISTINCT ?b WHERE { resource:The_Reader property:main_subject ?b . ?b rdf:type ontology:war }
[]
Simple Question (Coreferenced)
USER
No, I meant The Reader. Could you tell me the answer for that?
(Q159063,P921,c(Q198))
Q159063
['Q159063', 'P921', {'concept': 'Q198'}]
['The Reader', 'main subject', {'concept': 'war'}]
[]
Q362
SYSTEM
World War II
Q362
(Q159063,P921,c(Q198))
action filter_type
action find
entity Q159063
relation P921
type Q198
Mainly that work of art about was in [ANSWER]
['Q159063', 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ?b WHERE { resource:Q159063 property:P921 ?b . ?b rdf:type ontology:Q198 }
World War II
Mainly that work of art about was in World War II
World War II
action filter_type
action find
entity The Reader
relation main subject
type war
['The Reader', 'main subject', {'concept': 'war'}]
SELECT DISTINCT ?b WHERE { resource:The_Reader property:main_subject ?b . ?b rdf:type ontology:war }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P361
Q198 Q618779 Q178561
USER
Which wars are lesser number of awards and battles a component of than that war ?
(c(Q618779)|c(Q178561),P361,c(Q198))
action less
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q618779
action find_reverse_tuple_counts
relation P361
type Q198
type Q178561
action count
action filter_multi_types
action find_reverse
entity Q362
relation P361
type Q618779
type Q178561
[[{'concept': 'Q618779'}, {'concept': 'Q178561'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?s WHERE { { ?s rdf:type ontology:Q198 . ?t rdf:type ontology:Q618779 . ?t property:P361 ?s } UNION { ?t property:P361 ?s . ?t rdf:type ontology:Q178561 . ?s rdf:type ontology:Q198 } } GROUP BY ?s } . FILTER ( ?l < ?p ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { ?f property:P361 resource:Q362 . { ?f rdf:type ?d . VALUES ( ?d ) { ( ontology:Q618779 ) ( ontology:Q178561 ) } } } } }
action less
action union
action find_reverse_tuple_counts
relation part of
type war
type award
action find_reverse_tuple_counts
relation part of
type war
type battle
action count
action filter_multi_types
action find_reverse
entity World War II
relation part of
type award
type battle
[[{'concept': 'award'}, {'concept': 'battle'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?s WHERE { { ?s rdf:type ontology:war . ?t rdf:type ontology:award . ?t property:part_of ?s } UNION { ?t property:part_of ?s . ?t rdf:type ontology:battle . ?s rdf:type ontology:war } } GROUP BY ?s } . FILTER ( ?l < ?p ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { ?f property:part_of resource:World_War_II . { ?f rdf:type ?d . VALUES ( ?d ) { ( ontology:award ) ( ontology:battle ) } } } } }
[]
war award battle
Q545449 Q17984356 Q17507684
SYSTEM
Iraq War, Iraqi Civil War, military intervention against ISIL
Q8683 Q211855 Q4783165 Q795269 Q3778746 Q920894 Q81545 Q10859 Q18121212 Q361 Q1021160 Q17984356 Q1072889 Q1758829 Q209297 Q242352 Q2105495 Q5334383 Q178810 Q545449 Q2658255 Q16954835 Q208484 Q1432624 Q2086498 Q1238338 Q15059994 Q1049945 Q8676 Q1127302 Q1052332 Q475678 Q743768 Q213394 Q17507684 Q179975 Q18159629 Q2672972 Q243620 Q79911
(c(Q618779)|c(Q178561),P361,c(Q198))
action less
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q618779
action find_reverse_tuple_counts
relation P361
type Q198
type Q178561
action count
action filter_multi_types
action find_reverse
entity Q362
relation P361
type Q618779
type Q178561
[ANSWERS] are lesser number of awards and battles a component of than that war
[[{'concept': 'Q618779'}, {'concept': 'Q178561'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?s WHERE { { ?s rdf:type ontology:Q198 . ?t rdf:type ontology:Q618779 . ?t property:P361 ?s } UNION { ?t property:P361 ?s . ?t rdf:type ontology:Q178561 . ?s rdf:type ontology:Q198 } } GROUP BY ?s } . FILTER ( ?l < ?p ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { ?f property:P361 resource:Q362 . { ?f rdf:type ?d . VALUES ( ?d ) { ( ontology:Q618779 ) ( ontology:Q178561 ) } } } } }
Cold War Finnish Civil War Arab Cold War Sierra Leone Civil War Sioux Wars First Italian War of Independence 2011 Libyan Civil War Spanish Civil War American-led intervention in Syria World War I Armagnac–Burgundian Civil War Iraqi Civil War Chilean War of Independence urban guerrilla warfare Farroupilha Revolution Yugoslav Wars 1383-85 Portuguese Interregnum Ecuadorian War of Independence Syrian Civil War Iraq War Byzantine civil war of 1341–1347 Nagorno-Karabakh conflict Lebanese Civil War Genkō War First Barons' War Caesar's Civil War Iran–Israel proxy conflict Jacobite rising of 1745 American Civil War Estonian War of Independence War in Somalia Mexican Drug War The Anarchy Sri Lankan Civil War military intervention against ISIL Chinese Civil War American-led intervention in Iraq Uruguayan Civil War Somali Civil War Russian Civil War
Iraq War, Iraqi Civil War and military intervention against ISIL are lesser number of awards and battles a component of than that war
Iraq War Iraqi Civil War military intervention against ISIL
action less
action union
action find_reverse_tuple_counts
relation part of
type war
type award
action find_reverse_tuple_counts
relation part of
type war
type battle
action count
action filter_multi_types
action find_reverse
entity World War II
relation part of
type award
type battle
[[{'concept': 'award'}, {'concept': 'battle'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?s WHERE { { ?s rdf:type ontology:war . ?t rdf:type ontology:award . ?t property:part_of ?s } UNION { ?t property:part_of ?s . ?t rdf:type ontology:battle . ?s rdf:type ontology:war } } GROUP BY ?s } . FILTER ( ?l < ?p ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { ?f property:part_of resource:World_War_II . { ?f rdf:type ?d . VALUES ( ?d ) { ( ontology:award ) ( ontology:battle ) } } } } }
[]