Simple Question (Direct)
Simple Question
Q5159232
P57
Q502895
USER
Which person directed Condition Dead ?
(Q5159232,P57,c(Q502895))
action filter_type
action find
entity Q5159232
relation P57
type Q502895
['Q5159232', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q5159232 property:P57 ?f . ?f rdf:type ontology:Q502895 }
Condition Dead
action filter_type
action find
entity Condition Dead
relation director
type common name
['Condition Dead', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Condition_Dead property:director ?f . ?f rdf:type ontology:common_name }
[]
common name
Q772880
SYSTEM
Patrick Lussier
Q772880
(Q5159232,P57,c(Q502895))
action filter_type
action find
entity Q5159232
relation P57
type Q502895
[ANSWER] directed Condition Dead
['Q5159232', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q5159232 property:P57 ?f . ?f rdf:type ontology:Q502895 }
Patrick Lussier
Patrick Lussier directed Condition Dead
Patrick Lussier
action filter_type
action find
entity Condition Dead
relation director
type common name
['Condition Dead', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Condition_Dead property:director ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5159232
P364
Q34770
USER
Which language was used originally for the creation of that work of art ?
(Q772880,P364,c(Q34770))
action filter_type
action find
entity Q5159232
relation P364
type Q34770
['Q772880', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?z WHERE { resource:Q5159232 property:P364 ?z . ?z rdf:type ontology:Q34770 }
Condition Dead
action filter_type
action find
entity Condition Dead
relation original language of work
type language
['Patrick Lussier', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?z WHERE { resource:Condition_Dead property:original_language_of_work ?z . ?z rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q772880,P364,c(Q34770))
action filter_type
action find
entity Q5159232
relation P364
type Q34770
[ANSWER] was used originally for the creation of that work of art
['Q772880', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?z WHERE { resource:Q5159232 property:P364 ?z . ?z rdf:type ontology:Q34770 }
English
English was used originally for the creation of that work of art
English
action filter_type
action find
entity Condition Dead
relation original language of work
type language
['Patrick Lussier', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?z WHERE { resource:Condition_Dead property:original_language_of_work ?z . ?z rdf:type ontology:language }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q165713
P1441
Q838948 Q3895768 Q502895
USER
Which works of art are more number of fictional locations and people present in than Star Wars: Episode I – The Phantom Menace ?
(c(Q3895768)|c(Q502895),P1441,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q3895768
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q165713
relation P1441
type Q3895768
type Q502895
[[{'concept': 'Q3895768'}, {'concept': 'Q502895'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?h WHERE { { ?c property:P1441 ?h . ?h rdf:type ontology:Q838948 . ?c rdf:type ontology:Q3895768 } UNION { ?c property:P1441 ?h . ?h rdf:type ontology:Q838948 . ?c rdf:type ontology:Q502895 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d property:P1441 resource:Q165713 . { { ?d rdf:type ontology:Q3895768 } UNION { ?d rdf:type ontology:Q502895 } } } } . FILTER ( ?i > ?k ) }
Star Wars: Episode I – The Phantom Menace
action greater
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional location
action find_reverse_tuple_counts
relation present in work
type work of art
type common name
action count
action filter_multi_types
action find_reverse
entity Star Wars: Episode I – The Phantom Menace
relation present in work
type fictional location
type common name
[[{'concept': 'fictional location'}, {'concept': 'common name'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?h WHERE { { ?c property:present_in_work ?h . ?h rdf:type ontology:work_of_art . ?c rdf:type ontology:fictional_location } UNION { ?c property:present_in_work ?h . ?h rdf:type ontology:work_of_art . ?c rdf:type ontology:common_name } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d property:present_in_work resource:Star_Wars:_Episode_I_–_The_Phantom_Menace . { { ?d rdf:type ontology:fictional_location } UNION { ?d rdf:type ontology:common_name } } } } . FILTER ( ?i > ?k ) }
[]
work of art fictional location common name
Q18407657 Q14171368 Q217020
SYSTEM
Captain America: Civil War, Avengers: Age of Ultron, Thor
Q3512046 Q6072886 Q3273477 Q384508 Q15043347 Q741878 Q18031184 Q1332299 Q20921603 Q1420651 Q1364029 Q17485699 Q748030 Q245227 Q14942871 Q18786473 Q217020 Q3031303 Q746733 Q167726 Q18067135 Q174385 Q14171368 Q1316253 Q18407657 Q7558541 Q1125566 Q590098 Q470665 Q318975 Q773293 Q15713892 Q833292 Q7768400 Q156519 Q1471230 Q567298
(c(Q3895768)|c(Q502895),P1441,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q3895768
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q165713
relation P1441
type Q3895768
type Q502895
[ANSWERS] are more number of fictional locations and people present in than Star Wars: Episode I – The Phantom Menace
[[{'concept': 'Q3895768'}, {'concept': 'Q502895'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?h WHERE { { ?c property:P1441 ?h . ?h rdf:type ontology:Q838948 . ?c rdf:type ontology:Q3895768 } UNION { ?c property:P1441 ?h . ?h rdf:type ontology:Q838948 . ?c rdf:type ontology:Q502895 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d property:P1441 resource:Q165713 . { { ?d rdf:type ontology:Q3895768 } UNION { ?d rdf:type ontology:Q502895 } } } } . FILTER ( ?i > ?k ) }
Jurassic World Perros callejeros Ma and Pa Kettle Las adolescentes Million Dollar Arm Good Morning, Vietnam The Finest Hours Pete's Dragon Queen of Katwe Tombstone Peter Pan Alice Through the Looking Glass The 13th Warrior The Prince of Egypt Exodus: Gods and Kings Pete's Dragon Thor The Kingdom of Solomon The Ten Commandments Jurassic Park Bridge of Spies Alice in Wonderland Avengers: Age of Ultron Solomon and Sheba Captain America: Civil War Solomon & Sheba Duck Soup Ultimate Avengers 2 Secretariat Atlantis: The Lost Empire The Bible: In the Beginning Pan Night of the Seagulls The Ten Commandments Around the World in 80 Days History of the World, Part I The Last Trapper
Captain America: Civil War, Avengers: Age of Ultron and Thor are more number of fictional locations and people present in than Star Wars: Episode I – The Phantom Menace
Captain America: Civil War Avengers: Age of Ultron Thor
action greater
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional location
action find_reverse_tuple_counts
relation present in work
type work of art
type common name
action count
action filter_multi_types
action find_reverse
entity Star Wars: Episode I – The Phantom Menace
relation present in work
type fictional location
type common name
[[{'concept': 'fictional location'}, {'concept': 'common name'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?h WHERE { { ?c property:present_in_work ?h . ?h rdf:type ontology:work_of_art . ?c rdf:type ontology:fictional_location } UNION { ?c property:present_in_work ?h . ?h rdf:type ontology:work_of_art . ?c rdf:type ontology:common_name } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d property:present_in_work resource:Star_Wars:_Episode_I_–_The_Phantom_Menace . { { ?d rdf:type ontology:fictional_location } UNION { ?d rdf:type ontology:common_name } } } } . FILTER ( ?i > ?k ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q162371 Q14171368
P1441
Q6619679
USER
Which fictional humanoids are from the works of Avengers: Age of Ultron or Charmed ?
OR((c(Q6619679),P1441,Q14171368), (c(Q6619679),P1441,Q162371))
action filter_type
action union
action find_reverse
entity Q14171368
relation P1441
action find_reverse
entity Q162371
relation P1441
type Q6619679
{'OR': [[{'concept': 'Q6619679'}, 'P1441', 'Q14171368'], [{'concept': 'Q6619679'}, 'P1441', 'Q162371']]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?y ) { ( resource:Q14171368 ) ( resource:Q162371 ) } . ?x property:P1441 ?y } . ?x rdf:type ontology:Q6619679 }
Charmed Avengers: Age of Ultron
action filter_type
action union
action find_reverse
entity Avengers: Age of Ultron
relation present in work
action find_reverse
entity Charmed
relation present in work
type fictional humanoid
{'OR': [[{'concept': 'fictional humanoid'}, 'present in work', 'Avengers: Age of Ultron'], [{'concept': 'fictional humanoid'}, 'present in work', 'Charmed']]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?y ) { ( resource:Avengers:_Age_of_Ultron ) ( resource:Charmed ) } . ?x property:present_in_work ?y } . ?x rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q26857760 Q1042390 Q24022345 Q27092482 Q116857 Q24022098 Q3119786 Q1639574 Q23894967 Q27101792
SYSTEM
Some of them are Johannesburg Cop, Leo Wyatt, Sam Wilson / Falcon, Ulysses Klaue, Wyatt Halliwell, Steve Rogers, Penny Halliwell, Phoebe Halliwell, Tony Stark / Iron Man, Pietro Maximoff / Quicksilver
Q24046150 Q24022542 Q24022098 Q23894967 Q23900377 Q24050117 Q1042390 Q24022345 Q116857 Q1639574 Q1750877 Q24034679 Q27092482 Q7319158 Q3119786 Q2731558 Q1647226 Q27101792 Q24026688 Q26857760 Q23895063 Q63918 Q23895040
OR((c(Q6619679),P1441,Q14171368), (c(Q6619679),P1441,Q162371))
action filter_type
action union
action find_reverse
entity Q14171368
relation P1441
action find_reverse
entity Q162371
relation P1441
type Q6619679
[ANSWERS] are from the works of Avengers: Age of Ultron or Charmed
{'OR': [[{'concept': 'Q6619679'}, 'P1441', 'Q14171368'], [{'concept': 'Q6619679'}, 'P1441', 'Q162371']]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?y ) { ( resource:Q14171368 ) ( resource:Q162371 ) } . ?x property:P1441 ?y } . ?x rdf:type ontology:Q6619679 }
Heimdall Wanda Maximoff / Scarlet Witch Steve Rogers Tony Stark / Iron Man Nick Fury Bruce Banner / Hulk Leo Wyatt Sam Wilson / Falcon Wyatt Halliwell Phoebe Halliwell Prue Halliwell Peggy Carter Ulysses Klaue Rex Buckland Penny Halliwell Patty Halliwell Piper Halliwell Pietro Maximoff / Quicksilver Clint Barton / Hawkeye Johannesburg Cop Natasha Romanoff / Black Widow Billie Jenkins Jim Rhodes / War Machine
Johannesburg Cop, Leo Wyatt, Sam Wilson / Falcon, Ulysses Klaue, Wyatt Halliwell, Steve Rogers, Penny Halliwell, Phoebe Halliwell, Tony Stark / Iron Man and Pietro Maximoff / Quicksilver are from the works of Avengers: Age of Ultron or Charmed
Johannesburg Cop Leo Wyatt Sam Wilson / Falcon Ulysses Klaue Wyatt Halliwell Steve Rogers Penny Halliwell Phoebe Halliwell Tony Stark / Iron Man Pietro Maximoff / Quicksilver
action filter_type
action union
action find_reverse
entity Avengers: Age of Ultron
relation present in work
action find_reverse
entity Charmed
relation present in work
type fictional humanoid
{'OR': [[{'concept': 'fictional humanoid'}, 'present in work', 'Avengers: Age of Ultron'], [{'concept': 'fictional humanoid'}, 'present in work', 'Charmed']]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?y ) { ( resource:Avengers:_Age_of_Ultron ) ( resource:Charmed ) } . ?x property:present_in_work ?y } . ?x rdf:type ontology:fictional_humanoid }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17001135 Q162371
P495
Q15617994
USER
Which administrative territories are the countries of origin of Charmed or Zatoichi's Cane Sword ?
OR((Q162371,P495,c(Q15617994)), (Q17001135,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q162371
relation P495
action find
entity Q17001135
relation P495
type Q15617994
{'OR': [['Q162371', 'P495', {'concept': 'Q15617994'}], ['Q17001135', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q162371 property:P495 ?n } UNION { resource:Q17001135 property:P495 ?n } } . ?n rdf:type ontology:Q15617994 }
Zatoichi's Cane Sword Charmed
action filter_type
action union
action find
entity Charmed
relation country of origin
action find
entity Zatoichi's Cane Sword
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Charmed', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ["Zatoichi's Cane Sword", 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Charmed property:country_of_origin ?n } UNION { resource:Zatoichi's_Cane_Sword property:country_of_origin ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q30
SYSTEM
Japan, United States of America
Q17 Q30
OR((Q162371,P495,c(Q15617994)), (Q17001135,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q162371
relation P495
action find
entity Q17001135
relation P495
type Q15617994
[ANSWERS] are the countries of origin of Charmed or Zatoichi's Cane Sword
{'OR': [['Q162371', 'P495', {'concept': 'Q15617994'}], ['Q17001135', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q162371 property:P495 ?n } UNION { resource:Q17001135 property:P495 ?n } } . ?n rdf:type ontology:Q15617994 }
Japan United States of America
Japan and United States of America are the countries of origin of Charmed or Zatoichi's Cane Sword
Japan United States of America
action filter_type
action union
action find
entity Charmed
relation country of origin
action find
entity Zatoichi's Cane Sword
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Charmed', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ["Zatoichi's Cane Sword", 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Charmed property:country_of_origin ?n } UNION { resource:Zatoichi's_Cane_Sword property:country_of_origin ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q201658 Q7725634
USER
How many administrative territories did around the same number of film genres or literary works originate as that administrative territory ?
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
[[{'concept': 'film genre'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
designation for an administrative territorial entity film genre literary work
Comparative|Count over More/Less|Mult. entity type|Clarification
Q17
SYSTEM
Did you mean Japan ?
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
Did you mean Japan ?
Japan
[[{'concept': 'film genre'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'film genre'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
167
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q55 Q145 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
167
[[{'concept': 'film genre'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q948
P530
Q15617994 Q15617994
USER
How many administrative territories have a diplomatic relationship with around the same number of administrative territories as Tunisia ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q948
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?b ) WHERE { ?w rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 . ?d property:P530 ?w } GROUP BY ?w } . FILTER ( ?b = ?f ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Q948 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } }
Tunisia
action count
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Tunisia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?b ) WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d property:diplomatic_relation ?w } GROUP BY ?w } . FILTER ( ?b = ?f ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Tunisia property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
152
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q948
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?b ) WHERE { ?w rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 . ?d property:P530 ?w } GROUP BY ?w } . FILTER ( ?b = ?f ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Q948 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
152
action count
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Tunisia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?b ) WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d property:diplomatic_relation ?w } GROUP BY ?w } . FILTER ( ?b = ?f ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Tunisia property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q686
P530
Q15617994 Q15617994
USER
And what about Vanuatu?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q686
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { resource:Q686 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?s = ?z ) . { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } GROUP BY ?y } }
Vanuatu
action count
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Vanuatu
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { resource:Vanuatu property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s = ?z ) . { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
152
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q686
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { resource:Q686 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?s = ?z ) . { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } GROUP BY ?y } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
152
action count
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Vanuatu
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { resource:Vanuatu property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s = ?z ) . { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1042390
P22
Q15619164
USER
Which abstract being has Leo Wyatt as father ?
(c(Q15619164),P22,Q1042390)
action filter_type
action find_reverse
entity Q1042390
relation P22
type Q15619164
[{'concept': 'Q15619164'}, 'P22', 'Q1042390']
SELECT DISTINCT ?r WHERE { ?r property:P22 resource:Q1042390 . ?r rdf:type ontology:Q15619164 }
Leo Wyatt
action filter_type
action find_reverse
entity Leo Wyatt
relation father
type abstract being
[{'concept': 'abstract being'}, 'father', 'Leo Wyatt']
SELECT DISTINCT ?r WHERE { ?r property:father resource:Leo_Wyatt . ?r rdf:type ontology:abstract_being }
[]
abstract being
Q1998072
SYSTEM
Chris Halliwell
Q1998072
(c(Q15619164),P22,Q1042390)
action filter_type
action find_reverse
entity Q1042390
relation P22
type Q15619164
[ANSWER] has Leo Wyatt as father
[{'concept': 'Q15619164'}, 'P22', 'Q1042390']
SELECT DISTINCT ?r WHERE { ?r property:P22 resource:Q1042390 . ?r rdf:type ontology:Q15619164 }
Chris Halliwell
Chris Halliwell has Leo Wyatt as father
Chris Halliwell
action filter_type
action find_reverse
entity Leo Wyatt
relation father
type abstract being
[{'concept': 'abstract being'}, 'father', 'Leo Wyatt']
SELECT DISTINCT ?r WHERE { ?r property:father resource:Leo_Wyatt . ?r rdf:type ontology:abstract_being }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1042390
P26
Q6619679
USER
Who is married to that one ?
(Q1998072,P26,c(Q6619679))
action filter_type
action find
entity Q1042390
relation P26
type Q6619679
['Q1998072', 'P26', {'concept': 'Q6619679'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q6619679 . resource:Q1042390 property:P26 ?z }
Leo Wyatt
action filter_type
action find
entity Leo Wyatt
relation spouse
type fictional humanoid
['Chris Halliwell', 'spouse', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:fictional_humanoid . resource:Leo_Wyatt property:spouse ?z }
[]
fictional humanoid
Q1647226
SYSTEM
Piper Halliwell
Q1647226
(Q1998072,P26,c(Q6619679))
action filter_type
action find
entity Q1042390
relation P26
type Q6619679
He [ANSWER] is married to that one
['Q1998072', 'P26', {'concept': 'Q6619679'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q6619679 . resource:Q1042390 property:P26 ?z }
Piper Halliwell
He Piper Halliwell is married to that one
Piper Halliwell
action filter_type
action find
entity Leo Wyatt
relation spouse
type fictional humanoid
['Chris Halliwell', 'spouse', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:fictional_humanoid . resource:Leo_Wyatt property:spouse ?z }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1647226 Q12735112
P175
Q502895
USER
Was Marțian Dan performed by that fictional humanoid ?
(Q1647226,P175,Q12735112)
action is_in
entity Q12735112
action find
entity Q1647226
relation P175
['Q1647226', 'P175', 'Q12735112']
ASK WHERE { resource:Q1647226 property:P175 resource:Q12735112 }
Piper Halliwell Marțian Dan
action is_in
entity Marțian Dan
action find
entity Piper Halliwell
relation performer
['Piper Halliwell', 'performer', 'Marțian Dan']
ASK WHERE { resource:Piper_Halliwell property:performer resource:Marțian_Dan }
[]
common name
SYSTEM
NO
(Q1647226,P175,Q12735112)
action is_in
entity Q12735112
action find
entity Q1647226
relation P175
[ANSWER]
['Q1647226', 'P175', 'Q12735112']
ASK WHERE { resource:Q1647226 property:P175 resource:Q12735112 }
No
action is_in
entity Marțian Dan
action find
entity Piper Halliwell
relation performer
['Piper Halliwell', 'performer', 'Marțian Dan']
ASK WHERE { resource:Piper_Halliwell property:performer resource:Marțian_Dan }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q305257 Q162371
P840 P36
Q56061
USER
Which administrative territories are Charmed set in or are known as the capital of Logone Occidental Region ?
OR((Q162371,P840,c(Q56061)), (Q305257,P36,c(Q56061)))
action filter_type
action union
action find
entity Q162371
relation P840
action find
entity Q305257
relation P36
type Q56061
{'OR': [['Q162371', 'P840', {'concept': 'Q56061'}], ['Q305257', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q162371 property:P840 ?k } UNION { resource:Q305257 property:P36 ?k } } . ?k rdf:type ontology:Q56061 }
Logone Occidental Region Charmed
action filter_type
action union
action find
entity Charmed
relation narrative location
action find
entity Logone Occidental Region
relation capital
type administrative territorial entity
{'OR': [['Charmed', 'narrative location', {'concept': 'administrative territorial entity'}], ['Logone Occidental Region', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Charmed property:narrative_location ?k } UNION { resource:Logone_Occidental_Region property:capital ?k } } . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q333074 Q62
SYSTEM
Moundou, San Francisco
Q333074 Q62
OR((Q162371,P840,c(Q56061)), (Q305257,P36,c(Q56061)))
action filter_type
action union
action find
entity Q162371
relation P840
action find
entity Q305257
relation P36
type Q56061
[ANSWERS] are Charmed set in or are known as the capital of Logone Occidental Region
{'OR': [['Q162371', 'P840', {'concept': 'Q56061'}], ['Q305257', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q162371 property:P840 ?k } UNION { resource:Q305257 property:P36 ?k } } . ?k rdf:type ontology:Q56061 }
Moundou San Francisco
Moundou and San Francisco are Charmed set in or are known as the capital of Logone Occidental Region
Moundou San Francisco
action filter_type
action union
action find
entity Charmed
relation narrative location
action find
entity Logone Occidental Region
relation capital
type administrative territorial entity
{'OR': [['Charmed', 'narrative location', {'concept': 'administrative territorial entity'}], ['Logone Occidental Region', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Charmed property:narrative_location ?k } UNION { resource:Logone_Occidental_Region property:capital ?k } } . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q931597
P1434
Q23010327
USER
Which group of fictitious objects happens in Marvel Universe ?
(c(Q23010327),P1434,Q931597)
action filter_type
action find_reverse
entity Q931597
relation P1434
type Q23010327
[{'concept': 'Q23010327'}, 'P1434', 'Q931597']
SELECT DISTINCT ?d WHERE { ?d property:P1434 resource:Q931597 . ?d rdf:type ontology:Q23010327 }
Marvel Universe
action filter_type
action find_reverse
entity Marvel Universe
relation describes the fictional universe
type group of fictitious objects
[{'concept': 'group of fictitious objects'}, 'describes the fictional universe', 'Marvel Universe']
SELECT DISTINCT ?d WHERE { ?d property:describes_the_fictional_universe resource:Marvel_Universe . ?d rdf:type ontology:group_of_fictitious_objects }
[]
group of fictitious objects
Q2211423
SYSTEM
X-Factor
Q2211423
(c(Q23010327),P1434,Q931597)
action filter_type
action find_reverse
entity Q931597
relation P1434
type Q23010327
[ANSWER] happens in Marvel Universe
[{'concept': 'Q23010327'}, 'P1434', 'Q931597']
SELECT DISTINCT ?d WHERE { ?d property:P1434 resource:Q931597 . ?d rdf:type ontology:Q23010327 }
X-Factor
X-Factor happens in Marvel Universe
X-Factor
action filter_type
action find_reverse
entity Marvel Universe
relation describes the fictional universe
type group of fictitious objects
[{'concept': 'group of fictitious objects'}, 'describes the fictional universe', 'Marvel Universe']
SELECT DISTINCT ?d WHERE { ?d property:describes_the_fictional_universe resource:Marvel_Universe . ?d rdf:type ontology:group_of_fictitious_objects }
[]