Simple Question (Direct)
Simple Question
Q9256063
P607
Q198
USER
What was the war that Eugeniusz Tinz took part in
(Q9256063,P607,c(Q198))
action filter_type
action find
entity Q9256063
relation P607
type Q198
['Q9256063', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q198 . resource:Q9256063 property:P607 ?o }
Eugeniusz Tinz
action filter_type
action find
entity Eugeniusz Tinz
relation conflict
type war
['Eugeniusz Tinz', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:war . resource:Eugeniusz_Tinz property:conflict ?o }
[]
war
Q361
SYSTEM
World War I
Q361
(Q9256063,P607,c(Q198))
action filter_type
action find
entity Q9256063
relation P607
type Q198
The war that Eugeniusz Tinz took part in was during [ANSWER]
['Q9256063', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q198 . resource:Q9256063 property:P607 ?o }
World War I
The war that Eugeniusz Tinz took part in was during World War I
World War I
action filter_type
action find
entity Eugeniusz Tinz
relation conflict
type war
['Eugeniusz Tinz', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:war . resource:Eugeniusz_Tinz property:conflict ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9256063
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q361,P27,c(Q15617994))
action filter_type
action find
entity Q9256063
relation P27
type Q15617994
['Q361', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q9256063 property:P27 ?w }
Eugeniusz Tinz
action filter_type
action find
entity Eugeniusz Tinz
relation country of citizenship
type designation for an administrative territorial entity
['World War I', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Eugeniusz_Tinz property:country_of_citizenship ?w }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(Q361,P27,c(Q15617994))
action filter_type
action find
entity Q9256063
relation P27
type Q15617994
The [ANSWER] is that person an inhabitant of
['Q361', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q9256063 property:P27 ?w }
Poland
The Poland is that person an inhabitant of
Poland
action filter_type
action find
entity Eugeniusz Tinz
relation country of citizenship
type designation for an administrative territorial entity
['World War I', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Eugeniusz_Tinz property:country_of_citizenship ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9256063
P410
Q4189293
USER
Which title has that person achieved ?
(Q36,P410,c(Q4189293))
action filter_type
action find
entity Q9256063
relation P410
type Q4189293
['Q36', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?o WHERE { resource:Q9256063 property:P410 ?o . ?o rdf:type ontology:Q4189293 }
Eugeniusz Tinz
action filter_type
action find
entity Eugeniusz Tinz
relation military rank
type title
['Poland', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?o WHERE { resource:Eugeniusz_Tinz property:military_rank ?o . ?o rdf:type ontology:title }
[]
title
Q2487961
SYSTEM
divisional general
Q2487961
(Q36,P410,c(Q4189293))
action filter_type
action find
entity Q9256063
relation P410
type Q4189293
That person has achieved a [ANSWER]
['Q36', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?o WHERE { resource:Q9256063 property:P410 ?o . ?o rdf:type ontology:Q4189293 }
divisional general
That person has achieved a divisional general
divisional general
action filter_type
action find
entity Eugeniusz Tinz
relation military rank
type title
['Poland', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?o WHERE { resource:Eugeniusz_Tinz property:military_rank ?o . ?o rdf:type ontology:title }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9256063
P21
Q290
USER
Which sex does that person possess ?
(Q2487961,P21,c(Q290))
action filter_type
action find
entity Q9256063
relation P21
type Q290
['Q2487961', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q9256063 property:P21 ?c . ?c rdf:type ontology:Q290 }
Eugeniusz Tinz
action filter_type
action find
entity Eugeniusz Tinz
relation gender
type sex
['divisional general', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Eugeniusz_Tinz property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2487961,P21,c(Q290))
action filter_type
action find
entity Q9256063
relation P21
type Q290
That person possesses a [ANSWER]
['Q2487961', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q9256063 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
That person possesses a male
male
action filter_type
action find
entity Eugeniusz Tinz
relation gender
type sex
['divisional general', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Eugeniusz_Tinz property:gender ?c . ?c rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q198 Q176799 Q180684
USER
How many wars are atmost 7 military units and conflicts a portion of ?
(c(Q176799)|c(Q180684),P361,c(Q198))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q176799
action find_reverse_tuple_counts
relation P361
type Q198
type Q180684
value 7
[[{'concept': 'Q176799'}, {'concept': 'Q180684'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:Q176799 ) ( ontology:Q180684 ) } . ?s rdf:type ?w } GROUP BY ?a } . FILTER ( ?v <= 7 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation part of
type war
type military unit
action find_reverse_tuple_counts
relation part of
type war
type conflict
value 7
[[{'concept': 'military unit'}, {'concept': 'conflict'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:military_unit ) ( ontology:conflict ) } . ?s rdf:type ?w } GROUP BY ?a } . FILTER ( ?v <= 7 ) }
[]
war military unit conflict
SYSTEM
40
Q8683 Q211855 Q4783165 Q795269 Q3778746 Q920894 Q81545 Q10859 Q18121212 Q361 Q1021160 Q17984356 Q1072889 Q1758829 Q209297 Q242352 Q2105495 Q5334383 Q178810 Q545449 Q2658255 Q16954835 Q208484 Q1432624 Q2086498 Q1238338 Q15059994 Q1049945 Q8676 Q1127302 Q1052332 Q475678 Q743768 Q213394 Q17507684 Q179975 Q18159629 Q2672972 Q243620 Q79911
(c(Q176799)|c(Q180684),P361,c(Q198))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q176799
action find_reverse_tuple_counts
relation P361
type Q198
type Q180684
value 7
[ANSWER]
[[{'concept': 'Q176799'}, {'concept': 'Q180684'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:Q176799 ) ( ontology:Q180684 ) } . ?s rdf:type ?w } GROUP BY ?a } . FILTER ( ?v <= 7 ) }
Cold War Finnish Civil War Arab Cold War Sierra Leone Civil War Sioux Wars First Italian War of Independence 2011 Libyan Civil War Spanish Civil War American-led intervention in Syria World War I Armagnac–Burgundian Civil War Iraqi Civil War Chilean War of Independence urban guerrilla warfare Farroupilha Revolution Yugoslav Wars 1383-85 Portuguese Interregnum Ecuadorian War of Independence Syrian Civil War Iraq War Byzantine civil war of 1341–1347 Nagorno-Karabakh conflict Lebanese Civil War Genkō War First Barons' War Caesar's Civil War Iran–Israel proxy conflict Jacobite rising of 1745 American Civil War Estonian War of Independence War in Somalia Mexican Drug War The Anarchy Sri Lankan Civil War military intervention against ISIL Chinese Civil War American-led intervention in Iraq Uruguayan Civil War Somali Civil War Russian Civil War
40
action count
action atmost
action union
action find_reverse_tuple_counts
relation part of
type war
type military unit
action find_reverse_tuple_counts
relation part of
type war
type conflict
value 7
[[{'concept': 'military unit'}, {'concept': 'conflict'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:military_unit ) ( ontology:conflict ) } . ?s rdf:type ?w } GROUP BY ?a } . FILTER ( ?v <= 7 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q36
P47
Q15617994 Q7275
USER
How many administrative territories and states share border with Poland ?
(Q36,P47,c(Q15617994)) (Q36,P47,c(Q7275))
action count
action union
action filter_type
action find
entity Q36
relation P47
type Q15617994
action filter_type
action find
entity Q36
relation P47
type Q7275
['Q36', 'P47', {'concept': 'Q15617994'}] ['Q36', 'P47', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { { resource:Q36 property:P47 ?m . ?m rdf:type ontology:Q7275 } UNION { resource:Q36 property:P47 ?m . ?m rdf:type ontology:Q15617994 } }
Poland
action count
action union
action filter_type
action find
entity Poland
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Poland
relation shares border with
type state
['Poland', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Poland', 'shares border with', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { { resource:Poland property:shares_border_with ?m . ?m rdf:type ontology:state } UNION { resource:Poland property:shares_border_with ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity state
SYSTEM
8 administrative territories and 5 states
Q212 Q213 Q211 Q159 Q214 Q184 Q33946 Q154401 Q37 Q15180 Q216173 Q16957 Q218
(Q36,P47,c(Q15617994)) (Q36,P47,c(Q7275))
action count
action union
action filter_type
action find
entity Q36
relation P47
type Q15617994
action filter_type
action find
entity Q36
relation P47
type Q7275
[ANSWER]
['Q36', 'P47', {'concept': 'Q15617994'}] ['Q36', 'P47', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { { resource:Q36 property:P47 ?m . ?m rdf:type ontology:Q7275 } UNION { resource:Q36 property:P47 ?m . ?m rdf:type ontology:Q15617994 } }
Ukraine Czech Republic Latvia Russia Slovakia Belarus Czechoslovakia Slovak Republic Lithuania Soviet Union Free City of Danzig East Germany Romania
8 administrative territories and 5 states
action count
action union
action filter_type
action find
entity Poland
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Poland
relation shares border with
type state
['Poland', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Poland', 'shares border with', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { { resource:Poland property:shares_border_with ?m . ?m rdf:type ontology:state } UNION { resource:Poland property:shares_border_with ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q36
P530
Q1048835
USER
Which political territories have diplomatic relations with that administrative territory ?
action filter_type
action find
entity Q36
relation P530
type Q1048835
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q1048835 . resource:Q36 property:P530 ?h }
Poland
action filter_type
action find
entity Poland
relation diplomatic relation
type political territorial entity
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:political_territorial_entity . resource:Poland property:diplomatic_relation ?h }
[]
political territorial entity
Q16 Q408 Q183
SYSTEM
Canada, Australia, Germany
Q16 Q408 Q183
action filter_type
action find
entity Q36
relation P530
type Q1048835
[ANSWERS] have diplomatic relations with that administrative territory
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q1048835 . resource:Q36 property:P530 ?h }
Canada Australia Germany
Canada, Australia and Germany have diplomatic relations with that administrative territory
Canada Australia Germany
action filter_type
action find
entity Poland
relation diplomatic relation
type political territorial entity
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:political_territorial_entity . resource:Poland property:diplomatic_relation ?h }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q36 Q23334
P6
Q502895
USER
How many people are Poland or Abkhazia the head of goverment of ?
(Q36,P6,c(Q502895)) (Q23334,P6,c(Q502895))
action count
action union
action filter_type
action find
entity Q36
relation P6
type Q502895
action filter_type
action find
entity Q23334
relation P6
type Q502895
['Q36', 'P6', {'concept': 'Q502895'}] ['Q23334', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { resource:Q36 property:P6 ?c . ?c rdf:type ontology:Q502895 } UNION { ?c rdf:type ontology:Q502895 . resource:Q23334 property:P6 ?c } }
Poland Abkhazia
action count
action union
action filter_type
action find
entity Poland
relation head of government
type common name
action filter_type
action find
entity Abkhazia
relation head of government
type common name
['Poland', 'head of government', {'concept': 'common name'}] ['Abkhazia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { resource:Poland property:head_of_government ?c . ?c rdf:type ontology:common_name } UNION { ?c rdf:type ontology:common_name . resource:Abkhazia property:head_of_government ?c } }
[]
common name
SYSTEM
5
Q246216 Q946 Q4877021 Q55917 Q2996248
(Q36,P6,c(Q502895)) (Q23334,P6,c(Q502895))
action count
action union
action filter_type
action find
entity Q36
relation P6
type Q502895
action filter_type
action find
entity Q23334
relation P6
type Q502895
[ANSWER]
['Q36', 'P6', {'concept': 'Q502895'}] ['Q23334', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { resource:Q36 property:P6 ?c . ?c rdf:type ontology:Q502895 } UNION { ?c rdf:type ontology:Q502895 . resource:Q23334 property:P6 ?c } }
Ewa Kopacz Donald Tusk Beata Szydło Jarosław Kaczyński Leonid Lakerbaia
5
action count
action union
action filter_type
action find
entity Poland
relation head of government
type common name
action filter_type
action find
entity Abkhazia
relation head of government
type common name
['Poland', 'head of government', {'concept': 'common name'}] ['Abkhazia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { resource:Poland property:head_of_government ?c . ?c rdf:type ontology:common_name } UNION { ?c rdf:type ontology:common_name . resource:Abkhazia property:head_of_government ?c } }
[]