Simple Question (Direct)
Simple Question
Q1612326
P27
Q1048835
USER
Which political territory is the country of citizenship of Hermann Paltinat ?
(Q1612326,P27,c(Q1048835))
action filter_type
action find
entity Q1612326
relation P27
type Q1048835
['Q1612326', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1048835 . resource:Q1612326 property:P27 ?n }
Hermann Paltinat
action filter_type
action find
entity Hermann Paltinat
relation country of citizenship
type political territorial entity
['Hermann Paltinat', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_territorial_entity . resource:Hermann_Paltinat property:country_of_citizenship ?n }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1612326,P27,c(Q1048835))
action filter_type
action find
entity Q1612326
relation P27
type Q1048835
[ANSWER] is the country of citizenship of Hermann Paltinat
['Q1612326', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1048835 . resource:Q1612326 property:P27 ?n }
Germany
Germany is the country of citizenship of Hermann Paltinat
Germany
action filter_type
action find
entity Hermann Paltinat
relation country of citizenship
type political territorial entity
['Hermann Paltinat', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_territorial_entity . resource:Hermann_Paltinat property:country_of_citizenship ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1612326
P937
Q56061
USER
Which is the work location of Hermann Paltinat ?
(Q1612326,P937,c(Q56061))
action filter_type
action find
entity Q1612326
relation P937
type Q56061
['Q1612326', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q1612326 property:P937 ?j . ?j rdf:type ontology:Q56061 }
Hermann Paltinat
action filter_type
action find
entity Hermann Paltinat
relation work location
type administrative territorial entity
['Hermann Paltinat', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Hermann_Paltinat property:work_location ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q1612326,P937,c(Q56061))
action filter_type
action find
entity Q1612326
relation P937
type Q56061
[ANSWER] is the work location of Hermann Paltinat
['Q1612326', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q1612326 property:P937 ?j . ?j rdf:type ontology:Q56061 }
Berlin
Berlin is the work location of Hermann Paltinat
Berlin
action filter_type
action find
entity Hermann Paltinat
relation work location
type administrative territorial entity
['Hermann Paltinat', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Hermann_Paltinat property:work_location ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1612326
P21
Q290
USER
Which sex does that person have ?
(Q64,P21,c(Q290))
action filter_type
action find
entity Q1612326
relation P21
type Q290
['Q64', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q1612326 property:P21 ?c . ?c rdf:type ontology:Q290 }
Hermann Paltinat
action filter_type
action find
entity Hermann Paltinat
relation gender
type sex
['Berlin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Hermann_Paltinat property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q64,P21,c(Q290))
action filter_type
action find
entity Q1612326
relation P21
type Q290
That person has a [ANSWER]
['Q64', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q1612326 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Hermann Paltinat
relation gender
type sex
['Berlin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Hermann_Paltinat property:gender ?c . ?c rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q21460014
P21
Q502895
USER
Does Bennett Ley Kenyon have the gender as that sex ?
(Q21460014,P21,Q6581097)
action is_in
entity Q21460014
action find
entity Q6581097
relation P21
['Q21460014', 'P21', 'Q6581097']
ASK WHERE { resource:Q6581097 property:P21 resource:Q21460014 }
male Bennett Ley Kenyon
action is_in
entity Bennett Ley Kenyon
action find
entity male
relation gender
['Bennett Ley Kenyon', 'gender', 'male']
ASK WHERE { resource:male property:gender resource:Bennett_Ley_Kenyon }
[]
common name
SYSTEM
NO
(Q21460014,P21,Q6581097)
action is_in
entity Q21460014
action find
entity Q6581097
relation P21
[ANSWER]
['Q21460014', 'P21', 'Q6581097']
ASK WHERE { resource:Q6581097 property:P21 resource:Q21460014 }
No
action is_in
entity Bennett Ley Kenyon
action find
entity male
relation gender
['Bennett Ley Kenyon', 'gender', 'male']
ASK WHERE { resource:male property:gender resource:Bennett_Ley_Kenyon }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2949712 Q1612326
P39 P106
Q12737077
USER
Which occupations were the positions occupied by Hermann Paltinat or are the professions of Dag Lyseid ?
OR((Q1612326,P39,c(Q12737077)), (Q2949712,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1612326
relation P39
action find
entity Q2949712
relation P106
type Q12737077
{'OR': [['Q1612326', 'P39', {'concept': 'Q12737077'}], ['Q2949712', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q1612326 property:P39 ?e } UNION { resource:Q2949712 property:P106 ?e } } . ?e rdf:type ontology:Q12737077 }
Dag Lyseid Hermann Paltinat
action filter_type
action union
action find
entity Hermann Paltinat
relation position held
action find
entity Dag Lyseid
relation occupation
type occupation
{'OR': [['Hermann Paltinat', 'position held', {'concept': 'occupation'}], ['Dag Lyseid', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Hermann_Paltinat property:position_held ?e } UNION { resource:Dag_Lyseid property:occupation ?e } } . ?e rdf:type ontology:occupation }
[]
occupation
Q131512 Q18627832 Q82955 Q17856046 Q937857
SYSTEM
farmer, Member of Landtag of Prussia, politician, member of the Reichstag of Nazi Germany, association football player
Q131512 Q18627832 Q82955 Q17856046 Q937857
OR((Q1612326,P39,c(Q12737077)), (Q2949712,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1612326
relation P39
action find
entity Q2949712
relation P106
type Q12737077
[ANSWERS] were the positions occupied by Hermann Paltinat or are the professions of Dag Lyseid
{'OR': [['Q1612326', 'P39', {'concept': 'Q12737077'}], ['Q2949712', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q1612326 property:P39 ?e } UNION { resource:Q2949712 property:P106 ?e } } . ?e rdf:type ontology:Q12737077 }
farmer Member of Landtag of Prussia politician member of the Reichstag of Nazi Germany association football player
Farmer, Member of Landtag of Prussia, politician, member of the Reichstag of Nazi Germany and association football player were the positions occupied by Hermann Paltinat or are the professions of Dag Lyseid
farmer Member of Landtag of Prussia politician member of the Reichstag of Nazi Germany association football player
action filter_type
action union
action find
entity Hermann Paltinat
relation position held
action find
entity Dag Lyseid
relation occupation
type occupation
{'OR': [['Hermann Paltinat', 'position held', {'concept': 'occupation'}], ['Dag Lyseid', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Hermann_Paltinat property:position_held ?e } UNION { resource:Dag_Lyseid property:occupation ?e } } . ?e rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q64 Q179876
P710
Q350604
USER
How many armed conflicts have Berlin or Kingdom of England as their participant ?
(c(Q350604),P710,Q64) (c(Q350604),P710,Q179876)
action count
action union
action filter_type
action find_reverse
entity Q64
relation P710
type Q350604
action filter_type
action find_reverse
entity Q179876
relation P710
type Q350604
[{'concept': 'Q350604'}, 'P710', 'Q64'] [{'concept': 'Q350604'}, 'P710', 'Q179876']
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { ?h property:P710 resource:Q179876 . ?h rdf:type ontology:Q350604 } UNION { ?h property:P710 resource:Q64 . ?h rdf:type ontology:Q350604 } }
Berlin Kingdom of England
action count
action union
action filter_type
action find_reverse
entity Berlin
relation participant
type armed conflict
action filter_type
action find_reverse
entity Kingdom of England
relation participant
type armed conflict
[{'concept': 'armed conflict'}, 'participant', 'Berlin'] [{'concept': 'armed conflict'}, 'participant', 'Kingdom of England']
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { ?h property:participant resource:Kingdom_of_England . ?h rdf:type ontology:armed_conflict } UNION { ?h property:participant resource:Berlin . ?h rdf:type ontology:armed_conflict } }
[]
armed conflict
SYSTEM
3
Q16933898 Q168442 Q12551
(c(Q350604),P710,Q64) (c(Q350604),P710,Q179876)
action count
action union
action filter_type
action find_reverse
entity Q64
relation P710
type Q350604
action filter_type
action find_reverse
entity Q179876
relation P710
type Q350604
[ANSWER]
[{'concept': 'Q350604'}, 'P710', 'Q64'] [{'concept': 'Q350604'}, 'P710', 'Q179876']
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { ?h property:P710 resource:Q179876 . ?h rdf:type ontology:Q350604 } UNION { ?h property:P710 resource:Q64 . ?h rdf:type ontology:Q350604 } }
Normandy campaigns of 1200–1204 Anglo-Spanish War (1625–1630) Hundred Years' War
3
action count
action union
action filter_type
action find_reverse
entity Berlin
relation participant
type armed conflict
action filter_type
action find_reverse
entity Kingdom of England
relation participant
type armed conflict
[{'concept': 'armed conflict'}, 'participant', 'Berlin'] [{'concept': 'armed conflict'}, 'participant', 'Kingdom of England']
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { ?h property:participant resource:Kingdom_of_England . ?h rdf:type ontology:armed_conflict } UNION { ?h property:participant resource:Berlin . ?h rdf:type ontology:armed_conflict } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q1048835 Q486972 Q20667921
USER
Which political territories have approximately 1 human settlements or french administrative divisions have their center of administration ?
(c(Q486972)|c(Q20667921),P1376,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
value 1
[[{'concept': 'Q486972'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?l WHERE { ?j rdf:type ?w . VALUES ( ?w ) { ( ontology:Q20667921 ) ( ontology:Q486972 ) } } GROUP BY ?l } . FILTER ( ?v = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
value 1
[[{'concept': 'human settlement'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?l WHERE { ?j rdf:type ?w . VALUES ( ?w ) { ( ontology:type_of_french_administrative_division ) ( ontology:human_settlement ) } } GROUP BY ?l } . FILTER ( ?v = 1 ) }
[]
political territorial entity human settlement type of french administrative division
Q10485 Q170672 Q35086
SYSTEM
Deggendorf, Dnipropetrovsk Oblast, South Georgia and the South Sandwich Islands
Q7130037 Q3321945 Q10500690 Q3317759 Q1122980 Q3312902 Q2702993 Q6156 Q10469 Q2485101 Q10462 Q10466 Q971457 Q2846059 Q6319070 Q34617 Q2718534 Q6319759 Q3313430 Q5088519 Q642314 Q6318695 Q3826003 Q7258563 Q8050384 Q3314201 Q1468315 Q7414539 Q1769672 Q1229942 Q1232887 Q5444794 Q593806 Q778266 Q201697 Q7827062 Q4694508 Q170672 Q3824193 Q571947 Q48106 Q2307775 Q5856660 Q2697637 Q10480 Q10485 Q6013498 Q5924968 Q35086
(c(Q486972)|c(Q20667921),P1376,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
value 1
[ANSWERS] have approximately 1 human settlements or french administrative divisions have their center of administration
[[{'concept': 'Q486972'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?l WHERE { ?j rdf:type ?w . VALUES ( ?w ) { ( ontology:Q20667921 ) ( ontology:Q486972 ) } } GROUP BY ?l } . FILTER ( ?v = 1 ) }
Panao District Acarí District San Miguel District Putumayo District Comtat Venaissin Coya District Haquira District Oberspreewald-Lausitz Main-Spessart County of Chiny Haßberge Bad Kissingen Lunahuaná District Andahuaylillas District Magdalena de Cao District Saint Pierre and Miquelon Lurigancho Sicaya District Antioquia District Chavinillo District County of Burgundy Pimentel Chucuito District Puerto Inca District Yavari District Achoma District Pozuzo District San José de Sisa District La Sotonera La Jalca District County of Savoy Fernando Lores District Llata District County of Artois Leimebamba District Torres Causana District Aguas Verdes Dnipropetrovsk Oblast Querobamba District Bautzen Suhl District Sepahua Mito District San Marcos District Dingolfing-Landau Deggendorf Inambari Huacaybamba South Georgia and the South Sandwich Islands
Deggendorf, Dnipropetrovsk Oblast and South Georgia and the South Sandwich Islands have approximately 1 human settlements or french administrative divisions have their center of administration
Deggendorf Dnipropetrovsk Oblast South Georgia and the South Sandwich Islands
action approx
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
value 1
[[{'concept': 'human settlement'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?l WHERE { ?j rdf:type ?w . VALUES ( ?w ) { ( ontology:type_of_french_administrative_division ) ( ontology:human_settlement ) } } GROUP BY ?l } . FILTER ( ?v = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q10485
P47
Q1048835
USER
Which political territories have an adjacent border with that one ?
(c(Q1048835),P47,Q10485)
action filter_type
action find
entity Q10485
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q10485']
SELECT DISTINCT ?n WHERE { resource:Q10485 property:P47 ?n . ?n rdf:type ontology:Q1048835 }
Deggendorf
action filter_type
action find
entity Deggendorf
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Deggendorf']
SELECT DISTINCT ?n WHERE { resource:Deggendorf property:shares_border_with ?n . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q170672
SYSTEM
Did you mean Dnipropetrovsk Oblast ?
Q10485 Q170672 Q35086
(c(Q1048835),P47,Q10485) (c(Q1048835),P47,Q170672) (c(Q1048835),P47,Q35086)
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q10485'] [{'concept': 'Q1048835'}, 'P47', 'Q170672'] [{'concept': 'Q1048835'}, 'P47', 'Q35086']
SELECT DISTINCT ?n WHERE { resource:Q10485 property:P47 ?n . ?n rdf:type ontology:Q1048835 }
Deggendorf Dnipropetrovsk Oblast South Georgia and the South Sandwich Islands
Did you mean Dnipropetrovsk Oblast ?
Dnipropetrovsk Oblast
[{'concept': 'political territorial entity'}, 'shares border with', 'Deggendorf'] [{'concept': 'political territorial entity'}, 'shares border with', 'Dnipropetrovsk Oblast'] [{'concept': 'political territorial entity'}, 'shares border with', 'South Georgia and the South Sandwich Islands']
SELECT DISTINCT ?n WHERE { resource:Deggendorf property:shares_border_with ?n . ?n rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Deggendorf. Could you tell me the answer for that?
(c(Q1048835),P47,Q10485)
Q10485
[{'concept': 'Q1048835'}, 'P47', 'Q10485']
[{'concept': 'political territorial entity'}, 'shares border with', 'Deggendorf']
[]
Q10482 Q10477 Q10487
SYSTEM
Straubing-Bogen, Rottal-Inn, Freyung-Grafenau
Q10477 Q10489 Q10480 Q10482 Q10483 Q10487
(c(Q1048835),P47,Q10485)
action filter_type
action find
entity Q10485
relation P47
type Q1048835
[ANSWERS] have an adjacent border with that one
[{'concept': 'Q1048835'}, 'P47', 'Q10485']
SELECT DISTINCT ?n WHERE { resource:Q10485 property:P47 ?n . ?n rdf:type ontology:Q1048835 }
Rottal-Inn Passau Dingolfing-Landau Straubing-Bogen Regen Freyung-Grafenau
Straubing-Bogen, Rottal-Inn and Freyung-Grafenau have an adjacent border with that one
Straubing-Bogen Rottal-Inn Freyung-Grafenau
action filter_type
action find
entity Deggendorf
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Deggendorf']
SELECT DISTINCT ?n WHERE { resource:Deggendorf property:shares_border_with ?n . ?n rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q10485
P1376
Q486972
USER
How many human settlements are the capital of Deggendorf ?
(c(Q486972),P1376,Q10485)
action count
action filter_type
action find_reverse
entity Q10485
relation P1376
type Q486972
[{'concept': 'Q486972'}, 'P1376', 'Q10485']
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { ?b property:P1376 resource:Q10485 . ?b rdf:type ontology:Q486972 }
Deggendorf
action count
action filter_type
action find_reverse
entity Deggendorf
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', 'Deggendorf']
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { ?b property:capital_of resource:Deggendorf . ?b rdf:type ontology:human_settlement }
[]
human settlement
SYSTEM
1
Q16083
(c(Q486972),P1376,Q10485)
action count
action filter_type
action find_reverse
entity Q10485
relation P1376
type Q486972
[ANSWER]
[{'concept': 'Q486972'}, 'P1376', 'Q10485']
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { ?b property:P1376 resource:Q10485 . ?b rdf:type ontology:Q486972 }
Deggendorf
1
action count
action filter_type
action find_reverse
entity Deggendorf
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', 'Deggendorf']
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { ?b property:capital_of resource:Deggendorf . ?b rdf:type ontology:human_settlement }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18627832
P361
Q1752346
USER
What is Member of Landtag of Prussia a part of ?
(Q18627832,P361,c(Q1752346))
action filter_type
action find
entity Q18627832
relation P361
type Q1752346
['Q18627832', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1752346 . resource:Q18627832 property:P361 ?v }
Member of Landtag of Prussia
action filter_type
action find
entity Member of Landtag of Prussia
relation part of
type assembly
['Member of Landtag of Prussia', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:assembly . resource:Member_of_Landtag_of_Prussia property:part_of ?v }
[]
assembly
Q650248
SYSTEM
Landtag of Prussia
Q650248
(Q18627832,P361,c(Q1752346))
action filter_type
action find
entity Q18627832
relation P361
type Q1752346
Member of [ANSWER] a part of is the [ANSWER]
['Q18627832', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1752346 . resource:Q18627832 property:P361 ?v }
Landtag of Prussia
Member of Landtag of Prussia a part of is the Landtag of Prussia
Landtag of Prussia
action filter_type
action find
entity Member of Landtag of Prussia
relation part of
type assembly
['Member of Landtag of Prussia', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:assembly . resource:Member_of_Landtag_of_Prussia property:part_of ?v }
[]