Simple Question (Direct)
Simple Question
Q4132913
P410
Q4189293
USER
Which is the title held by Leonid Akimovič Galčenko ?
(Q4132913,P410,c(Q4189293))
action filter_type
action find
entity Q4132913
relation P410
type Q4189293
['Q4132913', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?p WHERE { resource:Q4132913 property:P410 ?p . ?p rdf:type ontology:Q4189293 }
Leonid Akimovič Galčenko
action filter_type
action find
entity Leonid Akimovič Galčenko
relation military rank
type title
['Leonid Akimovič Galčenko', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?p WHERE { resource:Leonid_Akimovič_Galčenko property:military_rank ?p . ?p rdf:type ontology:title }
[]
title
Q104680
SYSTEM
colonel
Q104680
(Q4132913,P410,c(Q4189293))
action filter_type
action find
entity Q4132913
relation P410
type Q4189293
The [ANSWER] is the title held by Leonid Akimovič Galčenko
['Q4132913', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?p WHERE { resource:Q4132913 property:P410 ?p . ?p rdf:type ontology:Q4189293 }
colonel
The colonel is the title held by Leonid Akimovič Galčenko
colonel
action filter_type
action find
entity Leonid Akimovič Galčenko
relation military rank
type title
['Leonid Akimovič Galčenko', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?p WHERE { resource:Leonid_Akimovič_Galčenko property:military_rank ?p . ?p rdf:type ontology:title }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4132913
P19
Q56061
USER
Which administrative territory was that person born in ?
(Q104680,P19,c(Q56061))
action filter_type
action find
entity Q4132913
relation P19
type Q56061
['Q104680', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q4132913 property:P19 ?s . ?s rdf:type ontology:Q56061 }
Leonid Akimovič Galčenko
action filter_type
action find
entity Leonid Akimovič Galčenko
relation place of birth
type administrative territorial entity
['colonel', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Leonid_Akimovič_Galčenko property:place_of_birth ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q5168
SYSTEM
Makhachkala
Q5168
(Q104680,P19,c(Q56061))
action filter_type
action find
entity Q4132913
relation P19
type Q56061
That person was born in [ANSWER]
['Q104680', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q4132913 property:P19 ?s . ?s rdf:type ontology:Q56061 }
Makhachkala
That person was born in Makhachkala
Makhachkala
action filter_type
action find
entity Leonid Akimovič Galčenko
relation place of birth
type administrative territorial entity
['colonel', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Leonid_Akimovič_Galčenko property:place_of_birth ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4132913
P102
Q7278
USER
Which political party is that person a member of ?
(Q5168,P102,c(Q7278))
action filter_type
action find
entity Q4132913
relation P102
type Q7278
['Q5168', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?b WHERE { resource:Q4132913 property:P102 ?b . ?b rdf:type ontology:Q7278 }
Leonid Akimovič Galčenko
action filter_type
action find
entity Leonid Akimovič Galčenko
relation member of political party
type political party
['Makhachkala', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?b WHERE { resource:Leonid_Akimovič_Galčenko property:member_of_political_party ?b . ?b rdf:type ontology:political_party }
[]
political party
Q79854
SYSTEM
Communist Party of the Soviet Union
Q79854
(Q5168,P102,c(Q7278))
action filter_type
action find
entity Q4132913
relation P102
type Q7278
The [ANSWER] is that person a member of
['Q5168', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?b WHERE { resource:Q4132913 property:P102 ?b . ?b rdf:type ontology:Q7278 }
Communist Party of the Soviet Union
The Communist Party of the Soviet Union is that person a member of
Communist Party of the Soviet Union
action filter_type
action find
entity Leonid Akimovič Galčenko
relation member of political party
type political party
['Makhachkala', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?b WHERE { resource:Leonid_Akimovič_Galčenko property:member_of_political_party ?b . ?b rdf:type ontology:political_party }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q312471 Q4132913
P607
Q350604
USER
Which armed conflicts did Leonid Akimovič Galčenko or S-125 take part in ?
OR((Q4132913,P607,c(Q350604)), (Q312471,P607,c(Q350604)))
action filter_type
action union
action find
entity Q4132913
relation P607
action find
entity Q312471
relation P607
type Q350604
{'OR': [['Q4132913', 'P607', {'concept': 'Q350604'}], ['Q312471', 'P607', {'concept': 'Q350604'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q4132913 property:P607 ?p } UNION { resource:Q312471 property:P607 ?p } } . ?p rdf:type ontology:Q350604 }
S-125 Leonid Akimovič Galčenko
action filter_type
action union
action find
entity Leonid Akimovič Galčenko
relation conflict
action find
entity S-125
relation conflict
type armed conflict
{'OR': [['Leonid Akimovič Galčenko', 'conflict', {'concept': 'armed conflict'}], ['S-125', 'conflict', {'concept': 'armed conflict'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Leonid_Akimovič_Galčenko property:conflict ?p } UNION { resource:S-125 property:conflict ?p } } . ?p rdf:type ontology:armed_conflict }
[]
armed conflict
Q49100 Q189266
SYSTEM
Yom Kippur War, Eastern Front
Q49100 Q189266
OR((Q4132913,P607,c(Q350604)), (Q312471,P607,c(Q350604)))
action filter_type
action union
action find
entity Q4132913
relation P607
action find
entity Q312471
relation P607
type Q350604
Leonid Akimovič Galčenko or S-125 took part in the [ANSWERS]
{'OR': [['Q4132913', 'P607', {'concept': 'Q350604'}], ['Q312471', 'P607', {'concept': 'Q350604'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q4132913 property:P607 ?p } UNION { resource:Q312471 property:P607 ?p } } . ?p rdf:type ontology:Q350604 }
Yom Kippur War Eastern Front
Leonid Akimovič Galčenko or S-125 took part in the Yom Kippur War and Eastern Front
Yom Kippur War Eastern Front
action filter_type
action union
action find
entity Leonid Akimovič Galčenko
relation conflict
action find
entity S-125
relation conflict
type armed conflict
{'OR': [['Leonid Akimovič Galčenko', 'conflict', {'concept': 'armed conflict'}], ['S-125', 'conflict', {'concept': 'armed conflict'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Leonid_Akimovič_Galčenko property:conflict ?p } UNION { resource:S-125 property:conflict ?p } } . ?p rdf:type ontology:armed_conflict }
[]
Clarification
Simple Question|Single Entity|Indirect
Q49100
P276
Q271669
USER
Where can that armed conflict be found ?
(Q49100,P276,c(Q271669))
action filter_type
action find
entity Q49100
relation P276
type Q271669
['Q49100', 'P276', {'concept': 'Q271669'}]
SELECT DISTINCT ?k WHERE { resource:Q49100 property:P276 ?k . ?k rdf:type ontology:Q271669 }
Yom Kippur War
action filter_type
action find
entity Yom Kippur War
relation location
type landform
['Yom Kippur War', 'location', {'concept': 'landform'}]
SELECT DISTINCT ?k WHERE { resource:Yom_Kippur_War property:location ?k . ?k rdf:type ontology:landform }
[]
landform
Clarification for simple ques.
Q49100
SYSTEM
Did you mean Yom Kippur War ?
Q49100 Q189266
(Q49100,P276,c(Q271669)) (Q189266,P276,c(Q271669))
[ANSWER]
['Q49100', 'P276', {'concept': 'Q271669'}] ['Q189266', 'P276', {'concept': 'Q271669'}]
SELECT DISTINCT ?k WHERE { resource:Q49100 property:P276 ?k . ?k rdf:type ontology:Q271669 }
Yom Kippur War Eastern Front
Did you mean Yom Kippur War ?
Yom Kippur War
['Yom Kippur War', 'location', {'concept': 'landform'}] ['Eastern Front', 'location', {'concept': 'landform'}]
SELECT DISTINCT ?k WHERE { resource:Yom_Kippur_War property:location ?k . ?k rdf:type ontology:landform }
[]
Simple Question (Coreferenced)
USER
Yes
(Q49100,P276,c(Q271669))
['Q49100', 'P276', {'concept': 'Q271669'}]
['Yom Kippur War', 'location', {'concept': 'landform'}]
[]
Q83210
SYSTEM
Golan Heights
Q83210
(Q49100,P276,c(Q271669))
action filter_type
action find
entity Q49100
relation P276
type Q271669
That armed conflict can be found in [ANSWER]
['Q49100', 'P276', {'concept': 'Q271669'}]
SELECT DISTINCT ?k WHERE { resource:Q49100 property:P276 ?k . ?k rdf:type ontology:Q271669 }
Golan Heights
That armed conflict can be found in Golan Heights
Golan Heights
action filter_type
action find
entity Yom Kippur War
relation location
type landform
['Yom Kippur War', 'location', {'concept': 'landform'}]
SELECT DISTINCT ?k WHERE { resource:Yom_Kippur_War property:location ?k . ?k rdf:type ontology:landform }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P361
Q271669
USER
How many landforms are parts of that landform ?
(c(Q271669),P361,Q83210)
action count
action filter_type
action find_reverse
entity Q83210
relation P361
type Q271669
[{'concept': 'Q271669'}, 'P361', 'Q83210']
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?s property:P361 resource:Q83210 . ?s rdf:type ontology:Q271669 }
action count
action filter_type
action find_reverse
entity Golan Heights
relation part of
type landform
[{'concept': 'landform'}, 'part of', 'Golan Heights']
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?s property:part_of resource:Golan_Heights . ?s rdf:type ontology:landform }
[]
landform
SYSTEM
2
Q2904267 Q2905170
(c(Q271669),P361,Q83210)
action count
action filter_type
action find_reverse
entity Q83210
relation P361
type Q271669
[ANSWER]
[{'concept': 'Q271669'}, 'P361', 'Q83210']
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?s property:P361 resource:Q83210 . ?s rdf:type ontology:Q271669 }
Mount Teon mount Avital
2
action count
action filter_type
action find_reverse
entity Golan Heights
relation part of
type landform
[{'concept': 'landform'}, 'part of', 'Golan Heights']
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?s property:part_of resource:Golan_Heights . ?s rdf:type ontology:landform }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q83210
P276
Q44539
USER
Which temple is located at Golan Heights ?
(c(Q44539),P276,Q83210)
action filter_type
action find_reverse
entity Q83210
relation P276
type Q44539
[{'concept': 'Q44539'}, 'P276', 'Q83210']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q44539 . ?v property:P276 resource:Q83210 }
Golan Heights
action filter_type
action find_reverse
entity Golan Heights
relation location
type temple
[{'concept': 'temple'}, 'location', 'Golan Heights']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:temple . ?v property:location resource:Golan_Heights }
[]
temple
Q12294753
SYSTEM
Har Senaim
Q12294753
(c(Q44539),P276,Q83210)
action filter_type
action find_reverse
entity Q83210
relation P276
type Q44539
Is [ANSWER] is located at Golan Heights
[{'concept': 'Q44539'}, 'P276', 'Q83210']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q44539 . ?v property:P276 resource:Q83210 }
Har Senaim
Is Har Senaim is located at Golan Heights
Har Senaim
action filter_type
action find_reverse
entity Golan Heights
relation location
type temple
[{'concept': 'temple'}, 'location', 'Golan Heights']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:temple . ?v property:location resource:Golan_Heights }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q189266
P710
Q7275
USER
Who attended Eastern Front ?
(Q189266,P710,c(Q7275))
action filter_type
action find
entity Q189266
relation P710
type Q7275
['Q189266', 'P710', {'concept': 'Q7275'}]
SELECT DISTINCT ?v WHERE { resource:Q189266 property:P710 ?v . ?v rdf:type ontology:Q7275 }
Eastern Front
action filter_type
action find
entity Eastern Front
relation participant
type state
['Eastern Front', 'participant', {'concept': 'state'}]
SELECT DISTINCT ?v WHERE { resource:Eastern_Front property:participant ?v . ?v rdf:type ontology:state }
[]
state
Q7318 Q15180
SYSTEM
Nazi Germany, Soviet Union
Q7318 Q15180
(Q189266,P710,c(Q7275))
action filter_type
action find
entity Q189266
relation P710
type Q7275
[ANSWERS] attended Eastern Front
['Q189266', 'P710', {'concept': 'Q7275'}]
SELECT DISTINCT ?v WHERE { resource:Q189266 property:P710 ?v . ?v rdf:type ontology:Q7275 }
Nazi Germany Soviet Union
Nazi Germany and Soviet Union attended Eastern Front
Nazi Germany Soviet Union
action filter_type
action find
entity Eastern Front
relation participant
type state
['Eastern Front', 'participant', {'concept': 'state'}]
SELECT DISTINCT ?v WHERE { resource:Eastern_Front property:participant ?v . ?v rdf:type ontology:state }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17509662
Q7275
USER
And what about Action of 2 September 1781?
(Q17509662,P710,c(Q7275))
action filter_type
action find
entity Q17509662
relation P710
type Q7275
['Q17509662', 'P710', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { resource:Q17509662 property:P710 ?p . ?p rdf:type ontology:Q7275 }
Action of 2 September 1781
action filter_type
action find
entity Action of 2 September 1781
relation participant
type state
['Action of 2 September 1781', 'participant', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { resource:Action_of_2_September_1781 property:participant ?p . ?p rdf:type ontology:state }
[]
state
Q161885
SYSTEM
Kingdom of Great Britain
Q161885
(Q17509662,P710,c(Q7275))
action filter_type
action find
entity Q17509662
relation P710
type Q7275
[ANSWER]
['Q17509662', 'P710', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { resource:Q17509662 property:P710 ?p . ?p rdf:type ontology:Q7275 }
Kingdom of Great Britain
Kingdom of Great Britain
action filter_type
action find
entity Action of 2 September 1781
relation participant
type state
['Action of 2 September 1781', 'participant', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { resource:Action_of_2_September_1781 property:participant ?p . ?p rdf:type ontology:state }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P1376
Q7275 Q20667921 Q515
USER
How many states have greater number of french administrative divisions or cities have their first city than that state ?
(c(Q20667921)|c(Q515),P1376,c(Q7275))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action count
action filter_multi_types
action find_reverse
entity Q161885
relation P1376
type Q20667921
type Q515
[[{'concept': 'Q20667921'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?d ) WHERE { VALUES ( ?o ) { ( ontology:Q20667921 ) ( ontology:Q515 ) } . ?w rdf:type ?o } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:P1376 resource:Q161885 . { { ?p rdf:type ontology:Q20667921 } UNION { ?p rdf:type ontology:Q515 } } } } . FILTER ( ?d > ?t ) }
action count
action greater
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 city
action count
action filter_multi_types
action find_reverse
entity Kingdom of Great Britain
relation capital of
type type of french administrative division
type city
[[{'concept': 'type of french administrative division'}, {'concept': 'city'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?d ) WHERE { VALUES ( ?o ) { ( ontology:type_of_french_administrative_division ) ( ontology:city ) } . ?w rdf:type ?o } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:capital_of resource:Kingdom_of_Great_Britain . { { ?p rdf:type ontology:type_of_french_administrative_division } UNION { ?p rdf:type ontology:city } } } } . FILTER ( ?d > ?t ) }
[]
state type of french administrative division city
SYSTEM
79
Q178665 Q18285930 Q3456417 Q855044 Q210198 Q133356 Q215530 Q912043 Q203493 Q1574107 Q15864 Q698089 Q210542 Q2114397 Q220110 Q1414395 Q756895 Q49697 Q6500954 Q274488 Q476757 Q1274468 Q234197 Q1108445 Q153080 Q1154540 Q550374 Q19831559 Q1048918 Q783489 Q618399 Q180573 Q216786 Q752662 Q1668970 Q320930 Q849623 Q139670 Q1138904 Q7352 Q9903 Q941881 Q38060 Q844250 Q738144 Q207521 Q1658411 Q157734 Q1415585 Q146328 Q1508143 Q940821 Q248572 Q697084 Q213586 Q11196 Q842091 Q146713 Q427941 Q697837 Q747314 Q307069 Q28278 Q62454 Q112558 Q1192067 Q2372248 Q505503 Q153015 Q846670 Q696242 Q1479726 Q467864 Q212056 Q13426199 Q3041595 Q484104 Q648297 Q149805
(c(Q20667921)|c(Q515),P1376,c(Q7275))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action count
action filter_multi_types
action find_reverse
entity Q161885
relation P1376
type Q20667921
type Q515
[ANSWER]
[[{'concept': 'Q20667921'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?d ) WHERE { VALUES ( ?o ) { ( ontology:Q20667921 ) ( ontology:Q515 ) } . ?w rdf:type ?o } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:P1376 resource:Q161885 . { { ?p rdf:type ontology:Q20667921 } UNION { ?p rdf:type ontology:Q515 } } } } . FILTER ( ?d > ?t ) }
Mitanni German Empire of 1848/1849 Republic of Saint-Malo Bhopal State Erivan Khanate Ukrainian Soviet Socialist Republic Kingdom of Ireland Jin Kingdom of Romania Han Zhao United Kingdom of the Netherlands Grand Duchy of Würzburg Second Brazilian Republic Yogyakarta Sultanate Rohan Republic of South Maluku Kediri Liu Song dynasty Zaire Eastern Wu Democratic Republic of Afghanistan Republic of Bosnia and Herzegovina Srivijaya Kievan Rus' East Francia Later Jin Dynasty South African Republic Oldenburg Suebic Kingdom of Galicia Later Liang dynasty Republic of the Congo South Vietnam Champa Hafsid dynasty Western Qin Cao Wei Oyo Empire Democratic Republic of Armenia Kingdom of Afghanistan Jin dynasty Ming imperium Netherlands New Guinea Gaul Lordship of Ireland United Provinces of the Río de la Plata Abyssinia Kingdom of Sarawak Muscat and Oman Islamic State of Afghanistan Commonwealth of the Philippines Ukrainian State People's Democratic Republic of Ethiopia Sultanate of Maguindanao Duchy of Oldenburg Gondor Republika Srpska Duchy of Normandy Arab Federation Islamic Emirate of Afghanistan Mengjiang Bechuanaland Protectorate Eastern Wei Provisional Government of the Republic of Korea Chen dynasty Republic of Saugeais Min Free State of Oldenburg Cochinchina Kingdom of Saxony Danishmends Reorganized National Government of China Federation of Malaya People's Socialist Republic of Albania Mongolian People's Republic Republic of China Republic of Iraq United States Army Military Government in Korea Free State of Brunswick Kingdom of Iraq
79
action count
action greater
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 city
action count
action filter_multi_types
action find_reverse
entity Kingdom of Great Britain
relation capital of
type type of french administrative division
type city
[[{'concept': 'type of french administrative division'}, {'concept': 'city'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?d ) WHERE { VALUES ( ?o ) { ( ontology:type_of_french_administrative_division ) ( ontology:city ) } . ?w rdf:type ?o } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:capital_of resource:Kingdom_of_Great_Britain . { { ?p rdf:type ontology:type_of_french_administrative_division } UNION { ?p rdf:type ontology:city } } } } . FILTER ( ?d > ?t ) }
[]