Simple Question (Direct)
Simple Question
Q4071380
P463
Q874405
USER
Which social group was Viktor Asmus a member of ?
(Q4071380,P463,c(Q874405))
action filter_type
action find
entity Q4071380
relation P463
type Q874405
['Q4071380', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?a WHERE { resource:Q4071380 property:P463 ?a . ?a rdf:type ontology:Q874405 }
Viktor Asmus
action filter_type
action find
entity Viktor Asmus
relation member of
type social group
['Viktor Asmus', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?a WHERE { resource:Viktor_Asmus property:member_of ?a . ?a rdf:type ontology:social_group }
[]
social group
Q4430504
SYSTEM
Cinematographers’ Union of the USSR
Q4430504
(Q4071380,P463,c(Q874405))
action filter_type
action find
entity Q4071380
relation P463
type Q874405
The [ANSWER] was Viktor Asmus a member of
['Q4071380', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?a WHERE { resource:Q4071380 property:P463 ?a . ?a rdf:type ontology:Q874405 }
Cinematographers’ Union of the USSR
The Cinematographers’ Union of the USSR was Viktor Asmus a member of
Cinematographers’ Union of the USSR
action filter_type
action find
entity Viktor Asmus
relation member of
type social group
['Viktor Asmus', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?a WHERE { resource:Viktor_Asmus property:member_of ?a . ?a rdf:type ontology:social_group }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4071380
P344
Q201658
USER
Which film genre has that person as the director of photography ?
(c(Q201658),P344,Q4430504)
action filter_type
action find_reverse
entity Q4071380
relation P344
type Q201658
[{'concept': 'Q201658'}, 'P344', 'Q4430504']
SELECT DISTINCT ?b WHERE { ?b property:P344 resource:Q4071380 . ?b rdf:type ontology:Q201658 }
Viktor Asmus
action filter_type
action find_reverse
entity Viktor Asmus
relation director of photography
type film genre
[{'concept': 'film genre'}, 'director of photography', 'Cinematographers’ Union of the USSR']
SELECT DISTINCT ?b WHERE { ?b property:director_of_photography resource:Viktor_Asmus . ?b rdf:type ontology:film_genre }
[]
film genre
Q17393899
SYSTEM
Smart as a Fox
Q17393899
(c(Q201658),P344,Q4430504)
action filter_type
action find_reverse
entity Q4071380
relation P344
type Q201658
[ANSWER] has that person as the director of photography
[{'concept': 'Q201658'}, 'P344', 'Q4430504']
SELECT DISTINCT ?b WHERE { ?b property:P344 resource:Q4071380 . ?b rdf:type ontology:Q201658 }
Smart as a Fox
Smart as a Fox has that person as the director of photography
Smart as a Fox
action filter_type
action find_reverse
entity Viktor Asmus
relation director of photography
type film genre
[{'concept': 'film genre'}, 'director of photography', 'Cinematographers’ Union of the USSR']
SELECT DISTINCT ?b WHERE { ?b property:director_of_photography resource:Viktor_Asmus . ?b rdf:type ontology:film_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4430504
P17
Q7275
USER
Which state does Cinematographers’ Union of the USSR belong to ?
(Q4430504,P17,c(Q7275))
action filter_type
action find
entity Q4430504
relation P17
type Q7275
['Q4430504', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?y WHERE { resource:Q4430504 property:P17 ?y . ?y rdf:type ontology:Q7275 }
Cinematographers’ Union of the USSR
action filter_type
action find
entity Cinematographers’ Union of the USSR
relation country
type state
['Cinematographers’ Union of the USSR', 'country', {'concept': 'state'}]
SELECT DISTINCT ?y WHERE { resource:Cinematographers’_Union_of_the_USSR property:country ?y . ?y rdf:type ontology:state }
[]
state
Q15180
SYSTEM
Soviet Union
Q15180
(Q4430504,P17,c(Q7275))
action filter_type
action find
entity Q4430504
relation P17
type Q7275
Cinematographers ' Union of the USSR belongs to the [ANSWER]
['Q4430504', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?y WHERE { resource:Q4430504 property:P17 ?y . ?y rdf:type ontology:Q7275 }
Soviet Union
Cinematographers ' Union of the USSR belongs to the Soviet Union
Soviet Union
action filter_type
action find
entity Cinematographers’ Union of the USSR
relation country
type state
['Cinematographers’ Union of the USSR', 'country', {'concept': 'state'}]
SELECT DISTINCT ?y WHERE { resource:Cinematographers’_Union_of_the_USSR property:country ?y . ?y rdf:type ontology:state }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1445064 Q17393899
P7 P86
Q502895
USER
Which people did the compostion for Smart as a Fox or are the brother of Ingeborg of Kiev ?
OR((Q17393899,P86,c(Q502895)), (Q1445064,P7,c(Q502895)))
action filter_type
action union
action find
entity Q17393899
relation P86
action find
entity Q1445064
relation P7
type Q502895
{'OR': [['Q17393899', 'P86', {'concept': 'Q502895'}], ['Q1445064', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q17393899 property:P86 ?e } UNION { resource:Q1445064 property:P7 ?e } } . ?e rdf:type ontology:Q502895 }
Ingeborg of Kiev Smart as a Fox
action filter_type
action union
action find
entity Smart as a Fox
relation composer
action find
entity Ingeborg of Kiev
relation brother
type common name
{'OR': [['Smart as a Fox', 'composer', {'concept': 'common name'}], ['Ingeborg of Kiev', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Smart_as_a_Fox property:composer ?e } UNION { resource:Ingeborg_of_Kiev property:brother ?e } } . ?e rdf:type ontology:common_name }
[]
common name
Q2280915 Q269085 Q496569 Q2621011 Q497904
SYSTEM
Vsevolod of Pskov, Iziaslav II of Kiev, Vladimir III Mstislavich, William Lava, Rostislav I of Kiev
Q2280915 Q269085 Q496569 Q2621011 Q497904
OR((Q17393899,P86,c(Q502895)), (Q1445064,P7,c(Q502895)))
action filter_type
action union
action find
entity Q17393899
relation P86
action find
entity Q1445064
relation P7
type Q502895
[ANSWERS] did the compostion for Smart as a Fox or are the brother of Ingeborg of Kiev
{'OR': [['Q17393899', 'P86', {'concept': 'Q502895'}], ['Q1445064', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q17393899 property:P86 ?e } UNION { resource:Q1445064 property:P7 ?e } } . ?e rdf:type ontology:Q502895 }
Vsevolod of Pskov Iziaslav II of Kiev Vladimir III Mstislavich William Lava Rostislav I of Kiev
Vsevolod of Pskov, Iziaslav II of Kiev, Vladimir III Mstislavich, William Lava and Rostislav I of Kiev did the compostion for Smart as a Fox or are the brother of Ingeborg of Kiev
Vsevolod of Pskov Iziaslav II of Kiev Vladimir III Mstislavich William Lava Rostislav I of Kiev
action filter_type
action union
action find
entity Smart as a Fox
relation composer
action find
entity Ingeborg of Kiev
relation brother
type common name
{'OR': [['Smart as a Fox', 'composer', {'concept': 'common name'}], ['Ingeborg of Kiev', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Smart_as_a_Fox property:composer ?e } UNION { resource:Ingeborg_of_Kiev property:brother ?e } } . ?e rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q207162
P1376
Q7275 Q20667921 Q56061
USER
How many states have less number of french administrative divisions or administrative territories as their capital than Bourbon Restoration ?
(c(Q20667921)|c(Q56061),P1376,c(Q7275))
action count
action less
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q207162
relation P1376
type Q20667921
type Q56061
[[{'concept': 'Q20667921'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?j ) AS ?m ) WHERE { { ?j property:P1376 ?s . ?s rdf:type ontology:Q7275 . ?j rdf:type ontology:Q20667921 } UNION { ?j property:P1376 ?s . ?s rdf:type ontology:Q7275 . ?j rdf:type ontology:Q56061 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { ?r property:P1376 resource:Q207162 . { { ?r rdf:type ontology:Q56061 } UNION { ?r rdf:type ontology:Q20667921 } } } } . FILTER ( ?m < ?c ) }
Bourbon Restoration
action count
action less
action union
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type state
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Bourbon Restoration
relation capital of
type type of french administrative division
type administrative territorial entity
[[{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?j ) AS ?m ) WHERE { { ?j property:capital_of ?s . ?s rdf:type ontology:state . ?j rdf:type ontology:type_of_french_administrative_division } UNION { ?j property:capital_of ?s . ?s rdf:type ontology:state . ?j rdf:type ontology:administrative_territorial_entity } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { ?r property:capital_of resource:Bourbon_Restoration . { { ?r rdf:type ontology:administrative_territorial_entity } UNION { ?r rdf:type ontology:type_of_french_administrative_division } } } } . FILTER ( ?m < ?c ) }
[]
state type of french administrative division administrative territorial entity
SYSTEM
161
Q1193822 Q178665 Q18285930 Q152855 Q855044 Q975405 Q1688151 Q1483643 Q827040 Q210198 Q2006542 Q215530 Q912043 Q1649871 Q2564694 Q203493 Q1574107 Q798431 Q1269910 Q877875 Q2361927 Q402145 Q255931 Q2342822 Q863279 Q3177715 Q698089 Q83821 Q953432 Q13107370 Q761370 Q2114397 Q321371 Q220110 Q1414395 Q756895 Q49697 Q153660 Q1069905 Q6500954 Q274488 Q216173 Q577867 Q476757 Q1274468 Q202687 Q2419932 Q234197 Q2668600 Q551375 Q146246 Q1108445 Q153080 Q526507 Q16957 Q1154540 Q28322 Q550374 Q19831559 Q1048918 Q736936 Q783489 Q2444884 Q16949002 Q618399 Q180573 Q1923401 Q1135255 Q624887 Q199442 Q13706 Q156020 Q216786 Q26472 Q139319 Q752662 Q797422 Q235030 Q1668970 Q320930 Q849623 Q2264735 Q28511 Q139670 Q1138904 Q10988528 Q402580 Q7352 Q9903 Q83572 Q941881 Q1319681 Q1115291 Q894030 Q38060 Q914898 Q844250 Q738144 Q207521 Q1658411 Q28025 Q11704201 Q49326 Q1057118 Q157734 Q2088324 Q11909456 Q1415585 Q146328 Q1508143 Q940821 Q248572 Q697084 Q213586 Q16624774 Q173082 Q170588 Q11196 Q187684 Q1324889 Q146713 Q427941 Q697837 Q994451 Q3185305 Q1148907 Q320925 Q2593459 Q571453 Q271570 Q307069 Q28278 Q107380 Q206696 Q62454 Q1198071 Q1192067 Q2372248 Q1062422 Q505503 Q169705 Q212439 Q153015 Q846670 Q696242 Q422065 Q1479726 Q467864 Q212056 Q777981 Q487829 Q154853 Q1148042 Q770776 Q1549254 Q7314513 Q3041595 Q484104 Q680997 Q648297 Q149805
(c(Q20667921)|c(Q56061),P1376,c(Q7275))
action count
action less
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q207162
relation P1376
type Q20667921
type Q56061
[ANSWER]
[[{'concept': 'Q20667921'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?j ) AS ?m ) WHERE { { ?j property:P1376 ?s . ?s rdf:type ontology:Q7275 . ?j rdf:type ontology:Q20667921 } UNION { ?j property:P1376 ?s . ?s rdf:type ontology:Q7275 . ?j rdf:type ontology:Q56061 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { ?r property:P1376 resource:Q207162 . { { ?r rdf:type ontology:Q56061 } UNION { ?r rdf:type ontology:Q20667921 } } } } . FILTER ( ?m < ?c ) }
Wuyue Mitanni German Empire of 1848/1849 Kingdom of Tungning Bhopal State Sultanate of Rum Kingdom of Thomond Nakhon Si Thammarat Kingdom Nanyue Erivan Khanate Dominion of Pakistan Kingdom of Ireland Jin Kingdom of Poland Powys Fadog Kingdom of Romania Han Zhao Republic of Dahomey Republic of Madawaska Palmyrene Empire Duchy of Masovia Mataram Sultanate Hariphunchai West Pakistan Sukhothai Kingdom Pagaruyung Kingdom Grand Duchy of Würzburg Bijapur Sultanate Couto Misto Principality of Serbia Aro Confederacy Yogyakarta Sultanate Bosporan Kingdom Rohan Republic of South Maluku Kediri Liu Song dynasty Italian Social Republic Cheng Han Zaire Eastern Wu Free City of Danzig Kingdom of Poland Democratic Republic of Afghanistan Republic of Bosnia and Herzegovina Songhai Empire Kingdom of Redonda Srivijaya Taifa of Niebla Grand Duchy of Westarctica Francia Kievan Rus' East Francia Later Shu East Germany Later Jin Dynasty Balhae South African Republic Oldenburg Suebic Kingdom of Galicia Lu Later Liang dynasty Tibet Lordship of Brecknock Republic of the Congo South Vietnam Zunghar Khanate Chinese Soviet Republic Neo-Babylonian Empire Kingdom of Aragon Principality of Sealand State of the Teutonic Order Champa Kingdom of Dali Russian Republic Hafsid dynasty Republic of Upper Volta Principality of Antioch Western Qin Cao Wei Oyo Empire Arthedain Buyeo kingdom Democratic Republic of Armenia Kingdom of Afghanistan Second East Turkestan Republic Medang Kingdom Jin dynasty Ming imperium Sikh Empire Netherlands New Guinea Qi Thonburi Kingdom Bornu Empire Gaul Kingdom of Khotan Lordship of Ireland United Provinces of the Río de la Plata Abyssinia Kingdom of Sarawak Ryukyu Kingdom Taifa of Arjona Majapahit Chenla Kingdom Muscat and Oman Colonial Brazil Bit Agusi Islamic State of Afghanistan Commonwealth of the Philippines Ukrainian State People's Democratic Republic of Ethiopia Sultanate of Maguindanao Duchy of Oldenburg Gondor Kingdom of Nicoya Dacia Republic of Texas Republika Srpska Despotate of Epirus Germiyanids Arab Federation Islamic Emirate of Afghanistan Mengjiang Western Liang Kingdom of Israel State of Katanga Shu Han Provisional Government of Hawaii Former Shu Kingdom of Araucanía and Patagonia Eastern Wei Provisional Government of the Republic of Korea History of Lippe Helvetic Republic Chen dynasty Southern Han Min Free State of Oldenburg Konbaung Dynasty Cochinchina Xia dynasty Cossack Hetmanate Kingdom of Saxony Danishmends Reorganized National Government of China Sultanate of Sulu Federation of Malaya People's Socialist Republic of Albania Mongolian People's Republic Duchy of the Archipelago Chagatai Khanate Diauehi Qutb Shahi dynasty Dutch Gold Coast Principality of Seborga Republic of South Carolina Republic of Iraq United States Army Military Government in Korea Principality of Lower Pannonia Free State of Brunswick Kingdom of Iraq
161
action count
action less
action union
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type state
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Bourbon Restoration
relation capital of
type type of french administrative division
type administrative territorial entity
[[{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?j ) AS ?m ) WHERE { { ?j property:capital_of ?s . ?s rdf:type ontology:state . ?j rdf:type ontology:type_of_french_administrative_division } UNION { ?j property:capital_of ?s . ?s rdf:type ontology:state . ?j rdf:type ontology:administrative_territorial_entity } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { ?r property:capital_of resource:Bourbon_Restoration . { { ?r rdf:type ontology:administrative_territorial_entity } UNION { ?r rdf:type ontology:type_of_french_administrative_division } } } } . FILTER ( ?m < ?c ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q877155
P1376
Q7275 Q20667921 Q56061
USER
And what about Chera Dynasty?
(c(Q20667921)|c(Q56061),P1376,c(Q7275))
action count
action less
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q877155
relation P1376
type Q20667921
type Q56061
[[{'concept': 'Q20667921'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?u ) WHERE { { ?t rdf:type ontology:Q20667921 . ?n rdf:type ontology:Q7275 . ?t property:P1376 ?n } UNION { ?n rdf:type ontology:Q7275 . ?t rdf:type ontology:Q56061 . ?t property:P1376 ?n } } GROUP BY ?n } . FILTER ( ?u < ?g ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?b property:P1376 resource:Q877155 . { VALUES ( ?a ) { ( ontology:Q20667921 ) ( ontology:Q56061 ) } . ?b rdf:type ?a } } } }
Chera Dynasty
action count
action less
action union
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type state
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Chera Dynasty
relation capital of
type type of french administrative division
type administrative territorial entity
[[{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?u ) WHERE { { ?t rdf:type ontology:type_of_french_administrative_division . ?n rdf:type ontology:state . ?t property:capital_of ?n } UNION { ?n rdf:type ontology:state . ?t rdf:type ontology:administrative_territorial_entity . ?t property:capital_of ?n } } GROUP BY ?n } . FILTER ( ?u < ?g ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?b property:capital_of resource:Chera_Dynasty . { VALUES ( ?a ) { ( ontology:type_of_french_administrative_division ) ( ontology:administrative_territorial_entity ) } . ?b rdf:type ?a } } } }
[]
state type of french administrative division administrative territorial entity
SYSTEM
161
Q1193822 Q178665 Q18285930 Q152855 Q855044 Q975405 Q1688151 Q1483643 Q827040 Q210198 Q2006542 Q215530 Q912043 Q1649871 Q2564694 Q203493 Q1574107 Q798431 Q1269910 Q877875 Q2361927 Q402145 Q255931 Q2342822 Q863279 Q3177715 Q698089 Q83821 Q953432 Q13107370 Q761370 Q2114397 Q321371 Q220110 Q1414395 Q756895 Q49697 Q153660 Q1069905 Q6500954 Q274488 Q216173 Q577867 Q476757 Q1274468 Q202687 Q2419932 Q234197 Q2668600 Q551375 Q146246 Q1108445 Q153080 Q526507 Q16957 Q1154540 Q28322 Q550374 Q19831559 Q1048918 Q736936 Q783489 Q2444884 Q16949002 Q618399 Q180573 Q1923401 Q1135255 Q624887 Q199442 Q13706 Q156020 Q216786 Q26472 Q139319 Q752662 Q797422 Q235030 Q1668970 Q320930 Q849623 Q2264735 Q28511 Q139670 Q1138904 Q10988528 Q402580 Q7352 Q9903 Q83572 Q941881 Q1319681 Q1115291 Q894030 Q38060 Q914898 Q844250 Q738144 Q207521 Q1658411 Q28025 Q11704201 Q49326 Q1057118 Q157734 Q2088324 Q11909456 Q1415585 Q146328 Q1508143 Q940821 Q248572 Q697084 Q213586 Q16624774 Q173082 Q170588 Q11196 Q187684 Q1324889 Q146713 Q427941 Q697837 Q994451 Q3185305 Q1148907 Q320925 Q2593459 Q571453 Q271570 Q307069 Q28278 Q107380 Q206696 Q62454 Q1198071 Q1192067 Q2372248 Q1062422 Q505503 Q169705 Q212439 Q153015 Q846670 Q696242 Q422065 Q1479726 Q467864 Q212056 Q777981 Q487829 Q154853 Q1148042 Q770776 Q1549254 Q7314513 Q3041595 Q484104 Q680997 Q648297 Q149805
(c(Q20667921)|c(Q56061),P1376,c(Q7275))
action count
action less
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q877155
relation P1376
type Q20667921
type Q56061
[ANSWER]
[[{'concept': 'Q20667921'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?u ) WHERE { { ?t rdf:type ontology:Q20667921 . ?n rdf:type ontology:Q7275 . ?t property:P1376 ?n } UNION { ?n rdf:type ontology:Q7275 . ?t rdf:type ontology:Q56061 . ?t property:P1376 ?n } } GROUP BY ?n } . FILTER ( ?u < ?g ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?b property:P1376 resource:Q877155 . { VALUES ( ?a ) { ( ontology:Q20667921 ) ( ontology:Q56061 ) } . ?b rdf:type ?a } } } }
Wuyue Mitanni German Empire of 1848/1849 Kingdom of Tungning Bhopal State Sultanate of Rum Kingdom of Thomond Nakhon Si Thammarat Kingdom Nanyue Erivan Khanate Dominion of Pakistan Kingdom of Ireland Jin Kingdom of Poland Powys Fadog Kingdom of Romania Han Zhao Republic of Dahomey Republic of Madawaska Palmyrene Empire Duchy of Masovia Mataram Sultanate Hariphunchai West Pakistan Sukhothai Kingdom Pagaruyung Kingdom Grand Duchy of Würzburg Bijapur Sultanate Couto Misto Principality of Serbia Aro Confederacy Yogyakarta Sultanate Bosporan Kingdom Rohan Republic of South Maluku Kediri Liu Song dynasty Italian Social Republic Cheng Han Zaire Eastern Wu Free City of Danzig Kingdom of Poland Democratic Republic of Afghanistan Republic of Bosnia and Herzegovina Songhai Empire Kingdom of Redonda Srivijaya Taifa of Niebla Grand Duchy of Westarctica Francia Kievan Rus' East Francia Later Shu East Germany Later Jin Dynasty Balhae South African Republic Oldenburg Suebic Kingdom of Galicia Lu Later Liang dynasty Tibet Lordship of Brecknock Republic of the Congo South Vietnam Zunghar Khanate Chinese Soviet Republic Neo-Babylonian Empire Kingdom of Aragon Principality of Sealand State of the Teutonic Order Champa Kingdom of Dali Russian Republic Hafsid dynasty Republic of Upper Volta Principality of Antioch Western Qin Cao Wei Oyo Empire Arthedain Buyeo kingdom Democratic Republic of Armenia Kingdom of Afghanistan Second East Turkestan Republic Medang Kingdom Jin dynasty Ming imperium Sikh Empire Netherlands New Guinea Qi Thonburi Kingdom Bornu Empire Gaul Kingdom of Khotan Lordship of Ireland United Provinces of the Río de la Plata Abyssinia Kingdom of Sarawak Ryukyu Kingdom Taifa of Arjona Majapahit Chenla Kingdom Muscat and Oman Colonial Brazil Bit Agusi Islamic State of Afghanistan Commonwealth of the Philippines Ukrainian State People's Democratic Republic of Ethiopia Sultanate of Maguindanao Duchy of Oldenburg Gondor Kingdom of Nicoya Dacia Republic of Texas Republika Srpska Despotate of Epirus Germiyanids Arab Federation Islamic Emirate of Afghanistan Mengjiang Western Liang Kingdom of Israel State of Katanga Shu Han Provisional Government of Hawaii Former Shu Kingdom of Araucanía and Patagonia Eastern Wei Provisional Government of the Republic of Korea History of Lippe Helvetic Republic Chen dynasty Southern Han Min Free State of Oldenburg Konbaung Dynasty Cochinchina Xia dynasty Cossack Hetmanate Kingdom of Saxony Danishmends Reorganized National Government of China Sultanate of Sulu Federation of Malaya People's Socialist Republic of Albania Mongolian People's Republic Duchy of the Archipelago Chagatai Khanate Diauehi Qutb Shahi dynasty Dutch Gold Coast Principality of Seborga Republic of South Carolina Republic of Iraq United States Army Military Government in Korea Principality of Lower Pannonia Free State of Brunswick Kingdom of Iraq
161
action count
action less
action union
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type state
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Chera Dynasty
relation capital of
type type of french administrative division
type administrative territorial entity
[[{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?u ) WHERE { { ?t rdf:type ontology:type_of_french_administrative_division . ?n rdf:type ontology:state . ?t property:capital_of ?n } UNION { ?n rdf:type ontology:state . ?t rdf:type ontology:administrative_territorial_entity . ?t property:capital_of ?n } } GROUP BY ?n } . FILTER ( ?u < ?g ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?b property:capital_of resource:Chera_Dynasty . { VALUES ( ?a ) { ( ontology:type_of_french_administrative_division ) ( ontology:administrative_territorial_entity ) } . ?b rdf:type ?a } } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can atleast 2140 people perform with ?
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2140
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?f ) WHERE { ?n rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 . ?w property:P1303 ?n } GROUP BY ?n } . FILTER ( ?f >= 2140 ) }
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2140
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?f ) WHERE { ?n rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name . ?w property:instrument ?n } GROUP BY ?n } . FILTER ( ?f >= 2140 ) }
[]
musical instrument common name
Q5994 Q8355 Q1444
SYSTEM
piano, violin, organ
Q5994 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2140
[ANSWERS] can atleast 2140 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?f ) WHERE { ?n rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 . ?w property:P1303 ?n } GROUP BY ?n } . FILTER ( ?f >= 2140 ) }
piano violin organ drum kit
Piano, violin and organ can atleast 2140 people perform with
piano violin organ
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2140
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?f ) WHERE { ?n rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name . ?w property:instrument ?n } GROUP BY ?n } . FILTER ( ?f >= 2140 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5994
P1056
Q43229
USER
Who are the producer of that musical instrument ?
(c(Q43229),P1056,Q5994)
action filter_type
action find_reverse
entity Q5994
relation P1056
type Q43229
[{'concept': 'Q43229'}, 'P1056', 'Q5994']
SELECT DISTINCT ?c WHERE { ?c property:P1056 resource:Q5994 . ?c rdf:type ontology:Q43229 }
piano
action filter_type
action find_reverse
entity piano
relation product
type organization
[{'concept': 'organization'}, 'product', 'piano']
SELECT DISTINCT ?c WHERE { ?c property:product resource:piano . ?c rdf:type ontology:organization }
[]
organization
Clarification for simple ques.
Q8355
SYSTEM
Did you mean violin ?
Q5994 Q8355 Q1444
(c(Q43229),P1056,Q5994) (c(Q43229),P1056,Q8355) (c(Q43229),P1056,Q1444)
[ANSWER]
[{'concept': 'Q43229'}, 'P1056', 'Q5994'] [{'concept': 'Q43229'}, 'P1056', 'Q8355'] [{'concept': 'Q43229'}, 'P1056', 'Q1444']
SELECT DISTINCT ?c WHERE { ?c property:P1056 resource:Q5994 . ?c rdf:type ontology:Q43229 }
piano violin organ
Did you mean violin ?
violin
[{'concept': 'organization'}, 'product', 'piano'] [{'concept': 'organization'}, 'product', 'violin'] [{'concept': 'organization'}, 'product', 'organ']
SELECT DISTINCT ?c WHERE { ?c property:product resource:piano . ?c rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
USER
No, I meant piano. Could you tell me the answer for that?
(c(Q43229),P1056,Q5994)
Q5994
[{'concept': 'Q43229'}, 'P1056', 'Q5994']
[{'concept': 'organization'}, 'product', 'piano']
[]
Q2684841 Q20773716
SYSTEM
Hoffmann, Weber Piano Company
Q2684841 Q20773716
(c(Q43229),P1056,Q5994)
action filter_type
action find_reverse
entity Q5994
relation P1056
type Q43229
The producer of that musical instrument are [ANSWERS]
[{'concept': 'Q43229'}, 'P1056', 'Q5994']
SELECT DISTINCT ?c WHERE { ?c property:P1056 resource:Q5994 . ?c rdf:type ontology:Q43229 }
Hoffmann Weber Piano Company
The producer of that musical instrument are Hoffmann and Weber Piano Company
Hoffmann Weber Piano Company
action filter_type
action find_reverse
entity piano
relation product
type organization
[{'concept': 'organization'}, 'product', 'piano']
SELECT DISTINCT ?c WHERE { ?c property:product resource:piano . ?c rdf:type ontology:organization }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17279777 Q2621011
P20
Q56061
USER
Which administrative territories did the expiration of William Lava or Iride Altara occur ?
OR((Q2621011,P20,c(Q56061)), (Q17279777,P20,c(Q56061)))
action filter_type
action union
action find
entity Q2621011
relation P20
action find
entity Q17279777
relation P20
type Q56061
{'OR': [['Q2621011', 'P20', {'concept': 'Q56061'}], ['Q17279777', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q2621011 property:P20 ?u } UNION { resource:Q17279777 property:P20 ?u } } . ?u rdf:type ontology:Q56061 }
Iride Altara William Lava
action filter_type
action union
action find
entity William Lava
relation place of death
action find
entity Iride Altara
relation place of death
type administrative territorial entity
{'OR': [['William Lava', 'place of death', {'concept': 'administrative territorial entity'}], ['Iride Altara', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:William_Lava property:place_of_death ?u } UNION { resource:Iride_Altara property:place_of_death ?u } } . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q65 Q13629
SYSTEM
Los Angeles, Sassari
Q65 Q13629
OR((Q2621011,P20,c(Q56061)), (Q17279777,P20,c(Q56061)))
action filter_type
action union
action find
entity Q2621011
relation P20
action find
entity Q17279777
relation P20
type Q56061
The expiration of William Lava or Iride Altara occurred in [ANSWERS]
{'OR': [['Q2621011', 'P20', {'concept': 'Q56061'}], ['Q17279777', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q2621011 property:P20 ?u } UNION { resource:Q17279777 property:P20 ?u } } . ?u rdf:type ontology:Q56061 }
Los Angeles Sassari
The expiration of William Lava or Iride Altara occurred in Los Angeles and Sassari
Los Angeles Sassari
action filter_type
action union
action find
entity William Lava
relation place of death
action find
entity Iride Altara
relation place of death
type administrative territorial entity
{'OR': [['William Lava', 'place of death', {'concept': 'administrative territorial entity'}], ['Iride Altara', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:William_Lava property:place_of_death ?u } UNION { resource:Iride_Altara property:place_of_death ?u } } . ?u rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q13629
P190
Q15617994
USER
Which administrative territories are twin towns of that administrative territory ?
(Q13629,P190,c(Q15617994))
action filter_type
action find
entity Q13629
relation P190
type Q15617994
['Q13629', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q13629 property:P190 ?r . ?r rdf:type ontology:Q15617994 }
Sassari
action filter_type
action find
entity Sassari
relation sister city
type designation for an administrative territorial entity
['Sassari', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Sassari property:sister_city ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q13629
SYSTEM
Did you mean Sassari ?
Q65 Q13629
(Q65,P190,c(Q15617994)) (Q13629,P190,c(Q15617994))
[ANSWER]
['Q65', 'P190', {'concept': 'Q15617994'}] ['Q13629', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q13629 property:P190 ?r . ?r rdf:type ontology:Q15617994 }
Los Angeles Sassari
Did you mean Sassari ?
Sassari
['Los Angeles', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Sassari', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Sassari property:sister_city ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q13629,P190,c(Q15617994))
['Q13629', 'P190', {'concept': 'Q15617994'}]
['Sassari', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
[]
Q13395 Q72288 Q6596
SYSTEM
Viterbo, Nola, Gorizia
Q13395 Q6596 Q72288
(Q13629,P190,c(Q15617994))
action filter_type
action find
entity Q13629
relation P190
type Q15617994
[ANSWERS] are twin towns of that administrative territory
['Q13629', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q13629 property:P190 ?r . ?r rdf:type ontology:Q15617994 }
Viterbo Gorizia Nola
Viterbo, Nola and Gorizia are twin towns of that administrative territory
Viterbo Nola Gorizia
action filter_type
action find
entity Sassari
relation sister city
type designation for an administrative territorial entity
['Sassari', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Sassari property:sister_city ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]