Simple Question (Direct)
Simple Question
Q205353
P463
Q811430
USER
Which construction was James M. Buchanan a member of ?
(Q205353,P463,c(Q811430))
action filter_type
action find
entity Q205353
relation P463
type Q811430
['Q205353', 'P463', {'concept': 'Q811430'}]
SELECT DISTINCT ?i WHERE { resource:Q205353 property:P463 ?i . ?i rdf:type ontology:Q811430 }
James M. Buchanan
action filter_type
action find
entity James M. Buchanan
relation member of
type construction
['James M. Buchanan', 'member of', {'concept': 'construction'}]
SELECT DISTINCT ?i WHERE { resource:James_M._Buchanan property:member_of ?i . ?i rdf:type ontology:construction }
[]
construction
Q463303
SYSTEM
American Academy of Arts and Sciences
Q463303
(Q205353,P463,c(Q811430))
action filter_type
action find
entity Q205353
relation P463
type Q811430
The [ANSWER] was James M. Buchanan a member of
['Q205353', 'P463', {'concept': 'Q811430'}]
SELECT DISTINCT ?i WHERE { resource:Q205353 property:P463 ?i . ?i rdf:type ontology:Q811430 }
American Academy of Arts and Sciences
The American Academy of Arts and Sciences was James M. Buchanan a member of
American Academy of Arts and Sciences
action filter_type
action find
entity James M. Buchanan
relation member of
type construction
['James M. Buchanan', 'member of', {'concept': 'construction'}]
SELECT DISTINCT ?i WHERE { resource:James_M._Buchanan property:member_of ?i . ?i rdf:type ontology:construction }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q205353
P21
Q290
USER
Which sex does James M. Buchanan belong to ?
(Q205353,P21,c(Q290))
action filter_type
action find
entity Q205353
relation P21
type Q290
['Q205353', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q205353 property:P21 ?p }
James M. Buchanan
action filter_type
action find
entity James M. Buchanan
relation gender
type sex
['James M. Buchanan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:James_M._Buchanan property:gender ?p }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q205353,P21,c(Q290))
action filter_type
action find
entity Q205353
relation P21
type Q290
James M. Buchanan belongs to the [ANSWER]
['Q205353', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q205353 property:P21 ?p }
male
James M. Buchanan belongs to the male
male
action filter_type
action find
entity James M. Buchanan
relation gender
type sex
['James M. Buchanan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:James_M._Buchanan property:gender ?p }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4763197
Q290
USER
And also tell me about Angie Debo?
(Q4763197,P21,c(Q290))
action filter_type
action find
entity Q4763197
relation P21
type Q290
['Q4763197', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q4763197 property:P21 ?r }
Angie Debo
action filter_type
action find
entity Angie Debo
relation gender
type sex
['Angie Debo', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Angie_Debo property:gender ?r }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q4763197,P21,c(Q290))
action filter_type
action find
entity Q4763197
relation P21
type Q290
[ANSWER]
['Q4763197', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q4763197 property:P21 ?r }
female
female
action filter_type
action find
entity Angie Debo
relation gender
type sex
['Angie Debo', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Angie_Debo property:gender ?r }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q65549 Q205353
P27 P17
Q15617994
USER
Which administrative territories are James M. Buchanan a civilian of or are Valendas located in ?
OR((Q205353,P27,c(Q15617994)), (Q65549,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q205353
relation P27
action find
entity Q65549
relation P17
type Q15617994
{'OR': [['Q205353', 'P27', {'concept': 'Q15617994'}], ['Q65549', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q15617994 . { { resource:Q205353 property:P27 ?j } UNION { resource:Q65549 property:P17 ?j } } }
Valendas James M. Buchanan
action filter_type
action union
action find
entity James M. Buchanan
relation country of citizenship
action find
entity Valendas
relation country
type designation for an administrative territorial entity
{'OR': [['James M. Buchanan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Valendas', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:James_M._Buchanan property:country_of_citizenship ?j } UNION { resource:Valendas property:country ?j } } }
[]
designation for an administrative territorial entity
Q39 Q30
SYSTEM
Switzerland, United States of America
Q39 Q30
OR((Q205353,P27,c(Q15617994)), (Q65549,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q205353
relation P27
action find
entity Q65549
relation P17
type Q15617994
In [ANSWERS] are James M. Buchanan a civilian of or are Valendas located in
{'OR': [['Q205353', 'P27', {'concept': 'Q15617994'}], ['Q65549', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q15617994 . { { resource:Q205353 property:P27 ?j } UNION { resource:Q65549 property:P17 ?j } } }
Switzerland United States of America
In Switzerland and United States of America are James M. Buchanan a civilian of or are Valendas located in
Switzerland United States of America
action filter_type
action union
action find
entity James M. Buchanan
relation country of citizenship
action find
entity Valendas
relation country
type designation for an administrative territorial entity
{'OR': [['James M. Buchanan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Valendas', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:James_M._Buchanan property:country_of_citizenship ?j } UNION { resource:Valendas property:country ?j } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q39
P85
Q484692
USER
What is the national anthem of that administrative territory ?
(Q39,P85,c(Q484692))
action filter_type
action find
entity Q39
relation P85
type Q484692
['Q39', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?y WHERE { resource:Q39 property:P85 ?y . ?y rdf:type ontology:Q484692 }
Switzerland
action filter_type
action find
entity Switzerland
relation anthem
type hymn
['Switzerland', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?y WHERE { resource:Switzerland property:anthem ?y . ?y rdf:type ontology:hymn }
[]
hymn
Clarification for simple ques.
Q30
SYSTEM
Did you mean United States of America ?
Q39 Q30
(Q39,P85,c(Q484692)) (Q30,P85,c(Q484692))
[ANSWER]
['Q39', 'P85', {'concept': 'Q484692'}] ['Q30', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?y WHERE { resource:Q39 property:P85 ?y . ?y rdf:type ontology:Q484692 }
Switzerland United States of America
Did you mean United States of America ?
United States of America
['Switzerland', 'anthem', {'concept': 'hymn'}] ['United States of America', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?y WHERE { resource:Switzerland property:anthem ?y . ?y rdf:type ontology:hymn }
[]
Simple Question (Coreferenced)
USER
No, I meant Switzerland. Could you tell me the answer for that?
(Q39,P85,c(Q484692))
Q39
['Q39', 'P85', {'concept': 'Q484692'}]
['Switzerland', 'anthem', {'concept': 'hymn'}]
[]
Q182536
SYSTEM
Swiss Psalm
Q182536
(Q39,P85,c(Q484692))
action filter_type
action find
entity Q39
relation P85
type Q484692
The national anthem of that administrative territory is the [ANSWER]
['Q39', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?y WHERE { resource:Q39 property:P85 ?y . ?y rdf:type ontology:Q484692 }
Swiss Psalm
The national anthem of that administrative territory is the Swiss Psalm
Swiss Psalm
action filter_type
action find
entity Switzerland
relation anthem
type hymn
['Switzerland', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?y WHERE { resource:Switzerland property:anthem ?y . ?y rdf:type ontology:hymn }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q182536 Q41180
P85
Q5589178
USER
How many regimes have Swiss Psalm or La Marseillaise as their national anthem ?
(c(Q5589178),P85,Q182536) (c(Q5589178),P85,Q41180)
action count
action union
action filter_type
action find_reverse
entity Q182536
relation P85
type Q5589178
action filter_type
action find_reverse
entity Q41180
relation P85
type Q5589178
[{'concept': 'Q5589178'}, 'P85', 'Q182536'] [{'concept': 'Q5589178'}, 'P85', 'Q41180']
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { ?x rdf:type ontology:Q5589178 . ?x property:P85 resource:Q182536 } UNION { ?x rdf:type ontology:Q5589178 . ?x property:P85 resource:Q41180 } }
Swiss Psalm La Marseillaise
action count
action union
action filter_type
action find_reverse
entity Swiss Psalm
relation anthem
type regime
action filter_type
action find_reverse
entity La Marseillaise
relation anthem
type regime
[{'concept': 'regime'}, 'anthem', 'Swiss Psalm'] [{'concept': 'regime'}, 'anthem', 'La Marseillaise']
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { ?x rdf:type ontology:regime . ?x property:anthem resource:Swiss_Psalm } UNION { ?x rdf:type ontology:regime . ?x property:anthem resource:La_Marseillaise } }
[]
regime
SYSTEM
2
Q69829 Q200686
(c(Q5589178),P85,Q182536) (c(Q5589178),P85,Q41180)
action count
action union
action filter_type
action find_reverse
entity Q182536
relation P85
type Q5589178
action filter_type
action find_reverse
entity Q41180
relation P85
type Q5589178
[ANSWER]
[{'concept': 'Q5589178'}, 'P85', 'Q182536'] [{'concept': 'Q5589178'}, 'P85', 'Q41180']
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { ?x rdf:type ontology:Q5589178 . ?x property:P85 resource:Q182536 } UNION { ?x rdf:type ontology:Q5589178 . ?x property:P85 resource:Q41180 } }
French Fourth Republic French Fifth Republic
2
action count
action union
action filter_type
action find_reverse
entity Swiss Psalm
relation anthem
type regime
action filter_type
action find_reverse
entity La Marseillaise
relation anthem
type regime
[{'concept': 'regime'}, 'anthem', 'Swiss Psalm'] [{'concept': 'regime'}, 'anthem', 'La Marseillaise']
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { ?x rdf:type ontology:regime . ?x property:anthem resource:Swiss_Psalm } UNION { ?x rdf:type ontology:regime . ?x property:anthem resource:La_Marseillaise } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q660117
P85
Q484692 Q15617994 Q161243
USER
How many hymns are the national anthems of lesser number of administrative territories and dependent territories than Gaumii salaam ?
(c(Q15617994)|c(Q161243),P85,c(Q484692))
action count
action less
action union
action find_reverse_tuple_counts
relation P85
type Q484692
type Q15617994
action find_reverse_tuple_counts
relation P85
type Q484692
type Q161243
action count
action filter_multi_types
action find_reverse
entity Q660117
relation P85
type Q15617994
type Q161243
[[{'concept': 'Q15617994'}, {'concept': 'Q161243'}], 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?o ) WHERE { { ?f property:P85 ?e . ?e rdf:type ontology:Q484692 . ?f rdf:type ontology:Q15617994 } UNION { ?f property:P85 ?e . ?e rdf:type ontology:Q484692 . ?f rdf:type ontology:Q161243 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { { VALUES ( ?s ) { ( ontology:Q15617994 ) ( ontology:Q161243 ) } . ?c rdf:type ?s } . ?c property:P85 resource:Q660117 } } . FILTER ( ?o < ?k ) }
Gaumii salaam
action count
action less
action union
action find_reverse_tuple_counts
relation anthem
type hymn
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation anthem
type hymn
type dependent territory
action count
action filter_multi_types
action find_reverse
entity Gaumii salaam
relation anthem
type designation for an administrative territorial entity
type dependent territory
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'dependent territory'}], 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?o ) WHERE { { ?f property:anthem ?e . ?e rdf:type ontology:hymn . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?f property:anthem ?e . ?e rdf:type ontology:hymn . ?f rdf:type ontology:dependent_territory } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { { VALUES ( ?s ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:dependent_territory ) } . ?c rdf:type ?s } . ?c property:anthem resource:Gaumii_salaam } } . FILTER ( ?o < ?k ) }
[]
hymn designation for an administrative territorial entity dependent territory
SYSTEM
113
Q209973 Q1193820 Q1334863 Q190226 Q202137 Q1330359 Q147367 Q579160 Q4384 Q1199595 Q170601 Q1063994 Q752655 Q876594 Q126658 Q699190 Q2028103 Q1150982 Q854853 Q1138705 Q628682 Q833966 Q1378214 Q160036 Q1190532 Q874542 Q966075 Q1067084 Q2666285 Q1144009 Q169201 Q48147 Q581991 Q403336 Q204643 Q1192863 Q4138464 Q4138462 Q251918 Q271052 Q1066716 Q1146473 Q721190 Q1740575 Q1928655 Q75543 Q1190343 Q908519 Q1377327 Q1036517 Q1640665 Q640136 Q1209767 Q1136402 Q1064003 Q1144355 Q1142935 Q949638 Q11993 Q905016 Q1051855 Q15402214 Q1192911 Q1187971 Q1191408 Q1138695 Q665559 Q1074993 Q716364 Q2641577 Q11178664 Q905777 Q271585 Q263089 Q1093864 Q771255 Q1072837 Q646622 Q1522013 Q182268 Q1060556 Q1147730 Q857953 Q992460 Q489607 Q704760 Q1369729 Q1346354 Q3696299 Q1148469 Q790300 Q845207 Q1353616 Q1075941 Q256615 Q1050025 Q1209589 Q93359 Q2080743 Q3877793 Q165747 Q2666281 Q1191090 Q242723 Q3803622 Q3347824 Q1317821 Q38878 Q1376659 Q1133287 Q1149579 Q3113768 Q1063992
(c(Q15617994)|c(Q161243),P85,c(Q484692))
action count
action less
action union
action find_reverse_tuple_counts
relation P85
type Q484692
type Q15617994
action find_reverse_tuple_counts
relation P85
type Q484692
type Q161243
action count
action filter_multi_types
action find_reverse
entity Q660117
relation P85
type Q15617994
type Q161243
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q161243'}], 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?o ) WHERE { { ?f property:P85 ?e . ?e rdf:type ontology:Q484692 . ?f rdf:type ontology:Q15617994 } UNION { ?f property:P85 ?e . ?e rdf:type ontology:Q484692 . ?f rdf:type ontology:Q161243 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { { VALUES ( ?s ) { ( ontology:Q15617994 ) ( ontology:Q161243 ) } . ?c rdf:type ?s } . ?c property:P85 resource:Q660117 } } . FILTER ( ?o < ?k ) }
Majulah Singapura National Anthem of the Udmurt Republic Imperial Anthem of Iran Inno e Marcia Pontificale God Defend New Zealand Tooruktug Dolgay Tangdym Hey, Slavs Europe Anthem of the Byelorussian Soviet Socialist Republic National Anthem of the Republic of Tatarstan Advance Australia Fair National Anthem of the Republic of North Ossetia–Alania Hail Grenada De Vlaamse Leeuw Land der Berge, Land am Strome Isle of Man National Anthem National Anthem of the Republic of Dagestan Yā Banīy As-Saharā Jedna si jedina Anthem of the Republic of Adygea O Arise, All You Sons The Song to the Auspicious Cloud Sarnia Cherie Hen Wlad Fy Nhadau Anthem of the Lithuanian Soviet Socialist Republic Walla Zaman Ya Selahy state anthem of Chuvashia Anthem of the Latvian Soviet Socialist Republic National Anthem of the Altai Republic Anthem of the Republic of Buryatia Zdrobite cătuşe Auferstanden aus Ruinen National Anthem of the Mari El Republic Aiaaira Jamaica, Land We Love Imperial anthems of the Ottoman Empire National Anthem of Karachay-Cherkessia National Anthem of Ingushetia National Anthem of the Soviet Union Ålänningens sång Anthem of Transnistria Anthem of the Ukrainian Soviet Socialist Republic Azat u ankakh Artsakh Worker's Marseillaise Preußenlied Anthem of the Georgian Soviet Socialist Republic Anthem of the Moldavian Soviet Socialist Republic Kong Christian stod ved højen mast Anthem of the Uzbek Soviet Socialist Republic Land of the Rising Sun Hymne National Voltaïque Ardulfurataini Watan Pitcairn Anthem Rise, O Voices of Rhodesia Moja Republika Dideba Gong Jin'ou National anthem of the Orange Free State Anthem of Europe Wien Neêrlands Bloed Le Retour des Princes français à Paris National anthem of People's Republic of Kampuchea Anthem of the Republic of Karelia National anthem of the Transvaal Anthem of the Karelo-Finnish Soviet Socialist Republic Tera di Solo y suave biento Hawaiʻi Ponoʻī Himno di Kòrsou Aruba Dushi Tera Dap Prampi Mesa Chokchey Czechoslovak anthem Hino da Independência Els Segadors Für Danzig Inno al Re Ey Reqîb First Iranian national anthem Stand Ye Guamanians Gi Talo Gi Halom Tasi Land of Hope and Glory Anthem of the Azerbaijan Soviet Socialist Republic Te Atua Mou E God Save Our Solomon Islands Himno de Riego And did those feet in ancient time National Anthem of Manchukuo Hymn of Crimea La Zaïroise Deg Tegh Fateh Nkosi Sikelel' iAfrika Ave Crux Alba Fida'i Thanh Niên Hành Khúc La Borinqueña Bayernhymne O Land of Beauty! Virgin Islands March O Canada La bandera blanca y verde Noi vogliam Dio, Vergine Maria Der er et yndigt land National Anthem of the Sakha Republic Anthem of the Tajik Soviet Socialist Republic La Concorde Khalmg Tanghchin chastr O Sweet Saint Martin's Land National Anthem of the Kingdom of Yugoslavia National Anthem of the Republic of Mordovia National Anthem of the Republic of Bashkortostan Samo ku waar Giải phóng miền Nam Đăng đàn cung National Anthem of South Ossetia
113
action count
action less
action union
action find_reverse_tuple_counts
relation anthem
type hymn
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation anthem
type hymn
type dependent territory
action count
action filter_multi_types
action find_reverse
entity Gaumii salaam
relation anthem
type designation for an administrative territorial entity
type dependent territory
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'dependent territory'}], 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?o ) WHERE { { ?f property:anthem ?e . ?e rdf:type ontology:hymn . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?f property:anthem ?e . ?e rdf:type ontology:hymn . ?f rdf:type ontology:dependent_territory } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { { VALUES ( ?s ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:dependent_territory ) } . ?c rdf:type ?s } . ?c property:anthem resource:Gaumii_salaam } } . FILTER ( ?o < ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q156914
P85
Q484692 Q15617994 Q161243
USER
And how about Dievs, svētī Latviju!?
(c(Q15617994)|c(Q161243),P85,c(Q484692))
action count
action less
action union
action find_reverse_tuple_counts
relation P85
type Q484692
type Q15617994
action find_reverse_tuple_counts
relation P85
type Q484692
type Q161243
action count
action filter_multi_types
action find_reverse
entity Q156914
relation P85
type Q15617994
type Q161243
[[{'concept': 'Q15617994'}, {'concept': 'Q161243'}], 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:P85 resource:Q156914 . { VALUES ( ?x ) { ( ontology:Q161243 ) ( ontology:Q15617994 ) } . ?p rdf:type ?x } } } . FILTER ( ?b < ?z ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) ?o WHERE { { ?j property:P85 ?o . ?o rdf:type ontology:Q484692 . ?j rdf:type ontology:Q15617994 } UNION { ?j property:P85 ?o . ?j rdf:type ontology:Q161243 . ?o rdf:type ontology:Q484692 } } GROUP BY ?o } }
Dievs, svētī Latviju!
action count
action less
action union
action find_reverse_tuple_counts
relation anthem
type hymn
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation anthem
type hymn
type dependent territory
action count
action filter_multi_types
action find_reverse
entity Dievs, svētī Latviju!
relation anthem
type designation for an administrative territorial entity
type dependent territory
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'dependent territory'}], 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:anthem resource:Dievs,_svētī_Latviju! . { VALUES ( ?x ) { ( ontology:dependent_territory ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?p rdf:type ?x } } } . FILTER ( ?b < ?z ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) ?o WHERE { { ?j property:anthem ?o . ?o rdf:type ontology:hymn . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?j property:anthem ?o . ?j rdf:type ontology:dependent_territory . ?o rdf:type ontology:hymn } } GROUP BY ?o } }
[]
hymn designation for an administrative territorial entity dependent territory
SYSTEM
113
Q209973 Q1193820 Q1334863 Q190226 Q202137 Q1330359 Q147367 Q579160 Q4384 Q1199595 Q170601 Q1063994 Q752655 Q876594 Q126658 Q699190 Q2028103 Q1150982 Q854853 Q1138705 Q628682 Q833966 Q1378214 Q160036 Q1190532 Q874542 Q966075 Q1067084 Q2666285 Q1144009 Q169201 Q48147 Q581991 Q403336 Q204643 Q1192863 Q4138464 Q4138462 Q251918 Q271052 Q1066716 Q1146473 Q721190 Q1740575 Q1928655 Q75543 Q1190343 Q908519 Q1377327 Q1036517 Q1640665 Q640136 Q1209767 Q1136402 Q1064003 Q1144355 Q1142935 Q949638 Q11993 Q905016 Q1051855 Q15402214 Q1192911 Q1187971 Q1191408 Q1138695 Q665559 Q1074993 Q716364 Q2641577 Q11178664 Q905777 Q271585 Q263089 Q1093864 Q771255 Q1072837 Q646622 Q1522013 Q182268 Q1060556 Q1147730 Q857953 Q992460 Q489607 Q704760 Q1369729 Q1346354 Q3696299 Q1148469 Q790300 Q845207 Q1353616 Q1075941 Q256615 Q1050025 Q1209589 Q93359 Q2080743 Q3877793 Q165747 Q2666281 Q1191090 Q242723 Q3803622 Q3347824 Q1317821 Q38878 Q1376659 Q1133287 Q1149579 Q3113768 Q1063992
(c(Q15617994)|c(Q161243),P85,c(Q484692))
action count
action less
action union
action find_reverse_tuple_counts
relation P85
type Q484692
type Q15617994
action find_reverse_tuple_counts
relation P85
type Q484692
type Q161243
action count
action filter_multi_types
action find_reverse
entity Q156914
relation P85
type Q15617994
type Q161243
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q161243'}], 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:P85 resource:Q156914 . { VALUES ( ?x ) { ( ontology:Q161243 ) ( ontology:Q15617994 ) } . ?p rdf:type ?x } } } . FILTER ( ?b < ?z ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) ?o WHERE { { ?j property:P85 ?o . ?o rdf:type ontology:Q484692 . ?j rdf:type ontology:Q15617994 } UNION { ?j property:P85 ?o . ?j rdf:type ontology:Q161243 . ?o rdf:type ontology:Q484692 } } GROUP BY ?o } }
Majulah Singapura National Anthem of the Udmurt Republic Imperial Anthem of Iran Inno e Marcia Pontificale God Defend New Zealand Tooruktug Dolgay Tangdym Hey, Slavs Europe Anthem of the Byelorussian Soviet Socialist Republic National Anthem of the Republic of Tatarstan Advance Australia Fair National Anthem of the Republic of North Ossetia–Alania Hail Grenada De Vlaamse Leeuw Land der Berge, Land am Strome Isle of Man National Anthem National Anthem of the Republic of Dagestan Yā Banīy As-Saharā Jedna si jedina Anthem of the Republic of Adygea O Arise, All You Sons The Song to the Auspicious Cloud Sarnia Cherie Hen Wlad Fy Nhadau Anthem of the Lithuanian Soviet Socialist Republic Walla Zaman Ya Selahy state anthem of Chuvashia Anthem of the Latvian Soviet Socialist Republic National Anthem of the Altai Republic Anthem of the Republic of Buryatia Zdrobite cătuşe Auferstanden aus Ruinen National Anthem of the Mari El Republic Aiaaira Jamaica, Land We Love Imperial anthems of the Ottoman Empire National Anthem of Karachay-Cherkessia National Anthem of Ingushetia National Anthem of the Soviet Union Ålänningens sång Anthem of Transnistria Anthem of the Ukrainian Soviet Socialist Republic Azat u ankakh Artsakh Worker's Marseillaise Preußenlied Anthem of the Georgian Soviet Socialist Republic Anthem of the Moldavian Soviet Socialist Republic Kong Christian stod ved højen mast Anthem of the Uzbek Soviet Socialist Republic Land of the Rising Sun Hymne National Voltaïque Ardulfurataini Watan Pitcairn Anthem Rise, O Voices of Rhodesia Moja Republika Dideba Gong Jin'ou National anthem of the Orange Free State Anthem of Europe Wien Neêrlands Bloed Le Retour des Princes français à Paris National anthem of People's Republic of Kampuchea Anthem of the Republic of Karelia National anthem of the Transvaal Anthem of the Karelo-Finnish Soviet Socialist Republic Tera di Solo y suave biento Hawaiʻi Ponoʻī Himno di Kòrsou Aruba Dushi Tera Dap Prampi Mesa Chokchey Czechoslovak anthem Hino da Independência Els Segadors Für Danzig Inno al Re Ey Reqîb First Iranian national anthem Stand Ye Guamanians Gi Talo Gi Halom Tasi Land of Hope and Glory Anthem of the Azerbaijan Soviet Socialist Republic Te Atua Mou E God Save Our Solomon Islands Himno de Riego And did those feet in ancient time National Anthem of Manchukuo Hymn of Crimea La Zaïroise Deg Tegh Fateh Nkosi Sikelel' iAfrika Ave Crux Alba Fida'i Thanh Niên Hành Khúc La Borinqueña Bayernhymne O Land of Beauty! Virgin Islands March O Canada La bandera blanca y verde Noi vogliam Dio, Vergine Maria Der er et yndigt land National Anthem of the Sakha Republic Anthem of the Tajik Soviet Socialist Republic La Concorde Khalmg Tanghchin chastr O Sweet Saint Martin's Land National Anthem of the Kingdom of Yugoslavia National Anthem of the Republic of Mordovia National Anthem of the Republic of Bashkortostan Samo ku waar Giải phóng miền Nam Đăng đàn cung National Anthem of South Ossetia
113
action count
action less
action union
action find_reverse_tuple_counts
relation anthem
type hymn
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation anthem
type hymn
type dependent territory
action count
action filter_multi_types
action find_reverse
entity Dievs, svētī Latviju!
relation anthem
type designation for an administrative territorial entity
type dependent territory
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'dependent territory'}], 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:anthem resource:Dievs,_svētī_Latviju! . { VALUES ( ?x ) { ( ontology:dependent_territory ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?p rdf:type ?x } } } . FILTER ( ?b < ?z ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) ?o WHERE { { ?j property:anthem ?o . ?o rdf:type ontology:hymn . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?j property:anthem ?o . ?j rdf:type ontology:dependent_territory . ?o rdf:type ontology:hymn } } GROUP BY ?o } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q724478
P106
Q28640
USER
Which professions have Umberto Lenzi as his/her 's career ?
(Q724478,P106,c(Q28640))
action filter_type
action find
entity Q724478
relation P106
type Q28640
['Q724478', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?k WHERE { resource:Q724478 property:P106 ?k . ?k rdf:type ontology:Q28640 }
Umberto Lenzi
action filter_type
action find
entity Umberto Lenzi
relation occupation
type profession
['Umberto Lenzi', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?k WHERE { resource:Umberto_Lenzi property:occupation ?k . ?k rdf:type ontology:profession }
[]
profession
Q2526255 Q28389
SYSTEM
film director, screenwriter
Q2526255 Q28389
(Q724478,P106,c(Q28640))
action filter_type
action find
entity Q724478
relation P106
type Q28640
The [ANSWERS] have Umberto Lenzi as his/her 's career
['Q724478', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?k WHERE { resource:Q724478 property:P106 ?k . ?k rdf:type ontology:Q28640 }
film director screenwriter
The film director and screenwriter have Umberto Lenzi as his/her 's career
film director screenwriter
action filter_type
action find
entity Umberto Lenzi
relation occupation
type profession
['Umberto Lenzi', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?k WHERE { resource:Umberto_Lenzi property:occupation ?k . ?k rdf:type ontology:profession }
[]