Simple Question (Direct)
Simple Question
Q1583545
P607
Q198
USER
What was the war that Hans Troilo took part in
(Q1583545,P607,c(Q198))
action filter_type
action find
entity Q1583545
relation P607
type Q198
['Q1583545', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?e WHERE { resource:Q1583545 property:P607 ?e . ?e rdf:type ontology:Q198 }
Hans Troilo
action filter_type
action find
entity Hans Troilo
relation conflict
type war
['Hans Troilo', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?e WHERE { resource:Hans_Troilo property:conflict ?e . ?e rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q1583545,P607,c(Q198))
action filter_type
action find
entity Q1583545
relation P607
type Q198
The war that Hans Troilo took part in was during [ANSWER]
['Q1583545', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?e WHERE { resource:Q1583545 property:P607 ?e . ?e rdf:type ontology:Q198 }
World War I
The war that Hans Troilo took part in was during World War I
World War I
action filter_type
action find
entity Hans Troilo
relation conflict
type war
['Hans Troilo', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?e WHERE { resource:Hans_Troilo property:conflict ?e . ?e rdf:type ontology:war }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q361
P710
Q3024240
USER
Which former country was a participant of that war ?
(Q361,P710,c(Q3024240))
action filter_type
action find
entity Q361
relation P710
type Q3024240
['Q361', 'P710', {'concept': 'Q3024240'}]
SELECT DISTINCT ?g WHERE { resource:Q361 property:P710 ?g . ?g rdf:type ontology:Q3024240 }
World War I
action filter_type
action find
entity World War I
relation participant
type former country
['World War I', 'participant', {'concept': 'former country'}]
SELECT DISTINCT ?g WHERE { resource:World_War_I property:participant ?g . ?g rdf:type ontology:former_country }
[]
former country
Q12560
SYSTEM
Ottoman Empire
Q12560
(Q361,P710,c(Q3024240))
action filter_type
action find
entity Q361
relation P710
type Q3024240
The [ANSWER] was a participant of that war
['Q361', 'P710', {'concept': 'Q3024240'}]
SELECT DISTINCT ?g WHERE { resource:Q361 property:P710 ?g . ?g rdf:type ontology:Q3024240 }
Ottoman Empire
The Ottoman Empire was a participant of that war
Ottoman Empire
action filter_type
action find
entity World War I
relation participant
type former country
['World War I', 'participant', {'concept': 'former country'}]
SELECT DISTINCT ?g WHERE { resource:World_War_I property:participant ?g . ?g rdf:type ontology:former_country }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P122
Q22676587 Q3024240
USER
Which monarchic systems are the types of government for approximately 1 former country ?
(c(Q3024240),P122,c(Q22676587))
action approx
action find_reverse_tuple_counts
relation P122
type Q22676587
type Q3024240
value 1
[{'concept': 'Q3024240'}, 'P122', {'concept': 'Q22676587'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:P122 ?c . ?c rdf:type ontology:Q22676587 . ?r rdf:type ontology:Q3024240 } GROUP BY ?c } . FILTER ( ?x = 1 ) }
action approx
action find_reverse_tuple_counts
relation basic form of government
type monarchic system
type former country
value 1
[{'concept': 'former country'}, 'basic form of government', {'concept': 'monarchic system'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:basic_form_of_government ?c . ?c rdf:type ontology:monarchic_system . ?r rdf:type ontology:former_country } GROUP BY ?c } . FILTER ( ?x = 1 ) }
[]
monarchic system former country
Q3208952 Q2994894
SYSTEM
federal monarchy, dual monarchy
Q3208952 Q2994894
(c(Q3024240),P122,c(Q22676587))
action approx
action find_reverse_tuple_counts
relation P122
type Q22676587
type Q3024240
value 1
[ANSWERS] are the types of government for approximately 1 former country
[{'concept': 'Q3024240'}, 'P122', {'concept': 'Q22676587'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:P122 ?c . ?c rdf:type ontology:Q22676587 . ?r rdf:type ontology:Q3024240 } GROUP BY ?c } . FILTER ( ?x = 1 ) }
federal monarchy dual monarchy
Federal monarchy and dual monarchy are the types of government for approximately 1 former country
federal monarchy dual monarchy
action approx
action find_reverse_tuple_counts
relation basic form of government
type monarchic system
type former country
value 1
[{'concept': 'former country'}, 'basic form of government', {'concept': 'monarchic system'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:basic_form_of_government ?c . ?c rdf:type ontology:monarchic_system . ?r rdf:type ontology:former_country } GROUP BY ?c } . FILTER ( ?x = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P122
Q1307214 Q3024240
USER
Which forms of government best describe the government of min number of former countries ?
(c(Q3024240),P122,Q7269)
action argmin
action find_reverse_tuple_counts
relation P122
type Q1307214
type Q3024240
[{'concept': 'Q3024240'}, 'P122', 'Q7269']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?s ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?c ) WHERE { ?r property:P122 ?q . ?q rdf:type ontology:Q1307214 . ?r rdf:type ontology:Q3024240 } GROUP BY ?q } } . { SELECT DISTINCT ?o ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:P122 ?o . ?e rdf:type ontology:Q3024240 . ?o rdf:type ontology:Q1307214 } GROUP BY ?o } . FILTER ( ?z = ?s ) }
action argmin
action find_reverse_tuple_counts
relation basic form of government
type form of government
type former country
[{'concept': 'former country'}, 'basic form of government', 'monarchy']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?s ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?c ) WHERE { ?r property:basic_form_of_government ?q . ?q rdf:type ontology:form_of_government . ?r rdf:type ontology:former_country } GROUP BY ?q } } . { SELECT DISTINCT ?o ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:basic_form_of_government ?o . ?e rdf:type ontology:former_country . ?o rdf:type ontology:form_of_government } GROUP BY ?o } . FILTER ( ?z = ?s ) }
[]
form of government former country
Q131401 Q5433328 Q171174
SYSTEM
caliphate, family dictatorship, direct democracy
Q5433328 Q171174 Q131401 Q43702 Q672729
(c(Q3024240),P122,Q7269)
action argmin
action find_reverse_tuple_counts
relation P122
type Q1307214
type Q3024240
[ANSWERS] best describe the government of min number of former countries
[{'concept': 'Q3024240'}, 'P122', 'Q7269']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?s ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?c ) WHERE { ?r property:P122 ?q . ?q rdf:type ontology:Q1307214 . ?r rdf:type ontology:Q3024240 } GROUP BY ?q } } . { SELECT DISTINCT ?o ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:P122 ?o . ?e rdf:type ontology:Q3024240 . ?o rdf:type ontology:Q1307214 } GROUP BY ?o } . FILTER ( ?z = ?s ) }
family dictatorship direct democracy caliphate federation Islamic republic
Caliphate, family dictatorship and direct democracy best describe the government of min number of former countries
caliphate family dictatorship direct democracy
action argmin
action find_reverse_tuple_counts
relation basic form of government
type form of government
type former country
[{'concept': 'former country'}, 'basic form of government', 'monarchy']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?s ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?c ) WHERE { ?r property:basic_form_of_government ?q . ?q rdf:type ontology:form_of_government . ?r rdf:type ontology:former_country } GROUP BY ?q } } . { SELECT DISTINCT ?o ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:basic_form_of_government ?o . ?e rdf:type ontology:former_country . ?o rdf:type ontology:form_of_government } GROUP BY ?o } . FILTER ( ?z = ?s ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q198 Q2342494 Q838948
USER
How many wars were atleast 108 collectables and works of art mainly about ?
(c(Q2342494)|c(Q838948),P921,c(Q198))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P921
type Q198
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q198
type Q838948
value 108
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?e ) WHERE { { ?z property:P921 ?x . ?x rdf:type ontology:Q198 . ?z rdf:type ontology:Q2342494 } UNION { ?x rdf:type ontology:Q198 . ?z rdf:type ontology:Q838948 . ?z property:P921 ?x } } GROUP BY ?x } . FILTER ( ?e >= 108 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation main subject
type war
type collectable
action find_reverse_tuple_counts
relation main subject
type war
type work of art
value 108
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?e ) WHERE { { ?z property:main_subject ?x . ?x rdf:type ontology:war . ?z rdf:type ontology:collectable } UNION { ?x rdf:type ontology:war . ?z rdf:type ontology:work_of_art . ?z property:main_subject ?x } } GROUP BY ?x } . FILTER ( ?e >= 108 ) }
[]
war collectable work of art
SYSTEM
3
Q8683 Q362 Q361
(c(Q2342494)|c(Q838948),P921,c(Q198))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P921
type Q198
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q198
type Q838948
value 108
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?e ) WHERE { { ?z property:P921 ?x . ?x rdf:type ontology:Q198 . ?z rdf:type ontology:Q2342494 } UNION { ?x rdf:type ontology:Q198 . ?z rdf:type ontology:Q838948 . ?z property:P921 ?x } } GROUP BY ?x } . FILTER ( ?e >= 108 ) }
Cold War World War II World War I
3
action count
action atleast
action union
action find_reverse_tuple_counts
relation main subject
type war
type collectable
action find_reverse_tuple_counts
relation main subject
type war
type work of art
value 108
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?e ) WHERE { { ?z property:main_subject ?x . ?x rdf:type ontology:war . ?z rdf:type ontology:collectable } UNION { ?x rdf:type ontology:war . ?z rdf:type ontology:work_of_art . ?z property:main_subject ?x } } GROUP BY ?x } . FILTER ( ?e >= 108 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12560
P361
Q350604
USER
Which armed conflict is a portion of Ottoman Empire ?
(c(Q350604),P361,Q12560)
action filter_type
action find_reverse
entity Q12560
relation P361
type Q350604
[{'concept': 'Q350604'}, 'P361', 'Q12560']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q350604 . ?r property:P361 resource:Q12560 }
Ottoman Empire
action filter_type
action find_reverse
entity Ottoman Empire
relation part of
type armed conflict
[{'concept': 'armed conflict'}, 'part of', 'Ottoman Empire']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:armed_conflict . ?r property:part_of resource:Ottoman_Empire }
[]
armed conflict
Q631799
SYSTEM
Russo-Turkish War
Q631799
(c(Q350604),P361,Q12560)
action filter_type
action find_reverse
entity Q12560
relation P361
type Q350604
[ANSWER] is a portion of Ottoman Empire
[{'concept': 'Q350604'}, 'P361', 'Q12560']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q350604 . ?r property:P361 resource:Q12560 }
Russo-Turkish War
Russo-Turkish War is a portion of Ottoman Empire
Russo-Turkish War
action filter_type
action find_reverse
entity Ottoman Empire
relation part of
type armed conflict
[{'concept': 'armed conflict'}, 'part of', 'Ottoman Empire']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:armed_conflict . ?r property:part_of resource:Ottoman_Empire }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q131401
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of caliphate ?
(Q131401,P1313,c(Q12737077))
action filter_type
action find
entity Q131401
relation P1313
type Q12737077
['Q131401', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q131401 property:P1313 ?c . ?c rdf:type ontology:Q12737077 }
caliphate
action filter_type
action find
entity caliphate
relation office held by head of government
type occupation
['caliphate', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:caliphate property:office_held_by_head_of_government ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q65997
SYSTEM
caliph
Q65997
(Q131401,P1313,c(Q12737077))
action filter_type
action find
entity Q131401
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of [ANSWER]ate
['Q131401', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q131401 property:P1313 ?c . ?c rdf:type ontology:Q12737077 }
caliph
The caliph serves as the political office that is fulfilled by the head of the government of caliphate
caliph
action filter_type
action find
entity caliphate
relation office held by head of government
type occupation
['caliphate', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:caliphate property:office_held_by_head_of_government ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q361
P101
Q502895
USER
Which person works in the domain of World War I ?
(c(Q502895),P101,Q361)
action filter_type
action find_reverse
entity Q361
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q361']
SELECT DISTINCT ?n WHERE { ?n property:P101 resource:Q361 . ?n rdf:type ontology:Q502895 }
World War I
action filter_type
action find_reverse
entity World War I
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'World War I']
SELECT DISTINCT ?n WHERE { ?n property:field_of_work resource:World_War_I . ?n rdf:type ontology:common_name }
[]
common name
Q3169809
SYSTEM
Jean-Pierre Verney
Q3169809
(c(Q502895),P101,Q361)
action filter_type
action find_reverse
entity Q361
relation P101
type Q502895
[ANSWER] works in the domain of World War I
[{'concept': 'Q502895'}, 'P101', 'Q361']
SELECT DISTINCT ?n WHERE { ?n property:P101 resource:Q361 . ?n rdf:type ontology:Q502895 }
Jean-Pierre Verney
Jean-Pierre Verney works in the domain of World War I
Jean-Pierre Verney
action filter_type
action find_reverse
entity World War I
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'World War I']
SELECT DISTINCT ?n WHERE { ?n property:field_of_work resource:World_War_I . ?n rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q361
P2348
Q7275
USER
Which state took place in the era of World War I ?
(c(Q7275),P2348,Q361)
action filter_type
action find_reverse
entity Q361
relation P2348
type Q7275
[{'concept': 'Q7275'}, 'P2348', 'Q361']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q7275 . ?g property:P2348 resource:Q361 }
World War I
action filter_type
action find_reverse
entity World War I
relation period
type state
[{'concept': 'state'}, 'period', 'World War I']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:state . ?g property:period resource:World_War_I }
[]
state
Q696908
SYSTEM
Kingdom of Poland
Q696908
(c(Q7275),P2348,Q361)
action filter_type
action find_reverse
entity Q361
relation P2348
type Q7275
[ANSWER] took place in the era of World War I
[{'concept': 'Q7275'}, 'P2348', 'Q361']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q7275 . ?g property:P2348 resource:Q361 }
Kingdom of Poland
Kingdom of Poland took place in the era of World War I
Kingdom of Poland
action filter_type
action find_reverse
entity World War I
relation period
type state
[{'concept': 'state'}, 'period', 'World War I']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:state . ?g property:period resource:World_War_I }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q696908
P793
Q131569
USER
Which treaties are the significant events associated with that state ?
(Q696908,P793,c(Q131569))
action filter_type
action find
entity Q696908
relation P793
type Q131569
['Q696908', 'P793', {'concept': 'Q131569'}]
SELECT DISTINCT ?o WHERE { resource:Q696908 property:P793 ?o . ?o rdf:type ontology:Q131569 }
Kingdom of Poland
action filter_type
action find
entity Kingdom of Poland
relation significant event
type treaty
['Kingdom of Poland', 'significant event', {'concept': 'treaty'}]
SELECT DISTINCT ?o WHERE { resource:Kingdom_of_Poland property:significant_event ?o . ?o rdf:type ontology:treaty }
[]
treaty
Q253224 Q122371
SYSTEM
Armistice of Compiègne, Treaty of Brest-Litovsk
Q253224 Q122371
(Q696908,P793,c(Q131569))
action filter_type
action find
entity Q696908
relation P793
type Q131569
[ANSWERS] are the significant events associated with that state
['Q696908', 'P793', {'concept': 'Q131569'}]
SELECT DISTINCT ?o WHERE { resource:Q696908 property:P793 ?o . ?o rdf:type ontology:Q131569 }
Armistice of Compiègne Treaty of Brest-Litovsk
Armistice of Compiègne and Treaty of Brest-Litovsk are the significant events associated with that state
Armistice of Compiègne Treaty of Brest-Litovsk
action filter_type
action find
entity Kingdom of Poland
relation significant event
type treaty
['Kingdom of Poland', 'significant event', {'concept': 'treaty'}]
SELECT DISTINCT ?o WHERE { resource:Kingdom_of_Poland property:significant_event ?o . ?o rdf:type ontology:treaty }
[]